/* The agency 3D tour (/t/{token}): the Chapters layout of docs/designs/agency-3d-tour.md.
   It lives inside an agency's own page, usually in an <iframe>, so it fills whatever box it is
   given and takes no fonts from a third party (a Google Fonts request from an agency's page
   sends its visitors' IPs to Google: system fonts only, G2). */
:root {
  --cream: #F3EEE3; --ink: #1D211B; --pill-bg: rgba(20,22,20,.74); --pill-fg: #D9DBDE;
  --card: rgba(14,16,14,.58); --agency: #C2362B; --on-agency: #F3EEE3; --load-bg: #121512;
  --sky-top: #A9C6DC; --sky-hz: #E6DDCF;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #DCD6C9; overflow: hidden; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.nojs { position: fixed; inset: auto 0 0 0; margin: 0; padding: 12px; background: var(--ink); color: var(--cream); font: 14px/1.4 var(--sans); text-align: center; }

.tv { position: fixed; inset: 0; overflow: hidden; color: var(--cream); user-select: none; -webkit-user-select: none;
      background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-hz) 46%, #DCD6C9 100%); }
.tv canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; outline: none; }
/* every card's width is measured on the tour's own box (cqw), never the window (vw): a demo page hosts
   the tour in a box narrower than the window, and a phone's card worked out from 100vw ran under the
   camera's pad (Henk, 2026-10-29, a demo page on an iPhone). The vw value before each cqw one
   stays as the fallback for a browser without container units. In an iframe the two are the same */
.tv { container-type: inline-size; }
.tv canvas:active { cursor: grabbing; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; pointer-events: none; }
.poster.gone { opacity: 0; }
.ink { text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 12px rgba(0,0,0,.35); }

.top { position: absolute; left: 0; right: 0; top: 0; min-height: 52px; background: rgba(14,16,14,.55); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; z-index: 3; }
.top .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.plate { flex: none; background: var(--cream); border-radius: 8px; padding: 5px 9px; display: inline-flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.plate.dark { background: #14171A; }
.plate.none { background: transparent; padding: 0; box-shadow: none; }
.plate.none img { height: 32px; border-radius: 6px; }
.plate img { height: 24px; max-width: 120px; object-fit: contain; display: block; }
.where { font: 500 18px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .r { display: flex; gap: 8px; align-items: center; flex: none; }
.rb { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pill-bg); color: var(--pill-fg); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.rb svg { width: 15px; height: 15px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
/* The canvas fills the frame, which clips anything outside it, and an inset
   shadow on a canvas paints under what WebGL draws: the ring is an overlay above it. */
.tv canvas:focus-visible { outline: none; }
.tv:has(> canvas:focus-visible)::before { content: ""; position: absolute; inset: 52px 0 0 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 5px rgba(0,0,0,.45); }
@supports not selector(:has(*)) { .tv canvas:focus-visible { outline: 2px solid var(--cream); outline-offset: -3px; } }
/* the camera's pad and + / - drive the map: none until it is drawn (and none without one) */
.tv:not(.map) .navc { display: none; }
/* nothing but the picture until the tour has read its scene (and when it cannot) */
.tv:not(.phone):not(.desk) > :not(.poster):not(.toast):not(.load) { display: none; }
/* a Google tour's loader: nothing of the tour until its own picture is sharp, a bar moved by the real steps */
.load { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: var(--load-bg); color: var(--cream); transition: opacity .6s ease; }
/* under the loader nothing of the tour takes a Tab or a tap; Google's map keeps drawing (its first sharp frame lifts the loader) */
.tv.loading > :not(.load):not(.gmap):not(.toast) { visibility: hidden; }
.load[hidden] { display: none; }
.load.gone { opacity: 0; pointer-events: none; }
.load .lw { width: min(300px, 72%); text-align: center; }
.load .lp { margin: 0 0 16px; font: 500 20px/1.2 var(--serif); }
.load .lb { height: 4px; border-radius: 2px; background: rgba(243,238,227,.16); overflow: hidden; }
/* cream, never the agency's colour: a navy accent on this ground is ~1.2:1 and the only progress signal vanished (U3) */
.load .lb i { display: block; height: 100%; background: var(--cream); transform-origin: left; transform: scaleX(0); transition: transform .4s ease-out; }
.load .lt { margin: 10px 0 0; font: 400 12.5px/1.3 var(--sans); color: rgba(243,238,227,.72); }
@media (prefers-reduced-motion: reduce) { .load, .load .lb i { transition: none; } }

.back { position: absolute; left: 10px; top: 62px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: var(--pill-bg); color: var(--pill-fg); font: 500 13px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.back[hidden] { display: none !important; }

.cap { position: absolute; z-index: 2; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; transition: opacity .3s; }
.cap.hide { opacity: 0; }
.cap.below { transform: translate(-50%, 0); flex-direction: column-reverse; }
.cap.below .dot { margin-top: 0; margin-bottom: -1px; }
.cap .card { text-shadow: 0 1px 2px rgba(0,0,0,.5); background: var(--card); border-radius: 10px; padding: 9px 12px 10px; box-shadow: 0 4px 18px rgba(0,0,0,.32); width: max-content; max-width: min(300px, calc(100vw - 32px)); max-width: min(300px, calc(100cqw - 32px)); }
.cap .t { font: 600 15px/1.15 var(--sans); display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.cap .t i { font: 500 11px/1 var(--mono); font-style: normal; color: rgba(243,238,227,.9); white-space: nowrap; flex: none; }   /* "4 de 7" never splits */
.cap .s { font: 400 12.5px/1.25 var(--sans); color: rgba(243,238,227,.94); margin-top: 3px; }
.cap .stem { width: 1.5px; height: 26px; background: rgba(243,238,227,.9); }
.cap .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 2px rgba(0,0,0,.35); margin-top: -1px; }
/* no map drawn (no WebGL yet, or the GPU took it back): the card stands docked over the poster */
/* on a phone the card stands just above the chapter chips (their row tops out 91 px up), 8 px clear
   (Henk, 2026-10-27: no call button any more, so nothing stands between them) */
.cap.dock, .cap.pin { left: 50%; top: auto; bottom: 99px; transform: translateX(-50%); }
.tv.desk .cap.dock { bottom: 96px; }
.cap.dock .stem, .cap.dock .dot, .cap.pin .stem, .cap.pin .dot { display: none; }
/* on a phone held sideways our own engine's pinned card stands at the left just above the chips, as
   Google's card docks there: centred, it met the pad's row (220 px wide at the top right), and at the
   left at 156 px up it met the back pill (pass-2 review and QA, 2026-10-26). It takes half the row */
.tv.phone.wide .cap.pin { left: 12px; bottom: 100px; transform: none; }
.tv.phone.wide .cap.pin .card { max-width: min(300px, calc(50vw - 32px)); max-width: min(300px, calc(50cqw - 32px)); }


.side { position: absolute; z-index: 3; left: 12px; top: 64px; width: 232px; background: rgba(14,16,14,.68); text-shadow: 0 1px 2px rgba(0,0,0,.45); border-radius: 10px; padding: 10px; display: grid; gap: 4px; box-shadow: 0 4px 18px rgba(0,0,0,.28); }
.side .hd { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(243,238,227,.86); padding: 4px 6px 8px; }
.item { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--cream); font: 500 14px/1.2 var(--sans); text-align: left; cursor: pointer; }
.item .n { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(243,238,227,.55); display: grid; place-items: center; font: 500 11px/1 var(--mono); }
.item .sub { display: block; font: 400 11.5px/1.2 var(--sans); color: rgba(243,238,227,.92); margin-top: 3px; }
.item .sub[hidden] { display: none; }
/* a cream ring as well as the fill: an agency's navy or black reads as nothing on the dark list */
.item[aria-pressed="true"] { background: var(--agency); color: var(--on-agency); font-weight: 700; box-shadow: 0 0 0 1px var(--cream); text-shadow: none; }
.item[aria-pressed="true"] .n { border-color: currentColor; }
.item[aria-pressed="true"] .sub { color: inherit; }

.rail { position: absolute; z-index: 3; left: 0; right: 0; bottom: 37px; display: flex; gap: 6px; padding: 5px 10px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.more { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.side.more { -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 10px; border-radius: 22px; background: rgba(20,22,20,.86); color: var(--pill-fg); border: 1px solid rgba(243,238,227,.42); font: 500 13px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.chip svg { width: 14px; height: 14px; }
.chip[aria-pressed="true"] { background: var(--agency); color: var(--on-agency); font-weight: 700; border-color: var(--cream); box-shadow: 0 0 0 1px var(--cream), 0 2px 10px rgba(0,0,0,.3); }

.info { position: absolute; z-index: 4; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 44px; padding: 0 9px 0 6px; border: 0; border-radius: 14px; background: var(--pill-bg); color: rgba(243,238,227,.9); font: 500 11px/1 var(--sans); cursor: pointer; }
.info::before { content: ""; position: absolute; inset: -8px -4px; }   /* a 44 px touch target, U5 */
.info svg { width: 18px; height: 18px; flex: none; }   /* the ring ~13.9 px, as before the 19-unit glyph (2026-10-26) */
/* our maker credit, "readmyland": plain text on both variants, never a link (no href, no handler, no pointer) */
.powered { position: absolute; z-index: 3; right: 10px; bottom: 14px; font: 500 11px/1.3 var(--sans); color: rgba(243,238,227,.82); white-space: nowrap; cursor: default; }
.powered[hidden] { display: none !important; }
.srcs { position: absolute; z-index: 6; left: 8px; right: 8px; bottom: 46px; max-width: 420px; max-height: calc(100% - 120px); overflow: auto; background: rgba(14,16,14,.94); color: var(--cream); border-radius: 10px; padding: 12px 14px; font: 400 12px/1.45 var(--sans); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.srcs[hidden] { display: none !important; }
.srcs h2 { margin: 0 0 6px; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(243,238,227,.62); }
.srcs ul { margin: 0; padding: 0 0 0 16px; }
.srcs li { margin: 2px 0; }
.srcs p { margin: 8px 0 0; color: rgba(243,238,227,.78); }
.srcs .x { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: rgba(243,238,227,.8); font: 400 20px/1 var(--sans); cursor: pointer; }
.toast { position: absolute; z-index: 5; left: 50%; bottom: 100px; transform: translateX(-50%); background: rgba(14,16,14,.88); color: var(--cream); padding: 10px 14px; border-radius: 10px; font: 500 13px/1.3 var(--sans); max-width: calc(100% - 32px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.toast[hidden] { display: none !important; }

/* Google Maps conventions: the camera's pad, a cross of 44 px buttons round the compass (look up and down,
   turn left and right: Henk, 2026-10-26, so a reader can look round as well as orbit), and on a desk + / −
   in a pill under it at its right edge, as Google Maps stands them; the cooperative hint inside a page */
.navc { position: absolute; z-index: 3; right: 12px; top: 64px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.navc .nb { pointer-events: auto; }   /* the pad's corners and the room beside + and - stay map: a drag or a wheel there reaches it */
.pill { display: flex; flex-direction: column; border-radius: 22px; background: var(--pill-bg); box-shadow: 0 2px 10px rgba(0,0,0,.25); overflow: hidden; }
.nb { width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--pill-fg); display: grid; place-items: center; cursor: pointer; font: 500 22px/1 var(--sans); touch-action: manipulation; }
.pill .nb + .nb { border-top: 1px solid rgba(243,238,227,.14); }   /* a hairline between the buttons of one pill */
.nb svg { width: 22px; height: 22px; }
.nb.tilt svg, .nb.turn svg { width: 16px; height: 16px; }
.nb:focus-visible { outline-offset: -3px; }   /* inside: a pill clips anything outside its round ends */
/* the pad: one shadow round the cross's own outline (drop-shadow follows the drawn shape, a box-shadow
   per button would shade its neighbours), a hairline square round the compass */
.pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.pad .nb { background: var(--pill-bg); }
#bUp { grid-area: 1 / 2; border-radius: 22px 22px 0 0; }
#bLeft { grid-area: 2 / 1; border-radius: 22px 0 0 22px; }
#bCompass { grid-area: 2 / 2; box-shadow: inset 0 0 0 1px rgba(243,238,227,.14); cursor: grab; touch-action: none; }   /* it drags */
#bCompass:active { cursor: grabbing; }
#bRight { grid-area: 2 / 3; border-radius: 0 22px 22px 0; }
#bDown { grid-area: 3 / 2; border-radius: 0 0 22px 22px; }
/* at the end of its travel (straight down, or as far toward the horizon as the tour goes) a chevron dims */
.nb[aria-disabled="true"] { color: rgba(217,219,222,.38); cursor: default; }
/* a frame too short for the cross (a phone held sideways, the 4:5 embed at 86vh): the pad lies in one row,
   or its foot met the call button, whose top stood 146-148 px over the frame's foot until the call went
   (2026-10-27; the rule is kept until the frame is measured again) */
@media (max-height: 359px) {
  .pad { grid-template-columns: repeat(5, 44px); grid-template-rows: 44px; }
  #bLeft { grid-area: 1 / 1; } #bUp { grid-area: 1 / 2; border-radius: 0; } #bCompass { grid-area: 1 / 3; }
  #bDown { grid-area: 1 / 4; border-radius: 0; } #bRight { grid-area: 1 / 5; }
}
/* a desk frame under 380 px tall (a wide banner embed): + and - lie in a row under the cross, or their
   column (down to 290 px) met the call button, whose top stood 82 px over the frame's foot (design review,
   2026-10-26; the call went on 2026-10-27, the rule is kept until the frame is measured again) */
@media (max-height: 379px) {
  .tv.desk .pill.zoom { flex-direction: row; }
  .tv.desk .pill.zoom .nb + .nb { border-top: 0; border-left: 1px solid rgba(243,238,227,.14); }
}
.mhint { position: absolute; inset: 52px 0 0 0; z-index: 4; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font: 500 15px/1.35 var(--sans); text-align: center; padding: 0 30px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.mhint.on { opacity: 1; }

/* Desktop: the numbered list on the left, no chip rail. Phone: the chip rail, no list. */
.tv.desk .rail { display: none; }
.tv.phone .side { display: none; }
.tv.desk .back { left: 256px; }
.tv.phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(14,16,14,0) 0%, rgba(14,16,14,.62) 100%); pointer-events: none; z-index: 2; }
.tv.phone .where { font-size: 16px; }
/* a phone frame keeps its map clean: the pad alone, under a finger or a mouse (a pinch, a wheel or a double
   tap zooms), as the Google Maps app stands it (Henk, 2026-10-26) */
.tv.phone .pill.zoom { display: none; }
/* The clean variant (portals): no logo, no agency colour; our plain "readmyland" stays,
   as on the branded tour (a maker credit, never an address or a link: Rightmove's tour rules). */
.tv.clean .plate { display: none !important; }
.tv.clean { --agency: #F3EEE3; --on-agency: #1D211B; }   /* no agency colour on a portal link */

/* a quiet answer under the pointer, on devices that have one (DESIGN.md: 200 ms ease) */
@media (hover: hover) {
  .rb, .nb, .back, .info { transition: background-color .2s ease, filter .2s ease; }
  .rb:hover, .nb:not([aria-disabled="true"]):hover, .back:hover, .info:hover { background-color: rgba(44,48,44,.86); }
  /* chips and list items ease into the hover only: a chapter change snaps, or its
     text (which flips at once) sits on a half-faded fill at ~1:1 for 80 ms */
  .item:not([aria-pressed="true"]):hover { background-color: rgba(243,238,227,.12); transition: background-color .2s ease; }
  .chip:not([aria-pressed="true"]):hover { background-color: rgba(44,48,44,.92); transition: background-color .2s ease; }   /* a chip sits on the photo, not on a dark list */
}

/* The Google engine (core/tour/google.py): Google's map fills the frame, and Google's
   logo and data credit (bottom left) are never covered: the phone's chapter rail and the
   docked card stand clear above them, no scrim darkens them, and
   our own mark sits beside Google's on its baseline: "readmyland" alone, plain text, and our
   (i) for the 3D recreation and its sources, drawn the way Google draws its own (Henk, 2026-10-26):
   white letters in a solid #474747 outline 2 px wide, the same x-height as Google's wordmark (8.5 px)
   and never taller, about 19 px between the word and its (i)'s ring, a pixel short of Google's 20 (a
   14 px gap, then the (i) button's 3 px and its glyph's 2 px of inset), and an (i) of Google's geometry
   (a 17 px dark disc under a 14 px white ring) in our own SVG. A thin rule stands between the two
   marks, centred in the gap: Google's logo ends at 118 px, its (i) glyph at 151 and that (i)'s tap
   area at 166 (measured 2026-10-22 and again 2026-10-26, the same at every width), so the rule
   stands at 166, 15 px past Google's (i) glyph and clear of its tap area, and our word 16 px past
   the rule; never "powered by", never a link.
   On a phone the chips stand just clear of that row: Google's logo and our mark reach 35 px up,
   our (i)'s 44 px touch target 47 px, and the chips start at 47 px, so no chip's foot opens the
   sources (D1, Henk 2026-10-20: at 43 px it did). The docked card stands just above them (since the call
   button went, 2026-10-27), so the middle of the frame, where the land stands, is left to the map. */
.gmap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.tv.google .gmark { position: absolute; z-index: 4; left: 166px; bottom: 15px; display: flex; align-items: center; gap: 14px; height: 20px;
                    padding-left: 16px; border-left: 1px solid rgba(255,255,255,.6); }
/* our (i) alone (a tour baked without the word) keeps the rule: drawn like Google's (i), two of them 28 px
   apart with nothing between read as one credit (Henk's D6, 2026-10-26) */
/* Google's outline is a solid shape, not a blur: sixteen hard copies on a 2 px circle and four at 1 px,
   so it holds on every engine (paint-order on HTML text strokes over the white where it is not supported) */
.gmark .powered { position: static; font: 600 17px/1 var(--sans); color: #fff; letter-spacing: .005em;
  text-shadow: 2px 0 #474747, 1.85px .77px #474747, 1.41px 1.41px #474747, .77px 1.85px #474747, 0 2px #474747,
    -.77px 1.85px #474747, -1.41px 1.41px #474747, -1.85px .77px #474747, -2px 0 #474747, -1.85px -.77px #474747,
    -1.41px -1.41px #474747, -.77px -1.85px #474747, 0 -2px #474747, .77px -1.85px #474747, 1.41px -1.41px #474747,
    1.85px -.77px #474747, 1px 0 #474747, -1px 0 #474747, 0 1px #474747, 0 -1px #474747; }
.gmark .info { position: relative; left: auto; bottom: auto; width: 24px; min-width: 0; height: 24px; padding: 0; justify-content: center; background: transparent; color: #fff; }
.gmark .info:hover { background: transparent; }
.gmark .info::before { inset: -10px; }   /* 44 px round the 24 px glyph box (U5): the only way to the sources */
/* a visible hover: a round dark ground behind the white glyph (a brighter white showed nothing) */
@media (hover: hover) { .gmark .info:hover { background: rgba(20,22,20,.6); border-radius: 50%; } }
.gmark .info span { display: none; }
.info .disc { display: none; }                                  /* our own engine's pill is its ground */
.gmark .info .disc { display: inline; fill: #474747; fill-opacity: .9; }   /* Google's: a dark disc under the ring */
.srcs .about { margin: 0 0 8px; color: var(--cream); }
.tv.google .gmark[hidden] { display: none; }
.tv.google.phone .rail { bottom: 42px; }
/* just above the chips (their row tops out 96 px up on Google's phone frame), 8 px clear (Henk, 2026-10-27);
   it also sets Google's desk card, which always docks and has no chips under it: there 104 px keeps it clear of
   Google's logo and credit row, and a change to the phone's chips moves the desk card too */
.tv.google .cap.dock, .tv.google .cap.pin { bottom: 104px; }
/* a phone held sideways (the phone's chrome in a wide frame): the card docks at the left, just
   above the chips, and stops short of the middle, where the land stands.
   Centred at 188 px (160 px since 2026-10-20) it stood in the middle of a 390 px frame, over the land (2026-10-14). The bake
   fits the overlay chapters above it (core/tour/google.py FRAMES["short"]) */
.tv.google.phone.wide .cap.dock { left: 12px; bottom: 104px; transform: none; }
/* a phone held upright on a short frame (the 4:5 embed, 357 x 445 on an iPhone): Google's map stands
   taller than the frame by the bake's shift, at the top, so its middle, where the plot stands on every
   chapter that turns about it, is the middle of the band between the top bar and the docked card; its
   bottom, Google's logo and credit with it, stays where it was (tour-viewer.js embedFrame, Henk's D2,
   2026-10-20). The name card stands where the caption docks, which hides while it stands */
.tv.google.embed .gmap { top: auto; height: calc(100% + var(--gshift, 0px)); }
/* and on every upright phone (Henk's D1, 2026-10-26): mid-frame, clear of the camera's pad, the name
   covered the plot the pass ends on */
.tv.google.phone:not(.wide) .ncard { top: auto; bottom: 104px; transform: translateX(-50%); }
/* the 4:5 embed docks its card, and so its name card, where the bake that fitted the band above them put
   it (google.embed.dock_px, set as --gdock): just above the chips since 2026-10-29 (Henk: at 160 px a band
   of map stood between the card and the chips, and the land had a slit), 160 px on a tour baked before */
.tv.google.embed .cap.dock, .tv.google.embed .cap.pin { bottom: var(--gdock, 160px); }
.tv.google.phone.embed:not(.wide) .ncard { bottom: var(--gdock, 160px); }
/* in that frame the back pill is its round icon at the top left, its words kept for screen readers,
   so the middle of the band is the land's, the horizon's and the labels' (Henk's D4, 2026-10-21); and
   the card's title is 18 px, so the common titles stay on one line and the card at the height the bake
   fits (79 px with two lines under it; 21 px titles wrapped to 89-106 px: Henk's D5, measured at 357 px) */
.tv.google.embed .back { width: 44px; padding: 0; justify-content: center; }
.tv.google.embed .back #backTxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tv.google.embed .cap .t { font-size: 18px; }
.tv.google.phone.wide .cap .card { max-width: min(420px, calc(50vw - 52px)); max-width: min(420px, calc(50cqw - 52px)); }
/* a sideways phone inside a listing (under 375 px tall): while a drawn chapter is up the card is its
   title alone, and a tap shows the second line (tour-viewer.js FOLD_MAX_H, Henk's D10) */
.tv.google.fold .cap.dock { pointer-events: auto; cursor: pointer; }
/* folded, the card is one line whatever the frame (the title ellipsed, never wrapped to the two lines
   the fold exists to save), a 44 px target (U5), and a chevron says it opens; still inside the 53 px
   the bake's short band leaves it (design review and Henk's D9, 2026-10-18) */
.tv.google.fold .cap.dock .card { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.tv.google.fold .cap.dock .t { min-width: 0; }
.tv.google.fold .cap.dock #capT { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv.google.fold .cap.dock .t::after { content: ""; flex: none; align-self: center; width: 7px; height: 7px; margin: 0 2px 4px 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .85; }
.tv.google.fold .cap.dock .s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* out of sight, still read out */
/* no scrim in Google mode: it darkened Google's logo and data credit at the bottom (their rule: never
   covered); the chips and the card carry their own grounds */
.tv.google.phone::after { display: none; }
/* the desktop chapter list stops above Google's logo row on a short frame (a 16:9 900 x 506 embed) */
.tv.google.desk .side { max-height: calc(100% - 64px - 48px); overflow-y: auto; scroll-padding-bottom: 15%; }  /* focus stops above the faded foot */
/* a frame under ~330 px (a 360 px phone with page gutters): the mark shrinks so its (i), the only
   way to the sources and the disclaimer, stays on screen; the rule never moves closer to Google's logo */
@media (max-width: 340px) {
  .tv.google .gmark { gap: 9px; padding-left: 12px; }
  .gmark .powered { font-size: 15px; }
}
/* and again under ~316 px (a 360 px phone with 24-30 px page gutters), so the (i) still ends inside */
@media (max-width: 316px) {
  .tv.google .gmark { gap: 6px; padding-left: 9px; }
  .gmark .powered { font-size: 13px; }
}
/* the caption's close x (Henk, 2026-10-27): the card stays closed while the pass plays on, and a chapter
   chosen from the chips or the list, or a fresh pass, brings it back (tour-viewer.js, .capoff). A badge on the
   card's top-right corner, its centre on the corner, so the card's text keeps its full width: inside the card
   it cost 26 px of it, and the 4:5 embed's card grew past the height its bake is fitted to (D1, 2026-10-28) */
.cap .card { position: relative; }
.capx { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: var(--pill-bg); color: var(--cream); font: 600 16px/24px var(--sans); text-align: center; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: visibility 0s; }
.capx::after { content: ""; position: absolute; inset: -10px; }   /* a 44 px target under a finger */
@media (hover: hover) { .capx { transition: background-color .2s ease, visibility 0s; } .capx:hover { background-color: rgba(44,48,44,.86); } }
/* the x takes taps of its own, so a card that is not shown takes it away: visibility, never opacity alone,
   or an invisible 44 px target stood over the map and in the Tab order. A card hiding on its own (its anchor
   under the chrome, the name card standing, a reader's zoom) loses its x once its 0.3 s fade is over. A card
   closed on the x goes from sight at once, and its x keeps its spot 0.4 s more, so the second press of a
   double-click lands on the x rather than on the map under it, which ended the guided pass and, on our own
   engine, zoomed the camera in (red team, 2026-10-28). Folded (a sideways phone), the one-line card takes no
   x: its 44 px target lay over the chevron that says the card opens (design review, 2026-10-28), and a chip
   or the unfolded card brings the close back */
.cap.hide .capx, .tv.named .capx, .tv.zoomed .capx, .tv.google.fold .cap.dock .capx { visibility: hidden; transition: visibility 0s .3s; }
.tv.capoff .cap { opacity: 0; visibility: hidden; transition: visibility 0s .4s; }


/* ---- the flyover pacing (2026-10-19, after City 3D) ----
   The place's name, big, over the opening view and again on the last frame (over the middle of a
   desk frame, at the foot of an upright phone, at the left of a sideways one); one bold label per
   stop on the Google tour, its fact as one small line under it. */
.ncard { position: absolute; z-index: 3; left: 50%; top: 30%; transform: translate(-50%, -50%); width: min(92%, 560px);
         text-align: center; pointer-events: none; transition: opacity .9s ease; }
.ncard.gone { opacity: 0; }
.tv.named .cap, .tv.google.named.fold .cap.dock { opacity: 0; pointer-events: none; }   /* one name on screen at a time: the card's, not the caption's too; a hidden card takes no tap */
/* the reader's own zoom in: the land, not the caption over it (tour-viewer.js zoomAt; Henk, 2026-10-20) */
.tv.zoomed .cap, .tv.google.zoomed.fold .cap.dock { opacity: 0; pointer-events: none; }
.ncard[hidden] { display: none; }
.ncard p { margin: 0; color: var(--cream); text-shadow: 0 2px 6px rgba(0,0,0,.7), 0 0 22px rgba(0,0,0,.45); }
.ncard .nm { font: 800 clamp(26px, min(6.4vw, 11vh), 44px)/1.08 var(--sans); font-size: clamp(26px, min(6.4cqw, 11vh), 44px); letter-spacing: -.01em; overflow-wrap: break-word; }
.ncard .nh { margin-top: 10px; font: 600 clamp(14px, 3.4vw, 19px)/1.25 var(--sans); font-size: clamp(14px, 3.4cqw, 19px); }
.ncard .nh[hidden] { display: none; }
/* on a desk the card stands over the map, right of the chapter list and clear of the camera's pad; a
   phone held sideways (52 px top bar, ~300 px tall) takes it lower, clear of the bar, and at the left,
   in the room left of the pad: centred, it gave the name 92-272 px on frames under ~780 px wide, where
   a long name overflowed toward the pad (ship review, 2026-10-20 and 2026-10-26) */
.tv.desk .ncard { left: calc(50% + 94px); width: min(calc(100% - 492px), 560px); }
.tv.wide .ncard { top: 42%; left: 12px; transform: translateY(-50%); width: min(440px, calc(100% - 168px)); }
/* the back pill ("Replay tour" at the end) waits the ~3.5 s the name stands (nameCard(3500)), and any tap
   drops both: held sideways it stands where the left-hand card does (Henk's D5, 2026-10-26), and on a desk
   the name's first letters ran into it (a German pill at 900 x 506: Henk's D10, every frame). A pill that
   holds the keyboard's focus stays, and the name gives way to it instead (pass-4 design review) */
.tv.named .back:not(:focus) { visibility: hidden; }
.tv.named:has(.back:focus) .ncard { opacity: 0; }
/* a short desk frame (a banner embed) hangs the card from under the top bar rather than centring it, and
   caps the name's size by the frame's height: centred at 30% a name of three lines rose under the bar
   from 440 px of frame down (measured in Chrome: ink from 43 px at 900 x 360; pass-3 design review) */
@media (max-height: 439px) {
  .tv.desk .ncard { top: 64px; transform: translateX(-50%); }
  .tv.desk .ncard .nm { font-size: clamp(22px, min(6.4vw, 9vh), 44px); font-size: clamp(22px, min(6.4cqw, 9vh), 44px); }
}
/* a short frame lays the camera's pad in a row (220 px wide, top right, + and - under it on a desk):
   the card keeps clear of it; held sideways it hangs from under the top bar too, and its name is capped
   as on a short desk (three lines centred at 42% rose to 41 px at 568 x 320) */
@media (max-height: 359px) {
  .tv.wide .ncard { top: 60px; transform: none; width: min(440px, calc(100% - 260px)); }
  .tv.wide .ncard .nm { font-size: clamp(22px, min(6.4vw, 9vh), 44px); font-size: clamp(22px, min(6.4cqw, 9vh), 44px); }
  /* between the chapter list and the pad's row: centred, a 900 px banner gave the card 232 px and its
     seventh line met the call button, since removed (pass-4 design review) */
  .tv.desk .ncard { left: 256px; right: 240px; width: auto; transform: none; }
}
/* an upright phone frame under 500 px tall that is not the 4:5 embed its bake fitted (a Google tour baked
   before 2026-10-21, framed at 4:5 on a phone, or our own engine there): the card docked over the call
   (Google's chapter card, our own engine's under 420 px) rose up to 34 px into the cross's foot (measured
   2026-10-26), so the pad lies in its row and the back pill is its round icon, as in the embed. The call
   went on 2026-10-27 and the card stands lower; the rule is kept until the frame is measured again */
@media (max-height: 499px) {
  .tv.phone:not(.wide):not(.embed) .pad { grid-template-columns: repeat(5, 44px); grid-template-rows: 44px; }
  .tv.phone:not(.wide):not(.embed) #bLeft { grid-area: 1 / 1; }
  .tv.phone:not(.wide):not(.embed) #bUp { grid-area: 1 / 2; border-radius: 0; }
  .tv.phone:not(.wide):not(.embed) #bCompass { grid-area: 1 / 3; }
  .tv.phone:not(.wide):not(.embed) #bDown { grid-area: 1 / 4; border-radius: 0; }
  .tv.phone:not(.wide):not(.embed) #bRight { grid-area: 1 / 5; }
  .tv.phone:not(.wide):not(.embed) .back { width: 44px; padding: 0; justify-content: center; }
  .tv.phone:not(.wide):not(.embed) .back #backTxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* the 4:5 embed itself under 460 px tall (the homepage on an iPhone narrower than 414 px: its frame is the
   phone's width less 40 px): the docked card (79 px, 99 with a two-line title) met the cross's foot, 16 px
   on a 375 px iPhone, so the pad lies in its row there too (Henk's D2, 2026-10-26) */
@media (max-height: 459px) {
  .tv.phone.embed:not(.wide) .pad { grid-template-columns: repeat(5, 44px); grid-template-rows: 44px; }
  .tv.phone.embed:not(.wide) #bLeft { grid-area: 1 / 1; }
  .tv.phone.embed:not(.wide) #bUp { grid-area: 1 / 2; border-radius: 0; }
  .tv.phone.embed:not(.wide) #bCompass { grid-area: 1 / 3; }
  .tv.phone.embed:not(.wide) #bDown { grid-area: 1 / 4; border-radius: 0; }
  .tv.phone.embed:not(.wide) #bRight { grid-area: 1 / 5; }
}
@media (prefers-reduced-motion: reduce) { .ncard { transition: none; } }
.tv.google .cap .card { max-width: min(360px, calc(100vw - 32px)); max-width: min(360px, calc(100cqw - 32px)); padding: 10px 14px 11px; }
.tv.google .cap .t { font: 800 21px/1.12 var(--sans); letter-spacing: -.005em; }
.tv.google .cap .s { font: 500 13px/1.3 var(--sans); margin-top: 4px; }
.tv.google.fold .cap .t { font-size: 16px; }
/* an upright phone: the camera's pad at two thirds of its size in the bottom right corner, over the
   chapter row and clear of the middle of the picture. At the top right, full size, it covered the
   house, the plot, the sea's label or the airport's pin in most chapters of the 19 UK demos (Henk,
   2026-10-28). It stays a cross at any height there, so it overrides the short-frame rows above, and
   the docked card and the name card stand left of it */
.tv.phone:not(.wide) .navc { top: auto; bottom: 102px; right: 10px; }
.tv.phone:not(.wide) .navc .pad { grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(3, 30px); }
.tv.phone:not(.wide) .navc .pad .nb { width: 30px; height: 30px; }
.tv.phone:not(.wide) .navc .pad .nb svg { width: 16px; height: 16px; }
.tv.phone:not(.wide) .navc .pad .nb.tilt svg, .tv.phone:not(.wide) .navc .pad .nb.turn svg { width: 12px; height: 12px; }
.tv.phone:not(.wide) .navc #bUp { grid-area: 1 / 2; border-radius: 15px 15px 0 0; }
.tv.phone:not(.wide) .navc #bLeft { grid-area: 2 / 1; border-radius: 15px 0 0 15px; }
.tv.phone:not(.wide) .navc #bCompass { grid-area: 2 / 2; }
.tv.phone:not(.wide) .navc #bRight { grid-area: 2 / 3; border-radius: 0 15px 15px 0; }
.tv.phone:not(.wide) .navc #bDown { grid-area: 3 / 2; border-radius: 0 0 15px 15px; }
.tv.phone:not(.wide) .cap.dock, .tv.phone:not(.wide) .cap.pin { left: 12px; transform: none; }
.tv.phone:not(.wide) .cap .card { max-width: min(300px, calc(100vw - 126px)); max-width: min(300px, calc(100cqw - 126px)); }
.tv.google.phone:not(.wide) .cap .card { max-width: min(360px, calc(100vw - 126px)); max-width: min(360px, calc(100cqw - 126px)); }
.tv.google.phone:not(.wide) .ncard { left: 12px; transform: none; width: calc(100% - 126px); }
/* on a phone the agency's logo is a little larger: a wide logo, or one on its own dark
   ground, could not be read at 24 px (Henk, 2026-10-28); the place name gives way */
.tv.phone .plate { padding: 4px 8px; }
.tv.phone .plate img { height: 30px; max-width: 150px; }
.tv.phone .plate.none img { height: 36px; }
/* beside the logo on an upright phone the place name had room for a few letters ("Portn...", "The ..."):
   it leaves the bar there, kept for a screen reader; the name card and the first card name the place */
.tv.phone:not(.wide):not(.clean) .plate:not([hidden]) + .where { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* a title that wraps does so evenly, never one word alone on its second line ("The view from 200 ft / up") */
.cap .t #capT, .ncard .nm { text-wrap: balance; }
