/* Original collection tokens. Type, 4px spacing and radii adopt PG UI Craft
   foundations.md (Tailwind defaults documented there, read 2026-08-18).
   Palette, breakpoints and reading measure are original project decisions.
   Page colours are the site's light/dark tokens (--site-*, from the frame's frame.css);
   only success and danger are the collection's own. */
:root {color-scheme:light;--paper:var(--site-bg);--surface:var(--site-card);--surface-low:var(--site-bg-2);--ink:var(--site-ink);--muted:var(--site-muted);--accent:var(--site-accent);--accent-ink:var(--site-on-accent);--line:var(--site-rule);--success:#345c43;--danger:#8d3434;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--space-20:5rem;--text-xs:.75rem;--text-sm:.875rem;--text-base:1rem;--text-lg:1.125rem;--text-xl:1.25rem;--text-2xl:1.5rem;--text-3xl:1.875rem;--text-4xl:2.25rem;--text-5xl:3rem;--text-6xl:3.75rem;--radius:.25rem;--body-font:Segoe UI,system-ui,sans-serif;--title-font:Georgia,Times New Roman,serif;--reading:66ch;--page-width:72rem;--control-height:2.75rem;--hairline:1px;--focus-width:3px;--focus-offset:3px;--line-body:1.5;--line-title:1.111;--weight-normal:400;--weight-strong:600;--weight-bold:700;}
:root[data-theme="dark"]{color-scheme:dark;--success:#a7c9ac;--danger:#f0a39b;}
*{box-sizing:border-box}html{font-size:100%;scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body-font);font-size:var(--text-base);line-height:var(--line-body)}a{color:var(--accent);text-underline-offset:var(--space-1)}a:hover{text-decoration-thickness:var(--space-1)}button,input,select,textarea{font:inherit}button,.button{min-height:var(--control-height);padding:var(--space-2) var(--space-4);background:var(--surface);color:var(--ink);border:var(--hairline) solid var(--line);border-radius:var(--radius);font-weight:var(--weight-strong);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2)}button:hover,.button:hover{background:var(--surface-low)}button:disabled{opacity:.55;cursor:default}button.primary,.button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}button[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 var(--hairline) var(--accent)}:focus-visible{outline:var(--focus-width) solid var(--accent);outline-offset:var(--focus-offset)}input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{min-height:var(--control-height);max-width:100%;padding:var(--space-2) var(--space-3);border:var(--hairline) solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink)}input[type=range]{accent-color:var(--accent);width:100%;min-height:var(--control-height)}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:var(--space-4);height:var(--space-4)}label{display:block}h1,h2,h3{font-family:var(--title-font);font-weight:var(--weight-normal);margin:0 0 var(--space-4);line-height:var(--line-title)}h1{font-size:clamp(var(--text-4xl),6vw,var(--text-6xl));max-width:18ch}h2{font-size:var(--text-3xl)}h3{font-size:var(--text-2xl)}p{margin:0 0 var(--space-4)}svg,canvas,img{display:block;max-width:100%}figure{margin:0}figcaption,.caption,.note{font-size:var(--text-sm);color:var(--muted)}.kicker{font-size:var(--text-xs);font-weight:var(--weight-strong);text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}.site-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-4);border-bottom:var(--hairline) solid var(--line);padding:var(--space-5) var(--space-8);max-width:var(--page-width);margin:auto}.brand{color:var(--ink);font-family:var(--title-font);font-size:var(--text-xl);text-decoration:none}.page{max-width:var(--page-width);margin:auto;padding:var(--space-12) var(--space-8)}.room-intro{margin-bottom:var(--space-10)}.lede{font-size:var(--text-lg);max-width:var(--reading);color:var(--muted)}.split{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:var(--space-8);align-items:start}.panel{background:var(--surface);padding:var(--space-6);border:var(--hairline) solid var(--line);border-radius:var(--radius)}.controls{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap}.controls label{flex:1 1 12rem}.stat-row{display:flex;gap:var(--space-6);flex-wrap:wrap;margin:var(--space-6) 0}.stat{min-width:8rem}.stat strong{display:block;font-size:var(--text-2xl);font-weight:var(--weight-strong);font-variant-numeric:tabular-nums}.stat span{color:var(--muted);font-size:var(--text-sm)}.prose{max-width:var(--reading)}.prose p{margin-bottom:var(--space-6)}.drawing{width:100%;color:var(--ink);background:var(--surface)}.site-footer{max-width:var(--page-width);margin:auto;border-top:var(--hairline) solid var(--line);padding:var(--space-6) var(--space-8);display:flex;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;color:var(--muted);font-size:var(--text-sm)}.skip{position:absolute;left:var(--space-4);top:var(--space-4);transform:translateY(-200%);background:var(--surface);padding:var(--space-3);z-index:10}.skip:focus{transform:none}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}details{border-top:var(--hairline) solid var(--line);padding:var(--space-4) 0}summary{cursor:pointer;min-height:var(--control-height);font-weight:var(--weight-strong)}pre,code{overflow-wrap:anywhere}pre{white-space:pre-wrap}table{border-collapse:collapse;width:100%;font-size:var(--text-sm)}th,td{text-align:left;border-bottom:var(--hairline) solid var(--line);padding:var(--space-3);vertical-align:top}.table-wrap{overflow-x:auto}hr{border:0;border-top:var(--hairline) solid var(--line);margin:var(--space-8) 0}[hidden]{display:none!important}
@media(max-width:48rem){.split{grid-template-columns:minmax(0,1fr)}.page{padding:var(--space-8) var(--space-5)}.site-header,.site-footer{padding:var(--space-5)}.panel{padding:var(--space-4)}h2{font-size:var(--text-2xl)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{body{background:white;color:black}.site-header,.site-footer,.skip{display:none}.page{max-width:none;padding:0}.panel{break-inside:avoid}button:disabled{opacity:1}}
:root{--space-40:10rem;--space-80:20rem;--diagram-type:14px}
button,.button{max-width:100%;text-align:center;overflow-wrap:anywhere}
.split>*{min-width:0}
h1,h2,h3,p,label,summary{overflow-wrap:anywhere}
