/* The shortcuts are recordings of the real frontend. Keep the player quiet. */
/* The whole box fits one screen under the 72px sticky nav (owner: had to scroll to see a slide's title and the end
   of its recording, 2026-10-28): its width follows the screen height, so the 2040:1272 recording shrinks with it.
   --saver-chrome is everything that isn't the recording: the slide tabs, title, playback bar and padding. */
/* Sharpness (owner found the movie blurry, 2026-10-29): the movie is only crisp at exactly 1020×636 on whole pixels.
   A box that nearly fits (movie ≥ ~958px) snaps up to the full 1080 (movie 1020), overhanging the screen by at most
   ~38px; a 1080p browser lands on 991 otherwise. Half-pixel centring doesn't matter: the browser snaps video to
   whole pixels (measured). */
.saver-showcase { container: saver / inline-size; --saver-chrome: 236px; --saver-fit: calc((100svh - 72px - 24px - var(--saver-chrome)) * 2040 / 1272 + 58px); max-width: min(1080px, max(560px, var(--saver-fit), clamp(0px, (var(--saver-fit) - 1018px) * 1000, 1080px))); margin: 36px auto 0; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.saver-showcase [hidden] { display: none !important; }
.saver-showcase .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.saver-showcase svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.saver-panel { min-width: 0; padding: 20px 28px 0; }
.saver-panel + .saver-panel { border-top: 1px solid var(--line-soft); margin-top: 24px; }
.saver-showcase[data-ready] .saver-panel { border-top: 0; margin: 0; }
/* Slides share one grid cell, so the box keeps the tallest slide's height on every slide however each title wraps. */
.saver-showcase[data-ready] .saver-panels { display: grid; }
.saver-showcase[data-ready] .saver-panels > .saver-panel { grid-area: 1 / 1; }
.saver-showcase[data-ready] .saver-panels > .saver-panel[hidden] { display: block !important; visibility: hidden; }
.saver-copy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 24px; margin-bottom: 16px; }
.saver-copy h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.3; }
.saver-copy h3 > svg { width: 22px; height: 22px; color: var(--accent); }
.saver-copy p { max-width: 47ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
/* Example tabs, moved by the script into the playback bar under the movie. */
.saver-examples { display: flex; gap: 6px; min-width: 0; }
.saver-examples button { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--muted); font: 11px/1.4 var(--mono); cursor: pointer; }
.saver-examples button:hover { color: var(--text); background: var(--panel); }
.saver-examples button[aria-selected="true"] { border-color: var(--accent); color: var(--text); }
.saver-showcase:not([data-ready]) [data-saver-example-panel] + [data-saver-example-panel] { margin-top: 20px; }
/* content-box, so the aspect ratio applies inside the border: 1020×636 exactly, not 1018.8×635.2. */
.saver-media { position: relative; box-sizing: content-box; width: calc(100% - 2px); aspect-ratio: 2040 / 1272; overflow: hidden; background: #171c22; border: 1px solid var(--line); box-shadow: 0 8px 24px #0003; }
.saver-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
/* One tab per slide, named, so a visitor goes straight to the one they want. */
.saver-navigation { display: flex; border-bottom: 1px solid var(--line-soft); }
.saver-navigation button { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 54px; padding: 8px 12px; border: 0; background: transparent; box-shadow: inset 0 -2px transparent; color: var(--muted); font: 600 12px/1.3 var(--mono); cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
.saver-navigation button svg { width: 18px; height: 18px; }
.saver-navigation button:hover { background: var(--panel); color: var(--text); }
.saver-navigation button[aria-selected="true"] { box-shadow: inset 0 -2px var(--accent); color: var(--text); }
.saver-navigation button[aria-selected="true"] svg { color: var(--accent); }
.saver-showcase button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.saver-navigation button:focus-visible { outline-offset: -4px; }
.saver-playback { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 28px 14px; }
.saver-example-slot { min-width: 0; }
.saver-demo-controls { display: flex; flex: none; gap: 5px; }
.saver-demo-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer; }
.saver-demo-controls button:hover { color: var(--text); background: var(--panel); border-color: var(--line); }
.saver-demo-track { position: absolute; inset: auto 0 0; height: 2px; overflow: hidden; background: var(--line-soft); }
.saver-demo-track > span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.saver-media:fullscreen { box-sizing: border-box; display: grid; place-items: center; padding: 24px; background: #0e1116; border: 0; }
.saver-media:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .saver-panel { padding: 20px 12px 0; }
  .saver-copy { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; min-height: 164px; padding: 0 6px; margin-bottom: 16px; }
  .saver-copy p { font-size: .95rem; }
  .saver-copy h3 { gap: 10px; }
  .saver-navigation button { flex-direction: column; gap: 5px; padding: 8px 2px; min-height: 60px; font-size: 10px; }
  .saver-examples { gap: 4px; }
  .saver-examples button { padding: 6px 8px; font-size: 10px; white-space: nowrap; }
  .saver-playback { gap: 6px; padding: 10px 6px 12px 12px; }
  .saver-demo-controls { gap: 0; }
  .saver-demo-controls button { width: 32px; height: 40px; }
}
