/* ============================================================
   LiveAccidentTracker.com — Design System v1
   Newsroom mission-control: dark, data-dense, signal-red accents
   ============================================================ */

/* Metric-matched fallbacks (Batch AM): the text keeps the same width while the web fonts load, so lines do not re-wrap
   and push the page down (Lighthouse measured CLS 0.16 on /report-accident from the swap). Widths measured against Arial;
   the Roboto faces are for Android, where Arial is absent. */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 101.3%; }
@font-face { font-family: "Instrument Sans Fallback R"; src: local("Roboto"); size-adjust: 102.8%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 90%; }
@font-face { font-family: "Archivo Fallback R"; src: local("Roboto"); size-adjust: 91.4%; }

:root {
  --bg: #070B12;
  --bg-deep: #0B1220;
  --surface: #101826;
  --surface-2: #16202F;
  --border: #1E2A3D;
  --text: #E8EDF5;
  --text-2: #8FA0B8;
  --text-3: #7B8AA0; /* was #5C6B82: 3.3:1 on --surface failed WCAG AA; this is 5.1:1 and still below --text-2 */
  --red: #FF3B2F;
  --red-dim: rgba(255, 59, 47, 0.12);
  --amber: #FFB020;
  --cyan: #35C2F0;
  --green: #2ECC8F;
  --font-display: "Archivo", "Archivo Fallback", "Archivo Fallback R", sans-serif;
  --font-body: "Instrument Sans", "Instrument Sans Fallback", "Instrument Sans Fallback R", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1320px;
  --prose: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(30, 42, 61, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 42, 61, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red);
  color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Top status bar ---------- */
.topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.topbar-inner { display: flex; align-items: center; gap: 10px; height: 34px; }
.topbar-label {
  font-family: var(--font-display);
  font-weight: 800; font-size: 11px; letter-spacing: 0.14em; color: var(--red);
}
.topbar-text { color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-clock { margin-left: auto; color: var(--text-2); font-size: 12px; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  position: relative; flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--red); animation: pulse-ring 2s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800; font-size: 15px; letter-spacing: 0.06em; color: var(--text);
}
.brand-accent { color: var(--red); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); padding: 8px 13px; border-radius: 4px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.main-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.main-nav a.active { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s var(--ease); }

/* ---------- Section labels (broadcast lower-third style) ---------- */
.kicker {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; font-weight: 700; }

.section { padding: 72px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.section-head p { color: var(--text-2); max-width: 640px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero p.lead { color: var(--text-2); font-size: 17px; margin-top: 16px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease);
}
.btn-primary { background: #E0281D; color: #fff; } /* white on --red was 3.5:1; this is 4.7:1 (WCAG AA) */
.btn-primary:hover { background: #C8231A; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-3); background: var(--surface); text-decoration: none; }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.counter {
  background: var(--surface); padding: 26px 24px; position: relative; overflow: hidden;
}
.counter::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--red); opacity: 0; transition: opacity 0.3s;
}
.counter.hot::before { opacity: 1; }
.counter-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.counter-num.red { color: var(--red); }
.counter-num.amber { color: var(--amber); }
.counter-num.cyan { color: var(--cyan); }
.counter-label {
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-top: 8px;
}
.counter-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- Breaking ticker ---------- */
.ticker-band {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-deep); overflow: hidden; display: flex; align-items: stretch;
}
.ticker-tag {
  flex: none; display: flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; padding: 10px 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.14em;
}
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; animation: ticker 60s linear infinite; padding-left: 24px; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { color: var(--text-2); font-size: 13.5px; }
.ticker-track a:hover { color: var(--text); }
.ticker-track .t-src { color: var(--text-3); font-family: var(--font-mono); font-size: 11px; margin-left: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Map ---------- */
.map-shell {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: var(--surface); position: relative;
}
#liveMap { height: 560px; width: 100%; background: #0B1220; z-index: 1; }
.map-hud {
  position: absolute; top: 14px; right: 14px; z-index: 500;
  background: rgba(7, 11, 18, 0.85); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  backdrop-filter: blur(8px);
}
.map-hud strong { color: var(--red); font-size: 16px; display: block; }
.map-legend {
  display: flex; gap: 20px; padding: 12px 18px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3); flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; }

.marker-pulse {
  border-radius: 50%; background: rgba(255, 59, 47, 0.85);
  box-shadow: 0 0 0 rgba(255, 59, 47, 0.5); animation: marker-glow 2s infinite;
}
/* Markers/Heatmap toggle control */
.map-toggle {
  display: flex; background: rgba(7, 11, 18, 0.9); border: 1px solid var(--border);
  border-radius: 5px; overflow: hidden; backdrop-filter: blur(8px);
}
.mt-btn {
  background: none; border: 0; cursor: pointer; padding: 8px 13px;
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.1em; color: var(--text-3); transition: all 0.2s;
}
.mt-btn.mt-on { background: var(--red); color: #fff; }

/* Dark restyle of marker clusters */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(255, 176, 32, 0.25) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: rgba(255, 176, 32, 0.85) !important;
  color: #070B12 !important;
  font-family: var(--font-mono) !important; font-weight: 700 !important; font-size: 11px !important;
}

/* Locate control dark theme */
.leaflet-control-locate a { background: rgba(7, 11, 18, 0.9) !important; color: var(--text-2) !important; }

/* Wikipedia verified strip */
.verified-strip {
  border: 1px solid rgba(46, 204, 143, 0.35); background: rgba(46, 204, 143, 0.06);
  border-radius: 8px; padding: 18px 22px;
}
.verified-strip .vs-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
}
.verified-strip ul { list-style: none; }
.verified-strip li {
  padding: 8px 0; border-top: 1px solid rgba(46, 204, 143, 0.15);
  font-size: 14px; color: var(--text-2);
}
.verified-strip li:first-child { border-top: 0; }
.verified-strip .vs-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-right: 10px; }

.marker-plane {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #35C2F0; text-shadow: 0 0 8px rgba(53, 194, 240, 0.9);
  animation: plane-glow 1.5s ease-in-out infinite alternate;
}
@keyframes plane-glow {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.25); opacity: 0.75; }
}
.marker-traffic {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 176, 32, 0.9);
  box-shadow: 0 0 0 rgba(255, 176, 32, 0.5); animation: traffic-glow 2.4s infinite;
}
@keyframes traffic-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}
@keyframes marker-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 47, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(255, 59, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 47, 0); }
}
.leaflet-popup-content-wrapper { background: var(--surface-2); color: var(--text); border-radius: 6px; border: 1px solid var(--border); }
.leaflet-popup-tip { background: var(--surface-2); }
.leaflet-popup-content { font-family: var(--font-body); font-size: 13px; }
.leaflet-popup-content a { color: var(--cyan); }

/* ---------- Cards / feeds ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: #2A3A52; transform: translateY(-2px); }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--cyan); text-decoration: none; }
.card .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.card p { color: var(--text-2); font-size: 14px; margin-top: 10px; }

.feed { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.feed-item { background: var(--surface); padding: 16px 20px; display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: baseline; transition: background 0.2s; }
.feed-item:hover { background: var(--surface-2); }
.feed-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--red); white-space: nowrap; }
.feed-title { color: var(--text); font-size: 14.5px; font-weight: 500; }
.feed-title:hover { color: var(--cyan); text-decoration: none; }
.feed-src { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: 10px; }

/* ---------- Country grid & search ---------- */
.search-bar {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 4px 4px 18px;
  max-width: 520px; margin-bottom: 32px;
}
.search-bar input {
  flex: 1; background: none; border: 0; outline: 0; color: var(--text);
  font-family: var(--font-body); font-size: 15px; padding: 12px 0;
}
.search-bar input::placeholder { color: var(--text-3); }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.country-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  transition: border-color 0.2s, transform 0.2s; color: var(--text);
}
.country-card:hover { border-color: var(--red); transform: translateY(-2px); text-decoration: none; }
.country-flag { font-size: 24px; flex: none; }
.country-name { font-weight: 600; font-size: 14.5px; }
.country-stat { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); display: block; margin-top: 2px; }

.region-h {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
  margin: 40px 0 16px; display: flex; align-items: center; gap: 12px;
}
.region-h::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Stat tables ---------- */
.table-shell { border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-deep); position: sticky; top: 0;
}
table.data td { padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); }
table.data td:first-child a { color: var(--text); font-weight: 600; }
table.data tr:hover td { background: var(--surface-2); }
table.data .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.bar { height: 6px; background: var(--red-dim); border-radius: 3px; min-width: 80px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }

/* ---------- Severity badges ---------- */
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid;
}
.badge-red { color: var(--red); border-color: rgba(255, 59, 47, 0.4); background: var(--red-dim); }
.badge-amber { color: var(--amber); border-color: rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.1); }
.badge-cyan { color: var(--cyan); border-color: rgba(53, 194, 240, 0.4); background: rgba(53, 194, 240, 0.1); }

/* ---------- History timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--red);
}
.tl-year { font-family: var(--font-mono); font-weight: 700; color: var(--red); font-size: 14px; }
.tl-item h3 { margin: 6px 0 8px; }
.tl-item p { color: var(--text-2); font-size: 14px; max-width: 720px; }
.tl-toll { font-family: var(--font-mono); font-size: 12px; color: var(--amber); margin-top: 8px; display: inline-block; }

/* ---------- Article / prose ---------- */
.prose { max-width: var(--prose); margin: 0 auto; }
.prose p { color: var(--text-2); margin-bottom: 18px; font-size: 15.5px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose ul, .prose ol { color: var(--text-2); margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--red); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--text); font-size: 17px; }
.article-head { max-width: var(--prose); margin: 0 auto 40px; }
.article-head .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 16px; display: flex; gap: 16px; }

/* ---------- FAQ (AEO) ---------- */
.faq { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15px; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--red); font-size: 18px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; max-width: 860px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.form label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); display: block; margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 13px 16px; outline: none;
  transition: border-color 0.2s;
}
.form input:focus, .form textarea:focus { border-color: var(--cyan); }
.alert-ok { background: rgba(46, 204, 143, 0.1); border: 1px solid rgba(46, 204, 143, 0.4); color: var(--green); padding: 14px 18px; border-radius: 6px; font-size: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.page-hero p { color: var(--text-2); margin-top: 14px; max-width: 680px; font-size: 16px; }
.breadcrumbs { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- Reveal animation ----------
   Content is visible by default. The hidden start state only applies once JS
   has confirmed it can reveal it (html.js-anim), so no-JS visitors and any
   IntersectionObserver failure still see everything. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js-anim .reveal { opacity: 0; transform: translateY(18px); }
html.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr; gap: 32px; padding: 56px 20px; }
.footer-brand { font-size: 14px; }
.footer-desc { color: var(--text-2); font-size: 13.5px; margin-top: 14px; max-width: 380px; }
.footer-note { color: var(--text-3); font-size: 11px; margin-top: 16px; }
.footer-h { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); font-size: 13.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; max-width: 380px; }
.footer-social-label { color: var(--text-3); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 4px; }
.footer-col .footer-social a { display: inline-block; padding: 5px 10px; font-size: 12.5px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); line-height: 1.2; }
.footer-col .footer-social a:hover, .footer-col .footer-social a:focus-visible { color: var(--text); border-color: var(--text-3); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 20px 20px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  #liveMap { height: 420px; }
  .feed-item { grid-template-columns: 1fr; gap: 4px; }
  .topbar-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Batch 1: per-incident geocoded dots (city-level), distinct from the country cluster pulse */
.marker-point {
  width: 8px; height: 8px; border-radius: 50%; background: #FF3B2F;
  box-shadow: 0 0 0 2px rgba(255, 59, 47, 0.28), 0 0 6px rgba(255, 59, 47, 0.6);
}

/* AEO quick-answer callout (country, state, today pages) */
.quick-answer { margin-top:16px; padding:14px 18px; background:var(--surface-2); border-left:3px solid var(--red); border-radius:8px; color:var(--text-2); font-size:15px; line-height:1.65; max-width:820px; }
.quick-answer strong { color:var(--text); }

/* Live traffic cameras (official DOT snapshots) */
.cams-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.cam-card { margin:0; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.cam-card img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#0B1220; }
.cam-card figcaption { padding:10px 12px; font-size:13px; color:var(--text-2); display:flex; flex-direction:column; gap:4px; }
.cam-card figcaption strong { color:var(--text); font-weight:600; }
.cam-card figcaption .mono { font-size:11px; color:var(--text-3); }
.cam-card.cam-dead { display:none; }
.cam-card .cam-media { position:relative; display:block; }
.cam-card video, .cam-card img.cam-mjpeg { display:block; width:100%; aspect-ratio:16/9; background:#000 center/cover no-repeat; object-fit:cover; }
.cam-card .cam-play, .cam-card .cam-still { position:absolute; left:8px; bottom:8px; font-size:11px; font-weight:600; letter-spacing:.02em; padding:3px 8px; border-radius:999px; background:rgba(11,18,32,.82); color:#fff; pointer-events:none; }
.cam-card .cam-play { background:rgba(220,38,38,.92); }
.cam-card .cam-play::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:#fff; margin-right:6px; animation:cam-blink 1.2s infinite; }
@keyframes cam-blink { 50% { opacity:.25; } }
.cam-card .cam-fallback { display:block; padding:6px 12px; font-size:12px; color:var(--cyan); }
.cam-card .cam-fallback[hidden] { display:none; }
.cam-card .cam-ph { display:flex; align-items:center; justify-content:center; aspect-ratio:16/9; background:linear-gradient(135deg,#0B1220,#16213E); color:var(--text-3); font-size:12px; letter-spacing:.04em; text-transform:uppercase; }
.cam-map { height:440px; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:#0B1220; margin-bottom:22px; }
.cam-map .leaflet-popup-content { margin:8px; } .cam-map .leaflet-popup-content img { display:block; width:240px; max-width:70vw; border-radius:6px; }
.cam-net-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:14px; }
.cam-net-card { display:flex; flex-direction:column; gap:6px; padding:16px 18px; background:var(--surface); border:1px solid var(--border); border-radius:10px; text-decoration:none; color:var(--text); }
.cam-net-card:hover { border-color:var(--cyan); }
.cam-net-card .n { font-family:var(--font-mono); font-size:24px; color:var(--cyan); }
.cam-net-card .k { font-size:11px; color:var(--text-3); letter-spacing:.08em; text-transform:uppercase; }
.cam-more { margin:18px auto 0; display:block; }
.cam-near { display:inline-flex; align-items:center; gap:5px; margin-left:8px; padding:2px 9px; border-radius:999px; border:1px solid var(--border); background:transparent; color:var(--cyan); font-family:var(--font-mono); font-size:10.5px; font-weight:600; letter-spacing:.04em; cursor:pointer; vertical-align:middle; white-space:nowrap; }
.cam-near::before { content:""; width:7px; height:7px; border-radius:2px; background:var(--cyan); }
.cam-near:hover { border-color:var(--cyan); background:rgba(0,229,255,.08); }
.leaflet-popup-content .cam-near { margin:8px 0 0; }
.cam-modal { position:fixed; inset:0; z-index:9000; background:rgba(4,8,16,.8); backdrop-filter:blur(4px); display:flex; align-items:flex-start; justify-content:center; padding:4vh 16px; overflow:auto; }
.cam-modal[hidden] { display:none; }
.cam-modal-box { width:min(1100px,100%); background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:18px 20px 22px; }
.cam-modal-head { display:flex; align-items:flex-start; gap:16px; margin-bottom:14px; }
.cam-modal-head h3 { margin:4px 0 0; font-size:18px; line-height:1.3; }
.cam-modal-head label { margin-left:auto; font-size:11px; color:var(--text-3); display:flex; gap:6px; align-items:center; white-space:nowrap; }
.cam-modal-head select { background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:6px; padding:4px 6px; font:inherit; }
.cam-modal-close { flex:none; background:none; border:1px solid var(--border); color:var(--text); width:34px; height:34px; border-radius:8px; font-size:22px; line-height:1; cursor:pointer; }
.cam-modal-close:hover { border-color:var(--text-3); }
body.cam-modal-open { overflow:hidden; }
.marker-cam { width:9px; height:9px; border-radius:2px; background:#00E5FF; box-shadow:0 0 0 1px #071018; }
.marker-cam-video { background:#FF3B2F; }
.map-toggle-cams { margin-top:6px; }
.goes-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:14px; }
.goes-card { margin:0; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.goes-card img { display:block; width:100%; aspect-ratio:5/3; object-fit:cover; background:#000; }
.goes-card figcaption { padding:9px 12px; font-size:12.5px; color:var(--text-2); font-family:var(--font-mono); }
.tsu-strip { background:linear-gradient(90deg, rgba(255,59,47,.18), rgba(255,59,47,.06)); border-bottom:1px solid var(--red); padding:10px 0; font-size:13.5px; color:var(--text); }
.tsu-strip .badge { margin-right:8px; }
.badge-blue { background:rgba(53,194,240,.14); color:#35C2F0; border:1px solid rgba(53,194,240,.35); }
.radar-strip { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:10px; }
.radar-chip { display:flex; flex-direction:column; gap:4px; padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-left:3px solid var(--red); border-radius:8px; text-decoration:none; color:var(--text); min-width:0; }
.radar-chip:hover { border-color:var(--text-3); border-left-color:var(--red); text-decoration:none; }
.radar-chip .rc-label { font-family:var(--font-display); font-weight:700; font-size:10.5px; letter-spacing:.1em; color:var(--red); }
.radar-chip .rc-title { font-size:13px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.radar-chip .rc-meta { font-size:10.5px; color:var(--text-3); }
.radar-air, .radar-airspace { border-left-color:var(--cyan); } .radar-air .rc-label, .radar-airspace .rc-label { color:var(--cyan); }
.radar-rail, .radar-industrial { border-left-color:var(--amber); } .radar-rail .rc-label, .radar-industrial .rc-label { color:var(--amber); }
.radar-sea, .radar-flood { border-left-color:#35C2F0; } .radar-sea .rc-label, .radar-flood .rc-label { color:#35C2F0; }
.radar-storm, .radar-volcano, .radar-disaster, .radar-tsunami { border-left-color:var(--red); }
.section-head p.situation { max-width:820px; font-size:14px; color:var(--text-2); border-left:2px solid var(--border); padding-left:12px; margin-top:10px; }
.status-dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(46,204,143,.18); }
.status-dot.bad { background:var(--red); box-shadow:0 0 0 3px rgba(255,59,47,.18); }
.marker-plane-heli { border-radius:50%; }
/* Batch K */
.near-you { padding:18px 20px; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.near-you .ny-head { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; justify-content:space-between; }
.near-you .ny-controls { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.near-you .ny-controls .btn { padding:7px 12px; font-size:11.5px; }
.near-you select { background:var(--surface-2); color:var(--text); border:1px solid var(--border); border-radius:8px; padding:7px 8px; font:inherit; font-size:12.5px; }
.near-you .ny-clear { background:none; border:1px solid var(--border); color:var(--text-3); width:30px; height:30px; border-radius:8px; cursor:pointer; font-size:16px; }
.near-you .ny-status { font-size:11.5px; color:var(--text-3); margin:12px 0 8px; }
.near-you .ny-list:empty { display:none; }
.brief-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; } .brief-list li { padding:10px 12px; background:var(--surface); border:1px solid var(--border); border-radius:8px; font-size:13.5px; } .brief-list .badge { margin-right:8px; }
.share-btn { padding:6px 12px; font-size:11px; }
/* header search (Batch J) */
.site-search { position:relative; margin-left:auto; margin-right:12px; width:min(240px, 22vw); flex:0 1 auto; min-width:120px; } /* could not shrink (flex:none): the header overflowed by ~10px around 1265px wide (AU) */
.main-nav a { white-space:nowrap; }
.site-search input { width:100%; padding:7px 12px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--text); font:inherit; font-size:12.5px; }
.site-search input:focus { outline:none; border-color:var(--cyan); }
.site-search .ss-results { position:absolute; top:calc(100% + 6px); right:0; width:min(360px, 90vw); background:var(--bg); border:1px solid var(--border); border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,.45); overflow:hidden; z-index:1200; }
.site-search .ss-item { display:grid; grid-template-columns:1fr auto; gap:2px 10px; padding:9px 12px; text-decoration:none; color:var(--text); border-top:1px solid var(--border); }
.site-search .ss-item:first-child { border-top:0; } .site-search .ss-item:hover, .site-search .ss-item.active { background:var(--surface); text-decoration:none; }
.site-search .ss-name { font-weight:600; font-size:13px; } .site-search .ss-sub { grid-column:1; font-size:11px; color:var(--text-3); } .site-search .ss-kind { grid-row:1 / span 2; align-self:center; font-family:var(--font-mono); font-size:10px; color:var(--cyan); white-space:nowrap; }
.site-search .ss-empty { padding:10px 12px; font-size:12px; color:var(--text-3); }
@media (max-width: 1100px) { .site-search { width:min(180px, 18vw); } }
@media (max-width: 900px) { .site-search { width:min(160px, 30vw); } }
@media (max-width: 640px) { .site-search { display:none; } }
/* AU 2026-10-04: between 721px and ~1300px the logo + 7 nav links + search were wider than the header, so pages scrolled sideways.
   Tighter nav links first, then no search box between 941 and 1060px, then the hamburger menu from 940px (was 720px). */
@media (max-width: 1320px) { .header-inner { gap: 16px; } .main-nav a { padding: 8px 9px; letter-spacing: 0.06em; } }
@media (min-width: 941px) and (max-width: 1060px) { .site-search { display:none; } }
@media (max-width: 940px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-deep); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px 20px 20px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}
/* about-place dossier (Batch J) */
.about-place { display:grid; grid-template-columns:minmax(0, 220px) 1fr; gap:22px; padding:20px 22px; background:var(--surface); border:1px solid var(--border); border-radius:12px; margin-bottom:8px; }
.about-place .ap-media img { display:block; width:100%; border-radius:8px; border:1px solid var(--border); background:var(--surface-2); }
.about-place .ap-extract { color:var(--text-2); font-size:14.5px; line-height:1.6; margin:10px 0 14px; max-width:760px; }
.about-place .ap-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px 18px; margin:0 0 12px; }
.about-place .ap-facts dt { font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); } .about-place .ap-facts dd { margin:2px 0 0; font-size:14px; color:var(--text); font-weight:600; }
.about-place .ap-src { font-size:11px; color:var(--text-3); margin:0; }
@media (max-width: 640px) { .about-place { grid-template-columns:1fr; } .about-place .ap-media { max-width:200px; } } .marker-plane-military { color:#8FA0B8; } .marker-plane-airliner { font-size:15px; }
.cams-attr { font-size:11.5px; color:var(--text-3); margin-top:12px; }
/* Batch R: camera preview tiles pinned above markers at zoom >= 13 */
.cam-tile-wrap { pointer-events:auto; }
.cam-tile { position:relative; width:132px; height:96px; background:#071018; border:1px solid rgba(0,229,255,.75); border-radius:4px; overflow:visible; box-shadow:0 6px 18px rgba(0,0,0,.45); cursor:pointer; }
.cam-tile img, .cam-tile .cam-tile-blank { display:block; width:130px; height:73px; object-fit:cover; background:#0B1220; border-radius:3px 3px 0 0; }
.cam-tile .cam-tile-blank { display:flex; align-items:center; justify-content:center; font:11px var(--font-mono); color:var(--text-3); }
.cam-tile .cam-tile-name { display:block; padding:3px 6px; font:10.5px/15px var(--font-mono); color:#CFE3F1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cam-tile .cam-tile-pill { position:absolute; top:4px; left:4px; padding:1px 5px; border-radius:3px; background:rgba(0,229,255,.9); color:#041018; font:700 9px/13px var(--font-mono); letter-spacing:.06em; }
.cam-tile-video .cam-tile-pill { background:#FF3B2F; color:#fff; }
.cam-tile-video { border-color:rgba(255,59,47,.8); }
.cam-tile::before, .cam-tile::after { content:""; position:absolute; width:8px; height:8px; border-color:#00E5FF; border-style:solid; pointer-events:none; }
.cam-tile::before { top:-2px; right:-2px; border-width:1px 1px 0 0; }
.cam-tile::after { bottom:-2px; left:-2px; border-width:0 0 1px 1px; }
.cam-tile-video::before, .cam-tile-video::after { border-color:#FF3B2F; }
.cam-tile-above .cam-tile { box-shadow:0 6px 18px rgba(0,0,0,.45), 0 0 0 0 transparent; }
.cam-tile-above .cam-tile-name::after, .cam-tile-below .cam-tile-name::after { content:""; position:absolute; left:var(--ax, 66px); width:1px; height:14px; background:rgba(0,229,255,.8); }
.cam-tile-above .cam-tile-name::after { top:100%; }
.cam-tile-below .cam-tile-name::after { bottom:100%; }
.cam-tile-video .cam-tile-name::after { background:rgba(255,59,47,.8); }
/* Batch T: live news TV cards (YouTube official embeds) */
.tv-card .tv-play { display:block; position:relative; width:100%; padding:0; border:0; background:none; cursor:pointer; text-align:left; }
.tv-card .tv-play img, .tv-card .tv-play .cam-ph { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.tv-card .tv-play::after { content:"▶"; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:44px; height:44px; border-radius:50%; background:rgba(7,16,24,.75); color:#fff; font-size:16px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.35); }
.tv-card .tv-badge { position:absolute; top:8px; left:8px; padding:2px 7px; border-radius:999px; background:rgba(11,18,32,.85); color:#CFE3F1; font:700 10px/14px var(--font-mono); letter-spacing:.08em; }
.tv-card.tv-live .tv-badge { background:var(--red); color:#fff; }
.tv-card.tv-live .tv-badge::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:#fff; margin-right:5px; animation:cam-blink 1.2s infinite; }
.tv-card iframe { display:block; width:100%; aspect-ratio:16/9; border:0; background:#000; }

/* ---- Batch AH: crash pattern explorer + shared helpers ---- */
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.btn-link { background:none; border:0; padding:0; color:var(--cyan); font:inherit; font-size:12.5px; cursor:pointer; text-decoration:underline; }
.btn-link:hover, .btn-link:focus-visible { color:var(--text); }
.ce-controls { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:14px 18px; align-items:end; }
.ce-controls label.ce-l { display:block; font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--text-3); margin-bottom:6px; font-family:var(--font-mono); }
.ce-controls select, .ce-controls input[type=date] { width:100%; min-width:0; background:var(--surface-2); color:var(--text); border:1px solid var(--border); border-radius:8px; padding:8px 9px; font:inherit; font-size:13px; }
.ce-controls .btn { padding:8px 12px; font-size:12px; }
.ce-controls .btn[aria-pressed=true] { border-color:var(--cyan); color:var(--cyan); }
.ce-summary { font-family:var(--font-mono); font-size:12.5px; color:var(--text-2); margin:14px 0 0; }
.ce-charts { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap:18px; margin-top:22px; }
.ce-chart { height:280px; width:100%; }
.ce-charts .card { min-width:0; }
.ce-charts h3 { margin:0 0 6px; font-size:15px; }
.ce-charts details summary { cursor:pointer; font-size:12.5px; color:var(--text-3); margin-top:8px; }
.ce-pager { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; font-size:12.5px; color:var(--text-3); }
.ce-badge { display:inline-block; font-family:var(--font-mono); font-size:11px; padding:3px 8px; border-radius:999px; border:1px solid var(--border); color:var(--text-2); }
.ce-badge.recent { border-color:rgba(34,211,238,.5); color:var(--cyan); }
.ce-badge.delayed { border-color:rgba(255,176,32,.5); color:var(--amber); }
.ce-badge.error { border-color:rgba(255,59,47,.6); color:var(--red); }

/* ---- Batch AJ: route, report and search helpers ---- */
.rt-sugg { position:absolute; left:0; right:0; top:100%; z-index:500; background:var(--surface); border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.rt-sugg:empty { display:none; }
.rt-sugg button { display:block; width:100%; text-align:left; background:none; border:0; color:var(--text); padding:8px 10px; font:inherit; font-size:13px; cursor:pointer; }
.rt-sugg button span { color:var(--text-3); font-size:11.5px; }
.rt-sugg button:hover, .rt-sugg button:focus-visible { background:var(--surface-2); }
.rp-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap:10px 14px; }
.rp-check { display:flex !important; gap:8px; align-items:flex-start; font-weight:400; font-size:13.5px; margin-top:10px; }
.rp-check input { width:auto !important; margin-top:3px; }
.ss-all { border-top:1px solid var(--border); }
mark { background:rgba(255,176,32,.25); color:inherit; padding:0 2px; border-radius:2px; }

/* Batch AM accessibility: links inside running text are underlined, so they are not told apart by colour alone
   (Lighthouse link-in-text-block). Styled links with their own class keep their design. */
.section p a:not([class]), .page-hero p a:not([class]), .section li > a:not([class]), .faq-a a:not([class]), .site-footer .mono a:not([class]) {
  text-decoration: underline; text-decoration-color: rgba(53, 194, 240, 0.45); text-underline-offset: 2px; }
.section p a:not([class]):hover, .page-hero p a:not([class]):hover, .section li > a:not([class]):hover { text-decoration-color: currentColor; }
.dl-table td a:not([class]) { text-decoration: underline; text-decoration-color: rgba(53, 194, 240, 0.45); text-underline-offset: 2px; } /* links sit inside sentences in this table */
