:root{--bg: #f6f7f9;--surface: #ffffff;--text: #14181f;--muted: #5a6270;--border: #dde1e7;--accent: #1f5fbf;--code-bg: #f0f2f5;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #0f1318;--surface: #171c24;--text: #eef1f6;--muted: #a3acba;--border: #2c3542;--accent: #8fbaff;--code-bg: #10151c;color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5;color:var(--text);background:var(--bg)}.wrap{max-width:72rem;margin-inline:auto;padding-inline:16px}.masthead{padding-block:2.5rem 1.5rem}.eyebrow{margin:0 0 .5rem;font-size:.85rem;font-weight:600;letter-spacing:.02em;color:var(--accent)}h1{margin:0;max-width:34ch;font-size:clamp(1.6rem,4vw,2.4rem);line-height:1.15;letter-spacing:-.01em}.lede{max-width:60ch;margin:.75rem 0 0;color:var(--muted)}h2{margin:0 0 .5rem;font-size:1rem}.controls{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}.controls label{display:flex;flex-direction:column;gap:.25rem;flex:1 1 14rem;min-width:0;font-size:.85rem;font-weight:600;color:var(--muted)}.controls label[hidden]{display:none}select,input{width:100%;min-width:0;min-height:44px;padding:.5rem .75rem;font:inherit;font-size:1rem;font-weight:400;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:.5rem}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;align-items:start;padding-bottom:3rem}.stage,.details>section{min-width:0;padding:1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:.75rem}.details{display:flex;flex-direction:column;gap:1.5rem;min-width:0}.calculator{max-width:26rem}.calculator[data-mode=scientific]{max-width:none}.answer{display:flex;flex-direction:column;gap:.25rem;max-width:26rem;margin-top:1.25rem;font-weight:600}.answer[hidden],.notice[hidden]{display:none}.hint,.notice{margin:.25rem 0 0;font-size:.85rem;font-weight:400;color:var(--muted)}dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.4rem 1rem;margin:0;font-size:.9rem}dt{font-weight:600;color:var(--muted)}dd{margin:0}dd ul{margin:0;padding-left:1.1rem}a{color:var(--accent)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.copy{min-height:36px;padding:.25rem .9rem;font:inherit;font-size:.85rem;font-weight:600;color:var(--accent);background:transparent;border:1px solid var(--border);border-radius:.5rem;cursor:pointer}pre{margin:.5rem 0 0;padding:.9rem 1rem;overflow-x:auto;font-size:.8rem;line-height:1.55;background:var(--code-bg);border-radius:.5rem}pre.state{max-height:20rem}code{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(max-width:52rem){.layout{grid-template-columns:minmax(0,1fr)}}
