  :root {
    color-scheme: light;
    --surface-1:      #fcfcfb;
    --plane:          #f9f9f7;
    --text-primary:   #0b0b0b;
    --text-secondary: #52514e;
    --text-muted:     #898781;
    --grid:           #e1e0d9;
    --axis:           #c3c2b7;
    --series-1:       #2a78d6;
    --critical:       #d03b3b;
    --warning:        #fab219;
    --good:           #006300;
    --border:         rgba(11,11,11,0.10);
  }
  @media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) {
      color-scheme: dark;
      --surface-1:      #1a1a19;
      --plane:          #0d0d0d;
      --text-primary:   #ffffff;
      --text-secondary: #c3c2b7;
      --text-muted:     #898781;
      --grid:           #2c2c2a;
      --axis:           #383835;
      --series-1:       #3987e5;
      --critical:       #d03b3b;
      --good:           #0ca30c;
      --border:         rgba(255,255,255,0.10);
    }
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    padding: 48px 32px 96px;
    background: var(--plane);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
  }
  .wrap { max-width: 980px; margin: 0 auto; }

  .eyebrow {
    font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted); margin: 0 0 8px;
  }
  h1 { font-size: 28px; line-height: 1.2; margin: 0 0 4px; font-weight: 700; }
  .sub { color: var(--text-secondary); margin: 0 0 40px; font-size: 15px; }

  .hero {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
    margin-bottom: 20px;
  }
  .hero-label { font-size: 14px; color: var(--text-secondary); margin: 0 0 6px; }
  .hero-figure {
    font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -.02em;
    margin: 0 0 14px;
  }
  .hero-figure small { font-size: 32px; font-weight: 600; color: var(--text-secondary); }
  .hero-note { margin: 0; color: var(--text-secondary); font-size: 15px; max-width: 62ch; }
  .hero-note strong { color: var(--text-primary); }

  .tiles {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px;
  }
  .tile {
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 18px 16px;
  }
  .tile-label { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 8px; line-height: 1.35; }
  .tile-value { font-size: 27px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
  .tile-foot { font-size: 12.5px; color: var(--text-muted); margin: 5px 0 0; }
  .up { color: var(--critical); font-weight: 600; }

  h2 {
    font-size: 20px; margin: 44px 0 6px; font-weight: 700;
    padding-top: 22px; border-top: 1px solid var(--border);
  }
  h2:first-of-type { border-top: none; padding-top: 0; }
  .lede { color: var(--text-secondary); margin: 0 0 20px; max-width: 70ch; }
  p { max-width: 74ch; }

  .callout {
    border: 1px solid var(--border);
    border-left: 4px solid var(--critical);
    background: var(--surface-1);
    border-radius: 10px; padding: 18px 20px; margin: 22px 0;
  }
  .callout.neutral { border-left-color: var(--series-1); }
  .callout h3 { margin: 0 0 6px; font-size: 16px; }
  .callout p { margin: 0; font-size: 15px; color: var(--text-secondary); }
  .callout p + p { margin-top: 8px; }
  .callout strong { color: var(--text-primary); }

  table {
    width: 100%; border-collapse: collapse; font-size: 13.5px;
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; margin: 18px 0 6px;
  }
  th, td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--grid); }
  th {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-muted); font-weight: 600; text-align: right;
    background: var(--plane);
  }
  th:first-child, td:first-child { text-align: left; }
  td { font-variant-numeric: tabular-nums; }
  tbody tr:last-child td { border-bottom: none; }
  tr.total td { font-weight: 700; background: var(--plane); border-top: 2px solid var(--axis); }
  tr.year td { font-weight: 600; background: var(--plane); }
  .hike td { background: color-mix(in srgb, var(--warning) 12%, var(--surface-1)); }
  caption {
    caption-side: bottom; text-align: left; font-size: 12.5px;
    color: var(--text-muted); padding: 10px 2px 0; line-height: 1.5;
  }

  figure { margin: 20px 0 6px; }
  .chart-card {
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 20px 12px;
  }
  .chart-title { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
  .chart-sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 6px; }
  figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
  svg { display: block; width: 100%; height: auto; }
  .tick { font-size: 11px; fill: var(--text-muted); font-variant-numeric: tabular-nums; }
  .anno { font-size: 11px; fill: var(--text-secondary); }
  .anno-strong { font-size: 11.5px; fill: var(--text-primary); font-weight: 600; }

  #tip {
    position: fixed; pointer-events: none; opacity: 0;
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 11px; font-size: 12.5px;
    box-shadow: 0 4px 16px rgba(0,0,0,.14); transition: opacity .1s; z-index: 10;
    font-variant-numeric: tabular-nums;
  }
  #tip b { display: block; font-size: 13px; margin-bottom: 3px; }
  #tip span { color: var(--text-secondary); }

  .src {
    font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0;
    border-left: 2px solid var(--grid); padding-left: 12px; max-width: 78ch;
  }
  ul { max-width: 74ch; padding-left: 20px; }
  li { margin-bottom: 7px; }
  .foot {
    margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
  }
  .print-hint {
    margin-top: 26px; padding: 14px 18px; background: var(--surface-1);
    border: 1px dashed var(--axis); border-radius: 10px;
    font-size: 14px; color: var(--text-secondary);
  }

  @media (max-width: 860px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .hero-figure { font-size: 52px; }
  }

  @media print {
    body { padding: 0; background: #fff; font-size: 11.5px; }
    .print-hint { display: none; }
    #tip { display: none; }
    .hero, .tile, table, .chart-card, .callout { break-inside: avoid; }
    h2 { break-after: avoid; }
    tr { break-inside: avoid; }
    .hero-figure { font-size: 46px; }
    a { text-decoration: none; color: inherit; }
  }

/* --- hosted on the site, so it has to survive a phone: the wide tables scroll
       inside themselves instead of dragging the whole page sideways --- */
@media (max-width: 760px) {
  body { padding: 32px 16px 72px; }
  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* --- moved out of style="" attributes so the page satisfies the site CSP --- */
.cents { font-size: 18px; }
.hit-rect { cursor: crosshair; }
.tl { text-align: left; }

/* --- hosting banner: says whose data this is, changes nothing below it --- */
.host-banner {
  max-width: 980px;
  margin: -16px auto 40px;
  padding: 18px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.host-banner p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.host-banner .host-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 1px solid var(--axis);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-primary);
}
.host-banner a { color: var(--text-primary); }
@media print { .host-banner { display: none; } }
