/* R14 · Walk, "the camera, not the diagram". Loaded after css/r13/idle.css; everything is under html.r13 body #lv-walk (?r13=0 keeps the old sheets).
   The plan fills the level (no box, no radius, no shadow: the page's paper is the canvas). Inside it:
     .wk-crop   the window (overflow hidden)
     .wk-cam    the camera layer: the plan's images and the route, moved by TRANSFORM ONLY (js/modes.js go()). It is laid out at the largest plan width any stop uses and only ever scaled down,
                so the plan stays sharp. No filter, no backdrop-filter, no animated mask anywhere on it.
     .wk-stop   the medallions and .wk-walker sit OUTSIDE the camera layer, at screen scale (one transform each per camera tick)
   The card (picture, ticks, words, Prev / Next), the plan switch, the top chrome and the orb float over it; paper-coloured gradients (.wk-soft) let the plan recede behind them. */

html.r13 body #lv-walk { --wk-paper: var(--mf-paper, #f1f1ef); --wk-ink: #16161b;
  --wk-cw: clamp(calc(280px * var(--ui-scale)), 24vw, calc(380px * var(--ui-scale))); }
html.r13 body #lv-walk .wk-probe { position: absolute; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none; transition: none !important; animation: none !important; }
html.r13 body #lv-walk .wk-stage { position: absolute; inset: 0; overflow: hidden; overflow: clip; }   /* clip, not hidden: a clipped box that is only "hidden" can still be scrolled by focus, which slid the plan out of register */

/* ---- the plan, the window, the camera layer ---- */
html.r13 body #lv-walk .wk-plan { position: absolute; z-index: 1; inset: 0; width: auto; height: auto; display: block; container-type: normal; background: none; border-radius: 0; box-shadow: none; overflow: hidden; overflow: clip; }
html.r13 body #lv-walk .wk-crop { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; overflow: hidden; overflow: clip; z-index: 1; isolation: isolate; }
html.r13 body #lv-walk .wk-cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
html.r13 body #lv-walk .wk-frame { position: absolute; }
html.r13 body #lv-walk .wk-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; user-select: none; -webkit-user-drag: none; }
/* the colour plan over the quiet one: a box around the stop's ellipse, a radial mask on it (set while it is invisible, never animated), opacity the only thing that moves */
html.r13 body #lv-walk .wk-bloom { position: absolute; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html.r13 body #lv-walk .wk-colour { position: absolute; display: block; max-width: none; -webkit-user-drag: none; }
/* the route, in three parts so a moving walker repaints only its own leg: the whole route faint (.wk-route, static), the legs already walked at 40% ink (.rt-walked, static, no casing), and the live leg solid ink over
   a thin paper casing in a small svg of its own (.wk-leg, positioned on the leg's box by js/modes.js legSet); only that one's dash moves */
html.r13 body #lv-walk .wk-route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; will-change: transform; }
html.r13 body #lv-walk .wk-leg { position: absolute; overflow: visible; pointer-events: none; z-index: 2; will-change: transform; }
html.r13 body #lv-walk .rt-ahead { stroke: rgba(22, 22, 27, .22); stroke-linecap: round; stroke-linejoin: round; }
html.r13 body #lv-walk .rt-walked { stroke: rgba(22, 22, 27, .4); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; }
html.r13 body #lv-walk .rt-case { stroke: rgba(247, 247, 245, .92); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 99999; }
html.r13 body #lv-walk .rt-ink { stroke: var(--wk-ink); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 99999; }
html.r13 body #lv-walk .wk-walker { position: absolute; left: 0; top: 0; z-index: 5; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--wk-ink); box-shadow: 0 0 0 2px rgba(247, 247, 245, .95); opacity: 0; pointer-events: none; will-change: transform; transition: opacity .2s ease-out; }
html.r13 body #lv-walk .wk-walker.on { opacity: 1; }

/* ---- the medallions (outside the camera layer: they keep their real size at any zoom) ---- */
html.r13 body #lv-walk .wk-stop { left: 0; top: 0; z-index: 3; will-change: transform; transition: opacity .16s ease-out; }
/* a stop that is off the free rect at the camera's target (under the card, the plan switch, the orb or the chrome, or off screen) steps aside: no touch, out of the tab order (js/modes.js placeLabels); the whole-site view shows all */
html.r13 body #lv-walk .wk-stop.wk-off { opacity: 0; pointer-events: none; }
/* the one ambient loop on this page: a slow quiet ring on the current stop, still while the camera moves */
html.r13 body #lv-walk .wk-stop::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2.1rem; height: 2.1rem; margin: -1.05rem 0 0 -1.05rem; border-radius: 50%; border: 1.5px solid rgba(22, 22, 27, .5); opacity: 0; pointer-events: none; }
html.r13 body #lv-walk .wk-stop.on::before { animation: wk-ring 3.8s cubic-bezier(.2, .6, .3, 1) infinite; }
html.r13 body.clean #lv-walk .wk-stop.on::before { animation-play-state: paused; }   /* idle (body.clean): the one ambient loop rests (chrome.css:201 names classes that no longer exist) */
html.r13 body #lv-walk.wk-moving .wk-stop.on::before { animation: none; }
@keyframes wk-ring { 0% { transform: scale(1.15); opacity: .55; } 72%, 100% { transform: scale(2.3); opacity: 0; } }
/* names wait until the camera has landed */
html.r13 body #lv-walk.wk-moving .wk-stop .wk-lab { opacity: 0 !important; transition-duration: .1s; }

/* ---- photo mode (Today / On completion): a paper layer fades over the plan and the picture sits on it whole (never cropped: it carries a disclaimer banner that must stay readable),
   centred in the free rect, with the card's radius, no fog; js/ux/walk.js photoFit sizes it. The caption (same words) sits directly under it. The plan, medallions, route and walker step aside ---- */
html.r13 body #lv-walk .wk-photos { position: absolute; inset: 0; z-index: 3; border-radius: 0; box-shadow: none; background: var(--wk-paper); opacity: 0; overflow: hidden; overflow: clip; pointer-events: none; }
html.r13 body #lv-walk .wx-fade { position: absolute; inset: 0; }
html.r13 body #lv-walk .wx-fade img { position: absolute; inset: auto; max-width: none; object-fit: contain; border-radius: var(--r-card); box-shadow: var(--q-pop-sh); }
html.r13 body #lv-walk.wx-photo .wk-clip::after { left: var(--wk-cl, 1rem); top: var(--wk-ct, 5rem); bottom: auto; z-index: 6; padding: 0 2px; border-radius: 0; background: none; color: rgba(22, 22, 27, .62); font: 600 max(.8rem, 12.5px)/1.2 var(--sans); white-space: nowrap; }
html.r13 body #lv-walk.wx-photo .wk-walker, html.r13 body #lv-walk.wx-photo .wk-leg { opacity: 0; }

/* ---- soft edges: paper, easing out to nothing in eight steps (a smoothstep, so no straight edge shows at any size, over the grey road too), under the top chrome, behind the rail and the card, and under the plan switch and the orb.
   Fixed layers, no blur. They sit inside the window, between the plan and the medallions, so the medallions are never washed out ---- */
html.r13 body #lv-walk .wk-soft { position: absolute; z-index: 2; pointer-events: none; transition: opacity .32s var(--ease-out, ease-out); }
html.r13 body #lv-walk .wk-soft-t { left: 0; right: 0; top: 0; height: calc(var(--top-row) + var(--q-ctl) + var(--safe-t) + var(--s8)); background: linear-gradient(to bottom, var(--wk-paper) 0, var(--wk-paper) 50%, rgba(241, 241, 239, 0.957) 56.25%, rgba(241, 241, 239, 0.844) 62.50%, rgba(241, 241, 239, 0.684) 68.75%, rgba(241, 241, 239, 0.5) 75.00%, rgba(241, 241, 239, 0.316) 81.25%, rgba(241, 241, 239, 0.156) 87.50%, rgba(241, 241, 239, 0.043) 93.75%, rgba(241, 241, 239, 0) 100.00%); }
html.r13 body #lv-walk .wk-soft-l { left: 0; top: 0; bottom: 0; width: calc(var(--wk-soft, 0px) + 200px); background: linear-gradient(to right, var(--wk-paper) 0, var(--wk-paper) calc(var(--wk-soft, 0px) - 20px), rgba(241, 241, 239, 0.957) calc(var(--wk-soft, 0px) + 7px), rgba(241, 241, 239, 0.844) calc(var(--wk-soft, 0px) + 35px), rgba(241, 241, 239, 0.684) calc(var(--wk-soft, 0px) + 62px), rgba(241, 241, 239, 0.5) calc(var(--wk-soft, 0px) + 90px), rgba(241, 241, 239, 0.316) calc(var(--wk-soft, 0px) + 117px), rgba(241, 241, 239, 0.156) calc(var(--wk-soft, 0px) + 145px), rgba(241, 241, 239, 0.043) calc(var(--wk-soft, 0px) + 172px), rgba(241, 241, 239, 0) calc(var(--wk-soft, 0px) + 200px)); }
html.r13 body #lv-walk .wk-soft-b { left: 0; right: 0; bottom: 0; height: calc(var(--wk-sbh, 120px) + 96px); background: linear-gradient(to top, var(--wk-paper) 0, var(--wk-paper) var(--wk-sbh, 120px), rgba(241, 241, 239, 0.957) calc(var(--wk-sbh, 120px) + 12px), rgba(241, 241, 239, 0.844) calc(var(--wk-sbh, 120px) + 24px), rgba(241, 241, 239, 0.684) calc(var(--wk-sbh, 120px) + 36px), rgba(241, 241, 239, 0.5) calc(var(--wk-sbh, 120px) + 48px), rgba(241, 241, 239, 0.316) calc(var(--wk-sbh, 120px) + 60px), rgba(241, 241, 239, 0.156) calc(var(--wk-sbh, 120px) + 72px), rgba(241, 241, 239, 0.043) calc(var(--wk-sbh, 120px) + 84px), rgba(241, 241, 239, 0) calc(var(--wk-sbh, 120px) + 96px)); }
html.r13 body #lv-walk.wx-photo .wk-soft { opacity: 0; }

/* ---- the card ---- */
html.r13 body #lv-walk .wk-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; background-color: #fff; border-radius: var(--r-card); box-shadow: var(--q-pop-sh); pointer-events: auto; }
html.r13 body #lv-walk .wk-hero { position: relative; flex: none; aspect-ratio: 16 / 9; background: rgba(22, 22, 27, .06); }
html.r13 body #lv-walk .wk-hero.no-ph { aspect-ratio: auto; height: 44px; background: none; }
html.r13 body #lv-walk .wk-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 88px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(10, 12, 20, .78), rgba(10, 12, 20, .4) 45%, rgba(10, 12, 20, 0)); }   /* the unreached ticks stay at 3:1 or better over a bright sky */
html.r13 body #lv-walk .wk-hero.no-ph::after { display: none; }
html.r13 body #lv-walk .wk-ph { position: absolute; inset: 0; display: block; overflow: hidden; }
html.r13 body #lv-walk .wk-ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
html.r13 body #lv-walk .wk-ticks { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; gap: 0; height: 44px; padding: 0 8px; pointer-events: none; }
html.r13 body #lv-walk .wk-ticks i { position: relative; flex: 1 1 0; min-width: 44px; height: 44px; align-self: auto; background: none; pointer-events: auto; cursor: pointer; touch-action: manipulation; }
html.r13 body #lv-walk .wk-ticks i::before { content: ""; position: absolute; left: 3px; right: 3px; top: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 .5px rgba(10, 12, 20, .22); transition: background-color 160ms var(--mc-ease-fade, ease); }
html.r13 body #lv-walk .wk-ticks i.done::before { background: rgba(255, 255, 255, .92); }
html.r13 body #lv-walk .wk-ticks i.on::before { background: #fff; }
html.r13 body #lv-walk .wk-hero.no-ph .wk-ticks i::before { background: rgba(22, 22, 27, .16); }
html.r13 body #lv-walk .wk-hero.no-ph .wk-ticks i.done::before, html.r13 body #lv-walk .wk-hero.no-ph .wk-ticks i.on::before { background: var(--wk-ink); }
html.r13 body #lv-walk .wk-main { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
html.r13 body #lv-walk .wk-main::-webkit-scrollbar { display: none; }
html.r13 body #lv-walk .wk-body { gap: var(--s2); padding: var(--s4) var(--s5) var(--s2); }
html.r13 body #lv-walk .wk-pts { gap: 2px; margin: 0; }
html.r13 body #lv-walk .wk-pts li { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; color: rgba(22, 22, 27, .62); }
html.r13 body #lv-walk .wk-chips { gap: 4px; margin-top: 2px; }
html.r13 body #lv-walk .wk-chips span { padding: 6px 9px; border: 0; border-radius: 99px; background: rgba(22, 22, 27, .06); box-shadow: none; color: rgba(22, 22, 27, .8); font-weight: 500; }
html.r13 body #lv-walk .wk-chips .more { padding-inline: 0; margin-left: 2px; background: none; color: rgba(22, 22, 27, .5); }
html.r13 body #lv-walk .wk-nav { position: static; flex: none; background-color: #fff; }

/* ---- landscape: the card bottom-left (the page's content edge), the plan switch bottom right, left of the orb ---- */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body #lv-walk .wk-dock { position: absolute; z-index: 6; display: flex; align-items: flex-end; pointer-events: none;
    left: var(--edge-2); right: auto; width: var(--wk-cw); height: auto;
    top: calc(var(--top-row) + var(--q-ctl) + var(--s3) + var(--safe-t) + 10px); bottom: calc(var(--edge-1) + var(--safe-b)); }
  html.r13 body #lv-walk .wk-card { position: relative; left: auto; right: auto; bottom: auto; width: 100%; max-height: 100%; }
  html.r13 body #lv-walk .wx-when { position: absolute; top: auto; left: auto; translate: none; margin: 0; z-index: 7;
    right: calc(var(--edge-1) + var(--safe-r) + var(--orb-zone) + var(--s3)); bottom: calc(var(--edge-1) + var(--safe-b)); }
}
/* a short screen: a shorter picture, so the words fit without scrolling */
@media (min-width: 901px) and (orientation: landscape) and (max-height: 780px) { html.r13 body #lv-walk .wk-hero { aspect-ratio: 2 / 1; } }

/* ---- portrait (and anything the app lays out as portrait): the plan is a band on top, the card a sheet below ---- */
@media (orientation: portrait), (max-width: 900px) {
  html.r13 body #lv-walk { --wk-band: clamp(340px, 46vh, 820px); }
  html.r13 body #lv-walk .wk-plan { inset: 0 0 auto 0; height: var(--wk-band); }
  html.r13 body #lv-walk .wk-soft-l { bottom: auto; height: var(--wk-band); width: calc(var(--cx-left) + 140px); background: linear-gradient(to right, var(--wk-paper) 0, var(--wk-paper) calc(var(--cx-left) - 36px), rgba(241, 241, 239, 0.957) calc(var(--cx-left) + -14px), rgba(241, 241, 239, 0.844) calc(var(--cx-left) + 8px), rgba(241, 241, 239, 0.684) calc(var(--cx-left) + 30px), rgba(241, 241, 239, 0.5) calc(var(--cx-left) + 52px), rgba(241, 241, 239, 0.316) calc(var(--cx-left) + 74px), rgba(241, 241, 239, 0.156) calc(var(--cx-left) + 96px), rgba(241, 241, 239, 0.043) calc(var(--cx-left) + 118px), rgba(241, 241, 239, 0) calc(var(--cx-left) + 140px)); }   /* the band's left and lower edges are paper too (.wk-soft-b), not a cut */
  html.r13 body #lv-walk .wk-dock { position: absolute; z-index: 6; display: flex; align-items: flex-start; pointer-events: none; width: auto; height: auto;
    left: var(--cx-left); right: calc(var(--edge-1) + var(--safe-r)); top: calc(var(--wk-band) + var(--s3)); bottom: calc(var(--edge-1) + var(--safe-b) + var(--orb-zone) + var(--s2)); }
  html.r13 body #lv-walk .wk-card { position: relative; left: auto; right: auto; bottom: auto; width: 100%; max-height: 100%; border-radius: var(--r-sheet); }
  html.r13 body #lv-walk .wk-hero { aspect-ratio: auto; height: clamp(110px, 17vh, 210px); }
  html.r13 body #lv-walk .wx-when { position: absolute; left: var(--cx-left); right: auto; bottom: auto; translate: none; margin: 0; z-index: 7; top: calc(var(--wk-band) - var(--q-ctl) - var(--s7) - var(--s2)); }
}

@media (prefers-reduced-motion: reduce) {
  html.r13 body #lv-walk .wk-stop.on::before { animation: none; }
  html.r13 body #lv-walk .wk-walker, html.r13 body #lv-walk .wk-soft, html.r13 body #lv-walk .wk-ticks i::before { transition: none; }
}
