:root {
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #f4f0e8; --surface: #fbf9f4; --surface-2: #ece6da; --ink: #22201c; --muted: #6b655b; --line: #d9d1c2;
  --accent: #9a4a1f;
  --s1: #e3dac9; --s2: #d4c7b0; --s3: #c2b294;
  --ver: #2f6b4f; --ver-bg: #e1ede5;
  --self: #3c5f86; --self-bg: #e2e9f2;
  --unv: #8a6212; --unv-bg: #f4ead2;
  --con: #a33a26; --con-bg: #f5e1db;
  --radius: 6px;
}
[data-theme="dark"] {
  --bg: #171512; --surface: #1f1c18; --surface-2: #2a2620; --ink: #ece6da; --muted: #a39b8d; --line: #3a352d;
  --accent: #e08a55;
  --s1: #26221d; --s2: #2f2a23; --s3: #3a3329;
  --ver: #7cc49e; --ver-bg: #1d2e25;
  --self: #8db3dc; --self-bg: #1e2836;
  --unv: #e0b55a; --unv-bg: #33291a;
  --con: #ee8a72; --con-bg: #3a221c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
a { color: var(--accent); text-underline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* masthead */
.masthead { position: relative; padding: 28px 0 72px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.theme { background: none; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; color: var(--ink); flex: none; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.02em; margin: 28px 0 16px; max-width: 16ch; }
.dek { font-size: clamp(16px, 1.6vw, 19px); max-width: 64ch; margin: 0 0 14px; color: var(--ink); }
.asof { color: var(--accent); margin: 0; }
.strata { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48px; display: block; }

/* summary */
.summary { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin: 32px 0 24px; align-items: start; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.count { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.count:hover { transform: translateY(-1px); }
.count .n { font-size: 32px; font-weight: 500; line-height: 1; }
.count .n small { font-size: 13px; color: var(--muted); }
.count .t { font-weight: 700; font-size: 14px; }
.count .bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.count .bar span { display: block; height: 100%; }
.c-verified .n, .c-verified .t { color: var(--ver); } .c-verified .bar span { background: var(--ver); }
.c-selfreported .n, .c-selfreported .t { color: var(--self); } .c-selfreported .bar span { background: var(--self); }
.c-unverified .n, .c-unverified .t { color: var(--unv); } .c-unverified .bar span { background: var(--unv); }
.c-contradicted .n, .c-contradicted .t { color: var(--con); } .c-contradicted .bar span { background: var(--con); }
.count[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.count.c-verified[aria-pressed="true"] { color: var(--ver); background: var(--ver-bg); }
.count.c-selfreported[aria-pressed="true"] { color: var(--self); background: var(--self-bg); }
.count.c-unverified[aria-pressed="true"] { color: var(--unv); background: var(--unv-bg); }
.count.c-contradicted[aria-pressed="true"] { color: var(--con); background: var(--con-bg); }
.pending { background: var(--surface-2); border-radius: var(--radius); padding: 16px 18px; }
.pending ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pending li { display: flex; flex-direction: column; font-size: 14px; font-weight: 500; }
.pending li .mono { color: var(--muted); font-weight: 400; font-size: 12px; }

/* controls */
.controls { display: grid; grid-template-columns: auto 1fr 200px; grid-template-areas: "spk cat sort" "q q q"; gap: 16px 28px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.controls .search { grid-area: q; } .controls .f-spk { grid-area: spk; } .controls .f-cat { grid-area: cat; } .controls .f-sort { grid-area: sort; }
input[type=search], select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); font: 14px var(--font-body); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tablehead { display: flex; gap: 16px; align-items: center; padding: 14px 0 8px; }
.tablehead p { margin: 0 auto 0 0; color: var(--muted); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 14px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

/* table */
.claims { width: 100%; border-collapse: collapse; }
.claims thead th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.row td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.row { cursor: pointer; transition: background .12s; }
.row:hover { background: var(--surface); }
.row.is-open { background: var(--surface); }
.row.is-open td { border-bottom-color: transparent; }
.c-id { width: 112px; } .c-who { width: 170px; } .c-rate { width: 150px; } .c-tog { width: 104px; text-align: right; }
td.c-id { font-weight: 500; }
td.c-id .cat { display: block; font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
td.c-who strong { display: block; font-size: 14px; }
td.c-who .mono { color: var(--muted); }
td.c-claim p { margin: 0; max-width: 68ch; }
.srcs { margin-top: 8px !important; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-verified { color: var(--ver); background: var(--ver-bg); }
.b-selfreported { color: var(--self); background: var(--self-bg); }
.b-unverified { color: var(--unv); background: var(--unv-bg); }
.b-contradicted { color: var(--con); background: var(--con-bg); }
.tog { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px; }
.tog span { font-family: var(--font-mono); font-size: 15px; line-height: 1; }
.tog em { font-style: normal; }
.detail td { padding: 0 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding-left: 112px; }
.dgrid p { margin: 0; font-size: 15px; }
.whybox { border-left: 3px solid; padding: 2px 0 2px 16px; }
.w-verified { border-color: var(--ver); } .w-selfreported { border-color: var(--self); } .w-unverified { border-color: var(--unv); } .w-contradicted { border-color: var(--con); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* literature */
.lit, .method { margin: 72px 0 0; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em; margin: 0 0 10px; }
.lead { max-width: 70ch; color: var(--muted); margin: 0 0 28px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font-size: 14px; color: var(--accent); font-weight: 500; padding-top: 3px; }
.timeline h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.timeline .who { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.timeline p { margin: 0; font-size: 14px; }
.timeline .src { margin-top: 8px; font-size: 13px; }
.legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin: 20px 0; }
.legend div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.legend dd { margin: 0; font-size: 15px; }
.note { color: var(--muted); max-width: 80ch; font-size: 14px; }
.foot { padding-top: 48px; padding-bottom: 48px; color: var(--muted); font-size: 13px; }

@media (max-width: 1080px) {
  .summary { grid-template-columns: 1fr; }
  .controls { grid-template-columns: minmax(0,1fr) 200px; grid-template-areas: "spk sort" "cat cat" "q q"; }
}
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .eyebrow .mono { font-size: 11px; }
  .counts { grid-template-columns: 1fr 1fr; }
  .controls { grid-template-columns: minmax(0,1fr); grid-template-areas: "q" "spk" "cat" "sort"; }
  .controls > .field { min-width: 0; }
  .claims thead { display: none; }
  .claims, .claims tbody { display: block; }
  .row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "id rate" "who who" "claim claim" "tog tog"; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .row td { display: block; border: 0; padding: 4px 0; width: auto !important; }
  td.c-id { grid-area: id; } td.c-rate { grid-area: rate; text-align: right; } td.c-who { grid-area: who; display: flex; gap: 10px; align-items: baseline; }
  td.c-who strong { display: inline; } td.c-claim { grid-area: claim; } td.c-tog { grid-area: tog; text-align: left; padding-top: 8px; }
  td.c-id .cat { display: inline; margin-left: 8px; }
  .detail { display: block; } .detail[hidden] { display: none; }
  .detail td { display: block; padding: 0 0 18px; background: none; }
  .dgrid { grid-template-columns: 1fr; padding-left: 0; gap: 16px; }
  .legend { grid-template-columns: 1fr; } .legend div { grid-template-columns: 1fr; gap: 6px; }
  .tablehead { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* tracker page banner (site-level illustration) */
.tracker-banner { margin: 28px 0 8px; }
.tracker-banner img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: var(--radius); }
.tracker-banner figcaption { font-size: 12px; color: var(--muted); padding: 8px 2px; }
