/* Galah user guide — Black Squeak Systems. Same look as blacksqueak.com: one dark theme, no light/dark switching. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: only dark;
  --night: #140B1E;      /* galah dusk: page ground */
  --night-2: #1D1229;    /* raised surface */
  --night-3: #26182F;
  --black: #000;         /* panels, screens */
  --pink: #FF5CA8;       /* galah breast */
  --ember: #FF8A3D;
  --oled: #D6ECFF;       /* readout text */
  --smoke: #A9A3B5;      /* secondary text */
  --paper: #F4EEF8;      /* primary text */
  --body: #DDD6E4;
  --line: rgba(244,238,248,.12);
  --line-2: rgba(244,238,248,.07);
  --grad: linear-gradient(100deg, var(--ember), var(--pink));
  --ok: #2FBF6A; --warn: #F0A632; --bad: #E5334B; --info: #7FB8FF;
  --ease: cubic-bezier(.2,.8,.2,1);
  --head: 68px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 1rem); background: var(--night); }
body { margin: 0; background: var(--night); color: var(--body); font: 400 1rem/1.65 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 35% at 85% 8%, rgba(255,92,168,.13), transparent 70%), radial-gradient(45% 40% at 10% 95%, rgba(255,138,61,.08), transparent 70%);
  animation: drift 30s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) rotate(4deg); } }
::selection { background: rgba(255,92,168,.35); color: #fff; }
a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(255,92,168,.6); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--pink); text-decoration-color: var(--pink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
b, strong { color: var(--paper); font-weight: 650; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--paper); color: var(--black); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--head); display: flex; align-items: center; gap: 1rem; padding: 0 clamp(1rem, 2.5vw, 2rem);
  background: rgba(20,11,30,.78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand .mark { width: 46px; height: auto; overflow: visible; flex: none; }
.brand .mark-tail { transform-origin: 20px 60px; transform-box: view-box; }
.brand:hover .mark-tail { animation: squeak .6s var(--ease); }
@keyframes squeak { 30% { transform: scaleY(1.35); } 60% { transform: scaleY(.85); } }
.brand b { display: block; font-weight: 820; font-stretch: 125%; letter-spacing: -.035em; font-size: 1.25rem; line-height: 1; color: var(--paper); }
.brand small { display: block; margin-top: .25rem; font-weight: 520; font-stretch: 95%; font-size: .8rem; line-height: 1; color: var(--smoke); white-space: nowrap; }
.topbar .ver { display: inline-block; padding: .14rem .6rem; border-radius: 99px; border: 1px solid var(--line); font: 500 .76rem var(--mono); color: var(--oled); }
.topbar .sp { flex: 1; }
.topbar .site { font-weight: 560; font-stretch: 105%; font-size: .92rem; color: var(--smoke); text-decoration: none; padding: .5rem .9rem; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); transition: color .25s, background-color .25s; }
.topbar .site:hover { color: var(--paper); background: rgba(244,238,248,.06); }
#menu-btn { display: none; align-items: center; gap: .5rem; min-height: 40px; padding: .5rem 1rem; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(244,238,248,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--paper); font: 620 .92rem var(--sans); font-stretch: 105%; }
#menu-btn i { width: 16px; height: 10px; position: relative; display: inline-block; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

/* ---------- Layout ---------- */
.wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - var(--head)); }
nav.side { position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow-y: auto; padding: 1.25rem 0 3rem; border-right: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.12)); scrollbar-width: thin; scrollbar-color: rgba(244,238,248,.15) transparent; }
.search { margin: 0 1rem .75rem; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 99px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: rgba(0,0,0,.45); color: var(--paper);
  padding: 0 1rem 0 2.4rem; font: 400 .95rem var(--sans); transition: box-shadow .25s; }
.search input::placeholder { color: #8a8396; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--pink), 0 0 0 4px rgba(255,92,168,.15); }
.search svg { position: absolute; left: .95rem; top: 13px; width: 16px; height: 16px; stroke: var(--smoke); }
.results { margin: 0 .6rem .6rem; }
.results a { display: block; padding: .5rem .8rem; border-radius: 10px; color: var(--paper); text-decoration: none; font-size: .92rem; line-height: 1.35; animation: rise .3s var(--ease) both; }
.results a:hover { background: rgba(255,92,168,.1); color: var(--paper); }
.results a span { display: block; font-size: .78rem; color: var(--smoke); }
.results .none { padding: .5rem .8rem; color: var(--smoke); font-size: .88rem; }
nav.side h4 { margin: 1.4rem 1.4rem .4rem; font-weight: 650; font-stretch: 112%; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8396; }
nav.side a.pg { position: relative; display: block; margin: 1px .6rem; padding: .42rem .8rem; border-radius: 10px; color: var(--smoke); text-decoration: none; font-weight: 500; font-size: .94rem; line-height: 1.35; transition: color .2s, background-color .2s; }
nav.side a.pg:hover { color: var(--paper); background: rgba(244,238,248,.05); }
nav.side a.pg.on { color: var(--paper); background: rgba(255,92,168,.09); font-weight: 620; }
nav.side a.pg.on::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--grad); }
nav.side .toc { margin: .2rem .6rem .6rem 1.6rem; border-left: 1px solid var(--line); }
nav.side .toc a { display: block; padding: .2rem .8rem; font-size: .84rem; line-height: 1.4; color: #8a8396; text-decoration: none; transition: color .2s; }
nav.side .toc a:hover, nav.side .toc a.here { color: var(--paper); }
nav.side .toc a.here { box-shadow: -1px 0 0 var(--pink); }

main { padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.5rem) 5rem; max-width: 1100px; width: 100%; }
.crumb { font-weight: 560; font-stretch: 105%; font-size: .92rem; color: var(--smoke); margin: 0 0 .7rem; }
h1 { font-weight: 820; font-stretch: 125%; letter-spacing: -.04em; line-height: .98; font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--paper); margin: 0 0 1rem; max-width: 20ch; text-wrap: balance; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--smoke); margin: 0 0 2rem; max-width: 62ch; }
h2 { font-weight: 780; font-stretch: 116%; letter-spacing: -.025em; line-height: 1.1; font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--paper); margin: 3.2rem 0 1rem; padding-top: 1.6rem; position: relative; text-wrap: balance; }
h2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
h2::after { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 2px; border-radius: 2px; background: var(--grad); }
h3 { font-weight: 680; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.25; font-size: 1.2rem; color: var(--paper); margin: 2rem 0 .6rem; }
h4 { font-weight: 650; font-stretch: 104%; font-size: 1.02rem; color: var(--paper); margin: 1.3rem 0 .4rem; }
h2 a.hl, h3 a.hl { opacity: 0; margin-left: .5rem; text-decoration: none; color: var(--pink); font-weight: 400; transition: opacity .2s; }
h2:hover a.hl, h3:hover a.hl, h2 a.hl:focus, h3 a.hl:focus { opacity: 1; }
p, ul, ol { margin: 0 0 1rem; }
main > p, main > ul, main > ol, .two > div > p, .two > div > ul { max-width: 76ch; }
li { margin: .3rem 0; }
li::marker { color: var(--pink); }
hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }
i, em { color: var(--paper); }
code { font: 500 .86em var(--mono); color: var(--oled); background: rgba(0,0,0,.55); padding: .12em .42em; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); overflow-wrap: break-word; }
pre { font: 400 .85rem/1.6 var(--mono); background: var(--black); color: var(--oled); padding: 1.1rem 1.25rem; border-radius: 16px; overflow-x: auto; margin: 0 0 1.25rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), inset 0 0 40px rgba(120,170,255,.05); text-shadow: 0 0 10px rgba(160,200,255,.25); }
pre code { background: none; padding: 0; color: inherit; box-shadow: none; font: inherit; overflow-wrap: normal; }
kbd { font: 500 .8rem var(--mono); color: var(--paper); border-radius: 6px; padding: .1rem .45rem; background: var(--night-3); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 rgba(0,0,0,.6); }
.ui { font-weight: 680; font-stretch: 82%; font-size: .84em; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; color: var(--paper);
  padding: .08em .5em; border-radius: 6px; background: rgba(244,238,248,.07); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Tables ---------- */
table { border-collapse: collapse; width: 100%; margin: .5rem 0 1.6rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
th { font-weight: 620; font-stretch: 105%; font-size: .85rem; color: var(--smoke); border-bottom-color: rgba(244,238,248,.22); }
td:first-child { color: var(--paper); }
td:first-child code { white-space: nowrap; }
tbody tr, table tr { transition: background-color .2s; }
table tr:hover td { background: rgba(244,238,248,.03); }
.tablewrap { overflow-x: auto; }

/* ---------- Screenshots ---------- */
figure.shot { margin: 1.4rem 0 2rem; }
figure.shot .frame { position: relative; display: inline-block; max-width: 100%; border-radius: 14px; overflow: hidden; line-height: 0; cursor: zoom-in; background: var(--black);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 70px -30px rgba(0,0,0,.9), 0 0 90px -30px rgba(255,92,168,.3); transition: transform .5s var(--ease), box-shadow .5s; }
figure.shot .frame:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255,92,168,.35), 0 36px 80px -30px rgba(0,0,0,.95), 0 0 110px -30px rgba(255,92,168,.45); }
figure.shot img { max-width: 100%; height: auto; display: block; }
figure.shot.small .frame { max-width: 560px; }
figure.shot.phone .frame { max-width: 300px; border-radius: 28px; }
figure.shot figcaption { font-size: .9rem; color: var(--smoke); margin-top: .75rem; max-width: 820px; }
figure.shot figcaption b, figure.shot figcaption i { color: var(--paper); }
.mk { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 800 13px/1 var(--sans); font-stretch: 100%; color: #1a0712; background: var(--grad); box-shadow: 0 0 0 2px #000, 0 0 0 3.5px rgba(255,92,168,.7), 0 4px 14px rgba(0,0,0,.6); pointer-events: none; }
ol.legend { list-style: none; padding: 0; counter-reset: lg; margin: -.4rem 0 1.6rem; max-width: 80ch; }
ol.legend li { counter-increment: lg; position: relative; padding-left: 2.4rem; margin: .55rem 0; }
ol.legend li::before { content: counter(lg); position: absolute; left: 0; top: .15rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 800 12px/1 var(--sans); color: #1a0712; background: var(--grad); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.two figure.shot { margin-top: .3rem; }

/* ---------- Callouts ---------- */
.note, .tip, .warn { --c: var(--info); position: relative; border-radius: 16px; padding: 1rem 1.25rem 1rem 3.4rem; margin: 1.25rem 0 1.6rem; max-width: 80ch;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 9%, transparent), rgba(255,255,255,.015) 60%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent); }
.note::before, .tip::before, .warn::before { position: absolute; left: 1.1rem; top: 1.05rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 800 13px/1 var(--sans); color: #12091a; background: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent); }
.note::before { content: "i"; }
.tip { --c: var(--pink); } .tip::before { content: "✓"; }
.warn { --c: var(--ember); } .warn::before { content: "!"; }
.note > :last-child, .tip > :last-child, .warn > :last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
ol.steps { list-style: none; padding: 0; counter-reset: st; margin: 1rem 0 1.6rem; max-width: 84ch; }
ol.steps > li { counter-increment: st; position: relative; margin: 0 0 .9rem 1.1rem; padding: .1rem 0 .9rem 2.4rem; border-left: 1px solid var(--line); }
ol.steps > li:last-child { border-left-color: transparent; }
ol.steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: -1.15rem; top: -.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; font: 500 .8rem var(--mono); color: var(--oled); background: var(--black);
  box-shadow: 0 0 0 1px rgba(255,92,168,.55), 0 0 0 5px var(--night), 0 0 18px -4px rgba(255,92,168,.6); }
ol.steps > li > h4:first-child { margin-top: .35rem; }

/* ---------- Home page ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; margin: 0 0 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 28px; background: radial-gradient(120% 120% at 100% 0%, rgba(255,92,168,.14), transparent 55%), var(--black);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -40px rgba(255,92,168,.45), inset 0 0 60px rgba(120,170,255,.04); overflow: hidden; }
.hero .crumb { color: var(--smoke); }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 18ch; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--smoke); max-width: 52ch; margin: 0; }
.hero .frame { border-radius: 16px; overflow: hidden; line-height: 0; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 60px -20px rgba(0,0,0,.9);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.hero .frame:hover { transform: none; }
.hero img { width: 100%; display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; margin: .8rem 0 2rem; }
.cards a { position: relative; display: block; padding: 1.25rem 1.3rem 1.35rem; border-radius: 16px; text-decoration: none; color: var(--body); background: var(--black); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), inset 0 0 40px rgba(120,170,255,.04); transition: transform .4s var(--ease), box-shadow .4s; }
.cards a::after { content: ""; position: absolute; left: 1.3rem; bottom: .9rem; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); transition: width .45s var(--ease); }
.cards a:hover { transform: translateY(-3px); color: var(--body); box-shadow: 0 0 0 1px rgba(255,92,168,.4), 0 20px 50px -24px rgba(255,92,168,.55); }
.cards a:hover::after { width: 64px; }
.cards b { display: block; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; font-size: 1.2rem; color: var(--paper); margin-bottom: .35rem; }
.cards span { display: block; font-size: .92rem; color: var(--smoke); padding-bottom: .8rem; line-height: 1.5; }
.pill { display: inline-block; font-weight: 700; font-stretch: 85%; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: .1rem .6rem; vertical-align: .1em;
  color: var(--c, var(--smoke)); background: color-mix(in srgb, var(--c, var(--smoke)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--smoke)) 45%, transparent); white-space: nowrap; }
.pill.red { --c: #FF6B7D; } .pill.green { --c: var(--ok); } .pill.amber { --c: var(--warn); } .pill.blue { --c: var(--info); } .pill.grey { --c: var(--smoke); }
.diagram { border-radius: 20px; padding: clamp(1rem, 2vw, 1.6rem); margin: .8rem 0 1.8rem; overflow-x: auto; background: var(--black); box-shadow: 0 0 0 1px rgba(255,255,255,.07), inset 0 0 60px rgba(120,170,255,.04); }
.diagram svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.diagram .flow { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Previous / next, footer ---------- */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.pn a { display: block; text-decoration: none; padding: 1rem 1.25rem; border-radius: 16px; color: var(--paper); font-weight: 650; font-stretch: 108%; background: rgba(244,238,248,.04);
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s, transform .35s var(--ease); }
.pn a:hover { color: var(--paper); background: rgba(255,92,168,.08); box-shadow: inset 0 0 0 1px rgba(255,92,168,.45); transform: translateY(-2px); }
.pn a span { display: block; font-weight: 500; font-stretch: 100%; font-size: .82rem; color: var(--smoke); margin-bottom: .15rem; }
.pn a.prev span::before { content: "← "; } .pn a.next span::after { content: " →"; }
.pn a.next { text-align: right; }
footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: #8a8396; }

/* ---------- Lightbox ---------- */
#lb { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); cursor: zoom-out;
  background: rgba(10,5,16,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#lb.on { display: flex; animation: fade .3s var(--ease); }
#lb img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.7); animation: zoom .4s var(--ease); }
#lb p { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; text-align: center; color: var(--smoke); font-size: .9rem; margin: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Motion: page enters, sections rise in as they scroll into view ---------- */
.js main { animation: enter .7s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.progress { position: fixed; left: 0; top: var(--head); height: 2px; width: 100%; z-index: 41; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- Small screens ---------- */
@media (max-width: 1000px) {
  .wrap { grid-template-columns: 1fr; }
  nav.side { position: fixed; top: var(--head); left: 0; width: min(320px, 88vw); z-index: 30; background: #0d0713; border-right: 1px solid var(--line);
    transform: translateX(-100%); transition: transform .35s var(--ease), box-shadow .35s; }
  body.menu nav.side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.7); }
  #menu-btn { display: inline-flex; }
  .hero, .two { grid-template-columns: 1fr; }
  .hero .frame { transform: none; }
}
@media (max-width: 620px) {
  .brand small, .topbar .ver, .topbar .site { display: none; }
  .brand .mark { width: 38px; }
  .topbar { gap: .6rem; }
  .pn { grid-template-columns: 1fr; }
  th, td { padding: .6rem .5rem; }
}

/* ---------- Reduced motion: keep the content, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .hero .frame { transform: none; }
}

/* ---------- Print: plain paper ---------- */
@media print {
  html, body { background: #fff; color: #111; }
  body::before, body::after, .topbar, nav.side, .pn, .search, .progress { display: none !important; }
  .wrap { display: block; } main { max-width: none; padding: 0; animation: none; }
  h1, h2, h3, h4, b, strong, i, em, td:first-child, a { color: #111; }
  .lead, figcaption, th { color: #444 !important; }
  .js .rv { opacity: 1; transform: none; }
  pre, code, .hero, .cards a, .diagram { background: #f3f1f5 !important; color: #111 !important; box-shadow: none !important; text-shadow: none !important; }
  figure.shot .frame { box-shadow: none; border: 1px solid #ccc; }
}
