/*
 * BET7K editorial design system · static HTML/CSS
 * Independent 7K Bet guide, Brazilian market · November 2026
 * Responsive columns: sidebar layout above 940px; header pills above 1230px.
 * No remote fonts, no third-party JavaScript, no advertising script.
 */
:root {
    --coal: #091218;
    --coal-2: #101d25;
    --coal-3: #182930;
    --lime: #b9f63c;
    --lime-dark: #395700;
    --lime-soft: #f0fbcd;
    --teal: #1e807c;
    --paper: #f5f8f3;
    --white: #ffffff;
    --ink: #18282f;
    --muted: #576d73;
    --stroke: #d8e5dd;
    --danger: #f2b44e;
    --danger-light: #fff9e9;
    --radius-sm: 12px;
    --radius: 19px;
    --radius-lg: 28px;
    --shadow: 0 12px 42px rgb(23 45 38 / 7%);
    --content-width: 1280px;
    --focus: #149169;
    color-scheme: light;
    scroll-padding-top: 28px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.76 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: #136552; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #0d463b; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
::selection { color: var(--coal); background: #d5ff78; }
.site-width { width: min(var(--content-width), calc(100% - 64px)); margin-inline: auto; }
.skip-link {
    position: absolute;
    top: -130px;
    left: 20px;
    z-index: 999;
    padding: 10px 18px;
    background: white;
    color: black;
    border: 2px solid black;
    border-radius: 8px;
    font-weight: 750;
}
.skip-link:focus { top: 14px; }

/* Header: top-level navigation restored, with a compact dropdown for small screens. */
/* Small light-dot indicator is kept for editorial metadata elsewhere. */
.signal, .rail-dot, .hero-signal {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    vertical-align: middle;
    margin-right: 8px;
}
.site-header {
    position: relative;
    z-index: 10;
    background: var(--coal);
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.header-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}
.site-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #c2e8d1;
    min-width: 0;
}
.site-brand img { width: 157px; height: auto; object-fit: contain; }
.site-brand span {
    display: inline-block;
    padding-left: 14px;
    border-left: 1px solid rgb(255 255 255 / 24%);
    font-size: .63rem;
    line-height: 1.55;
    font-weight: 780;
    letter-spacing: .14em;
    max-width: 100px;
}
.header-right { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* Primary navigation: distinct pill links, visually consistent with the BET7K UI.
 * The links remain semantic anchors for keyboard users and crawlers.
 */
.header-nav {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
}
.header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 10px;
    border: 1px solid #3d524e;
    border-radius: 12px;
    color: #e5f3ea;
    background: linear-gradient(180deg, #1b302d 0%, #142522 100%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 3px 0 #071510;
    font-size: .765rem;
    font-weight: 760;
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease,
                background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.header-nav a:hover, .header-nav a:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #2c5040 0%, #234338 100%);
    border-color: #91d968;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 5px 0 #071510;
}
.header-nav a:active { transform: translateY(1px); box-shadow: 0 1px 0 #071510; }
.header-nav a[aria-current="page"] {
    color: #142415;
    background: linear-gradient(180deg, #d1ff72 0%, var(--lime) 100%);
    border-color: #caff72;
    box-shadow: inset 0 1px 0 #e7ffbc, 0 3px 0 #6c8f22;
    font-weight: 850;
}
.header-nav a[aria-current="page"]:hover { color: #142415; }
.cta-short { display: none; }
.header-method {
    color: var(--coal);
    background: var(--lime);
    border-radius: 99px;
    padding: 12px 15px;
    line-height: 1.25;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
    white-space: nowrap;
}
.header-method:hover { background: #d4ff70; color: var(--coal); transform: translateY(-1px); }
.mobile-nav { display: none; }

/* Hero refined: shorter visual height, subdued background, and H1 lifted forward.
 * This keeps the hero edge-to-edge while allowing the section below to enter the viewport.
 */
.hero {
    position: relative;
    display: flex;
    align-items: stretch;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 16 / 7.15;
    min-height: clamp(380px, 39vw, 560px);
    max-height: min(62vh, 560px);
    overflow: hidden;
    color: #ffffff;
    background: #0b1519;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: saturate(.76) brightness(.60) contrast(.92);
    transform: scale(.94);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgb(5 15 19 / 82%) 0%, rgb(5 15 19 / 58%) 32%, rgb(5 15 19 / 26%) 64%, rgb(5 15 19 / 42%) 100%),
        linear-gradient(180deg, rgb(5 15 19 / 22%) 0%, rgb(5 15 19 / 50%) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 100%;
    padding-block: 0 clamp(54px, 8.2vw, 108px);
}
.hero-content h1 {
    margin: 0 0 0 clamp(56px, 7vw, 126px);
    color: #ffffff;
    font-size: clamp(2.1rem, 3.75vw, 3.7rem);
    line-height: 1.06;
    letter-spacing: -.046em;
    font-weight: 850;
    max-width: 760px;
    text-wrap: balance;
    text-shadow: 0 5px 20px rgb(0 0 0 / 72%);
    transform: translateY(-52px);
}
.hero-accent {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, transparent, var(--lime), transparent);
    opacity: .75;
}
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--stroke); }
.breadcrumbs { padding-block: 13px; }
.breadcrumbs ol { display: flex; list-style: none; gap: 11px; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumbs li { font-size: .8rem; font-weight: 640; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: #90a7a6; margin-right: 11px; }
.breadcrumbs a { text-decoration: none; color: #1d7361; }

/* Legal notice is highly prominent without pretending to authorize gambling. */
.regulatory-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 19px;
    align-items: start;
    margin-top: 32px;
    padding: 25px 30px;
    border: 1px solid #edce93;
    border-left: 6px solid var(--danger);
    border-radius: var(--radius);
    background: var(--danger-light);
    box-shadow: 0 4px 24px rgb(58 45 13 / 4%);
}
.regulatory-icon {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: #57360f; border-radius: 50%;
    color: #ffdc9a; font-size: 1.35rem; font-weight: 850;
    line-height: 1;
}
.notice-topline { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.notice-topline span:first-child { font-size: .68rem; font-weight: 860; letter-spacing: .12em; color: #805008; }
.notice-topline .notice-date { font-size: .7rem; color: #7d6846; }
.regulatory-notice h2 { margin: 5px 0 8px; color: #482d14; font-size: 1.24rem; line-height: 1.35; letter-spacing: -.02em; }
.regulatory-notice p { max-width: 1150px; margin: 0; color: #554834; font-size: .875rem; line-height: 1.65; }
.regulatory-notice p strong { font-weight: 790; }

.provenance {
    margin-top: 22px;
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.provenance .author-avatar { width: 62px; height: 62px; object-fit: cover; border-radius: 15px; border: 3px solid #e8f6da; }
.byline-col { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.byline-label { color: var(--muted); font-size: .68rem; font-weight: 710; text-transform: uppercase; letter-spacing: .045em; }
.byline-col strong, .byline-date strong { font-size: .865rem; font-weight: 770; }
.byline-col a { text-decoration: none; color: #253b3b; }
.byline-col a:hover { color: #178260; }
.byline-divider { border-left: 1px solid var(--stroke); height: 38px; margin-inline: 8px; }
.byline-date { display: flex; flex-direction: column; gap: 1px; margin-left: auto; line-height: 1.35; }

/* Article layout: explicit named columns protect reading order and width.
 * Nav stays LEFT on wide screens, reading column stays RIGHT.
 */
.content-grid {
    display: grid;
    grid-template-columns: minmax(245px, 282px) minmax(0, 1fr);
    grid-template-areas: "index article";
    align-items: start;
    column-gap: clamp(28px, 3.3vw, 48px);
    padding-block: 38px 90px;
    width: 100%;
    min-width: 0;
}
.article-body {
    grid-area: article;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.article-body .lead-box {
    font-size: 1.06rem;
    line-height: 1.92;
    font-weight: 560;
    background: #fff;
    padding: 23px 26px 24px 29px;
    border: 1px solid var(--stroke);
    border-left: 5px solid var(--lime);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}
.article-body .lead-box > :first-child { margin-top: 0; }
.article-body .lead-box > :last-child { margin-bottom: 0; }
.article-body p { margin: 13px 0 19px; }
.article-body h2 {
    font-size: clamp(1.34rem, 2.25vw, 1.81rem);
    line-height: 1.32;
    letter-spacing: -.036em;
    font-weight: 820;
    margin: 0 0 20px;
    text-wrap: balance;
    color: #11262b;
}
.article-body h3 {
    margin: 26px 0 12px;
    color: #243d42;
    font-weight: 790;
    font-size: 1.21rem;
    line-height: 1.4;
}
.article-body h2, .article-body h3 { scroll-margin-top: 25px; }
.article-body .content-section {
    margin-top: 42px;
    border-top: 1px solid var(--stroke);
    padding-top: 35px;
    min-width: 0;
}
.article-body .content-section:first-of-type { border-top: none; margin-top: 20px; padding-top: 0; }
.article-body .topic-section h2 { padding-left: 15px; border-left: 4px solid var(--lime); }
.article-body ul, .article-body ol { padding-left: 26px; margin-block: 15px 22px; }
.article-body li { padding-left: 4px; margin-bottom: 8px; }
.article-body li::marker { color: #4f8924; }
.article-body strong { font-weight: 760; }
.article-body a { color: #176752; }
.article-body a:hover { color: #0a4235; }
.article-body blockquote {
    border-left: 4px solid #8fe05e;
    background: #eaf5e5;
    padding: 12px 22px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 26px 0;
}
.editorial-figure {
    margin: 27px 0 35px;
    border: 1px solid #cfded1;
    border-radius: var(--radius);
    overflow: hidden;
    background: #101c21;
    box-shadow: var(--shadow);
}
.editorial-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.editorial-figure figcaption {
    padding: 12px 18px;
    background: #fff;
    color: #597071;
    font-size: .75rem;
    line-height: 1.6;
}
.illustration-label { color: #3c6b5b; font-weight: 720; }
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin: 26px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: #fff;
    scrollbar-width: thin;
}
.data-table { width: 100%; border-collapse: collapse; min-width: 580px; font-size: .875rem; line-height: 1.6; }
.data-table th {
    text-align: left;
    color: #d6f6c9;
    padding: 13px 16px;
    background: #14292e;
    vertical-align: top;
    font-size: .79rem;
    font-weight: 790;
}
.data-table td { padding: 13px 16px; border-top: 1px solid var(--stroke); vertical-align: top; }
.data-table tr:nth-child(even) td { background: #f6faf4; }
.data-table strong { color: #253b34; }
.sources-section {
    background: #fff;
    border: 1px solid var(--stroke) !important;
    border-radius: var(--radius);
    padding: 28px 30px !important;
    margin-top: 50px !important;
}
.sources-section h2 { font-size: 1.28rem; }
.sources-section li { font-size: .875rem; overflow-wrap: anywhere; line-height: 1.67; }
.sources-section a { text-decoration-thickness: 1px; }
.faq-section h2 { margin-bottom: 23px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius-sm); overflow: clip; }
.faq-item[open] { border-color: #a6d89c; }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 17px 56px 17px 19px;
    color: #203539;
    font-weight: 750;
    font-size: .925rem;
    line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%; right: 20px;
    transform: translateY(-50%);
    color: #527d36;
    font-size: 1.45rem;
    font-weight: 450;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; border-top: 1px solid var(--stroke); color: #506b6c; font-size: .92rem; }
.faq-answer p { margin: 13px 0 0; }
.related-section ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; }
.related-section li { margin: 0; padding: 0; }
.related-section a {
    display: block;
    height: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    color: #225846;
    text-decoration: none;
    font-size: .89rem;
    font-weight: 710;
    transition: border-color .15s ease, transform .15s ease;
}
.related-section a:hover { border-color: #8dd476; transform: translateY(-2px); }
.article-body .content-section > p:last-child:has(strong:first-child) { overflow-wrap: anywhere; }

/* Left editorial index: readable, tactile navigation card. */
.left-sidebar {
    grid-area: index;
    min-width: 0;
    width: 100%;
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid #bbd6c4;
    border-top: 4px solid var(--lime);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgb(9 32 27 / 12%);
    scrollbar-width: thin;
    scrollbar-color: #93b5a0 #f4f9f4;
}
.left-sidebar:focus-within { border-color: #86ba67; }

.toc { margin: 0; }
.toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    color: #102a21;
    font-size: .94rem;
    font-weight: 850;
    line-height: 1.35;
    list-style: none;
    padding: 3px 2px 14px;
    border-bottom: 1px solid #deeadf;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before {
    content: "≡";
    color: #3f7835;
    font-size: 1.3rem;
    line-height: .75;
    margin-right: 1px;
}
.toc-counter {
    color: #335c4a;
    background: #eaf7df;
    border: 1px solid #c5e7b6;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: .7rem;
    font-weight: 760;
    margin-left: auto;
    white-space: nowrap;
}
.toc nav { display: grid; gap: 9px; padding-top: 16px; }

.toc nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 10px 30px 10px 12px;
    border: 1px solid #bed6c4;
    border-radius: 11px;
    color: #133d30;
    background: linear-gradient(180deg, #ffffff 0%, #eaf6e9 100%);
    box-shadow: 0 3px 0 #bdd2c1, 0 6px 13px rgb(22 55 40 / 9%);
    text-decoration: none;
    font-size: .83rem;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: break-word;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.toc nav a::after {
    content: "↗";
    position: absolute;
    right: 11px;
    color: #619c4c;
    font-size: .86rem;
    font-weight: 800;
}
.toc nav a:hover, .toc nav a:focus-visible {
    color: #123e30;
    border-color: #8acb84;
    background: linear-gradient(180deg, #fafff4, #e7f8d8);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #b3d6ae, 0 8px 16px rgb(22 55 40 / 10%);
}
.toc nav a:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #cadbce;
}
.ad-panel {
    margin-top: 24px;
    padding: 17px;
    background: #1b2d2d;
    border: 1px dashed #678067;
    border-radius: var(--radius-sm);
}
.ad-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #bad7ae; }
.ad-meta strong { color: #0b2012; background: var(--lime); border-radius: 5px; padding: 2px 6px; font-weight: 850; }
.ad-panel p { color: #d1e0d8; font-size: .72rem; line-height: 1.7; margin: 12px 0 10px; }
.ad-panel p strong { color: #fff; }
.ad-panel a { color: #bff5a2; font-size: .71rem; }

.next-reading {
    border-top: 1px solid #d5e4d8;
    background: linear-gradient(180deg,#eff5eb,#f9fbf5);
    padding: 67px 0 82px;
}
.next-kicker { font-size: .71rem; font-weight: 830; letter-spacing: .16em; color: #46753d; }
.next-reading h2 { font-size: clamp(1.7rem,3vw,2.35rem); margin: 8px 0 28px; letter-spacing: -.045em; line-height: 1.25; }
.next-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.next-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 21px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.next-card:hover { transform: translateY(-4px); border-color: #9ccf80; box-shadow: var(--shadow); }
.next-icon { align-self: flex-end; color: #407030; font-size: 1.2rem; }
.next-card strong { font-size: 1.1rem; color: #172c30; line-height: 1.35; }
.next-card > span:last-child { color: var(--muted); font-size: .84rem; line-height: 1.6; }

.site-footer { background: var(--coal); color: #d3e1df; padding-top: 70px; }
.footer-top { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.75fr) minmax(0,.75fr); gap: 80px; padding-bottom: 52px; }
.footer-identity img { width: 160px; height: auto; }
.footer-identity p { margin: 17px 0; max-width: 370px; font-size: .84rem; line-height: 1.75; color: #b1c4c4; }
.footer-email a { font-weight: 750; color: var(--lime); font-size: .9rem; }
.footer-menu { display: flex; flex-direction: column; align-items: start; gap: 12px; }
.footer-menu h2 { color: #fff; font-size: .95rem; margin: 0 0 8px; }
.footer-menu a { color: #bdd0ca; font-size: .83rem; line-height: 1.4; text-decoration: none; }
.footer-menu a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid #283b3e; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px 27px; font-size: .72rem; color: #a0b9ad; }
.footer-bottom a { color: #c8eeba; }

.error-page { min-height: 100vh; display: flex; flex-direction: column; background: #0a151b; }
.error-main { width: min(700px,calc(100% - 42px)); margin: auto; padding-block: 90px; }
.error-card { padding: 54px; border: 1px solid #466547; background: #13251e; border-radius: var(--radius-lg); text-align: center; }
.error-code { color: var(--lime); font-size: 5rem; line-height: 1; font-weight: 860; letter-spacing: -.07em; }
.error-card h1 { color: white; font-size: 2.1rem; letter-spacing: -.035em; }
.error-card p { color: #c1d5d0; max-width: 480px; margin-inline: auto; }
.error-links { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 25px; }
.error-links a { color: #cafbb5; }
.error-links .action-button { color: #102119; background: var(--lime); border-radius: 999px; text-decoration: none; font-weight: 800; padding: 12px 21px; }
.error-page .site-footer { padding-top: 0; }


@media (max-width: 1380px) {
    .header-inner { gap: 16px; }
    .header-nav { max-width: 760px; gap: 8px; }
    .header-nav a { padding-inline: 8px; font-size: .74rem; }
}

@media (max-width: 1230px) {
    .header-nav { display: none; }
    .mobile-nav { display: block; position: relative; }
    .mobile-nav summary {
        display: flex;
        align-items: center;
        gap: 9px;
        list-style: none;
        cursor: pointer;
        background: #193329;
        border: 1px solid #47664a;
        border-radius: 9px;
        padding: 10px 13px;
        color: white;
        font-size: .84rem;
        font-weight: 780;
    }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav[open] summary { color: #13261a; background: var(--lime); }
    .mobile-nav-panel {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        width: min(350px, calc(100vw - 30px));
        padding: 15px;
        border: 1px solid #375947;
        border-radius: var(--radius);
        z-index: 50;
        box-shadow: 0 25px 55px rgb(0 0 0 / 30%);
        background: #10251e;
    }
    .mobile-links { display: grid; gap: 8px; }
    .mobile-links a {
        display: grid;
        grid-template-columns: minmax(0,1fr) 12px;
        gap: 8px;
        min-height: 44px;
        padding: 11px 12px;
        border: 1px solid #42674c;
        border-radius: 11px;
        background: linear-gradient(180deg,#213d32,#173026);
        text-decoration: none;
        color: #e5f1e7;
        font-size: .85rem;
        font-weight: 710;
        align-items: center;
    }
    .mobile-links a:hover, .mobile-links a:focus-visible { border-color: var(--lime); background: #305240; }
    .mobile-links a[aria-current="page"] {
        color: #10241a;
        background: linear-gradient(180deg,#daff8c,var(--lime));
        border-color: #ceff75;
        font-weight: 850;
    }
    .mobile-nav-legal {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        border-top: 1px solid #365444;
        padding-top: 12px;
        margin-top: 10px;
    }
    .mobile-nav-legal a { font-size: .73rem; color: #e1ecca; }
}
@media (max-width: 1150px) {
    .content-grid { grid-template-columns: minmax(225px, 248px) minmax(0, 1fr); gap: 28px; }
    .left-sidebar { padding: 16px; }
    .footer-top { gap: 45px; }
}

@media (max-width: 940px) {
    .site-width { width: min(var(--content-width), calc(100% - 44px)); }
    .content-grid {
        display: flex;
        flex-direction: column;
        grid-template-areas: none;
        gap: 26px;
        max-width: 820px;
        margin-inline: auto;
    }
    .content-grid .article-body { width: 100%; order: 1; }
    .left-sidebar {
        width: 100%;
        order: 0;
        position: static;
        max-height: none;
        overflow: visible;
    }
    .toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .next-cards { gap: 12px; }
}
@media (max-width: 700px) {
    :root { scroll-padding-top: 12px; }
    body { font-size: 15px; line-height: 1.75; }
    .site-width { width: min(var(--content-width),calc(100% - 32px)); }
    .header-inner { min-height: 74px; gap: 12px; }
    .site-brand { gap: 6px; }
    .site-brand img { width: min(124px,29vw); }
    .site-brand span { display: none; }
    .hero { aspect-ratio: 4 / 4.7; min-height: 340px; max-height: none; }
    .hero-media img { object-position: center; object-fit: cover; transform: scale(1); }
    .hero::before {
        background: linear-gradient(0deg, rgb(6 16 20 / 86%) 0%,
                        rgb(6 16 20 / 33%) 42%, transparent 68%);
    }
    .hero-content { padding-block: 0 30px; }
    .hero-content h1 {
        margin-left: 0;
        font-size: clamp(1.95rem, 7vw, 2.7rem);
        line-height: 1.08;
        max-width: 600px;
        transform: translateY(-16px);
    }
    .toc nav { grid-template-columns: 1fr; }
    .left-sidebar { padding: 17px; }
    .regulatory-notice { grid-template-columns: 1fr; gap: 12px; padding: 19px 18px; margin-top: 18px; border-radius: var(--radius-sm); }
    .regulatory-icon { width: 32px; height: 32px; font-size: 1.1rem; }
    .regulatory-notice h2 { font-size: 1.08rem; }
    .regulatory-notice p { font-size: .81rem; }
    .provenance { padding: 15px; gap: 12px; align-items: start; }
    .provenance .author-avatar { width: 47px; height: 47px; border-radius: 10px; }
    .byline-col { min-width: 35%; }
    .byline-divider { display: none; }
    .byline-date { margin-left: 0; min-width: 100%; padding-top: 9px; border-top: 1px solid var(--stroke); }
    .content-grid { padding-top: 26px; padding-bottom: 56px; }
    .article-body .lead-box { font-size: .995rem; line-height: 1.81; padding: 17px 17px 17px 20px; border-radius: 0 13px 13px 0; }
    .article-body h2 { font-size: 1.48rem; }
    .article-body h3 { font-size: 1.13rem; }
    .article-body .content-section { margin-top: 34px; padding-top: 30px; }
    .article-body .topic-section h2 { padding-left: 11px; border-left-width: 3px; }
    .article-body ul, .article-body ol { padding-left: 22px; }
    .sources-section { padding: 21px 17px !important; }
    .related-section ul { grid-template-columns: 1fr; }
    .editorial-figure { margin-inline: 0; }
    .editorial-figure figcaption { font-size: .72rem; }
    .next-reading { padding-block: 45px 55px; }
    .next-cards { grid-template-columns: 1fr; }
    .next-card { min-height: 124px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
    .footer-identity { grid-column: 1 / -1; }
    .site-footer { padding-top: 48px; }
    .error-card { padding: 35px 21px; }
}
@media (max-width: 390px) {
    .site-brand span { display: none; }
    .site-brand img { width: 142px; }
    .hero-content h1 { font-size: clamp(1.75rem, 7.3vw, 2.05rem); }
    .notice-topline { gap: 3px; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-identity { grid-column: 1; }
    .breadcrumbs ol { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
    .site-header, .site-topbar, .left-sidebar, .right-sidebar, .next-reading, .site-footer { display: none !important; }
    .hero { min-height: 0; color: black; background: transparent; }
    .hero-media { display: none; }
    .hero-content { padding-block: 10px; }
    .hero-content h1 { color: black; text-shadow: none; }
    .content-grid { display: block; }
    .site-width { width: 100%; }
    .article-body a::after { content: " (" attr(href) ")"; font-size: .7em; }
}

/* Header action and low-width collision prevention. */
@media (max-width: 700px) {
    .header-method {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 10px 12px;
        font-size: .73rem;
        line-height: 1.2;
    }
    .cta-long { display: none; }
    .cta-short { display: inline; }
    .header-inner { justify-content: space-between; }
    .header-right { gap: 7px; }
    .mobile-nav summary { font-size: .78rem; padding: 9px 10px; }
}
@media (max-width: 360px) {
    .site-brand img { width: 106px; }
    .header-method { padding: 9px 10px; }
    .mobile-nav summary { padding: 8px; }
}

/* Partner advertising */
.header-right .partner-nav,.partner-ad .ad-cta{display:inline-flex;align-items:center;justify-content:center;background:#83e600;color:#000;border:1px solid #83e600;border-radius:9px;padding:10px 15px;font-weight:800;text-decoration:none;white-space:nowrap;transition:background .18s,color .18s,transform .18s,box-shadow .18s}.header-right .partner-nav:hover,.partner-ad .ad-cta:hover{background:#a4f52b;color:#000;box-shadow:0 4px 16px #0003;transform:translateY(-2px)}.header-right .partner-nav:active,.partner-ad .ad-cta:active{transform:scale(.97)}.partner-ad-wrap{width:min(1200px,calc(100% - 32px));margin:24px auto}.partner-ad{box-sizing:border-box;display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:8px 16px;background:linear-gradient(120deg,#16271b,#263824);color:#fff;border:1px solid #34452b;border-radius:14px;padding:14px 18px;margin:24px 0;box-shadow:0 4px 16px #0002}.partner-ad.ad-block--big{padding:24px;grid-template-columns:160px minmax(0,1fr) auto}.partner-ad .ad-logo img{display:block;width:100%;height:auto;max-height:76px;object-fit:contain}.partner-ad .ad-title{display:block;font-size:1.05rem;font-weight:800;color:#fff;line-height:1.25}.partner-ad.ad-block--big .ad-title{font-size:1.35rem}.partner-ad .ad-sub,.partner-ad .ad-promo{font-size:.85rem;line-height:1.3;margin:3px 0!important;color:#fff}.partner-ad .ad-promo b{margin-left:6px;color:#83e600!important}.partner-ad .ad-note{grid-column:1/-1;font-size:.72rem;line-height:1.25;margin:0!important;color:#fff}.partner-ad .ad-cta:focus-visible,.partner-nav:focus-visible{outline:3px solid #fff;outline-offset:3px}@media(max-width:700px){.partner-ad,.partner-ad.ad-block--big{grid-template-columns:80px minmax(0,1fr);padding:12px;gap:8px 12px}.partner-ad .ad-cta{grid-column:1/-1}.partner-ad.ad-block--big .ad-title{font-size:1.1rem}.header-right .partner-nav{font-size:.75rem;padding:7px 9px}}

/* Subtle partner block motion */
@keyframes partnerFrameGlow {
  0%,100% { border-color:#34452b; box-shadow:0 4px 16px #0002; }
  50% { border-color:#83e600; box-shadow:0 0 12px #83e60055; }
}
@keyframes partnerButtonBounce {
  0%,72%,100% { transform:translateY(0); }
  79% { transform:translateY(-4px); }
  86% { transform:translateY(0); }
  92% { transform:translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .partner-ad { animation:partnerFrameGlow 4s ease-in-out 3; }
  .partner-ad .ad-cta { animation:partnerButtonBounce 6s ease-in-out 3; }
  .partner-ad .ad-cta:hover, .partner-ad .ad-cta:focus-visible, .partner-ad .ad-cta:active { animation:none; }
}
