*{box-sizing:border-box}html{color-scheme:light dark;scroll-behavior:smooth}body{margin:0;background:#faf7ef;color:#202d28;font:18px/1.65 system-ui,sans-serif}a{color:#244f89;text-underline-offset:4px}header,main,footer{max-width:920px;margin:auto;padding:24px}header{display:flex;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid #65756d}a,button,summary{min-height:44px}header a,nav a,.sources a,footer a{display:inline-flex;align-items:center;padding:8px 4px}h1{font:500 clamp(2.2rem,7vw,3.5rem)/1.12 Georgia,serif;max-width:850px;letter-spacing:-.03em}h2{font-size:1.5rem;line-height:1.3;margin-top:2.5rem}h3{font-size:1.15rem}p,li{max-width:76ch}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;font-weight:700}.intro{font-size:1.18rem}.jump{display:flex;flex-wrap:wrap;gap:8px 20px}section{scroll-margin-top:24px}.worked,.question,.tool{border:1px solid #65756d;border-radius:12px;margin:24px 0;padding:24px;background:#fffdf7}.worked{border-left:6px solid #3f6fb0}.question{counter-increment:question}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:700;margin-bottom:14px}label.choice{display:flex;align-items:center;gap:12px;min-height:48px;border:1px solid #65756d;border-radius:6px;padding:10px 14px;margin:10px 0;cursor:pointer}input[type=radio]{width:20px;height:20px;flex-shrink:0;accent-color:#244f89}button,.cta{display:inline-flex;align-items:center;justify-content:center;background:#3f6fb0;color:#fff;border:2px solid transparent;border-radius:8px;padding:10px 18px;min-height:48px;font:inherit;font-weight:650;text-decoration:none;cursor:pointer}button:disabled{opacity:.7;cursor:default}input[type=number]{display:block;max-width:100%;width:280px;min-height:48px;background:#fff;color:#202d28;border:1px solid #65756d;border-radius:6px;padding:8px;font:inherit;margin:8px 0 18px}.feedback{min-height:32px;font-weight:600}.feedback.good{color:#215b36}.feedback.retry{color:#8b3020}details{border-top:1px solid #65756d;margin-top:18px}summary{cursor:pointer;padding:10px 0;font-weight:650}.table-wrap{overflow:auto;margin:20px 0}table{border-collapse:collapse;width:100%;min-width:520px}caption{text-align:left;font-weight:700;padding:12px 0}th,td{border:1px solid #65756d;text-align:left;vertical-align:top;padding:12px}th{background:#e7ece7}.formula{font-weight:650;font-size:1.1rem;overflow-wrap:anywhere}.skip{position:absolute;left:12px;top:-100px;background:#fff;padding:12px;z-index:3}.skip:focus{top:8px}:focus-visible{outline:3px solid #a84410;outline-offset:4px}.answer-list li{padding:12px 0}.sources{font-size:.95rem}.sources a{overflow-wrap:anywhere}.trial{border-block:1px solid #65756d;padding:24px 0;margin-top:40px}.print-button{margin-top:14px}footer{font-size:.95rem}noscript p{border:1px solid;padding:12px}@media(max-width:500px){header,main,footer{padding:18px}.question,.worked,.tool{padding:18px}h1{font-size:2.4rem}}:root[data-theme=dark] body{background:#171e1b;color:#edf1eb}:root[data-theme=dark] a{color:#a4c8f5}:root[data-theme=dark] .worked,:root[data-theme=dark] .question,:root[data-theme=dark] .tool{background:#202a25}:root[data-theme=dark] th{background:#293a31}:root[data-theme=dark] input[type=number]{background:#171e1b;color:#edf1eb}:root[data-theme=dark] button,:root[data-theme=dark] .cta{background:#8fb6ea;color:#171e1b}:root[data-theme=dark] .feedback.good{color:#a7e4b7}:root[data-theme=dark] .feedback.retry{color:#ffc3aa}:root[data-theme=dark] :focus-visible{outline-color:#ffcc77}:root[data-theme=dark] .skip{background:#171e1b}@media print{header,.jump,button,.trial,footer{display:none}body{background:white;color:black;font-size:12pt}.question,.worked{break-inside:avoid}details>div{display:block!important}a{color:black;text-decoration:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
input[type=text]{display:block;max-width:100%;width:100%;min-height:48px;background:#fff;color:#202d28;border:1px solid #65756d;border-radius:6px;padding:8px;font:inherit;margin:4px 0 14px}input[aria-invalid=true]{border:2px solid #8b3020}.prompt{font-weight:700;margin-top:0}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 16px;max-width:560px}.fields label{display:block;font-weight:600}.steps li{padding:4px 0}table.compact,table.sides{min-width:0}table.compact td,table.compact th{padding:8px 12px}table.sides{min-width:560px}.total th,.total td{font-weight:700;border-top:2px solid currentColor}.curve{margin:28px 0 8px;max-width:620px}.curve svg{display:block;width:100%;height:auto;font:16px system-ui,sans-serif;fill:currentColor}.curve .line{fill:none;stroke:#3f6fb0;stroke-width:2.5;stroke-linejoin:round}.curve .tail{fill:#3f6fb0}.curve .axis{fill:none;stroke:currentColor;stroke-width:1}.curve figcaption{font-size:.95rem;margin-top:8px}.swipe{display:none;font-size:.95rem}@media(max-width:640px){.swipe{display:block}}.midcta{border-block:1px solid #65756d;padding:14px 0;margin-top:32px}.tally{font-weight:700;margin-top:24px}:root[data-theme=dark] input[type=text]{background:#171e1b;color:#edf1eb}:root[data-theme=dark] input[aria-invalid=true]{border-color:#ffc3aa}:root[data-theme=dark] .curve .line{stroke:#8fb6ea}:root[data-theme=dark] .curve .tail{fill:#8fb6ea}@media print{.midcta,.print-button,.tally,.swipe{display:none}input[type=text]{border:1px solid #000}}
.related-list a{display:inline-flex;align-items:center;min-height:44px}
/* Try-it prompt at the top and end of the guide (guide-cta.js counts taps). Uses the guide's .cta button. */
.sd-try{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin:1.25rem 0;padding:.85rem 1rem;border:1px solid currentColor;border-color:color-mix(in srgb,currentColor 22%,transparent);border-radius:12px}
.sd-try p{margin:0;flex:1 1 16rem}
.sd-try .cta{gap:.4rem}
.keyidea{border:2px solid #3f6fb0;border-radius:12px;padding:4px 20px;margin:20px 0}
/* Regression guide: routine box, step labels, plots, residual-plot grid, score row */
.routine{border:2px solid #3f6fb0;border-radius:12px;padding:6px 20px 10px;margin:24px 0}.routine-title{margin-bottom:4px}.routine ol{margin:0;padding-left:1.6em}.routine li{padding:2px 0}.routine a{display:inline-flex;align-items:center;min-height:44px}.routine-more a{display:inline-flex;align-items:center;min-height:44px}
.step{display:inline-block;font:700 .8rem/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;border:1px solid currentColor;border-radius:999px;padding:5px 10px;margin-right:10px;vertical-align:.25em}
.facts li{padding:4px 0}.formula-box{border-left:6px solid #3f6fb0;padding:4px 18px;margin:16px 0;background:#fffdf7}
.plot{margin:24px 0 8px;max-width:640px}.plot svg,.rp svg{display:block;width:100%;height:auto;font:17px system-ui,sans-serif;fill:currentColor}.plot figcaption,.rp figcaption{font-size:.95rem;margin-top:8px}
svg .axis{stroke:currentColor;stroke-width:1.2}svg .zero{stroke:currentColor;stroke-width:1.5;stroke-dasharray:7 5}svg .dot{fill:#3f6fb0}svg .fit{stroke:#3f6fb0;stroke-width:3}svg .res{stroke:#a84410;stroke-width:2.5}svg .extra{fill:#a84410}svg .lab{font-weight:700}
.rp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 20px;margin:12px 0 18px}.rp{margin:0}.rp svg{font-size:20px}
.qn{font-weight:800}.output td,.output th{white-space:nowrap}.output-note{font-weight:700;margin-top:0}
.score-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px}.score-row .tally{margin:0}
button.ghost{background:transparent;color:#244f89;border:2px solid currentColor}
.feedback{margin:12px 0 0}
:root[data-theme=dark] .routine,:root[data-theme=dark] .keyidea{border-color:#8fb6ea}:root[data-theme=dark] .formula-box{background:#202a25;border-color:#8fb6ea}:root[data-theme=dark] svg .dot{fill:#8fb6ea}:root[data-theme=dark] svg .fit{stroke:#8fb6ea}:root[data-theme=dark] svg .res{stroke:#ffcc77}:root[data-theme=dark] svg .extra{fill:#ffcc77}:root[data-theme=dark] button.ghost{background:transparent;color:#a4c8f5}
@media print{.tool,.score-row,.sd-try{display:none}}
svg [hidden]{display:none}
.opt{font-weight:800;min-width:1.4em}
