/* Direction C "Glass" map chrome (design SPEC §11, owner-approved 2026-11-09): five islands of light Liquid Glass over
   the map. Clear glass for small controls, regular glass for text, thick glass for the search palette and the pin
   name. Each surface: a white tint, a backdrop blur, a specular inset, a 1.5px gradient rim (::before), an inner lens
   glow (::after), a .5px hairline and a tight three-layer shadow. lens.js adds edge refraction in Chromium only.
   While the camera moves, surfaces crossfade to a static tint without backdrop-filter (map-layout.js: .cam/.cam-off). */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Inter", "Segoe UI", Roboto, sans-serif;
  --t1: #141518; --t2: #353840; --t3: #4b4f57; --t4: #6e727b;
  --accent: #ff9f0a; --accent-ink: #2b1a00; --accent-soft: rgba(255, 159, 10, .16); --live: #1fa855;
  --tint-clear: linear-gradient(180deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .34));
  --tint-regular: linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .72));
  --tint-thick: linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .85));
  --bf-clear: blur(8px) saturate(160%) brightness(1.06);
  --bf-reg: blur(28px) saturate(120%) brightness(1.04);
  --still-clear: rgba(246, 246, 248, .94); --still-reg: rgba(248, 248, 250, .96);
  --solid-clear: #f6f6f8; --solid-reg: #fafafa;
  --spec: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .30);
  --rim: 0 0 0 .5px rgba(0, 0, 0, .12);
  --shadow: 0 .5px 0 rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .08), 0 12px 24px rgba(0, 0, 0, .06);
  --shadow-pal: 0 2px 6px rgba(0, 0, 0, .08), 0 24px 64px rgba(0, 0, 0, .20);
  --rim-a: 1; --glow: rgba(255, 255, 255, .55); --glow2: rgba(255, 255, 255, .7); --sheen: rgba(255, 255, 255, .30);
  --line: rgba(20, 21, 24, .09); --line2: rgba(20, 21, 24, .14);
  --fill: rgba(120, 120, 128, .14); --fill-hi: rgba(255, 255, 255, .72); --sel: rgba(20, 21, 24, .06);
  --pill-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(20, 21, 24, .10), 0 2px 6px rgba(0, 0, 0, .10);
  --dim: rgba(30, 32, 40, .16);
  --r1: 6px; --r2: 12px; --r3: 20px; --r4: 28px; --cap: 999px;
  --edge: 16px;
  --top: max(16px, env(safe-area-inset-top));
  --left: max(16px, env(safe-area-inset-left));
  --right: max(16px, env(safe-area-inset-right));
  --bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--under, 0px));   /* --under: the map under an iPhone's Safari toolbar (index.html) */
  --panel-w: 400px;
  --consent-space: 0px;
}
/* dark map (night): the glass follows the map's luminance, not the OS (SPEC §11) */
.map[data-glass="dark"] {
  --t1: #f5f5f7; --t2: #c7c9d1; --t3: #9a9ea8; --t4: #7d818b;
  --tint-clear: linear-gradient(180deg, rgba(30, 30, 36, .45), rgba(30, 30, 36, .35));
  --tint-regular: linear-gradient(180deg, rgba(30, 30, 36, .95), rgba(30, 30, 36, .92));   /* raised twice for lit windows: measured t3 >= 4.5 */
  --tint-thick: linear-gradient(180deg, rgba(30, 30, 36, .95), rgba(30, 30, 36, .92));
  --bf-clear: blur(8px) saturate(160%) brightness(.9);
  --bf-reg: blur(28px) saturate(120%) brightness(.9);
  --still-clear: rgba(34, 35, 41, .94); --still-reg: rgba(30, 31, 37, .96);
  --solid-clear: #26272d; --solid-reg: #1f2025;
  --spec: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .12);
  --rim: 0 0 0 .5px rgba(0, 0, 0, .5);
  --rim-a: .4; --glow: rgba(255, 255, 255, .16); --glow2: rgba(255, 255, 255, .22); --sheen: rgba(255, 255, 255, .10);
  --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .18);
  --fill: rgba(160, 160, 172, .22); --fill-hi: rgba(255, 255, 255, .16); --sel: rgba(255, 255, 255, .08);
  --pill-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 .5px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .3);
  --dim: rgba(0, 0, 0, .32);
}
.map { font: 13px/20px var(--font); letter-spacing: -.01em; color: var(--t1); -webkit-font-smoothing: antialiased; }
:where(.map) button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.map svg.ic { display: block; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:is(.map, .consent) :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Liquid Glass ------------------------------------------------------------------------------------------------ */
.g { --bf: var(--bf-clear); --still: transparent; --still-on: var(--still-clear); --solid: var(--solid-clear);
  position: relative; isolation: isolate; background: var(--tint-clear); -webkit-backdrop-filter: var(--bf); backdrop-filter: var(--bf);
  box-shadow: var(--spec), inset 0 0 0 100vmax var(--still), var(--rim), var(--shadow); transition: box-shadow .15s linear; }
.g.reg { --bf: var(--bf-reg); --still-on: var(--still-reg); --solid: var(--solid-reg); background: var(--tint-regular); }
.g.thick { --bf: var(--bf-reg); --still-on: var(--still-reg); --solid: var(--solid-reg); background: var(--tint-thick); }
.g::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, var(--rim-a)) 0%, rgba(255, 255, 255, calc(.55 * var(--rim-a))) 18%,
    rgba(255, 255, 255, calc(.05 * var(--rim-a))) 45%, rgba(255, 255, 255, calc(.05 * var(--rim-a))) 70%, rgba(255, 255, 255, calc(.7 * var(--rim-a))) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.g::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 14px var(--glow), inset 0 0 2px var(--glow2); background: linear-gradient(180deg, var(--sheen), rgba(255, 255, 255, 0) 38%); }
/* the map under a clear surface is dark (the dark ground around the drawing): its tint goes up one step so t1 keeps
   4.5:1 or better (SPEC §11 legibility rule; map-layout.js samples the art under each surface) */
.map:not([data-glass="dark"]) .g.lift:not(.reg):not(.thick) { background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .54)); }
.map[data-glass="dark"] .g.lift:not(.reg):not(.thick) { background: linear-gradient(180deg, rgba(30, 30, 36, .66), rgba(30, 30, 36, .56)); }
/* low-end devices: content glass blur capped at 16px */
.glass-lite .g.reg, .glass-lite .g.thick { --bf: blur(16px) saturate(120%) brightness(1.04); }
.glass-lite .map[data-glass="dark"] .g.reg, .glass-lite .map[data-glass="dark"] .g.thick { --bf: blur(16px) saturate(120%) brightness(.9); }
/* the camera moves: crossfade to a static tint (150ms), then drop the backdrop; restored 200ms after it settles */
.map.cam .g, .g.static { --still: var(--still-on); }
.map.cam-off .g, .g.static { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* solid controls: reduced transparency, more contrast, no backdrop-filter, or the in-app switch. Rim, hairline and
   shadow stay; the lens goes. */
:root.solid .g { --still: var(--solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:root.solid .g::after { display: none; }
@media (prefers-reduced-transparency: reduce) {
  .g { --still: var(--solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .g::after { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .g { --still: var(--solid) !important; }
  .g::after { display: none; }
}
@media (prefers-contrast: more) {
  .g { --still: var(--solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid rgba(0, 0, 0, .25); }
  .g::after { display: none; }
  .map { --t2: var(--t1); --t3: var(--t1); }
}

/* ---- parts ------------------------------------------------------------------------------------------------------- */
.k { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: var(--r1);
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 .5px rgba(20, 21, 24, .18), 0 1px 0 rgba(20, 21, 24, .06);
  font: 510 11px/18px var(--font); color: var(--t3); letter-spacing: 0; }
.map[data-glass="dark"] .k { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); }
.btn { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--cap); color: var(--t1); font-weight: 510; white-space: nowrap; }
.ib { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--cap); color: var(--t1); flex: none; }
.ib.sm { width: 28px; height: 28px; }
.ib.fill { background: var(--fill); }
:is(.btn, .ib, .dock button, .row):not(.pill-on):hover { background: var(--fill); }
.ib:disabled { opacity: .35; cursor: default; background: none !important; }
.vr { width: 1px; align-self: stretch; margin: 10px 4px; background: var(--line2); flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(31, 168, 85, .18); flex: none; }
.off .dot, .dot.off { background: var(--t4); box-shadow: 0 0 0 3px rgba(110, 114, 123, .16); }
.logo { width: 24px; height: 24px; border-radius: var(--r1); background: linear-gradient(160deg, #ffc24d, #ff9f0a); display: grid; place-items: center;
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 .5px rgba(0, 0, 0, .12); flex: none; }
.pill-on, .btn[aria-expanded="true"] { background: var(--fill-hi); color: var(--t1); box-shadow: var(--pill-shadow); }
.sw { position: relative; width: 32px; height: 20px; border-radius: 10px; background: rgba(120, 120, 128, .24); flex: none; transition: background-color .15s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(0, 0, 0, .06); transition: left .15s; }
[aria-checked="true"] > .sw { background: var(--accent); }
[aria-checked="true"] > .sw::after { left: 14px; }
.sect { font: 590 12px/16px var(--font); color: var(--t3); padding: 8px 12px 4px; }
.row { display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); height: 32px; padding: 0 8px; margin: 0 8px; box-sizing: border-box;
  border-radius: var(--r2); color: var(--t1); text-align: left; }
.row > .ic { color: var(--t3); }
.row > .row-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr { height: 1px; background: var(--line); margin: 8px 16px; }
.halo { text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 8px rgba(255, 255, 255, .9); }
.tail { position: absolute; width: 14px; height: 14px; transform: rotate(45deg); background: var(--still-reg);
  box-shadow: .5px .5px 0 rgba(0, 0, 0, .12), 2px 2px 4px rgba(0, 0, 0, .08); pointer-events: none; }
.map[data-glass="dark"] .tail { background: rgba(36, 37, 43, .97); }
.pri { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; padding: 0 16px; box-sizing: border-box;
  border-radius: var(--cap); background: linear-gradient(180deg, #ffb233, #ff9f0a); color: var(--accent-ink) !important; font: 590 13px/36px var(--font);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 .5px rgba(150, 80, 0, .35), 0 2px 8px rgba(255, 140, 0, .28); white-space: nowrap; }
.pri > span { overflow: hidden; text-overflow: ellipsis; }
.pri:hover { filter: brightness(1.04); }
.get { display: inline-block; height: 28px; padding: 0 14px; border-radius: var(--cap); background: rgba(255, 255, 255, .8); flex: none;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(20, 21, 24, .14), 0 1px 3px rgba(0, 0, 0, .08); color: #141518; font: 590 13px/28px var(--font); }
.appicon { width: 32px; height: 32px; border-radius: 8px; flex: none; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); background: #fff; }

/* ---- islands (desktop) ------------------------------------------------------------------------------------------- */
.island { position: absolute; z-index: 6; }
.idn { left: var(--left); top: var(--top); height: 40px; border-radius: var(--cap); display: flex; align-items: center; padding: 0 4px 0 8px; box-sizing: border-box; }
.idn .logo { text-decoration: none; }
.idn .all-cities { padding: 0 6px 0 10px; color: var(--t1); text-decoration: none; font-weight: 400; white-space: nowrap; border-radius: var(--cap);
  height: 32px; display: flex; align-items: center; }
.idn .all-cities:hover { background: var(--fill); }
.idn-sep { color: var(--t1); opacity: .7; }
.idn-city { padding: 0 8px 0 6px; font-weight: 590; gap: 2px; }
.idn-h { margin: 0; font: inherit; letter-spacing: inherit; display: contents; }
.navpair-slot, .nav-items { display: contents; }
.nav-items > .hl { display: none; }
.idn-city .ic { transition: transform .15s; }
.idn-city[aria-expanded="true"] .ic { transform: rotate(180deg); }
.idn-sub { display: contents; }
.live { height: 32px; padding: 0 12px; gap: 8px; font-weight: 510; font-variant-numeric: tabular-nums; }
.live[aria-pressed="true"] { background: var(--fill-hi); box-shadow: var(--pill-shadow); }
.live[aria-pressed="false"] .dot { background: var(--t4); box-shadow: 0 0 0 3px rgba(110, 114, 123, .16); }
.srch { left: 50%; top: var(--top); width: 320px; height: 40px; border-radius: var(--cap); display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 14px; box-sizing: border-box; transform: translateX(-50%); color: var(--t1); text-align: left; }
.srch .srch-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch.narrow .k { display: none; }
.srch.icon { width: 40px; padding: 0; justify-content: center; }
.srch.icon :is(.srch-l, .k) { display: none; }
.tools { right: var(--right); top: var(--top); height: 40px; border-radius: var(--cap); display: flex; align-items: center; padding: 0 4px; box-sizing: border-box; }
.tools .btn { padding: 0 12px 0 10px; }
.sponsor-cta { top: var(--top); right: calc(var(--right) + 236px); height: 40px; padding: 0 14px; border-radius: var(--cap); box-sizing: border-box;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: linear-gradient(180deg, #ffbd3b 0%, #ff9f0a 100%); color: #2b1a00 !important;
  font: 700 13px/1 var(--font); letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), 0 0 0 .5px rgba(138, 76, 0, .42), 0 4px 14px rgba(255, 159, 10, .34), 0 10px 22px rgba(0, 0, 0, .12);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease; }
.sponsor-cta:hover { filter: brightness(1.04); transform: translateY(-1px); }
.sponsor-cta[aria-expanded="true"] { filter: brightness(1.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 0 0 2px #fff, 0 0 0 4px rgba(255, 159, 10, .55), 0 8px 20px rgba(0, 0, 0, .18); }
.sponsor-cta .sp-cta-price { padding: 3px 7px; border-radius: var(--cap); background: rgba(43, 26, 0, .12); font: 650 11px/1 var(--font); letter-spacing: 0; }
.sponsor-cta.compact .sp-cta-price { display: none; }
.sponsor-cta.icon { width: 40px; padding: 0; justify-content: center; }
.sponsor-cta.icon :is(.sp-cta-label, .sp-cta-price) { display: none; }
.dock { left: 50%; bottom: calc(var(--bottom) + var(--consent-space)); transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; height: 40px;
  border-radius: var(--cap); box-sizing: border-box; }
.dock button { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 32px; border-radius: var(--cap); font-weight: 510; color: var(--t1); white-space: nowrap; }
.dock button[aria-pressed="true"] { background: var(--fill-hi); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(20, 21, 24, .10), 0 2px 8px rgba(0, 0, 0, .10); }
.map[data-glass="dark"] .dock button[aria-pressed="true"] { box-shadow: var(--pill-shadow); }
.dock em { font: 400 12px/16px var(--font); font-style: normal; color: var(--t1); font-variant-numeric: tabular-nums; }
.dock em:empty { display: none; }
.dock .sm { display: none; }
.dock.compact button { padding: 0 12px; }
.dock.compact button > span { display: none; }
.dock.compact button > em { margin-left: -2px; }
.ov { left: var(--left); bottom: calc(var(--bottom) + var(--consent-space)); width: 224px; border-radius: var(--r3); padding: 8px; box-sizing: border-box; touch-action: none; user-select: none; -webkit-user-select: none; }
.ov-map { position: relative; height: 120px; border-radius: var(--r2); overflow: hidden; background: #10151d; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.ov-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.ov-chip { position: absolute; left: 6px; top: 6px; height: 22px; padding: 0 9px; border-radius: var(--cap); font: 590 11px/22px var(--font);
  color: #141518; background: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .12); pointer-events: none; }
.ov-x { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9) !important; color: #141518 !important; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .12); }
.credits { padding: 6px 4px 0; font: 400 11px/16px var(--font); color: var(--t3); letter-spacing: 0; }
.ov.closed .credits { white-space: nowrap; }
.credits a { color: var(--t1); font-weight: 510; text-decoration: none; }
.credits a:hover { text-decoration: underline; }
.ov.closed { width: auto; height: 32px; padding: 0 4px 0 12px; border-radius: var(--cap); display: flex; align-items: center; gap: 6px; }
.ov.closed .ov-map { display: contents; }
.ov.closed :is(canvas, .ov-chip) { display: none; }
.ov.closed .credits { padding: 0; order: -1; line-height: 32px; }
.ov.closed .ov-x { position: static; order: 2; width: 24px; height: 24px; background: var(--fill) !important; color: var(--t1) !important; box-shadow: none; }
.ov.hide-auto { display: none; }
.map .ov-x svg.ic-map { display: none; }   /* the closed card's glyph on phones */

/* ---- popovers ---------------------------------------------------------------------------------------------------- */
.pop { position: absolute; z-index: 8; border-radius: var(--r3); box-sizing: border-box; overscroll-behavior: contain; }
.disp { right: var(--right); top: calc(var(--top) + 48px); width: 288px; padding: 8px 0; }
.disp .sect { padding: 4px 16px 4px; }
.disp .row { height: 32px; }
.seg { display: flex; margin: 4px 16px 0; padding: 3px; border-radius: var(--cap); background: var(--fill); }
.seg button { flex: 1; height: 26px; border-radius: var(--cap); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 510; color: var(--t2); min-width: 0; }
.seg button[aria-pressed="true"] { background: var(--fill-hi); color: var(--t1); box-shadow: var(--pill-shadow); }
.note { padding: 8px 16px 4px; color: var(--t3); font-size: 12px; line-height: 16px; }
.citym { left: var(--left); top: calc(var(--top) + 48px); width: 248px; padding: 8px 0; }
.citym .row { height: 36px; color: var(--t1); text-decoration: none; }
.citym .row small { color: var(--t3); font-size: 12px; margin-left: auto; }
.citym .row[aria-current="true"] { background: var(--sel); box-shadow: inset 2px 0 0 var(--accent); }
.citym .m-only { display: none; }
@media (max-width: 600px) { .citym .m-only { display: flex; } .citym .hr.m-only { display: block; } }

/* ---- ⌘K palette -------------------------------------------------------------------------------------------------- */
.pal-wrap { position: absolute; inset: 0; z-index: 20; }
.pal-dim { position: absolute; inset: 0; background: var(--dim); }
.pal { position: absolute; left: 50%; top: var(--top); width: min(640px, calc(100% - 32px)); transform: translateX(-50%); border-radius: var(--r3);
  overflow: hidden; display: flex; flex-direction: column; max-height: calc(100% - var(--top) - 32px); }
.pal.g { box-shadow: var(--spec), inset 0 0 0 100vmax var(--still), var(--rim), var(--shadow-pal); }
.pal-field { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.pal-field > .ic { color: var(--t3); }
.scope { height: 24px; padding: 0 10px 0 6px; border-radius: var(--cap); background: var(--fill); font: 510 12px/24px var(--font); color: var(--t1);
  display: flex; align-items: center; gap: 6px; flex: none; }
.scope .logo { width: 14px; height: 14px; border-radius: 4px; }
.pal-field input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; font: 400 17px/24px var(--font); color: var(--t1);
  caret-color: var(--accent); padding: 0; letter-spacing: -.01em; }
.pal-field input::placeholder { color: var(--t4); }
.pal-cancel { display: none; }
.pal-field input:focus-visible { outline: 0; }
.pal-list { padding: 4px 0 8px; overflow: auto; overscroll-behavior: contain; }
.pal-list .sect { padding: 10px 20px 4px; }
.pal-list .row { height: 36px; cursor: pointer; }
.pal-list .row[aria-selected="true"] { background: var(--sel); box-shadow: inset 2px 0 0 var(--accent); }
.pal-list .row b { font-weight: 650; }
.pal-list .row .row-l small { color: var(--t3); margin-left: 8px; font-size: 13px; }
.pal-list .row .k { margin-left: auto; }
.pal-list .row .k.ret { display: none; }
.pal-list .row[aria-selected="true"] .k.ret { display: inline-grid; }
.pal-empty { padding: 18px 20px; color: var(--t3); }
.pal-foot { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--t3); flex: none; }
.pal-foot .cnt { margin-left: auto; }
.chip { width: 20px; height: 20px; border-radius: var(--cap); background: var(--accent); color: var(--accent-ink); font: 650 11px/20px var(--font);
  text-align: center; font-variant-numeric: tabular-nums; flex: none; box-shadow: 0 0 0 1.5px #fff, 0 1px 2px rgba(0, 0, 0, .2); }

/* ---- status toast, loading, consent ------------------------------------------------------------------------------ */
#tripski-status { position: absolute; z-index: 7; left: 50%; bottom: calc(var(--bottom) + var(--consent-space) + 48px); transform: translateX(-50%); margin: 0;
  max-width: min(360px, calc(100% - 32px)); padding: 6px 14px; border-radius: var(--cap); text-align: center; font: 510 12px/20px var(--font); color: var(--t1); box-sizing: border-box; }
.loading { position: absolute; z-index: 7; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; width: 240px;
  padding: 22px; border-radius: var(--r3); color: var(--t3); font-size: 13px; pointer-events: none; box-sizing: border-box; }
.loading strong { color: var(--t1); font-size: 15px; font-weight: 590; }
.loading-spinner { width: 24px; height: 24px; border: 2.5px solid var(--fill); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body:has(.map) .consent { left: var(--left); right: auto; bottom: max(16px, env(safe-area-inset-bottom)); width: min(420px, calc(100% - 32px)); max-width: none; transform: none;
  background: #fafafa; color: #141518; border: 0; border-radius: var(--r3); font: 400 13px/18px var(--font);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .12), 0 .5px 0 rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .08), 0 12px 24px rgba(0, 0, 0, .06); }
body:has(.map) .consent-btn { border-radius: var(--cap); font: 590 13px/1 var(--font); border-color: rgba(20, 21, 24, .14); color: #141518; }
body:has(.map) .consent-btn.on { background: linear-gradient(180deg, #ffb233, #ff9f0a); color: #2b1a00; }
body:has(.map .consent, .map ~ .consent) .ov { display: none; }

/* ---- iPhone (≤ 600 wide) ----------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  :root { --top: calc(max(12px, calc(env(safe-area-inset-top) + 4px)) + var(--over, 0px)); --left: max(12px, env(safe-area-inset-left)); --right: max(12px, env(safe-area-inset-right));
    --bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--under, 0px)); }
  .idn { height: 48px; padding: 0 14px 0 10px; gap: 10px; }
  .idn .logo { width: 28px; height: 28px; }
  .idn .all-cities, .idn-sep { display: none; }
  .idn-sub { display: flex; flex-direction: column; align-items: flex-start; }
  .idn-city { height: 18px; padding: 0; font: 650 15px/18px var(--font); letter-spacing: -.015em; background: none !important; box-shadow: none !important; }
  /* one 48px target: the whole capsule opens the city menu (areas, the live switch, all cities) */
  .idn-city { position: static; }
  .idn-city::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .idn .logo { pointer-events: none; }
  .live { pointer-events: none; }
  .live { height: 14px; padding: 0; gap: 6px; font: 510 11px/14px var(--font); background: none !important; box-shadow: none !important; }
  .live .dot { width: 6px; height: 6px; }
  .srch { left: auto; right: var(--right); top: auto; bottom: calc(var(--bottom) + var(--consent-space)); width: 56px; height: 56px; padding: 0; justify-content: center; transform: none; }
  .srch :is(.srch-l, .k) { display: none; }
  .tools { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .tools > :not(#displayBtn) { display: none; }
  .tools #displayBtn { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; background: none; box-shadow: none; }
  .tools #displayBtn > span { display: none; }
  .sponsor-cta { right: calc(var(--right) + 56px); height: 48px; padding: 0 14px; font-size: 13.5px; }
  .sponsor-cta .sp-cta-price { display: none; }
  .sponsor-cta.icon { width: 48px; padding: 0; }
  .navpair { position: absolute; z-index: 6; right: var(--right); bottom: calc(var(--bottom) + var(--consent-space) + 76px); width: 48px; padding: 4px 0; border-radius: var(--cap);
    display: flex; flex-direction: column; align-items: center; box-sizing: border-box; }
  .navpair { flex-direction: column-reverse; }   /* recentre above fit, as in the C-6 frame */
  .navpair .ib { width: 44px; height: 44px; }
  .navpair .ib .ic { width: 19px; height: 19px; }
  .srch > .ic { width: 21px; height: 21px; }
  .tools #displayBtn > .ic { width: 20px; height: 20px; }
  .navpair .hl { display: block; width: 24px; height: 1px; background: var(--line2); }
  .dock { left: var(--left); right: calc(var(--right) + 64px); bottom: calc(var(--bottom) + var(--consent-space)); transform: none; height: 56px; padding: 4px; }
  .dock button { flex: 1; flex-direction: column; justify-content: center; gap: 2px; height: 48px; padding: 0; font: 590 10px/13px var(--font); letter-spacing: 0; min-width: 0; }
  .dock button > .ic { width: 20px; height: 20px; }
  .dock button > .lg { display: none; }
  .dock button > .sm { display: inline; }
  .dock em { display: none; }
  .dock .sm em { display: inline; font: 400 10px/13px var(--font); }
  /* the overview map: a small square card bottom-left over the tab bar, as the old chrome had it (owner 2026-11-10: "there
     is no mini map"); closed, a round map button. The credits sit at the foot of the Display popover, not over the map. */
  .ov { left: var(--left); bottom: calc(var(--bottom) + var(--consent-space) + 64px); width: 120px; padding: 4px; border-radius: 18px; }
  .ov-map { height: 112px; border-radius: 14px; }
  .ov-chip { left: 4px; top: auto; bottom: 4px; max-width: calc(100% - 8px); height: 18px; padding: 0 6px; box-sizing: border-box; font: 590 10px/18px var(--font);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ov-x { width: 24px; height: 24px; }
  /* (a 44 pt target that stays inside the card's rounded clip: it grows left and down, not past the card's edge) */
  .ov-x::after { content: ""; position: absolute; inset: -4px -4px -16px -16px; }
  .ov.closed { width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
  .ov.data-on { display: none; }   /* the neighbourhood data view on: no overview map (owner 2026-11-19); kept as it was */
  .ov.closed .ov-x { width: 48px; height: 48px; background: none !important; }
  .ov.closed .ov-x::after { content: none; }
  .map .ov.closed .ov-x svg.ic:first-child { display: none; }
  .map .ov.closed .ov-x svg.ic-map { display: block; }
  .credits.m { margin: 8px 0 0; padding: 8px 16px 4px; border-top: 1px solid var(--line); font: 400 12px/16px var(--font); color: var(--t3); white-space: normal; }
  .disp { right: var(--right); top: calc(var(--top) + 56px); width: min(288px, calc(100% - 24px)); }
  :is(.disp, .citym, .pal-list) .row { height: 44px; }
  .seg button { height: 44px; }
  .ib.sm { position: relative; }
  .ib.sm::after { content: ""; position: absolute; inset: -8px; }
  .credits.m a { display: inline-block; padding: 15px 8px; margin: -15px -8px; }
  /* the city menu: wide enough for "Empower Field at Mile High", and it ends above the foot of the screen, its list
     scrolling (it ran off the bottom: phone pass 2026-11-18) */
  .citym { top: calc(var(--top) + 56px); width: min(320px, calc(100% - var(--left) - var(--right)));
    max-height: calc(100% - var(--top) - 56px - var(--bottom) - var(--consent-space)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .pal-field input { height: 48px; }
  /* no Esc key on a phone, and the list covers the map to the foot of the screen: a Cancel button in place of the hint */
  .pal-field > .k { display: none; }
  .pal-cancel { display: block; flex: none; height: 44px; margin-right: -6px; padding: 0 6px; font: 510 17px/24px var(--font); color: var(--t1); }
  .pal { top: var(--top); width: calc(100% - 16px); max-height: calc(100% - var(--top) - 16px - var(--under, 0px)); }
  .pal-foot .nav-hint { display: none; }
  #tripski-status { bottom: calc(var(--bottom) + var(--consent-space) + 64px); }
  body:has(.map) .consent { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; }
  body:has(.consent) :is(.dock, .srch, .navpair, #tripski-status, #tripski-empty) { display: none; }
  .map.sheet-open :is(.dock, .srch, .navpair, #mini, #tripski-status) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .g, .sw, .sw::after, .idn-city .ic { transition: none; }
  .loading-spinner { animation: none; }
}
