:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --ink: #1a1f2b;
  --muted: #5b6472;
  --faint: #8a93a3;
  --line: #e4e8ee;
  --accent: #2563a8;
  --accent-soft: #dbeafe;
  --paper: #94a3b8;      /* paper-era / baseline bars */
  --current: #0f9d8f;    /* current-model bars */
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --radius: 12px;
  --maxw: 980px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117; --panel: #161b22; --ink: #e6edf3; --muted: #9aa4b2;
    --faint: #6b7482; --line: #262d38; --accent: #58a6ff; --accent-soft: #16324f;
    --paper: #64748b; --current: #2dd4bf; --warn: #f0b429; --warn-soft: #3a2f12;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site { padding: 26px 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; gap: 14px; align-items: flex-start; }
.logo { font-size: 30px; line-height: 1; color: var(--accent); }
h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.tag { margin: 4px 0 0; color: var(--muted); max-width: 70ch; font-size: 14.5px; text-wrap: balance; }
.tag em { color: var(--ink); font-style: italic; }
.tag .s { display: block; }

footer.site { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); background: var(--panel); }
footer.site p { color: var(--muted); font-size: 13px; margin: 0; }

.loading { color: var(--muted); padding: 40px 0; }

/* paper card */
.paper { margin: 26px 0; }
.paper h2 { font-size: 20px; margin: 0 0 2px; letter-spacing: -0.01em; }
.paper .meta { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.paper .meta a { margin-right: 10px; white-space: nowrap; }

.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; margin: 12px 0; background: var(--panel); }
.callout .k { font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); display: block; margin-bottom: 3px; }
.callout p { margin: 0; font-size: 14px; }
.callout.claim { border-left: 3px solid var(--paper); }
.callout.framing { border-left: 3px solid var(--current); }
.callout.caveat { border-left: 3px solid var(--warn); background: var(--warn-soft); }
.callout.drift { border-left: 3px solid var(--accent); }

.summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.stat { flex: 1 1 220px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--panel); }
.stat .label { font-size: 12px; color: var(--faint); }
.stat .then-now { font-size: 15px; margin-top: 3px; }
.stat .then-now b { font-variant-numeric: tabular-nums; }
.stat .delta { color: var(--current); font-weight: 650; }
.stat .bar-note { color: var(--faint); font-weight: 500; }

/* protocol charts */
.protocol { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 8px; margin: 16px 0; background: var(--panel); }
.protocol h3 { margin: 0 0 2px; font-size: 16px; }
.protocol .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 6px; }
.protocol .prov { color: var(--faint); font-size: 11.5px; margin: 6px 0 0; }
.by { display: inline-block; font-size: 11.5px; color: var(--faint); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin-bottom: 8px; }

svg { display: block; width: 100%; height: auto; overflow: visible; }
.chartscroll { overflow-x: auto; }
.axis text { fill: var(--muted); font-size: 11px; }
.axis line, .axis path { stroke: var(--line); }
.bar-label { fill: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.model-label { fill: var(--muted); font-size: 11px; }
.date-label { fill: var(--faint); font-size: 9.5px; }
.refline { stroke: var(--warn); stroke-dasharray: 4 3; }
.refline-label { fill: var(--warn); font-size: 10px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* heatmap */
.heat { border-collapse: collapse; font-size: 12px; width: 100%; }
.heat th { font-weight: 600; color: var(--muted); text-align: center; padding: 5px 6px; font-size: 11.5px; }
.heat th.row { text-align: left; }
.heat td { text-align: center; padding: 7px 6px; color: #10151d; font-variant-numeric: tabular-nums; border: 1px solid var(--panel); }
.heat td.rowh { text-align: left; color: var(--muted); background: var(--panel); font-size: 11.5px; }

/* index / curated list */
.collection { color: var(--muted); font-size: 15px; margin: 22px 0 6px; max-width: 84ch; }
.collection .cl-s { display: block; }
.paper-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 8px 0 4px; }
.paper-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--panel); color: inherit; transition: border-color .15s, transform .15s; }
.paper-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.paper-card h2 { font-size: 17px; margin: 0 0 3px; letter-spacing: -0.01em; }
.card-meta { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
.card-claim { font-size: 14px; margin: 0; color: var(--ink); }
.topic { font-size: 11.5px; color: var(--faint); text-align: right; }
.badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; }
.badge.live { background: #0f9d8f22; color: var(--current); border: 1px solid #0f9d8f55; }
.badge.seeded { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.badge.curated { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
/* "Still true?" seal — a dated stamp on the paper's claim, on the paper's own bar */
.seal { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05;
  border: 2px dashed currentColor; border-radius: 8px; padding: 4px 10px 3px;
  transform: rotate(-3deg); font-weight: 800; text-transform: uppercase; }
.seal-verdict { font-size: 12px; letter-spacing: 0.09em; }
.seal-date { font-size: 8px; letter-spacing: 0.03em; font-weight: 600; opacity: 0.75; margin-top: 1px; }
.seal.still-true { color: var(--current); }
.seal.caught-up { color: var(--accent); }
.seal.closing-in { color: var(--warn); }
.seal.re-testing { color: var(--faint); }
.seal.coming-soon { color: var(--faint); border-style: dotted; }
.card-basis { font-size: 12px; color: var(--muted); margin: 8px 0 0; font-style: italic; }
.seal-banner { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.seal-banner .seal { flex: 0 0 auto; }
.seal-basis { margin: 0; font-size: 13.5px; color: var(--muted); }

.submit-cta { margin: 22px 0 4px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--panel); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.submit-cta p { margin: 0; flex: 1 1 260px; color: var(--ink); font-size: 15px; }
.submit-btn { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 8px;
  font-weight: 650; font-size: 14px; white-space: nowrap; }
.submit-btn:hover { text-decoration: none; filter: brightness(1.08); }
.cta-hint { font-size: 11px; color: var(--faint); }
.submit-note { margin: 8px 2px 0; font-size: 13px; color: var(--muted); font-style: italic; }

a.back { font-size: 13px; color: var(--muted); }
.brand h1 a, .logo { color: inherit; text-decoration: none; }
.callout.curatednote { border-left: 3px solid var(--warn); background: var(--warn-soft); }

.contributors { margin: 18px 0 4px; }
.contributors h3 { font-size: 14px; margin: 0 0 8px; }
.contributor { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 13px; margin: 8px 0; background: var(--panel); }
.contributor .name { font-weight: 650; font-size: 14px; }
.contributor .role { color: var(--muted); font-size: 13px; }
