:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040a13;
  --panel: #0d1b2c;
  --panel-raised: #12243a;
  --line: rgba(180, 210, 230, 0.15);
  --line-strong: rgba(180, 210, 230, 0.28);
  --text: #f4f8fb;
  --muted: #9fb2c3;
  --faint: #6f8497;
  --cyan: #38d6c6;
  --cyan-soft: #8ef0e5;
  --amber: #ffb454;
  --red: #ff756d;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  --radius: 22px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 11% 8%, rgba(56, 214, 198, 0.1), transparent 26rem),
    radial-gradient(circle at 91% 24%, rgba(255, 180, 84, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(56, 214, 198, 0.44);
  border-radius: 10px 3px 10px 3px;
  color: var(--cyan-soft);
  font: 700 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.report-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 320ms ease, background 320ms ease;
}

.report-link:hover {
  border-color: rgba(56, 214, 198, 0.5);
  background: rgba(56, 214, 198, 0.08);
}

.github-mark {
  flex: none;
}

.byline {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 0.86rem;
}

.byline a {
  color: var(--cyan-soft);
}

main,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 76px);
}

.eyebrow,
.section-index,
.panel-label,
.period-label {
  margin: 0 0 12px;
  color: var(--cyan-soft);
  font: 700 0.75rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.intro-copy,
.section-heading > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.explorer,
.analysis,
.method,
.context {
  padding: 36px 0 clamp(72px, 10vw, 140px);
}

.context {
  padding-top: 0;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.context-card {
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 180, 84, 0.06), transparent 40%),
    var(--panel);
}

.context-year {
  margin: 0 0 10px;
  color: var(--amber);
  font: 700 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.context-card h3 {
  margin-bottom: 10px;
}

.context-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.context-sources {
  margin-top: 14px !important;
  color: var(--faint) !important;
  font-size: 0.78rem;
}

.context-sources a {
  color: var(--cyan-soft);
}

.context-tip {
  max-width: 720px;
  margin: 22px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--cyan);
  background: rgba(56, 214, 198, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
}

.context-tip a {
  color: var(--cyan-soft);
}

.explorer-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.explorer-heading h2,
.section-heading h2 {
  margin-bottom: 0;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: flex-end;
}

.controls > label,
.year-switcher legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

select,
.year-switcher {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 27, 44, 0.92);
  color: var(--text);
}

select {
  min-width: 180px;
  padding: 0 40px 0 14px;
  cursor: pointer;
}

.year-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
}

.year-button {
  min-width: 58px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.year-button:hover,
.year-button.is-active {
  background: var(--panel-raised);
  color: var(--text);
}

.year-button.is-active {
  box-shadow: inset 0 0 0 1px rgba(56, 214, 198, 0.28);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(480px, 1.14fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.map-card,
.trend-card {
  padding: clamp(20px, 3vw, 34px);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.panel-label {
  margin-bottom: 8px;
  color: var(--faint);
}

.period-label {
  margin-top: 5px;
  color: var(--amber);
  white-space: nowrap;
}

.map {
  position: relative;
  min-height: 520px;
  margin: 10px 0 4px;
}

.map svg {
  display: block;
  width: 100%;
  height: 520px;
  overflow: visible;
}

.district-shape {
  cursor: pointer;
  stroke: rgba(245, 250, 253, 0.34);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  transition:
    stroke 420ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke-width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.district-shape:hover,
.district-shape:focus {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 10px rgba(142, 240, 229, 0.32));
  outline: none;
}

.district-shape.is-selected {
  stroke: rgba(255, 244, 224, 0.92);
  stroke-width: 1.8;
  filter:
    drop-shadow(0 0 4px rgba(255, 220, 160, 0.55))
    drop-shadow(0 0 16px rgba(255, 180, 84, 0.34));
}

/* Feathered glow that sits underneath the selected district. */
.district-halo {
  pointer-events: none;
  fill: rgba(255, 196, 110, 0.75);
  stroke: rgba(255, 196, 110, 0.9);
  stroke-width: 6;
  filter: url(#district-halo);
}

/* Gradient wash on top of the selected district. */
.district-sheen {
  pointer-events: none;
  mix-blend-mode: screen;
}

.district-label {
  pointer-events: none;
  fill: #fff;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  paint-order: stroke;
  stroke: rgba(4, 10, 19, 0.72);
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: font-size 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.district-label.is-selected {
  font-size: 12.5px;
}

.district-label-name {
  font: 600 9.5px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: #fff4e0;
}

.map-selection {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 180, 84, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 180, 84, 0.12), rgba(255, 180, 84, 0.02) 60%, transparent),
    rgba(7, 17, 31, 0.5);
}

.map-selection-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe0ad, var(--amber) 55%, rgba(255, 180, 84, 0.2));
  box-shadow: 0 0 0 4px rgba(255, 180, 84, 0.14), 0 0 14px rgba(255, 180, 84, 0.45);
}

.map-selection strong,
.map-selection small {
  display: block;
}

.map-selection strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.map-selection small {
  color: var(--muted);
  font-size: 0.78rem;
}

.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 0.78rem;
}

.legend-ramp {
  width: min(200px, 44vw);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #15334a, #1a8d8b, #4be1c9, #ffb454);
}

.map-instruction,
.chart-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.district-number {
  margin: 0 0 4px;
  color: var(--amber);
  font: 700 0.75rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

@keyframes readout-refresh {
  from {
    opacity: 0.25;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-refreshing {
  animation: readout-refresh 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.trend-pill {
  min-width: 92px;
  margin: 2px 0 0;
  transition: color 420ms ease, border-color 420ms ease;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.trend-pill.is-up {
  border-color: rgba(255, 117, 109, 0.38);
  color: #ff9b94;
}

.trend-pill.is-down {
  border-color: rgba(56, 214, 198, 0.36);
  color: var(--cyan-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 30px 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.stat {
  min-width: 0;
  padding: 18px;
  background: rgba(7, 17, 31, 0.7);
}

.stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 0.76rem;
}

.stat strong {
  display: block;
  overflow: hidden;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.year-breakdown {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
}

.year-row {
  display: grid;
  grid-template-columns: 48px 1fr 72px;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.year-row strong {
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.year-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(180, 210, 230, 0.1);
}

.year-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a8d8b, #4be1c9 70%, #ffb454);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-detail {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
}

.chart-wrap {
  position: relative;
  min-height: 390px;
}

.loading-state,
.error-state {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.error-state {
  border-color: rgba(255, 117, 109, 0.35);
  color: #ffaea9;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.section-heading .section-index {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}


/* ---------- Analysis panels ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-filter,
.inline-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 180, 84, 0.4);
  border-radius: 999px;
  background: rgba(255, 180, 84, 0.12);
  color: #ffd9a3;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 320ms ease, border-color 320ms ease;
}

.map-filter:hover,
.inline-button:hover {
  border-color: rgba(255, 180, 84, 0.7);
  background: rgba(255, 180, 84, 0.2);
}

.inline-button {
  margin: 0 0 0 6px;
  padding: 3px 9px;
  font-size: 0.74rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.analysis-grid .panel {
  padding: clamp(20px, 3vw, 34px);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.mode-switcher {
  display: flex;
  gap: 4px;
  min-height: 40px;
  padding: 4px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 27, 44, 0.92);
}

.mode-switcher legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mode-button {
  min-width: 68px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 320ms ease, color 320ms ease;
}

.mode-button:hover,
.mode-button.is-active {
  background: var(--panel-raised);
  color: var(--text);
}

.mode-button.is-active {
  box-shadow: inset 0 0 0 1px rgba(56, 214, 198, 0.28);
}

.heatmap {
  margin: 18px 0 6px;
}

.heatmap-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.heat-cell {
  cursor: crosshair;
  stroke: transparent;
  stroke-width: 1.5;
  transition: stroke 200ms ease;
}

.heat-cell:hover {
  stroke: #fff;
}

.heat-column-bars rect {
  fill: rgba(142, 240, 229, 0.35);
  rx: 2;
}

.heat-axis {
  fill: var(--faint);
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: fill 200ms ease;
}

.heat-axis.is-active {
  fill: var(--cyan-soft);
}

.heat-total {
  fill: var(--muted);
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.heat-legend {
  margin-top: 8px;
}

.heat-legend .legend-ramp {
  transition: background 500ms ease;
}

.types-key {
  display: flex;
  gap: 18px;
  margin: 14px 0 12px;
  color: var(--faint);
  font-size: 0.76rem;
}

.types-key span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.key-bar {
  display: inline-block;
  width: 22px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a8d8b, #4be1c9);
}

.key-tick {
  display: inline-block;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: var(--amber);
}

.type-chart {
  display: grid;
  gap: 6px;
}

.type-row {
  display: grid;
  grid-template-columns: minmax(124px, 0.7fr) 1fr 56px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: background 320ms ease, border-color 320ms ease, color 320ms ease;
}

.type-row:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.type-row.is-selected {
  border-color: rgba(255, 180, 84, 0.4);
  background: rgba(255, 180, 84, 0.08);
  color: var(--text);
}

.type-name {
  line-height: 1.15;
}

.type-track {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(180, 210, 230, 0.08);
}

.type-bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a8d8b, #4be1c9);
}

.type-row.is-selected .type-bar {
  background: linear-gradient(90deg, #d9903a, #ffb454);
}

.type-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(7, 17, 31, 0.8);
}

.type-count {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.forecast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.6fr);
  gap: 26px;
  margin-top: 22px;
}

.chart-wrap--weekly {
  min-height: 340px;
}

.model-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.model-row {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.5);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.model-row:hover {
  border-color: var(--line-strong);
  background: rgba(13, 27, 44, 0.9);
}

.model-row.is-selected {
  border-color: rgba(255, 180, 84, 0.45);
  background: rgba(255, 180, 84, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.08);
}

.model-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.model-name {
  color: var(--text);
  font-weight: 700;
}

.model-rank {
  color: var(--faint);
  font: 700 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-row.is-selected .model-rank {
  color: var(--amber);
}

.model-metric {
  display: grid;
  grid-template-columns: 78px 1fr 44px;
  gap: 10px;
  align-items: center;
  font-size: 0.74rem;
}

.model-metric-label {
  color: var(--faint);
  font: 700 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.model-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(180, 210, 230, 0.08);
}

.model-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(142, 240, 229, 0.55);
}

.model-bar--mae {
  background: rgba(142, 240, 229, 0.3);
}

.model-row.is-selected .model-bar {
  background: var(--amber);
}

.model-row.is-selected .model-bar--mae {
  background: rgba(255, 180, 84, 0.55);
}

.model-value {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.method {
  border-top: 1px solid var(--line);
}

.method .section-heading {
  display: block;
}

.method .section-heading .section-index {
  margin-bottom: 12px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.method-grid > div {
  padding: 24px;
  border-top: 2px solid var(--cyan);
  background: rgba(13, 27, 44, 0.62);
}

.method-grid h3 {
  margin-bottom: 12px;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.method-grid a {
  color: var(--cyan-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0;
}

.footer-meta {
  margin-top: 6px;
  font-size: 0.78rem;
}

.footer-meta a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex: none;
  gap: 20px;
  align-items: start;
}

.map-tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  max-width: 240px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(4, 10, 19, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
}

.map-tooltip strong,
.map-tooltip span {
  display: block;
}

.map-tooltip span,
.map-tooltip em {
  margin-top: 2px;
  color: var(--muted);
}

.map-tooltip em {
  display: block;
  margin-top: 6px;
  color: var(--amber);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .dashboard-grid,
  .intro,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .section-index {
    margin-bottom: 0;
  }

  .dashboard-grid {
    gap: 14px;
  }

  .map,
  .map svg {
    min-height: 440px;
    height: 440px;
  }

  .chart-wrap {
    min-height: 360px;
  }

  .analysis-grid,
  .forecast-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 64px;
  }

  .brand > span:last-child,
  nav a:not(.report-link) {
    display: none;
  }

  main,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .intro {
    padding-top: 52px;
  }

  .explorer-heading,
  .section-heading {
    display: block;
  }

  .controls {
    justify-content: stretch;
    margin-top: 24px;
  }

  select,
  .year-switcher {
    width: 100%;
  }

  .year-button {
    flex: 1;
  }

  .map,
  .map svg {
    min-height: 390px;
    height: 390px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .stat-label {
    margin-bottom: 0;
  }

  .method-grid,
  .context-grid {
    grid-template-columns: 1fr;
  }

  .type-row {
    grid-template-columns: minmax(80px, 0.7fr) 1fr 52px;
  }

  .heat-axis--hour {
    font-size: 13px;
  }

  footer {
    display: block;
  }

  .footer-links {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
