:root{color-scheme:light;--bg:#f5f5ef;--paper:#fff;--ink:#171a16;--muted:#454e43;--line:#d7dbce;--dark:#20271f;--light:#dae3d3;--accent:#dfff75;--brand:#284531;font-family:system-ui,-apple-system,sans-serif;line-height:1.55}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg)}[hidden]{display:none!important}.wrap{width:min(100% - 2.5rem,68rem);margin-inline:auto}a{color:var(--brand);text-underline-offset:.2em}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1c784d;outline-offset:3px}.skip{position:absolute;left:-1000px;top:.5rem;background:#fff;padding:.5rem;z-index:2}.skip:focus{left:.5rem}.site{background:#fff;border-bottom:1px solid var(--line)}.mast,.footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:4.3rem}.brand{display:flex;align-items:center;gap:.7rem;font-size:1.13rem;font-weight:780;text-decoration:none;color:var(--ink);white-space:nowrap}.logo{display:grid;place-items:center;background:var(--accent);border-radius:.3rem;color:var(--ink);font-size:.78rem;letter-spacing:-.04em;width:2.15rem;height:2.15rem;transform:rotate(-5deg)}
.mast>a:last-child,.footer a{font-size:.95rem;font-weight:650;white-space:nowrap}.intro{padding:clamp(2.2rem,7vw,4.65rem) 0 1.8rem}.intro>p:last-child{font-size:clamp(1rem,1.8vw,1.2rem);max-width:55ch;margin:1rem 0 0;color:var(--muted)}h1,h2,h3{line-height:1.12;margin:.15rem 0 .65rem}h1{font-size:clamp(2.35rem,6.3vw,4.75rem);letter-spacing:-.067em;font-weight:850}h2{font-size:clamp(1.5rem,3.3vw,2.05rem);letter-spacing:-.04em}h3{font-size:1.12rem;letter-spacing:-.015em}.kicker{font-size:.875rem;font-weight:770;letter-spacing:.115em;margin:0 0 .5rem;color:#3a6349}.workbench{display:grid;grid-template-columns:1.12fr 1fr;gap:1rem}.card,.reference{min-width:0;border:1px solid var(--line);border-radius:.9rem;padding:clamp(1rem,3vw,1.85rem);background:var(--paper)}.inputs{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(4rem,.6fr) minmax(0,.9fr);gap:.62rem;margin-top:1.2rem}label{display:block;font-size:.94rem;font-weight:700;margin-bottom:.35rem}input,select{width:100%;min-width:0;min-height:2.9rem;padding:.45rem .6rem;border:1px solid #899488;border-radius:.4rem;background:#fff;color:var(--ink);font:inherit}input[aria-invalid=true],select[aria-invalid=true]{border:2px solid #a12b2b}.hint{font-size:.94rem;color:var(--muted);margin:.8rem 0 0}.error{color:#a12b2b;font-size:.95rem;font-weight:700;margin:.75rem 0 0}.buttons{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.2rem}button{border:1px solid #273923;background:var(--accent);border-radius:.4rem;color:var(--ink);padding:.55rem .9rem;font:inherit;font-weight:760;cursor:pointer;min-height:2.75rem}button:hover{background:#edffb2}.secondary{background:#fff}.secondary:hover{background:#edf1e8}.output-card{background:var(--dark);border-color:var(--dark);color:#fff}.output-card .kicker{color:var(--accent)}.scores{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-top:1.25rem}.scores>div{border-top:1px solid #658066;padding:.65rem 0;min-width:0}.score-label{display:block;color:var(--light);font-size:.94rem}.scores strong{display:block;color:var(--accent);font-weight:790;line-height:1.15;letter-spacing:-.03em;font-size:clamp(1.4rem,3.1vw,2.55rem);overflow-wrap:anywhere}#result-note{color:var(--light);margin:.55rem 0 0}.reference{margin-top:1rem}.ref-head{display:flex;gap:1rem;justify-content:space-between;align-items:end}.ref-head>div:last-child{flex:0 0 9rem}.reference table{margin-top:1rem;width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.reference caption{text-align:left;font-weight:650;margin-bottom:.5rem}.reference th,.reference td{border-bottom:1px solid var(--line);padding:.42rem .6rem}.reference th{text-align:left}.reference td,.reference thead th:last-child{text-align:right}.reference thead{background:#edf2e8}.method{padding:clamp(2rem,5vw,3.4rem) 0 1.65rem}.method-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;margin-top:1rem}.method-grid p,.about p{margin:.4rem 0 0;color:var(--muted);max-width:66ch}.method-grid code{background:#e6ecdf;border-radius:.25rem;padding:.1em .3em}.example{background:#e9efdc;border-left:.25rem solid #6c833b;padding:.8rem 1rem;margin:1.1rem 0}.about{border-top:1px solid var(--line);padding:1.4rem 0}.about h2{font-size:1.35rem}.about:last-child{margin-bottom:1rem}.footer{font-weight:650}.footer nav{display:flex;gap:1rem}footer{background:#fff;border-top:1px solid var(--line)}
@media(max-width:45rem){.workbench,.method-grid{grid-template-columns:minmax(0,1fr)}.method-grid{gap:1rem}.scores strong{font-size:1.8rem}}@media(max-width:23rem){.wrap{width:calc(100% - 1.4rem)}.inputs{grid-template-columns:minmax(0,1fr) 4rem}.inputs>div:last-child{grid-column:1 / -1}.ref-head{align-items:start;flex-direction:column}.ref-head>div:last-child{flex:auto}.score-label{font-size:.875rem}}
