:root {
  --bg-0: #06080f;
  --bg-1: #0a0e1a;
  --bg-2: #0f1424;
  --bg-3: #161c30;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf5;
  --text-dim: #a3adc2;
  --text-faint: #6d7691;
  --accent: #ff5252;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 82, 82, 0.12);
  --warn: #ffb547;
  --info: #5aa9ff;
  --ok: #4ade80;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-lg: 22px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Background effects */
.grain {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.gradient-mesh {
  position: fixed; inset: -30%; z-index: 0;
  background:
    radial-gradient(50% 50% at 20% 20%, rgba(255, 82, 82, 0.18) 0%, transparent 60%),
    radial-gradient(40% 40% at 80% 10%, rgba(255, 138, 61, 0.12) 0%, transparent 60%),
    radial-gradient(60% 60% at 80% 90%, rgba(90, 169, 255, 0.10) 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(74, 222, 128, 0.06) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: meshDrift 22s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.05); }
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center;
  box-shadow: 0 0 30px rgba(255, 82, 82, 0.35);
  position: relative;
}
.pulse-dot {
  width: 10px; height: 10px;
  background: white; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; letter-spacing: -0.01em; }
.brand-text span { font-size: 12px; color: var(--text-dim); }

.nav {
  display: flex; gap: 28px; justify-content: center;
  font-size: 14px; color: var(--text-dim);
}
.nav a {
  position: relative;
  transition: color 160ms ease;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--text-faint); border-radius: 50%;
  transition: background 200ms ease;
}
.status.ok .status-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status.err .status-dot { background: var(--accent); }

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 82, 82, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  margin: 0 0 24px;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #b6c0d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 36px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-size: 13px;
  color: var(--text-faint);
}
.hero-meta strong { color: var(--text); font-weight: 500; font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Sections */
.section { padding: 60px 24px; position: relative; z-index: 1; }
.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.section-head p { color: var(--text-dim); margin: 0; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  position: relative;
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease;
}
.stat-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.6;
}
.stat-card[data-tone="suspected"]::before { background: linear-gradient(90deg, var(--warn), #ffd073); }
.stat-card[data-tone="deaths"]::before { background: linear-gradient(90deg, #b8294a, var(--accent)); }
.stat-card[data-tone="zones"]::before { background: linear-gradient(90deg, var(--info), #8ec3ff); }
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat-card header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 14px;
}
.stat-card .badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.stat-card .badge.up { color: var(--accent); border-color: rgba(255, 82, 82, 0.4); background: var(--accent-soft); }
.stat-card .badge.down { color: var(--ok); border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.1); }
.stat-card .stat-value {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card footer { font-size: 12px; color: var(--text-faint); }

/* Alerts */
.alerts { display: grid; gap: 12px; margin-top: 8px; }
.alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--surface);
}
.alert-critical { border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.alert-warning { border-left-color: var(--warn); }
.alert-info { border-left-color: var(--info); }
.alert h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.alert p { margin: 0; color: var(--text-dim); font-size: 13px; }
.alert-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: var(--surface-2);
}
.alert-critical .alert-icon { background: rgba(255, 82, 82, 0.18); color: var(--accent); }
.alert-warning .alert-icon { background: rgba(255, 181, 71, 0.18); color: var(--warn); }
.alert-info .alert-icon { background: rgba(90, 169, 255, 0.18); color: var(--info); }
.alert a.alert-link {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: border-color 200ms ease, color 200ms ease;
}
.alert a.alert-link:hover { color: var(--text); border-color: var(--border-strong); }

/* Map */
.map-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#leaflet-map {
  width: 100%;
  height: 560px;
  background: var(--bg-2);
}
.leaflet-container { background: var(--bg-2); font-family: inherit; }
.leaflet-control-attribution {
  background: rgba(6, 8, 15, 0.6) !important;
  color: var(--text-faint) !important;
  font-size: 10px;
}
.leaflet-control-attribution a { color: var(--text-dim) !important; }
.leaflet-control-zoom a {
  background: rgba(15, 20, 36, 0.9) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.map-legend {
  position: absolute; bottom: 16px; left: 16px;
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(6, 8, 15, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-dim);
  z-index: 401;
}
.map-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-new { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot-high { background: var(--accent-2); }
.dot-intl { background: var(--info); }
.dot-retracted { background: var(--text-faint); opacity: 0.6; }

/* Map markers */
.marker-pulse {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 82, 82, 0.7), 0 0 0 3px rgba(255, 82, 82, 0.18);
}
.marker-pulse::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ringPulse 1.8s ease-out infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.marker-static {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.marker-static.high { background: var(--accent-2); }
.marker-static.intl { background: var(--info); }
.marker-static.retracted { background: var(--text-faint); border-style: dashed; border-color: var(--text-faint); }

.leaflet-popup-content-wrapper {
  background: var(--bg-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow) !important;
}
.leaflet-popup-tip { background: var(--bg-2) !important; }
.leaflet-popup-content { margin: 14px 16px; font-size: 13px; }
.leaflet-popup-content h4 { margin: 0 0 4px; font-size: 14px; }
.leaflet-popup-content .pop-region { color: var(--text-dim); font-size: 11px; margin-bottom: 8px; }
.leaflet-popup-content .pop-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  margin-bottom: 8px;
}
.pop-tag.new { background: var(--accent-soft); color: var(--accent); }
.pop-tag.high { background: rgba(255, 138, 61, 0.16); color: var(--accent-2); }
.pop-tag.intl { background: rgba(90, 169, 255, 0.16); color: var(--info); }
.pop-tag.retracted { background: var(--surface-2); color: var(--text-faint); }
.leaflet-popup-close-button { color: var(--text-dim) !important; }

/* Charts */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.chart-card.wide { grid-column: 1 / -1; }
.chart-card.wide .chart-canvas { height: 360px; }
.chart-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex; flex-direction: column;
}
.chart-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.chart-canvas {
  position: relative;
  height: 300px;
  width: 100%;
}
.chart-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Timeline — clickable date rail + per-day events panel */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* horizontal, scrollable date rail */
.tl-rail {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}
.tl-rail::-webkit-scrollbar { height: 6px; }
.tl-rail::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

.tl-date {
  position: relative;
  flex: 0 0 auto;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-dim);
  transition: border-color .15s, background .15s, transform .15s;
}
.tl-date:hover { background: var(--bg-3); transform: translateY(-2px); }
/* connector line threading the dots */
.tl-date::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -6px; right: -6px;
  height: 2px;
  background: var(--bg-3);
  z-index: 0;
}
.tl-date:first-child::before { left: 50%; }
.tl-date:last-child::before { right: 50%; }

.tl-dot {
  position: relative;
  z-index: 1;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--text-faint);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.tl-mon {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tl-day {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}
.tl-count {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-1);
  color: var(--text-dim);
}

.tl-date.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tl-date.is-active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 82, 82, 0.2), 0 0 12px var(--accent);
}
.tl-date.is-active .tl-day { color: var(--accent); }
.tl-date.is-active .tl-count { background: var(--accent); color: #fff; }
.tl-date:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* events panel for the selected date */
.tl-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.tl-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tl-panel-date { font-size: 16px; font-weight: 600; color: var(--text); }
.tl-panel-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-faint);
}
.tl-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tl-event {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.tl-event::before {
  content: '';
  position: absolute;
  left: 2px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.16);
}
.tl-empty { color: var(--text-faint); font-size: 14px; }

/* Context cards */
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.context-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.context-card.wide { grid-column: 1 / -1; }
.context-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}
.context-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 13px; }
.context-card dt { color: var(--text-faint); }
.context-card dd { margin: 0; color: var(--text); }
.context-card ul { padding-left: 20px; margin: 0; }
.context-card li { margin-bottom: 10px; font-size: 14px; color: var(--text); }
.context-card li strong { color: var(--text); }
.context-card li .sub { color: var(--text-dim); font-size: 13px; display: block; }

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.news-card {
  display: flex; flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.news-card:hover::before { opacity: 1; }
.news-card .news-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.news-card .news-source {
  color: var(--accent-2);
  font-weight: 500;
}
.news-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.news-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.news-card .news-tags {
  margin-top: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.news-card .news-tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
}
.news-card .news-tag.confirmed { color: var(--accent); background: var(--accent-soft); }

/* Source summary */
.source-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.source-summary-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 4px;
}
.source-summary-card .ss-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.source-summary-card .ss-value {
  font-size: 22px;
  font-weight: 600;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.source-summary-card .ss-detail {
  font-size: 12px;
  color: var(--text-dim);
}

/* Source list */
.source-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.source-list li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-dim);
  display: flex; flex-direction: column; gap: 4px;
}
.source-list li a {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}
.source-list li .src-domain {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-faint);
}

/* Footer */
.footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
  background: var(--bg-0);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer a { color: var(--text); border-bottom: 1px dotted var(--border-strong); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .topbar-inner { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .context-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 40px 16px; }
  .container { padding: 0 16px; }
  #leaflet-map { height: 420px; }
  .map-legend { font-size: 11px; gap: 10px; padding: 8px 10px; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card .stat-value { font-size: 40px; }
  .stat-card header { font-size: 12px; }
  .stat-card .badge { font-size: 10px; padding: 2px 6px; }
  .alert { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .alert a.alert-link { grid-column: 1 / -1; justify-self: end; }
  .alert h4 { font-size: 13px; }
  .alert p { font-size: 12px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { align-items: flex-start; }
  #leaflet-map { height: 360px; }
  .chart-canvas { height: 260px; }
  .source-list { grid-template-columns: 1fr; }
  .source-summary { grid-template-columns: repeat(2, 1fr); }
  .source-summary-card .ss-value { font-size: 18px; }
  .hero-title { font-size: 42px; }
  .topbar-inner { padding: 12px 16px; gap: 12px; }
  .brand-text strong { font-size: 14px; }
  .brand-text span { font-size: 11px; }
  .status { padding: 6px 10px; font-size: 11px; }
  .hero-meta { font-size: 12px; gap: 16px; }
  .section-head h2 { font-size: 24px; }
  .eyebrow { font-size: 11px; padding: 6px 10px; }
  .tl-panel { padding: 16px; }
  .tl-date { min-width: 64px; padding: 8px 10px; }
  .tl-day { font-size: 18px; }
}
@media (max-width: 380px) {
  .source-summary { grid-template-columns: 1fr; }
  .status .status-text { display: none; }
  .status { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
