main { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

.header-meta a { text-decoration: none; font-weight: 600; }

.intro { margin-bottom: 2.75rem; }

.intro h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.intro p { max-width: 62ch; margin-bottom: 0.8rem; color: var(--text); }

.section { margin-bottom: 3rem; }

.section-title {
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 1rem; }

.map {
  height: 460px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
}

.leaflet-container {
  font-family: inherit;
  background: var(--surface2);
  border-radius: 6px;
}

.status-line { color: var(--muted); font-size: 0.88rem; margin-top: 0.6rem; }

.node-label {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 4px;
  box-shadow: none;
}

.node-label::before { display: none; }

.gateway-pin {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid #fff;
  transform: rotate(45deg);
}

.station-pin {
  width: 12px;
  height: 12px;
  background: #2a72c2;
  border: 2px solid #fff;
  border-radius: 50%;
}

.popup h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.popup .popup-sub { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.4rem; }
.popup dl { display: grid; grid-template-columns: auto auto; gap: 0.1rem 0.8rem; font-size: 0.85rem; }
.popup dt { color: var(--muted); }
.popup dd { text-align: right; font-weight: 600; }
.popup .popup-note { color: var(--danger); font-size: 0.8rem; margin-top: 0.4rem; max-width: 22ch; }

.picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }

.picker button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scrub-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.scrub-row input[type="range"] {
  flex: 1;
  min-width: 240px;
  padding: 0;
  accent-color: var(--accent);
  background: transparent;
  border: none;
}

.cursor-time { font-weight: 600; font-variant-numeric: tabular-nums; }

.replay-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.1rem;
  align-items: flex-start;
}

.legend { width: 230px; }
.legend-title { font-size: 0.85rem; color: var(--muted); }

.legend-ramp {
  height: 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 0.35rem 0 0.2rem;
  background: linear-gradient(to right, #fde3c8, #f6b26b, #e08a34, #b45309, #7c3a08);
}

.legend-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}

.legend-note { color: var(--muted); font-size: 0.78rem; margin-top: 0.5rem; }

.readout { flex: 1; min-width: 260px; }

.readout table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.readout th, .readout td { text-align: left; padding: 0.25rem 0.6rem 0.25rem 0; border-bottom: 1px solid var(--border); }
.readout th { color: var(--muted); font-weight: 600; }
.readout .stale { color: var(--muted); }

.table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }

.table th, .table td {
  text-align: left;
  padding: 0.45rem 0.7rem 0.45rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th { color: var(--muted); font-weight: 600; }
.table td.note { color: var(--muted); }

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.25rem 1.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

footer p { margin-bottom: 0.3rem; }

@media (max-width: 640px) {
  .map { height: 340px; }
  .intro h1 { font-size: 1.55rem; }
}
