/* =========================================================================
   FIFA World Cup 2026 Predictions — stylesheet
   Refined dark sports-editorial theme. Matte navy-black, gold for champions.
   Type pairing: Archivo (UI / headings / data) + Newsreader (editorial body).
   ========================================================================= */

:root {
  /* surfaces */
  --bg:        #0a0c12;
  --bg-elev:   #10131d;
  --bg-elev-2: #161b29;
  --bg-glow:   #13284a;

  /* lines */
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  /* text */
  --text:       #eef1f7;
  --text-muted: #9aa4b8;
  --text-faint: #8b93a6;

  /* accents */
  --gold:       #f0c24b;
  --gold-deep:  #c9982f;
  --gold-soft:  rgba(240, 194, 75, 0.12);
  --green:      #46c46a;
  --green-soft: rgba(70, 196, 106, 0.13);
  --red:        #f0594a;
  --red-soft:   rgba(240, 89, 74, 0.13);
  --blue:       #5b9cf4;
  --blue-soft:  rgba(91, 156, 244, 0.13);

  /* type */
  --font-display: "Archivo", system-ui, -apple-system, sans-serif;
  --font-ui:      "Archivo", system-ui, -apple-system, sans-serif;
  --font-body:    "Newsreader", Georgia, "Times New Roman", serif;

  /* shape & rhythm */
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1200px;
  --content:   780px;
  --header-h:  60px;

  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 40px -24px rgba(0,0,0,0.8);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 78% -10%, rgba(91, 156, 244, 0.10), transparent 60%),
    radial-gradient(760px 480px at 6% 2%, rgba(240, 194, 75, 0.06), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #14110a; padding: 10px 16px;
  border-radius: 0 0 10px 0; font-family: var(--font-ui); font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

section { scroll-margin-top: calc(var(--header-h) + 16px); }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: #fff; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand .emblem {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold), var(--gold-deep));
  color: #14110a; font-weight: 800; font-size: 0.78rem;
}
.brand small { color: var(--gold); font-weight: 700; }
.header-nav { display: flex; gap: 22px; font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; }
.header-nav a { color: var(--text-muted); }
.header-nav a:hover { color: #fff; text-decoration: none; }

/* ----------------------------------------------------------------- hero */
.hero { padding: 56px 0 30px; position: relative; }
.hero-breadcrumb { font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-faint); margin-bottom: 20px; }
.hero-breadcrumb a { color: var(--text-muted); }
.hero-breadcrumb span { margin: 0 8px; opacity: 0.5; }

.hero h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.5rem);
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--gold); }

.hero-sub {
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: min(60ch, 100%);
  margin-bottom: 26px;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-family: var(--font-ui); font-size: 0.86rem; color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }
.hero-meta strong { color: var(--text); font-weight: 600; }

/* prediction chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; max-width: 100%; }
.chip {
  font-family: var(--font-ui); font-size: 0.86rem; font-weight: 600;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--text); min-width: 0; max-width: 100%;
}
.chip .k { color: var(--text-faint); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.chip.win { background: var(--gold-soft); border-color: rgba(240,194,75,0.35); }
.chip.win .v { color: var(--gold); font-weight: 800; }
.chip.up .v { color: var(--green); font-weight: 700; }
.chip.dn .v { color: var(--red); font-weight: 700; }

/* trust box + share */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.trust-box {
  flex: 1 1 320px;
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 18px;
  box-shadow: var(--shadow);
}
.trust-box .ico { font-size: 1.5rem; line-height: 1; }
.trust-box .tb-title { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: #fff; letter-spacing: 0; margin: 0 0 2px; }
.trust-box p { margin: 0; font-family: var(--font-ui); font-size: 0.84rem; color: var(--text-muted); line-height: 1.45; }

.btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--bg-elev-2); color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: #1d2231; border-color: var(--line-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(150deg, var(--gold), var(--gold-deep)); color: #14110a; border-color: transparent; }
.btn-gold:hover { background: linear-gradient(150deg, #f6cf66, var(--gold)); }
.btn.copied { background: var(--green-soft); border-color: var(--green); color: var(--green); }

/* ----------------------------------------------------------------- ads */
/* Ad slots are INVISIBLE to readers until a real ad fills them.
   Paste your ad code (e.g. AdSense <ins class="adsbygoogle">) inside an .ad-slot.
   An empty slot renders nothing — no box, no border, no "Advertisement" text. */
.ad-slot { display: block; margin: 0; text-align: center; }
.ad-slot:empty { display: none; }                 /* nothing shown when there is no ad */
.ad-slot:not(:empty) { margin: 28px 0; }           /* breathing room only when an ad is present */
.ad-label {                                        /* optional label — add it INSIDE a filled slot */
  display: block; font-family: var(--font-ui); font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px;
}
/* collapse unfilled AdSense units so readers never see blank space */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* sticky mobile bottom ad */
.ad-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(13, 16, 24, 0.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-strong);
  padding: 8px 12px; min-height: 56px;
}
.ad-sticky .ad-label { font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.ad-sticky .placeholder { font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-muted); }
.ad-sticky .ad-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--text-muted);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1;
}
.ad-sticky[hidden] { display: none !important; }

/* ----------------------------------------------------------------- key predictions / quick answer */
.section-block { padding: 14px 0; }

.keyfacts {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow);
}
.keyfacts h2 { font-size: 1.18rem; font-family: var(--font-ui); margin-bottom: 4px; }
.keyfacts .lead { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.keyfacts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.keyfacts .row { background: var(--bg-elev); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.keyfacts dt { font-family: var(--font-ui); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 0; }
.keyfacts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text); }
.keyfacts dd.gold { color: var(--gold); }

.quick-answer {
  background: linear-gradient(180deg, rgba(240,194,75,0.07), rgba(240,194,75,0.02));
  border: 1px solid rgba(240,194,75,0.28); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 24px 26px;
}
.quick-answer h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 12px; }
.quick-answer p { font-size: 1.12rem; line-height: 1.66; margin-bottom: 0; }
.quick-answer strong { color: #fff; font-weight: 700; font-family: var(--font-body); }
.quick-answer .gold { color: var(--gold); }

.answer-summary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}
.answer-summary h2 {
  font-size: 1.12rem;
  font-family: var(--font-ui);
  margin-bottom: 8px;
}
.answer-summary p {
  color: #dfe4ee;
  margin-bottom: 14px;
}
.answer-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}
.answer-summary li {
  color: var(--text-muted);
}
.answer-summary strong {
  color: #fff;
}

/* ----------------------------------------------------------------- main grid (sticky TOC + content) */
.layout { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 30px 0 60px; }

.toc-aside { display: none; }
.toc-mobile { margin: 8px 0 4px; }
.toc-mobile > summary {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; color: #fff;
  cursor: pointer; list-style: none; padding: 14px 16px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
}
.toc-mobile > summary::-webkit-details-marker { display: none; }
.toc-mobile > summary::after { content: "▾"; color: var(--gold); transition: transform 0.2s ease; }
.toc-mobile[open] > summary::after { transform: rotate(180deg); }
.toc-mobile ol { margin: 8px 0 0; padding: 8px 0; list-style: none; counter-reset: toc; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toc-mobile li { counter-increment: toc; }
.toc-mobile a { display: block; padding: 9px 16px; font-family: var(--font-ui); font-size: 0.92rem; color: var(--text-muted); }
.toc-mobile a::before { content: counter(toc) ". "; color: var(--text-faint); }
.toc-mobile a:hover { color: #fff; text-decoration: none; background: var(--bg-elev-2); }

.content { min-width: 0; }
.content > section { margin-bottom: 46px; }
.content h2.section-title { font-size: clamp(1.55rem, 3.6vw, 2.1rem); margin-bottom: 8px; }
.content .section-intro { color: var(--text-muted); margin-bottom: 22px; max-width: 64ch; }
.content .section-intro a { color: var(--blue); }

/* prose */
.prose { max-width: var(--content); }
.prose p { color: #dfe4ee; }

/* ----------------------------------------------------------------- model cards */
.model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.model-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.model-card .pct { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold); letter-spacing: -0.03em; line-height: 1; }
.model-card h3 { font-family: var(--font-ui); font-size: 0.98rem; font-weight: 700; letter-spacing: 0; margin: 8px 0 6px; }
.model-card p { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }
.model-bar { height: 6px; border-radius: 99px; background: var(--bg-elev-2); overflow: hidden; }
.model-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.92rem; }
caption { text-align: left; font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-faint); padding: 10px 14px 0; caption-side: top; }
thead th {
  text-align: left; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-faint); padding: 11px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,0.012); }
td .reason { color: var(--text-muted); font-size: 0.88rem; }
.num { font-variant-numeric: tabular-nums; }

/* status markers in standings */
.pos { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-faint); }
.tag { display: inline-block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; vertical-align: middle; margin-left: 8px; font-family: var(--font-ui); }
.tag-win  { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(240,194,75,0.35); }
.tag-q    { background: var(--green-soft); color: var(--green); border: 1px solid rgba(70,196,106,0.3); }
.tag-3rd  { background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(91,156,244,0.3); }
.tag-out  { background: var(--bg-elev-2); color: var(--text-faint); border: 1px solid var(--line); }

.winner-cell { color: var(--gold); font-weight: 700; }
.upset { color: var(--red); font-weight: 700; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 2px 0; font-family: var(--font-ui); font-size: 0.78rem; color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ----------------------------------------------------------------- group cards */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.group-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.group-card .gc-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.group-card .gc-letter { font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.group-card h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.group-card .table-wrap { border: none; border-radius: 0; }
.group-card table { font-size: 0.9rem; }
.group-card .gc-logic { padding: 14px 18px 18px; }
.group-card .gc-logic p { margin: 0; font-size: 1rem; line-height: 1.6; color: #dbe0ea; }
.group-card .gc-logic .lbl { font-family: var(--font-ui); font-weight: 700; color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* ----------------------------------------------------------------- final feature */
.final-feature {
  background:
    radial-gradient(600px 300px at 50% -40%, rgba(240,194,75,0.12), transparent 70%),
    var(--bg-elev);
  border: 1px solid rgba(240,194,75,0.28); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
}
.final-feature .ff-label { font-family: var(--font-ui); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.final-score { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 5vw, 40px); flex-wrap: wrap; }
.final-score .team { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.final-score .team .name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.4rem); letter-spacing: -0.02em; }
.final-score .team.champ .name { color: var(--gold); }
.final-score .team .role { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.final-score .score { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 8vw, 3.6rem); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.final-feature .trophy { font-size: 2rem; margin-bottom: 8px; }
.final-why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; text-align: left; }
.final-why .col { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.final-why h3 { font-family: var(--font-ui); font-size: 1rem; letter-spacing: 0; margin-bottom: 8px; }
.final-why .champ-h { color: var(--gold); }
.final-why p { font-size: 1rem; color: #dbe0ea; margin: 0; }

/* ----------------------------------------------------------------- summary cards */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sum-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.sum-card .k { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.sum-card .v { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.015em; }
.sum-card.gold { border-color: rgba(240,194,75,0.35); background: var(--gold-soft); }
.sum-card.gold .v { color: var(--gold); }
.sum-card.green .v { color: var(--green); }
.sum-card.red .v { color: var(--red); }
.sum-card.blue .v { color: var(--blue); }

/* ----------------------------------------------------------------- internal links */
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.link-card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); text-decoration: none; }
.link-card::after { content: "→"; color: var(--gold); }

/* ----------------------------------------------------------------- methodology */
.method-list { display: grid; gap: 10px; padding: 0; margin: 0 0 18px; list-style: none; }
.method-list li { display: flex; gap: 12px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--font-ui); font-size: 0.92rem; }
.method-list b { color: #fff; font-weight: 700; }
.method-list .m-ico { color: var(--gold); flex: none; }
.sources { font-family: var(--font-ui); font-size: 0.86rem; color: var(--text-muted); }
.sources ul { padding-left: 18px; }
.sources li { margin-bottom: 4px; }

/* ----------------------------------------------------------------- FAQ */
.faq details {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.02rem; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 14px 18px 18px; }
.faq .faq-body p { margin: 0; color: #d9dee9; font-size: 1.03rem; }

/* ----------------------------------------------------------------- author */
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.author-box .avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--gold), var(--gold-deep)); color: #14110a; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.author-box .a-name { font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: #fff; margin: 0 0 2px; }
.author-box .a-role { font-family: var(--font-ui); font-size: 0.82rem; color: var(--gold); margin: 0 0 8px; }
.author-box p { font-family: var(--font-ui); font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 96px; color: var(--text-muted); font-family: var(--font-ui); font-size: 0.86rem; }
.site-footer .foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .disclaimer { font-size: 0.78rem; color: var(--text-faint); max-width: 70ch; line-height: 1.6; }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 720px) {
  .model-grid, .group-grid, .summary-grid, .link-grid, .final-why, .keyfacts dl { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  /* sticky mobile ad stays hidden until you enable it — see note in index.html */
  .final-why { gap: 12px; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 981px) {
  .layout { grid-template-columns: 256px minmax(0, 1fr); gap: 48px; }
  .toc-mobile { display: none; }
  .toc-aside { display: block; }
  .toc-aside .toc-inner {
    position: sticky; top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
  }
  .toc-aside .toc-title { font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
  .toc-aside ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc-aside li { counter-increment: toc; }
  .toc-aside a {
    display: block; padding: 7px 0 7px 16px; margin-left: -1px;
    font-family: var(--font-ui); font-size: 0.88rem; color: var(--text-muted);
    border-left: 2px solid transparent; line-height: 1.35;
  }
  .toc-aside a:hover { color: #fff; text-decoration: none; }
  .toc-aside a.active { color: var(--gold); border-left-color: var(--gold); font-weight: 600; }
}

@media (min-width: 1100px) {
  .model-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================= subpage section rhythm
   All subpages use <main class="wrap"> with sections as direct children.
   This gives every section proper breathing room without touching the homepage layout. */
main.wrap > section + section { margin-top: 2.5rem; }
h2.section-title { margin-bottom: 16px; }
main.wrap { padding-bottom: 3rem; }
