:root {
  --bg: #0d0b14;
  --surface: #16121f;
  --surface-2: #1f192b;
  --line: #2e2640;
  --text: #f3eef8;
  --muted: #b3a9c6;
  --faint: #8a809e;
  --pink: #ff4f9a;
  --orange: #ffa94d;
  --teal: #2ee6d0;
  --violet: #a78bfa;
  --green: #3ddc97;
  --yellow: #ffe066;
  --sunset: linear-gradient(90deg, #ff4f9a, #ffa94d);
  --radius: 14px;
  --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: #7ff3e6; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .4em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13, 11, 20, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* hero */
.hero { padding: 28px 0 18px; background: radial-gradient(1200px 300px at 20% -40%, rgba(255, 79, 154, .22), transparent 60%), radial-gradient(900px 260px at 90% -30%, rgba(46, 230, 208, .14), transparent 60%); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--orange); margin: 0 0 .6em; }
.grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.lead strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .88rem; color: var(--text); }
.chips li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.hero-app { padding: 18px 0 12px; }
.hero-app h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: .25em; }
.hero-app .lead { font-size: 1.05rem; margin-bottom: .2em; max-width: 900px; }
.hero-app .chips { margin-top: 10px; }
.wrap-app .tracker { margin-top: 0; }
.wrap-app .map-shell, .wrap-app .panel { height: calc(100svh - 56px - 24px); max-height: 860px; min-height: 520px; }
.map-jump { display: none; }
.updated { color: var(--faint); font-size: .88rem; margin-top: 12px; }

/* tracker app */
.tracker { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 8px 0 0; }
.map-shell { position: relative; order: 2; min-height: 520px; height: min(78vh, 760px); background: #17131f; }
.map-shell:fullscreen { height: 100vh; }
.map { position: absolute !important; inset: 0; height: 100%; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); background:
  radial-gradient(circle at 62% 70%, rgba(46, 230, 208, .12), transparent 40%),
  radial-gradient(circle at 40% 30%, rgba(255, 79, 154, .12), transparent 45%),
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .03) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .03) 39px 40px), #17131f; }
.map-ready .map-placeholder { display: none; }
.pin-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5; background: var(--yellow); color: #1b1600; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.pin-hint[hidden] { display: none; }
.pin-hint button { background: rgba(0, 0, 0, .12); border: 0; border-radius: 6px; padding: 4px 8px; font: inherit; cursor: pointer; }
.panel { order: 1; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; padding: 16px; max-height: min(78vh, 760px); min-height: 520px; overflow-y: auto; }
.panel-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 6px; font-weight: 700; }
.save-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.save-bar select { grid-column: 1 / -1; }
.save-actions { display: flex; gap: 6px; grid-column: 1 / -1; }
select, input[type="search"], input[type="text"], textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .95rem; }
textarea { resize: vertical; min-height: 64px; }
.button, button.button, .panel button:not(.linkish):not(.loc-name) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.button:hover, .panel button:not(.linkish):not(.loc-name):hover { border-color: #4a3d63; }
.button.primary, .panel button.primary { background: var(--sunset) !important; color: #1a0d14 !important; border: 0 !important; font-weight: 700; }
.button.ghost { background: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }
.panel .danger { color: #ff8fa3; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.progress-text { display: flex; justify-content: space-between; font-size: .95rem; }
.progress-text strong { font-size: 1.3rem; }
.bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); margin-top: 6px; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--teal)); transition: width .3s; }
.free-note { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.cats { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.cats label { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.cats label:hover { background: var(--surface-2); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.cat-bar { grid-column: 3 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: -2px; }
.cat-bar i { display: block; height: 100%; width: 0; background: var(--c); transition: width .3s; }
.cats label .dot { grid-row: span 1; }
.search-box { position: relative; }
.search-box input { padding-right: 36px; }
.search-box kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 .75rem system-ui, sans-serif; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; pointer-events: none; }
.cat-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 6px; }
.panel .cat-tools button { padding: 4px 9px; font-size: .82rem; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); cursor: pointer; }
.cat-tools .toggle, .cats .cat-tools label.toggle { margin-left: auto; display: inline-flex; padding: 0; grid-template-columns: none; }
.toggle input { width: 16px; height: 16px; }
.dot-muted { --c: #8a809e; }
.cat-soon { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 8px 6px 34px; color: var(--faint); font-size: .92rem; }
.toggle.wake[hidden] { display: none; }
.cats .count { color: var(--faint); font-variant-numeric: tabular-nums; font-size: .88rem; }
input[type="checkbox"] { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.loc { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 7px 8px; border-radius: 8px; border-left: 3px solid var(--c, var(--line)); }
.loc:hover { background: var(--surface-2); }
.loc-check { display: none; }
.js .loc-check { display: inline-flex; }
.loc-name { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; font-weight: 600; }
.loc-name:hover { color: var(--teal); }
.no-js-name { font-weight: 600; }
.js .no-js-name { display: none; }
.loc-name { display: none; }
.js .loc-name { display: inline; }
.loc-meta { grid-column: 2 / -1; font-size: .82rem; color: var(--faint); }
.loc.is-found .loc-name { color: var(--green); text-decoration: line-through; text-decoration-color: rgba(61, 220, 151, .5); }
.loc.has-note .loc-name::after { content: " ✎"; color: var(--yellow); font-weight: 400; }
.loc.is-filtered, .loc.is-hidden-cat { display: none; }
.loc-detail { grid-column: 1 / -1; }
.loc.is-linked { background: rgba(255, 79, 154, .1); }
.share-btn { margin-top: 8px; background: none; border: 1px solid var(--line); color: var(--teal); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.badge-official { background: rgba(61, 220, 151, .14); color: var(--green); }
.badge-shown { background: rgba(46, 230, 208, .12); color: var(--teal); }
.badge-inferred { background: rgba(255, 169, 77, .14); color: var(--orange); }
.badge-unconfirmed { background: rgba(255, 79, 154, .14); color: #ff8fbf; }
.pins ol { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.pin-item::before { content: "●"; color: var(--yellow); margin-right: 8px; }
.pin-note-mark { color: var(--yellow); margin-left: 6px; }
.hint { font-size: .84rem; color: var(--faint); margin: 6px 0 0; }
.backup-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status { font-size: .9rem; color: var(--yellow); min-height: 1.2em; margin: 0; }
.status:empty { display: none; }
.noscript { padding: 12px; background: var(--surface-2); border-radius: 10px; font-size: .92rem; }

/* map controls and popup (MapLibre) */
.maplibregl-ctrl-group { background: var(--surface) !important; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0, 0, 0, .4) !important; }
.maplibregl-ctrl-group button + button { border-top-color: var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(.9); }
.maplibregl-popup-content { background: var(--surface) !important; color: var(--text); border: 1px solid var(--line); border-radius: 12px !important; padding: 14px 16px 12px !important; box-shadow: 0 10px 40px rgba(0, 0, 0, .5) !important; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.maplibregl-popup-close-button { color: var(--muted); font-size: 20px; padding: 0 6px; }
.maplibregl-ctrl-attrib { background: rgba(13, 11, 20, .75) !important; color: var(--muted); }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-cooperative-gesture-screen { background: rgba(13, 11, 20, .7) !important; color: var(--text) !important; font-size: 1.05rem !important; }
.card-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 2px; }
.card-title { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0 0 8px; }
.card-text { color: var(--muted); }
.card-counterpart, .card-sources { font-size: .84rem; color: var(--faint); }
.card-check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 6px 0 8px; cursor: pointer; }
.card input[type="text"] { margin-bottom: 8px; font-weight: 600; }
.card .danger { margin-top: 8px; background: none; border: 1px solid #5a2a3a; color: #ff8fa3; border-radius: 8px; padding: 5px 10px; font: inherit; font-size: .85rem; cursor: pointer; }

/* content */
.section { padding: 8px 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-box h3 { margin-top: 0; }
.feature-list { margin: 0; padding-left: 1.2em; }
.feature-list li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.src { font-size: .85rem; color: var(--faint); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--faint); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 16px 6px; color: var(--muted); }
.next-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 32px; }
.next-links a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); }
.next-links a:hover { border-color: var(--pink); }
.next-links strong { display: block; margin-bottom: 4px; }
.next-links span { color: var(--muted); font-size: .9rem; }
.breadcrumbs { font-size: .88rem; color: var(--faint); margin: 0 0 10px; }
.breadcrumbs a { color: var(--muted); }
.callout { border-left: 3px solid var(--orange); background: rgba(255, 169, 77, .07); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--muted); }
.answer { font-size: 1.12rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.answer strong { color: var(--text); }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.region-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; border-top: 3px solid var(--c, var(--teal)); }
.region-card h3 { margin: 0 0 4px; }
.region-card p { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }

/* size comparison */
.compare-figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.size-row { display: flex; align-items: flex-end; gap: 0; padding: 8px 0; }
.size-item { padding: 0 1.2%; box-sizing: border-box; text-align: center; }
.size-sq { aspect-ratio: 1; width: 100%; border: 3px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, transparent); }
.size-sq.dashed { border-style: dashed; background: color-mix(in srgb, var(--c) 8%, transparent); }
.size-item p { margin: 8px 0 0; font-size: .95rem; line-height: 1.3; min-height: 3.9em; }
.size-item strong { display: block; }
.size-item span { color: var(--muted); font-size: .88rem; }
@media (max-width: 520px) { .size-item p { font-size: .78rem; min-height: 5.4em; } .size-item span { font-size: .74rem; } .size-sq { border-width: 2px; } }
.compare-figure figcaption { font-size: .88rem; color: var(--faint); margin-top: 8px; }
.compare-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.compare-controls button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.compare-controls button[aria-pressed="true"] { background: var(--sunset); color: #1a0d14; border-color: transparent; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 4px; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.size-map-shell { position: relative; height: 460px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #17131f; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 36px; color: var(--muted); font-size: .9rem; background: #0a0910; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.6fr; gap: 24px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 4px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; }
.footer-h { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.footer-legal a { color: var(--muted); }
.consent-panel { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 460px; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 12px 48px rgba(0, 0, 0, .55); }
.consent-title { font-weight: 700; margin-bottom: 4px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .tracker { grid-template-columns: 1fr; }
  .wrap-app { padding: 0; }
  .wrap-app .tracker { border-radius: 0; border-left: 0; border-right: 0; }
  .wrap-app .map-shell { height: 72svh; min-height: 420px; }
  .wrap-app .panel { height: auto; max-height: none; min-height: 0; }
  .map-jump { display: flex; position: absolute; left: 10px; bottom: 56px; z-index: 4; gap: 12px; align-items: center; background: rgba(22, 18, 31, .92); border: 1px solid var(--line); color: var(--text); text-decoration: none; border-radius: 999px; padding: 8px 14px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
  .map-jump span + span { color: var(--teal); }
  .hero-app .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .hero-app .chips li { white-space: nowrap; }
  .map-shell { order: 1; height: 62vh; min-height: 380px; }
  .panel { order: 2; border-right: 0; border-top: 1px solid var(--line); max-height: none; min-height: 0; }
  .grid-2, .grid-3, .next-links, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .hero { padding-top: 20px; }
  .lead { font-size: 1.02rem; }
  .hero-app .eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .hero-app h1 { font-size: 1.85rem; }
  .hero-app .lead { font-size: .96rem; line-height: 1.5; }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 4px; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.size-map-shell { height: 380px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* generated from content/data */
.cat-regions{--c:#2ee6d0}
.cat-districts{--c:#ff4f9a}
.cat-landmarks{--c:#ffa94d}
.cat-businesses{--c:#60a5fa}
.cat-story{--c:#c084fc}
.size-0{width:19.65%;--c:#2ee6d0}
.size-1{width:25.72%;--c:#ff4f9a}
.size-2{width:27.80%;--c:#ffa94d}
.size-3{width:26.83%;--c:#a78bfa}
.fp-0{--c:#2ee6d0}
.fp-1{--c:#ff4f9a}
