:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #1d4ed8;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --cta-bg: #fff7ed;
  --cta-border: #fdba74;
  --cta-btn: #c2410c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #1e293b;
    --accent: #60a5fa;
    --danger: #f87171;
    --danger-bg: #2a1215;
    --ok: #4ade80;
    --ok-bg: #0f2418;
    --cta-bg: #24170c;
    --cta-border: #9a3412;
    --cta-btn: #ea580c;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0a2a66;
  color: #fff;
}
.site-header a { color: #fff; text-decoration: none; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.shield {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #1d4ed8;
  border: 2px solid #fff;
  border-top: 8px solid #dc2626;
  border-radius: 4px 4px 14px 14px;
  font-size: 0.85rem;
  line-height: 1;
}
.header-cta {
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--cta-btn);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.container { max-width: 960px; margin: 0 auto; padding: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.stat .num { font-size: 1.8rem; font-weight: 700; }
.stat .num.small { font-size: 1.1rem; padding-top: 0.45rem; }
.stat .label { color: var(--muted); font-size: 0.85rem; }

.map { height: 420px; border-radius: 10px; border: 1px solid var(--border); z-index: 0; }
.map.small { height: 280px; margin: 16px 0; }

.controls { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; }
select {
  font: inherit;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: 8px; }
.item.cleared { border-left-color: var(--muted); opacity: 0.85; }
.item-link { display: flex; flex-direction: column; padding: 10px 12px; color: inherit; text-decoration: none; }
.item-link:hover .item-title { text-decoration: underline; }
.item-title { font-weight: 600; }
.item-loc { font-size: 0.92rem; }
.item-meta { color: var(--muted); font-size: 0.85rem; }
.empty { color: var(--muted); padding: 8px 0; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.badge.active { background: var(--danger-bg); color: var(--danger); }
.badge.cleared { background: var(--ok-bg); color: var(--ok); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.disclaimer { color: var(--muted); font-size: 0.85rem; margin-top: 24px; }
.site-footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 24px 16px; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 8px 0; }
.lead { font-size: 1.05rem; }
.sub { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
h3.day { font-size: 1rem; margin: 20px 0 8px; color: var(--muted); }

.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }

.cta {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}
.cta h2 { margin: 0 0 6px; font-size: 1.25rem; }
.cta p { margin: 0 0 12px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--cta-btn);
  color: var(--cta-btn);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--cta-btn); color: #fff; }
.btn.more { border-color: var(--border); color: var(--text); background: var(--surface); margin-top: 12px; width: 100%; }
.cta-legal { font-size: 0.78rem; color: var(--muted); margin: 0 !important; }

.cams { margin: 28px 0; }
.cams-note { color: var(--muted); font-size: 0.85rem; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cam { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cam-media { aspect-ratio: 4 / 3; background: #0b1220; display: grid; place-items: center; }
.cam-media img, .cam-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-play {
  font: inherit; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 10px 18px;
  display: inline-flex; gap: 8px; align-items: center; cursor: pointer;
}
.cam-play:hover { background: rgba(255, 255, 255, 0.22); }
.cam figcaption { padding: 8px 10px; display: flex; flex-direction: column; font-size: 0.9rem; }
.cam figcaption span { color: var(--muted); font-size: 0.8rem; }

.state-links { margin-bottom: 8px; line-height: 1.9; }
.state-links a, .site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .stat .num { font-size: 1.4rem; }
  .map { height: 320px; }
  h1 { font-size: 1.35rem; }
  .header-cta { font-size: 0.8rem; padding: 5px 10px; }
  .header-cta .long { display: none; }
  .brand { font-size: 1rem; }
  .cta-actions .btn { flex: 1 1 100%; text-align: center; }
}
