/* /videodelay/demo/ only. Builds on /styles.css (.theme-vd tokens, .doc). */
.vd-demo { width: min(1040px, 100% - 32px); }
.vd-demo > h1, .vd-demo > .sub, .vd-demo > .demo-lede, .vd-demo > .demo-label, .vd-demo > .demo-limits, .vd-demo > .callout, .vd-demo > p, .vd-demo > section[aria-label] { max-width: 760px; }
.vd-demo .demo-lede { font-size: 19px; margin-top: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.demo-label { margin-top: 24px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(185, 163, 255, .45); background: rgba(139, 92, 255, .12); }
.demo-label p { font-size: 15px; margin: 0; }
.demo-label p + p { margin-top: 8px; }
.theme-vd .doc .demo-label .demo-label-tag { color: #fff7e6; font-weight: 800; font-size: 16px; }

/* Walkthrough */
.walk { margin-top: 36px; }
.walk-index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: wi; }
.walk-index li { counter-increment: wi; margin: 0; }
.walk-index li + li { margin-top: 0; }
.theme-vd .doc .walk-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: rgba(255, 247, 230, .82); text-decoration: none; font-size: 15px; font-weight: 650; }
.walk-index a::before { content: counter(wi); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 247, 230, .1); font: 800 13px/1 var(--rounded); }
.theme-vd .doc .walk-index a:hover { border-color: var(--tint); color: #fff7e6; }
.theme-vd .doc .walk-index a[aria-current="step"] { border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--indigo)); color: #fff; }
.walk-index a[aria-current="step"]::before { background: rgba(255, 255, 255, .22); }

.walk-steps { list-style: none; margin: 0; padding: 0; }
.doc .walk-steps > li { margin: 0; }
.walk-step { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px 48px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.walk-step:first-child { margin-top: 24px; }
.walk.is-stepper .walk-step { border-top: 0; padding-top: 28px; }
.walk-step[hidden] { display: none; }
.walk-figure { margin: 0; }
.walk-figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cap-kind { display: block; font-weight: 700; color: rgba(255, 247, 230, .78); margin-bottom: 4px; }
.cap-key { display: inline-flex; align-items: center; gap: 6px; margin: 2px 12px 2px 0; }
.cap-key b, .hs b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #ffd23f; color: #0e0e10; font: 850 12px/1 var(--rounded); }

.shot { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 24px 60px -28px rgba(139, 92, 255, .55); }
.shot img { display: block; width: 100%; height: auto; }
.hs { position: absolute; border: 3px solid #ffd23f; border-radius: 14px; box-shadow: 0 0 0 3px rgba(14, 14, 16, .55), 0 0 22px rgba(255, 210, 63, .45); pointer-events: none; }
.hs b { position: absolute; top: -11px; left: -11px; box-shadow: 0 0 0 2px #0e0e10; }
.hs-a { left: 3%; top: 6.9%; width: 23.5%; height: 5.9%; }
.hs-b { left: 67.4%; top: 13%; width: 29.8%; height: 24.2%; }
.hs-c { left: 1.8%; top: 45.6%; width: 14.6%; height: 3.6%; }
.hs-d { left: 2.2%; top: 50.9%; width: 26.4%; height: 3.6%; }
.hs-e { left: 15%; top: 90%; width: 10.8%; height: 5.2%; border-radius: 50%; }
.hs-f { left: 63.8%; top: 89.3%; width: 33%; height: 6.6%; border-radius: 40px; }
.hs-g { left: 3.2%; top: 45.5%; width: 45.6%; height: 26.6%; border-radius: 20px; }
.hs-h { left: 53%; top: 77%; width: 40%; height: 4.4%; border-radius: 30px; }
.hs-i { left: 28.8%; top: 87.6%; width: 42.4%; height: 4.8%; }
.hs-j { left: 40.5%; top: 29.5%; width: 16.5%; height: 38%; }
.hs-k { left: 6%; top: 83.5%; width: 33.5%; height: 5.2%; }

.walk-num { font: 800 13px/1 var(--rounded); letter-spacing: .08em; text-transform: uppercase; color: var(--tint) !important; margin: 4px 0 10px; }
.vd-demo .walk-text h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
.vd-demo .walk-text h2:focus { outline: none; }
.vd-demo .walk-text h2:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.walk-text p { max-width: 36em; }
.walk-more { font-size: 15px; }

/* Illustrations */
.walk-illustration svg { display: block; width: 100%; height: auto; }
.ill-bg { fill: #18181b; stroke: rgba(255, 247, 230, .14); }
.ill-ground { stroke: rgba(255, 247, 230, .35); stroke-width: 2; }
.ill-figure circle, .ill-figure path { fill: none; stroke: #fff7e6; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ill-figure .ill-club { stroke: #b9a3ff; stroke-width: 4; }
.ill-cone { fill: rgba(139, 92, 255, .13); stroke: #8b5cff; stroke-width: 2; stroke-dasharray: 7 6; }
.ill-tripod rect { fill: #8b5cff; stroke: #fff7e6; stroke-width: 2; }
.ill-tripod path { stroke: #fff7e6; stroke-width: 3; stroke-linecap: round; fill: none; }
.ill-dim line, .ill-dim path, .ill-lead { stroke: rgba(255, 247, 230, .55); stroke-width: 1.5; fill: none; }
.ill-text { fill: rgba(255, 247, 230, .86); font: 600 14px var(--font); }
.ill-tag { fill: #ffd23f; font: 800 12px var(--rounded); letter-spacing: .08em; }
.ill-tv { fill: #0e0e10; stroke: #fff7e6; stroke-width: 3; }
.ill-tv-screen { fill: rgba(139, 92, 255, .22); }
.ill-tv-stand { stroke: #fff7e6; stroke-width: 3; stroke-linecap: round; fill: none; }
.ill-play { fill: #b9a3ff; }
.ill-on-screen { fill: #fff7e6; font-size: 13px; }
.ill-link { fill: none; stroke: #b9a3ff; stroke-width: 2.5; stroke-dasharray: 6 6; }

/* Stepper controls (added by demo.js) */
.walk-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.walk-controls button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #fff7e6; font: 700 15px/1 var(--font); cursor: pointer; }
.walk-controls button:hover:not(:disabled) { border-color: var(--tint); }
.walk-controls button:disabled { opacity: .4; cursor: default; }
.walk-controls .walk-next { background: linear-gradient(135deg, var(--violet), var(--indigo)); border-color: transparent; color: #fff; }
.walk-controls .walk-all { margin-left: auto; background: transparent; }
.walk-status { font-size: 14px; color: var(--muted); margin: 0 4px; }
.walk-hint { flex-basis: 100%; font-size: 13px; color: var(--muted); margin: 0; }
.walk:not(.is-stepper) .walk-status, .walk:not(.is-stepper) .walk-hint { display: none; }

.demo-limits { margin-top: 40px; }
.demo-limits ul { margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .walk.is-stepper .walk-step:not([hidden]) { animation: walk-in .28s ease-out; }
  .hs { animation: hs-pulse 2.4s ease-in-out infinite; }
}
@keyframes walk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hs-pulse { 50% { box-shadow: 0 0 0 3px rgba(14, 14, 16, .55), 0 0 4px rgba(255, 210, 63, .2); } }

@media (max-width: 720px) {
  .walk-step { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .walk-figure { width: min(300px, 78vw); margin-inline: auto; }
  .walk-index ol { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .walk-index li { flex: none; scroll-snap-align: start; }
  .walk-controls .walk-all { margin-left: 0; }
}
@media print { .walk-controls { display: none; } .walk-step[hidden] { display: grid !important; } }

/* `.theme-vd .doc a` (tint) overrides `.theme-vd .button` text color in guide callouts site-wide. Scoped fix here. */
.theme-vd .doc a.button { color: #fff; text-decoration: none; }
