/* The full-screen walkthrough page's blog furniture (src/assets/walkthroughs/<id>/index.html is the owner's artifact and
   stays byte for byte as delivered; scripts/walkthrough.cjs adds the tags that load this file and
   walkthrough-page.js to its copy in _site only). Three things, from the live check of 2026-11-15:
   - the view transition opt-in, as every blog page has in its head (base.njk): the post opts in, so a navigation from it
     to a page that does not was aborted with "ViewTransition opt-in disabled", an uncaught error on this page (m2);
   - a labelled way back to the post on the full-screen page (m3), never inside the post's own frame;
   - on a phone, one height for the player at every step (house rule: one height per layout, so a press moves no
     control). The page's phone layout is as tall as each step's words, so Back and Next moved up to about 190px between
     steps (m1). Here the player is held to its tallest step and the caption box takes the spare room, so the
     controls sit at one place: full screen, at the bottom of the window (they are sticky there already when a step is
     taller); in the post's frame, at the bottom of the frame, which the page sizes to its tallest step. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.wt-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-bottom: 8px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}
.wt-back svg { width: 16px; height: 16px; flex: none; }
.wt-back:hover { border-color: var(--muted); }
.wt-back:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
html.wt-has-back { --wt-bar: 44px; }
/* desktop and medium layouts fill the window: the back link's row comes out of the player's height */
@media (min-width: 760px) {
  html.wt-has-back .tv { height: calc(100vh - 24px - var(--wt-bar)); height: calc(100dvh - 24px - var(--wt-bar)); }
}

@media (max-width: 759px) {
  .tv-capbox { flex: 1 0 auto; }
  /* full screen: tall enough that Back and Next, sticky at the window's bottom, are never lifted above it by a short
     step; the footer under them (--wt-foot: its height, the gap above it and the player's bottom edge, set by walkthrough-page.js) is added so their own place in
     the flow reaches the window's bottom too */
  html:not(.embedded) .tv {
    min-height: calc(100vh - 8px - var(--wt-bar, 0px) + var(--wt-foot, 0px));
    min-height: calc(100dvh - 8px - var(--wt-bar, 0px) + var(--wt-foot, 0px));
  }
  /* in the frame, 100vh is the frame, which the page sizes to its tallest step; .wt-steady is off while the page
     measures that height (walkthrough-page.js), so the hold never feeds the measurement */
  html.embedded.wt-steady .tv { min-height: calc(100vh - 8px); }
}
