/* (FINAL-FIX2 perf) 24 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. */
/* The motion pass, October 2026 (_audit/mirai-motion-playbook.html). Loaded last, after qa-fixes.css.
   Rules of the house (css/tokens.css): transform and opacity only, one live backdrop-filter, one loop on screen at a time,
   and one owner per property: nothing here adds a CSS transition to a property GSAP tweens (#ctx, #chap, #sdock, #cta, the #place lines). */

/* ---------- M01 · the chrome keeps its own transitions ----------
   chrome.css's idle rule (body #ui > :not(#mbar), 2-0-1) replaced every transition on the chrome with opacity + visibility, so the altimeter's
   slide, Back's press and the guest chip's hover snapped. These restore them on the pieces CSS owns, at the same weight, loaded later. */
body #ui > #alt { transition: opacity 200ms var(--ease-out), visibility 200ms var(--ease-out), transform var(--sl-move) var(--ease-out), translate var(--sl-move) var(--ease-out); }
body #ui > #alt:is(.drag, .glide) { transition: opacity 200ms var(--ease-out), visibility 200ms var(--ease-out); }
body #ui > #back, body #ui > #guest { transition: opacity 200ms var(--ease-out), visibility 200ms var(--ease-out), transform var(--dur-press) var(--ease-out), scale var(--dur-press) var(--ease-out),
  filter var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out); }
body #ui > #place, body #ui > #tally { transition: opacity 200ms var(--ease-out), visibility 200ms var(--ease-out), transform 240ms var(--ease-out); }
/* idle: the 600ms staggered fade stays, the movement keeps its own pace */
body.clean #ui > #alt { transition: opacity 480ms cubic-bezier(.22, 1, .36, 1) var(--wd, 0ms), visibility 480ms cubic-bezier(.22, 1, .36, 1) var(--wd, 0ms), transform var(--sl-move) var(--ease-out), translate var(--sl-move) var(--ease-out); }
body.clean #ui > #back, body.clean #ui > #guest, body.clean #ui > #place, body.clean #ui > #tally { transition: opacity 480ms cubic-bezier(.22, 1, .36, 1) var(--wd, 0ms), visibility 480ms cubic-bezier(.22, 1, .36, 1) var(--wd, 0ms), transform 240ms var(--ease-out), scale var(--dur-press) var(--ease-out); }
/* a press you can feel on the two buttons a presenter taps most */
body #ui > #back:active, body #ui > #guest:active { scale: .96; }

/* ---------- M02 · a map-to-map move brings back only what it hid (js/app.js followCamera sets nav-in) ---------- */
body.nav-in #place, body.nav-in #chap, body.nav-in #sdock, body.nav-in #ctx, body.nav-in #cta, body.nav-in .gm-flt { animation: ui-in .48s var(--ease-out) both; }

/* ---------- M03 · the caption leaves as gently as it arrives ----------
   hideCaption fades the lines over .45s, but #caption:not(.on) hid the box on the same frame, so the fade was never seen. The box now waits for its lines. */
#caption { transition: opacity .36s var(--ease-out), visibility 0s linear .4s; }
#caption.on { transition: opacity .24s var(--ease-out), visibility 0s linear 0s; }
#caption:not(.on) { opacity: 0; }

/* ---------- M04 · leader lines draw out from the dot and retract into it ---------- */
#lv-map .lbl-lead { clip-path: inset(-2px 100% -2px -2px); transition: opacity .16s var(--ease-out), clip-path .256s var(--ease-out); }
#lv-map .lbl-lead.on { clip-path: inset(-2px -2px -2px -2px); transition: opacity .12s var(--ease-out), clip-path .288s var(--ease-out) .04s; }

/* ---------- M05 · F31, eased: on Area the Mirai badge shrinks by scale (it used to jump between two sizes) ----------
   The button keeps its full size and stops catching taps; the plate itself (scaled, so its hit area shrinks with it) takes them. */
body[data-level="area"] #lv-map .hero.hg { margin: -1.85rem 0 0 -3.3rem; width: 6.6rem; height: 3.7rem; pointer-events: none; }
body[data-level="area"] #lv-map .hg-ground { width: 6.1rem; height: 1.3rem; }
body[data-level="area"] #lv-map .hg-med { border-radius: .8rem; padding: .32rem .45rem .3rem; pointer-events: auto; }
#lv-map .hero.hg > .hg-med, #lv-map .hero.hg > .hg-ground, #lv-map .hero.hg::before { transition: scale var(--dur-base) var(--ease-out), transform var(--dur-press) var(--ease-out); }
#lv-map .hero.hg > .hg-ground { transform-origin: 50% -.52rem; }   /* the ground shrinks toward the badge's centre, so it stays under the plate */
body[data-level="area"] #lv-map .hero.hg > .hg-med, body[data-level="area"] #lv-map .hero.hg > .hg-ground, body[data-level="area"] #lv-map .hero.hg::before { scale: .7; }

/* ---------- M06 · the Mirai beacon: one slow ripple on the ground under the badge, "you are here" ----------
   The one ambient loop on the map. It holds still while the camera moves or a hand-over runs, and steps aside while a place is selected (its route spark is the loop then). */
#lv-map .hero.hg::before { content: ""; position: absolute; left: 50%; top: 78%; width: 3.4rem; height: 1.2rem; margin: -.6rem 0 0 -1.7rem; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, .7); box-sizing: border-box; opacity: 0; animation: mx-beacon 3.6s cubic-bezier(.22, 1, .36, 1) 1.4s infinite; }
#lv-map:not(.dark) .hero.hg::before { border-color: rgba(22, 22, 27, .4); }
@keyframes mx-beacon { 0% { opacity: .85; transform: scale(.45); } 60%, 100% { opacity: 0; transform: scale(2.3); } }
body:is(.is-moving, .swapping) #lv-map .hero.hg::before { animation-play-state: paused; }
#lv-map.has-sel .hero.hg::before, body.cine #lv-map .hero.hg::before { animation: none; opacity: 0; }

/* ---------- M07 · F36, eased: a dimmed project's name fades out, then hides (it used to blink off) ---------- */
#lv-map .pj span, #lv-map.legacy .pin span { transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear 0s; }
#lv-map .pj.dim span, #lv-map.legacy .pin.dim span { opacity: 0; transition: opacity .24s var(--ease-out), visibility 0s linear .24s; }

/* ---------- M08 · F32, both ways: a marker under the title fades back up when the title moves off it (the transition only ran one way) ---------- */
#lv-map .bb { transition: filter .2s var(--ease-out); }

/* ---------- M09 · the chosen place grows by scale, on a spring (it changed size on the frame, which also moved its icon) ---------- */
#lv-map .gm-dot:not(.zz-), #lv-map :is(.pj .pj-m) { transition: scale .304s var(--ease-spring), transform var(--dur-press) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out),
  background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out); }   /* the scale also carries the constellation's dot-to-pin morph (css/ux/area.css section 12) */
#lv-map :is(.gm-dot, .pj-m) svg { transition: opacity var(--dur-quick) var(--ease-out); }
#lv-map :is(.gm.on .gm-dot, .pj.on .pj-m) { scale: var(--pin-sel); }   /* (17 October) 1.12; the size and place are the disc's own (area.css section 10) */
#lv-map .gm.hov:not(.on):not(.cdot) .gm-dot, #lv-map .pj.hov:not(.on):not(.cdot):not(.dim) .pj-m { scale: var(--pin-hover); }   /* a pointed-at pin (js/ux/pin-life.js); a crowd dot or a filtered-out project keeps its bead */

/* ---------- M10 · the place callout grows out of its dot ---------- */
#lv-map .gm-call { transform-origin: 0 50%; animation: mx-call .336s var(--ease-out) .06s backwards; }
@keyframes mx-call { from { opacity: 0; scale: .9; } }

/* ---------- M06b · and every 6.5s a thin light pillar rises from the plate, readable across the room on the TV ---------- */
#lv-map .hero.hg::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 3.6rem; margin-left: -1px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); transform-origin: 50% 100%; transform: scaleY(0); opacity: 0;
  animation: mx-pillar 6.5s cubic-bezier(.22, 1, .36, 1) 2.4s infinite; transition: scale var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }
#lv-map:not(.dark) .hero.hg::after { background: linear-gradient(0deg, rgba(22, 22, 27, .55), rgba(22, 22, 27, 0)); }
@keyframes mx-pillar { 0% { transform: scaleY(0); opacity: 0; } 5% { opacity: 1; } 18% { transform: scaleY(1); opacity: .85; } 24%, 100% { transform: scaleY(1); opacity: 0; } }
body[data-level="area"] #lv-map .hero.hg::after { scale: .7; translate: 0 .55rem; }   /* it rises from the shrunken plate's top edge */
body:is(.is-moving, .swapping) #lv-map .hero.hg::after { animation-play-state: paused; }
#lv-map.has-sel .hero.hg::after, body.cine #lv-map .hero.hg::after { animation: none; opacity: 0; }

/* ---------- M12 · each kind of place answers a select with its own small move (under 600ms, once): the briefcase tips, the mortarboard tosses,
   the cross turns a quarter on a double heartbeat, the leaf sways, the fork and knife clink, the columns rise. A guest's priority plays it once on arrival. ---------- */
#lv-map .gm.on .gm-dot svg { animation: .448s var(--ease-out) .12s 1 both; }
#lv-map .gm.pri:not(.on) .gm-dot svg { animation: .448s var(--ease-out) .72s 1 both; }
#lv-map .gm:is(.on, .pri)[data-cat="work"] .gm-dot svg { animation-name: sig-work; }
#lv-map .gm:is(.on, .pri)[data-cat="edu"] .gm-dot svg { animation-name: sig-edu; }
#lv-map .gm:is(.on, .pri)[data-cat="health"] .gm-dot svg { animation-name: sig-health; }
#lv-map .gm:is(.on, .pri)[data-cat="lake"] .gm-dot svg { animation-name: sig-lake; }
#lv-map .gm:is(.on, .pri)[data-cat="dine"] .gm-dot svg { animation-name: sig-dine; }
#lv-map .gm:is(.on, .pri)[data-cat="civic"] .gm-dot svg { animation-name: sig-civic; transform-origin: 50% 100%; }
@keyframes sig-work { 0% { transform: none; } 30% { transform: rotate(-14deg); } 62% { transform: rotate(7deg); } 100% { transform: none; } }
@keyframes sig-edu { 0% { transform: none; } 40% { transform: translateY(-22%) rotate(-12deg); } 75% { transform: translateY(4%) rotate(3deg); } 100% { transform: none; } }
@keyframes sig-health { 0% { transform: none; } 25% { transform: rotate(45deg) scale(1.16); } 45% { transform: rotate(70deg) scale(1); } 65% { transform: rotate(90deg) scale(1.12); } 100% { transform: rotate(90deg); } }
@keyframes sig-lake { 0% { transform: none; } 25% { transform: rotate(-10deg); } 55% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } 100% { transform: none; } }
@keyframes sig-dine { 0% { transform: none; } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 100% { transform: none; } }
@keyframes sig-civic { 0% { transform: scaleY(.55); } 60% { transform: scaleY(1.08); } 100% { transform: none; } }

/* ---------- M13 · Day and Night re-skin: the light passes over the pins as a wave from the sun dial (js/ux/motion.js sets --rk on each pin, by its distance) ---------- */
#lv-map.reskin .gm-dot:not(zz-), #lv-map.reskin .pj-m:not(zz-), #lv-map.reskin .gm-med:not(zz-), #lv-map.reskin .mm-chip:not(zz-), #lv-map.reskin .hg-med:not(zz-), #lv-map.reskin :is(.mm-stn i) { transition: background-color .48s var(--ease-out) var(--rk, 0ms), border-color .48s var(--ease-out) var(--rk, 0ms),
  box-shadow .48s var(--ease-out) var(--rk, 0ms), color .48s var(--ease-out) var(--rk, 0ms), scale var(--dur-quick) var(--ease-spring); }
#lv-map.reskin .gm-lab:not(zz-), #lv-map.reskin .gm-slab:not(zz-), #lv-map.reskin :is(.pj span, .mm-stn-l b, .gm-area span) { transition: color .48s var(--ease-out) var(--rk, 0ms), text-shadow .48s var(--ease-out) var(--rk, 0ms), opacity var(--dur-base) var(--ease-out); }

/* ---------- M18 · the moment bar arrives instead of popping in (it is display:none until .on); translate keeps its -50% centring ---------- */
#mbar.on { animation: mx-bar-in .4s var(--ease-out) backwards; }
@keyframes mx-bar-in { from { opacity: 0; translate: -50% -10px; scale: .97; } }

/* ---------- M11 · loops hold still in flight (the SMIL car is parked by js/ux/motion.js) ---------- */
body:is(.is-moving, .swapping) .gs-viz .gs-rt.d { animation-play-state: paused; }

/* ---------- reduced motion: positions still change, nothing travels or loops ---------- */
@media (prefers-reduced-motion: reduce) {
  #lv-map .lbl-lead, #lv-map .lbl-lead.on { clip-path: none; transition: opacity .12s; }
  #lv-map .hero.hg::before, #lv-map .hero.hg::after { animation: none; opacity: 0; }
  #lv-map .gm .gm-dot svg { animation: none !important; }
  #lv-map.reskin * { transition-delay: 0s !important; }
  #lv-map .hero.hg > .hg-med, #lv-map .hero.hg > .hg-ground, #lv-map .gm-dot:not(.zz-), #lv-map :is(.pj .pj-m) { transition: none; }
  #lv-map .gm-call, .gs-viz .gs-rt.d, #mbar.on { animation: none; }
  body.nav-in #place, body.nav-in #chap, body.nav-in #sdock, body.nav-in #ctx, body.nav-in #cta, body.nav-in .gm-flt { animation-duration: .2s; }
}

/* ---------- round 3 · R04 · rush hour: the route's colour eases between off-peak, morning and evening (js/plus/place.js sets --rc / --rg) ---------- */
#lv-map .gm-rt, #lv-map .gm-rg { transition: stroke .48s cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) { #lv-map .gm-rt, #lv-map .gm-rg { transition: none; } }

/* ---------- round 3 · R06 · the thread from a strip card to its pin (js/levels.js linkPin) ---------- */
#gm-thread { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; opacity: 0; overflow: visible; }
#gm-thread path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; }
body.glass-day #gm-thread path { stroke: rgba(22, 22, 27, .6); }


/* ---------- round 3 · R25 · the place title's words rise inside their own masks (js/app.js placeIn) ---------- */
#place .pl-t .pw { display: inline-block; vertical-align: top; }   /* (v1 fix-6) no clipping mask: the words reveal with a soft blur-up (js/app.js placeIn) */
#place .pl-t .pw > span { display: inline-block; }

/* ---------- round 3 · R14 · the drone pitch leans the map from a point below the middle (js/mapview.js flyTo) ---------- */
.mapview { transform-origin: 50% 62%; }
#caption .cap-t .pw { display: inline-block; vertical-align: top; }
#caption .cap-t .pw > span { display: inline-block; }

/* ---------- round 3 · story cards morph into each other (js/levels.js card): the old content is a copy over the new while it lifts away ---------- */
#lv-map .info .info-ghost { position: absolute; inset: 0; padding: inherit; pointer-events: none; z-index: 3; overflow: hidden; }

/* ---------- round 3 · the strip's "+N" tab ticks when its count changes (js/app.js markOverflow sets more-up / more-dn) ---------- */
#ctx .strip[data-more].more-up::after { animation: mx-more-up .24s cubic-bezier(.22, 1, .36, 1); }
#ctx .strip[data-more].more-dn::after { animation: mx-more-dn .24s cubic-bezier(.22, 1, .36, 1); }
@keyframes mx-more-up { from { opacity: 0; translate: 0 6px; } }
@keyframes mx-more-dn { from { opacity: 0; translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { #ctx .strip[data-more]:is(.more-up, .more-dn)::after { animation: none; } }

/* ---------- round 3 · the story card glides to its Present position (body.cine:has(> #ui > #mbar.on) moves it under the moment bar), so Pause and Play no longer make it jump ---------- */
#lv-map .info { transition: top .64s cubic-bezier(.65, 0, .35, 1), max-height .64s cubic-bezier(.65, 0, .35, 1); }   /* no opacity here: GSAP owns the card's fade (17 October) */
#lv-map .info.on.lg-ready { transition: --lg-wash var(--dur-quick) var(--ease-out), top .64s cubic-bezier(.65, 0, .35, 1), max-height .64s cubic-bezier(.65, 0, .35, 1); }
body.ring-open #lv-map .info { transition: opacity .32s, top .64s cubic-bezier(.65, 0, .35, 1), max-height .64s cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) { #lv-map .info, #lv-map .info.on.lg-ready { transition: none; } }

/* ---------- round 3 · R13 · the current moment's tick fills over its learned duration, or shimmers while the duration is still unknown (js/ux/motion.js) ---------- */
#mbar .mb-p i.cur { position: relative; overflow: hidden; }
#mbar .mb-p i.cur.mx-timed { background: color-mix(in srgb, currentColor 32%, transparent); }
#mbar .mb-p i.cur .mx-fill { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
#mbar .mb-p i.cur.mx-indet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-100%); animation: mx-indet 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes mx-indet { to { transform: translateX(100%); } }

/* ---------- round 3 · reduced motion: the camera crossfades from a still of the old view instead of cutting (js/ux/map.js) ---------- */
.mapview .map-snap { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* ---------- pin options (14 October, _audit/pin-options): the wave in, the lift on tap and the glint while idle. The constellation itself is css/ux/area.css section 12 ---------- */
/* P0 · the arrival wave: a ring of light that spreads out from Mirai over the map (js/plus/gm.js wave; it sets r and opacity, the map keeps the stroke 1.8px on screen) */
#lv-map .gm-wave { fill: none; }
/* P1 · lift on a stem: the chosen marker rises off the map, and a thin stem and its shadow stay on the ground.
   The whole marker lifts 30px (medallion, ripple, name and callout together); js/ux/labels.js places the name around the risen medallion (LIFT there).
   On the ground: a soft spot in the pin's colour at Dusk and Night, a shadow by Day. */
#lv-map .gm { transition: opacity var(--dur-base) var(--ease-out), translate .336s var(--ease-spring); }   /* css/ux/area.css owns the opacity, repeated here so it keeps its fade */
#lv-map .pj { transition: translate .336s var(--ease-spring); }   /* the opacity of a project is GSAP's (js/levels.js pjShow) */
#lv-map .gm.on, #lv-map .pj.on { translate: 0 -30px; }
#lv-map .gm::after, #lv-map .pj::after { content: ""; position: absolute; z-index: -1; left: -10px; top: 0; width: 20px; height: 34px; pointer-events: none; opacity: 0; scale: 1 0; transform-origin: 50% 100%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #fff) 75%, transparent), transparent) 50% 100% / 20px 7px no-repeat, linear-gradient(var(--c, #fff), color-mix(in srgb, var(--c, #fff) 35%, transparent)) 50% 0 / 2px 31px no-repeat;
  transition: opacity .2s var(--ease-out), scale .336s var(--ease-spring); }
#lv-map .gm.on::after, #lv-map .pj.on::after { opacity: 1; scale: 1 1; }
#lv-map:not(.dark) .gm::after, #lv-map:not(.dark) .pj::after { background: radial-gradient(closest-side, rgba(20, 24, 44, .5), rgba(20, 24, 44, 0)) 50% 100% / 20px 7px no-repeat, linear-gradient(color-mix(in srgb, var(--c, #16161b) 70%, #16161b), color-mix(in srgb, var(--c, #16161b) 45%, transparent)) 50% 0 / 2px 31px no-repeat; }
/* P2 · glint: while the map is still, a light passes across the pins every 6 s, left to right (js/ux/pin-life.js sets .gl, and --gd from each pin's place across the screen) */
#lv-map .gm-dot, #lv-map .pj-m { overflow: hidden; }
#lv-map .gm-dot::after, #lv-map .pj-m::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; translate: -130% 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .78) 50%, transparent 70%); }
#lv-map:not(.dark) .gm-dot::after, #lv-map:not(.dark) .pj-m::after { background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--c, #fff) 42%, transparent) 50%, transparent 70%); }
#lv-map :is(.gm-dot, .pj-m).gl::after { animation: pin-glint .64s cubic-bezier(.65, 0, .35, 1) var(--gd, 0ms) both; }
@keyframes pin-glint { from { translate: -130% 0; } to { translate: 130% 0; } }
@media (prefers-reduced-motion: reduce) {
  #lv-map .gm, #lv-map .pj, #lv-map .gm::after, #lv-map .pj::after, #lv-map :is(.gm-dot, .pj-m) svg { transition: none; }
  #lv-map :is(.gm-dot, .pj-m).gl::after { animation: none; }
}

/* =====================================================================
   The card system (17 October, Phases 4 and 5): every map card on one scale (css/tokens.css "Compact system"): City stories, Micro-market stories, Century cards,
   Around Mirai's landmark, route and radius cards. Width --card-w, padding --card-pad, radius --card-r; title, figure, tiles, controls and notes smaller.
   ===================================================================== */
@media (orientation: landscape) {
  body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info,
  body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info.has-hi { width: var(--card-w); }   /* the compare table (.pl-wide, map.css:28) keeps its width */
}
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info,
body.has-chap:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info { padding: var(--card-pad); border-radius: var(--card-r); --info-px: var(--card-pad); }
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info.has-hi,
body.has-chap:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info.has-hi { padding-top: 0; }
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info.ux-scroll,
body.has-chap:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info.ux-scroll { padding-bottom: calc(var(--card-pad) + 1rem); }   /* room for the scroll fade (map.css:33) */
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info.on { gap: var(--card-gap); }
body #lv-map .info { box-shadow: inset 1.2px 1.2px 0 rgba(255, 255, 255, calc(var(--lg-e0) * .72)), inset -1px -1px 0 rgba(255, 255, 255, var(--lg-e1)), var(--lg-hi), var(--card-shadow); }
body.glass-day #lv-map .info.has-hi { box-shadow: var(--card-shadow-day); }
/* the photo header */
#lv-map .info > .hi, #lv-map .info.gs > .hi, #lv-map .info.gs.has-hi > .hi { flex: none; height: var(--card-photo-h); min-height: 0; margin: 0 calc(var(--card-pad) * -1) 2px; border-radius: var(--card-r) var(--card-r) 0 0; overflow: clip; }
#lv-map .info .hi-cap, #lv-map .info.gs.has-hi .hi-cap { padding: 0 var(--card-pad) 12px; }
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info .hi-cap .k { font: var(--t-kicker); letter-spacing: .08em; margin: 0 0 2px; }
body #lv-map .info.has-hi .hi-cap h3 { font: 600 var(--t-card-title-fs)/1.15 var(--sans); letter-spacing: -.015em; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
#lv-map .info .hi-acc { width: 2.6rem; height: 2px; margin-top: 8px; border-radius: 2px; background: #fff; box-shadow: none; opacity: .9; }
#lv-map .info .hi-tag { top: 10px; left: var(--card-pad); padding: 3px 8px; font: 600 12px/1 var(--sans); box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .45); }
/* the close button: 32px to the eye, 44px to the finger */
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info .x { width: 32px; height: 32px; min-width: 32px; min-height: 32px; top: 8px; right: 8px; }
body:is([data-level="century"], [data-level="city"], [data-level="market"], [data-level="area"]) #lv-map .info .x::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
#lv-map .info .x svg { width: 14px; height: 14px; }
/* the plain header (no photo) */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .k { font-size: var(--t-meta-fs); letter-spacing: .08em; }
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: 36px; }
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info h3, body #lv-map .info.mm:not(.has-hi) > h3 { font: 600 var(--t-card-title-fs)/1.2 var(--sans); letter-spacing: -.015em; }
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info > p:not(.k) { font-size: var(--t-body-fs); line-height: 1.45; }
body #lv-map .info.mm > p.mm-line, body #lv-map .info.has-hi > p.mm-line { font: 400 var(--t-body-fs)/1.45 var(--sans); }
/* the headline figure and its unit */
body #lv-map .info.mm > .mm-fig, body #lv-map .info.gs.mm > .mm-fig { margin: 2px 0 0; gap: 2px; }
body #lv-map .info.mm > .mm-fig b, body #lv-map .info.gs.mm > .mm-fig b { font-size: var(--t-card-fig-fs); letter-spacing: -.02em; }
body #lv-map .info.mm > .mm-fig[data-long] b { font-size: calc(var(--t-card-fig-fs) * .8); }
body #lv-map .info.mm > .mm-fig span, body #lv-map .info.gs.mm > .mm-fig span { font: 500 12.5px/1.35 var(--sans); }
/* tiles */
body #lv-map .info.mm > .mm-kpis { gap: 6px; margin: 2px 0; }
body #lv-map .info.mm > .mm-kpis > div { padding: 8px 10px; border-radius: var(--card-tile-r); gap: 2px; }
body #lv-map .info.mm > .mm-kpis b, body #lv-map .info.mm > .mm-kpis.n3 b { font: 500 15px/1.15 var(--num); }   /* (18 October) .n3 too: market.css's three-tile rule outweighed this one (16px) */
body #lv-map .info.mm > .mm-kpis span, body #lv-map .info.mm > .mm-kpis small { font: 600 12px/1.25 var(--sans); }
#lv-map .info :is(.meta div, .mk div, .tl-grid div), .pj-facts > div { padding: 8px 10px; border-radius: var(--card-tile-r); }
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta b, body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info :is(.mk, .spark, .tl-grid) b { font-size: 18px; }
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info :is(.meta span, .mk span, .mk small, .spark span) { font-size: 12px; }
.pj-facts b { font: 500 15px/1.1 var(--sans); } .pj-facts span { font: 500 12px/1.25 var(--sans); }
body #lv-map .info.mm .mm-checks li { font: 500 13px/1.35 var(--sans); }
body #lv-map .info.mm > p.mm-why { margin: 2px 0 0; padding-left: 10px; font: 400 13px/1.4 var(--sans); }
body #lv-map .info.mm > p.mm-why em { font: 600 12px/1.2 var(--sans); }
body #lv-map .info.mm > p.mm-src, body #lv-map .info .mm-src, body #lv-map .info .src, body #lv-map .info .mm-note { font: 500 12px/1.35 var(--sans); }
body #lv-map .info .sample, body #lv-map .info .k .sample { font: 600 12px/1 var(--sans); }
/* the landmark description: three lines, never deleted (js/levels.js no longer removes it when the card scrolls) */
body #lv-map .info.has-hi > p.gm-desc { margin: 4px 0 0; font: 400 var(--t-body-fs)/1.45 var(--sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* rush hour */
body #lv-map .info .pl-peak { margin: 4px 0 0; padding-top: 10px; }
body #lv-map .info .pl-peak .k { margin: 0 0 6px !important; }
body:is([data-level="area"], [data-level="market"]) #lv-map .info .pl-peak .seg { height: var(--ctl-h); padding: 2px; }
body:is([data-level="area"], [data-level="market"]) #lv-map .info .pl-peak .seg button { position: relative; min-height: calc(var(--ctl-h) - 4px); height: calc(var(--ctl-h) - 4px); font: 600 12px/1 var(--sans); }
body:is([data-level="area"], [data-level="market"]) #lv-map .info .pl-peak .seg button::after { content: ""; position: absolute; inset: -8px 0; }
body #lv-map .info .pl-pnote, #lv-map .info p.pl-pnote:not(.k) { margin-top: 6px; font: 500 12px/1.4 var(--sans); }
/* the growth story's pictogram, tiles and line of why */
body #lv-map .info .gs-viz { margin: 0; padding: 8px 10px 6px; border-radius: var(--card-tile-r); }
body #lv-map .info .gs-viz svg { height: 40px; }
body #lv-map .info .gs-viz p { font: 600 12px/1.1 var(--sans); margin-top: 4px; }
body #lv-map .info .gs-tiles { gap: 6px; margin: 0; }
body #lv-map .info .gs-t { padding: 8px 10px 8px 8px; column-gap: 8px; border-radius: var(--card-tile-r); }
body #lv-map .info .gs-t b { font: 500 15px/1.1 var(--num); }
body #lv-map .info .gs-t span { font: 600 12px/1.2 var(--sans); }
/* (B6) a place name in the Where tile wraps to two lines instead of ending in an ellipsis ("TATA Intelion Park", "Hebbal to Silkboard") */
body #lv-map .info .gs-t.gs-where b { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.15; }
/* (B6) the Business Corridor photo carries its own printed title, which sat under the card's: the header shows the photo's sky, the print falls below it */
#lv-map .info .hi img[src$="bengaluruBusiness.webp"] { object-position: 50% 0; transform-origin: 50% 0; scale: 1.8; }
body #lv-map .info .gs-cmp:not(.zz-), body #lv-map .info :is(.gs-t > .gs-ic) { width: 32px; height: 32px; }
body #lv-map .info .gs-why { gap: 8px; margin: 0; font: 500 13px/1.35 var(--sans); }
body #lv-map .info .gs-why .gs-ic { width: 28px; height: 28px; }
body #lv-map .info .gs-ic svg { width: 15px; height: 15px; }
/* Previous / Next and other pills in a card: 32px */
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .nav { margin-top: 4px; gap: 6px; }
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info :is(.nav, .acts) .pill { min-height: var(--ctl-h); height: var(--ctl-h); padding: 0 12px; gap: 6px; font: var(--t-label); }
body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .nav .pill svg { width: 14px; height: 14px; }
/* portrait: the bottom sheet keeps its place and width (map.css:205-217); only its padding is the card's (the rules above). Phones: a full-width sheet above the Stories pill and the strip */
@media (orientation: portrait) and (max-width: 600px) {
  body:not(.cine):is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info, body.has-chap:not(.cine):is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info {
    left: calc(var(--pad) + var(--safe-l)); right: calc(var(--pad) + var(--safe-r)); bottom: max(calc(var(--pad) + var(--safe-b) + 2.2rem + 44px + 8px + var(--ctl-h) + 8px), calc(var(--pad) + var(--safe-b) + 9.05rem + max(1.6rem, 22px) + 13px)); max-height: min(40dvh, 22rem); }
  /* (18 October, L-11) the sheet's foot clears the sun dial too: the orb (1rem up, 5.6rem tall), the knob's arc (5.25rem from the orb's centre: straight up by Night), the
     44px knob with its 5px ring, and 8px. It met the knob at 133.6px. The sheet is 2rem shorter, so the map keeps the room it had above it */
  /* Previous / Next stay in view: on the growth story a footer pinned to the sheet's foot while the story scrolls under it. Its fill is the glass's own average
     (js/ux/glass.js --lg-avg) under the same wash, and the Day photo card's own foot colour (map.css); the scroll fade goes (it would fade the footer) */
  body:not(.cine)[data-level="city"] #lv-map .info.gs, body.has-chap:not(.cine)[data-level="city"] #lv-map .info.gs,
  body:not(.cine)[data-level="city"] #lv-map .info.gs.ux-scroll, body.has-chap:not(.cine)[data-level="city"] #lv-map .info.gs.ux-scroll { padding-bottom: 0; }
  body:not(.cine)[data-level="city"] #lv-map .info.gs > .nav, body.has-chap:not(.cine)[data-level="city"] #lv-map .info.gs > .nav {
    position: sticky; bottom: 0; z-index: 3; margin: 0 calc(var(--card-pad) * -1); padding: 6px var(--card-pad) var(--card-pad);
    background-color: rgb(var(--lg-avg, var(--lg-avg-d))); background-image: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .09)), linear-gradient(var(--lg-wash-rest), var(--lg-wash-rest)); }
  body.glass-day:not(.cine)[data-level="city"] #lv-map .info.gs.has-hi > .nav { background-color: #f5f5f8; background-image: none; }
  body:not(.cine)[data-level="city"] #lv-map .info.gs.ux-scroll.ux-more { -webkit-mask-image: none; mask-image: none; }
}
html.tv body #lv-map .info, html.tv body #lv-map .info.has-hi { width: var(--card-w); }
/* (18 October, M-08) the TV is read from the sofa: the card text that is set in px above takes the TV scale of the compact tokens (css/tokens.css :root.tv):
   11px meta to --t-meta-fs, 12 to 12.5px labels to --t-label-fs, 13px body (the line of why) to --t-body-fs, the 15px tile figures 15/13 of the body, 18px to the title size */
html.tv body #lv-map .info.mm > .mm-fig span, html.tv body #lv-map .info.gs.mm > .mm-fig span { font-size: var(--t-label-fs); }
html.tv body #lv-map .info.mm > .mm-kpis b, html.tv body #lv-map .info.mm > .mm-kpis.n3 b, html.tv body #lv-map .info .gs-t b, html.tv .pj-facts b, html.tv #lv-map > .lm-peek .pk-n { font-size: calc(var(--t-body-fs) * 15 / 13); }
html.tv body #lv-map .info.mm > .mm-kpis span, html.tv body #lv-map .info.mm > .mm-kpis small, html.tv body #lv-map .info .gs-t span, html.tv body #lv-map .info .gs-viz p, html.tv .pj-facts span { font-size: var(--t-meta-fs); }
html.tv body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info :is(.meta span, .mk span, .mk small, .spark span) { font-size: var(--t-meta-fs); }
html.tv body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info .meta b, html.tv body:is([data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info :is(.mk, .spark, .tl-grid) b { font-size: var(--t-card-title-fs); }
html.tv body #lv-map .info .gs-why, html.tv body #lv-map .info.mm > p.mm-why, html.tv body #lv-map .info.mm .mm-checks li { font-size: var(--t-body-fs); }
html.tv body #lv-map .info.mm > p.mm-why em, html.tv body #lv-map .info.mm > p.mm-src, html.tv body #lv-map .info .mm-src, html.tv body #lv-map .info .src, html.tv body #lv-map .info .mm-note, html.tv body #lv-map .info .sample, html.tv body #lv-map .info .k .sample, html.tv #lv-map .info .hi-tag { font-size: var(--t-meta-fs); }
html.tv body #lv-map .info .pl-pnote, html.tv #lv-map .info p.pl-pnote:not(.k), html.tv body:is([data-level="area"], [data-level="market"]) #lv-map .info .pl-peak .seg button { font-size: var(--t-label-fs); }
/* (18 October, N-06) a plain card's own title (a Century project, the resident stories) takes the card system's title size, as every other card's does: it was
   2.1rem (css/showroom.css #lv-map .info h3), 56px on the TV's larger root size against 25.5px elsewhere. TV only: the tablet keeps its 27px */
html.tv body #lv-map .info > h3 { font-size: var(--t-card-title-fs); }

/* ---------- the place's quick card (js/levels.js peek): photo, kind, name, time and distance; one button that opens the full card. GSAP owns its fade ---------- */
#lv-map > .lm-peek { position: absolute; z-index: 5; right: calc(var(--pad) + 1rem + var(--safe-r)); top: calc(var(--pad) + 5.2rem + var(--safe-t)); width: var(--card-w-sm); box-sizing: border-box;
  display: none; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; cursor: pointer; text-align: left;
  background-color: rgba(22, 19, 32, .88); background-image: var(--lg-sheen); color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--card-shadow); }
#lv-map > .lm-peek.on { display: grid; }
#lv-map > .lm-peek .pk-ph { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #1c1928; display: block; }
#lv-map > .lm-peek .pk-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
#lv-map > .lm-peek .pk-ph.ic { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--mk-civic); }
#lv-map > .lm-peek[data-cat="work"] .pk-ph.ic { color: var(--mk-work); } #lv-map > .lm-peek[data-cat="edu"] .pk-ph.ic { color: var(--mk-edu); } #lv-map > .lm-peek[data-cat="health"] .pk-ph.ic { color: var(--mk-health); }
#lv-map > .lm-peek[data-cat="lake"] .pk-ph.ic { color: var(--mk-lake); } #lv-map > .lm-peek[data-cat="dine"] .pk-ph.ic { color: var(--mk-dine); }
#lv-map > .lm-peek .pk-ph.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#lv-map > .lm-peek .pk-tx { display: grid; gap: 2px; min-width: 0; }
#lv-map > .lm-peek .pk-k { font: var(--t-kicker); letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 245, 247, .62); }   /* (the text parts carry classes: no rule ends in a bare tag under body.glass-day) */
#lv-map > .lm-peek .pk-n { font: 600 15px/1.2 var(--sans); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#lv-map > .lm-peek .pk-m { font: var(--t-meta); font-style: normal; color: rgba(245, 245, 247, .76); font-variant-numeric: tabular-nums; }
#lv-map > .lm-peek .pk-go { display: grid; place-items: center; width: 20px; color: rgba(245, 245, 247, .7); }
#lv-map > .lm-peek .pk-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.glass-day #lv-map > .lm-peek { background-color: rgba(255, 255, 255, .96); background-image: none; color: #16161b; box-shadow: var(--card-shadow-day); }
body.glass-day #lv-map > .lm-peek .pk-k { color: rgba(22, 22, 27, .6); } body.glass-day #lv-map > .lm-peek .pk-m, body.glass-day #lv-map > .lm-peek .pk-go { color: rgba(22, 22, 27, .72); }
body.glass-day #lv-map > .lm-peek .pk-ph.ic { background: rgba(22, 22, 27, .05); }
body.ring-open #lv-map > .lm-peek { opacity: 0 !important; visibility: hidden; pointer-events: none; }
@media (orientation: landscape) and (min-width: 901px) { body.cine:has(> #ui > #mbar.on) #lv-map > .lm-peek { top: max(calc(var(--pad) + 5.2rem + var(--safe-t)), calc(8dvh + 14px)); } }   /* (23 October) the bar is inside the top band now */
@media (orientation: portrait) { #lv-map > .lm-peek { right: calc(var(--pad) + var(--safe-r)); top: calc(var(--pad) + var(--safe-t) + 3.8rem); } }
@media (orientation: portrait) and (max-width: 600px) { #lv-map > .lm-peek { left: calc(var(--pad) + var(--safe-l)); right: calc(var(--pad) + var(--safe-r)); width: auto; top: calc(var(--pad) + var(--safe-t) + 15.6rem); } }
