:root{
  --bg:#101211; --surface-1:#1a1d1b; --surface-2:#222623;
  --text-primary:#e8ece9; --text-secondary:#a8b0aa; --text-muted:#6f7772;
  --border:#2c302d; --border-strong:#3a403c;
  --accent:#55e6a5; --text-accent:#55e6a5; --radius:8px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text-primary);
  font-family:'IBM Plex Sans KR',sans-serif;line-height:1.65}
main{max-width:760px;margin:0 auto;padding:44px 20px 72px}
.eyebrow{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.16em;color:var(--accent)}
h1{font-size:30px;font-weight:600;margin:8px 0 12px;line-height:1.3}
p.lede{color:var(--text-secondary);font-size:15px;max-width:64ch;margin:0 0 38px}
a{color:inherit;text-decoration:none}
nav.crumb{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--text-muted);margin-bottom:18px}
nav.crumb a{color:var(--text-secondary)}
nav.crumb a:hover{color:var(--accent)}
nav.crumb span{margin:0 7px;color:var(--border-strong)}
h2.cat{font-size:14px;font-weight:600;color:var(--accent);font-family:'IBM Plex Mono',monospace;
  letter-spacing:.08em;margin:34px 0 10px;border-bottom:1px solid var(--border);padding-bottom:8px}
h2.cat:first-of-type{margin-top:0}
.card{display:block;border:1px solid var(--border);border-radius:12px;padding:16px 20px;
  margin-bottom:12px;background:var(--surface-1);transition:border-color .15s}
.card:hover{border-color:var(--accent)}
.card h3{font-size:16px;font-weight:600;margin:0 0 5px}
.card p{font-size:13.5px;color:var(--text-secondary);margin:0}
.card .badge{display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:11px;
  color:var(--text-muted);margin-left:8px;font-weight:400}
.card.section{padding:22px 24px}
.card.section h3{font-size:19px}
.card.section p{font-size:14px}
.card.empty{opacity:.5;border-style:dashed}
.card.empty:hover{border-color:var(--border)}
.chapno{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--accent);
  letter-spacing:.1em;display:block;margin-bottom:3px}
footer{margin-top:48px;font-size:12.5px;color:var(--text-muted);border-top:1px solid var(--border);
  padding-top:16px;font-family:'IBM Plex Mono',monospace}

/* Simulation pages (every page under simulations/ except the index pages) inline these same
   neutrals in their own :root so each file stays standalone, and add data colours
   for charts/canvas that are tuned for this dark ground:
     blue #6aa6f2  orange #f28b62  aqua #3fcf98  yellow #f3bb45  violet #a596f5  red #f27070
   Neutrals must match the tokens above: bg #101211, surface-1 #1a1d1b, surface-2 #222623,
   text #e8ece9 / #a8b0aa / #6f7772, border #2c302d / #3a403c.  Change here -> change there. */

/* live, non-interactive previews: hub section cards (320x200, scale .2667) and list cards (240x150, scale .2).
   The iframe is 1200x1100 so the embedded page lays out at desktop width; --oy on .preview crops the header away. */
.card.section,.card.pv{display:grid;grid-template-columns:minmax(0,1fr) var(--pw,320px);gap:20px;align-items:center}
.card.pv{--pw:240px;gap:18px}
.card .preview{position:relative;width:var(--pw,320px);height:calc(var(--pw,320px) * 0.625);overflow:hidden;border-radius:8px;
  border:1px solid var(--border);background:var(--surface-2);transition:border-color .15s}
.card .preview iframe{position:absolute;left:var(--ox,0);top:var(--oy,0);width:1200px;height:var(--ih,1100px);border:0;
  transform:scale(.2667);transform-origin:0 0;pointer-events:none;background:var(--bg)}
.card:hover .preview{border-color:var(--accent)}
@media(max-width:720px){.card.section,.card.pv{grid-template-columns:1fr}.card .preview{display:none}}
.card.pv .preview iframe{transform:scale(.2)}
