:root {
  --bg: #0c0f12;
  --panel: #14191f;
  --ink: #e6edf3;
  --muted: #8b9aab;
  --line: #243040;
  --quiet: #6b7280;
  --local: #3d8fd1;
  --hop2: #3db88a;
  --unusual: #e0a106;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 "IBM Plex Sans", "Segoe UI", sans-serif; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--unusual); }

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.brand .call { font-weight: 700; letter-spacing: 0.08em; margin-right: 14px; }
.brand .meta { color: var(--muted); font-size: 13px; }
.family {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 8px 24px 10px;
  border-bottom: 1px solid var(--line);
}
.family a,
.family .on {
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
  padding-bottom: 4px;
  margin-left: 0;
}
.family .on { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--ink); }
.family a { color: var(--muted); }
.family a:hover { color: var(--unusual); }
nav a { margin-left: 16px; color: var(--muted); }
nav a.on { color: var(--ink); border-bottom: 1px solid var(--ink); }
.dirs {
  display: flex;
  gap: 16px;
  padding: 10px 24px 0;
  border-bottom: 1px solid var(--line);
}
.dirs a { color: var(--muted); padding-bottom: 8px; }
.dirs a.on { color: var(--ink); border-bottom: 1px solid var(--ink); }

main { padding: 24px; }
footer { padding: 12px 24px 24px; color: var(--muted); font-size: 12px; }

.hero { border: 1px solid var(--line); padding: 20px 24px; margin-bottom: 20px; background: var(--panel); }
.state-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; margin-bottom: 8px; }
.narration { font-size: 20px; max-width: 52rem; margin: 0 0 8px; }
.reason { color: var(--muted); margin: 0; }
.state-quiet .state-label { color: var(--quiet); }
.state-local .state-label { color: var(--local); }
.state-hop2 .state-label { color: var(--hop2); }
.state-unusual .state-label, .interesting .state-label { color: var(--unusual); }

.kpis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 20px; }
.kpis div { background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.kpis span { display: block; color: var(--muted); font-size: 12px; }
.kpis strong { font-size: 22px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
#map { height: 480px; border: 1px solid var(--line); background: #1b222c; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.wide { margin-top: 12px; }
.pager { margin: 12px 0 16px; }
.pager a { margin-right: 16px; color: var(--muted); }
.pager a.on { color: var(--ink); border-bottom: 1px solid var(--ink); }
.search { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; flex-wrap: wrap; }
.search input { background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 6px 10px; min-width: 12rem; }
.search button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.badge { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; margin-left: 6px; white-space: nowrap; }
.empty { color: var(--muted); margin: 16px 0 24px; }
.warn[hidden] { display: none; }
.furniture td { color: var(--muted); }
h1, h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }

@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .top { flex-direction: column; gap: 8px; }
}
