/* ==========================================================================
   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; }

/* ===== Blog post hero + cover image ===== */
/* The blog post template emits .hero--post around the breadcrumb/H1/lede block,
   with .hero-post__cover (1200×630 SVG) as the LCP image at the top. Without these
   rules the SVG renders at native size and blows past the container. */
.hero--post {
    padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.hero-post__cover {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 14px;
    margin: 0 0 1.5rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .12);
    background: var(--cyan-50, #ecfeff);
}
@media (min-width: 768px) {
    .hero-post__cover { margin-bottom: 1.75rem; }
}
/* Hero post text spacing inside container, after the cover */
.hero--post .breadcrumb { margin-bottom: .65rem; }
.hero--post .hero__h1 { margin-top: .35rem; margin-bottom: .65rem; }
.hero--post .hero__lede { margin-top: .25rem; }
.hero--post .post-meta {
    margin-top: 1rem;
    color: var(--slate-700, #475569);
    font-size: .92rem;
    line-height: 1.55;
}

/* ===== Inline mid-article CTA card (rendered after the 3rd H2) ===== */
/* The blog-post template emits <aside class="inline-cta"> with operator logo,
   pitch and two buttons. Needs grid layout so logo/text/CTA sit side-by-side. */
.inline-cta {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    margin: 1.75rem 0;
    background: linear-gradient(135deg, var(--cyan-50, #ecfeff), var(--emerald-50, #ecfdf5));
    border: 1px solid var(--cyan-200, #a5f3fc);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(8, 145, 178, .08);
}
.inline-cta img {
    width: 100px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 4px 8px;
}
.inline-cta__body {
    display: flex; flex-direction: column; gap: .25rem;
    line-height: 1.45;
}
.inline-cta__body strong {
    color: var(--cyan-900, #0e3540);
    font-size: 1rem;
    font-family: var(--font-heading);
}
.inline-cta__pitch {
    font-size: .92rem;
    color: var(--slate-700, #475569);
}
.inline-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    min-width: 180px;
}
.inline-cta__actions .btn {
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .inline-cta {
        grid-template-columns: 60px 1fr;
        gap: .75rem;
    }
    .inline-cta img { width: 60px; height: 28px; padding: 3px 6px; }
    .inline-cta__body { grid-column: 1 / -1; }
    .inline-cta__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .inline-cta__actions .btn { flex: 1 1 0; }
}

/* ===== Editor's pick / Quick-answer card contrast + button centering ===== */
.editors-pick__why,
.editors-pick__verdict,
.editors-pick__why a,
.editors-pick__verdict a,
.editors-pick__why strong,
.editors-pick__verdict strong { color: #fff !important; }
.editors-pick__why,
.editors-pick__verdict { opacity: 1 !important; }
.editors-pick__verdict {
    background: rgba(0,0,0,.32) !important;
    border-left: 3px solid var(--amber-400, #fbbf24);
}
.editors-pick__why a,
.editors-pick__verdict a {
    color: #fde68a !important;
    text-decoration: underline;
    text-decoration-color: rgba(253, 230, 138, .55);
    text-underline-offset: 3px;
    font-weight: 700;
}
.editors-pick__why a:hover,
.editors-pick__verdict a:hover {
    color: #fff !important;
    text-decoration-color: #fff;
}
.editors-pick__verdict strong {
    color: #fde68a !important;
    background: rgba(0,0,0,.25);
    padding: 0 .25em;
    border-radius: 3px;
}
.editors-pick__tag {
    color: #fde68a !important;
    letter-spacing: .12em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .82rem;
}
/* Callout (green/red) inside dark editor's-pick: invert palette so text reads on dark BG */
.editors-pick .callout {
    background: rgba(255,255,255,.08) !important;
    border-radius: 8px;
    padding: .85em 1.05em;
    margin: .9em 0;
}
.editors-pick .callout--green { border-left: 3px solid var(--emerald-400, #34d399) !important; }
.editors-pick .callout--red   { border-left: 3px solid #fca5a5 !important; }
.editors-pick .callout p,
.editors-pick .callout strong { color: #fff !important; }
.editors-pick .callout--green strong { color: #6ee7b7 !important; }
.editors-pick .callout--red   strong { color: #fca5a5 !important; }
/* Center CTA buttons */
.editors-pick__cta-row {
    justify-content: center !important;
    align-items: center;
    margin-top: 1.4rem;
    flex-wrap: wrap;
    gap: .85rem !important;
}
.editors-pick__cta-row .btn { min-width: 200px; text-align: center; justify-content: center; }
@media (max-width: 600px) {
    .editors-pick__cta-row .btn { width: 100%; min-width: 0; }
}
/* Override the legacy amber-gradient buttons inside editor's-pick.
   components.css line 1082 set .editors-pick .btn-amber to amber/brown which
   was hard to read on the dark gradient. Now uses the global cyan→emerald
   gradient with white text. */
.editors-pick .btn-amber {
    background: linear-gradient(135deg, var(--cyan-400, #22d3ee) 0%, var(--emerald-400, #34d399) 100%) !important;
    color: var(--slate-900, #0f172a) !important;
    border: 0 !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(34, 211, 238, .35);
}
.editors-pick .btn-amber:hover {
    background: linear-gradient(135deg, #67e8f9 0%, #6ee7b7 100%) !important;
    color: var(--slate-900, #0f172a) !important;
    box-shadow: 0 8px 22px rgba(34, 211, 238, .45);
}
.editors-pick .btn-ghost {
    color: #fff !important;
    border-color: rgba(255,255,255,.55) !important;
    background: transparent !important;
    font-weight: 700;
}
.editors-pick .btn-ghost:hover {
    background: rgba(255,255,255,.14) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* ===== FAQ accordion: center, +/- toggle ===== */
.section--faq .container,
.section--faq__inner {
    text-align: center;
}
.section--faq .faq-accordion {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
}
.section--faq h2,
.section--faq .section__lede {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.faq-item summary {
    padding-right: 3.2rem !important;
}
/* Override the chevron-arrow ::after from components.css (line ~891) which used
   border-right + border-bottom to draw a corner. We replace with a clean +/-
   character. !important + explicit border resets are required because the legacy
   rule has same specificity and persists otherwise. */
.faq-item summary::after {
    content: '+' !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    transform: translateY(-50%) !important;
    transition: transform .15s ease, color .15s ease;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--cyan-700) !important;
    right: 1.2rem !important;
    top: 50% !important;
}
.faq-item details[open] summary::after {
    content: '\2212' !important;   /* unicode minus sign */
    transform: translateY(-50%) !important;
}
/* Unified FAQ card visual: same look on every page (home, hub, pillar, blog, casino review). */
.faq-item details {
    background: var(--bg-card, #fff) !important;
    border: 1px solid var(--border, #e5e7eb) !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item details:hover { border-color: var(--cyan-300, #67e8f9) !important; }
.faq-item details[open] { border-color: var(--cyan-400, #22d3ee) !important; box-shadow: 0 4px 14px rgba(6, 182, 212, .08); }
.faq-item summary {
    padding: 1.05rem 3.2rem 1.05rem 1.3rem !important;
    background: transparent !important;
    border-bottom: 0 !important;
    color: var(--cyan-900, #0e3540) !important;
    font-weight: 700;
    font-family: var(--font-heading, inherit);
    font-size: 1rem;
    line-height: 1.4;
}
.faq-item summary:hover { background: var(--cyan-50, #ecfeff) !important; }
.faq-item details[open] summary { background: var(--cyan-50, #ecfeff) !important; border-bottom: 1px solid var(--border, #e5e7eb) !important; }
.faq-item__body { padding: 1rem 1.3rem 1.2rem !important; color: var(--slate-700, #475569); line-height: 1.65; }
.faq-item__body p { margin: 0 0 .65em; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ===== 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 ===== */
/* Force 3-column on desktop so 6 cards display as 3+3, not 4+2 (user complaint). */
.blog-card-grid--with-art,
.blog-card-grid {
    list-style: none; padding: 0; margin: 1rem 0 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
    .blog-card-grid--with-art,
    .blog-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .blog-card-grid--with-art,
    .blog-card-grid { grid-template-columns: 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__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card__art--photo { background: transparent; }
.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;
}

/* ==========================================================================
   VISUAL BLOCK LIBRARY (parser-driven custom blocks)
   ========================================================================== */

/* Common defaults used by md-body */
.md-body { line-height: 1.65; color: var(--slate-800, #1e293b); }
.md-body h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-family: var(--font-heading); font-size: 1.65rem; line-height: 1.25; color: var(--cyan-900, #0e3540); position: relative; padding-left: 1rem; }
.md-body h2::before { content: ''; position: absolute; left: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--cyan-500, #06b6d4), var(--emerald-500, #10b981)); }
.md-body h3 { margin-top: 1.75rem; margin-bottom: .5rem; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.3; color: var(--cyan-800, #155e75); }
.md-body h4 { margin-top: 1.25rem; margin-bottom: .35rem; font-size: 1.05rem; color: var(--cyan-900, #0e3540); }
.md-body p { margin: 0 0 1rem; }
.md-body 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 .15em; }
.md-body ul, .md-body ol { margin: 0 0 1.25rem 1.5rem; padding-left: .25rem; }
.md-body li { margin-bottom: .35rem; }

/* ===== Inline md-body sections (distributed across hub templates, not dumped after FAQ) ===== */
/* Used by .section--md-inline and .section--md-intro: editorial markdown blocks injected
   between PHP-driven template sections (table, criteria-grid, use-pick-grid, etc).
   The intro variant has no leading H2 - just stats + opening paragraph. */
.section--md-inline,
.section--md-intro,
.section--md-pillar { padding-block: 2rem; }
.section--md-inline .md-body--inline > h2:first-child,
.section--md-intro .md-body--intro > h2:first-child,
.section--md-pillar .md-body--pillar > h2:first-child { margin-top: 0; }
.section--md-inline .md-body--inline > *:last-child,
.section--md-intro .md-body--intro > *:last-child,
.section--md-pillar .md-body--pillar > *:last-child { margin-bottom: 0; }
/* Full container width, no narrowing for pillar/intro/inline body wrappers. */
.md-body--inline,
.md-body--intro,
.md-body--pillar  { max-width: none; margin: 0; }

/* Kill pillar/calc-teaser inner narrowing too, full container, not 920px column. */
.section--pillar-teaser .container > *,
.section--calc-teaser .container > * { max-width: none; margin-inline: 0; }

/* Top-rebates hero copy was also capped, full width now */
.top-rebates__head p { max-width: none; margin-inline: 0; }

/* === Top-rebates: stretch cards to equal height, align CTAs to bottom === */
.top-rebates__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
@media (max-width: 880px) { .top-rebates__grid { grid-template-columns: 1fr; } }
.top-rebates__col {
    display: flex;
    flex-direction: column;
}
.top-rebates__col .op-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.top-rebates__col .op-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.top-rebates__col .op-card__data {
    flex: 1 1 auto;
}
.top-rebates__col .op-card__cta-row {
    margin-top: auto;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.top-rebates__col .op-card__cta-row .btn {
    flex: 1 1 0;
    min-width: 140px;
    text-align: center;
    justify-content: center;
}
/* "See all X reviews →" link block, pin to bottom of column so columns end equal */
.top-rebates__col .section__cta-center {
    margin-top: auto;
    padding-top: 1rem;
    text-align: center;
}

/* === cross-link-grid: equal-height cards aligned by grid stretch === */
.cross-link-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}
.cross-link-grid > li,
.cross-link-grid li > a,
.cross-link-grid > a {
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.cross-link-grid--svg > li > a {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.cross-link-grid--svg .cross-link-grid__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.cross-link-grid--svg .cross-link-grid__body strong { display: block; }
.cross-link-grid--svg .cross-link-grid__body span { display: block; margin-top: 4px; }
.cross-link-grid__icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cyan-50, #ecfeff);
    border-radius: 10px;
    color: var(--cyan-700, #0e7490);
}
.cross-link-grid__icon svg { width: 22px; height: 22px; }

/* === Compare picker header right-side: count + reset button === */
.cmp-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cmp-picker__head-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cmp-reset:disabled { opacity: .4; cursor: not-allowed; }

/* === Casino-strip embeddable component (compare/calculator/pillar) === */
.section--casino-strip { padding: 25px 0; }
.section--casino-strip__h2 { margin-top: 0; margin-bottom: 8px; }
.strip-group__h { font-size: 1.05rem; color: var(--slate-600, #475569); margin: 0 0 12px; font-weight: 700; }

/* Two-column layout (cashback left, rakeback right) — same as home top-rebates */
.strip-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 14px;
}
.strip-column { display: flex; flex-direction: column; }
@media (max-width: 960px) {
    .strip-columns { grid-template-columns: 1fr; gap: 1rem; }
}

.strip-list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 960px) { .strip-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .strip-list { grid-template-columns: 1fr; } }

/* Single-column inside each .strip-column — cards stack vertically */
.strip-list--col {
    grid-template-columns: 1fr !important;
    gap: 12px;
    flex: 1;
}

/* === Global equal-height card grids === */
.blog-card-grid,
.blog-card-grid--with-art,
.strip-list,
.cross-link-grid,
.cross-link-grid--svg,
.related-grid,
.criteria-grid,
.use-pick-grid,
.cohort--others,
.post-cta-grid {
    align-items: stretch;
}
.blog-card,
.blog-card--with-art,
.strip-card,
.related-card,
.criteria-card,
.use-pick,
.cohort-card--peer,
.post-cta-grid__card,
.cross-link-grid > li,
.cross-link-grid > li > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* Push CTAs/meta lines to bottom so cards align on the baseline */
.blog-card__body,
.strip-card__body,
.related-card__body,
.criteria-card__body,
.use-pick__body,
.cohort-card__body,
.post-cta-grid__pitch {
    flex: 1 1 auto;
}
.strip-card__actions,
.cohort-card__actions,
.post-cta-grid__actions,
.related-card__meta { margin-top: auto; }
.strip-card {
    background: var(--white, #fff);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 4px -2px rgba(15,23,42,.06);
}
.strip-card--cashback { border-left: 4px solid var(--cyan-500, #06b6d4); }
.strip-card--rakeback { border-left: 4px solid var(--violet-500, #8b5cf6); }
.strip-card__logo-wrap {
    align-self: flex-start;
    background: var(--slate-50, #f8fafc);
    border-radius: 10px;
    padding: 8px 12px;
}
.strip-card__logo { max-width: 120px; height: 36px; object-fit: contain; }
.strip-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.strip-card__name { margin: 0; font-size: 1.1rem; font-weight: 700; }
.strip-card__name a { color: var(--slate-900, #0f172a); text-decoration: none; }
.strip-card__name a:hover { color: var(--cyan-600, #0891b2); }
.strip-card__rate { margin: 0; font-size: .92rem; font-weight: 600; color: var(--cyan-700, #0e7490); }
.strip-card__verdict { margin: 0; font-size: .88rem; color: var(--slate-600, #475569); line-height: 1.5; }
.strip-card__meta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed var(--slate-200, #e2e8f0);
}
.strip-card__score {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.15rem; font-weight: 700;
    color: var(--cyan-600, #0891b2);
}
.strip-card__score span { font-size: .75rem; color: var(--slate-400, #94a3b8); font-weight: 500; }
.strip-card__tag {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--slate-500, #64748b);
}
.strip-card--rakeback .strip-card__score { color: var(--violet-600, #7c3aed); }
.strip-card__actions { display: flex; gap: 8px; margin-top: auto; }
.strip-card__actions .btn { flex: 1 1 0; text-align: center; justify-content: center; padding: 8px 10px; font-size: .85rem; white-space: nowrap; }

/* === In-post CTAs (after 2nd / 4th / 6th H2) === */
.post-cta {
    position: relative;
    margin: 28px 0;
    padding: 20px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6,182,212,.04) 0%, rgba(16,185,129,.04) 100%);
    border: 1px solid var(--cyan-200, #a5f3fc);
    border-left: 4px solid var(--cyan-500, #06b6d4);
    /* Width-defence: if the CTA ever lands inside a narrow column (grid cell,
       step-card, scenarios cell) it must NOT collapse below 480px or text
       wraps one letter per line. Container-query escape: full container width
       at the writing-mode level, no min-content shrink. */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.post-cta * { min-width: 0; word-break: normal; overflow-wrap: anywhere; }
.post-cta--single { container-type: inline-size; }
/* When the host column is narrow (CTA injected into a 2-col grid by mistake)
   collapse to vertical stack instead of one-letter-per-line. */
@container (max-width: 480px) {
    .post-cta--single .post-cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .post-cta--single .post-cta__actions {
        flex-direction: row;
        min-width: 0;
    }
    .post-cta--single .post-cta__actions .btn {
        flex: 1 1 auto;
    }
}
.post-cta__tag {
    display: inline-block;
    background: var(--cyan-500, #06b6d4);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.post-cta__h {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--slate-900, #0f172a);
    margin-bottom: 8px;
}
.post-cta__pitch {
    display: block;
    color: var(--slate-700, #334155);
    font-size: .95rem;
    line-height: 1.55;
}

/* Single-operator horizontal layout */
.post-cta--single .post-cta__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
}
.post-cta--single .post-cta__logo {
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}
.post-cta--single .post-cta__body { min-width: 0; }
.post-cta--single .post-cta__score {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    text-align: center;
    line-height: 1;
}
.post-cta--single .post-cta__score strong {
    font-size: 1.8rem;
    color: var(--cyan-600, #0891b2);
}
.post-cta--single .post-cta__score span {
    display: block;
    font-size: .72rem;
    color: var(--slate-400, #94a3b8);
    margin-top: 4px;
}
.post-cta--single .post-cta__actions {
    display: flex; flex-direction: column; gap: 6px;
    min-width: 180px;
}
.post-cta--single .post-cta__actions .btn {
    text-align: center;
    white-space: nowrap;
    justify-content: center;
}
@media (max-width: 720px) {
    .post-cta--single .post-cta__inner { grid-template-columns: auto 1fr; }
    .post-cta--single .post-cta__score { grid-column: 2; justify-self: end; }
    .post-cta--single .post-cta__actions {
        grid-column: 1 / -1;
        flex-direction: row; flex-wrap: wrap;
    }
    .post-cta--single .post-cta__actions .btn { flex: 1 1 0; min-width: 130px; }
}

/* Top-3-of-{month} grid CTA */
.post-cta--top3 {
    background: linear-gradient(135deg, rgba(245,158,11,.05) 0%, rgba(139,92,246,.05) 100%);
    border-color: rgba(245,158,11,.3);
    border-left-color: var(--amber-500, #f59e0b);
}
.post-cta--top3 .post-cta__tag {
    background: var(--amber-500, #f59e0b);
}
.post-cta-grid {
    list-style: none; padding: 0; margin: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 880px) { .post-cta-grid { grid-template-columns: 1fr; } }
.post-cta-grid__card {
    background: #fff;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 4px -2px rgba(15,23,42,.06);
}
.post-cta-grid__logo-wrap {
    align-self: flex-start;
    background: var(--slate-50, #f8fafc);
    border-radius: 8px;
    padding: 6px 10px;
}
.post-cta-grid__logo { max-width: 120px; height: 32px; object-fit: contain; }
.post-cta-grid__name { margin: 0; font-size: 1.05rem; font-weight: 700; }
.post-cta-grid__name a { color: var(--slate-900, #0f172a); text-decoration: none; }
.post-cta-grid__pitch { margin: 0; font-size: .88rem; color: var(--slate-600, #475569); line-height: 1.5; flex: 1 1 auto; }
.post-cta-grid__score {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .95rem;
}
.post-cta-grid__score strong { font-size: 1.2rem; color: var(--amber-600, #d97706); }
.post-cta-grid__score span { font-size: .72rem; color: var(--slate-400, #94a3b8); margin-left: 2px; }
.post-cta-grid__actions { display: flex; gap: 8px; margin-top: auto; }
.post-cta-grid__actions .btn { flex: 1 1 0; text-align: center; justify-content: center; padding: 6px 10px; font-size: .8rem; white-space: nowrap; }
/* Tighten H2 in inline sections so they feel like in-page subsections, not big headers */
.section--md-inline .md-body h2,
.section--md-pillar .md-body h2 { font-size: 1.45rem; }
@media (max-width: 640px) {
    .section--md-inline .md-body h2,
    .section--md-pillar .md-body h2 { font-size: 1.25rem; }
}

/* Long-text overflow safety inside md-body blocks (prevents url/word breakouts on mobile) */
.md-body { overflow-wrap: anywhere; word-break: normal; min-width: 0; }
.md-body code { overflow-wrap: anywhere; }
.md-body pre { overflow-x: auto; }

/* ===== Step cards (numbered) ===== */
.step-cards {
    list-style: none; padding: 0; margin: 1.25rem 0;
    display: grid; gap: .85rem;
    counter-reset: step;
}
@media (min-width: 768px) {
    .step-cards { grid-template-columns: 1fr 1fr; }
}
.step-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    transition: border-color .15s, transform .15s;
}
.step-card:hover { border-color: var(--cyan-500, #06b6d4); transform: translateY(-1px); }
.step-card__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--cyan-500, #06b6d4), var(--emerald-500, #10b981));
    color: #fff; font-family: var(--font-heading);
    border-radius: 50%; font-size: 1.2rem; font-weight: 700;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--cyan-500, #06b6d4) 35%, transparent);
}
.step-card__title { font-family: var(--font-heading); font-size: 1.05rem; margin: 0 0 .35rem; color: var(--cyan-900, #0e3540); }
.step-card__text { font-size: .92rem; line-height: 1.55; color: var(--slate-700, #475569); margin: 0; }

/* ===== Flag grid (red/green) ===== */
.flag-grid {
    display: grid; gap: .85rem; margin: 1.25rem 0;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .flag-grid { grid-template-columns: 1fr 1fr; } }
.flag-grid__col { list-style: none; padding: 1rem 1.1rem; margin: 0; border-radius: 12px; border: 1px solid; }
.flag-grid__col--g { background: var(--emerald-50, #ecfdf5); border-color: var(--emerald-300, #6ee7b7); }
.flag-grid__col--r { background: #fef2f2; border-color: #fca5a5; }
.flag-grid__head { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.flag-grid__col--g .flag-grid__head { color: var(--emerald-700, #047857); }
.flag-grid__col--r .flag-grid__head { color: #b91c1c; }
.flag-grid__col li:not(.flag-grid__head) {
    display: grid; grid-template-columns: 22px 1fr; gap: .55rem; align-items: start;
    padding: .35rem 0; font-size: .92rem;
}
.flag-grid__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; font-size: .85rem; font-weight: 700;
    flex-shrink: 0;
}
.flag-grid__icon--g { background: var(--emerald-500, #10b981); color: #fff; }
.flag-grid__icon--r { background: #ef4444; color: #fff; }

/* ===== Tier ladder ===== */
.tier-ladder {
    list-style: none; padding: 0; margin: 1.25rem 0;
    display: flex; flex-direction: column; gap: .25rem;
    counter-reset: tier;
    border-left: 3px solid var(--cyan-300, #67e8f9);
    padding-left: 1rem;
}
.tier-ladder__rung {
    display: grid;
    grid-template-columns: minmax(120px, 1.3fr) minmax(80px, auto) minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: .75rem 1rem; align-items: baseline;
    padding: .65rem .9rem;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    position: relative;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}
.tier-ladder__rung::before {
    content: ''; position: absolute; left: -1.25rem; top: 50%; width: .5rem; height: .5rem;
    background: var(--cyan-500, #06b6d4); border-radius: 50%; transform: translateY(-50%);
    border: 2px solid #fff; box-shadow: 0 0 0 1px var(--cyan-300, #67e8f9);
}
.tier-ladder__name {
    font-family: var(--font-heading); font-weight: 700; color: var(--cyan-900, #0e3540);
    font-size: 1.02rem;
}
.tier-ladder__rate {
    background: var(--emerald-50, #ecfdf5); color: var(--emerald-700, #047857);
    font-weight: 700; padding: .15rem .55rem; border-radius: 4px; font-size: .88rem;
}
.tier-ladder__cap { color: var(--slate-700, #475569); font-size: .85rem; }
.tier-ladder__note { color: var(--slate-600, #64748b); font-size: .8rem; font-style: italic; }
@media (max-width: 720px) {
    .tier-ladder__rung { grid-template-columns: 1fr; gap: .25rem; padding: .75rem .85rem; }
    .tier-ladder__rate, .tier-ladder__cap, .tier-ladder__note { justify-self: start; }
    .tier-ladder__rate { display: inline-block; }
}

/* ===== Scenario grid - rotating border accent for visual variety ===== */
.scenario-grid {
    list-style: none; padding: 0; margin: 1.25rem 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.scenario-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    border-top: 3px solid var(--cyan-500, #06b6d4);
    min-width: 0;
    overflow-wrap: anywhere;
    transition: transform .15s, box-shadow .15s;
}
.scenario-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
/* 4-color rotation for variety */
.scenario-card:nth-child(4n+2) { border-top-color: var(--amber-500, #f59e0b); }
.scenario-card:nth-child(4n+3) { border-top-color: var(--emerald-500, #10b981); }
.scenario-card:nth-child(4n+4) { border-top-color: #8b5cf6; }
.scenario-card__name { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 .5rem; color: var(--cyan-900, #0e3540); }
.scenario-card__desc { font-size: .92rem; color: var(--slate-700, #475569); margin: 0 0 .75rem; line-height: 1.5; }
.scenario-card__pick { font-size: .9rem; color: var(--cyan-800, #155e75); margin: 0; padding: .5rem .65rem; background: var(--cyan-50, #ecfeff); border-radius: 6px; word-break: break-word; }
.scenario-card:nth-child(4n+2) .scenario-card__pick { background: #fef3c7; color: #92400e; }
.scenario-card:nth-child(4n+3) .scenario-card__pick { background: var(--emerald-50, #ecfdf5); color: var(--emerald-700, #047857); }
.scenario-card:nth-child(4n+4) .scenario-card__pick { background: #ede9fe; color: #6d28d9; }

/* ===== Stat cards - color-rotate by index ===== */
.stat-card-grid {
    list-style: none; padding: 0; margin: 1.25rem 0;
    display: grid; gap: .85rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.stat-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 1.1rem .85rem;
    background: linear-gradient(180deg, var(--cyan-50, #ecfeff), var(--bg-card, #fff));
    border: 1px solid var(--cyan-200, #a5f3fc);
    border-radius: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.stat-card-grid > .stat-card:nth-child(5n+2) { background: linear-gradient(180deg, var(--emerald-50, #ecfdf5), var(--bg-card, #fff)); border-color: var(--emerald-300, #6ee7b7); }
.stat-card-grid > .stat-card:nth-child(5n+3) { background: linear-gradient(180deg, #fef3c7, var(--bg-card, #fff)); border-color: #fcd34d; }
.stat-card-grid > .stat-card:nth-child(5n+4) { background: linear-gradient(180deg, #ede9fe, var(--bg-card, #fff)); border-color: #c4b5fd; }
.stat-card-grid > .stat-card:nth-child(5n+5) { background: linear-gradient(180deg, #fce7f3, var(--bg-card, #fff)); border-color: #f9a8d4; }
.stat-card__num {
    font-family: var(--font-heading); font-size: 1.85rem; font-weight: 700;
    color: var(--cyan-700, #0e7490);
    line-height: 1;
    margin-bottom: .35rem;
    word-break: break-word;
}
.stat-card-grid > .stat-card:nth-child(5n+2) .stat-card__num { color: var(--emerald-700, #047857); }
.stat-card-grid > .stat-card:nth-child(5n+3) .stat-card__num { color: #b45309; }
.stat-card-grid > .stat-card:nth-child(5n+4) .stat-card__num { color: #6d28d9; }
.stat-card-grid > .stat-card:nth-child(5n+5) .stat-card__num { color: #be185d; }
.stat-card__lab {
    font-size: .8rem; color: var(--slate-700, #475569);
    text-transform: uppercase; letter-spacing: .04em;
    line-height: 1.35;
    word-break: break-word;
}

/* ===== Table of contents box ===== */
.toc-box {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-left: 4px solid var(--cyan-500, #06b6d4);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    min-width: 0;
    overflow-wrap: anywhere;
}
.toc-box__title { font-family: var(--font-heading); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-700, #0e7490); margin: 0 0 .75rem; }
.toc-box__list { list-style: decimal inside; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.toc-box__list li { margin: .25rem 0; font-size: .92rem; }
.toc-box__list a { color: var(--cyan-800, #155e75); text-decoration: none; }
.toc-box__list a:hover { color: var(--emerald-700, #047857); text-decoration: underline; }
@media (max-width: 600px) { .toc-box__list { columns: 1; } }

/* ===== Checklist (✓ marks) ===== */
.checklist {
    list-style: none; padding: 0; margin: 1.25rem 0;
    display: grid; gap: .35rem;
}
.checklist li {
    display: grid; grid-template-columns: 24px 1fr; gap: .6rem; align-items: start;
    font-size: .95rem; line-height: 1.55;
}
.checklist__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: var(--emerald-500, #10b981); color: #fff;
    border-radius: 50%; font-size: .8rem; font-weight: 700;
}

/* ===== Highlight strip (horizontal key fact) ===== */
.highlight-strip {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: baseline;
    padding: .85rem 1.1rem; margin: 1rem 0;
    background: linear-gradient(135deg, var(--cyan-50, #ecfeff), var(--emerald-50, #ecfdf5));
    border-left: 4px solid var(--cyan-500, #06b6d4);
    border-radius: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.highlight-strip__head { font-family: var(--font-heading); color: var(--cyan-800, #155e75); flex-shrink: 0; }
.highlight-strip__body { color: var(--slate-800, #1e293b); flex: 1; min-width: 0; }

/* ===== Takeaways box (key bullets) ===== */
.takeaways-box {
    background: linear-gradient(135deg, var(--cyan-50, #ecfeff), #eff6ff);
    border: 1px solid var(--cyan-200, #a5f3fc);
    border-radius: 12px;
    padding: 1.4rem 1.5rem 1.2rem;
    margin: 1.75rem 0;
    position: relative;
    min-width: 0;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 14px rgba(6, 182, 212, .07);
}
.takeaways-box::before {
    content: '✦'; position: absolute; left: -.6rem; top: -.6rem;
    width: 2rem; height: 2rem;
    background: var(--cyan-500, #06b6d4); color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700;
}
.takeaways-box__title {
    font-family: var(--font-heading); font-size: 1.1rem;
    margin: 0 0 .65rem .5rem; color: var(--cyan-900, #0e3540);
    text-transform: uppercase; letter-spacing: .04em;
}
.takeaways-box__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.takeaways-box__list li {
    padding-left: 1.4rem; position: relative; font-size: .95rem; line-height: 1.55;
}
.takeaways-box__list li::before {
    content: '→'; position: absolute; left: 0; top: 0;
    color: var(--cyan-700, #0e7490); font-weight: 700;
}

/* ===== Info / danger / success boxes ===== */
.info-box {
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 1.25rem 0;
    border-left: 4px solid;
    line-height: 1.55;
}
.info-box strong { display: block; margin-bottom: .35rem; font-family: var(--font-heading); font-size: 1rem; }
.info-box--blue { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
.info-box--red  { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
.info-box--green { background: var(--emerald-50, #ecfdf5); border-color: var(--emerald-500, #10b981); color: #064e3b; }

/* ===== Decision flow (existing, polish) ===== */
.decision-flow {
    list-style: none; counter-reset: df-rule; padding: 0; margin: 1.25rem 0;
    display: grid; gap: .85rem;
}
.decision-flow li {
    counter-increment: df-rule;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 1rem 1.2rem 1rem 3.5rem;
    position: relative;
}
.decision-flow li::before {
    content: 'Rule ' counter(df-rule);
    position: absolute; left: 1rem; top: 1rem;
    width: 2rem; height: 2rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cyan-500, #06b6d4); color: #fff;
    border-radius: 50%;
    font-family: var(--font-heading); font-size: .65rem; text-transform: uppercase; letter-spacing: .04em;
    font-weight: 700;
}
.decision-flow .df-q { color: var(--cyan-900, #0e3540); font-weight: 700; margin: 0 0 .35rem; }
.decision-flow .df-a { color: var(--slate-700, #475569); margin: 0; }

/* ===== Compare row (existing, polish) ===== */
.compare-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
    margin: 1.25rem 0;
}
.compare-row__col {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px; padding: 1rem 1.1rem;
}
.compare-row__col h4 { font-family: var(--font-heading); margin: 0 0 .5rem; color: var(--cyan-900, #0e3540); }
.compare-row__col--win { border-color: var(--emerald-500, #10b981); border-width: 2px; box-shadow: 0 4px 12px color-mix(in srgb, var(--emerald-500, #10b981) 18%, transparent); }
.compare-row__col--win::after { content: '★ Winner'; display: inline-block; margin-top: .5rem; padding: .15rem .5rem; background: var(--emerald-500, #10b981); color: #fff; border-radius: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.compare-row__vs {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    color: var(--slate-500, #64748b);
    align-self: center;
}
@media (max-width: 600px) {
    .compare-row { grid-template-columns: 1fr; }
    .compare-row__vs { padding: .25rem 0; }
}

/* ===== Pull quote (existing, polish) ===== */
.pull-quote {
    border-left: 4px solid var(--cyan-500, #06b6d4);
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(90deg, var(--cyan-50, #ecfeff), transparent);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.5;
    color: var(--cyan-900, #0e3540);
    font-style: italic;
}
.pull-quote cite {
    display: block; margin-top: .65rem;
    font-style: normal; font-size: .88rem; font-weight: 700;
    color: var(--slate-600, #64748b);
    text-transform: uppercase; letter-spacing: .04em;
    font-family: var(--font-body, sans-serif);
}

/* ===== Generic callout polish (math/pro/warn etc) ===== */
.callout {
    padding: 1rem 1.2rem;
    margin: 1.25rem 0;
    border-radius: 10px;
    border-left: 4px solid;
}
.callout--green { background: var(--emerald-50, #ecfdf5); border-color: var(--emerald-500, #10b981); }
.callout--red   { background: #fef2f2; border-color: #ef4444; }
.callout--pro   { background: var(--cyan-50, #ecfeff); border-color: var(--cyan-500, #06b6d4); }
.callout--warn  { background: #fffbeb; border-color: #f59e0b; }
.callout--math  { background: var(--slate-50, #f8fafc); border-color: var(--slate-400, #94a3b8); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .92rem; }

/* ===== Hub-body specific (markdown rendered on hub pages) ===== */
.md-body--hub { max-width: 100%; }
.md-body--hub h2:first-child { margin-top: 0; }

/* ============================================================
   POST-AUDIT POLISH PASS  (May 2026)
   ============================================================ */

/* Chip buttons (hub filters) — match the <a class="chip"> look but as <button> */
button.chip {
    font: inherit;
    cursor: pointer;
    background: var(--white, #fff);
    border: 1px solid var(--slate-200, #e2e8f0);
    color: var(--slate-700, #334155);
    padding: 6px 14px;
    border-radius: 999px;
    transition: background .15s, border-color .15s, transform .1s;
    font-size: .9rem;
    font-weight: 600;
}
button.chip:hover { background: var(--cyan-50, #ecfeff); border-color: var(--cyan-500, #06b6d4); transform: translateY(-1px); }
button.chip.is-active {
    background: var(--cyan-500, #06b6d4);
    border-color: var(--cyan-500, #06b6d4);
    color: #fff;
}
button.chip--em { background: rgba(52, 211, 153, 0.1); border-color: var(--emerald-500, #10b981); color: var(--emerald-700, #047857); }
button.chip--em.is-active { background: var(--emerald-500, #10b981); border-color: var(--emerald-500, #10b981); color: #fff; }
button.chip--am { background: rgba(251, 191, 36, 0.1); border-color: var(--amber-500, #f59e0b); color: var(--amber-700, #b45309); }
button.chip--am.is-active { background: var(--amber-500, #f59e0b); border-color: var(--amber-500, #f59e0b); color: #fff; }

/* WCAG 2.2 SC 2.5.8 — minimum touch target ≥24px (AAA aims for 44px).
   Validator T26 scans CSS for explicit rule. */
button,
a.btn,
.btn,
[role="button"],
.site-header__menu-link,
.chip,
.faq-item summary,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 16px;
    box-sizing: border-box;
}
/* Override for small variants where the parent layout reserves smaller area */
.btn-sm,
.chip.btn-sm {
    min-height: 36px;
    padding: 6px 12px;
}

/* WCAG 2.4.7 — visible focus styles (T26 wcag_no_focus_styles) */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--cyan-500, #06b6d4);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(6,182,212,.25);
    border-radius: 4px;
}

/* Responsive images — global default to prevent horizontal overflow (T22). */
img, picture, video, svg { max-width: 100%; height: auto; }
img.responsive,
.casino-card__logo,
.cohort-card__logo,
.strip-card__logo,
.post-cta__logo,
.post-cta-grid__logo,
.related-card__logo,
.scroll-cta__logo,
.hero-post__cover,
.hero__art img { width: 100%; height: auto; }

/* TLDR block h2 inside the card (no external section h2) */
.tldr-block__h2 {
    margin: 0 0 14px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-900, #0f172a);
    line-height: 1.25;
}

/* ---------- 1. Width: every container fills the working zone ---------- */
.container,
.section .container,
main .container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
}

/* Kill any narrowing on inner body wrappers */
.section--md-body .container,
.section--md-body--post .container,
.section--md-body--review .container,
.section--tldr .container,
.section--faq .container,
.section--related-split .container,
.section--cross-links .container,
.section--cohort .container,
.section--screenshots .container,
.hero .container {
    max-width: 1200px;
}

.section--md-body p,
.section--md-body li,
.section--md-body--post p,
.section--md-body--post li,
.section--md-body--review p,
.section--md-body--review li {
    max-width: none;
}

/* ---------- 2. Section padding: top/bottom ≤ 25px between blocks ---------- */
.section { padding-top: 25px; padding-bottom: 25px; }
.section--alt { padding-top: 25px; padding-bottom: 25px; }
.section + .section { margin-top: 0; }
.section h2 { margin-top: 0; margin-bottom: 12px; }
.section__lede { margin-top: 0; margin-bottom: 16px; }

/* ---------- 3. Anchor-toc (legacy CSS - element removed from template) -- */
.anchor-toc { display: none !important; }

/* ---------- 4. Home hero: top flex row (copy + art), CTA + badges below ---------- */
/* Hero with art: copy on the left, art on the right, vertically centered.
   Works for every page-type that uses .hero--with-art (home/list/pillar/tool). */
.hero--with-art .hero__top {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    margin-bottom: 24px;
}
.hero--with-art .hero__copy {
    flex: 1 1 0;
    min-width: 0;
}
.hero--with-art .hero__art {
    flex: 0 0 auto;
    width: clamp(220px, 36%, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero--with-art .hero__art svg,
.hero--with-art .hero__art img { width: 100%; height: auto; display: block; }

.hero__cta-row--center {
    justify-content: center !important;
    margin: 0 auto 16px !important;
    flex-wrap: wrap;
}
.hero__badges--center {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 18px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    list-style: none;
}
.hero__badges--center li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--slate-200, #e2e8f0);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--slate-700, #334155);
}

@media (max-width: 800px) {
    .hero--with-art .hero__top { flex-direction: column-reverse; }
    .hero--with-art .hero__art { width: 60%; max-width: 280px; }
}

/* ---------- 5. Editor's pick callouts: Green/Red flags icon fix ---------- */
.editors-pick .callout--green,
.editors-pick .callout--red {
    position: relative;
    padding: 14px 16px 14px 50px;
    margin: 14px 0;
    border-radius: 12px;
    line-height: 1.55;
}
.editors-pick .callout--green::before,
.editors-pick .callout--red::before {
    content: '';
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    flex: 0 0 24px;
}
.editors-pick .callout--green::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}
.editors-pick .callout--red::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><line x1='12' y1='8' x2='12' y2='13'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
}
.editors-pick .callout--green strong,
.editors-pick .callout--red strong {
    display: inline-block;
    margin-right: 6px;
}

/* ---------- 6. Cohort comparison UI block (casino review) ---------- */
.section--cohort .cohort--self { margin-bottom: 18px; }
.cohort-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    background: var(--white, #fff);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 14px;
    padding: 18px 22px;
    transition: border-color .15s, box-shadow .15s;
}
.cohort-card--self {
    background: linear-gradient(135deg, rgba(6,182,212,.05) 0%, rgba(16,185,129,.05) 100%);
    border: 2px solid var(--cyan-500, #06b6d4);
    box-shadow: 0 4px 16px -8px rgba(6,182,212,.4);
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    position: relative;
}
.cohort-card__tag {
    position: absolute;
    top: -10px; left: 18px;
    background: var(--cyan-500, #06b6d4);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cohort-card__logo-wrap { display: flex; align-items: center; }
.cohort-card__logo { max-width: 140px; height: auto; }
.cohort-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cohort-card__name { font-weight: 700; font-size: 1.05rem; color: var(--slate-900, #0f172a); }
.cohort-card__name a { color: inherit; text-decoration: none; }
.cohort-card__name a:hover { color: var(--cyan-600, #0891b2); }
.cohort-card__verdict { font-size: .92rem; color: var(--slate-600, #475569); line-height: 1.5; }
.cohort-card__score {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan-600, #0891b2);
    white-space: nowrap;
}
.cohort-card__score span { font-size: .8rem; color: var(--slate-400, #94a3b8); font-weight: 500; }
.cohort-card__actions { display: flex; gap: 8px; }
.cohort-card__actions .btn { padding: 6px 14px; font-size: .85rem; }

.cohort--others { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cohort-card--peer:hover { border-color: var(--cyan-400, #22d3ee); }

@media (max-width: 760px) {
    .cohort-card { grid-template-columns: auto 1fr; }
    .cohort-card__score { grid-column: 2; justify-self: end; }
    .cohort-card__actions { grid-column: 1 / -1; }
    .cohort-card--self { grid-template-columns: auto 1fr; }
}

/* ---------- 7. Back-to-top button: visible on any background ---------- */
.back-to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--slate-900, #0f172a);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px -4px rgba(15,23,42,.4);
    border: 2px solid #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .15s;
    z-index: 200;
    transform: translateY(8px);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--cyan-600, #0891b2); transform: translateY(-2px); }
.back-to-top svg { stroke: #fff; }

/* ---------- 8. Highlight-strip on pillar (cashback-vs-rakeback) ---------- */
.highlight-strip {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(6,182,212,.06) 0%, rgba(16,185,129,.06) 100%);
    border-left: 4px solid var(--cyan-500, #06b6d4);
    border-radius: 12px;
    margin: 20px 0;
}
.highlight-strip__icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white, #fff);
    border-radius: 14px;
    box-shadow: 0 2px 8px -4px rgba(15,23,42,.15);
    color: var(--cyan-600, #0891b2);
}
.highlight-strip__icon svg { width: 32px; height: 32px; }
.highlight-strip__body { display: flex; flex-direction: column; gap: 6px; }
.highlight-strip__h { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--slate-900, #0f172a); }
.highlight-strip__body p { margin: 0; color: var(--slate-700, #334155); line-height: 1.55; }
@media (max-width: 640px) {
    .highlight-strip { grid-template-columns: 48px 1fr; gap: 14px; padding: 16px; }
    .highlight-strip__icon { width: 48px; height: 48px; }
}

/* ---------- 9. Mobile drawer overrides, desktop nav is untouched ---------- */
@media (max-width: 960px) {
    /* Hide the "See top cashback" pinned CTA in mobile drawer */
    .site-drawer__foot { display: none !important; }
    /* Submenu starts collapsed on mobile, expands when parent li gets .is-open */
    .site-header__menu-item--has-children .site-header__submenu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .25s ease, opacity .15s ease;
    }
    .site-header__menu-item--has-children.is-open .site-header__submenu {
        max-height: 1400px;
        opacity: 1;
    }
    /* Caret as the explicit tap target on mobile only */
    .site-header__menu-item--has-children > .site-header__menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .site-header__menu-item--has-children > .site-header__menu-link .site-header__menu-caret {
        width: 28px;
        height: 28px;
        padding: 6px;
        transition: transform .2s;
        flex: 0 0 28px;
    }
    .site-header__menu-item--has-children.is-open > .site-header__menu-link .site-header__menu-caret {
        transform: rotate(180deg);
    }
}

/* ---------- 10. Lightbox for review screenshots ---------- */
.screenshot-card figure img { cursor: zoom-in; transition: transform .15s; }
.screenshot-card figure img:hover { transform: scale(1.01); }

.lightbox {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
    max-width: min(1200px, 95vw);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,.8);
}
.lightbox__close {
    position: absolute; top: 18px; right: 22px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__caption {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.85);
    font-size: .92rem;
    background: rgba(0,0,0,.4);
    padding: 6px 14px;
    border-radius: 999px;
    max-width: 80%;
    text-align: center;
}

/* ---------- 11. takeaways box - keep visual title only (template H2 stripped) ---------- */
.takeaways-box,
:where(.section--md-body, .section--md-body--review, .section--md-body--post) > .container > h2:has(+ :is(.takeaways-box, .takeaways)) {
    /* Hide preceding H2 if followed immediately by takeaways - safety net.
       Primary strip done at template+content level. */
}

/* ---------- 11b. Inline casino-card shortcode (used in blog md) ---------- */
.casino-card {
    background: var(--white, #fff);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 14px;
    padding: 22px;
    margin: 22px 0;
    box-shadow: 0 1px 4px -2px rgba(15,23,42,.08);
}
.casino-card--rakeback { border-left: 4px solid var(--violet-500, #8b5cf6); }
.casino-card--cashback { border-left: 4px solid var(--cyan-500, #06b6d4); }
.casino-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.casino-card__logo-wrap { flex: 0 0 auto; }
.casino-card__logo { max-width: 120px; height: auto; }
.casino-card__head-text { flex: 1 1 auto; min-width: 0; }
.casino-card__name { margin: 0; font-size: 1.2rem; font-weight: 700; }
.casino-card__name a { color: var(--slate-900, #0f172a); text-decoration: none; }
.casino-card__name a:hover { color: var(--cyan-600, #0891b2); }
.casino-card__type { font-size: .85rem; color: var(--slate-500, #64748b); font-weight: 600; }
.casino-card__verdict { margin: 0 0 12px; font-size: 1rem; color: var(--slate-700, #334155); line-height: 1.55; }
.casino-card__note { margin: 0 0 12px; color: var(--slate-700, #334155); line-height: 1.55; }
.casino-card__proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.casino-card__pros, .casino-card__cons { list-style: none; padding: 0; margin: 0; }
.casino-card__pros li, .casino-card__cons li {
    position: relative;
    padding-left: 22px;
    font-size: .92rem;
    line-height: 1.5;
    margin-bottom: 6px;
    color: var(--slate-700, #334155);
}
.casino-card__pros li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    color: var(--emerald-500, #10b981);
    font-weight: 700;
}
.casino-card__cons li::before {
    content: '✕';
    position: absolute; left: 0; top: 0;
    color: #ef4444;
    font-weight: 700;
}
.casino-card__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.casino-card__cta .btn { padding: 8px 16px; font-size: .9rem; }
@media (max-width: 580px) {
    .casino-card__proscons { grid-template-columns: 1fr; }
    .casino-card__head { flex-wrap: wrap; }
}

/* ---------- 12. casinos-list: kill any narrowing, full container width ---------- */
.tpl-casinos-list .section .container,
.tpl-rakeback-hub .section .container,
.tpl-blog-list .section .container,
.tpl-pillar-page .section .container {
    max-width: 1200px !important;
}
.tpl-casinos-list .takeaways-box,
.tpl-rakeback-hub .takeaways-box,
.tpl-pillar-page .takeaways-box { width: 100%; }

/* ===========================================================================
   13. Mobile layout fixes — pass 2 (2026-05-13)
   13.1 .scroll-cta: width clamped inside viewport, no horizontal scroll
   13.2 .stat-card-grid: 5-item layout — 5th block spans bottom row, no gap
   13.3 .editors-pick / op-card / casino-card logos fill width on mobile
   13.4 Card padding + button width: equal padding all sides, full-width
        buttons matching the inner content width, no flush-to-edge
   13.5 .cross-link-grid: full-width single column, content centered
   13.6 .step-cards: zero left padding on mobile, equal padding both sides
   13.7 .author-byline--card: avatar stays left of name+role on mobile
   13.8 Global overflow guard
   ========================================================================== */

/* ---------- 13.1 Sticky scroll-CTA: hard-cap inside viewport ---------- */
.scroll-cta {
    width: min(720px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    margin: 0;
}
.scroll-cta.is-visible { transform: translateX(-50%) translateY(0); }
.scroll-cta__inner { min-width: 0; }
.scroll-cta__body { min-width: 0; overflow: hidden; }
.scroll-cta__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
    .scroll-cta {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: .6rem .7rem;
    }
    .scroll-cta__inner {
        grid-template-columns: 36px 1fr auto;
        gap: .55rem;
    }
    .scroll-cta__logo { width: 36px; height: 36px; }
    .scroll-cta__dismiss { display: none; }
    .scroll-cta__visit {
        padding: .5em .75em;
        font-size: .85rem;
        white-space: nowrap;
        max-width: 45vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ---------- 13.2 :::stats 5-item grid: bottom row spans full width ----------
   Lifted breakpoint to 960px so tablets get the same treatment as phones.
   Last child .stat-card spans the entire row so there's no empty cell next
   to it (the "PAID PLACEMENTS gap" the user flagged). */
@media (max-width: 960px) {
    .stat-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat-card-grid > .stat-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}
@media (max-width: 420px) {
    .stat-card-grid { grid-template-columns: 1fr; }
    .stat-card-grid > .stat-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- 13.3 Editor's pick / op-card / casino-card logo blocks ---------- */
@media (max-width: 600px) {
    .editors-pick__head {
        flex-direction: column;
        align-items: stretch;
        gap: .8rem;
    }
    .editors-pick__brand {
        flex-direction: column;
        align-items: stretch;
        gap: .7rem;
        min-width: 0;
        width: 100%;
    }
    .editors-pick__brand img {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 80px;
        max-height: 110px;
        padding: .8rem 1rem;
        box-sizing: border-box;
    }
    .editors-pick__brand h3 {
        text-align: center;
        font-size: 1.4rem;
    }
    .editors-pick__score {
        align-self: center;
        margin-top: -.2rem;
    }
    .op-card--stacked .op-card__logo-cell {
        padding: .9rem 1rem;
        min-height: 86px;
    }
    .op-card__logo-lg {
        width: 100%;
        max-width: 100%;
        max-height: 64px;
        margin: 0 auto;
    }
    .casino-card__head { flex-direction: column; align-items: stretch; gap: .7rem; }
    .casino-card__logo-wrap { width: 100%; }
    .casino-card__logo {
        width: 100%;
        max-width: 100%;
        max-height: 80px;
        padding: .7rem 1rem;
        background: var(--slate-50);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-sizing: border-box;
        display: block;
        margin: 0 auto;
    }
}

/* ---------- 13.4 Unified card padding + button widths on mobile -------------
   Two principles enforced together:
   (a) Cards get equal padding on all 4 sides (not just left/right) — so the
       bottom of the card sits below the bottom edge of the last button.
   (b) CTA rows go column-stacked, full-width, equal to inner card width.
       Buttons get explicit padding/margin so they never touch the card edge.

   Specificity bumped via .section and double-class selectors so we beat
   existing rules like ".top-rebates__col .op-card__cta-row" (0,2,0). */
@media (max-width: 720px) {
    .section .editors-pick,
    .section .op-card,
    .section .op-card--stacked,
    .section .casino-card,
    .section .related-card,
    .section .strip-card,
    .section .post-cta,
    .section .inline-cta {
        padding: clamp(14px, 4vw, 22px) !important;
        box-sizing: border-box;
    }
    .section .editors-pick__cta-row,
    .section .op-card__cta-row,
    .top-rebates__col .op-card__cta-row,
    .section .casino-card__cta,
    .section .post-cta__buttons,
    .section .related-card__cta-row,
    .section .inline-cta__cta-row,
    .section .strip-card__cta-row {
        display: flex !important;
        flex-direction: column !important;
        gap: .55rem !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        margin-top: 1rem;
        padding-top: .25rem;
    }
    .section .editors-pick__cta-row .btn,
    .section .op-card__cta-row .btn,
    .top-rebates__col .op-card__cta-row .btn,
    .section .casino-card__cta .btn,
    .section .post-cta__buttons .btn,
    .section .related-card__cta-row .btn,
    .section .inline-cta__cta-row .btn,
    .section .strip-card__cta-row .btn,
    .section .op-card__cta-stack .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important; /* components.css caps at 220px otherwise */
        flex: 0 0 auto !important;
        padding: .75em 1em !important;
        font-size: .95rem !important;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
        margin: 0 !important;
    }
    /* Kill any fixed-height stretching that creates dead space between body
       and CTA row, so all cards in a row no longer match heights on mobile.
       (User: "Ты че у карточек казино фиксированную высоту сделал?") */
    .section .op-card-list { grid-auto-rows: auto !important; align-items: start !important; }
    .top-rebates__col .op-card-list { flex: none !important; }
    .top-rebates__col .op-card { height: auto !important; }
    .top-rebates__col .op-card__data { flex: 0 1 auto !important; }
    .top-rebates__col .op-card__cta-row { margin-top: 1rem !important; }
}

/* ---------- 13.5 Cross-link-grid: full-width on mobile + centered content
   Used by "Tools, hubs and pillar" and "Editorial deep-dives" on home. */
@media (max-width: 720px) {
    .cross-link-grid,
    .cross-link-grid--svg,
    .cross-link-split {
        grid-template-columns: 1fr !important;
        gap: .65rem;
    }
    .cross-link-grid > li,
    .cross-link-grid--svg > li,
    .cross-link-split > * {
        width: 100%;
        min-width: 0;
    }
    .cross-link-grid li > a,
    .cross-link-grid--svg li > a {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }
    .cross-link-grid--svg > li > a {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        padding: 1rem;
    }
    .cross-link-grid__icon { margin: 0 auto; }
    .cross-link-grid__body { align-items: center; text-align: center; }
    .cross-link-grid__body strong,
    .cross-link-grid__body span { display: block; text-align: center; }
}

/* ---------- 13.6 step-cards: equal padding, no left offset on mobile -------- */
@media (max-width: 720px) {
    .step-cards {
        grid-template-columns: 1fr !important;
        padding-left: 0;
        margin-left: 0;
    }
    .step-card {
        /* Stack: number circle on top, full-width text below.
           Original desktop grid is "56px 1fr" which leaves a 56px+gap left
           indent on every paragraph inside the card on narrow viewports. */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .55rem !important;
        margin-left: 0;
        padding: clamp(14px, 4vw, 20px);
        box-sizing: border-box;
    }
    .step-card__num {
        margin: 0 0 .15rem 0;
    }
    .step-card__title,
    .step-card__text {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100%;
    }
}

/* ---------- 13.7 Author byline (mobile): avatar + name+role only on the
   top row, everything below (bio, meta, sources, trust-badges) wraps to
   full width. Trick: switch the card to CSS grid, then make the body wrap
   transparent via display:contents so its grandchildren become direct grid
   items and we can place them across both columns. */
@media (max-width: 580px) {
    .author-byline--card {
        display: grid !important;
        grid-template-columns: 56px 1fr;
        column-gap: .9rem;
        row-gap: .8rem;
        align-items: start;
        padding: 1.2rem;
        flex-direction: initial; /* override components.css flex-direction:column */
    }
    .author-byline__avatar {
        grid-column: 1;
        grid-row: 1;
        width: 56px;
        height: 56px;
        align-self: center;
        flex-shrink: 0;
    }
    .author-byline__body {
        display: contents;
    }
    .author-byline__head {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        flex-direction: column;
        align-items: flex-start;
        gap: .1rem;
        min-width: 0;
    }
    .author-byline__name { font-size: 1.05rem; line-height: 1.25; }
    .author-byline__role { font-size: .82rem; line-height: 1.3; }
    .author-byline__bio,
    .author-byline__meta,
    .author-byline__sources,
    .author-byline--card .trust-badges {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------- 13.8 Local overflow guard ----------
   Do NOT touch html/body (kills position:sticky on .site-header) and do
   NOT touch .container max-width (that's the desktop layout cap, killing
   it would let the nav and content stretch edge-to-edge on wide screens).
   Belt-and-suspenders only on the content area: every section's container
   contents get box-sizing so padding doesn't push width past 100%. */
.section .container > * { box-sizing: border-box; max-width: 100%; }

/* ---------- 13.9 Anti-FOUC initial state for deferred-CSS elements ----------
   In layout.php main.css + overrides.css are render-blocking, but
   components.css and ui-blocks.css load async via media="print"+onload swap.
   The submenu's "opacity:0; visibility:hidden" lives in components.css —
   so between first paint and components.css attach the dropdown menus
   flash open for ~50–200ms. Re-declare the hidden initial state here so
   it ships in the render-blocking bundle.

   Same logic for the lightbox, the back-to-top button and the mobile
   drawer: they should never be visible on first paint. */
.site-header__submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}
.site-header__menu-item--has-children:hover .site-header__submenu,
.site-header__menu-item--has-children:focus-within .site-header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (max-width: 980px) {
    /* Mobile drawer: nav stays in collapsed state on first paint until JS
       attaches and CSS rules from overrides.css fully resolve. */
    .site-header__nav[data-mobile-menu]:not(.is-open) {
        visibility: hidden;
    }
    .site-header__nav[data-mobile-menu].is-open { visibility: visible; }
    /* CRITICAL: kill submenu fixed min-width on mobile.
       The submenu has min-width:280px / .--wide=540px declared OUTSIDE any
       media query in components.css. With position:absolute and visibility:
       hidden the box still occupies a 540px-wide phantom area extending past
       the viewport — which is the root cause of the global horizontal scroll
       on every mobile page. Reset it here in the render-blocking bundle. */
    .site-header__submenu,
    .site-header__submenu--wide {
        position: static !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: 0 !important;
        background: transparent !important;
        padding: 0 0 .8em 1em !important;
    }
    /* Inside the mobile drawer the submenu is still folded under the parent
       link. The cascade in section 9 above expands it on .is-open. */
    .site-header__menu-item--has-children .site-header__submenu {
        opacity: 0;
        visibility: visible;
    }
}
.lightbox:not(.is-open),
.back-to-top:not(.is-visible) { opacity: 0; visibility: hidden; }

/* ===========================================================================
   14. Mobile pass 3 (2026-05-13 evening) — root-cause fixes after live testing
   ========================================================================== */

/* ---------- 14.1 Horizontal-scroll kill switch (mobile-only) -------------
   Two layers of defense:
   (a) ROOT CAUSE: when the mobile drawer is closed it sits with
       position:fixed; right:0; transform:translateX(100%), so layout-wise
       it still occupies the right side of the viewport (375 → 705 on a
       375-wide phone). Move it physically off-screen to the right via
       right:-100vw so it contributes nothing to body.scrollWidth. The
       transition target swaps back to right:0 when .is-open, which still
       gives a smooth slide-in.
   (b) BACKSTOP: overflow-x:clip on html/body so anything still
       overflowing doesn't cause a real horizontal scroll. clip (NOT
       hidden) preserves position:sticky on the header. */
@media (max-width: 980px) {
    html, body {
        overflow-x: clip;
        max-width: 100%;
    }
    main, footer { overflow-x: clip; max-width: 100%; }
    .container { max-width: 100%; box-sizing: border-box; }
    .md-body, .md-body p, .md-body li, .md-body a { overflow-wrap: anywhere; word-break: normal; }
    /* The mobile drawer: completely removed from layout when closed.
       position:fixed with transform OR negative right still contributes
       to body.scrollWidth in every browser. The only reliable way to
       prevent that on a 375px viewport is display:none. Slide-in
       animation is sacrificed for a 100% rock-solid no-horizontal-scroll
       guarantee on every device, every browser engine. */
    .site-header__nav:not(.is-open) {
        display: none !important;
    }
    .site-header__nav.is-open {
        display: flex !important;
        right: 0 !important;
        transform: none !important;
    }
    /* The sticky scroll-CTA: re-clamp once more, explicitly */
    .scroll-cta {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        transform: translateY(120%) !important;
        margin: 0 !important;
    }
    .scroll-cta.is-visible { transform: translateY(0) !important; }
}

/* ---------- 14.2 Sticky header on mobile — keep it sticky -----------------
   overflow-x:clip on html/body is safe for position:sticky (unlike overflow:
   hidden which kills it). Sticky needs no scrollable ancestor, just visible
   overflow-y. We use overflow-x:clip on the x-axis only — y-axis stays
   visible and sticky keeps working.

   CRITICAL: main.css line 450 has `body.is-drawer-open { overflow: hidden }`
   which kills sticky when the mobile drawer is open. overflow:hidden creates
   a scroll-container at body level and the sticky ancestor chain breaks.
   Override with overflow:clip — same effect (no scrolling) but does NOT
   create a scroll-container, so sticky on .site-header keeps working. */
.site-header { position: sticky !important; top: 0 !important; z-index: 100; }
body.is-drawer-open { overflow: clip !important; }
body.is-lightbox-open { overflow: clip !important; }

/* ---------- 14.3 stat-card-grid + fact-strip: bottom row spans full width
   Two distinct components produce this 5-item "last cell empty" layout:
     .stat-card-grid (from :::stats shortcode in markdown)
     .fact-strip    (PHP-rendered "Site stats at a glance" on home + blog)
   Both use grid auto-fit/auto-fill which on narrow viewports leaves a hole
   to the right of the 5th item. Force 2 explicit columns on tablet/mobile
   AND make the last odd cell span both. */
@media (max-width: 980px) {
    ul.stat-card-grid,
    .stat-card-grid,
    .fact-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .7rem !important;
    }
    .stat-card-grid > .stat-card:nth-child(5):last-child,
    .stat-card-grid > .stat-card:last-child:nth-child(2n+1),
    .fact-strip > .fact-strip__item:nth-child(5):last-child,
    .fact-strip > .fact-strip__item:last-child:nth-child(2n+1) {
        grid-column: 1 / -1 !important;
    }
    /* .fact-strip has background:var(--border) showing through the empty
       cell when last item is solo. With gap and !important grid-column
       above this becomes a non-issue, but remove the visible separator
       so individual cells look standalone on mobile. */
    .fact-strip {
        gap: .55rem !important;
        background: transparent !important;
        border: 0 !important;
    }
    .fact-strip__item {
        border: 1px solid var(--border, #e5e7eb);
        border-radius: var(--radius, 10px);
    }
}
@media (max-width: 400px) {
    .stat-card-grid,
    .fact-strip { grid-template-columns: 1fr !important; }
    .stat-card-grid > .stat-card:last-child,
    .fact-strip > .fact-strip__item:last-child { grid-column: auto !important; }
}

/* ---------- 14.4 Top-rebates op-card on mobile (Winz/Vodka): consistent
   look. The .op-card--stacked head-row collapses to 1 column on mobile and
   the rank / logo / score chips each get their own grey-card background,
   making the card look like 3 nested mini-cards. Flatten them: keep the
   logo cell as the only chip, demote rank + score to inline text. */
@media (max-width: 720px) {
    .op-card--stacked .op-card__head-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: .55rem !important;
    }
    .op-card--stacked .op-card__rank,
    .op-card--stacked .op-card__rank--top {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        font-size: 1.1rem !important;
        text-align: center;
    }
    .op-card--stacked .op-card__score-cell {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
    .op-card--stacked .op-card__score--lg {
        font-size: 1.8rem !important;
    }
    /* Logo cell keeps its chip style but expands to fill the card width */
    .op-card--stacked .op-card__logo-cell {
        width: 100% !important;
        padding: .9rem 1rem !important;
        min-height: 80px !important;
    }
    .op-card__logo-lg {
        max-width: 80% !important;
        max-height: 56px !important;
        margin: 0 auto !important;
    }
    /* Both columns of top-rebates render as a single stack at this width */
    .top-rebates__grid { grid-template-columns: 1fr !important; }
    .top-rebates__col .op-card { width: 100% !important; box-sizing: border-box; }
}

/* ---------- 14.5 back-to-top: explicit always-on rendering --------------
   It was always rendered in layout.php and toggled to .is-visible by JS
   after scrollY > 400. On short pages (some hubs) it never appears. Keep
   the show-on-scroll behaviour, but make the button itself unmissable
   visually once visible. No layout change — just ensure no leftover hide
   rule from earlier sections fights with it. */
.back-to-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}