:root {
  --brand: #de1743;
  --brand-hover: #c5143c;
  --brand-tint: #fff4f6;
  --newsprint: #fdfbf7;
  --wash: #f8f6f0;
  --border: #e8e8dc;
  --border-strong: #d4d4c8;
  --ink: #1a1a1a;
  --secondary: #333333;
  --muted: #6e6e62;
  --navy: #6267a3;
  --midnight: #272a59;
  --font-heading: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Serif', Georgia, serif;
  --font-chart: 'Roboto Condensed', Arial, sans-serif;
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--newsprint);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
button, input { font: inherit; }
button, summary, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
h1, h2, .eyebrow, .signature, .milestone-number, .presets, .range-label, .result-main, .result-detail { font-family: var(--font-heading); }
.graphic { width: 100%; max-width: 780px; margin: 0 auto; padding: 28px 28px 20px; }
.header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 24px; }
.eyebrow { margin: 0; font-size: 11px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.signature { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--midnight); text-decoration: none; white-space: nowrap; }
.signature img { display: block; }
h1 { grid-column: 1 / -1; margin: 0; max-width: 640px; font-size: clamp(26px, 4.8vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.intro { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.65; }
.intro strong { font-weight: 600; }
.milestones { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; }
.milestone { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; }
.milestone-number { color: var(--brand); font-size: 68px; font-weight: 500; line-height: .9; letter-spacing: -.06em; text-align: center; }
.number-unit { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.milestone h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.25; font-weight: 600; }
.milestone p { margin: 0; font-size: 13px; line-height: 1.7; }
.milestone .mandate-recipient { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.simulation { padding: 20px; background: var(--wash); border: 1px solid var(--border); }
.simulation-heading h2 { font-size: 20px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
.simulation-heading p { font-size: 14px; margin: 0; color: var(--secondary); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.presets button { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--secondary); background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.presets button:hover { border-color: var(--brand); }
.presets button[aria-pressed='true'] { border-color: var(--brand); background: var(--brand); color: var(--newsprint); }
.range-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 1.4; }
.range-label output { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type='range'] { display: block; width: 100%; min-height: 32px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; font: 12px/1 var(--font-chart); color: var(--muted); }
.result { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin: 20px 0 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.result-main p { margin: 0 0 8px; font-size: 13px; color: var(--secondary); }
.seat-result { display: flex; align-items: baseline; gap: 8px; line-height: 1.2; }
#seat-count { font-size: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }
#seat-label { font-size: 18px; }
.seat-dots { display: flex; align-self: center; gap: 5px; margin-left: 8px; }
.seat-dots i { display: block; width: 15px; height: 20px; border: 1.5px solid var(--border-strong); border-radius: 3px 3px 0 0; }
.seat-dots i.filled { background: var(--brand); border-color: var(--brand); }
.result-detail { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 12px; color: var(--secondary); line-height: 1.5; }
#share { font-size: 29px; font-weight: 600; color: var(--ink); line-height: 1.3; font-variant-numeric: tabular-nums; }
#result-note { grid-column: 1 / -1; margin: 0; padding-left: 10px; border-left: 3px solid var(--navy); font-size: 13px; line-height: 1.6; color: var(--secondary); }
.chart-wrap { margin-top: 20px; }
#chart { width: 100%; min-height: 260px; font-family: var(--font-chart); }
#chart .vega-embed, #chart svg { display: block; max-width: 100%; }
.axis-note { font: 700 11px/1.3 var(--font-chart); text-align: right; color: var(--secondary); margin: 4px 0 0; }
.assumption { margin: 20px 0 14px; padding-left: 12px; border-left: 3px solid var(--navy); font-size: 12px; line-height: 1.65; color: var(--secondary); }
.assumption strong { font-weight: 600; }
.method { margin: 0 0 16px; color: var(--secondary); font-size: 12px; }
.method summary { cursor: pointer; font-family: var(--font-heading); font-size: 13px; font-weight: 500; padding: 8px 0; }
.method p { margin: 8px 0 12px; }
.footer { border-top: 1px solid var(--border); padding-top: 12px; color: var(--secondary); font: 12px/1.6 var(--font-chart); }
.footer a { color: inherit; text-decoration: underline; }
.no-script, .chart-fallback { font-size: 13px; }
@media (max-width: 600px) {
  .graphic { padding: 20px 16px 16px; }
  .header { gap: 16px 8px; }
  .eyebrow { max-width: 170px; font-size: 10px; }
  .signature { font-size: 12.5px; }
  .signature img { width: 24px; height: 24px; }
  .milestones { grid-template-columns: 1fr; gap: 24px; margin: 24px 0; padding: 24px 0; }
  .milestone { grid-template-columns: 68px 1fr; gap: 16px; }
  .milestone-number { font-size: 64px; }
  .milestone p { font-size: 14px; }
  .simulation { padding: 16px 12px; }
  .simulation-heading h2 { font-size: 19px; }
  .presets { gap: 6px; }
  .presets button { padding: 8px 6px; font-size: 12px; }
  .result { gap: 12px; }
  #seat-count { font-size: 36px; }
  #seat-label { font-size: 16px; }
  .seat-dots { margin-left: 0; gap: 4px; }
  .seat-dots i { width: 12px; height: 17px; }
  #share { font-size: 25px; }
  .result-detail { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .graphic { max-width: none; } .presets, input[type='range'], .range-label, .range-ends { display: none; } .simulation, .milestones { break-inside: avoid; } }
