:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0ede6;
  --ink: #17201f;
  --ink-2: #4a5554;
  --muted: #7a8483;
  --line: #e2ded5;
  --brand: #0f3d3e;
  --brand-ink: #ffffff;
  --accent: #c8553d;
  --safer: #2f7d5b;
  --average: #8a7a2e;
  --caution: #c27a1e;
  --high: #b23a2e;
  --unknown: #8b9291;
  --bar: #0f3d3e;
  --bar-ref: #17201f;
  --shadow: 0 1px 2px rgba(23, 32, 31, .06), 0 6px 24px rgba(23, 32, 31, .06);
  --shadow-lg: 0 2px 6px rgba(8, 30, 30, .12), 0 24px 60px rgba(8, 30, 30, .22);
  --radius: 14px;
  --band: #0f3d3e;
  --band-2: #17595a;
  --band-ink: #ffffff;
  --band-muted: rgba(255, 255, 255, .74);
  --band-line: rgba(255, 255, 255, .16);
  --band-accent: #a6ddd6;
  --tint: #e3efed;
  --map-sea: #eef1ef;
  --map-land: #e3dfd6;
  --map-land-on: #fbfaf7;
  --map-line: #c9c3b6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1514;
    --surface: #161e1d;
    --surface-2: #1d2726;
    --ink: #e9efee;
    --ink-2: #b4c0be;
    --muted: #84918f;
    --line: #2a3533;
    --brand: #7fc7c0;
    --brand-ink: #0f1514;
    --accent: #ef8a6f;
    --safer: #5fbf8f;
    --average: #c9b55a;
    --caution: #e69d45;
    --high: #ef6f5f;
    --unknown: #7d8786;
    --bar: #7fc7c0;
    --bar-ref: #e9efee;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
    --band: #0c2928; --band-2: #123b3a; --band-line: rgba(255, 255, 255, .12); --tint: #1d3432;
    --map-sea: #111918; --map-land: #1c2524; --map-land-on: #26302f; --map-line: #34403e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1514; --surface: #161e1d; --surface-2: #1d2726; --ink: #e9efee; --ink-2: #b4c0be;
  --muted: #84918f; --line: #2a3533; --brand: #7fc7c0; --brand-ink: #0f1514; --accent: #ef8a6f;
  --safer: #5fbf8f; --average: #c9b55a; --caution: #e69d45; --high: #ef6f5f; --unknown: #7d8786;
  --bar: #7fc7c0; --bar-ref: #e9efee; color-scheme: dark;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
  --band: #0c2928; --band-2: #123b3a; --band-line: rgba(255, 255, 255, .12); --tint: #1d3432;
  --map-sea: #111918; --map-land: #1c2524; --map-land-on: #26302f; --map-line: #34403e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--brand); }
button, input, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- header */
.top { background: var(--band); color: var(--band-ink); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--band-line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 17px; letter-spacing: .01em; }
.brand svg { width: 26px; height: 26px; }
.brand b { font-weight: 700; }
.tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .12); padding: 4px; border-radius: 999px; }
.tabs button { border: 0; background: transparent; color: inherit; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: #0f3d3e; }

/* ---------------------------------------------------------------- search */
.search { position: relative; max-width: 640px; }
.search input, .route-form textarea, .route-form input {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 14px 16px; font-size: 17px; box-shadow: var(--shadow); outline: none;
}
.search input:focus, .route-form textarea:focus, .route-form input:focus { border-color: var(--brand); }
.search input { padding-left: 48px; height: 58px; border-color: transparent; box-shadow: var(--shadow-lg); }
.search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 900; }
.suggest li { padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-2); }
.suggest small { color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 8px; font-size: 14px; }
.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chips button:hover { border-color: var(--brand); }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin: 24px 0 40px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sticky { position: sticky; top: 74px; }
@media (max-width: 820px) { .col { grid-column: span 12; } .sticky { position: static; } }
.hero.compact { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
.hero.compact .dial { width: 128px; height: 128px; }
.hero.compact .dial .num b { font-size: 38px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); grid-column: span 12; min-width: 0; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; }
@media (max-width: 820px) { .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; } }
.card h2 { font-family: Fraunces, Georgia, serif; font-weight: 650; font-size: 21px; margin: 0 0 4px; letter-spacing: -.005em; }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.card .sub { color: var(--ink-2); margin: 0 0 14px; font-size: 15px; }
.note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }

/* hero */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; } }
.hero h2 { font-size: clamp(28px, 5vw, 38px); line-height: 1.1; margin: 2px 0 6px; }
.verdict { font-size: 17px; color: var(--ink-2); margin: 8px 0 0; }
.verdict li { margin: 4px 0; }
.dial { width: 156px; height: 156px; position: relative; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial .num b { font-family: Fraunces, Georgia, serif; font-size: 46px; line-height: 1; }
.dial .num span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; }
.b-safer { background: var(--safer); } .b-average { background: var(--average); } .b-caution { background: var(--caution); } .b-high { background: var(--high); } .b-unknown { background: var(--unknown); }
.c-safer { color: var(--safer); } .c-average { color: var(--average); } .c-caution { color: var(--caution); } .c-high { color: var(--high); } .c-unknown { color: var(--unknown); }

/* component bars */
.comp { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr 44px; gap: 10px; align-items: center; margin: 9px 0; font-size: 14.5px; }
.track { position: relative; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: visible; }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.track .mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--bar-ref); opacity: .55; }
.comp .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* theme bars: place share vs India marker */
.theme { display: grid; grid-template-columns: minmax(150px, 1.3fr) 2fr 70px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14.5px; }
.theme .track { height: 14px; border-radius: 4px; }
.theme .fill { background: var(--bar); border-radius: 4px; opacity: .9; }
.theme .ref { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bar-ref); }
.theme .x { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 10px; background: var(--bar); border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend i.ref { width: 2px; height: 14px; background: var(--bar-ref); vertical-align: -3px; }

/* benchmark bars (politics) */
.bench { display: grid; grid-template-columns: minmax(120px, 1fr) 2.2fr 58px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14.5px; }
.bench .track { height: 18px; border-radius: 5px; }
.bench .fill { background: var(--ink-2); border-radius: 5px; opacity: .55; }
.bench.me .fill { background: var(--accent); opacity: 1; }
.bench.me { font-weight: 600; }
.bench .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.big-stat { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 4px; }
.big-stat div { min-width: 120px; }
.big-stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 30px; line-height: 1.1; }
.big-stat span { color: var(--muted); font-size: 13px; }

/* spark bars */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 8px; }
.spark div { flex: 1; background: var(--bar); opacity: .85; border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
.spark div.thin { opacity: .35; }
.spark-x { display: flex; gap: 4px; font-size: 11px; color: var(--muted); }
.spark-x span { flex: 1; text-align: center; }

/* lists */
.incidents { list-style: none; margin: 0; padding: 0; }
.incidents li { padding: 12px 0; border-top: 1px solid var(--line); }
.incidents li:first-child { border-top: 0; }
.incidents .meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.incidents a { font-weight: 600; text-decoration: none; color: var(--ink); }
.incidents a:hover { text-decoration: underline; }
.incidents p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; border-top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 15px; }
blockquote footer { font-size: 13px; color: var(--muted); margin-top: 4px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 6px 0; background: var(--surface-2); }
.stack span { display: block; height: 100%; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-2); }
.stack-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }

.map { height: 320px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.map.tall { height: 440px; }
.leaflet-container { background: var(--surface-2); font: inherit; }

/* route */
.route-form { max-width: 720px; }
.route-form textarea { resize: vertical; min-height: 64px; font-size: 15.5px; }
.route-form.points label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); margin: 12px 0 6px; }
.route-form.points label:first-child { margin-top: 0; }
.from-row { display: flex; gap: 8px; }
.from-row input { flex: 1; min-width: 0; }
.from-row .ghost { white-space: nowrap; border-radius: 12px; }
.or { max-width: 720px; margin: 22px 0 8px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.primary { background: var(--brand); color: var(--brand-ink); border: 0; padding: 11px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.ghost { background: transparent; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.howto { margin: 14px 0 0; max-width: 720px; color: var(--ink-2); font-size: 15px; }
.howto summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops li { display: grid; grid-template-columns: 54px 14px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.stops li:first-child { border-top: 0; }
.stops .km { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; }
.stops .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.stops .nm { font-weight: 600; }
.stops .ev { font-size: 13px; color: var(--muted); }
.stops .sc { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 650; text-align: right; min-width: 40px; }
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.poi { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.poi b { display: block; font-size: 22px; font-family: Fraunces, Georgia, serif; }
.poi span { font-size: 13px; color: var(--ink-2); }
.loading { padding: 40px 0; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.spin { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { background: var(--surface); border: 1px solid var(--high); color: var(--ink); border-radius: 12px; padding: 14px 16px; margin: 20px 0; }

.foot { color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); background: var(--surface); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding-top: 36px; padding-bottom: 20px; }
.foot .brand { color: var(--ink); margin-bottom: 10px; }
.foot h4 { margin: 4px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.foot p { margin: 0 0 10px; line-height: 1.6; }
.foot-base { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 28px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 18px; } }

@media (max-width: 560px) {
  .card { padding: 16px; }
  .comp, .theme, .bench { grid-template-columns: 1fr 1.3fr 52px; font-size: 13.5px; }
  .stops li { grid-template-columns: 44px 12px 1fr auto; }
  .tabs button { padding: 6px 10px; font-size: 13px; }
}

/* ---------------------------------------------------------------- homepage: hero band */
.band { background: radial-gradient(1200px 500px at 85% -10%, var(--band-2), transparent 60%), var(--band); color: var(--band-ink); padding: 52px 0 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.band h1 { font-family: Fraunces, Georgia, serif; font-weight: 650; font-size: clamp(34px, 5.6vw, 56px); line-height: 1.04; margin: 0 0 14px; letter-spacing: -.015em; }
.lede { color: var(--band-muted); font-size: 18px; margin: 0 0 24px; max-width: 560px; }
.lede b { color: var(--band-ink); font-weight: 600; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--band-accent); margin: 0 0 12px; }
.eyebrow.ink { color: var(--accent); margin-bottom: 8px; }
.band .search { max-width: 600px; color: var(--ink); }
.band .chips { margin: 16px 0 0; }
.band .chips span { color: var(--band-muted); }
.band .chips button { background: rgba(255, 255, 255, .08); border-color: var(--band-line); color: var(--band-ink); }
.band .chips button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 0; border-top: 1px solid var(--band-line); }
.stats div { padding: 20px 0 26px; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--band-line); }
.stats dt { font-size: 12.5px; color: var(--band-muted); }
.stats dd { margin: 0 0 2px; font-family: Fraunces, Georgia, serif; font-size: 30px; font-weight: 650; line-height: 1.1; }
.stats div { display: flex; flex-direction: column-reverse; }
@media (max-width: 860px) {
  .band { padding-top: 32px; }
  .band-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--band-line); }
}

/* sample read card */
.sample { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-lg); min-height: 300px; }
.sample-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.live { font-size: 12px; color: var(--safer); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.sample-top { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.sample-top .dial { width: 96px; height: 96px; flex: none; }
.sample-top .dial .num b { font-size: 30px; }
.sample-top .dial .num span { display: none; }
.sample-city { font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 650; line-height: 1.1; display: block; }
.sample-where { color: var(--muted); font-size: 13.5px; display: block; margin: 2px 0 8px; }
.sample .comp { grid-template-columns: minmax(0, 1.9fr) minmax(70px, 1fr) 26px; font-size: 13.5px; margin: 8px 0; }
.sample-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.sample-link:hover { text-decoration: underline; }
.sample .skel { height: 12px; border-radius: 6px; background: var(--surface-2); margin: 12px 0; }

/* ---------------------------------------------------------------- homepage: sections */
.sec { padding: 64px 0; }
.sec.alt { background: var(--surface-2); }
.sec + .sec:not(.alt) { padding-top: 8px; }
.sec.alt + .sec, .sec + .sec.alt { padding-top: 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-family: Fraunces, Georgia, serif; font-weight: 650; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.sec-sub { color: var(--ink-2); max-width: 640px; margin: 10px 0 0; font-size: 16.5px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--band); color: #fff; }

/* map */
.map-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.home-map { height: 500px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--map-sea); box-shadow: var(--shadow); z-index: 0; }
.home-map.leaflet-container { background: var(--map-sea); }
.map-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.map-side h3 { font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 650; margin: 0 0 14px; }
.side-stats { display: grid; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-stats b { display: block; font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 650; line-height: 1.1; }
.side-stats span { font-size: 13px; color: var(--muted); }
.scale-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.scale-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; }
.scale-legend i { width: 12px; height: 12px; border-radius: 50%; }
.scale-legend small { color: var(--muted); font-variant-numeric: tabular-nums; }
.map-side .note { margin-top: auto; padding-top: 16px; }
.leaflet-tooltip.dot-tip { font: 13px/1.4 Inter, system-ui, sans-serif; padding: 6px 9px; border-radius: 8px; border: 0; box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.leaflet-tooltip.dot-tip b { font-weight: 600; }
.leaflet-tooltip.dot-tip::before { display: none; }
@media (max-width: 860px) { .map-panel { grid-template-columns: 1fr; } .home-map { height: 380px; } }

/* major-city cards */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pcard { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.pcard:hover { transform: translateY(-2px); border-color: var(--brand); }
.pcard .ring { width: 54px; height: 54px; flex: none; position: relative; }
.pcard .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pcard .ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Fraunces, Georgia, serif; font-size: 19px; }
.pcard .nm { font-weight: 600; font-size: 16px; display: block; }
.pcard .st { color: var(--muted); font-size: 13px; display: block; margin-bottom: 4px; }
.pcard .bl { font-size: 12.5px; font-weight: 600; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { margin: 14px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.f-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.f-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* route call to action */
.cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; background: radial-gradient(700px 300px at 100% 0, var(--band-2), transparent 70%), var(--band); color: var(--band-ink); border-radius: 22px; padding: 40px 44px; box-shadow: var(--shadow-lg); }
.cta h2 { font-family: Fraunces, Georgia, serif; font-weight: 650; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.12; margin: 0 0 12px; }
.cta p { color: var(--band-muted); margin: 0; max-width: 560px; }
.cta .row { margin-top: 22px; }
.cta-art { width: 100%; max-width: 300px; justify-self: end; color: var(--band-accent); }
.art-safer { fill: var(--safer); } .art-average { fill: var(--average); } .art-caution { fill: var(--caution); } .art-high { fill: var(--high); }
.cta-art circle { stroke: var(--band); stroke-width: 3; }
.primary.light { background: #fff; color: #0f3d3e; }
.ghost.light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.ghost.light:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 28px 22px; } .cta-art { display: none; } }

/* score scale + FAQ */
.scale { display: flex; height: 46px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.scale div { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.read-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.read-grid h3 { font-size: 16.5px; margin: 0 0 6px; }
.read-grid p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .read-grid { grid-template-columns: 1fr; gap: 18px; } }
.faq { margin-top: 40px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }

/* route pane */
.route-grid { align-items: start; padding-bottom: 48px; }
.route-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg); max-width: 640px; }
.route-card .route-form { max-width: none; }
.route-card .or { max-width: none; margin: 18px 0 8px; }
.route-card .route-form input, .route-card .route-form textarea { box-shadow: none; }
.gets { background: rgba(255, 255, 255, .05); border: 1px solid var(--band-line); border-radius: 18px; padding: 24px; margin-top: 8px; }
.gets h2 { font-family: Fraunces, Georgia, serif; font-weight: 650; font-size: 22px; margin: 0 0 16px; }
.gets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.gets li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.gets .f-ic { background: rgba(255, 255, 255, .1); color: var(--band-accent); }
.gets b { display: block; font-size: 15.5px; }
.gets p { margin: 2px 0 0; color: var(--band-muted); font-size: 14.5px; }
#pane-route .howto { margin-top: 24px; }

/* once a place is open, the hero shrinks and the landing sections step aside */
.has-result #home, .has-result .sample, .has-result .stats, .has-result .lede, .has-result #pane-place .eyebrow { display: none; }
.has-result #pane-place .band { padding: 26px 0 28px; }
.has-result #pane-place .band-grid { grid-template-columns: 1fr; }
.has-result #pane-place .band h1 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 14px; }
.has-route #pane-route .gets { display: none; }
.has-route #pane-route .route-grid { grid-template-columns: 1fr; padding-bottom: 32px; }
