:root {
  --paper: #f5f5f1;
  --paper-2: #ebebe5;
  --ink: #141414;
  --ink-2: #3d3d39;
  --muted: #6f6f69;
  --hairline: #cfcfc7;
  --blue: #00b5e2;
  --blue-ink: #00769b;
  --red: #ef3340;
  --red-ink: #c8102e;
  --green: #3f8a22;
  --land: #e2e2dc;
  --empty: #d3d3cb;
  --seq-1: #d4f0f9;
  --seq-2: #a3dff2;
  --seq-3: #5dc7e8;
  --seq-4: #00a7d4;
  --seq-5: #0081a8;
  --seq-6: #005a76;
  --area: rgba(0, 181, 226, 0.14);
  --font-display: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "PT Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }

p { margin: 0; }

a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }

a:hover { color: var(--ink); }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 48px;
  display: grid;
  gap: 40px;
}

.masthead { display: grid; gap: 16px; }

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.kicker {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--blue); }

.masthead-actions { display: flex; align-items: center; gap: 20px; }

.share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.share:hover { color: var(--blue-ink); }

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-bottom: 2px solid var(--red);
  background: transparent;
  cursor: pointer;
}

.support-link:hover { color: var(--red-ink); }

.support-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.lang { display: flex; gap: 2px; font-family: var(--font-display); }

.lang button {
  border: 0;
  background: transparent;
  padding: 4px 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.lang button:hover { color: var(--ink); }

.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--red); }

.masthead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-top: 8px;
}

.lede {
  max-width: 54ch;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
}

.figures {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.figure {
  display: grid;
  align-content: end;
  gap: 2px;
  padding: 14px 20px 16px;
  border-left: 1px solid var(--hairline);
}

.figure:first-child { border-left: 0; padding-left: 0; }

.figure-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.figure-main .figure-value { font-size: clamp(56px, 7vw, 84px); font-weight: 700; letter-spacing: -0.01em; }

.figure-label { font-size: 15px; color: var(--ink-2); }

.figure-delta { font-family: var(--font-display); font-weight: 600; color: var(--green); white-space: nowrap; }

.figure-flag { color: var(--muted); margin-left: 2px; }

.figure-mark { font-size: 0.42em; font-weight: 600; vertical-align: top; position: relative; top: 0.1em; margin-left: 0.08em; color: var(--red-ink); }

.figures-note {
  grid-column: 1 / -1;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.figures-note + .figures-note { border-top: 0; padding-top: 0; }

.figures-note.is-off { visibility: hidden; }

.player {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 4px 24px;
  margin: -16px 0;
  padding: 12px 0 8px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.current-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  min-width: 9.5em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-buttons { display: flex; gap: 6px; }

.play, .step {
  height: 34px;
  min-width: 34px;
  border: 1px solid var(--ink);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.play { background: var(--ink); width: 42px; }

.play svg { width: 14px; height: 14px; fill: var(--paper); }

.step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }

.step:hover:not(:disabled) { background: var(--paper-2); }

.play:hover { background: var(--red); border-color: var(--red); }

.step:disabled { opacity: 0.3; cursor: default; }

.slider-wrap { position: relative; padding: 8px 0 18px; }

#date-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

#date-slider::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }

#date-slider::-moz-range-track { height: 2px; background: var(--ink); }

#date-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 6px;
  height: 22px;
  margin-top: -10px;
  background: var(--red);
  border: 0;
}

#date-slider::-moz-range-thumb { width: 6px; height: 22px; background: var(--red); border: 0; border-radius: 0; }

.slider-marks { position: absolute; left: 0; right: 0; top: 10px; height: 6px; pointer-events: none; }

.slider-marks i { position: absolute; width: 1px; height: 7px; background: var(--blue-ink); }

.slider-years { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }

.slider-years span {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.slider-years span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 1px;
  height: 5px;
  background: var(--ink);
}

.keys {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
}

.section-head { display: grid; gap: 4px; margin-bottom: 14px; }

.label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 8px;
  border-top: 3px solid var(--ink);
}

.note { font-size: 14px; font-style: italic; color: var(--muted); }

.explore {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.map-col { margin: 0; }

.map-wrap, .chart-wrap { position: relative; }

#map { width: 100%; height: auto; display: block; background: var(--paper); touch-action: pan-y; cursor: grab; }

#map:active { cursor: grabbing; }

.district, .place { vector-effect: non-scaling-stroke; }

.district { stroke: var(--paper); stroke-width: 1; cursor: pointer; transition: fill 160ms ease; }

.district.other { fill: var(--land); cursor: default; }

.district.focus:hover, .district.hover { stroke: var(--ink); stroke-width: 1.5; }

.district.selected { stroke: var(--ink); stroke-width: 2.5; }

.district-label {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-opacity: 0.9;
  pointer-events: none;
}

.place { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; cursor: pointer; }

.place.dim { opacity: 0.25; }

.place.hover { fill: var(--red); }

.place.selected { fill: var(--red); opacity: 1; }

.selection-ring { fill: none; stroke: var(--red); stroke-width: 2.5; vector-effect: non-scaling-stroke; pointer-events: none; }

.hit { fill: transparent; cursor: pointer; }

.zoom-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.zoom-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.zoom-controls button + button { border-top: 1px solid var(--ink); }

.zoom-controls button:hover:not(:disabled) { background: var(--paper-2); }

.zoom-controls button:disabled { opacity: 0.3; cursor: default; }

.zoom-controls svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }

.map-hint {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  pointer-events: none;
  text-align: center;
  max-width: 80%;
}

.map-info {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 64px);
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--red);
  padding: 8px 8px 8px 12px;
}

.map-info div { display: grid; font-size: 14px; line-height: 1.3; }

.map-info strong { font-family: var(--font-display); font-size: 16px; }

.map-info span { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.map-info button { width: 32px; height: 32px; border: 1px solid var(--ink); background: transparent; font-size: 18px; cursor: pointer; }

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-2);
}

.legend-ramp, .legend-empty, .legend-dot { display: flex; align-items: center; gap: 6px; }

.legend-ramp .swatches { display: flex; }

.legend-ramp i, .legend-empty i { display: block; width: 24px; height: 10px; }

.legend-dot svg { overflow: visible; }

.tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 260px;
  box-shadow: 4px 4px 0 rgba(20, 20, 20, 0.12);
  z-index: 3;
}

.tooltip strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; }

.tooltip .tt-sub { color: var(--muted); font-style: italic; }

.tooltip .tt-num { font-variant-numeric: tabular-nums; }

.side { display: grid; gap: 20px; padding-left: 24px; border-left: 1px solid var(--hairline); }

.side-body { display: grid; gap: 12px; }

.search { position: relative; }

.search svg {
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: square;
  pointer-events: none;
}

#search {
  width: 100%;
  height: 38px;
  padding: 0 4px 0 24px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
}

#search::placeholder { color: var(--muted); font-style: italic; }

#search:focus { outline: none; border-bottom-color: var(--red); }

.search-miss { margin-top: 6px; font-size: 14px; font-style: italic; color: var(--muted); }

.side-head { display: grid; gap: 2px; }

.side-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}

.side-head .label { font-size: 15px; line-height: 1.55; }

.back {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue-ink);
  font-family: var(--font-display);
  font-size: 15px;
  cursor: pointer;
}

.back:hover { color: var(--ink); }

.link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue-ink);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.rank { list-style: none; margin: 0; padding: 0; }

.rank li { border-bottom: 1px solid var(--hairline); }

.rank button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 0 9px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: baseline;
}

.rank button:hover .name { color: var(--blue-ink); }

.rank .name { font-family: var(--font-display); font-size: 16px; font-weight: 500; }

.rank .num { font-family: var(--font-display); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.rank .bar { grid-column: 1 / -1; height: 4px; background: var(--paper-2); }

.rank .bar i { display: block; height: 100%; transition: width 160ms ease; }

.rank .zero .name, .rank .zero .num { color: var(--muted); }

.places { width: 100%; border-collapse: collapse; font-size: 15px; }

.places th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--ink);
}

.places td { padding: 7px 4px; border-bottom: 1px solid var(--hairline); vertical-align: top; }

.places .n { text-align: right; font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.places .kind { display: block; font-size: 13px; font-style: italic; color: var(--muted); }

.places tr.pending td { color: var(--muted); }

.places tbody tr { cursor: pointer; }

.places tbody tr:hover td, .places tbody tr:focus-visible td { background: var(--paper-2); }

.place-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; }

.district-total { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.delta { font-family: var(--font-display); font-weight: 600; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }

.place-stats { display: flex; gap: 28px; padding: 4px 0 8px; border-bottom: 1px solid var(--hairline); }

.place-stats div { display: grid; }

.place-stats b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.place-stats span, .empty-note { color: var(--ink-2); font-size: 15px; }

.facts { margin: 0; display: grid; gap: 2px; font-size: 15px; }

.facts dt {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd { margin: 0; }

.sub {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.history { list-style: none; margin: 0; padding: 0; font-size: 15px; border-top: 1px solid var(--ink); }

.history li {
  display: grid;
  grid-template-columns: 1fr auto 64px;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}

.history .link { justify-self: start; }

.history .n { text-align: right; font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; }

.history .delta { text-align: right; }

#chart { width: 100%; height: 260px; display: block; cursor: crosshair; }

.axis text { fill: var(--muted); font-size: 12px; font-family: var(--font-display); }

.grid line { stroke: var(--hairline); }

.axis line { stroke: var(--ink); }

.axis path { display: none; }

.series-area { fill: var(--area); }

.series-line { fill: none; stroke: var(--blue-ink); stroke-width: 2; }

.cursor-line { stroke: var(--red); stroke-width: 1.5; }

.cursor-dot { fill: var(--red); stroke: var(--paper); stroke-width: 2; }

.cursor-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  font-variant-numeric: tabular-nums;
}

.hover-line { stroke: var(--muted); stroke-dasharray: 2 3; }

.timeline { display: grid; }

.year {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--ink);
}

.year h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  position: sticky;
  top: 96px;
  align-self: start;
  font-variant-numeric: tabular-nums;
}

.events { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }

.event {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 2px 14px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--hairline);
  transition: opacity 160ms ease;
}

.event.future { opacity: 0.38; }

.event.current { box-shadow: inset 4px 0 0 var(--red); padding-left: 12px; }

.event-date {
  grid-row: span 3;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  align-self: start;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.event-date:hover { color: var(--ink); }

.event-place {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
}

.event-place:hover { color: var(--blue-ink); }

.event-meta { font-size: 14px; color: var(--ink-2); }

.event-meta.where { font-style: italic; color: var(--muted); }

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  font-size: 15px;
}

.footer-source { display: grid; gap: 6px; align-content: start; }

.footer-updated { color: var(--muted); font-size: 14px; }

.support { display: grid; gap: 8px; justify-items: start; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ink); }

.support p { max-width: 46ch; color: var(--ink-2); }

.support-button {
  display: inline-block;
  border: 0;
  cursor: pointer;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.support-button:hover { background: var(--red); color: var(--paper); }

.crypto { display: grid; gap: 10px; justify-items: start; }

.crypto-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; }

.crypto-body { display: flex; gap: 16px; align-items: flex-start; }

.crypto-qr { flex-shrink: 0; width: 112px; height: 112px; border: 1px solid var(--ink); background: #ffffff; }

.crypto-info { display: grid; gap: 8px; justify-items: start; min-width: 0; }

.crypto-address {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-all;
  user-select: all;
  padding: 6px 8px;
  background: var(--paper-2);
  border-left: 3px solid var(--red);
}

.crypto-copy {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.crypto-copy:hover { background: var(--ink); color: var(--paper); }

.crypto-warning { font-size: 13px; font-style: italic; color: var(--muted); max-width: 40ch; }

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-projects ul { list-style: none; margin: 0; padding: 0; }

.footer-projects li { border-bottom: 1px solid var(--hairline); }

.footer-projects a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.footer-projects a:hover { color: var(--blue-ink); }

.footer-projects .host { font-family: var(--font-body); font-size: 13px; font-weight: 400; font-style: italic; color: var(--muted); }

html:has(.modal[open]) { overflow: hidden; }

.modal {
  padding: 0;
  border: 1px solid var(--ink);
  border-top: 4px solid var(--red);
  background: var(--paper);
  color: var(--ink);
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
}

.modal::backdrop { background: rgba(20, 20, 20, 0.5); }

.modal-body { position: relative; display: grid; gap: 12px; padding: 28px 28px 24px; }

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: var(--ink); color: var(--paper); }

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  padding-right: 44px;
}

.modal-note { color: var(--ink-2); max-width: 46ch; }

.support-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }

.options-label {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.option {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.option:hover { background: var(--ink); color: var(--paper); }

.option-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }

.option-note { font-size: 14px; color: var(--ink-2); }

.option:hover .option-note { color: var(--paper-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  z-index: 20;
}

@media (max-width: 960px) {
  .explore { grid-template-columns: 1fr; }
  .side { padding-left: 0; border-left: 0; }
  .map-info:not([hidden]) { display: flex; }
  .keys { display: none; }
  .events { columns: 1; }
  .figures { grid-template-columns: repeat(3, 1fr); }
  .figure-main { grid-column: 1 / -1; padding-left: 0; border-bottom: 1px solid var(--hairline); }
  .figure:nth-child(2) { border-left: 0; padding-left: 0; }
}

@media (max-width: 600px) {
  .page { padding: 14px 16px 40px; gap: 32px; }
  .topline { flex-wrap: wrap; }
  .figure { padding: 10px 10px 12px; }
  .figure-value { font-size: 28px; }
  .figure-label { font-size: 14px; }
  .player { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .current-date { font-size: 19px; min-width: 0; line-height: 40px; }
  .slider-wrap { grid-column: 1 / -1; }
  .play, .step { height: 38px; min-width: 38px; }
  .play { width: 44px; }
  .player-buttons { gap: 4px; }
  .masthead-actions { flex-wrap: wrap; gap: 4px 16px; }
  .zoom-controls button { width: 40px; height: 40px; }
  .year { grid-template-columns: 1fr; gap: 6px; }
  .year h3 { position: static; font-size: 36px; }
  .event { grid-template-columns: 78px 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-projects .host { display: none; }
  .support-options { grid-template-columns: 1fr; }
  .modal-body { padding: 24px 18px 18px; }
  #chart { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .district, .rank .bar i, .event { transition: none; }
}
