/*
 * Modo impresión (index.html?print): un slide por página de 1920×1080,
 * todo en su estado final y las demos convertidas en tiras de pasos.
 */
@page { size: 1920px 1080px; margin: 0; }

html.print, html.print body { height: auto; overflow: visible; background: var(--amber); }
html.print *, html.print *::before, html.print *::after { animation: none !important; transition: none !important; }
html.print .viewport { position: static; }
html.print .stage { position: static; transform: none; height: auto; overflow: visible; box-shadow: none; background: none; }
html.print .slide {
  position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--amber);
  opacity: 1; visibility: visible; break-after: page; page-break-after: always;
}
html.print .frag, html.print .anatomy .frag { opacity: 1; transform: none; }
html.print .progress, html.print .hud, html.print .help, html.print .toolbar { display: none; }
html.print [pathLength] { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
html.print .current { box-shadow: none; }
html.print .pc-col li.current, html.print .practices article.current { box-shadow: none; }

/* Tiras de pasos */
.strip { display: grid !important; grid-template-columns: repeat(var(--cols, 5), 1fr); grid-template-rows: none !important; grid-auto-rows: auto; gap: 16px; align-content: start; }
.strip-title { grid-column: 1 / -1; margin: 0 0 4px; font-size: 30px; font-weight: 700; color: var(--paper); }
.thumb { position: relative; margin: 0; background: var(--navy-2); border-radius: 18px; padding: 12px 12px 10px; }
.thumb .tree { width: 100%; height: auto; aspect-ratio: 330 / 300; }
.thumb figcaption { text-align: center; font-size: 21px; color: var(--muted); margin-top: 4px; }
.thumb figcaption b, .thumb figcaption code { color: var(--paper); font-family: var(--font-code); }
.thumb-num {
  position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: grid; place-items: center; font: 700 20px var(--font-body);
}

/* Demo 1 */
.demo-ast.printing { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.demo-ast.printing .tree-card { display: grid; }

/* Demo 2 */
.demo-tac.printing { grid-template-columns: 1fr 600px; grid-template-rows: 1fr; }
.demo-tac.printing .strip-host { grid-column: 1; grid-row: 1; }
.demo-tac.printing .code-card { grid-column: 2; grid-row: 1; }
.demo-tac.printing .thumb .tree { aspect-ratio: 520 / 280; }
.demo-tac.printing .thumb figcaption { font-size: 26px; }

/* Demo 3 */
.demo-dag.printing { grid-template-rows: 1fr auto; }
.demo-dag.printing .caption-text span { white-space: nowrap; }

/* Demos 5–6 */
.demo-cf.printing .caption { align-items: flex-start; }
.notes { margin: 0; padding-left: 30px; font-size: 23px; line-height: 1.35; columns: 2; column-gap: 40px; }
.notes li { break-inside: avoid; margin-bottom: 4px; }

/* Slide 3 */
.demo-pipe.printing { grid-template-rows: auto auto 1fr; }
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; min-height: 0; }
.art-mini { padding: 16px 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; text-align: center; overflow: hidden; }
.art-mini .card-label { font-size: 16px; margin-bottom: 8px; align-self: flex-start; }
.art-mini .big-src { font-size: 30px; }
.art-mini .tokens { gap: 6px; }
.art-mini .tok { font-size: 17px; padding: 5px 8px; }
.art-mini .tree { width: 330px; height: 180px; }
.art-mini .tac.mid li { font-size: 22px; padding: 3px 6px; }
.art-mini .art-note { font-size: 17px; margin-top: 6px; }
.art-mini.p-ir { outline: 4px solid var(--gold); }

/* Slide 4 */
.demo-mxn[data-step="print"] .direct { opacity: .45; stroke-dasharray: .012 .012 !important; }
.demo-mxn[data-step="print"] .via { opacity: 1; }
.demo-mxn[data-step="print"] .mx-ir { opacity: 1; transform: none; }
