/* Step-through visuals (tour.js; wireframe docs-sections-2026-11-10.md, section 4). Spacing on 4, 8, 12, 16, 24. */
.tour { margin: 24px 0 8px; }
.tour-stage { position: relative; overflow: hidden; width: 100%; aspect-ratio: 720 / 414; border: 1px solid var(--border);
  border-radius: 12px; background: var(--panel-alt); }
.tour-cam { position: absolute; left: 0; top: 0; transform-origin: 0 0;
  transition: transform 500ms cubic-bezier(0.77, 0, 0.175, 1); will-change: transform; }
.tour-cam img { display: block; width: 100%; height: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.tour-ring { position: absolute; border: var(--rw, 2px) solid var(--accent); border-radius: var(--rr, 6px);
  box-shadow: 0 0 0 9999px var(--scrim); pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.tour-ring[hidden] { display: block; opacity: 0; }
.tour-drawn { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: var(--panel);
  color: var(--text); font-size: 12px; font-weight: 600; line-height: 20px; }
.tour-drawn[hidden] { display: none; }
.tour-text { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 0; }
.tour-text[hidden] { display: none; }
.tour-pill { flex-shrink: 0; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text);
  font-size: 12px; font-weight: 600; line-height: 20px; }
.tour-pill[hidden] { display: none; }
.tour-list { margin: 12px 0 0; padding-left: 20px; color: var(--soft); }
.tour.js .tour-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .tour-cam { transition: none; } }
@media (max-width: 600px) {
  .tour-stage { aspect-ratio: auto; height: 420px; }
}
.tour-still .tour-cam, .tour-still .tour-ring { transition: none; }
/* Review 2 (22 Nov): the stage's edge fade is gone; it clipped the first letters of lines. */
.tour-drawn { z-index: 1; }
/* Play and pause (15 Nov 2026): the whole picture is the control. Back, Play/Pause/Replay and Forward are the shared player
   under it (autoplay-steps.css, 23 Nov 2026); no counter, no dots. */
.tour.js .tour-stage { cursor: pointer; }
/* A title and one line of purpose above the stage (22 Nov 2026, blind review: no frame named the screen). */
.tour-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--text); }
.tour-purpose { margin: 4px 0 12px; font-size: 14px; line-height: 20px; color: var(--soft); max-width: 60ch; }
.tour { scroll-margin-top: 80px; }
