/* (FINAL-FIX2 perf) 7 selector lists in this file whose last compound was a bare :is(...) are written out one selector per alternative, so Blink buckets each by its own class / id / tag instead of testing every element on every style recalc. Each alternative is padded with :not(#zz-) / :not(.zz-) / :not(zz-) so its specificity is what the :is() gave (the most specific alternative); one that cannot be padded down is a class / type more specific only where no rule anywhere could tell the difference (checked against every stylesheet and the DOM), otherwise it stays in a :is() with a never-matching alternative of the full specificity. Same elements, same cascade. */
/* City, Area, and the micro-market on the same map.
   The card is one title, one sentence, then the facts.
   Landscape: upper right, ending above the sun dial.
   Portrait: a bottom sheet. Its height is a bottom inset (see js/ux/map.js), never a right gutter. */

body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .world {
  will-change: auto;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .world.ux-fly {
  will-change: transform;
}

/* Landscape: one card, upper right, clear of the dial and the context strip. */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info {
  left: auto;
  right: calc(var(--pad) + 1rem + var(--safe-r));
  top: calc(var(--pad) + 5.2rem + var(--safe-t));
  bottom: auto;
  width: min(26rem, 28vw);
  max-height: calc(100dvh - var(--pad) * 2 - 5.2rem - 12rem - var(--safe-t) - var(--safe-b));   /* ends above the sun dial */
  padding: 1.25rem 1.35rem 1.15rem;
  -webkit-mask-image: none;
  mask-image: none;
  overflow-x: hidden;
  overflow-y: auto;
  transition: --lg-wash var(--dur-quick) var(--ease-out);   /* opacity and transform belong to GSAP (levels.card/closeCard, ux/map.js morph): a CSS transition on them lagged the open and popped the close (17 October) */
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info.pl-wide {
  width: min(36rem, 42vw);
}
/* A fade at the bottom edge only when the card really scrolls (js/ux/map.js sets .ux-scroll), and only while there is more below (.ux-more):
   a deeper fade reads as "keep going" (a short one read as a cut-off line, E2E M9); at the end it lifts so the last lines are whole */
body #lv-map .info.ux-scroll {
  -webkit-mask-image: none;
  mask-image: none;
  padding-bottom: 2.4rem;
}
body #lv-map .info.ux-scroll.ux-more {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 3.2rem), rgba(0, 0, 0, .25) calc(100% - .8rem), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 3.2rem), rgba(0, 0, 0, .25) calc(100% - .8rem), transparent);
}

body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info.on {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
/* DOM order is the reading order: no `order` shuffling, no hidden photos, no hidden paragraphs. */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > .im {
  flex: none;
  height: 8.5rem;
  margin: 0 0 .35rem;
  border-radius: 1rem;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .k {
  margin: 0;
  font-size: max(.78rem, 13px);
  letter-spacing: .14em;
}
/* later kickers sit right above their own block */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > :not(.x):not(.im) + .k {
  margin-top: .7rem;
}
/* only what sits beside the close button needs to stay clear of it */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > .x + .k,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > .x + .k + h3,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > .x + h3 {
  padding-right: 2.8rem;
}
/* a kicker with its "Sample data" badge stays on one line; at narrow widths the badge wraps below the kicker instead of running into the close button */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .k:has(.sample) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  font-size: max(.74rem, 12px);
  letter-spacing: .08em;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .k .sample {
  flex: none;
  margin-left: 0;
  letter-spacing: .06em;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  line-height: 1.12;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > p:not(.k) {
  margin: 0;
  font-size: max(1rem, 16px);
  line-height: 1.45;
  color: var(--ink-2);
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > p:not(.k):is(.note, .pl-note, .tl-foot) {
  font-size: max(.8rem, 13px);
  color: var(--muted);
}
/* only the long description under a title or a fact row is clamped */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > :is(h3, .meta) + p:not(.k):not(.note):not(.pl-note):not(.tl-foot) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .spark,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .mk,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .pl-tbl,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .tl-grid {
  margin-top: .2rem;
  margin-bottom: 0;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .note,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .pl-note,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .tl-foot {
  margin: .3rem 0 0;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .x {
  width: var(--tap-min, 44px);
  height: var(--tap-min, 44px);
  min-width: var(--tap-min, 44px);
  min-height: var(--tap-min, 44px);
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .pts li {
  font-size: max(.95rem, 15px);
  line-height: 1.4;
}

/* Commute, schools, hospitals: the two facts read at a glance. */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta {
  gap: .6rem;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta div {
  min-width: 0;
  min-height: 44px;
  display: grid;
  align-content: center;
  padding: .7rem .85rem;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta b {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta span {
  margin-top: .28rem;
  font-size: max(.8rem, 13px);
  letter-spacing: .08em;
  color: var(--ink-2);
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .mk b,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .spark b,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .tl-grid b {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .mk span,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .mk small,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .spark span {
  font-size: max(.8rem, 13px);
}
body:is([data-level="area"], [data-level="market"]) #lv-map .info .pl-peak .seg button,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .nav .pill {
  min-height: 44px;
  font-size: max(.82rem, 13px);
}

/* Context strip stays left of the sun dial, and scrolls inside that width.
   The :has() clause outranks the shared layout rule that only sets `right`. */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ui:has(> #orb.has-sun) #ctx {
  right: calc(var(--pad) + 16.5rem + var(--safe-r));
  overflow: hidden;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .strip {
  max-width: 100%;
  min-width: 0;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .lcard {
  min-height: 44px;
  max-width: 22rem;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .lcard b {
  font-size: max(.95rem, 15px);
  color: inherit;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .lcard small {
  font-size: max(.8rem, 13px);
  color: var(--ink-2);
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .lcard.on small {
  color: var(--lg-sel-fg);
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .pchip {
  min-height: 44px;
}
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .pchip span,
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx .pchip small {
  font-size: max(.84rem, 13px);
}

/* Portrait: bottom sheet. Stop before the sun dial, but never narrower than 16rem,
   so a phone still has a readable sheet and fit can use the sheet's height. */
@media (orientation: portrait) {
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info,
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info.pl-wide,
  body.has-chap:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info,
  body.has-chap:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info.pl-wide {
    left: var(--chrome-left);
    /* Clear the sun-dial arc (it reaches about 11.5rem in from the right). A wider sheet slides under the dial. */
    right: calc(var(--pad) + 11.5rem + var(--safe-r));
    top: auto;
    bottom: calc(var(--pad) + var(--safe-b));
    width: auto;
    max-height: min(54dvh, 40rem);   /* the sheet fits its content; only a card taller than this scrolls (with the fade) */
    padding: 1.15rem 1.25rem 1.05rem;
  }
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta {
    flex-wrap: wrap;
  }
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta div {
    flex: 1 1 7.5rem;
  }
  body.cine:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info.on {
    bottom: calc(8dvh + .4rem + var(--safe-b));
  }
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx,
  body.has-chap:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx {
    left: var(--chrome-left);
    right: calc(var(--pad) + 16.5rem + var(--safe-r));
    bottom: calc(var(--pad) + .7rem + var(--safe-b));
    z-index: 8;
  }
  html.ux-sheet body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx,
  html.ux-sheet body.has-chap:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx {
    bottom: calc(var(--ux-sheet, 0px) + .7rem);
  }
  html.ux-sheet body.has-chap:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"], [data-level="site"]) #chap.on {
    bottom: calc(var(--ux-sheet, 0px) + .8rem);
  }
  body.cine:is([data-level="city"], [data-level="area"], [data-level="market"]) #caption {
    left: var(--chrome-left);
    right: calc(var(--pad) + 1rem + var(--safe-r));
    bottom: calc(var(--ux-sheet, 32dvh) + 1rem);
    max-width: none;
  }
  body.cine:is([data-level="city"], [data-level="area"], [data-level="market"]) .cap-t {
    font-size: clamp(1.8rem, 6.5vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info,
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #ctx,
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .world {
    transition: none;
    animation: none;
  }
}

/* =====================================================================
   Liquid Glass on the map levels (Phase 7a). The material is css/ux/glass.css (tokens: css/tokens.css).
   Inside a glass surface the paper tokens are re-pointed at the glass tokens, so every existing card, strip and table rule reads correctly on the dark glass
   and on the Day (light) glass without a rule per mode: --lg-* swap on <body> (js/ux/map.js toggles body.glass-day) and interpolate over 700ms.
   ===================================================================== */
#lv-map .info, #chap .rail-pill, #chap .rail-list, #ctx .strip, #lv-map .tl-bar {
  --ink: var(--lg-fg); --ink-2: var(--lg-fg2); --muted: var(--lg-fg3); --paper: var(--lg-field); --paper-2: var(--lg-field); --card: var(--lg-field-hi); --line: var(--lg-line); --bronze: var(--lg-fg2);
  --rd-ink: var(--lg-fg); --rd-ink-soft: var(--lg-fg2); --rd-muted-ink: var(--lg-fg3); --rd-bronze-ink: var(--lg-fg3);
  --text-hi: var(--lg-fg); --text-mid: var(--lg-fg2); --text-lo: var(--lg-fg3);
  color: var(--lg-fg);
}
/* a card is a continuous large radius; contain keeps its paint from touching the map */
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info { border-radius: var(--r-card); contain: layout paint; }
/* the autoplay capsule: a 44px box in the top row (js/app.js placeChapters sets left/top beside Back) */
body.has-chap:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"], [data-level="site"]) #chap.on {
  position: fixed; z-index: 8; width: auto; height: var(--ch-h, 44px); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  max-height: none; overflow: visible; display: block;
}
body #chap.none { display: none !important; }
body.cine #chap, body.cine #ui > #chap.on { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---- inside the card ---- */
#lv-map .info .x { background: var(--lg-field-hi); color: var(--lg-fg); border: 0; box-shadow: none; }
#lv-map .info .k, #lv-map .info .rail-k { color: var(--lg-fg3); }
#lv-map .info h3 { font-weight: 400; letter-spacing: -.022em; line-height: 1.1; text-shadow: none; }
#lv-map .info .sample, #chap .sample { color: var(--lg-fg2); border: 0; background: var(--lg-field-hi); font: 600 max(.62rem, 11px)/1 var(--sans); letter-spacing: .06em; box-shadow: none; }
#lv-map .info .pl-pnote strong { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lg-line); text-underline-offset: .2em; }
#lv-map .info .spk-dot { border-color: var(--lg-fg); background: var(--lg-fg); }
#lv-map .info #spk-g stop { stop-color: #fff; }
body.glass-day #lv-map .info #spk-g stop { stop-color: #16161b; }
#lv-map .info :is(.meta div, .mk div, .tl-grid div) { background: var(--lg-field); border: 0; border-radius: var(--r-ctl); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
#lv-map .info :is(.meta b, .mk b, .spark b, .tl-grid b) { font-family: var(--num); font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#lv-map .info .meta span, #lv-map .info .mk span, #lv-map .info .k { letter-spacing: .08em; }
#lv-map .info .pl-tbl .c.me { background: var(--lg-sel); color: var(--lg-sel-fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); border-radius: 14px 14px 0 0; }
#lv-map .info .pl-tbl .hc i { background: var(--lg-field-hi); color: var(--lg-fg); box-shadow: none; font: 600 max(12px, .85rem)/1 var(--sans); }
#lv-map .info .pl-tbl .hc.me i { background: var(--lg-prom); color: var(--lg-prom-fg); box-shadow: inset 0 1px 0 #fff; }
#lv-map .info .pl-tbl .hc.on i { outline: 2px solid var(--lg-fg); }

/* ---- the hero-image story card (City growth stories, Area landmarks, Century trust and numbers) ----
   A rounded photo bleeds to the card's edges, the kicker and the BIG title sit on its scrim, a white accent line, a status capsule top-left. No backdrop-filter on the photo.
   Stories without an image (the micro-market ones) keep the plain header with a larger title and proof figure. */
#lv-map .info { --info-px: 1.35rem; }
@media (orientation: portrait) { #lv-map .info { --info-px: 1.25rem; } }
body #lv-map .info.has-hi { padding-top: 0; padding-left: var(--info-px); padding-right: var(--info-px); }
#lv-map .info > .hi { position: relative; display: flex; flex-direction: column; justify-content: flex-end; flex: none; margin: 0 calc(var(--info-px) * -1) .35rem; min-height: clamp(13rem, 21vh, 17rem); overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; background: #1c1928; isolation: isolate; }
#lv-map .info .hi img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform-origin: 50% 40%; transition: opacity var(--dur-base) var(--ease-out); }
#lv-map .info .hi img.on { opacity: 1; animation: hi-kb 9.6s cubic-bezier(.22, 1, .36, 1) 1 both; }   /* a slow push-in, once (not a loop): transform only */
@keyframes hi-kb { from { transform: scale(1); } to { transform: scale(1.06); } }
body.is-moving #lv-map .info .hi img, body.clean #lv-map .info .hi img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { #lv-map .info .hi img.on { animation: none; } }
#lv-map .info .hi::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;   /* the scrim: a darker foot that melts into the glass below */
  background: linear-gradient(180deg, rgba(12, 10, 20, .36) 0%, rgba(12, 10, 20, 0) 22%, rgba(12, 10, 20, .4) 42%, rgba(16, 14, 26, .82) 64%, rgba(22, 19, 32, .94) 100%); }
#lv-map .info .hi::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; box-shadow: inset 1.2px 1.2px 0 rgba(255, 255, 255, .6), inset -1px 0 0 rgba(255, 255, 255, .1); }
#lv-map .info .hi-cap { position: relative; z-index: 2; padding: 3.4rem var(--info-px) 1.05rem; color: #fff; }
#lv-map .info .hi-cap .k { margin: 0 0 .35rem; padding-right: 0; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
#lv-map .info .hi-cap .sample { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .18); }
body #lv-map .info.has-hi .hi-cap h3 { margin: 0; padding: 0; font: 600 clamp(2rem, 2.5vw, 2.7rem)/1.05 var(--sans); letter-spacing: -.022em; color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, .5); }
#lv-map .info .hi-acc { display: block; width: 2.6rem; height: 3px; margin-top: .75rem; border-radius: 3px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .5); }
#lv-map .info .hi-tag { position: absolute; z-index: 3; top: .9rem; left: var(--info-px); padding: .34rem .8rem; border-radius: var(--r-pill); font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #16161b;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(238, 239, 245, .88)); box-shadow: inset 0 1px 0 #fff, 0 4px 12px -4px rgba(0, 0, 0, .45); }
#lv-map .info.has-hi > .x { z-index: 4; top: .8rem; right: .8rem; background: rgba(16, 14, 24, .42); color: #fff; }
/* Growth story cards fit without scrolling (14 October): when the screen is short the photo gives up height first, down to what its title needs
   (overflow: clip keeps its content-based minimum, which overflow: hidden would drop to 0). The card's cap above the dial is unchanged. */
#lv-map .info.gs.has-hi > .hi { flex: 0 1 clamp(11.5rem, 24vh, 20rem); min-height: auto; overflow: clip; }   /* its usual height (.gs > .hi below) is now where it starts */
@media (max-height: 900px) { #lv-map .info.gs.has-hi .hi-cap { padding-top: 2.9rem; } }   /* on a short screen the photo may come closer to its title (it keeps clear of the tag) */
@media (max-height: 740px) {   /* the shortest screens (1280 x 720): the pictogram and the gaps give a little too */
  body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info.gs.has-hi.on { gap: .25rem; }
  #lv-map .info.gs.has-hi .gs-viz svg { height: 2.7rem; }
}
/* Day only (14 October): the story card with a photo is a clean white card. The snapshot glass let the green satellite map show through it (and through the
   scroll fade at its foot), which read as a muddy card. Dusk and Night keep the glass. */
body.glass-day #lv-map .info.has-hi { background-color: #fff; background-image: linear-gradient(180deg, #fff 55%, #f5f5f8 100%);
  box-shadow: 0 0 0 1px rgba(22, 22, 27, .08), 0 26px 60px -24px rgba(20, 24, 44, .45), 0 8px 20px -12px rgba(20, 24, 44, .22); }
body.glass-day #lv-map .info.has-hi.ux-scroll { -webkit-mask-image: none; mask-image: none; }
body.glass-day #lv-map .info.has-hi .hi::before { background: linear-gradient(180deg, rgba(12, 10, 20, .34) 0%, rgba(12, 10, 20, 0) 24%, rgba(12, 10, 20, .18) 46%, rgba(12, 10, 20, .62) 78%, rgba(12, 10, 20, .74) 100%); }
body.glass-day #lv-map .info.has-hi .hi::after { box-shadow: none; }
body.glass-day #lv-map .info.has-hi .gs-viz, body.glass-day #lv-map .info.has-hi .gs-t { background-color: #f3f3f6; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .06); }
body.glass-day #lv-map .info.has-hi .nav .pill { background: #fff; color: #16161b; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .14), 0 2px 6px -3px rgba(20, 24, 44, .25); }
body #lv-map .info.has-hi > p.mm-line, body #lv-map .info.has-hi > p.gm-desc { margin: .55rem 0 .15rem; font: 400 max(1rem, 15.5px)/1.5 var(--sans); color: color-mix(in srgb, var(--lg-fg) 88%, transparent); display: block; -webkit-line-clamp: unset; overflow: visible; }
/* the wider "feature" layout: a bigger photo and title, so the story has the impact of the original slide. The camera inset and the label engine read the card's real rectangle. */
@media (orientation: landscape) {
  body:is([data-level="city"], [data-level="area"], [data-level="century"]) #lv-map .info.has-hi { width: min(32vw, 30rem); }
}
@media (min-width: 1500px) and (orientation: landscape) {
  body:is([data-level="city"], [data-level="area"], [data-level="century"]) #lv-map .info.has-hi { width: min(35vw, 44rem); }
  body #lv-map .info.has-hi .hi-cap h3 { font-size: clamp(2.4rem, 2.6vw, 3.2rem); }
  #lv-map .info > .hi { min-height: clamp(15rem, 27vh, 24rem); }
}
/* micro-market stories have no photo: a larger title and proof figure carry the header */
body #lv-map .info.mm:not(.has-hi) > h3 { font: 600 clamp(1.8rem, 2.3vw, 2.4rem)/1.08 var(--sans); letter-spacing: -.022em; }

/* ---- controls inside glass: plain fills (never a second blur), the selected one a bright glass blob ---- */
#lv-map .info .seg, #ctx .strip .seg { background: var(--lg-field); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .12); }
#lv-map .info .seg button, #ctx .strip .seg button { color: var(--lg-fg2); }
#lv-map .info .seg button.on, #ctx .strip .seg button.on { background: var(--lg-sel); color: var(--lg-sel-fg); box-shadow: var(--lg-sel-sh); }
.seg[data-glide] { position: relative; }
.seg[data-glide] > button.on, #lv-map .info .seg[data-glide] > button.on, #ctx .strip .seg[data-glide] > button.on { background: none; box-shadow: none; color: var(--lg-sel-fg); }
#lv-map .info .pill, #ctx .strip .pill { background: var(--lg-field); color: var(--lg-fg); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); font-weight: 600; letter-spacing: -.01em; }
#lv-map .info .pill.dark, #lv-map .info .pill.prom { background: var(--lg-prom); color: var(--lg-prom-fg); box-shadow: var(--lg-prom-sh); }
#lv-map .info .pill b, #ctx .strip .pill b { background: var(--lg-field-hi); color: inherit; }
#lv-map .info .pill.on, #ctx .strip .pill.on { background: var(--lg-sel); color: var(--lg-sel-fg); box-shadow: var(--lg-sel-sh); }
#lv-map .info .pill.on b, #ctx .strip .pill.on b { background: var(--lg-prom); color: var(--lg-prom-fg); }

/* ---- the context strip: chips whose selected state is a glass blob fading (opacity) and settling (transform) in under the label ---- */
#ctx .strip { border-radius: var(--r-pill); }
#ctx .strip > .pill, #ctx .strip > .lcard, #ctx .strip > .pchip { position: relative; isolation: isolate; background: var(--lg-field); color: var(--lg-fg); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
#ctx .strip > :is(.pill, .lcard, .pchip).on { background: var(--lg-field); color: var(--lg-sel-fg); box-shadow: none; }
#ctx .strip > .pill::before, #ctx .strip > .lcard::before, #ctx .strip > .pchip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-color: var(--lg-sel); background-image: var(--lg-sheen); box-shadow: var(--lg-sel-sh);
  opacity: 0; transform: scale(.92); transition: opacity var(--dur-quick) var(--ease-out), transform var(--dur-base) var(--ease-spring); }
#ctx .strip > :is(.pill, .lcard, .pchip).on::before { opacity: 1; transform: none; }
#ctx .strip > .legacy-strip .seg-glow, #ctx .legacy-strip .seg-glow { background-color: var(--lg-sel); background-image: var(--lg-sheen); box-shadow: var(--lg-sel-sh); }
#ctx .legacy-strip .pill, #ctx .legacy-strip .pill.on { background: transparent; box-shadow: none; }
#ctx .legacy-strip .pill::before { display: none; }
#ctx .legacy-strip .pill.on { color: var(--lg-sel-fg); }
/* (21 October) Century's track-record bar (Delivered · Building now · Coming next) sits at the left of the bottom row, under the title's left edge (#place, css/showroom.css):
   #ctx centred it in the room left of the orb and the next-level link, so it floated off-centre. Not during Play (cine), whose caption holds the bottom left */
body:not(.cine) #ui #ctx:has(> .legacy-strip) { left: calc(var(--pad) + 4.6rem); }
body:not(.cine) #ctx > .legacy-strip { margin-right: auto; }
@media (orientation: portrait) and (max-width: 600px) { body:not(.cine) #ui #ctx:has(> .legacy-strip) { left: calc(var(--pad) + var(--safe-l)); } }   /* the phone title's own left (css/ux/qa-fixes.css) */
#ctx .lcard small, #ctx .pchip small { color: var(--lg-fg3); } #ctx .lcard.on small, #ctx .pchip.on small { color: var(--lg-sel-fg); opacity: .8; }
#ctx .pchip.on span { color: var(--lg-sel-fg); }
#ctx .poi-strip .pchip i, #ctx .poi-strip .pkey i { box-shadow: 0 0 0 2px var(--lg-tint); }
#ctx .legacy-strip .strip-note, #ctx .strip .strip-note { border-left-color: var(--lg-line); color: var(--lg-fg3); }
#ctx .strip .strip-note { font: 500 max(.78rem, 12px)/1.2 var(--sans); }

/* the Then & now scrubber is the context strip of its lens */
#lv-map .tl-bar, #lv-map .tl-yr b { color: var(--lg-fg); }
#lv-map .tl-yr small, #lv-map .tl-labels b { color: var(--lg-fg3); }
#lv-map .tl-rail::before { background: var(--lg-line); }
#lv-map .tl-rail i { background: var(--lg-fg3); } #lv-map .tl-rail i.maj { background: var(--lg-fg2); }

/* ---- orb action ring: the map levels keep the same flat glass as everywhere (chrome.css) ---- */

/* =====================================================================
   Autoplay capsule (top row) and the story dock (bottom). The capsule is flat glass (css/ux/glass.css section 1): ring + "01/06" + Play.
   ===================================================================== */
#chap .rail-pill { display: flex; align-items: center; gap: .1rem; height: var(--ch-h, 44px); min-width: var(--ch-h, 44px); padding: 0 .3rem 0 0; border-radius: var(--r-pill); }
#chap .rail-btn { display: flex; align-items: center; gap: .5rem; height: 100%; padding: 0 .55rem 0 .55rem; border-radius: inherit; color: var(--lg-fg); position: relative; z-index: 1; }
#chap .rail-ico { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: none; }
#chap .rail-ico > svg:not(.rail-ring) { width: 14px; height: 14px; stroke-width: 2; }
#chap .rail-ring { position: absolute; inset: 0; width: 28px; height: 28px; transform: rotate(-90deg); fill: none; stroke-width: 2; }
#chap .rail-ring circle { stroke: var(--lg-fg); stroke-opacity: .2; fill: none; }
#chap .rail-ring .rail-arc { stroke-opacity: 1; stroke-linecap: round; stroke-dasharray: calc(var(--p, 0) * 1) 100; transition: stroke-dasharray var(--dur-base) var(--ease-out); }
#chap .rail-n { font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--lg-fg); }
#chap .chap-play { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; gap: .4rem; height: calc(var(--ch-h, 44px) - 10px); padding: 0 1rem 0 .85rem; border-radius: var(--r-pill); background: var(--lg-prom); color: var(--lg-prom-fg); box-shadow: var(--lg-prom-sh); font: 600 max(.9rem, 14px)/1 var(--sans); letter-spacing: -.01em; }
#chap .chap-play svg { width: .9rem; height: .9rem; fill: currentColor; stroke: none; }

/* the story dock: ONE slim glass pill (‹ current story ›) at the bottom left. Tapping the name opens the full list upward as a tidy grid; it folds again on a choice. */
#sdock { position: fixed; z-index: 8; display: none; left: auto; top: calc(var(--pad) + var(--safe-t)); right: 22rem; }
#sdock.on { display: block; }
body.cine #sdock, body.ring-open #sdock, body.clean #sdock { opacity: 0 !important; visibility: hidden; pointer-events: none; }
#sdock .sd-bar { display: flex; align-items: center; height: 36px; padding: 0; border-radius: var(--r-pill); width: max-content; background: rgba(18, 16, 24, .46); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--lg-line); color: var(--lg-fg); position: relative; z-index: 1; }
body.glass-day #sdock .sd-bar { background: rgba(255, 255, 255, .5); }
#sdock .sd-cur { display: flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .55rem 0 .7rem; border-radius: var(--r-pill); color: var(--lg-fg); font: 600 max(.8rem, 13px)/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
#sdock .sd-cur svg:first-child { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#sdock .sd-cur span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* the name lives in the expanded row; the closed pill is just the icon, the count and the chevron */
#sdock .sd-cur em { font: 500 12px/1 var(--sans); font-style: normal; opacity: .55; font-variant-numeric: tabular-nums; }
#sdock .sd-up { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transform: rotate(180deg); transition: transform var(--dur-base, 240ms) var(--ease-out, cubic-bezier(.22, 1, .36, 1)); }
#sdock.open .sd-up { transform: none; }
/* expanded: every story as a small pill, in one row that unfolds to the LEFT of the button along the top, scrolling if it needs more room than there is */
#sdock .sd-pop { position: absolute; right: calc(100% + .4rem); top: 0; height: 36px; display: flex; flex-wrap: nowrap; align-items: center; gap: .3rem; width: max-content; max-width: var(--sd-room, 30rem); padding: 0 .1rem; overflow-x: auto; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 .8rem, #000 calc(100% - .3rem), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 .8rem, #000 calc(100% - .3rem), transparent 100%);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(14px) scaleX(.96); transform-origin: 100% 50%; transition: opacity .2s var(--ease-out, cubic-bezier(.22, 1, .36, 1)), transform .24s var(--ease-out, cubic-bezier(.22, 1, .36, 1)), visibility 0s linear .24s; }
#sdock .sd-pop::-webkit-scrollbar { display: none; }
#sdock.open .sd-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
#sdock .sd-grp { flex: none; padding: 0 .25rem 0 .5rem; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--lg-fg); opacity: .55; white-space: nowrap; }
#sdock .sd-chip { flex: none; display: inline-flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .75rem 0 .6rem; border-radius: var(--r-pill); color: var(--lg-fg); background: rgba(18, 16, 24, .55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--lg-line); font: 500 max(.78rem, 12.5px)/1 var(--sans); white-space: nowrap; }
body.glass-day #sdock .sd-chip { background: rgba(255, 255, 255, .6); }
#sdock .sd-chip svg { width: .95rem; height: .95rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#sdock .sd-chip.on { background-color: var(--lg-sel); background-image: var(--lg-sheen); color: var(--lg-sel-fg); box-shadow: var(--lg-sel-sh); font-weight: 600; }
/* anything that used to sit on the bottom row lifts above the dock */
#sdock { --ink: var(--lg-fg); color: var(--lg-fg); }

/* ---- the next level: the ONE prominent capsule per screen, under the right thumb, left of the orb and its sun dial ---- */
#cta {
  position: fixed; z-index: 6; display: none; align-items: center; gap: .6rem; max-width: 17rem; min-height: 3.4rem; padding: 0 1.2rem 0 1.5rem; border-radius: var(--r-pill);
  right: calc(var(--pad) + 16.5rem + var(--safe-r)); bottom: calc(var(--pad) + 2.1rem + var(--safe-b));
  font: 600 var(--fs-ui)/1.2 var(--sans); font-size: max(1rem, 15px); letter-spacing: -.01em; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow) var(--ease-out);
}
#cta.on { display: inline-flex; }
#cta span { overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
#cta svg { width: 1.2rem; height: 1.2rem; stroke-width: 2.2; }
body.clean #ui > #cta.on { opacity: 1; visibility: visible; }
body.cine #ui > #cta, body.ring-open #ui > #cta, body:has(> #sheet.on) #ui > #cta { opacity: 0; visibility: hidden; pointer-events: none; }
body.cine #ui > #cta.on, body.ring-open #ui > #cta.on, body:has(> #sheet.on) #ui > #cta.on { opacity: 0; visibility: hidden; }
/* the strip stops before the pill */
@media (orientation: landscape) {
  body.has-cta:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #ctx,
  body.has-cta:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #ui:has(> #orb.has-sun) #ctx { right: calc(var(--pad) + 17.7rem + 17rem + var(--safe-r)); }
}
/* the rail is a pill now, not a column: the strip no longer starts to its right */
body.has-chap:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]):not(.cine) #ctx { left: var(--chrome-left); }
/* Then & now: the scrubber takes the bottom row, so the pill steps up over the dial (the lens card is short) */
body.tl-on #cta { right: calc(var(--pad) + 1rem + var(--safe-r)); bottom: calc(var(--pad) + 11.4rem + var(--safe-b)); }
/* portrait: the pill rides above the sheet, right-aligned over the dial */
@media (orientation: portrait) {
  #cta { right: calc(var(--pad) + 1rem + var(--safe-r)); bottom: max(calc(var(--pad) + 11.4rem + var(--safe-b)), calc(var(--ux-sheet, 0px) + 1rem)); }
}

/* ---- Present mode: a quiet stage ---- */
body.cine #ui > #alt, body.cine #ui > #orb, body.cine #sampleflag { opacity: 0; visibility: hidden; pointer-events: none; }
body.cine:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]):not(:has(> #sheet.on)) #caption::before {
  content: ""; position: fixed; left: 0; bottom: 0; z-index: -1; width: min(80vw, 96rem); height: 35vh; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--night-0) 75%, transparent), color-mix(in srgb, var(--night-0) 60%, transparent) 38%, color-mix(in srgb, var(--night-0) 26%, transparent) 72%, color-mix(in srgb, var(--night-0) 0%, transparent));
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
body.cine:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]):not(:has(> #sheet.on)) #caption.on::before { opacity: 1; }

/* ---- the film: a slightly black translucent layer between the map and everything drawn on it (dots, rings, labels), so the title and the points always read.
   It sits above the map canvas (z 0) and below the world of pins (z 2); the map and the dots stay fully visible through it. ---- */
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .mapview::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 5, 10, .42) 0, rgba(6, 5, 10, .12) 26%, rgba(6, 5, 10, 0) 44%), rgba(6, 5, 10, .26);
  opacity: 1; transition: opacity var(--dur-slow, 480ms) var(--ease-out, cubic-bezier(.22, 1, .36, 1));
}
body.glass-day:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .mapview::after {
  background: linear-gradient(180deg, rgba(6, 5, 10, .46) 0, rgba(6, 5, 10, .16) 28%, rgba(6, 5, 10, 0) 46%), rgba(6, 5, 10, .34);
}

/* ---- growth story card: a picture first (tall photo, one figure, a pictogram, two icon tiles, one line of why). No paragraphs. ---- */
#lv-map .info.gs > .hi { min-height: clamp(11.5rem, 24vh, 20rem); }
#lv-map .info.gs > .hi::before { background: linear-gradient(180deg, rgba(8, 7, 14, .1) 0, rgba(8, 7, 14, 0) 38%, rgba(8, 7, 14, .72) 100%); }
body #lv-map .info.gs.mm > .mm-fig { margin: .25rem 0 0; gap: .15rem; }
body #lv-map .info.gs.mm > .mm-fig b { font-size: max(2.6rem, 40px); }
body #lv-map .info.gs.mm > .mm-fig span { font-size: max(.9rem, 14px); color: var(--lg-fg2); }
.gs-viz { margin: .2rem 0 .1rem; padding: .55rem .7rem .45rem; border-radius: var(--r-ctl); background: var(--lg-field); color: var(--lg-fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.gs-viz svg { display: block; width: 100%; height: 3.6rem; overflow: visible; }
.gs-viz p { display: flex; justify-content: space-between; gap: .6rem; margin: .3rem 0 0; font: 600 max(.74rem, 12px)/1.1 var(--sans); letter-spacing: .02em; color: var(--lg-fg2); }
.gs-viz.cap p { justify-content: center; text-transform: uppercase; letter-spacing: .1em; }
.gs-viz .gs-b { fill: var(--lg-fg); fill-opacity: .32; animation: gs-rise .56s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) both; animation-delay: var(--d, 0ms); transform-origin: 50% 100%; transform-box: fill-box; }
.gs-viz .gs-b:last-of-type { fill-opacity: .9; }
.gs-viz .gs-line { fill: none; stroke: var(--lg-fg); stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.gs-viz .gs-p { fill: var(--lg-fg); fill-opacity: .3; } .gs-viz .gs-p.on { fill-opacity: .95; }
.gs-viz .gs-pl { fill: var(--lg-fg); fill-opacity: .16; animation: gs-fade .4s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); } .gs-viz .gs-pl.on { fill-opacity: .7; }
.gs-viz .gs-rd { fill: var(--lg-fg); fill-opacity: .22; }
.gs-viz .gs-ln { fill: none; stroke: var(--lg-fg); stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 7 6; stroke-linecap: round; }
.gs-viz .gs-ln.c { stroke-opacity: .95; stroke-dasharray: none; stroke-width: 2.4; }
.gs-viz .gs-rt { fill: none; stroke: var(--lg-fg); stroke-opacity: .35; stroke-width: 7; stroke-linecap: round; }
.gs-viz .gs-rt.d { stroke-opacity: .95; stroke-width: 1.8; stroke-dasharray: 5 6; animation: gs-dash 1.6s linear infinite; }
.gs-viz .gs-n { fill: var(--lg-fg); stroke: rgba(10, 9, 16, .55); stroke-width: 3; } .gs-viz .gs-n.e { fill: none; stroke: var(--lg-fg); stroke-width: 3; }
.gs-viz .gs-car { fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .9)); }
@keyframes gs-rise { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gs-fade { from { opacity: 0; } }
@keyframes gs-dash { to { stroke-dashoffset: -22; } }
.gs-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .1rem 0; }
.gs-tiles.n1 { grid-template-columns: minmax(0, 1fr); }
.gs-t { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .55rem .75rem .55rem .6rem; border-radius: var(--r-ctl); background: var(--lg-field); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); color: var(--lg-fg); }
.gs-t > svg, .gs-t > .gs-ic { grid-row: 1 / 3; }
.gs-t b { font: 500 max(1.15rem, 17px)/1.1 var(--num); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-t span { font: 600 max(.74rem, 12px)/1.2 var(--sans); color: var(--lg-fg2); }
.gs-cmp { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--lg-fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gs-cmp circle:first-child { stroke-opacity: .4; } .gs-cmp .tk { stroke-opacity: .5; } .gs-cmp .ar { fill: var(--lg-fg); } .gs-cmp .dot { fill: var(--lg-fg); stroke: none; }
.gs-ic { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; background: var(--lg-field-hi); color: var(--lg-fg); }
.gs-ic svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gs-why { display: flex; align-items: center; gap: .7rem; margin: .1rem 0 0; padding: .1rem .2rem; font: 500 max(.95rem, 15px)/1.3 var(--sans); color: var(--lg-fg); }
.gs-why .gs-ic { width: 2.1rem; height: 2.1rem; }
@media (prefers-reduced-motion: reduce) { .gs-viz * { animation: none !important; } }

/* ---- the next-level link: no capsule. Plain text and an arrow on the orb's row, just left of the sun dial, so it reads as "next" beside the control cluster. ---- */
body #cta {
  right: calc(var(--pad) + 12.4rem + var(--safe-r)); bottom: calc(var(--pad) + 3.5rem + var(--safe-b)); min-height: 2.4rem; padding: 0 .2rem 0 .4rem; gap: .45rem; border-radius: 0;
  background: none; background-image: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; opacity: .92;
  font-size: max(.95rem, 14.5px); font-weight: 500; text-shadow: 0 1px 10px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5);
}
body.glass-day #cta { background: none; box-shadow: none; }
body #cta::before, body #cta::after { display: none; }
body #cta svg { width: 1rem; height: 1rem; stroke-width: 2.2; opacity: .9; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .7)); transition: transform var(--dur-base, 240ms) var(--ease-out, cubic-bezier(.22, 1, .36, 1)); }
body #cta:hover svg { transform: translateX(3px); }
body #cta:active { opacity: .6; background: none; }
body.tl-on #cta { right: calc(var(--pad) + 12.4rem + var(--safe-r)); bottom: calc(var(--pad) + 3.5rem + var(--safe-b)); }
body:has(> #ui > #orb > .sun.drag) #cta { opacity: 0; pointer-events: none; }
@media (orientation: landscape) {
  body.has-cta:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #ctx,
  body.has-cta:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #ui:has(> #orb.has-sun) #ctx { right: calc(var(--pad) + 12.4rem + 11rem + var(--safe-r)); }
}

/* while one place hands over to another, the title, capsule, stories pill, strip and next link step aside, so no level ever wears the other's controls */
/* the whole interface steps aside for a hand-over and returns when the new place is ready (ui-in); on a map-to-map move only the place-specific parts do, until the camera is most of the way there */
body.swapping #ui > :where([id]):not(#mbar), body.swapping .gm-flt { opacity: 0 !important; pointer-events: none !important; transition: opacity .18s var(--ease-out) !important; }
/* (18 October) the level slider keeps its glide while it fades: the rule above dropped its transform transition, so the strip jumped 44px in one frame at the start of a hand-over. A drag or a glide still moves it bare (css/ux/motion.css) */
body.swapping #ui > #alt:not(.drag):not(.glide) { transition: opacity .18s var(--ease-out), transform var(--sl-move) var(--ease-out), translate var(--sl-move) var(--ease-out) !important; }
body.navmove #place, body.navmove #chap, body.navmove #sdock, body.navmove #ctx, body.navmove #cta, body.navmove :is(.gm-flt, #zz-) { opacity: 0 !important; pointer-events: none !important; transition: opacity .18s var(--ease-out) !important; }
body.swap-in #ui > :where([id]):not(#mbar), body.swap-in .gm-flt { animation: ui-in .48s var(--ease-out) both; }
@keyframes ui-in { from { opacity: 0; } }
body #place, body #chap, body #sdock, body #ctx, body #cta, body #tally { transition-property: opacity, visibility, transform; }

/* the wipe card: cream, the next place's name in thin serif, a hairline growing in above it (js/app.js swap) */
#wipe { position: absolute; inset: 0; display: none; pointer-events: none; background: #ece5d6; will-change: transform; }
#wipe .wp-t { position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; font: 300 clamp(2.6rem, 6vw, 5.2rem)/1 "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; letter-spacing: .02em; color: rgba(60, 54, 44, .72); }
#wipe .wp-line { position: absolute; left: 0; top: calc(50% - 2.4rem); width: min(40vw, 34rem); height: 1px; background: rgba(60, 54, 44, .35); transform-origin: 0 50%; }

/* ---- map polish from the audit ---- */
/* an empty strip is not drawn (it arrived 2.5s before its chips) */
#ctx .strip:not(:has(*)) { display: none; }
/* the stories pill shows no counter of its own: the capsule beside it already counts */
#sdock .sd-cur em { display: none; }
/* Day: the film is a whisper (the imagery is bright); only the top, under the title, keeps a soft shade */
body.glass-day:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .mapview::after {
  background: linear-gradient(180deg, rgba(6, 5, 10, .34) 0, rgba(6, 5, 10, .1) 24%, rgba(6, 5, 10, 0) 42%), rgba(6, 5, 10, .08);
}
/* Then & now owns the bottom row: the next-level link steps up above the timeline bar */
body.tl-on #cta { bottom: calc(var(--pad) + 6.8rem + var(--safe-b)); right: calc(var(--pad) + 1rem + var(--safe-r)); }
/* portrait: the link rides above the sheet, right aligned, never on the card text or behind the strip */
@media (orientation: portrait) {
  body #cta { right: calc(var(--pad) + 1rem + var(--safe-r)); bottom: max(calc(var(--pad) + 11.6rem + var(--safe-b)), calc(var(--ux-sheet, 0px) + 1rem)); }
  body.tl-on #cta { bottom: max(calc(var(--pad) + 12.4rem + var(--safe-b)), calc(var(--ux-sheet, 0px) + 1rem)); }
}

/* Area -> Site: the map holds still; Mirai blooms (rings), then the site rises in. The dark vignette that dimmed the screen is gone (17 October) */
#lv-map .arr-ring { position: absolute; width: 9rem; height: 9rem; margin: -4.5rem 0 0 -4.5rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 2.4rem rgba(255, 255, 255, .35); pointer-events: none; z-index: 7; }
