/* ==========================================================================
   overrides.css — final cascade pass.
   - Tighten section spacing to <=25px between blocks
   - FAQ widget: centered, +/- toggle, no rotated cross
   - Cross-link 3+3 grid with SVG icons (cross-link-split + cross-link-grid--svg)
   - Blog cards with deterministic SVG art (blog-card--with-art)
   - Casino review related cards with logos (related-card--with-logo)
   - Quick-answer banner color contrast fix
   - Body accent helpers (.acc, .hl)
   - Hide TL;DR label remnants if any survive
   ========================================================================== */

/* ===== Tighter section spacing ===== */
.section { padding-block: 1.5rem; }   /* was usually 2.5-3rem; cap at 25px-ish */
.section + .section { margin-top: 0; }
.section--alt { padding-block: 1.5rem; }
.section--tldr { padding-block: 1.25rem; }
.section--faq { padding-block: 1.75rem; }
.section--cross-links { padding-block: 1.75rem; }
.section--related { padding-block: 1.75rem; }

@media (min-width: 768px) {
    .section { padding-block: 1.75rem; }
    .section--alt { padding-block: 1.75rem; }
}

/* Drop the TL;DR badge if the template still emits it */
.tldr-block__label { display: none !important; }

/* ===== Quick answer banner contrast (Editor's pick / Three rules block) ===== */
.editors-pick__why a,
.editors-pick__verdict a {
    color: #ffd166;
    text-decoration: underline;
    text-decoration-color: #ffd166;
    text-underline-offset: 2px;
    font-weight: 700;
}
.editors-pick__why a:hover,
.editors-pick__verdict a:hover {
    color: #ffe9a8;
    text-decoration-color: #ffe9a8;
}
.editors-pick__tag {
    color: #ffd166;
    letter-spacing: .12em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .82rem;
}

/* ===== FAQ accordion: center, +/- toggle ===== */
.section--faq .container,
.section--faq__inner {
    text-align: center;
}
.section--faq .faq-accordion {
    margin-left: auto;
    margin-right: auto;
    max-width: 820px;
    text-align: left;
}
.section--faq h2,
.section--faq .section__lede {
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item summary {
    padding-right: 3.2rem !important;
}
.faq-item summary::after {
    content: '+' !important;
    transform: translateY(-50%) !important;
    transition: content .15s ease, transform .15s ease;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.faq-item details[open] summary::after {
    content: '\2212' !important;   /* unicode minus sign */
    transform: translateY(-50%) !important;
}

/* ===== Cross-link 3+3 split layout with SVG icons ===== */
.cross-link-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}
@media (min-width: 880px) {
    .cross-link-split { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
.cross-link-col__h {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cyan-700);
    margin: 0 0 .75rem;
}
.cross-link-col__h--blog { color: var(--emerald-700, #047857); }

.cross-link-grid--svg {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: .75rem;
}
.cross-link-grid--svg li > a {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .85rem;
    align-items: center;
    padding: .85rem 1rem;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.cross-link-grid--svg li > a:hover {
    border-color: var(--cyan-500, #06b6d4);
    transform: translateY(-1px);
}
.cross-link-grid__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 8px;
    background: var(--cyan-50, #ecfeff);
    color: var(--cyan-700, #0e7490);
}
.cross-link-grid__icon svg { width: 22px; height: 22px; }
.cross-link-col__h--blog ~ ul .cross-link-grid__icon {
    background: var(--emerald-50, #ecfdf5);
    color: var(--emerald-700, #047857);
}
.cross-link-grid__body {
    display: flex; flex-direction: column;
}
.cross-link-grid__body strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--cyan-900, #0e3540);
    line-height: 1.3;
}
.cross-link-grid__body span {
    font-size: .82rem;
    color: var(--slate-700, #475569);
    margin-top: .15rem;
    line-height: 1.45;
}

/* ===== Blog cards with deterministic SVG art ===== */
.blog-card-grid--with-art {
    list-style: none; padding: 0; margin: 1rem 0 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.blog-card--with-art {
    display: flex; flex-direction: column;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.blog-card--with-art:hover {
    border-color: var(--cat-color, var(--cyan-500, #06b6d4));
    transform: translateY(-2px);
}
.blog-card__art-wrap {
    display: block;
    aspect-ratio: 240 / 135;
    background: var(--cat-color, var(--cyan-50));
    overflow: hidden;
}
.blog-card__art {
    display: block; width: 100%; height: 100%;
}
.blog-card__art svg { display: block; width: 100%; height: 100%; }
.blog-card__body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex; flex-direction: column; gap: .35rem;
}
.blog-card__body .blog-card__category {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: .15rem .55rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    color: var(--cat-color);
}
.blog-card__body .blog-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.3;
    margin: .25rem 0 .15rem;
}
.blog-card__body .blog-card__title a { text-decoration: none; color: var(--cyan-900, #0e3540); }
.blog-card__body .blog-card__title a:hover { color: var(--cat-color); }
.blog-card__body .blog-card__meta {
    font-size: .82rem;
    color: var(--slate-700, #475569);
    margin: 0;
}

/* ===== Casino-review related grid with logos ===== */
.related-grid--logos {
    list-style: none; padding: 0; margin: 1rem 0 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.related-card--with-logo {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1rem 1.1rem;
    text-align: center;
    transition: border-color .15s, transform .15s;
}
.related-card--with-logo:hover {
    border-color: var(--cyan-500, #06b6d4);
    transform: translateY(-2px);
}
.related-card__logo-wrap {
    display: flex; align-items: center; justify-content: center;
    height: 56px;
    margin-bottom: .75rem;
}
.related-card__logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}
.related-card--with-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}
.related-card--with-logo h3 a { text-decoration: none; color: var(--cyan-900, #0e3540); }
.related-card--with-logo p {
    font-size: .85rem;
    line-height: 1.45;
    color: var(--slate-700, #475569);
    margin: 0 0 .65rem;
}
.related-card--with-logo .related-card__meta {
    font-weight: 700;
    color: var(--amber-600, #d97706);
}

/* ===== Body accent helpers ===== */
.section--md-body p strong,
.section--md-body--post p strong,
.section--md-body--review p strong {
    color: var(--cyan-900, #0e3540);
    background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--cyan-300, #67e8f9) 35%, transparent) 60%);
    padding: 0 .12em;
}
.section--md-body em,
.section--md-body--post em,
.section--md-body--review em {
    font-style: italic;
    color: var(--emerald-700, #047857);
}
.section--md-body code,
.section--md-body--post code,
.section--md-body--review code {
    background: var(--cyan-50, #ecfeff);
    border-radius: 4px;
    padding: .08em .35em;
    font-size: .92em;
    color: var(--cyan-800, #155e75);
}

/* Highlight key data points (numbers and percentages inside the cashback math sections) */
.section--md-body p:has(strong) strong:first-of-type,
.section--md-body--post p:has(strong) strong:first-of-type {
    /* No-op (kept for future targeted styling) */
}

/* ===== Authority links — keep them only inside author byline === */
.section--md-body ul a[href*="begambleaware"],
.section--md-body ul a[href*="gamcare"],
.section--md-body ul a[href*="gamblingcommission"],
.section--md-body ul a[href*="gamstop"],
.section--md-body ul a[href*="mga.org"] {
    /* Visual de-emphasis if a page still emits them in body — author byline remains primary surface */
    opacity: .9;
}
