/* Palette sampled from the splash video. Text colors are darker shades that keep at least
   5:1 contrast on the cream page and panels; the lighter video tones are used only for fills. */
:root {
  --ink: #23271b;
  --muted: #5b5a48;
  --line: #e3dccd;
  --panel: #fffdf8;
  --page: #f4f0e8;
  --chip: #ece5d6;
  --brand: #3d6b35;
  --cactus: #678e57;
  --soil: #b67757;
  --sand: #cda47b;
  --water: #4a7b7f;
  --link: #2c5d61;
  --gold: #d1aa7e;
  --ok: #346b37;
  --warning: #8c4a26;
  --critical: #a3302a;
  --offline: #4a5557;
  --unknown: #6d6a5a;
  --focus: #2c5d61;
  --heading: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
h1, h2, h3, .brand-name, .tab { font-family: var(--heading); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Splash */
/* The video is scaled to fit (never cropped) under a solid title card, so the title never sits on the artwork. */
.splash { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 3vh, 28px); padding: 20px 16px 72px; background: var(--page); transition: opacity 0.6s ease; }
.splash.leaving { opacity: 0; pointer-events: none; }
/* The video takes whatever height is left after the title (and start button), scaled to fit without cropping. */
.splash video { order: 2; display: block; flex: 1 1 0; min-height: 0; width: 100%; max-width: 1100px; height: auto; object-fit: contain; background: var(--page); }
.splash-title { order: 0; flex: none; display: flex; align-items: center; gap: 16px; padding: 14px 28px 14px 18px; background: var(--panel); border: 1px solid var(--sand); border-radius: 16px; box-shadow: 0 6px 24px rgba(35, 39, 27, 0.14); opacity: 0; transform: translateY(8px); transition: opacity 0.8s ease, transform 0.8s ease; }
.splash-title.shown { opacity: 1; transform: none; }
.splash-title img { width: clamp(48px, 7vw, 72px); height: auto; flex: none; }
.splash-title h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; font-weight: 700; letter-spacing: 0.04em; color: var(--brand); }
.splash-title p { margin: 0.35rem 0 0; font-size: clamp(0.95rem, 2.2vw, 1.3rem); color: var(--ink); font-weight: 600; }
.splash-controls { position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; }
.splash-button { padding: 8px 16px; border: 1px solid var(--sand); border-radius: 20px; background: rgba(255, 253, 248, 0.9); color: var(--ink); font-size: 0.95rem; cursor: pointer; }

/* Header */
/* The header's bottom edge echoes the video's soil strata: sand, terracotta, water. */
.topbar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 10px 20px; background: var(--panel); border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, var(--sand), var(--soil) 45%, var(--water)) 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.45rem; font-weight: 700; color: var(--brand); letter-spacing: 0.03em; line-height: 1.1; }
.brand-sub { font-size: 0.8rem; color: var(--muted); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.topbar-meta { display: flex; gap: 16px; align-items: center; font-size: 0.85rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 16px; background: var(--chip); font-size: 0.88rem; white-space: nowrap; }
.topbar-meta a, .crumbs a, .popup a { color: var(--link); }
.notice { margin: 12px 20px 0; padding: 10px 14px; border-radius: 8px; background: #f6e7cf; color: var(--warning); }

/* Layout */
.view { max-width: 1280px; margin: 0 auto; padding: 18px 20px 40px; }
.view:focus { outline: none; }
.crumbs { margin: 0 0 6px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { text-decoration-thickness: 2px; }
h1.page-title { margin: 0 0 4px; font-size: 1.6rem; }
.page-sub { margin: 0 0 18px; color: var(--muted); }
.section { margin: 0 0 26px; }
.section h2 { margin: 0 0 10px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }

/* Status dots and labels */
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--unknown); }
.status-ok { --status: var(--ok); }
.status-warning { --status: var(--warning); }
.status-critical { --status: var(--critical); }
.status-offline { --status: var(--offline); }
.status-unknown, .status-unmonitored { --status: var(--unknown); }
.dot[class*="status-"] { background: var(--status); }
.status-label { font-weight: 600; color: var(--status); }

/* Alerts */
.alerts { list-style: none; margin: 0; padding: 0; }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.alerts li:last-child .alert-row { border-bottom: 0; }
.alert-row:hover { background: #f8f3e8; }
.alert-what { font-weight: 600; }
.alert-where { grid-column: 2; font-size: 0.88rem; color: var(--muted); }
.alert-go { grid-row: 1 / span 2; grid-column: 3; color: var(--muted); font-size: 1.3rem; }
.level-critical { --status: var(--critical); }
.level-warning { --status: var(--warning); }
.level-info { --status: var(--unknown); }
.all-clear { padding: 18px; font-size: 1.05rem; color: var(--ok); font-weight: 600; }

/* Browse */
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; background: var(--chip); padding: 4px; border-radius: 10px; max-width: 100%; }
.main-nav a { padding: 8px 12px; text-decoration: none; border-radius: 7px; font-family: var(--heading); white-space: nowrap; }
.main-nav a[aria-current="page"] { background: var(--panel); color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px #23271b20; }
.family-intro { display: flex; gap: 22px; align-items: flex-start; max-width: 850px; margin: 12px 0 28px; }
.family-intro img { flex: none; }
.family-intro p { margin: 8px 0; line-height: 1.6; }
.family-plan { color: var(--muted); }
.family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.family-card { overflow: hidden; }
.family-diagram { display: block; width: 100%; height: 160px; background: #ecefe4; }
.family-copy { padding: 22px; }
.family-copy h2 { margin: 0; font-size: 2rem; color: var(--brand); }
.family-copy p { line-height: 1.6; }
.family-copy .family-role { margin: 0 0 3px; color: var(--muted); font-size: 0.85rem; }
.family-tagline { font-weight: 600; margin-top: 6px; }
.family-tie { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 12px; }
.family-flow { padding: 22px; margin-top: 22px; line-height: 1.7; }
.family-flow h2 { margin-top: 0; }
.family-flow a { color: var(--link); font-weight: 600; }
.network-panel { padding: 22px; margin: 24px 0; }
.network-panel h2 { margin: 0 0 20px; }
.network-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; padding: 0; list-style: none; }
.network-flow li { position: relative; padding: 14px 10px; background: var(--chip); border-radius: 8px; }
.network-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 18px; color: var(--brand); }
.network-flow strong, .network-flow span { display: block; }
.network-flow strong { font-family: var(--heading); color: var(--brand); }
.network-flow span { font-size: 0.85rem; margin-top: 6px; color: var(--muted); }
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.how-card { padding: 24px; line-height: 1.7; }
.how-card h2 { margin: 0; font-size: 1.35rem; }
.how-card .family-role { color: var(--warning); font-weight: 700; margin: 0 0 4px; }
.how-card details { border-top: 1px solid var(--line); padding-top: 12px; }
.how-card summary { cursor: pointer; font-weight: 600; color: var(--link); }
.how-card details p { color: var(--muted); font-size: 0.92rem; }
/* Download data page, and the buttons that open it. */
.button-link { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--brand); color: var(--brand); background: var(--panel); text-decoration: none; font-weight: 600; white-space: nowrap; }
.button-link:hover { background: var(--brand); color: white; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.download-form { display: grid; gap: 14px; max-width: 980px; }
.download-step { padding: 16px 20px; }
.download-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.1rem; }
.download-step h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: white; font-size: 0.85rem; }
.select-all { display: inline-flex; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.station-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.station-group { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0; }
.station-group legend { padding: 0 4px; font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.choice:hover { background: #f8f3e8; }
.choice input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.custom-dates { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 12px; }
.custom-dates input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; margin-left: 6px; }
.download-bar { position: sticky; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 12px 20px; box-shadow: 0 2px 12px rgba(35, 39, 27, 0.12); }
.download-bar p { margin: 0; }
.primary-button { padding: 11px 26px; border: 0; border-radius: 8px; background: var(--brand); color: white; font: 600 1rem var(--heading); cursor: pointer; }
.primary-button:disabled { background: var(--unknown); cursor: not-allowed; opacity: 0.6; }
.download-progress { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.download-progress progress { flex: 1; max-width: 360px; accent-color: var(--brand); }
.download-result { max-width: 980px; margin-top: 14px; padding: 16px 20px; }
.download-result h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--ok); word-break: break-all; }
.download-counts { margin: 6px 0 12px; padding-left: 20px; }
.preview-table { border-collapse: collapse; font-size: 0.82rem; }
.preview-table th, .preview-table td { padding: 5px 8px; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.preview-table th { background: var(--chip); }
/* Readings Guide page, and the links to it under each station chart. */
.about-link { margin: 2px 2px 6px; font-size: 0.88rem; }
.about-link a { color: var(--link); }
.readings-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 24px; padding: 16px 22px; margin-bottom: 24px; }
.readings-toc h2 { margin: 0 0 4px; font-size: 1rem; color: var(--brand); }
.readings-toc ul { margin: 0; padding-left: 18px; line-height: 1.8; }
.readings-toc a { color: var(--link); }
.readings-group > h2 { margin: 28px 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.reading-topic { padding: 20px 24px; margin-bottom: 14px; line-height: 1.6; max-width: 85ch; scroll-margin-top: 110px; }
.reading-topic h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--brand); }
.reading-topic h4 { margin: 14px 0 4px; font-size: 0.95rem; }
.reading-topic ul { margin: 0; padding-left: 20px; }
.reading-unit { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.reading-topic.is-target { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.guide-links { display: flex; flex-wrap: wrap; gap: 20px; padding: 10px 0; color: var(--link); font-weight: 600; }
@media (max-width: 900px) {
  .network-flow { grid-template-columns: 1fr; gap: 22px; }
  .network-flow li:not(:last-child)::after { content: "↓"; top: auto; bottom: -23px; right: 50%; }
}
@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .family-grid { grid-template-columns: 1fr; }
  .family-intro { gap: 12px; }
  .family-intro img { width: 44px; height: 44px; }
}
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 10px; background: var(--chip); }
.tab { padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; font-size: 0.95rem; cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--panel); box-shadow: 0 1px 3px rgba(35, 39, 27, 0.15); font-weight: 600; color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cards:has(.site-card) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.site-card .site-state { display: flex; align-items: center; gap: 7px; margin: 12px 0; color: var(--status); font-weight: 600; }
.site-metrics { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; }
.site-metrics dt { font-size: 0.78rem; color: var(--muted); }
.site-metrics dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; }
.site-trends { border-top: 1px solid var(--line); padding-top: 10px; }
.site-mini-trend { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; font-size: 0.85rem; }
.sparkline { width: 160px; max-width: 65%; height: 38px; color: var(--water); }
.trend-caption, .trend-empty { font-size: 0.75rem; color: var(--muted); }
.alert-group { margin-bottom: 16px; }
.alert-group h3 { margin: 0 0 8px; font-size: 1rem; }
.alert-count { background: var(--chip); border-radius: 12px; padding: 2px 8px; margin-left: 5px; font-size: 0.8rem; }
.station-trends { padding: clamp(12px, 2vw, 24px); margin-bottom: 20px; }
.trend-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.trend-heading h2 { margin: 0; }
.range-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.range-controls button { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.range-controls button[aria-pressed="true"] { background: var(--brand); color: white; border-color: var(--brand); }
.history-status, .target-note { font-size: 0.85rem; color: var(--muted); }
.history-error { color: var(--critical) !important; }
.history-content h3 { margin-bottom: 6px; }
.chart-scroll { overflow-x: auto; }
.history-chart { width: 100%; min-width: 650px; display: block; }
.history-chart text { font: 12px system-ui, sans-serif; }
.history-events { border-top: 1px solid var(--line); margin-top: 18px; }
.history-events li { margin: 8px 0; font-size: 0.9rem; }
.station-details > summary { padding: 14px 0; cursor: pointer; font-weight: 600; color: var(--link); }
/* Station page: Soil, Air and Battery sections, each with its latest values above its charts. */
.reading-section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 6px; }
.reading-section > h2 { margin: 10px 0; font-size: 1.15rem; color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.tile { padding: 12px 14px; }
.tile .label { font-size: 0.8rem; color: var(--muted); }
.tile .value { margin-top: 4px; font-size: 1.35rem; font-weight: 600; }
.tile-change { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.battery-tile .status-label { display: block; margin-top: 2px; font-size: 0.9rem; }
.history-chart .zone-label { fill: var(--muted); font-size: 11px; }
/* Site page: air quality (VOC index) from every station with an ENS160. */
.site-air { padding: clamp(12px, 2vw, 22px); margin: 18px 0; }
.site-air h3 { margin: 18px 0 4px; font-size: 1rem; }
.air-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.air-head h2 { margin: 0; font-size: 1.15rem; color: var(--brand); }
.air-head a { color: var(--link); font-size: 0.9rem; }
.air-kind { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.air-now { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.air-index { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; color: white; font-size: 1.6rem; font-weight: 700; background: var(--unknown); }
.air-stale { color: var(--muted); }
.air-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); }
.air-legend .swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.air-legend .swatch-line { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed #5b5a48; }
.air-legend .swatch-hollow { background: #fffdf8; border: 2px solid #5b5a48; box-sizing: border-box; }
.card { display: block; padding: 14px; text-decoration: none; }
.card { border-top: 4px solid var(--cactus); }
.card:hover { border-color: var(--sand); border-top-color: var(--brand); box-shadow: 0 2px 10px rgba(35, 39, 27, 0.08); }
.card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.card p { margin: 0 0 10px; font-size: 0.88rem; color: var(--muted); }
.card .dots { display: flex; flex-wrap: wrap; gap: 5px; min-height: 12px; }

/* Map + list */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.map { height: min(70vh, 620px); border-radius: 10px; border: 1px solid var(--line); z-index: 0; }
.station-list { list-style: none; margin: 0; padding: 0; max-height: min(70vh, 620px); overflow-y: auto; }
.station-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.station-list li:last-child .station-row { border-bottom: 0; }
.station-row:hover, .station-row.highlight { background: #f8f3e8; }
.station-name { font-weight: 600; }
.station-meta { grid-column: 2; font-size: 0.85rem; color: var(--muted); }
.station-status { grid-row: 1 / span 2; grid-column: 3; text-align: right; font-size: 0.85rem; }
.empty { padding: 16px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 2px 0; font-size: 0.85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Map pins */
.campus-map { height: clamp(420px, 65vh, 650px); }
.site-pin { background: transparent; border: 0; }
.site-pin svg { display: block; width: 58px; height: 78px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.site-pin:hover svg { filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.site-pin:focus-visible { outline: 3px solid #a34b28; outline-offset: 3px; border-radius: 18px; }
.site-alert-critical { --site-alert: var(--critical); }
.site-alert-warning { --site-alert: var(--warning); }
.site-alert-info { --site-alert: var(--water); }
.site-pin-alert::before { content: ""; position: absolute; inset: 0 0 10px; border: 3px solid var(--site-alert); border-radius: 20px; animation: site-alert-pulse 2.4s ease-out infinite; pointer-events: none; }
.site-alert-badge { position: absolute; top: -4px; right: -5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--site-alert); color: white; border: 2px solid var(--panel); font: 800 17px/1 system-ui, sans-serif; }
@keyframes site-alert-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  85%, 100% { transform: scale(1.45); opacity: 0; }
}
.pin-wrap { background: none; border: 0; }
.pin { display: block; width: 22px; height: 22px; background: var(--status, var(--unknown)); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.pin-circle { border-radius: 50%; }
.pin-square { border-radius: 3px; }
.pin-triangle { width: 24px; height: 22px; border: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.pin-approximate { opacity: 0.75; outline: 2px dashed #fff; outline-offset: 1px; }
.pin-receiver { width: 18px; height: 18px; background: var(--water); transform: rotate(45deg); border-radius: 2px; }
.legend .pin { width: 14px; height: 14px; border-width: 1px; }
.legend .pin-triangle { width: 15px; height: 14px; }
.legend .pin-receiver { width: 11px; height: 11px; }
.popup h3 { margin: 0 0 4px; font-size: 1rem; }
.popup p { margin: 2px 0; }
.popup a { display: inline-block; margin-top: 6px; font-weight: 600; }

/* Station page */
.station-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fact { padding: 12px 14px; }
.fact .label { font-size: 0.8rem; color: var(--muted); }
.fact .value { margin-top: 4px; font-size: 1.15rem; font-weight: 600; }
.station-alerts { margin-bottom: 14px; }
.station-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.mini-map { height: 260px; border-radius: 10px; border: 1px solid var(--line); }
.side-note { margin: 8px 2px; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .topbar { position: static; gap: 8px 12px; }
  .summary { order: 3; flex-basis: 100%; gap: 6px; }
  .summary .chip { padding: 4px 8px; font-size: 0.82rem; }
  .topbar-meta { margin-left: auto; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.78rem; }
  .split, .station-body { grid-template-columns: 1fr; }
  .map { height: 52vh; }
  .station-list { max-height: none; }
  .topbar { padding: 10px 14px; }
  .view { padding: 14px 14px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-pin-alert::before { animation: none; opacity: 1; }
  .splash, .splash-title { transition: none; }
}
