/* final QA pass b: map levels */

/* City > Century projects: ~30 labels collided with each other and ran under the top chips.
   Show status-coloured dots, make them tappable, and name only the selected one. */
body[data-level=city] #lv-map .pin[data-pj] { pointer-events: auto; cursor: pointer; }
body[data-level=city] #lv-map .pin[data-pj]:not(.on) span { display: none; }
body[data-level=city] #lv-map .pin[data-pj].on { z-index: 4; }

/* ---- Type floors for the map levels. At <=1180px wide the root is 13px, so many rem sizes fell to 8-10px.
   Tablet viewing distance: controls >=13px, labels and captions >=12px. ---- */
#chap .chap-h .k { font-size: max(.7rem, 12px); letter-spacing: .16em; }
#chap .chap-play { font-size: max(.8rem, 13px); }
#chap .chap-play svg { width: 1rem; height: 1rem; }
#chap ol button, #chap .chap-next { font-size: max(.88rem, 14px); }
#chap ol button b { font-size: max(1.05rem, 16px); }
.g-txt small { font-size: max(.74rem, 12px); }
.g-txt b, .g-txt strong { font-size: max(.9rem, 13px); }
.pl-k { font-size: max(.76rem, 12px); }
.pill small, .poi-strip .pchip small, .strip-note, .zhint, .zlabel small { font-size: max(.78rem, 12px); }
.pill b { font-size: max(.78rem, 12px); }
.heat-tag span, .road-tag, .stn i { font-size: max(.72rem, 12px); }
.lcard small, .tchip small, .tchip em, .sig small, .spark span, .mk small, .ms small, .ms span { font-size: max(.74rem, 12px); }
.tchip.muted b { font-size: max(.7rem, 12px); }
.sample { font-size: max(.6rem, 11px); }
/* Micro-market hubs (Where the jobs are) and the ORR label */
.sx-hub .card span { font-size: max(.8rem, 12.5px); color: rgba(248, 240, 224, .88); }
.sx-hub .card em { font-size: max(.74rem, 12px); }
.sx-orrlab em { font-size: max(.75rem, 12px); color: rgba(248, 240, 224, .88); }
/* Then & now timeline */
.tl-yr small { font-size: max(.7rem, 12px); }
.tl-labels b { font-size: max(.72rem, 12px); color: rgba(246, 236, 216, .85); }
.tl-grid span, .tl-foot small { font-size: max(.72rem, 12px); }

/* wider chapter card so the larger type does not wrap or truncate; kicker may use the full row */
#chap { width: 18.5rem; }
#chap .chap-h .k { letter-spacing: .1em; }
#chap ol button { padding-right: .5rem; }
/* Then & now scrubber stopped under the sun-dial label and the orb */
#lv-map .tl-bar { right: calc(var(--pad) + 15.5rem + var(--safe-r)); }

/* declutter (js/qa-b.js): a name tag that would cover another is faded; the dot / photo stays */
.qa-hide { opacity: 0 !important; pointer-events: none !important; transition: opacity .24s; }

/* long unbreakable strings (RERA number) were clipped at the card edge */
#lv-map .info p, #lv-map .info li, #lv-map .info h3 { overflow-wrap: anywhere; }

/* portrait: the info card was a bottom sheet that ran under the (taller) chapter card.
   Put it beside the chapter card instead, top-aligned with it. */
@media (orientation: portrait) {
  body.has-chap #lv-map .info, body.has-chap #lv-map .info.pl-wide {
    left: calc(var(--chap-right, 22rem) + 1rem); right: calc(var(--pad) + var(--safe-r)); width: auto;
    top: var(--chap-top, 14rem); bottom: auto; max-height: calc(100dvh - var(--chap-top, 14rem) - 9rem); padding-bottom: 1.5rem; }
}
