/* Preview-only additions over each complete existing tutorial. */
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preview-jump { color:var(--accent-ink); white-space:nowrap; font-size:13px; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-chapter {
  display:block!important; position:relative!important; inset:auto!important;
  width:100vw!important; max-width:none!important; height:240svh!important; min-height:0!important;
  margin:0 0 50px calc(50% - 50vw)!important; padding:0!important; overflow:visible!important;
}
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-stage {
  position:sticky; top:var(--preview-sticky-top,72px);
  width:100%; height:calc(100svh - var(--preview-sticky-top,72px)); overflow:hidden; background:var(--bg,#080610);
}
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-stage > .preserved-scroll-media {
  position:absolute!important; display:block!important; inset:auto!important;
  left:var(--preview-media-left,0)!important; top:var(--preview-media-top,0)!important;
  width:var(--preview-media-width,100%)!important; height:var(--preview-media-height,100%)!important;
  max-width:none!important; min-height:0!important; margin:0!important; padding:0!important;
  aspect-ratio:auto!important; box-sizing:border-box!important; background:#080610!important;
  border:var(--preview-frame,0) solid #302237!important; border-radius:var(--preview-radius,0)!important;
  overflow:hidden!important; transform:none!important;
}
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-media .backglass-motion { height:100%!important; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-media img,
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-media img.art,
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-media video {
  position:absolute!important; inset:0!important; width:100%!important; height:100%!important;
  max-width:none!important; max-height:none!important; min-height:0!important;
  margin:0!important; object-fit:contain!important; object-position:center!important;
  aspect-ratio:auto!important; transform:none!important; border-radius:0!important;
}
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-media video[hidden] { display:none!important; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-media button {
  position:absolute!important; top:auto!important; left:auto!important; bottom:12px!important; right:12px!important;
  margin:0!important; transform:none!important; padding:10px 16px!important; border-radius:30px!important;
  background:#0b0614e8!important; border:1px solid #e8dfef!important; color:#fff!important; font:13px system-ui!important; min-height:44px;
}
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-stage > .preserved-scroll-copy {
  position:absolute!important; inset:auto!important; left:64%!important; top:50%!important;
  transform:translateY(-50%)!important; width:31%!important; max-width:none!important;
  margin:0!important; padding:0!important; text-align:left!important; background:transparent!important;
  opacity:var(--preview-copy-opacity,0); visibility:var(--preview-copy-visibility,hidden);
}
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-copy h1 { font-size:clamp(32px,4.3vw,70px)!important; line-height:1.05!important; margin:14px 0 20px!important; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-copy p { font-size:16px!important; line-height:1.5!important; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-copy .button { font-size:14px!important; padding:12px 16px!important; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-step-picker { display:flex; gap:10px; flex-wrap:wrap; margin:30px 0; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-step-picker button { padding:12px 18px; border:1px solid var(--muted); background:var(--bg); color:var(--ink); border-radius:30px; font-size:15px; min-height:44px; }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-step-picker button[aria-pressed=true] { background:var(--ink); color:var(--bg); }
html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .picture-step[data-preview-selected=true] { outline:2px solid var(--accent-ink); outline-offset:8px; }
@media(max-width:700px) {
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] header.compact-library-nav { display:flex!important; flex-wrap:wrap!important; gap:4px 14px!important; padding:8px 5%!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] header.compact-library-nav > .guide-home { flex-basis:100%; padding:8px 0!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] header.compact-library-nav > a:not(.guide-home) { font-size:12px!important; padding:8px 0!important; min-height:36px; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .compact-library-nav .all-tables > summary { font-size:12px!important; padding:8px!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-stage > .preserved-scroll-copy {
    left:7%!important; top:var(--preview-copy-top,35%)!important; width:86%!important; transform:none!important;
  }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-copy h1 { font-size:34px!important; margin:8px 0 10px!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-copy p { font-size:14px!important; line-height:1.4!important; margin:8px 0!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-copy .kicker { font-size:10px!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-copy .button { font-size:12px!important; padding:10px 12px!important; }
}
@media(prefers-reduced-motion:reduce) {
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-chapter { height:auto!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-stage { position:static; height:auto; overflow:visible; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-stage > .preserved-scroll-media { position:relative!important; left:auto!important; top:auto!important; width:90%!important; height:auto!important; aspect-ratio:3/2!important; margin:0 auto!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] .preserved-scroll-stage > .preserved-scroll-copy { position:static!important; width:90%!important; transform:none!important; margin:30px auto!important; opacity:1; visibility:visible; }
}

/* Fit the complete real playfield below the persistent navigation. */
@media(min-width:701px) {
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map {
    grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1fr)!important;
    width:100%!important; max-width:none!important; margin-left:0!important;
    transform:none!important; align-items:start!important; gap:24px!important;
  }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map__field {
    position:sticky!important; top:var(--preview-field-top,145px)!important;
    grid-column:2!important; grid-row:1!important; align-self:start!important;
    height:auto!important; max-height:var(--preview-field-height,calc(100svh - 160px))!important;
    margin:0!important; padding:0!important; min-width:0!important;
  }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map__field > a {
    display:block!important; width:100%!important; margin:0!important;
  }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map__field img {
    display:block!important; position:static!important; width:auto!important; height:auto!important;
    max-width:100%!important; max-height:var(--preview-field-image-height,calc(100svh - 230px))!important;
    margin:0 auto!important; object-fit:contain!important; transform:none!important;
  }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map__field figcaption {
    padding:10px 0 0!important; margin:0!important; font-size:12px!important; line-height:1.4!important;
  }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map__side--left { grid-column:1!important; grid-row:1!important; }
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map__side--right { grid-column:3!important; grid-row:1!important; }
}
@media(min-width:701px) and (max-width:1100px) {
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map { gap:16px!important; }
}
/* Phones retain the whole image in the normal reading flow and its enlarge control. */
@media(max-width:700px) {
  html body[data-scroll-preview][data-scroll-preview][data-scroll-preview] main .shot-map__field img {
    width:auto!important; height:auto!important; max-width:100%!important;
    max-height:calc(100svh - var(--preview-field-top,170px) - 90px)!important;
    object-fit:contain!important; margin:0 auto!important;
  }
}
