/* Print: light paper, the text only. Loaded with media="print" by reading pages and by the scene
   pages people print (whitepaper, foundation, about). The scene, the shell's header and menus, the
   scene controls and the cursor are hidden; link targets are printed after the link text;
   js/details.js opens every <details> before printing; tables, figures and code stay whole. */

@page { margin: 18mm 16mm; }
html, body { background: #fff !important; color: #111 !important; }
body { padding: 0 !important; font-size: 11pt; line-height: 1.5; }
:root { --paper: #fff; --paper-2: #f4f4f4; --ink: #111; --muted: #333; --muted-2: #555; --rule: #ccc; --accent: #111; --accent-ink: #111; --accent-dim: #999; --scrim: transparent; }

#scene, .scene-hud, .cursor, .skip-link, .site-head, .menu-sheet, .subnav, .copy-btn, .video-play, .toc { display: none !important; }
footer.site-foot { background: none !important; border-top: 1px solid #ccc; padding: 1rem 0 0 !important; margin: 2rem 0 0 !important; }
footer.site-foot .foot-list, footer.site-foot .foot-base ul, footer.site-foot svg { display: none !important; }
.foot-grid { display: block !important; }
.foot-col { margin-bottom: 0.5rem; }

/* motion off: no tilt, no reveal, no split headings, no drift */
*, *::before, *::after { animation: none !important; transition: none !important; }
.tilt, .hero > *, .split .c { transform: none !important; opacity: 1 !important; }
.will-reveal { opacity: 1 !important; }

/* no scrims, borders in grey, everything in one column at full width */
.panel, .path, .card, .item, .person, .callout, .download, .table-wrap, .triad, .proof, .start, .note, .fig.boxed, .tool, .specimen, .swatch {
  background: none !important; border-color: #ccc !important; box-shadow: none !important;
}
.wrap, .panel, .prose, .page-head { max-width: none !important; }
.chapter { padding-block: 1.2rem !important; }
.chapter[data-side="right"] .panel { margin-left: 0 !important; }
.hero { min-height: 0 !important; padding-block: 1rem !important; }
.hero::before { display: none !important; }
.hero h1, .page-head h1 { font-size: 24pt !important; max-width: none !important; }
.chapter h2, .prose h2 { font-size: 16pt !important; }
.reading { display: block !important; }
.table-wrap { overflow: visible !important; }
.code, .ascii, pre { white-space: pre-wrap !important; overflow-wrap: anywhere; background: #f4f4f4 !important; color: #111 !important; border: 1px solid #ccc !important; }
.code .k, .code .c { color: #111 !important; }
.btn { border: 1px solid #999 !important; background: none !important; color: #111 !important; }

/* link targets, printed after the text; root-relative links get the host */
main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; word-break: break-all; }
main a[href^="/"]::after { content: " (soqu.org" attr(href) ")"; font-size: 0.85em; color: #555; word-break: break-all; }
main a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
main .btn::after, main .tile::after, main a.id::after { content: none !important; }

/* keep things whole */
table, figure, .figure, pre, .code, .ascii, .callout, .download, .person, .item, .timeline > li, .steps > li, .spec { break-inside: avoid; }
h1, h2, h3, h4 { break-after: avoid; }
thead { display: table-header-group; }
details > summary { list-style: none; }
details > summary::after { content: none !important; }
