:root {
  --bg: #14110B;
  --raised: #1E1A12;
  --line: #3A3222;
  --text: #F6F1E6;
  --muted: #B8AD97;
  --gold: #F0C24B;
  --gold-ink: #1A1404;
  --ok: #7FD1A0;
  --warn: #F0A56B;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.55 var(--font); }
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 16px; }
.col { max-width: 46rem; }
.num, table { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

/* Header, footer */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; padding-block: .85rem; }
.brand { font-weight: 800; color: var(--gold); text-decoration: none; letter-spacing: -.01em; }
.site-head nav, .site-foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .9375rem; }
.site-head nav a { color: var(--text); text-decoration: none; padding-block: .2rem; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--gold); text-decoration: underline; }
.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 2rem 3rem; color: var(--muted); font-size: .875rem; }
.site-foot nav { margin-bottom: 1.25rem; }
.site-foot p { max-width: 70ch; }
.strip { margin: 1rem 0 0; padding: .55rem .8rem; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; font-size: .9375rem; max-width: none; }

/* Type */
h1 { font-size: clamp(2rem, 6.5vw, 3rem); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; margin: 2rem 0 1rem; max-width: 20ch; }
h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 3.25rem 0 .75rem; }
h3 { font-size: 1.125rem; line-height: 1.3; margin: 1.75rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; max-width: 68ch; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
.lede { font-size: 1.1875rem; line-height: 1.5; }

/* Evidence badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1; padding: .22rem .45rem; border-radius: 999px; border: 1px solid currentColor; vertical-align: .08em; white-space: nowrap; }
.b-official { color: var(--ok); }
.b-reported { color: var(--gold); }
.b-community, .b-unknown { color: var(--warn); }

/* This-week card and stat tiles */
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.card > :last-child { margin-bottom: 0; }
.card.now { border-color: var(--gold); }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.card .name { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: .5rem; color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin: 1.25rem 0; padding: 0; list-style: none; max-width: none; }
.stats li { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin: 0; }
.stats b { display: block; font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .9375rem; }
.countdown { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; max-width: 46rem; font-size: 1rem; }
th, td { text-align: left; padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: .875rem; font-weight: 700; }
tbody th { font-weight: 600; }
tr.is-live th, tr.is-live td { color: var(--gold); }

/* Calculator */
.calc { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1rem 0; display: grid; gap: 1rem; max-width: 46rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field .hint { color: var(--muted); font-size: .875rem; margin: .3rem 0 0; }
input[type=number], input[type=text] { font: inherit; font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); border: 1px solid #6E6247; border-radius: 8px; padding: .5rem .65rem; width: 11rem; max-width: 100%; }
button { font: inherit; font-weight: 700; color: var(--gold-ink); background: var(--gold); border: 0; border-radius: 8px; padding: .55rem .9rem; cursor: pointer; }
button.ghost { color: var(--text); background: transparent; border: 1px solid #6E6247; }
button:hover { filter: brightness(1.08); }
.result { border-top: 1px solid var(--line); padding-top: 1rem; }
.result .big { font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--gold); margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.result p { margin-bottom: .35rem; }

/* Link cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; padding: 0; list-style: none; max-width: none; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; color: var(--text); text-decoration: none; }
.cards a:hover { border-color: var(--gold); }
.cards b { display: block; color: var(--gold); margin-bottom: .2rem; }
.cards span { color: var(--muted); font-size: .9375rem; }

/* FAQ, notes */
details { border-bottom: 1px solid var(--line); max-width: 46rem; }
summary { cursor: pointer; font-weight: 700; padding: .8rem 0; }
details > :not(summary) { margin-top: 0; }
.note { border-left: 3px solid var(--warn); padding: .1rem 0 .1rem .9rem; margin: 1rem 0; color: var(--muted); max-width: 46rem; }
.note > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
