/* Tokens. Light by default, dark by system preference or the toggle. */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #e9eef5;
  --ink: #0b2a4a;
  --ink-2: #4a5565;
  --ink-3: #5f6b7a;
  --line: #d5dbe3;
  --accent: #165dad;
  --accent-ink: #ffffff;
  --accent-soft: #e3eefa;
  --record: #15803d;
  --record-soft: #dcfce7;
  --hl: #22c55e;
  --warn-soft: #fbf0d4;
  --warn-ink: #6b4e00;
  --live: #15803d;
  --soon: #8a6a10;
  --radius: 10px;
  --max: 1080px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08182b; --surface: #0f2238; --surface-2: #16304d; --ink: #e9eef5;
    --ink-2: #b7c3d3; --ink-3: #8fa0b5; --line: #24405f; --accent: #2e9bff;
    --accent-ink: #08182b; --accent-soft: #12345a; --record: #4ade80; --record-soft: #12382a; --hl: #22c55e;
    --warn-soft: #3a2f12; --warn-ink: #f1d58a; --live: #4ade80; --soon: #e3c46a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08182b; --surface: #0f2238; --surface-2: #16304d; --ink: #e9eef5;
    --ink-2: #b7c3d3; --ink-3: #8fa0b5; --line: #24405f; --accent: #2e9bff;
    --accent-ink: #08182b; --accent-soft: #12345a; --record: #4ade80; --record-soft: #12382a; --hl: #22c55e;
    --warn-soft: #3a2f12; --warn-ink: #f1d58a; --live: #4ade80; --soon: #e3c46a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 44em; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* Draft strip */
.draft { background: var(--warn-soft); color: var(--warn-ink); font-size: .85rem; text-align: center; padding: 6px 16px; }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.05rem; margin-right: auto; }
.logo svg { width: 26px; height: 26px; flex: none; }
nav.main { display: flex; gap: 2px; flex-wrap: nowrap; }
nav.main a { white-space: nowrap; }
nav.main a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .95rem; }
nav.main a:hover { background: var(--surface-2); color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
nav.main a.cta { background: var(--accent); color: var(--accent-ink); }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 6px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
details.menu { display: none; position: relative; }
details.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; color: var(--ink); font-size: .95rem; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu nav { position: absolute; right: 0; top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; width: min(80vw, 260px); display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
details.menu nav a { color: var(--ink); text-decoration: none; padding: 9px 10px; border-radius: 6px; }
details.menu nav a[aria-current="page"] { background: var(--surface-2); }
@media (max-width: 1060px) {
  header.site nav.main { display: none; }
  details.menu { display: block; }
}

/* Sections */
.hero { padding: 56px 0 28px; }
.hero .eyebrow, .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--accent); font-weight: 650; margin-bottom: .8em; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4em; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); background: transparent; }
main { padding-bottom: 64px; }
section { margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two, .grid.four { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--mono); color: var(--accent); font-size: .85rem; margin-bottom: .4em; }
.card.soft { background: var(--surface-2); }

.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 1.6em 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: .9rem; }

.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 1.2em 0; }
.note.warn { border-color: var(--soon); background: var(--warn-soft); color: var(--warn-ink); }
.note p:last-child { margin: 0; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 1.5em; position: relative; margin: .35em 0; }
ul.ticks li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .55em; height: .55em; border-radius: 2px; background: var(--accent); }

/* Provenance sample line */
.prov-line { font-family: var(--mono); font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-wrap: anywhere; }
.prov-line .tag { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--record-soft); color: var(--record); margin-right: 6px; }

/* Coverage */
.region { margin-top: 2.4em; }
.region h2 { margin-top: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.region h2 small { font-family: var(--font); font-size: .9rem; color: var(--ink-3); font-weight: 400; }
.gov { margin: 1.4em 0 .4em; font-weight: 650; font-size: 1.02rem; }
.bodies { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bodies { grid-template-columns: 1fr 1fr; } }
.body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.body-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.body-name { font-weight: 600; }
.pill { font-size: .75rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.pill.live { color: var(--live); }
.pill.soon { color: var(--soon); }
.pill.na { color: var(--ink-3); border-style: dashed; }
.tier.cap { background: var(--accent-soft); color: var(--ink); }
.status-note { margin: .4em 0 0; }
dl.depth { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 10px 0 0; font-size: .9rem; }
dl.depth dt { color: var(--ink-3); }
dl.depth dd { margin: 0; }
.tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tier { font-size: .75rem; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.legend { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 1em; }
@media (min-width: 760px) { .legend { grid-template-columns: 1fr 1fr; } }

/* Form */
form.quote { display: grid; gap: 14px; max-width: 640px; }
form.quote label { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; }
form.quote input, form.quote select, form.quote textarea { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
form.quote textarea { min-height: 120px; }
form.quote .row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { form.quote .row { grid-template-columns: 1fr 1fr; } }
form.quote button { justify-self: start; font: inherit; font-weight: 600; padding: 11px 20px; border-radius: 8px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.stub-result { display: none; }
.stub-result.shown { display: block; }

/* Demo outline */
.outline { counter-reset: s; }
.outline .card { position: relative; }
.skeleton { height: .75em; border-radius: 4px; background: var(--surface-2); margin: .55em 0; }
.skeleton.w60 { width: 60%; } .skeleton.w80 { width: 80%; } .skeleton.w40 { width: 40%; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: .9rem; background: var(--surface); }
footer.site .wrap { display: grid; gap: 14px; }
@media (min-width: 760px) { footer.site .wrap { grid-template-columns: 1.4fr 1fr; } }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
footer.site a { color: var(--ink-2); }

/* ---- Landing pages (Nov 2026 redesign) ---- */
.hero.split { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero.split { grid-template-columns: 1.05fr 1fr; padding-top: 64px; } }
.hero.split h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }

/* An illustrative question-and-answer exchange */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.answer .q { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px 12%; font-size: .97rem; }
.answer .a { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; margin: 0 0 12px; }
.answer .a strong { font-weight: 600; }
.answer .src { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.answer .cap { margin: 12px 0 0; font-size: .8rem; color: var(--ink-3); }
.label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.label.official { background: var(--record-soft); color: var(--record); }
.label.machine { background: var(--warn-soft); color: var(--warn-ink); }
.label.link { border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }

/* Real catches from one briefing */
.catches { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .catches { grid-template-columns: repeat(3, 1fr); } }
.catch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.catch .amt { font-family: var(--serif); font-size: 2rem; line-height: 1.1; display: block; margin-bottom: 6px; }
.catch p { color: var(--ink-2); margin: 0 0 10px; }
.catch a { font-size: .88rem; }
.kicker { color: var(--ink-3); margin-top: -.3em; }

/* Video placeholders: the shot list, visible until the real videos exist */
.videos { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.videos.two { }
@media (min-width: 760px) { .videos.two { grid-template-columns: repeat(2, 1fr); } }
figure.vid { margin: 0; }
.vid .screen { aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px dashed var(--ink-3); background: var(--surface-2); display: grid; place-items: center; text-align: center; padding: 12px; }
.vid .play { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 8px; }
.vid .play::after { content: ""; border-left: 14px solid var(--accent-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.vid .ph { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.vid figcaption { padding-top: 10px; font-size: .92rem; }
.vid figcaption b { display: block; }
.vid figcaption span { color: var(--ink-3); font-size: .85rem; }

/* Numbered steps */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* Audience cross-links and the closing band */
.aud { display: block; text-decoration: none; color: var(--ink); }
.aud:hover { border-color: var(--accent); }
.aud .go { color: var(--accent); font-weight: 600; }
.band { margin-top: 3em; background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 32px 28px; display: grid; gap: 16px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .band { grid-template-columns: 1fr auto; } }
.band h2 { margin: 0 0 .3em; color: inherit; }
.band p { margin: 0; opacity: .92; }
.band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.places span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; background: var(--surface); }
.places span.on { border-color: var(--live); color: var(--live); font-weight: 600; }

/* A briefing item, block by block */
.brief { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bhead { display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bhead b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.bhead span { color: var(--ink-3); font-size: .9rem; }
.bhead .bnum { font-family: var(--mono); background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 4px 9px; font-size: .9rem; flex: none; }
.brow { display: grid; grid-template-columns: 1fr; gap: 4px 20px; padding: 14px 20px; border-top: 1px solid var(--line); }
.brow:first-of-type { border-top: 0; }
@media (min-width: 760px) { .brow { grid-template-columns: 190px 1fr; } }
.blab { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; padding-top: 3px; }
.brow p { margin: 0; }
.brow > ul, .brow > p.warnline { grid-column: 2; }
@media (max-width: 759px) { .brow > ul, .brow > p.warnline { grid-column: 1; } }
ul.tl { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--accent-soft); }
ul.tl li { padding: 0 0 8px 14px; position: relative; }
ul.tl li::before { content: ""; position: absolute; left: -6px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
ul.tl b { font-family: var(--mono); font-size: .85rem; margin-right: 6px; }
.warnline { margin-top: 8px !important; font-size: .88rem; color: var(--warn-ink); background: var(--warn-soft); padding: 6px 10px; border-radius: 6px; }

/* Brand: wordmark in the header, highlight bar color */
.logo .wm-a { color: var(--ink); }
.logo .wm-b { color: var(--accent); }
.logo { font-weight: 800; letter-spacing: -0.02em; gap: 8px; }
.logo svg { width: 30px; height: 33px; }
.answer .a strong { box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--hl) 35%, transparent); }
.vid video.real { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #0b2a4a; }

/* Pricing tables, legal text, footer legal row */
.tablewrap { overflow-x: auto; }
table.price { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-variant-numeric: tabular-nums; min-width: 560px; }
table.price th, table.price td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.price thead th { background: var(--surface-2); font-family: var(--serif); font-size: 1.1rem; }
table.price td:first-child { color: var(--ink-2); }
.legaltext { max-width: 46em; }
.legaltext h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legaltext h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legaltext blockquote { margin: 0 0 1.2em; padding: 10px 16px; background: var(--warn-soft); color: var(--warn-ink); border-radius: 8px; }
footer.site nav.legal { font-size: .85rem; }

dl.case-dates { font-size: 1rem; gap: 8px 18px; }
dl.case-dates dt { font-weight: 700; color: var(--ink); white-space: nowrap; }

.case-band { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; text-decoration: none; color: inherit; padding: 16px; }
.case-band img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.case-band p { margin: 0 0 .6em; }
.case-band .case-more { color: var(--accent); font-weight: 650; margin: 0; }
.case-band:hover .case-more { text-decoration: underline; }
@media (min-width: 760px) { .case-band { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
