/* City Vibes — night-neon × travel-poster zine.
   One shared system; each city page re-themes it from config/city_identity.json by
   overriding --night / --neon / --neon2 / --display on <html>. Numbers and body copy
   stay in the UI sans everywhere; the display face is for names and posters only. */

:root {
  --night: #0b0a12;
  --neon: #ffcf5a;
  --neon2: #7fd1ff;
  --display: "Bungee", "DM Sans", sans-serif;

  --surface: color-mix(in srgb, var(--night) 88%, white 12%);
  --surface-2: color-mix(in srgb, var(--night) 80%, white 20%);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ink: #f4efe6;
  --ink-2: #cfc6b8;
  --muted: #968d80;
  --glow: color-mix(in srgb, var(--neon) 55%, transparent);
  --glow-soft: color-mix(in srgb, var(--neon) 18%, transparent);

  --ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1140px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  overflow-x: hidden;
  min-height: 100vh;
}
/* subtle print grain over everything: the zine half of the look */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,0.9) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- nav */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font: 400 20px/1 "Monoton", var(--ui); letter-spacing: 0.04em; text-decoration: none;
  color: var(--neon); text-shadow: 0 0 10px var(--glow), 0 0 26px var(--glow-soft);
  white-space: nowrap;
}
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a {
  font: 700 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); border-color: var(--neon); }
.topbar .jump { margin-left: auto; }
.topbar .jump select {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; max-width: 200px;
}

/* ---------------------------------------------------------------- layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 80px; }
section.block { padding-top: 64px; scroll-margin-top: 60px; }
.eyebrow {
  font: 700 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--neon); margin-bottom: 10px;
}
h1, h2, h3 { font-family: var(--ui); line-height: 1.12; letter-spacing: -0.02em; }
h2.section {
  font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; margin-bottom: 8px;
}
h2.section .hl { color: var(--neon); text-shadow: 0 0 18px var(--glow-soft); }
h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; }
.lede { color: var(--ink-2); font-size: 18px; max-width: 720px; }
.note { color: var(--muted); font-size: 14px; max-width: 760px; margin-top: 10px; }
.note a, .lede a { text-decoration-color: var(--neon); text-underline-offset: 3px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* ---------------------------------------------------------------- cards & tiles */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; position: relative; overflow: hidden;
}
.tile .k { font: 700 11px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-size: 34px; font-weight: 700; line-height: 1.1; margin: 6px 0 4px; letter-spacing: -0.02em; }
.tile .v small { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.tile .cap { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.tile .cap b { color: var(--ink); font-weight: 700; }
.tile .meter { margin-top: 12px; }

/* percentile meter: where this city sits among the 68 */
.meter { position: relative; height: 18px; }
.meter .rail { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.meter .mid { position: absolute; left: 50%; top: 4px; width: 1px; height: 10px; background: var(--muted); }
.meter .dot {
  position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 0 2px var(--surface), 0 0 12px var(--glow);
}
.meter-ends { display: flex; justify-content: space-between; font: 400 10px/1 var(--mono); color: var(--muted); margin-top: 2px; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- city hero */
.hero { position: relative; margin: 0 calc(50% - 50vw); }
.hero svg.poster { width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .hero svg.poster { aspect-ratio: 4 / 5; } }
.hero-title {
  position: absolute; left: max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter))); right: var(--gutter); bottom: clamp(18px, 5vw, 48px);
  pointer-events: none;
}
.hero-title .nick {
  font: 700 clamp(11px, 1.6vw, 14px)/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); opacity: 0.9; margin-bottom: 10px; text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.hero-title h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: 0.01em;
  font-size: clamp(48px, 11vw, 132px); line-height: 0.92; color: var(--neon);
  text-shadow: 0 0 6px var(--glow), 0 0 28px var(--glow), 0 4px 30px rgba(0,0,0,0.6);
  overflow-wrap: anywhere;
}
.hero-title .sub {
  margin-top: 12px; font: 400 clamp(12px, 1.7vw, 15px)/1.4 var(--mono); color: var(--ink);
  text-shadow: 0 1px 8px rgba(0,0,0,0.9); letter-spacing: 0.04em;
}

/* the four-priority strip under the hero */
.vibe-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
@media (max-width: 900px) { .vibe-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .vibe-strip { grid-template-columns: 1fr; } }
.vibe-strip a {
  display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--neon); border-radius: var(--radius); padding: 14px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vibe-strip a:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -10px var(--glow); }
.vibe-strip .k { font: 700 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon); }
.vibe-strip .v { font-size: 26px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -0.02em; }
.vibe-strip .cap { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ---------------------------------------------------------------- the read */
.read { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 780px; }
.read .headline { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.read p { color: var(--ink-2); font-size: 18px; }
.read .facts { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 6px; }
.read .facts li { padding-left: 22px; position: relative; color: var(--ink-2); }
.read .facts li::before { content: "✦"; position: absolute; left: 0; color: var(--neon); }
.read .facts b { color: var(--ink); }
.pending {
  font: 400 12px/1.4 var(--mono); color: var(--muted); border: 1px dashed var(--line-strong);
  border-radius: 10px; padding: 8px 12px; margin-top: 8px;
}

/* ---------------------------------------------------------------- stickers (vibe tags) */
.stickers { display: flex; flex-wrap: wrap; gap: 10px 10px; margin-top: 14px; }
.sticker {
  --tilt: 0deg; transform: rotate(var(--tilt));
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 7px 14px 7px 14px; font-weight: 700; font-size: 16px; line-height: 1.2;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
}
.sticker.big { font-size: 21px; padding: 9px 18px; border-color: var(--neon); box-shadow: 0 0 18px -6px var(--glow), 0 3px 0 rgba(0,0,0,0.35); }
.sticker .n { font: 400 11px/1 var(--mono); color: var(--muted); }
.sticker .kind { font: 700 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon2); }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font: 400 12px/1.4 var(--mono); color: var(--muted); margin-top: 12px; }

/* rising / fading */
.trend-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.trend-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.trend-list .t { font-weight: 700; }
.trend-list .x { font: 700 13px/1 var(--mono); color: var(--neon); white-space: nowrap; }
.trend-list.fading .x { color: var(--muted); }
.trend-list .why { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }

/* ---------------------------------------------------------------- charts */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text.axis { fill: var(--muted); font: 400 11px var(--mono); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--line-strong); stroke-width: 1; }
.chart .series { fill: none; stroke: var(--neon); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series.ref { stroke: var(--muted); stroke-width: 1.5; }
.chart .area { fill: var(--glow-soft); stroke: none; }
.chart .crosshair { stroke: var(--line-strong); stroke-width: 1; }
.chart .hoverdot { fill: var(--neon); stroke: var(--surface); stroke-width: 2; visibility: hidden; }
.chart:hover .hoverdot { visibility: visible; }
.chart .label { fill: var(--ink-2); font: 700 11px var(--mono); }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 10px; }
.chart-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.chart-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tip {
  position: absolute; pointer-events: none; z-index: 20; white-space: nowrap;
  background: color-mix(in srgb, var(--night) 92%, white 8%); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 6px 9px; font: 400 12px/1.35 var(--mono); color: var(--ink);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5); transform: translate(-50%, -100%); margin-top: -10px;
  opacity: 0; transition: opacity .08s;
}
.tip b { font-weight: 700; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font: 400 12px/1.2 var(--mono); color: var(--ink-2); margin-bottom: 8px; }
.chart-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--neon); }
.chart-legend i.ref { background: var(--muted); }

/* diverging index bars: more / less than the typical city */
.ibars { display: grid; gap: 7px; }
.ibar { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 52px; gap: 10px; align-items: center; font-size: 14px; }
.ibar .lab { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibar .track { position: relative; height: 12px; }
.ibar .track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.ibar .fill { position: absolute; top: 2px; height: 8px; border-radius: 4px; }
.ibar .fill.more { left: 50%; background: var(--neon); box-shadow: 0 0 10px var(--glow-soft); }
.ibar .fill.less { right: 50%; background: var(--muted); }
.ibar .val { font: 700 12px/1 var(--mono); text-align: right; color: var(--ink); }
.ibars .axis-lab { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 52px; gap: 10px; font: 400 10px/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ibars .axis-lab span:nth-child(2) { display: flex; justify-content: space-between; }

/* ---------------------------------------------------------------- twins & posters grid */
.poster-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
.pcard { text-decoration: none; display: block; border-radius: 12px; overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 34px -12px var(--pglow, var(--glow)); outline: none; }
.pcard svg { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.pcard .pmeta { padding: 9px 11px 11px; }
.pcard .pname { font-weight: 700; font-size: 15px; line-height: 1.2; }
.pcard .pstat { font: 400 12px/1.35 var(--mono); color: var(--muted); margin-top: 3px; }
.pcard .pstat b { color: var(--ink); }
.pcard .rankbadge { display: inline-block; font: 700 11px/1 var(--mono); color: var(--neon); letter-spacing: .06em; margin-bottom: 5px; }

/* ---------------------------------------------------------------- home: map */
.home-hero { padding-top: 26px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px 40px; align-items: end; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; } }
.home-hero .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.home-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.035em; }
.home-hero h1 .hl { color: var(--neon); text-shadow: 0 0 22px var(--glow-soft); }
.home-hero .lede { font-size: 16px; }
.lenses { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 12px; }
@media (max-width: 700px) { .lenses { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .lens, .lens-group { flex: none; } }
.lens {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 5px 12px;
  font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2);
}
.lens:hover { color: var(--ink); border-color: var(--ink-2); }
.lens[aria-pressed="true"] { background: var(--neon); color: #111; border-color: var(--neon); font-weight: 700; }
.lens-group { font: 700 11px/2.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--night) 80%, #3b2a7a 20%), var(--night) 70%); }
.map-wrap svg { width: 100%; height: auto; }
.map-wrap .state { fill: rgba(255,255,255,0.035); stroke: rgba(255,255,255,0.16); stroke-width: 0.7; }
.map-wrap .cdot { cursor: pointer; transition: r .15s ease; }
.map-wrap .clabel { font: 700 11px var(--ui); fill: var(--ink); paint-order: stroke; stroke: var(--night); stroke-width: 3px; pointer-events: none; }
.map-legend { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); color: var(--ink-2); margin-top: 10px; flex-wrap: wrap; }
.map-legend .ramp { width: 180px; height: 14px; border-radius: 7px; border: 1px solid rgba(255,255,255,.3); }
.map-scale-notes { flex-basis: 100%; line-height: 1.6; font: 400 12px/1.6 var(--ui); }
.map-green { color: #2cdb86; } .map-red { color: #f36872; }
.map-preference { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 400 12px/1.4 var(--ui); }
.map-preference select { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); padding: 7px 10px; }
.map-desc { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 760px; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 20px; }
.board ol { list-style: none; padding: 0; counter-reset: r; }
.board li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.board li::before { content: counter(r); font: 700 12px var(--mono); color: var(--muted); }
.board li a { text-decoration: none; font-weight: 700; }
.board li a:hover { color: var(--neon); }
.board li .val { font: 700 13px var(--mono); }
.board li .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.controls input[type="search"] { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; min-width: min(100%, 260px); }

/* feed */
.feed { display: grid; gap: 12px; }
.feed-item { display: grid; grid-template-columns: 6px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 0; overflow: hidden; }
.feed-item .bar { background: var(--c, var(--neon)); border-radius: 0 4px 4px 0; box-shadow: 0 0 14px var(--c, var(--neon)); }
.feed-item .when { font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.feed-item .what { margin: 4px 0 6px; }
.feed-item a { font-size: 14px; color: var(--ink-2); }

/* compare / match */
.picker { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.picker select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; min-width: 200px; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.vs-grid .pcard svg { aspect-ratio: 10 / 7; }
.vs-row { display: grid; grid-template-columns: 1fr minmax(120px, 200px) 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vs-row .lab { text-align: center; font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vs-row .a, .vs-row .b { font-size: 20px; font-weight: 700; }
.vs-row .a { text-align: right; }
.vs-row .win { color: var(--neon); text-shadow: 0 0 12px var(--glow-soft); text-decoration: underline 2px var(--neon); text-underline-offset: 6px; }
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px 26px; }
.slider label { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.slider label span { font: 400 12px var(--mono); color: var(--muted); }
.slider input[type="range"] { width: 100%; accent-color: var(--neon); margin-top: 6px; }
.slider .hint { font-size: 13px; color: var(--muted); }
.why-list { font-size: 13px; color: var(--ink-2); padding-left: 16px; margin-top: 4px; }

/* footer */
footer.site { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px var(--gutter) 60px; color: var(--muted); font-size: 14px; }
footer.site .inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 14px; }
footer.site .fresh { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 12px/1.5 var(--mono); }
footer.site .fresh b { color: var(--ink-2); font-weight: 400; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ================================================================ panorama city page
   One horizontal track of stations (content) over a parallax landscape, with the
   city's landmarks standing in the horizon lane below them. Desktop wheels scroll
   sideways; phones swipe natively. */
body.pano-page { overflow: hidden; height: 100dvh; }
body.pano-page::before { z-index: 1; }
.pano-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.pano-sky .sun { position: absolute; border-radius: 50%; filter: drop-shadow(0 0 40px var(--sun-glow)); }
.pano {
  position: fixed; left: 0; right: 0; top: var(--top, 56px); bottom: 0; z-index: 2;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: auto;
}
.pano::-webkit-scrollbar { display: none; }
/* Decorative scenery must not extend the scroll beyond the final station. */
.pano-track { position: relative; height: 100%; overflow: clip; }
.pano-layer { position: absolute; left: 0; bottom: 0; height: 100%; pointer-events: none; will-change: transform; }
.pano-layer svg { display: block; height: 100%; width: 100%; }

.station {
  position: absolute; top: 14px; max-height: calc(var(--lane-top, 100%) - 24px); display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--night) 80%, transparent);
  backdrop-filter: blur(9px) saturate(1.2); -webkit-backdrop-filter: blur(9px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--neon) 30%, transparent); border-radius: 20px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.3);
}
.station .st-head { padding: 16px 20px 0; }
.station .st-head .eyebrow { margin-bottom: 4px; }
.station .st-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.station .st-head h2 .hl { color: var(--neon); }
.station .st-body { padding: 12px 20px 18px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.station .st-body > * + * { margin-top: 12px; }
.station .tile .v { font-size: 26px; }
.station .grid.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.station .tile { padding: 12px 14px 10px; }
.station .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .station .cols { grid-template-columns: 1fr; } }
.station .lede { font-size: 15.5px; }
.station p.small { font-size: 14px; color: var(--ink-2); }

/* A shorter city guide: a few selections and the useful comparisons, with depth on request. */
.station .grid.tiles.key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brief-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px 0; }
.brief-stat { min-width: 0; display: grid; align-content: start; gap: 5px; }
.brief-stat > span { color: var(--ink-2); font: 700 12px/1.35 var(--ui); }
.brief-stat b { font: 700 24px/1.2 var(--ui); font-variant-numeric: tabular-nums; }
.brief-stat small { color: var(--ink-2); font: 11.5px/1.45 var(--ui); }
.weather-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-details { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.more-details > summary { width: fit-content; cursor: pointer; color: var(--ink-2); padding: 4px 0; font: 700 13px/1.5 var(--ui); }
.more-details > summary:hover { color: var(--neon); }
.more-details > :not(summary) { margin-top: 12px; }
.more-details > p { font-size: 14px; }
.affordability-context p, .neighborhood-change p { font-size: 14px; line-height: 1.55; }
.more-link { font: 700 13px/1.5 var(--ui); }
.more-link a { color: var(--neon); text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
.neighborhood-overview { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.neighborhood-overview > div { min-width: 0; }
.neighborhood-overview .more-link { margin: 15px 0; }
.change-previews, .weekend-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.change-preview, .weekend-pick { display: flex; flex-direction: column; gap: 9px; padding: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; }
.change-preview b, .weekend-pick b { font: 700 17px/1.3 var(--ui); }
.change-preview span, .weekend-pick span { font: 14px/1.55 var(--ui); color: var(--ink-2); }
.change-preview > span:first-child, .weekend-pick > span:first-child { font: 11px/1.4 var(--ui); color: var(--neon); }
.change-preview small { color: var(--neon); font: 700 12px/1.4 var(--ui); margin-top: auto; }
.season-picks { list-style: none; padding: 0; display: grid; gap: 10px; }
.season-picks li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 9px; font-size: 13px; }
.season-picks li > span { color: var(--ink-2); }
.season-picks button { border: 0; background: none; text-align: left; padding: 0; color: var(--ink); font: 700 13px/1.45 var(--ui); cursor: pointer; }
.change-preview:focus-visible, .weekend-pick:focus-visible, .more-details > summary:focus-visible, .season-picks button:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
@media (max-width: 700px) { .neighborhood-overview, .change-previews, .weekend-picks { grid-template-columns: 1fr; } .brief-stats { gap: 10px; } .brief-stat b { font-size: 21px; } }

/* the arrival station: the poster's title moment */
.station.arrival { background: none; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; bottom: auto; }
.arrival .st-body { overflow: visible; }
.arrival .vibe-strip a { background: color-mix(in srgb, var(--night) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.arrival .nick { font: 700 12px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.arrival h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(54px, 10vw, 128px); line-height: .92; color: var(--neon);
  text-shadow: 0 0 6px var(--glow), 0 0 30px var(--glow), 0 4px 30px rgba(0,0,0,.6); margin: 10px 0 8px; overflow-wrap: anywhere;
}
.arrival .sub { font: 400 13px/1.4 var(--mono); color: var(--ink); text-shadow: 0 1px 8px #000; }
.arrival .vibe-strip { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.arrival .vibe-strip .v { font-size: 22px; }
.arrival .hint { margin-top: 16px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .arrival .hint { animation: none; } }


/* subway-line navigation */
.rail { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 var(--gutter); background: color-mix(in srgb, var(--night) 85%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rail .line { position: relative; flex: 1; height: 24px; }
.rail .line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; border-radius: 2px; background: var(--neon); opacity: .45; }
.rail .line .prog { position: absolute; left: 0; top: 11px; height: 3px; border-radius: 2px; background: var(--neon); box-shadow: 0 0 10px var(--glow); }
.rail .dot { position: absolute; top: 5px; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; border: 3px solid var(--neon);
  background: var(--night); cursor: pointer; padding: 0; }
.rail .dot[aria-current="true"] { background: var(--neon); box-shadow: 0 0 12px var(--glow); }
.rail .now { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; min-width: 9ch; }
.rail .arrows button { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; width: 30px; height: 30px; cursor: pointer; }
@media (max-width: 700px) { .rail .arrows { display: none; } }

/* drawer */
#drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); overflow-y: auto;
  background: color-mix(in srgb, var(--night) 94%, white 6%); border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 60px rgba(0,0,0,.6); padding: 22px 22px 40px; transform: translateX(105%); transition: transform .28s ease; }
#drawer.open { transform: none; }
#drawer .close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; }
#drawer .dr-art { width: 120px; height: 120px; border-radius: 18px; padding: 12px; margin-bottom: 16px; }
#drawer .dr-souv { float: right; width: 92px; margin: -2px 2px 8px 14px; transform: rotate(-7deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }
#drawer .dr-souv svg { width: 100%; height: auto; overflow: visible; }
#drawer .dr-title { font-size: 26px; margin: 4px 0 6px; }
#drawer .dr-desc { color: var(--neon); font-weight: 500; }
#drawer p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }
#drawer .dr-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#drawer .dr-links a { text-decoration: none; border: 1px solid var(--neon); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; }
#drawer .dr-links a:hover { background: var(--neon); color: #111; }
@media (max-width: 700px) { #drawer { top: auto; height: 78dvh; width: 100vw; border-left: 0; border-top: 1px solid var(--line-strong);
  border-radius: 20px 20px 0 0; transform: translateY(105%); } }

/* further reading */
.reading { list-style: none; padding: 0; display: grid; gap: 10px; }
.reading li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.reading a.t { font-weight: 700; text-decoration: none; line-height: 1.3; display: block; }
.reading a.t:hover { color: var(--neon); }
.reading .o { font: 400 11px/1.4 var(--mono); color: var(--muted); margin-top: 3px; }
.reading .o .loc { color: var(--neon2); }
.reading ul { margin: 6px 0 0; padding-left: 16px; font-size: 13.5px; color: var(--ink-2); }
.vnotes p { font-size: 15px; color: var(--ink-2); }
.vnotes sup a { color: var(--neon); text-decoration: none; font: 700 10px var(--mono); }

/* compact chrome on phones: brand + city picker on one row, nav swipes */
@media (max-width: 700px) {
  .topbar { gap: 6px 12px; padding: 8px 14px; }
  .brand { font-size: 17px; }
  .topbar .jump { order: 2; margin-left: auto; }
  .topbar .jump select { max-width: 150px; padding: 5px 10px; font-size: 12px; }
  .topbar nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: none; font-size: 11px; padding: 4px 0; }
  body.pano-page .topbar nav { display: none; }
  .station .st-head { padding: 12px 14px 0; }
  .station .st-body { padding: 10px 14px 14px; }
  .station .tile .v { font-size: 22px; }
}
.read-p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.read-p sup a, .station h2 sup a { color: var(--neon); text-decoration: none; font: 700 10px var(--mono); }
.read-p sup a.rc { font-size: 11px; }
#drawer .dr-near { display: grid; gap: 6px; margin-top: 8px; }
#drawer .dr-near button { display: flex; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
#drawer .dr-near button:hover { border-color: var(--neon); }
#drawer .dr-near .km { font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }
/* grid tracks may shrink below their content (long tag lists) instead of overflowing */
.vibe-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .vibe-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.arrival .vibe-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vibe-strip .v, .vibe-strip .cap { overflow-wrap: anywhere; }

/* ================================================================ useful-first city page
   Souvenirs float over the landscape between cards; places are tappable rows that open a
   drawer with their own mini-map; every tile carries its baseline and, where it isn't a
   matter of taste, a verdict chip. */
.station { z-index: 10; }
.station h3 { font-size: 15px; margin: 4px 0 8px; letter-spacing: 0; }
.station .cols > div > h3:first-child { margin-top: 0; }
.vibe-strip .v.sm, .tile .v .sm, .tile .v.sm { font-size: 18px; line-height: 1.25; }
.vibe-strip .v small { font-size: 14px; }

/* verdict chips: is this good or bad for someone living here? */
.verdict { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: middle; font: 700 10px/1.3 var(--ui); letter-spacing: .015em;
  padding: 3px 7px; border-radius: 999px; margin-left: 4px; border: 1px solid; }
.verdict.good { color: #8be28b; border-color: #8be28b66; background: #8be28b14; }
.verdict.ok { color: #c7e59a; border-color: #c7e59a55; }
.verdict.mid { color: var(--muted); border-color: var(--line-strong); }
.verdict.meh { color: #f2b77a; border-color: #f2b77a55; }
.verdict.bad { color: #ff8f8f; border-color: #ff8f8f66; background: #ff8f8f14; }
.verdict.good::before { content: "▲ "; } .verdict.bad::before { content: "▼ "; }

/* place lists */
.places { display: grid; gap: 6px; }
.place { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "k" "b"; gap: 3px 12px; align-items: start;
  text-align: left; cursor: pointer; width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--c, var(--neon)); border-radius: 12px; padding: 12px; color: var(--ink); font: inherit; }
.place:hover, .place:focus-visible { border-color: var(--c, var(--neon)); outline: none; }
.place.has-photo { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "image n" "image k" "image b"; }
.place-thumb { grid-area: image; height: 100%; min-height: 94px; max-height: 130px; overflow: hidden; border-radius: 7px; background: var(--surface-2); }
.place-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.place-thumb.is-portrait img { object-fit: contain; }
.place .pn { grid-area: n; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.place .pk { grid-area: k; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; text-transform: none; }
.place .pk::first-letter { text-transform: uppercase; }
.place-blurb { grid-area: b; color: var(--ink-2); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.place .rise { font: 700 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #111; background: var(--neon);
  border-radius: 999px; padding: 2px 6px; margin-left: 4px; vertical-align: 2px; }
/* a fact about the venue, not a highlight: outlined, in the page's ink */
.adult { font: 700 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 6px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }

/* the city map */
.mapchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mapchips[hidden], .map-price-info[hidden], .map-hint[hidden] { display: none; }
.map-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.map-modes button, .neighborhood-map-link { min-height: 44px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink-2); background: var(--surface); font: 700 13px/1.4 var(--ui); text-align: left; cursor: pointer; }
.map-modes button[aria-pressed="true"] { color: var(--neon); border-color: var(--neon); background: color-mix(in srgb, var(--neon) 10%, var(--night)); }
.map-modes button:focus-visible, .neighborhood-map-link:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.map-modes button:hover, .neighborhood-map-link:hover { border-color: var(--neon); color: var(--neon); }
.neighborhood-map-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 12px; }
.map-price-caption { margin: 0; font: 12px/1.4 var(--ui); color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 700 11px/1 var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 10px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .35; }
.chip.on { color: var(--ink); border-color: var(--c); }
.chip.on i { opacity: 1; box-shadow: 0 0 8px var(--c); }
.citymap-wrap { position: relative; }
.citymap { height: clamp(240px, calc(100dvh - 330px - var(--lane-h, 0px)), 560px); border-radius: 14px; border: 1px solid var(--line-strong); }
.map-explorer > * + * { margin-top: 10px; }
.map-toolbar { display: none; align-items: center; justify-content: flex-end; gap: 14px; }
.map-actions { position: absolute; z-index: 700; top: 12px; right: 12px; display: flex; gap: 6px; align-items: center; }
.map-view select { min-height: 44px; max-width: 120px; padding: 9px; font: 700 12px/1.2 var(--ui); border: 1px solid var(--line-strong); border-radius: 12px; background: #10141ded; color: #fff; }
.map-actions .map-expand { min-height: 44px; border-radius: 12px; background: #10141ded; color: #fff; box-shadow: 0 2px 12px #0007; }
.map-full-title { display: none; }
.map-expand { cursor: pointer; border: 1px solid var(--neon); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 10px 16px; min-height: 40px; font: 700 12px/1.2 var(--ui); white-space: nowrap; }
.map-expand:hover, .map-expand:focus-visible { background: var(--neon); color: var(--night); }
.map-hint { color: var(--ink-2); font-size: 12px; }
.map-explorer.is-expanded { position: fixed; z-index: 55; inset: 0; display: flex; flex-direction: column; background: var(--night); padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.map-explorer.is-expanded .map-toolbar { display: flex; justify-content: space-between; }
.map-explorer.is-expanded .map-full-title { display: block; font: 700 clamp(17px, 3vw, 24px)/1.2 var(--ui); }
.map-explorer.is-expanded .citymap-wrap { flex: 1; min-height: 0; }
.map-explorer.is-expanded .citymap { height: 100%; }
.map-explorer.is-expanded .mapchips { flex-shrink: 0; }
@media (max-width: 700px) { .map-explorer.is-expanded { padding-left: 12px; padding-right: 12px; } .map-expand { min-height: 44px; } }
.map-unlock { position: absolute; inset: auto 12px 12px auto; z-index: 500; font: 700 12px/1 var(--mono); letter-spacing: .06em;
  text-transform: uppercase; background: var(--neon); color: #111; border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.leaflet-container { background: #0e0e14; font: 13px/1.3 var(--ui); }
.leaflet-tooltip { background: var(--night); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; font-weight: 700; }
.leaflet-tooltip-top:before { border-top-color: var(--line-strong); }
.leaflet-control-attribution { background: rgba(0,0,0,.55) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-bar a { background: var(--night); color: var(--ink); border-bottom-color: var(--line-strong); }
.lmstar { color: var(--neon); font-size: 20px; line-height: 22px; text-align: center; text-shadow: 0 0 6px var(--glow), 0 0 2px #000; cursor: pointer; }
.hoodlabel { font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap;
  text-shadow: 0 0 4px #000, 0 0 8px #000; transform: translate(-50%, -50%); width: auto !important; height: auto !important; cursor: pointer; }
#drawer .drmap { height: 210px; border-radius: 14px; margin-top: 14px; border: 1px solid var(--line-strong); }
#drawer .close { z-index: 2; }
#drawer .pin-drawer { position: absolute; right: 66px; top: 12px; z-index: 2; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: #fff; background: #10141ded; font: 700 12px/1.2 var(--ui); cursor: pointer; }
#drawer[data-mode="pinned"] .pin-drawer { display: none; }
#drawer[data-mode="preview"] { border-left-color: var(--neon); }
#drawer .video-play.compact { aspect-ratio: auto; min-height: 84px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; }
#drawer .video-play.compact .video-btn { position: static; margin: 0; flex-shrink: 0; order: -1; }
.video-prompt { font: 700 14px/1.3 var(--ui); }
#drawer .place-photo { position: relative; margin: 0 0 18px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--surface); }
#drawer .place-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#drawer .place-photo figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 7px 10px; background: #000b; color: #fff; font: 400 12px/1.4 var(--ui); }
#drawer .place-photo.is-portrait { aspect-ratio: 3 / 4; max-height: 480px; }
#drawer .place-photo.is-portrait img { object-fit: contain; }
#drawer .place-intro { line-height: 1.65; }
#drawer .eyebrow { padding-right: 32px; }

/* Background research is one click away; the place and city stay in the foreground. */
.source-details { border-top: 1px solid var(--line); color: var(--ink-2); margin-top: 12px; font: 400 13px/1.5 var(--ui); }
.source-details > summary { cursor: pointer; width: fit-content; padding: 9px 0; min-height: 36px; color: var(--muted); font: 500 12px/1.5 var(--ui); }
.source-details > summary:hover, .source-details > summary:focus-visible { color: var(--neon); }
.source-body { padding: 0 0 10px; overflow-wrap: anywhere; }
.source-body > * + * { margin-top: 10px; }
.source-body p, #drawer .source-body p { font: 400 12.5px/1.55 var(--ui); color: var(--muted); }
.source-body a { color: var(--ink-2); text-underline-offset: 3px; }
.source-body a:hover { color: var(--neon); }
.source-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.source-links li { line-height: 1.45; }
.source-links span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 5px 12px; text-transform: capitalize; }
.trend-list > li > .source-details { grid-column: 1 / -1; margin-top: 2px; }

/* trends and weather kinds */
.trend-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.trend-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; }
.trend-list .t { font-weight: 700; }
.trend-list .x { font-size: 12px; color: var(--muted); }
.trend-list .x.up { color: #8be28b; } .trend-list .x.down { color: #ff8f8f; }
.trend-list .why { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.wk { list-style: none; padding: 0; display: grid; gap: 7px; }
.wk li { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.wk .track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.wk .bar { display: block; height: 100%; background: var(--neon); border-radius: 0 4px 4px 0; }
.wk .r { font: 400 11px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .wk li { grid-template-columns: 7.5em 1fr; } .wk .r { grid-column: 1 / -1; } }
@media (min-width: 900px) { .station .grid.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inline-place { color: inherit; cursor: pointer;
  text-decoration: underline dotted var(--neon); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-place:hover, .inline-place:focus-visible { color: var(--neon); outline: none; }

/* the scenes: culture, subcultures and zeitgeist cards, map pins and stickers */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.scene { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--k); border-radius: 14px; padding: 12px 14px 12px; }
.scene .sk { font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--k); display: flex; align-items: center; gap: 6px; }
.scene .sk i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px var(--k); }
.scene h3 { margin: 6px 0 4px; font-size: 18px; line-height: 1.2; }
.scene .scene-open { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.scene .scene-open:hover { color: var(--k); }
.scene p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.scene .sw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.scene .where { font: 700 11px/1 var(--mono); color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 9px; }
.scene button.where { cursor: pointer; }
.scene button.where::before { content: "\25CF  "; color: var(--k); }
.scene button.where:hover { border-color: var(--k); }
.scene .ss, .scene .sb { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.scene .sb { color: var(--ink-2); }
.scene .src { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.scene .src a { font: 400 11px/1.3 var(--mono); color: var(--ink-2); text-decoration: none; }
.scene .src a:hover { color: var(--k); }
.arrival .rightnow { display: block; margin-top: 14px; font-size: 15px; color: var(--ink); text-decoration: none; text-shadow: 0 1px 8px #000; }
.arrival .rightnow .k { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--neon); margin-right: 8px; }
.arrival .rightnow:hover { color: var(--neon); }
.scenepin span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font: 700 11px/1 var(--ui);
  color: #111; background: var(--k); border-radius: 999px; padding: 4px 8px; box-shadow: 0 2px 10px rgba(0,0,0,.6); cursor: pointer; }
#drawer .dr-links a[role="button"] { cursor: pointer; }

/* ================================================================ the living city
   Depth, back to front: far ridges, skyline, trains, near ground and water, the horizon
   lane of landmarks, boats, weather - then the cards. Everything that moves is driven by
   the city's own data (ambient.js) and stops under reduced motion or the rail's button. */
.pano-layer.far { z-index: 1; } .pano-layer.mid { z-index: 2; } .pano-layer.near { z-index: 4; }
.amb { position: fixed; left: 0; top: var(--top, 56px); width: 100vw; height: calc(100dvh - var(--top, 56px)); pointer-events: none; overflow: hidden; }
.amb-back { z-index: 3; } .amb-front { z-index: 6; } .amb-weather { z-index: 7; }
.amb > .train, .amb > .boat { position: absolute; left: 0; will-change: transform; }
.amb-haze { z-index: 7; height: auto; inset-inline: 0; width: auto;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--neon) 16%, #fff 10%) 50%, transparent);
  filter: blur(18px); opacity: .5; animation: haze 9s ease-in-out infinite alternate; }
@keyframes haze { to { opacity: .22; } }

/* the horizon lane: landmarks as lit cut-outs, drifting at the skyline's speed */
.lane { position: absolute; left: 0; top: 0; height: 100%; z-index: 5; pointer-events: none; will-change: transform; }
.lane-lm { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  filter: drop-shadow(0 0 1px color-mix(in srgb, var(--neon) 50%, transparent)); transition: filter .3s ease, transform .3s ease; transform-origin: 50% 100%; }
.lane-lm svg { width: 100%; height: 100%; overflow: visible; }
.lane-lm .lane-name { position: absolute; left: calc(100% - 8px); top: 46%; transform: translate(-6px, -50%); white-space: nowrap; pointer-events: none;
  font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--neon);
  background: color-mix(in srgb, var(--night) 82%, transparent); border: 1px solid var(--neon); border-radius: 999px; padding: 5px 9px;
  box-shadow: 0 0 12px var(--glow); opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 11; }
.lane-lm.lit, .lane-lm:hover, .lane-lm:focus-visible { filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow-soft)); outline: none; }
.lane-lm.lit .lane-name, .lane-lm:hover .lane-name, .lane-lm:focus-visible .lane-name { opacity: 1; transform: translate(0, -50%); }
.lane-lm:hover, .lane-lm:focus-visible { transform: translateY(-3px); }
.lane-lm .wheel, .lane-lm .beam, .lane-lm .jet { transform-box: view-box; }
.lane-lm .wheel { transform-origin: 50px 44px; animation: lm-spin 28s linear infinite; }
@keyframes lm-spin { to { transform: rotate(360deg); } }
.lane-lm .beam { transform-origin: 50px 24px; animation: lm-sweep 4s ease-in-out infinite; }
@keyframes lm-sweep { 0%, 100% { opacity: .08; transform: scaleX(.25); } 50% { opacity: .9; transform: scaleX(1); } }
.lane-lm .car { animation: lm-incline 10s ease-in-out infinite alternate; }
@keyframes lm-incline { from { transform: translate(-15px, 12px); } to { transform: translate(15px, -12px); } }
.lane-lm .jet { transform-origin: 50px 52px; animation: lm-jet 2.4s ease-in-out infinite; }
@keyframes lm-jet { 50% { transform: scaleY(.8); opacity: .65; } }
.lane-lm .fall { stroke-dasharray: 7 5; animation: lm-fall .9s linear infinite; }
@keyframes lm-fall { to { stroke-dashoffset: -12; } }
.lane-lm .lights { animation: lm-chase 1.4s linear infinite; }
@keyframes lm-chase { to { stroke-dashoffset: -6; } }
.lane-lm .beacon { animation: lm-blink 1.8s steps(1) infinite; }
@keyframes lm-blink { 50% { opacity: .12; } }
.lane-lm .flood { animation: lm-flood 3.2s ease-in-out infinite; }
@keyframes lm-flood { 50% { opacity: .5; } }
.lane-lm .bulb { animation: lm-blink 1s steps(1) infinite; } .lane-lm .bulb.b1 { animation-delay: -.5s; }
.lane-lm .bubble { animation: lm-bubble 3s ease-in infinite; }
@keyframes lm-bubble { from { transform: translateY(8px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-10px); opacity: 0; } }

/* the landscape breathes: stars twinkle, windows flicker and fill in after dark, water
   drifts, trees sway */
.pano-sky .tw { animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .08; } }
.pano-sky .afterglow { position: absolute; left: 0; right: 0; height: 160px; pointer-events: none; }
.pano-layer .fl { animation: flick 10s steps(1) infinite; }
@keyframes flick { 62% { opacity: .7; } 63% { opacity: 0; } 78% { opacity: 0; } 79% { opacity: .7; } }
.pano-layer .wn { opacity: 0; transition: opacity 3s ease; }
[data-sky="blue"] .pano-layer .wn { opacity: .45; } [data-sky="night"] .pano-layer .wn { opacity: .72; }
.pano-layer .ripples { position: absolute; left: 0; background-repeat: repeat; will-change: transform; animation: ripple 16s linear infinite; }
@keyframes ripple { to { transform: translateX(-60px); } }
.pano-layer .gl { animation: glint 5s ease-in-out infinite; }
@keyframes glint { 50% { opacity: .08; } }
.pano-layer .sway { animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.3deg); } to { transform: rotate(1.3deg); } }

/* the city's own clock and this month's normals, under its name */
.arrival .nowline { margin-top: 4px; font: 400 12px/1.4 var(--mono); color: var(--ink-2); text-shadow: 0 1px 8px #000; }
.arrival .nowline #clock { color: var(--neon); font-weight: 700; }
[data-sky="night"] .arrival h1 { text-shadow: 0 0 8px var(--glow), 0 0 42px var(--glow), 0 0 90px var(--glow-soft), 0 4px 30px rgba(0,0,0,.6); }
.arrival h1 { font-size: clamp(54px, min(10vw, 15vh), 128px); }
body.anim .arrival h1 { animation: neon-on 1.6s .25s both; }
@keyframes neon-on { 0% { opacity: .08; } 7% { opacity: 1; } 10% { opacity: .15; } 17% { opacity: .9; } 21% { opacity: .3; } 32%, 100% { opacity: 1; } }

/* numbers count up from the typical metro; charts draw in; verdicts stamp on last */
.cnt { font-variant-numeric: tabular-nums; }
body.anim .station .chart .series { stroke-dasharray: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.3,1) .15s; }
body.anim .station:not(.seen) .chart .series { stroke-dashoffset: 1; }
body.anim .station .chart .bar { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.3,1.3,.5,1); transition-delay: calc(var(--i, 0) * 60ms + .2s); }
body.anim .station .chart .bar[data-neg] { transform-origin: 50% 0; }
body.anim .station:not(.seen) .chart .bar { transform: scaleY(0); }
body.anim .station:not(.seen) .verdict { opacity: 0; }
body.anim .station.seen .verdict { animation: stamp .45s cubic-bezier(.2,1.5,.4,1) 1.05s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.9) rotate(-9deg); } to { opacity: 1; transform: none; } }

/* the rail's motion button */
.rail .motion { flex: none; width: 30px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 10px; line-height: 1;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); }
.rail .motion:hover, .rail .motion:focus-visible { border-color: var(--neon); color: var(--neon); }

/* stilled: everything holds where it is */
body.still *, body.still *::before, body.still *::after { animation-play-state: paused !important; }
body.still .arrival h1 { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .lane-lm *, .pano-sky .tw, .pano-layer *, .amb-haze, .arrival h1 { animation: none !important; }
  .lane-lm, .lane-lm .lane-name { transition: none; }
}

/* phones: the arrival keeps above the lane - short captions that still carry the baseline */
.vibe-strip .cs { display: none; }
@media (max-width: 700px) {
  .arrival .vibe-strip .cl { display: none; }
  .arrival .vibe-strip .cs { display: inline; }
  .arrival .vibe-strip a { padding: 12px 13px; }
  .arrival .rightnow { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
}
@media (max-height: 700px) { .arrival .hint { display: none; } }

/* a video about the place, in its drawer: a still until someone presses play */
#drawer .video { margin-top: 16px; }
#drawer .video-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; }
#drawer .video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
#drawer .video-play:hover img, #drawer .video-play:focus-visible img { opacity: 1; }
#drawer .video-play:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
#drawer .video-btn { position: absolute; inset: 0; margin: auto; width: 62px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--neon); color: var(--night); font-size: 18px; box-shadow: 0 0 20px var(--glow); }
#drawer .video-len { position: absolute; right: 8px; bottom: 8px; background: #000c; color: #fff; font: 700 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; }
#drawer .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
#drawer .video.vertical .video-play, #drawer .video.vertical iframe { aspect-ratio: 9 / 16; width: min(100%, 300px); margin-inline: auto; }
#drawer .video-meta { display: grid; gap: 2px; margin-top: 8px; font-size: 14px; line-height: 1.35; }
#drawer .video-meta span { font: 400 12px/1.4 var(--ui); color: var(--muted); }
#drawer .video-meta a { color: var(--ink-2); }

/* A city film closes the panorama; playback starts only on request. */
.station.film-station { top: calc(var(--lane-top) / 2); transform: translateY(-50%); text-align: center; }
.film-station .source-body { text-align: left; }
.city-film .video-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; cursor: pointer; background: #0b0a12; }
.city-film .video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-film .video-btn { position: absolute; inset: 0; margin: auto; width: 72px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #000c; color: white; font-size: 24px; }
.city-film .video-len { position: absolute; bottom: 12px; right: 12px; color: #fff; background: #000c; padding: 5px 8px; border-radius: 5px; font: 12px var(--ui); }
.city-film .film-watch { position: absolute; bottom: 12px; left: 12px; color: #fff; background: #000d; padding: 7px 10px; border: 1px solid #ffffff55; border-radius: 7px; font: 700 12px/1.2 var(--ui); }
.city-film iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; display: block; }
.city-film .video-meta { display: grid; gap: 6px; padding-top: 12px; font: 700 16px/1.4 var(--ui); }
.city-film .video-meta span { color: var(--ink-2); font: 12px/1.5 var(--ui); }
.city-film .video-play:focus-visible, .home-price-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.film-theater { width: min(1320px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  color: var(--ink); background: var(--night); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 24px 100px #000b; }
.film-theater::backdrop { background: #02040bce; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.film-theater-content { display: grid; gap: 16px; padding: 20px; }
.film-theater-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.film-theater-header .eyebrow { margin-bottom: 5px; color: var(--neon); }
.film-theater-header h2 { font: 700 clamp(20px, 2.5vw, 30px)/1.15 var(--ui); letter-spacing: -.02em; }
.film-theater-close { display: grid; place-items: center; flex: 0 0 44px; height: 44px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font: 24px/1 var(--ui); cursor: pointer; }
.film-theater-close:hover { border-color: var(--neon); }
.film-theater-close:focus-visible, .film-theater a:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.film-theater-screen { width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 200px; max-height: calc(100dvh - 190px); overflow: hidden; border-radius: 10px; background: #000; }
.film-theater-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.film-theater-credit { margin: 0; color: var(--ink-2); font: 12px/1.5 var(--ui); }
.film-theater-credit a { color: var(--ink); }
@media (max-width: 700px) { .film-theater-content { padding: 14px; gap: 12px; } .film-theater-header { gap: 10px; } }

.home-price-legend { display: flex; gap: 8px; align-items: center; margin-top: 10px; font: 11px/1.4 var(--ui); color: var(--ink-2); }
.home-price-legend i { flex: 1; height: 5px; border-radius: 4px; background: linear-gradient(90deg,#4bca91,#b1b8c5,#ed6074); }
.home-price-cards { display: grid; gap: 7px; align-content: start; }
.home-price-card { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 3px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #10141dc9; font: 13px/1.35 var(--ui); }
button.home-price-card { cursor: pointer; }
.home-price-card small { display: block; color: var(--ink-2); font: 11px/1.4 var(--ui); }
.home-price-card > small { grid-column: 1 / -1; }
.home-price-card > strong { font: 700 19px/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.home-price-card.selected { border-color: #fff; background: #222937; }
.home-label { display: grid; place-items: center; padding: 0 3px; border: 1px solid #ffffff66; border-radius: 5px; color: #fff; background: #090d15e8; text-align: center; box-shadow: 0 1px 4px #0005; }
.home-label b { font: 700 11px/1 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-label.selected { border-color: #fff; z-index: 1000 !important; }
.home-label:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.home-price-tooltip { padding: 6px 9px; border: 1px solid #ffffff55; border-radius: 6px; background: #090d15; color: #fff; font: 12px/1.4 var(--ui); box-shadow: 0 2px 8px #0007; }
.home-price-tooltip.leaflet-tooltip-top::before { border-top-color: #090d15; }
.home-map-status { min-height: 2.8em; margin: 8px 0 0; color: var(--ink-2); font: 12px/1.4 var(--ui); }
@media (max-width: 700px) { .map-actions { top: 8px; right: 8px; gap: 4px; } .map-view select { max-width: 110px; } .map-modes { gap: 6px; } .map-modes button { flex: 1; padding: 10px; font-size: 12px; } }

/* numbers colored by where the city ranks among the 68 metros (tone() in core.js): white
   at the typical value while they count up, then their color */
.tile .v, .vibe-strip .v { color: var(--tone, var(--ink)); transition: color 1.2s ease .15s; }
body.anim .station:not(.seen) .tile .v, body.anim .station:not(.seen) .vibe-strip .v { color: var(--ink); }
.tone-key { display: flex; align-items: center; gap: 10px; font: 400 12.5px/1.45 var(--ui); color: var(--muted); }
.tone-key .bar { flex: none; width: 84px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #cf616f, #f4efe6 50%, #85bb65); }

/* ---------------------------------------------------- shortlist (topbar + star) */
.shortlist-wrap { position: relative; }
.shortlist-btn { font: 700 12px/1 var(--mono); color: var(--ink); background: transparent; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.shortlist-btn:hover, .shortlist-btn[aria-expanded="true"] { border-color: var(--neon); color: var(--neon); }
.shortlist-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(300px, 86vw); padding: 14px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.shortlist-pop h3 { margin: 0 0 8px; font: 700 13px/1.2 var(--ui); }
.shortlist-pop ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.shortlist-pop li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shortlist-pop a { color: var(--ink); }
.short-x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }
.short-x:hover { color: var(--neon); }
.short-cmp { display: inline-block; margin: 2px 0 6px; font: 700 12.5px/1.3 var(--ui); color: var(--neon) !important; }
.arrival-actions { display: flex; align-items: center; gap: 12px; }
.star-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; min-width: 188px;
  font: 700 14px/1.25 var(--ui); color: var(--ink); background: color-mix(in srgb, var(--night) 80%, white 8%);
  border: 1px solid color-mix(in srgb, var(--neon) 65%, white 12%); border-radius: 12px; padding: 11px 16px;
  cursor: pointer; touch-action: manipulation; position: relative; }
.star-btn [data-star-icon] { font: 400 23px/1 var(--ui); }
.star-btn:hover { border-color: var(--neon); background: color-mix(in srgb, var(--neon) 16%, var(--night)); }
.star-btn:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; }
.star-btn:active { transform: translateY(1px); }
.star-btn[aria-pressed="true"] { color: #111; background: var(--neon); border-color: var(--neon); }

/* ------------------------------------------------------- the read + trade-off */
.read-cols { display: grid; gap: 22px; }
.read-p + .read-p { margin-top: 16px; }
@media (min-width: 900px) { .read-cols { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: start; } }
.tradeoffs { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; background: rgba(0,0,0,.22); }
.tradeoffs h3 { margin: 0 0 10px; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--neon); }
.tradeoffs h4 { margin: 10px 0 6px; font: 700 13px/1.2 var(--ui); }
.tradeoffs h4.ups { color: #85bb65; } .tradeoffs h4.downs { color: #e08a95; }
.tradeoffs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tradeoffs li b { display: block; font: 700 14px/1.3 var(--ui); color: var(--ink); }
.tradeoffs li span { font: 400 12px/1.35 var(--ui); color: var(--muted); }
.tradeoffs .trade-metric { font: 700 17px/1.5 var(--ui); font-variant-numeric: tabular-nums; margin-right: 3px; }
.cap .verdict { display: table; margin: 7px 0 0; }

/* ------------------------------------------------------------ the year */
.year-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 1100px) { .year-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mo { --c: hsl(var(--h) 70% 58%); position: relative; border-radius: 10px; padding: 9px 10px 10px; min-height: 108px;
  background: linear-gradient(180deg, hsl(var(--h) 60% 45% / .28), rgba(0,0,0,.2) 70%); border: 1px solid hsl(var(--h) 60% 55% / .45); }
.mo.now { box-shadow: 0 0 0 2px var(--neon), 0 0 18px var(--glow-soft); }
.mo .mh { display: flex; align-items: baseline; gap: 6px; }
.mo .mh b { font: 700 15px/1 var(--display); color: var(--c); }
.mo .mh span { font: 400 11px/1 var(--mono); color: var(--ink-2); }
.mo .mh i { margin-left: auto; font-style: normal; color: var(--c); }
.mo .dl { height: 4px; margin: 7px 0 7px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.mo .dl i { display: block; height: 100%; background: linear-gradient(90deg, #ffd166, #fff3c4); border-radius: 2px; }
.mo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.mo li.more { font: 400 11px/1.2 var(--mono); color: var(--muted); }
.ev-open { all: unset; cursor: pointer; display: block; font: 600 12px/1.3 var(--ui); color: var(--ink); padding-left: 9px; position: relative; }
.ev-open::before { content: ""; position: absolute; left: 0; top: .45em; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.ev-open:hover, .ev-open:focus-visible { color: var(--neon); }

/* --------------------------------------------- third places, people, trips */
.third-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.third { all: unset; cursor: pointer; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.18); }
.third:hover, .third:focus-visible { border-color: var(--neon); }
.third .ti { grid-row: span 3; font-size: 20px; line-height: 1.2; }
.third b { font: 700 14px/1.25 var(--ui); color: var(--ink); }
.third .tk, .groups .tk, .trip-list .tk { font: 400 11px/1.3 var(--mono); color: var(--muted); text-transform: lowercase; }
.third .tw { margin-top: 3px; font: 400 12.5px/1.4 var(--ui); color: var(--ink-2); }
.groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.groups b { font: 700 14px/1.3 var(--ui); }
.groups p { margin: 2px 0 0; font: 400 13px/1.45 var(--ui); color: var(--ink-2); }
.trips-cols { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .trips-cols { grid-template-columns: 300px minmax(0, 1fr); } }
.trip-rings { width: 100%; max-width: 300px; overflow: visible; }
.trip-rings .ring { fill: none; stroke: var(--line-strong); stroke-dasharray: 2 4; }
.trip-rings .rl { font: 400 9px var(--mono); fill: var(--muted); }
.trip-rings .home { fill: var(--neon); }
.trip-dot { cursor: pointer; }
.trip-dot circle { fill: var(--neon2, var(--neon)); stroke: #000; stroke-width: 1; }
.trip-dot text { font: 600 10px var(--ui); fill: var(--ink); paint-order: stroke; stroke: rgba(0,0,0,.7); stroke-width: 3px; }
.trip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trip-open { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.trip-open b { font: 700 14px/1.3 var(--ui); color: var(--ink); }
.trip-open:hover b { color: var(--neon); }
.trip-list .th { font: 700 11px/1 var(--mono); color: #111; background: var(--neon); border-radius: 999px; padding: 3px 7px; }
.trip-list p { margin: 3px 0 0; font: 400 13px/1.45 var(--ui); color: var(--ink-2); }

/* ------------------------------------- money, weather, momentum, gripes */
.taxes { margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: rgba(0,0,0,.18); }
.taxes summary { cursor: pointer; font: 700 13px/1.3 var(--ui); color: var(--ink); }
.taxes ul { margin: 8px 0 4px; padding-left: 18px; display: grid; gap: 5px; font: 400 13px/1.45 var(--ui); }
.taxes li span { color: var(--muted); }
.toned { color: var(--tone, var(--ink)); }
.risk-note { margin-top: 14px; border-left: 3px solid #ffb36b; padding: 6px 0 4px 12px; }
.risk-note h3 { margin: 0 0 6px; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ffb36b; }
.risk-note ul { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 4px; font: 400 13.5px/1.45 var(--ui); }
.heading-line { font: 400 15px/1.5 var(--ui); margin: 0 0 12px; }
@media (min-width: 900px) { .station .grid.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gripes { list-style: none; padding: 0; display: grid; gap: 8px; }
.gripes li { display: grid; grid-template-columns: 10.5em 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.gripes .track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.gripes .bar { display: block; height: 100%; background: linear-gradient(90deg, #f4efe6, #cf616f); border-radius: 0 4px 4px 0; }
.gripes .gr { font: 400 11px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
