/* Leonida Collectibles — dark, neon, one job: find the thing, tick it off. */

:root {
  --bg: #07090f;
  --bg-2: #0c1017;
  --bg-3: #121826;
  --line: #1e2634;
  --line-2: #2a3547;
  --ink: #eef2f8;
  --dim: #8d99ad;
  --dim-2: #5f6b7e;
  --pink: #ff2e7e;
  --pink-soft: #ff2e7e26;
  --cyan: #2ae7d4;
  --cyan-soft: #2ae7d426;
  --amber: #ffc247;
  --radius: 14px;
  --shadow: 0 18px 50px -12px #000000b3;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bar: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 999px) { body { display: block; overflow: auto; height: auto; min-height: 100%; } }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--pink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── top bar ─────────────────────────────────────────────── */

.topbar {
  position: relative;
  z-index: 30;
  height: var(--bar);
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex: none;
}

.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(150deg, var(--pink), #a3195a 62%, #3c0a22);
  box-shadow: 0 0 0 1px #ffffff1a inset, 0 6px 18px -6px var(--pink);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px;
  border: 2px solid #ffffffd9; border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 42% 42%, 42% 100%, 0 100%);
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-size: 15px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800;
}
.brand-text em {
  font-style: normal; font-size: 9.5px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--dim-2); margin-top: 4px;
}

.collections {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  flex: 1 1 auto; min-width: 0;
}
.collections::-webkit-scrollbar { display: none; }

.coll {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap; text-decoration: none; transition: .18s;
}
.coll:hover { color: var(--ink); background: var(--bg-3); }
.coll[aria-current="page"] {
  color: var(--ink); background: var(--bg-3); border-color: var(--line-2);
}
.coll[aria-current="page"]::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 10px var(--pink);
}
.coll .n { font-variant-numeric: tabular-nums; color: var(--dim-2); font-weight: 500; }

.actions { display: flex; align-items: center; gap: 10px; flex: none; }

.progress { position: relative; width: 38px; height: 38px; display: grid; place-items: center; }
.progress svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.progress circle { fill: none; stroke-width: 2.5; }
.progress .track { stroke: var(--line-2); }
.progress .fill {
  stroke: var(--cyan); stroke-linecap: round;
  stroke-dasharray: 97.4; stroke-dashoffset: 97.4;
  transition: stroke-dashoffset .5s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 0 4px #2ae7d480);
}
.progress-text {
  font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--dim);
  display: flex; align-items: baseline; gap: 1px;
}
.progress-text b { color: var(--ink); font-size: 11.5px; }
.progress-text i { font-style: normal; color: var(--dim-2); }

.spoiler {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2);
}
.spoiler span {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim-2);
}
.spoiler select {
  background: transparent; border: 0; padding: 0 2px; font-size: 12px; color: var(--ink);
  outline: none; cursor: pointer;
}
.spoiler select option { background: var(--bg-2); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--pink); background: var(--pink-soft); color: #ffd9e7;
  font-size: 12.5px; font-weight: 650; transition: .18s;
}
.btn:hover { background: var(--pink); color: #fff; box-shadow: 0 0 22px -4px var(--pink); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Language is a real link to the other tree, not a JS string swap: /zh/ has its own
   URLs, canonical and hreflang, so both languages can rank on their own. */
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--dim);
  font-size: 11.5px; font-weight: 650; white-space: nowrap; transition: .18s;
}
.lang:hover { color: var(--ink); border-color: var(--cyan); background: var(--cyan-soft); }

/* ── demo notice ─────────────────────────────────────────── */

.notice {
  display: flex; align-items: center; gap: 10px;
  flex: none;
  padding: 7px 18px; font-size: 12px; color: #ffd9a3;
  background: linear-gradient(90deg, #ffc2471c, #ffc24708 60%, transparent);
  border-bottom: 1px solid #ffc24726;
}
.notice b {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--amber); color: #2a1c00; padding: 2px 6px; border-radius: 4px; font-weight: 800;
}
.notice p { margin: 0; line-height: 1.4; }

/* ── stage ───────────────────────────────────────────────── */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  flex: 1;
  min-height: 0;
}

.map-wrap { position: relative; min-width: 0; background: #0c1421; overflow: hidden; }

#map {
  position: absolute; inset: 0;
  background-color: #0c1421;
  /* The 1440 px basemap is set inline per page as background-image, so the pane
     is never an empty grid while Leaflet boots. `contain` because that is what
     fitBounds does with the same aspect — the placeholder and the overlay line
     up instead of jumping. */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* The dark overview uses distinct sea, land and coast colors. Keep labels clear
   and avoid the old vignette; source artwork retains a separate brightness lift. */
.leaflet-image-layer.basemap {
  transition: filter .4s;
  filter: brightness(.82) saturate(.85);
}
body.is-bright .leaflet-image-layer.basemap { filter: none; }
.leaflet-image-layer.basemap.source-basemap { filter: brightness(1.18); }
body.is-bright .leaflet-image-layer.basemap.source-basemap { filter: brightness(1.65) saturate(1.3); }

.map-reader {
  position: absolute; top: 16px; left: 16px; z-index: 500;
  max-width: calc(100% - 90px); color: var(--ink);
}
.map-view-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #0d1522f2; border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 4px 18px #0003;
}
.map-view-tabs button {
  min-height: 40px; padding: 8px 14px; border-radius: 8px;
  background: transparent; border: 0;
  color: #afbdd0; font-size: 12px; font-weight: 650;
}
.map-view-tabs button[aria-pressed="true"] { background: #472039; color: #ffd7e7; box-shadow: inset 0 0 0 1px #9c3d68; }
.map-view-tabs button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.map-view-note {
  margin: 6px 0 0; padding: 3px 6px; width: fit-content;
  color: #b6c5d6; background: #0d1522ed; border-radius: 5px;
  font-size: 11px; line-height: 1.5;
}
.map-legend {
  position: absolute; left: 16px; bottom: 64px; z-index: 450;
  display: flex; align-items: center; gap: 7px;
  max-width: calc(100% - 32px); margin: 0; padding: 6px 9px;
  background: #0d1522ed; color: #b6c5d6; border: 1px solid #283747; border-radius: 6px;
  font-size: 11px; line-height: 1.4; pointer-events: none;
}
.legend-pin { width: 9px; height: 9px; flex: 0 0 9px; border: 2px solid var(--pink); border-radius: 50%; }
.region-label { display: grid; place-items: center; background: none; border: 0; pointer-events: none; }
.region-label[hidden] { display: none; }
.region-label-copy {
  display: block; white-space: nowrap; padding: 3px 7px;
  color: #e5f0f2; background: #101e2bee; border: 1px solid #56747e;
  border-radius: 5px; font-size: 12px; font-weight: 750; line-height: 20px;
  box-shadow: 0 2px 8px #0003;
}
.region-entry { display: grid; place-items: center; background: none; border: 0; }
.region-entry[hidden] { display: none; }
.region-entry-link {
  display: flex; align-items: center; gap: 8px; width: 148px; min-height: 46px;
  padding: 9px 10px; border: 1px solid #4b6976; border-radius: 10px;
  background: #101b2bed; color: #eff5fb; text-decoration: none;
  pointer-events: auto; box-shadow: 0 4px 14px #0004;
  font-size: 12px; font-weight: 650; line-height: 1.35;
  transition: border-color .15s, background .15s;
}
.region-entry-link b {
  display: grid; place-items: center; min-width: 25px; height: 25px; margin-left: auto;
  padding: 0 4px; flex-shrink: 0; border-radius: 6px;
  background: #48243a; color: #ffa3c7; font: 650 12px var(--mono);
}
.leaflet-container a.region-entry-link { color: #eff5fb; text-decoration: none; }
.region-entry-link:hover { border-color: var(--pink); background: #241a30; }
.region-entry-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.region-nav { margin: 18px 0 24px; }
.region-nav > p { margin: 0 0 10px; font-size: 11px; color: var(--dim); }
.region-nav > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.region-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 46px; padding: 9px 12px; border: 1px solid var(--line-2);
  border-radius: 9px; background: #101725; color: var(--ink); text-decoration: none;
  font-size: 12px; line-height: 1.4;
}
.region-nav a b { color: #ff9cc2; font: 600 12px var(--mono); }
.region-nav a:hover { background: #22182b; border-color: #954367; }
.region-nav a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.leaflet-tooltip.map-point-name { background: #101b2b; border-color: #496675; color: var(--ink); box-shadow: 0 3px 12px #0005; }
.leaflet-tooltip-top.map-point-name::before { border-top-color: #496675; }
.map-wrap.is-real .map-reader, .map-wrap.is-real .map-legend { display: none; }

.map-tools {
  position: absolute; left: 16px; bottom: 16px; z-index: 500;
  display: flex; gap: 6px;
}
.tool {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 10px;
  background: #0d131de6; border: 1px solid var(--line-2);
  color: var(--dim); font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px); transition: .16s;
}
.tool:hover { color: var(--ink); border-color: #3a4a63; }
.tool[aria-pressed="true"] { color: var(--cyan); border-color: #2ae7d466; background: #0f1a22e6; }
.tool svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── basemap switch ──────────────────────────────────────────
   Two maps, one visible at a time. The real-world one is a tile layer, so it
   cannot share the Leonida map's CRS; see the note in place.js. */

#map-real { position: absolute; inset: 0; z-index: 1; background: #0a0f18; }

.map-switch {
  position: absolute; right: 16px; bottom: 16px; z-index: 500;
  display: flex; padding: 3px; gap: 2px;
  border-radius: 11px; background: #0d131de6; border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.map-switch .seg {
  padding: 6px 11px; border-radius: 8px;
  color: var(--dim); font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  transition: .16s;
}
.map-switch .seg:hover { color: var(--ink); }
.map-switch .seg.is-on { color: #04231f; background: var(--cyan); }

.map-credit {
  position: absolute; right: 16px; bottom: 58px; z-index: 500;
  max-width: min(300px, 62vw);
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  text-align: right; font-size: 10.5px; line-height: 1.45;
  /* A chip, not floating text: OSM asks for attribution that stays legible over
     whatever the tiles happen to show there, and pale text over a pale map is
     how attribution quietly stops being attribution. */
  padding: 5px 8px; border-radius: 8px;
  background: #05070cc9; border: 1px solid #ffffff14;
  backdrop-filter: blur(6px);
}
/* `display:flex` outranks the UA's `[hidden] { display:none }`, so hiding it in
   JS would silently do nothing without this line. */
.map-credit[hidden] { display: none; }
.map-credit a { color: #cfdcee; text-decoration: underline; text-underline-offset: 2px; }
.map-credit a:hover { color: var(--cyan); }
.map-credit span { color: #8fa2bd; }

/* OSM ships a daylight map; the site is a night site. Inverting is the standard
   trick and keeps the tile source honest — no recoloured tile set to maintain.
   Day mode drops the filter, so the sun toggle governs both basemaps.
   One definition, because the /real-miami/ inset is graded by the same rule and
   two maps of the same street should not be two different shades of night. */
:root { --osm-night: invert(1) hue-rotate(180deg) brightness(.94) contrast(.88) saturate(.55); }
#map-real .leaflet-tile-pane { filter: var(--osm-night); }
body.is-bright #map-real .leaflet-tile-pane { filter: none; }

/* The vignette that fades the game sheet into the page is too heavy over a real
   map: it buries the streets the switch exists to show. */
.map-wrap.is-real::after { opacity: .35; }

/* ── pins ────────────────────────────────────────────────── */

.pin-wrap { background: none; border: 0; }

.pin {
  display: grid; place-items: center;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: #0b0f17; color: #fff;
  border: 2px solid var(--pink);
  font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px #000a, 0 0 0 3px #ff2e7e1f;
  transition: transform .16s, background .16s, border-color .16s;
}
.pin-wrap:hover .pin { transform: scale(1.18); }
.map-wrap[data-map-density="compact"] .pin-wrap:not(.is-active) .pin {
  transform: scale(.42); box-shadow: none; transition: none;
}
.map-wrap[data-map-density="compact"] .pin-wrap:not(.is-active) .pin span { visibility: hidden; }
.map-wrap[data-map-density="compact"] .doc-pin.is-near .pin { transform: scale(.7); }

.pin.is-found {
  background: var(--cyan); border-color: var(--cyan); color: #04231f;
  box-shadow: 0 2px 10px #000a, 0 0 14px #2ae7d466;
}
/* Found pins keep their route number: the order matters more than a tick here. */
.pin span { display: block; }

.pin-wrap.is-active .pin {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px #ff2e7e3d, 0 4px 16px #000c;
  z-index: 900;
}

/* ── detail card ─────────────────────────────────────────── */

.detail {
  position: absolute; left: 16px; bottom: 62px; z-index: 600;
  width: min(400px, calc(100% - 32px));
  background: #0b0f17f2; border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: rise .22s cubic-bezier(.22,1,.36,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.detail-inner { padding: 16px 16px 14px; }

.detail-top { display: flex; align-items: flex-start; gap: 12px; }

.detail-num {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--pink-soft); border: 1px solid #ff2e7e4d; color: #ffb3cd;
  font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums;
}
.detail h2 { margin: 0; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.detail .region {
  margin: 4px 0 0; font-size: 11.5px; color: var(--dim);
  display: flex; align-items: center; gap: 6px;
}
.detail .region::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--dim-2); }

.detail-close {
  margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--dim);
  display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.detail-close:hover { color: var(--ink); background: var(--bg-3); }

.facts { margin: 14px 0 0; display: grid; gap: 10px; }
.fact { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: start; }
.fact dt {
  font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--dim-2); padding-top: 3px;
}
.fact dd { margin: 0; font-size: 12.8px; line-height: 1.5; color: #cfd8e6; }

.video-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 8px;
  background: #ff2e7e1a; border: 1px solid #ff2e7e40; color: #ffb3cd;
  font-size: 12px; font-weight: 650; text-decoration: none; transition: .16s;
}
.video-link:hover { background: var(--pink); color: #fff; }
.video-link svg { width: 11px; height: 11px; fill: currentColor; }

.masked {
  color: var(--dim-2); font-style: italic;
  display: inline-flex; align-items: center; gap: 6px;
}
.masked::before { content: "🔒"; font-style: normal; font-size: 10px; opacity: .7; }

.detail-actions { display: flex; gap: 8px; margin-top: 15px; }

.mark {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--cyan); background: var(--cyan-soft); color: #a9f7ef;
  transition: .16s;
}
.mark:hover { background: var(--cyan); color: #04231f; }
.mark.is-on { background: var(--cyan); color: #04231f; border-color: var(--cyan); }
.mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.step {
  width: 38px; border-radius: 10px; border: 1px solid var(--line-2);
  background: transparent; color: var(--dim); font-size: 15px;
  display: grid; place-items: center;
}
.step:hover { color: var(--ink); border-color: #3a4a63; }

/* ── panel ───────────────────────────────────────────────── */

.panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--bg-2); border-left: 1px solid var(--line);
}

.panel-head { padding: 20px 20px 12px; border-bottom: 1px solid var(--line); }

.panel-head h1 {
  margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -.015em; font-weight: 750;
}
.lede { margin: 9px 0 0; font-size: 12.8px; line-height: 1.55; color: var(--dim); }

.search-row { margin-top: 14px; }
.search {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: border-color .16s;
}
.search:focus-within { border-color: #3a4a63; }
.search svg { width: 15px; height: 15px; fill: none; stroke: var(--dim-2); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-size: 13px; color: var(--ink);
}
.search input::placeholder { color: var(--dim-2); }
.search input::-webkit-search-cancel-button { display: none; }
kbd {
  font-family: var(--mono); font-size: 10px; color: var(--dim-2);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; line-height: 1.4;
}

.chips { display: flex; gap: 6px; margin-top: 10px; }
.chip {
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line); background: transparent; color: var(--dim); transition: .16s;
}
.chip:hover { color: var(--ink); }
.chip.is-on { background: #ffffff12; border-color: #3a4a63; color: var(--ink); }

.list {
  list-style: none; margin: 0; padding: 6px 8px 18px;
  overflow-y: auto; flex: 1; min-height: 0; scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.group {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 7px; margin: 0;
  background: var(--bg-2);
  box-shadow: 0 10px 14px -10px #000c;
  font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--dim-2); font-weight: 700;
}
.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group span { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.row {
  display: grid; grid-template-columns: minmax(0,1fr) 44px;
  align-items: center; gap: 4px;
  padding: 2px 6px 2px 12px; border-radius: 9px;
  border: 1px solid transparent;
  transition: background .14s, border-color .14s;
}
.row:hover { background: #ffffff08; }
.row.is-active { background: #ffffff0d; border-color: var(--line-2); }
.row.is-found .row-name { color: var(--dim-2); text-decoration: line-through; text-decoration-color: #ffffff33; }
.row-open {
  display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 11px;
  align-items: center; width: 100%; min-width: 0; min-height: 44px;
  padding: 7px 0; text-align: left; border: 0; background: transparent; color: inherit;
}
.row-copy { min-width: 0; }
.row-name, .row-sub { display: block; }
.row-open:focus-visible, .check:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-radius: 6px; }

.row-num {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums;
  background: #ffffff0a; border: 1px solid var(--line); color: var(--dim);
}
.row.is-found .row-num { background: var(--cyan-soft); border-color: #2ae7d455; color: var(--cyan); }

.row-name {
  font-size: 13.2px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-sub { font-size: 11px; color: var(--dim-2); margin-top: 1px; }

.check {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.check-box {
  width: 21px; height: 21px; border-radius: 6px; border: 1.5px solid var(--line-2);
  background: transparent; display: grid; place-items: center; padding: 0; transition: .15s;
}
.check:hover .check-box { border-color: var(--cyan); }
.check svg { width: 12px; height: 12px; fill: none; stroke: transparent; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.row.is-found .check-box { background: var(--cyan); border-color: var(--cyan); }
.row.is-found .check svg { stroke: #04231f; }

.empty { padding: 26px 18px; text-align: center; color: var(--dim-2); font-size: 12.5px; }

.panel-foot {
  padding: 12px 20px 14px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--dim-2); line-height: 1.5;
}
.panel-foot p { margin: 0; }
.panel-foot .keys { margin-top: 6px; color: #4a5568; }
.panel-foot kbd { margin-right: 2px; }
.panel-foot .links {
  margin-top: 7px;
  display: flex; flex-wrap: wrap; gap: 4px 14px;
}

/* Static, crawlable site nav. The collection tabs in the top bar are built by
   app.js, so before this block the home page had no <a> to /map/, /places/ or
   /areas/ at all — 258 pages were reachable only through the sitemap. */
.panel-foot .site-links {
  margin-top: 9px; display: flex; flex-wrap: wrap; gap: 3px 9px; align-items: baseline;
}
.panel-foot .site-links span {
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #4a5568;
}
.panel-foot .site-links a { white-space: nowrap; }

/* Home-only body copy. The home page renders the first collection, so without this
   it and /c/<slug>/ are the same document under two URLs. One paragraph about the
   site is enough to separate them, and <details> keeps it out of the tool's way. */
.panel-foot .about { margin-top: 10px; }
.panel-foot .about summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  color: var(--dim); font-size: 11px; list-style: none;
}
.panel-foot .about summary::-webkit-details-marker { display: none; }
.panel-foot .about summary::before {
  content: "+"; width: 9px; color: var(--dim-2); font-weight: 700;
}
.panel-foot .about[open] summary::before { content: "−"; }
.panel-foot .about summary:hover { color: var(--cyan); }
.panel-foot .about p {
  margin: 7px 0 0; padding-left: 15px;
  font-size: 11.5px; line-height: 1.6; color: var(--dim-2);
}
.panel-foot a { color: var(--dim-2); text-decoration: underline; text-underline-offset: 2px; }
.panel-foot a:hover { color: var(--cyan); }

/* ── ads ───────────────────────────────────────────────────
   One slot, above the list. The slots ship empty and hidden; app.js fills them only
   when site.ads.mode is not "off", so a build with ads off has no empty box and the
   list keeps every pixel. The house creative is a single row on purpose: a 90px card
   in a 400px panel eats four of the twenty-four rows. */

.ad-slot { flex: none; padding: 8px 16px 0; }
.ad-slot[hidden] { display: none; }

.ad {
  display: flex; align-items: flex-start; gap: 3px 9px;
  border: 1px dashed var(--line-2); border-radius: 9px;
  background: #ffffff05; padding: 7px 11px 8px;
}
.ad-unit { display: block; }
.ad-label {
  flex: none; padding-top: 2px;
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim-2);
}
/* two lines: title + cta on the first, the pitch on the second. One line would
   truncate the pitch to three words in a 400px panel. */
.ad-house {
  flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  text-decoration: none; color: inherit;
}
.ad-house strong { flex: none; font-size: 12px; font-weight: 650; color: var(--ink); }
.ad-house em {
  flex: none; margin-left: auto;
  font-style: normal; font-size: 11px; font-weight: 650; color: var(--cyan);
}
.ad-house span {
  flex: 1 1 100%; min-width: 0; font-size: 11px; line-height: 1.45; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ad-house:hover em { text-decoration: underline; }
.ad ins { min-height: 90px; }

/* ── toast ───────────────────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 999; padding: 11px 18px; border-radius: 10px;
  background: #0d131df2; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--ink); opacity: 0; pointer-events: none;
  transition: .24s cubic-bezier(.22,1,.36,1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.noscript { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.noscript h2 { font-size: 20px; }
.noscript ol { padding-left: 20px; line-height: 1.9; font-size: 14px; }

/* ── leaflet overrides ───────────────────────────────────── */

.leaflet-container { background: transparent; font: inherit; }
.leaflet-control-attribution { display: none; }
.leaflet-interactive { cursor: pointer; }

/* zoom control, matching the tool pills */
.leaflet-top.leaflet-right { top: 12px; right: 12px; }
.leaflet-bar.leaflet-control-zoom {
  border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px -10px #000c; backdrop-filter: blur(8px);
}
.leaflet-bar.leaflet-control-zoom a {
  width: 32px; height: 30px; line-height: 30px;
  background: #0d131de6; color: var(--dim); border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 500; transition: .16s;
}
.leaflet-bar.leaflet-control-zoom a:last-child { border-bottom: 0; }
.leaflet-bar.leaflet-control-zoom a:hover { background: #17202e; color: var(--ink); }

/* ── responsive ──────────────────────────────────────────── */

@media (max-width: 1180px) {
  .stage { grid-template-columns: minmax(0,1fr) 350px; }
}

@media (max-width: 999px) {
  .stage { display: flex; flex-direction: column; height: auto; }
  .map-wrap { height: 56vh; min-height: 360px; order: 1; }
  .panel { order: 2; border-left: 0; border-top: 1px solid var(--line); }
  .list { overflow: visible; max-height: none; }
  .panel-head { padding: 18px 16px 12px; }
  /* card becomes a sheet: capped so the pin you tapped is still on screen */
  .detail { left: 10px; right: 10px; width: auto; bottom: 58px; max-height: 56%; overflow-y: auto; }
  .topbar { gap: 12px; padding: 0 12px; height: 56px; --bar: 56px; }
  .brand-text em { display: none; }
  .spoiler span { display: none; }
  .btn span { display: none; }
  .btn { padding: 9px 11px; }
  .map-tools { left: 10px; bottom: 10px; }
  .tool span { display: none; }
  .tool { padding: 9px; }
  /* On a phone the two controls would meet in the middle of a 56vh map, so the
     switch loses its padding and the credit line drops to one clipped line. */
  .map-switch { right: 10px; bottom: 10px; padding: 2px; }
  .map-switch .seg { padding: 6px 9px; font-size: 11px; }
  .map-credit { right: 10px; bottom: 50px; max-width: 52vw; font-size: 10px; }
  .map-credit span { display: none; }
}

@media (max-width: 560px) {
  .progress { width: 34px; height: 34px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 10px; }
  .actions { margin-left: auto; }
  .collections { order: 4; width: 100%; }
  .stage { --bar: 0px; }
  .notice { font-size: 11px; padding: 6px 12px; }
  .notice b { display: none; }
  /* stacked facts: an 88px label column leaves too little for the text in a phone card */
  .fact { grid-template-columns: 1fr; gap: 3px; }
  .fact dt { padding-top: 0; }
  /* keep the tick button reachable when the sheet scrolls */
  .detail-actions {
    position: sticky; bottom: -14px; z-index: 2;
    background: #0b0f17; padding: 10px 0 14px; margin-top: 4px;
  }
  .notice p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  .list { scroll-behavior: auto; }
}

/* ── reference pages: landmark / area / index ────────────────
   These are documents first and maps second, so the panel scrolls as a whole
   instead of the list scrolling inside it. Same grid as the collectibles page
   keeps the chrome identical between the two halves of the site. */

.panel-doc {
  padding: 20px 22px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--dim-2);
}
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs i { font-style: normal; opacity: .45; }

.panel-doc h1 {
  margin: 13px 0 0;
  font-size: 25px; line-height: 1.2; letter-spacing: -.022em; font-weight: 750;
}
.panel-doc .lede { margin-top: 10px; font-size: 13.2px; }

.prose { margin-top: 18px; font-size: 13.5px; line-height: 1.74; color: #c2cbda; }
.prose p { margin: 0 0 13px; }
.prose h2 {
  margin: 26px 0 10px; font-size: 10.5px; font-weight: 750;
  letter-spacing: .13em; text-transform: uppercase; color: var(--dim-2);
}
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid #2ae7d440; }
.prose a:hover { border-bottom-color: var(--cyan); }

.spec {
  margin: 0 0 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.spec > div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px;
  padding: 8px 0; border-top: 1px solid #141b26;
}
.spec > div:first-child { border-top: 0; }
.spec dt { font-size: 11.5px; color: var(--dim-2); padding-top: 1px; }
.spec dd { margin: 0; font-size: 12.8px; color: var(--ink); word-break: break-word; }
.spec dd.is-empty { color: var(--dim-2); }
.spec dd em { font-style: normal; color: var(--dim-2); }

.nearby { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.nearby a {
  display: flex; align-items: baseline; gap: 9px;
  padding: 9px 11px; border-radius: 9px;
  background: var(--bg-3); border: 1px solid var(--line);
  text-decoration: none; transition: .15s;
}
.nearby a:hover { border-color: var(--line-2); background: #161d2b; }
.nearby b { font-size: 12.8px; font-weight: 600; }
.nearby span { margin-left: auto; flex: none; font-size: 10.5px; color: var(--dim-2); }

.plist { margin: 0; padding: 0; list-style: none; }
.plist li { border-top: 1px solid #141b26; }
.plist li:first-child { border-top: 0; }
.plist a { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; text-decoration: none; }
.plist b { font-size: 13px; font-weight: 550; transition: color .14s; }
.plist a:hover b { color: var(--cyan); }
.plist em {
  margin-left: auto; flex: none; font-style: normal;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim-2);
}

.agroup { margin-top: 20px; }
.agroup:first-of-type { margin-top: 12px; }
.agroup h2 {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 4px; padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--ink);
}
.agroup h2 a { color: var(--ink); border: 0; }
.agroup h2 a:hover { color: var(--cyan); }
.agroup h2 em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--dim-2); }

/* Search is independent of the map; the complete directory remains without JS. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.directory-jump { display: none; }
.has-directory-query .region-nav, .has-directory-query .directory-intro { display: none; }
.directory-search {
  margin-top: 20px; padding: 16px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--bg-3); scroll-margin-top: 16px;
}
.directory-search label:not(.sr-only) { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.directory-search input, .directory-search select, .directory-search button {
  min-height: 44px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px;
}
.directory-search input { width: 100%; min-width: 0; padding: 10px 12px; }
.directory-search input::placeholder { color: var(--dim-2); }
.directory-controls { display: flex; gap: 8px; margin-top: 8px; }
.directory-search select { flex: 1; min-width: 0; padding: 8px; }
.directory-search button { flex: none; padding: 8px 12px; cursor: pointer; }
.directory-search button:disabled { opacity: .4; cursor: default; }
.directory-search :is(input, select, button):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
#directory-hint { margin: 12px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--dim); }
#directory-status { margin: 12px 0 0; color: var(--cyan); font-size: 12px; font-variant-numeric: tabular-nums; }
.directory-empty { padding: 18px 0; }
.directory-empty p { margin-top: 6px; color: var(--dim); }
[data-directory-item] a { align-items: start; }
[data-directory-item] a > span { min-width: 0; }
[data-directory-item] em { max-width: 45%; overflow-wrap: anywhere; }
.directory-alias { display: block; margin-top: 3px; color: var(--dim); font-size: 10.5px; line-height: 1.6; }
.evidence-status {
  display: inline-flex; margin-top: 14px; padding: 6px 10px; border-radius: 6px;
  border: 1px solid #d9ac5750; background: #d9ac570d; color: #e2c182;
  font-size: 11px; line-height: 1.6; text-decoration: none;
}
.evidence { margin: 20px 0 24px; padding: 16px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; }
.evidence h2 { margin: 0 0 16px; color: var(--ink); font-size: 15px; letter-spacing: 0; text-transform: none; scroll-margin-top: 16px; }
.evidence h3 { margin: 0 0 6px; color: var(--ink); font-size: 12px; font-weight: 650; }
.evidence > div + div { border-top: 1px solid var(--line); padding-top: 12px; }
.evidence p { font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.evidence .evidence-date { margin-top: 12px; color: var(--dim); font-size: 11px; }
.evidence ul { padding-left: 18px; margin: 4px 0 12px; font-size: 12px; }
.evidence li { padding: 3px 0; }
.evidence > a { font-size: 12px; }
.evidence-lookup { border-top: 1px solid var(--line); }
.evidence-lookup summary { padding: 12px 0; color: var(--cyan); font-size: 11.5px; cursor: pointer; }
.evidence-lookup p { color: var(--dim); }
@media (max-width: 999px) {
  .has-directory-search .directory-jump {
    display: block; order: 0; padding: 12px 16px; text-align: center;
    background: var(--bg-3); color: var(--cyan); font-size: 13px; text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .directory-search input { font-size: 16px; }
}
@media (max-width: 560px) {
  [data-directory-item] em { max-width: 100%; }
}

.panel-doc .panel-foot { margin-top: 26px; padding-bottom: 22px; }

.doc-pin .pin { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; }
.doc-pin.is-self .pin {
  background: var(--cyan); color: #04231f;
  font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums;
  border: 2px solid #07090f;
  box-shadow: 0 2px 10px #000a, 0 0 0 4px #2ae7d433;
}
.doc-pin.is-near .pin {
  background: #0b0f17; border: 2px solid var(--pink);
  box-shadow: 0 1px 6px #000a;
  transition: transform .15s, background .15s, border-color .15s;
}
.doc-pin.is-near:hover .pin { transform: scale(1.5); background: var(--pink); }

@media (max-width: 999px) {
  .panel-doc { padding: 18px 16px 0; overflow: visible; }
  .panel-doc h1 { font-size: 21px; }
  .stage-doc .map-wrap { height: 44vh; min-height: 260px; }
  .spec > div { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
}

/* ── region cards (map hub) ───────────────────────────────────
   Eight static crops instead of eight Leaflet instances: a hub page has to be
   scannable, and eight live maps are neither scannable nor cheap. */

.acards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px; margin: 0 0 4px;
}
.acard {
  display: block; text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-3); transition: border-color .15s;
}
.acard:hover { border-color: var(--line-2); }
.acard img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover;
  background: #05070c;
}
.acard-body { display: block; padding: 8px 10px 9px; }
.acard-body b { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.acard-body em {
  display: block; margin-top: 2px; font-style: normal;
  font-size: 10.5px; line-height: 1.35; color: var(--dim-2);
}
.acard:hover b { color: var(--cyan); }

.basis { margin: 0; padding: 0; list-style: none; }
.basis li {
  padding: 7px 0; border-top: 1px solid #141b26;
  font-size: 12.8px; line-height: 1.6; color: #c2cbda;
}
.basis li:first-child { border-top: 0; }
.basis b { color: var(--ink); font-weight: 650; }

@media (max-width: 560px) { .acards { grid-template-columns: 1fr; } }

/* ── /real-miami/: the reality page ──────────────────────────
   A document, not a tool. No Leaflet and no JavaScript: the map is inline SVG
   built at build time, so the page is fully readable by a crawler and fully
   screenshotable by a person — which is the only reason the page exists. It is
   also the one page with no map pane, so it owns its own scroll column. */

.reality-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.rwrap { max-width: 900px; margin: 0 auto; padding: 24px 26px 0; }

.reality h1 {
  margin: 14px 0 0;
  font-size: clamp(27px, 4.2vw, 42px); line-height: 1.08;
  letter-spacing: -.028em; font-weight: 800;
}
.reality .lede {
  margin: 13px 0 0; max-width: 66ch;
  font-size: 16.5px; line-height: 1.62; color: #c2cbda;
}

.rstats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rstats > div { padding: 0 14px; border-left: 1px solid var(--line); }
.rstats > div:first-child { padding-left: 0; border-left: 0; }
.rstats b {
  display: block; font-size: 27px; line-height: 1; font-weight: 780;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.rstats span { display: block; margin-top: 7px; font-size: 10.5px; line-height: 1.35; color: var(--dim-2); }

.rmap {
  margin: 26px 0 0; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0b1018, #070a10);
}
.rmap-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.rmap svg { display: block; width: 100%; height: auto; }
.rmap-label { font-family: var(--font); font-size: 9px; font-weight: 700; letter-spacing: .14em; fill: #8fa2bd; }
.rmap figcaption { padding: 9px 6px 4px; font-size: 11.5px; line-height: 1.55; color: var(--dim); }
.rinset { display: block; margin-top: 4px; color: var(--dim-2); }

.rlegend-h {
  margin: 22px 0 9px; font-size: 10px; font-weight: 750;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2);
}
.rlegend {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 14px; margin: 0; padding: 0; list-style: none;
}
.rlegend li { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.rlegend i, .rtable td i, .rgroup h3 i {
  display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent);
}
.rlegend b {
  font-size: 12.2px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rlegend em {
  margin-left: auto; flex: none; font-style: normal;
  font-size: 10px; color: var(--dim-2); font-variant-numeric: tabular-nums;
}

.rsec { margin-top: 32px; counter-reset: find; }
.rsec > h2 {
  margin: 0 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 750; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim);
}

.rfinding { counter-increment: find; position: relative; padding-left: 32px; }
.rfinding + .rfinding { margin-top: 17px; }
.rfinding::before {
  content: counter(find, decimal-leading-zero);
  position: absolute; left: 0; top: 3px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .04em; color: var(--pink);
}
.rfinding h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; letter-spacing: -.012em; }
.rfinding p { margin: 0; font-size: 13.8px; line-height: 1.72; color: #c2cbda; }

.rtable-wrap { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.rtable th {
  padding: 0 10px 8px; border-bottom: 1px solid var(--line);
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim-2); text-align: left; white-space: nowrap;
}
.rtable th:nth-child(2), .rtable th:nth-child(3) { text-align: right; }
.rtable td { padding: 9px 10px; border-top: 1px solid #141b26; vertical-align: baseline; }
.rtable tbody tr:first-child td { border-top: 0; }
.rtable td:first-child { padding-left: 0; }
.rtable td:first-child i { margin-right: 8px; }
.rtable td:first-child b { font-weight: 600; }
.rtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable .num span { font-size: 11px; color: var(--dim-2); }
.rtable td:last-child { font-size: 11.8px; color: var(--dim); }

.rsub { margin: -6px 0 16px; font-size: 12px; color: var(--dim-2); }
.rgroup { margin-top: 20px; }
.rgroup:first-of-type { margin-top: 4px; }
.rgroup h3 {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 6px; padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700;
}
.rgroup h3 em {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 500;
  color: var(--dim-2); font-variant-numeric: tabular-nums;
}
.rplaces {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px;
  margin: 0; padding: 0; list-style: none;
}
.rplaces li { min-width: 0; padding: 7px 0 8px; border-top: 1px solid #141b26; }
.rplaces li:nth-child(1), .rplaces li:nth-child(2) { border-top: 0; }
.rplaces a { display: block; font-size: 12.8px; color: var(--ink); text-decoration: none; }
.rplaces a:hover { color: var(--cyan); }
.rplaces span { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.4; color: var(--dim-2); }

.rmethod p { margin: 0 0 10px; font-size: 12.8px; line-height: 1.72; color: #a9b4c4; }
.rcredit {
  margin: 14px 0 0; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 10.5px; line-height: 1.5; color: var(--dim-2);
}

.rcta {
  margin-top: 32px; padding: 20px 22px;
  border: 1px solid #2a1a26; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, #2a0f1d 0%, #0c1017 62%);
}
.rcta h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.012em; }
.rcta p { margin: 7px 0 0; max-width: 58ch; font-size: 13px; line-height: 1.6; color: var(--dim); }
.rbtn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #ff4a8e, var(--pink));
  color: #fff; font-size: 12.8px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px -10px var(--pink);
  transition: transform .15s, box-shadow .15s;
}
.rbtn::after { content: "→"; font-weight: 400; }
.rbtn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--pink); }

.reality-foot { margin: 34px 0 0; padding: 14px 0 30px; }

@media (max-width: 999px) {
  .reality-main { overflow: visible; }
  .rwrap { padding: 16px 16px 0; }
  .reality h1 { font-size: 26px; }
  .reality .lede { font-size: 15px; }
  .rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .rstats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .rstats b { font-size: 22px; }
  .rlegend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rplaces { grid-template-columns: 1fr; }
  .rplaces li:nth-child(2) { border-top: 1px solid #141b26; }
  .rsec { margin-top: 26px; }
}

@media (max-width: 700px) {
  /* Fit rather than pan. A phone that has to swipe a map sideways to find the
     state is a phone that never sees the state; at this size the shape is the
     message and the table below carries the detail. */
  .rmap svg { width: 100%; }
  .rfinding { padding-left: 26px; }
  .rfinding h3 { font-size: 15px; }
}

/* Keep the map explanation and controls outside the phone's drawing area. */
@media (max-width: 999px) {
  .map-wrap, .stage-doc .map-wrap { min-height: 540px; }
  #map { top: 94px; bottom: 74px; }
  .map-reader { top: 10px; left: 10px; max-width: calc(100% - 20px); }
  .map-view-tabs button { min-height: 40px; padding: 8px 12px; }
  .map-view-note { font-size: 10px; }
  .map-legend { left: 10px; bottom: 59px; max-width: calc(100% - 20px); font-size: 10px; padding: 4px 7px; }
  .map-tools { gap: 5px; }
  .tool span { display: inline; font-size: 11px; }
  .tool { padding: 8px; gap: 5px; }
  .tool svg { width: 13px; height: 13px; }
  .region-label-copy { font-size: 11px; }
  .region-entry-link { width: 124px; padding: 8px; gap: 5px; font-size: 11px; }
  .region-entry-link b { min-width: 22px; height: 22px; font-size: 11px; }
  .map-switch .seg { min-height: 40px; }
  .map-credit { bottom: 62px; }
}
@media (max-width: 370px) {
  .tool { padding: 7px 6px; }
  .tool svg { display: none; }
}
@media (max-width: 560px) {
  .plist a { flex-direction: column; gap: 3px; }
  .plist b, .plist em { max-width: 100%; overflow-wrap: anywhere; }
  .plist em { margin-left: 0; }
}
