/* CrickBet — styles.css (v9 FSL11 Sunlit League)
   Native CSS only. No framework. Mobile-first. WCAG AA contrast.
   Sections: reset, base, type, layout, header, drawer, footer,
   hero scoreboard, headline feed, topic matrix, photo essay,
   methodology panel, live digest, verification, colophon,
   cards, tables, FAQ accordion, CTA pair, mobile sticky,
   responsive breakpoints, accessibility helpers.
*/

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
button { cursor: pointer; }

/* ---------- base ---------- */
html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  border-radius: var(--r); z-index: 999; transition: top .15s;
}
.skip-link:focus { top: 16px; color: var(--paper); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); }
h4 { font-size: 17px; }
p { color: var(--ink-2); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  padding: 4px 8px; border: 1px solid var(--accent); border-radius: var(--r-sm);
  background: var(--accent-tint);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }

/* ---------- layout ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { max-width: 720px; }
.section-head .section-lede { max-width: 480px; color: var(--ink-2); }
.section-rule { height: 1px; background: var(--rule); margin: 0; border: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--nav-bg); color: var(--nav-ink);
  border-bottom: 1px solid var(--nav-rule);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--nav-ink); text-decoration: none; }
.brand .brand-mark { width: 32px; height: 32px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; color: var(--nav-ink); font-family: var(--font-mono); font-weight: 800; font-size: 14px; }
.brand .brand-name { font-family: var(--font-sans); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .brand-tag { font-family: var(--font-mono); font-size: 11px; color: var(--scoreboard-muted); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--nav-ink); text-decoration: none;
  padding: 8px 12px; font-size: 14px; font-weight: 600;
  border-radius: var(--r); transition: background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,247,238,0.08); color: var(--nav-ink); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: var(--r); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-2); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--nav-ink); border-color: rgba(255,247,238,0.30); }
.btn-ghost:hover { background: rgba(255,247,238,0.08); color: var(--nav-ink); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }
.hamburger {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--r); background: transparent;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--nav-ink); margin: 3px 0; transition: transform .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- mobile drawer ---------- */
.mobile-drawer {
  position: fixed; top: 64px; right: 0; bottom: 0; left: 0;
  background: var(--nav-bg); color: var(--nav-ink);
  z-index: var(--z-drawer);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .2s, opacity .2s;
  overflow-y: auto;
}
.mobile-drawer[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-drawer nav { padding: 16px; }
.mobile-drawer nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a {
  display: block; padding: 14px 16px; color: var(--nav-ink); text-decoration: none;
  border-radius: var(--r); font-weight: 600; border-bottom: 1px solid var(--nav-rule);
}
.mobile-drawer nav a:hover { background: rgba(255,247,238,0.06); }
.mobile-drawer .drawer-cta { display: flex; flex-direction: column; gap: 12px; padding: 24px 16px; }
.mobile-drawer .drawer-cta .btn { padding: 16px; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--nav-bg); color: var(--nav-ink); padding: 64px 0 24px; margin-top: 64px; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 { color: var(--nav-ink); font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; opacity: 0.6; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--nav-ink); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--nav-ink); text-decoration: underline; }
.site-footer .footer-brand { max-width: 360px; }
.site-footer .footer-brand p { color: var(--scoreboard-muted); font-size: 14px; margin-top: 12px; }
.site-footer .footer-bottom {
  border-top: 1px solid var(--nav-rule); padding-top: 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--scoreboard-muted); font-size: 13px;
}
.site-footer .footer-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .footer-meta a { font-family: var(--font-mono); font-size: 12px; }
.site-footer .legal-strip {
  background: rgba(255,247,238,0.04); border-radius: var(--r); padding: 16px; margin-top: 32px;
  color: var(--scoreboard-muted); font-size: 12px; line-height: 1.6;
}
.site-footer .legal-strip strong { color: var(--nav-ink); }

/* ---------- hero scoreboard ---------- */
.hero { padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 80px); background: var(--paper); }
.hero-grid {
  display: grid; grid-template-columns: 5fr 4fr 3fr;
  gap: clamp(24px, 3vw, 48px); align-items: stretch;
}
.hero-headline h1 { margin: 16px 0 20px; }
.hero-headline .lede { margin-bottom: 28px; max-width: 38ch; }
.hero-cta-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta-pair .btn { padding: 14px 24px; font-size: 15px; }
.hero-utility {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 20px;
}
.hero-utility h3 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 8px; }
.hero-utility .util-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--rule); }
.hero-utility .util-row:first-of-type { border-top: 0; padding-top: 0; }
.hero-utility .util-label { font-weight: 700; color: var(--ink); font-size: 14px; }
.hero-utility .util-val { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* signature: scoreboard */
.scoreboard {
  background: var(--scoreboard-bg); color: var(--scoreboard-ink);
  border-radius: var(--r-lg); padding: 24px;
  border: 1px solid var(--scoreboard-rule);
  font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.scoreboard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.scoreboard .sb-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--scoreboard-muted);
}
.scoreboard .sb-status { display: flex; align-items: center; gap: 6px; }
.scoreboard .sb-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 0 rgba(21,128,61,0.4); }
.scoreboard .sb-team {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: center;
}
.scoreboard .sb-team .sb-side { display: flex; flex-direction: column; gap: 4px; }
.scoreboard .sb-team .sb-side.left { align-items: flex-start; }
.scoreboard .sb-team .sb-side.right { align-items: flex-end; text-align: right; }
.scoreboard .sb-team .sb-abbr { font-size: 13px; color: var(--scoreboard-muted); letter-spacing: 0.08em; }
.scoreboard .sb-team .sb-name { font-size: 17px; font-weight: 700; color: var(--scoreboard-ink); font-family: var(--font-sans); }
.scoreboard .sb-team .sb-score { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.scoreboard .sb-team .sb-overs { font-size: 12px; color: var(--scoreboard-muted); }
.scoreboard .sb-vs { color: var(--scoreboard-muted); font-size: 12px; }
.scoreboard .sb-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--scoreboard-rule); }
.scoreboard .sb-meta .sb-cell { display: flex; flex-direction: column; gap: 2px; }
.scoreboard .sb-meta .sb-k { font-size: 10px; color: var(--scoreboard-muted); text-transform: uppercase; letter-spacing: 0.16em; }
.scoreboard .sb-meta .sb-v { font-size: 14px; color: var(--scoreboard-ink); font-weight: 700; }
.scoreboard .sb-foot { font-size: 11px; color: var(--scoreboard-muted); border-top: 1px solid var(--scoreboard-rule); padding-top: 12px; }

/* ---------- headline feed ---------- */
.feed { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(24px, 3vw, 48px); }
.feed .lead-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.feed .lead-card .eyebrow { align-self: flex-start; }
.feed .lead-card h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; color: var(--ink); }
.feed .lead-card .lead-meta { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.feed .lead-card .lead-meta a { color: var(--accent); text-decoration: none; }
.feed .lead-card p { color: var(--ink-2); }
.feed .rail { display: flex; flex-direction: column; gap: 16px; }
.feed .rail .rail-item {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 16px;
}
.feed .rail .rail-item .rail-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.feed .rail .rail-item h4 { font-size: 15px; line-height: 1.35; margin-top: 4px; color: var(--ink); }
.feed .rail .rail-item h4 a { color: var(--ink); text-decoration: none; }
.feed .rail .rail-item h4 a:hover { color: var(--accent); }

/* ---------- topic matrix ---------- */
.topic-matrix {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 16px;
}
.topic-matrix .tm {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.topic-matrix .tm:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-2); }
.topic-matrix .tm .tm-icon { width: 28px; height: 28px; color: var(--accent); }
.topic-matrix .tm .tm-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.topic-matrix .tm .tm-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.topic-matrix .tm .tm-arrow { color: var(--accent); font-family: var(--font-mono); font-size: 14px; align-self: flex-end; }
.topic-matrix .tm-1 { grid-column: span 3; grid-row: span 2; background: var(--paper-2); }
.topic-matrix .tm-2 { grid-column: span 3; grid-row: span 1; }
.topic-matrix .tm-3 { grid-column: span 2; grid-row: span 1; }
.topic-matrix .tm-4 { grid-column: span 2; grid-row: span 1; }
.topic-matrix .tm-5 { grid-column: span 2; grid-row: span 2; }
.topic-matrix .tm-6 { grid-column: span 2; grid-row: span 1; }
.topic-matrix .tm-7 { grid-column: span 2; grid-row: span 1; }

/* ---------- photo essay ---------- */
.photo-essay { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.photo-essay .essay-row {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.photo-essay .essay-row.reverse { grid-template-columns: 7fr 5fr; }
.photo-essay .essay-row .essay-img {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 4/3;
}
.photo-essay .essay-row .essay-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-essay .essay-row .essay-text { display: flex; flex-direction: column; gap: 12px; }
.photo-essay .essay-row .essay-text .caption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- methodology panel ---------- */
.methodology {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 3vw, 48px); align-items: start;
}
.methodology .method-head h2 { margin-bottom: 12px; }
.methodology .method-head p { color: var(--ink-2); }
.methodology table { width: 100%; border-collapse: collapse; }
.methodology table th, .methodology table td {
  text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.methodology table th {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.methodology table td.num { font-family: var(--font-mono); font-weight: 700; color: var(--ink); text-align: right; }
.methodology table tr:last-child td { border-bottom: 0; }

/* ---------- live digest ---------- */
.live-digest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.live-digest .ld {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.live-digest .ld .ld-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.live-digest .ld .ld-head .ld-status { display: flex; align-items: center; gap: 6px; color: var(--positive); }
.live-digest .ld .ld-head .ld-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-digest .ld .ld-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-digest .ld .ld-teams .ld-team { display: flex; flex-direction: column; }
.live-digest .ld .ld-teams .ld-team .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.live-digest .ld .ld-teams .ld-team .abbr { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.live-digest .ld .ld-teams .ld-score { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); }
.live-digest .ld .ld-foot { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; }

/* ---------- tabbed comparison ---------- */
.tabbed-cmp {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(20px, 2.5vw, 32px);
}
.tabbed-cmp .tab-list {
  display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 24px; flex-wrap: wrap;
}
.tabbed-cmp .tab-list label {
  padding: 12px 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.tabbed-cmp .tab-list label:hover { color: var(--ink); }
.tabbed-cmp input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tabbed-cmp input[type="radio"]:checked + label { color: var(--accent); border-bottom-color: var(--accent); }
.tabbed-cmp .tab-panel { display: none; }
.tabbed-cmp #cmp-1:checked ~ .panels #panel-1,
.tabbed-cmp #cmp-2:checked ~ .panels #panel-2,
.tabbed-cmp #cmp-3:checked ~ .panels #panel-3,
.tabbed-cmp #cmp-4:checked ~ .panels #panel-4 { display: block; }
.tabbed-cmp .tab-panel table { width: 100%; border-collapse: collapse; }
.tabbed-cmp .tab-panel th, .tabbed-cmp .tab-panel td {
  text-align: left; padding: 12px; border-bottom: 1px solid var(--rule); font-size: 14px;
}
.tabbed-cmp .tab-panel th { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.tabbed-cmp .tab-panel td.num { font-family: var(--font-mono); text-align: right; font-weight: 700; }

/* ---------- verification guide (accordion) ---------- */
.verify-list { display: flex; flex-direction: column; gap: 12px; max-width: 880px; margin: 0 auto; }
.verify-list details {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 16px 20px;
}
.verify-list details[open] { border-color: var(--accent); box-shadow: var(--shadow-1); }
.verify-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.verify-list summary::-webkit-details-marker { display: none; }
.verify-list summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--accent);
  width: 24px; text-align: center; transition: transform .2s;
}
.verify-list details[open] summary::after { content: "−"; }
.verify-list details .v-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15px; }

/* ---------- editorial colophon ---------- */
.colophon {
  display: grid; grid-template-columns: 4fr 4fr 4fr; gap: 24px;
}
.colophon .col-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.colophon .col-card h3 { font-size: 17px; color: var(--ink); }
.colophon .col-card p { font-size: 14px; color: var(--ink-2); }
.colophon .col-card .col-sig { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }

/* ---------- data tables ---------- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; text-align: left; }
.data-table th { background: var(--paper-2); font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.data-table td.num { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: center;
}
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: var(--scoreboard-muted); }
.cta-banner .cta-banner-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-banner .btn-primary { background: var(--accent); color: #fff; }
.cta-banner .btn-light { background: transparent; color: var(--paper); border-color: rgba(255,247,238,0.30); }
.cta-banner .btn-light:hover { background: rgba(255,247,238,0.08); color: var(--paper); }

/* ---------- cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.card .card-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; }
.card h3 { font-size: 19px; color: var(--ink); line-height: 1.25; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .card-foot { margin-top: auto; padding-top: 12px; }
.card .card-foot a { font-weight: 700; font-size: 14px; text-decoration: none; }

/* ---------- loose card (for inline text) ---------- */
.loose-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 20px; margin: 20px 0;
}
.loose-card h3, .loose-card h4 { color: var(--ink); margin-bottom: 8px; }
.loose-card p { color: var(--ink-2); }

/* ---------- page hero (sub pages) ---------- */
.page-hero { padding: clamp(48px, 6vw, 80px) 0; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.page-hero .container { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; }
.page-hero h1 { margin: 12px 0 16px; }
.page-hero .lede { color: var(--ink-2); }
.page-hero .page-hero-img { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule); }
.page-hero .page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* ---------- TOC ---------- */
.toc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 20px; margin: 24px 0; }
.toc h3 { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px; }
.toc ol { list-style: decimal inside; display: flex; flex-direction: column; gap: 6px; }
.toc ol li a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.toc ol li a:hover { color: var(--accent); }

/* ---------- prose (article body) ---------- */
.prose { max-width: 72ch; margin: 0 auto; }
.prose h2 { margin: 32px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose ul { margin: 16px 0; padding-left: 0; list-style: none; }
.prose ul li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--ink-2); font-size: 17px; }
.prose ul li::before { content: "•"; color: var(--accent); position: absolute; left: 8px; top: 0; font-weight: 700; }
.prose ol { margin: 16px 0; padding-left: 24px; list-style: decimal; }
.prose ol li { margin-bottom: 8px; color: var(--ink-2); font-size: 17px; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 8px 0 8px 20px;
  font-style: italic; color: var(--ink-2); margin: 24px 0;
}
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- inline image row ---------- */
.inline-image-row {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin: 24px 0;
  align-items: center;
}
.inline-image-row.reverse { grid-template-columns: 7fr 5fr; }
.inline-image-row img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--rule);
}
.inline-image-row .iir-caption { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.inline-image-row p { color: var(--ink-2); }

/* ---------- mobile sticky CTA ---------- */
.mobile-sticky {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: var(--ink); border-top: 1px solid var(--scoreboard-rule);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.mobile-sticky .btn { width: 100%; padding: 14px; font-size: 15px; }
body { padding-bottom: 0; }
body.has-sticky { padding-bottom: 64px; }

/* ---------- compliance strip ---------- */
.compliance-strip {
  background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.compliance-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.compliance-strip .comp-text { font-size: 13px; color: var(--ink-2); }
.compliance-strip .comp-text strong { color: var(--ink); }
.compliance-strip .comp-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.10em; text-transform: uppercase; }

/* ---------- trust strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 20px;
}
.trust-strip .ts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.trust-strip .ts .ts-num { font-family: var(--font-mono); font-size: 26px; font-weight: 800; color: var(--ink); }
.trust-strip .ts .ts-label { font-size: 13px; color: var(--ink-2); }

/* ---------- disclaimer (YMYL footer) ---------- */
.disclaimer {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 16px 20px; margin: 32px 0; font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
.disclaimer strong { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .header-cta .btn-ghost { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .feed { grid-template-columns: 1fr; }
  .topic-matrix { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .topic-matrix .tm-1, .topic-matrix .tm-2, .topic-matrix .tm-3,
  .topic-matrix .tm-4, .topic-matrix .tm-5, .topic-matrix .tm-6, .topic-matrix .tm-7 { grid-column: span 1; grid-row: span 1; }
  .photo-essay .essay-row, .photo-essay .essay-row.reverse { grid-template-columns: 1fr; }
  .methodology { grid-template-columns: 1fr; }
  .live-digest { grid-template-columns: 1fr; }
  .colophon { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .cta-banner-cta { justify-content: flex-start; }
  .page-hero .container { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .inline-image-row, .inline-image-row.reverse { grid-template-columns: 1fr; }
  .tabbed-cmp .tab-list { overflow-x: auto; flex-wrap: nowrap; }
  .tabbed-cmp .tab-list label { white-space: nowrap; }
  body.has-sticky { padding-bottom: 80px; }
  .mobile-sticky { display: block; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .container-narrow { padding: 0 16px; }
  .topic-matrix { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .hero-cta-pair { flex-direction: column; }
  .hero-cta-pair .btn { width: 100%; }
  .compliance-strip .comp-meta { display: none; }
  .scoreboard .sb-team .sb-score { font-size: 24px; }
  .scoreboard .sb-meta { grid-template-columns: 1fr; gap: 8px; }
}

@media (min-width: 981px) {
  .mobile-sticky { display: none !important; }
  body.has-sticky { padding-bottom: 0; }
}

/* ---------- a11y helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* section[id] scroll-margin for sticky nav */
section[id], h1[id], h2[id] { scroll-margin-top: 80px; }

/* no-js fallback for tabbed comparison */
.no-js .tabbed-cmp .tab-panel { display: block; }
.no-js .tabbed-cmp .tab-list { display: none; }
.no-js .tabbed-cmp .panels::before { content: "Comparison overview"; display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px; }

/* print */
@media print {
  .site-header, .site-footer, .mobile-sticky, .hamburger, .mobile-drawer, .compliance-strip { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
