/* Basis: licht, journalistiek. Tokens per rol; grafieken lezen deze waarden. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #ffffff;
  --ink: #121212;
  --ink-2: #4a4945;
  --muted: #7d7b75;
  --grid: #e6e4de;
  --axis: #c3c2b7;
  --rule: #121212;
  --border: rgba(18, 18, 18, 0.12);
  --urgent: #c8321d;

  --s1: #2a78d6; /* 2026 */
  --s2: #eb6834; /* 1997 */
  --s3: #1baf7a; /* 2015 */
  --s4: #4a3aa7; /* 1982 */

  --cold-3: #0d366b; --cold-2: #2a78d6; --cold-1: #9ec5f4;
  --mid: #ecebe6;
  --warm-1: #f5b7a6; --warm-2: #e34948; --warm-3: #8a1c1c;

  --k-measured: #2a78d6;
  --k-expected: #c98500;
  --k-scenario: #e34948;
  --k-pattern: #898781;

  --hz-hot: #d9572f;
  --hz-wet: #2a78d6;
  --hz-storm: #6a52c8;
  --hz-ocean: #a3241b;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, "Segoe UI", sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration-color: var(--axis); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
code { font-size: 0.9em; }
h1, h2, h3 { text-wrap: balance; }

.src { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.src a { color: var(--ink-2); }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex-wrap: wrap; background: var(--surface); }
.seg button { font: 500 13px var(--sans); padding: 6px 12px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.tip {
  position: absolute; pointer-events: none; z-index: 30; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); white-space: nowrap;
}
.tip .t-val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tip .t-sub { color: var(--muted); font-size: 12px; }

.kind {
  display: inline-flex; align-items: center; gap: 5px; font: 700 11px var(--sans); letter-spacing: 0.04em;
  color: var(--ink-2); margin-right: 6px; text-transform: uppercase; vertical-align: 1px; white-space: nowrap;
}
.kind i { width: 9px; height: 9px; display: inline-block; flex: none; }
.kind.measured i { background: var(--k-measured); border-radius: 50%; }
.kind.expected i { border: 2px solid var(--k-expected); border-radius: 50%; background: linear-gradient(90deg, var(--k-expected) 50%, transparent 50%); }
.kind.scenario i { border: 2px solid var(--k-scenario); transform: rotate(45deg); width: 8px; height: 8px; }
.kind.pattern i { border: 2px dashed var(--k-pattern); border-radius: 50%; }
.src-link { font-size: 12px; color: var(--muted); }

/* grafieken */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .tick text, .chart .axis-label { fill: var(--muted); font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.chart .tick line { stroke: var(--grid); }
.chart .domain { stroke: var(--axis); }
.chart .zero { stroke: var(--axis); }
.chart .thresh { stroke: var(--ink-2); stroke-dasharray: 3 3; stroke-width: 1; }
.chart .thresh-label { fill: var(--ink-2); font-size: 12px; }
.chart .direct-label { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.chart .annot { font-size: 12px; fill: var(--ink-2); }
.chart .today { stroke: var(--ink); stroke-width: 1; }
.chart .today-label { font-size: 12px; fill: var(--ink); font-weight: 600; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.sq { height: 10px; width: 14px; border-radius: 3px; }

.kinds { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: 15px; }
