*{box-sizing:border-box}[hidden]{display:none!important}html{color-scheme:light dark;scroll-behavior:smooth;scroll-padding-top:96px}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,.related 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.75rem}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}.guide-meta{font-size:.95rem;margin:-4px 0 16px}.jump{display:flex;flex-wrap:wrap;gap:4px 18px}section{scroll-margin-top:24px}
.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}
button,.cta{display:inline-flex;align-items:center;justify-content:center;gap:.4em;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.secondary{background:transparent;color:#244f89;border-color:#244f89}
.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}
.m{font-weight:650;overflow-wrap:anywhere;white-space:normal}sup,sub{line-height:0}.lim{white-space:nowrap}.lim sub{font-size:.72em}
.guide-try{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:20px 0;padding:14px 16px;border:1px solid #65756d;border-radius:10px}.guide-try p{margin:0;flex:1 1 240px}.guide-try .cta{max-width:100%;white-space:normal;text-align:center}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Graphs: drawn from the real functions; colors follow the text color so they work in light and dark. */
.fig{margin:22px 0}.fig figcaption{font-size:.95rem;margin-top:6px}
.graph{display:block;width:100%;max-width:560px;height:auto;color:#202d28;background:#fffdf7;border:1px solid #65756d;border-radius:10px}
.graph .grid{stroke:#c9cfc6;stroke-width:1}.graph .axis{stroke:currentColor;stroke-width:1.5}
.graph .curve{fill:none;stroke:#244f89;stroke-width:2.5;stroke-linejoin:round}.graph .bound{fill:none;stroke:#8b3020;stroke-width:2;stroke-dasharray:6 5}
.graph .asym{stroke:#8b3020;stroke-width:2;stroke-dasharray:6 5}.graph .hole{fill:#fffdf7;stroke:#244f89;stroke-width:2.5}.graph .dot{fill:#8b3020}
.graph .arrow{stroke:#215b36;stroke-width:2.5;fill:none}.graph .ahead{fill:#215b36}
.graph text{fill:currentColor;font:13px system-ui,sans-serif}.graph .lbl{font-weight:700}
.three{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}.three .fig{margin:8px 0}
/* The flowchart: a vertical decision path. Each branch is "if you get…" then "do this". */
.flow{list-style:none;padding:0;margin:22px 0;position:relative}
.flow::before{content:"";position:absolute;left:21px;top:20px;bottom:20px;border-left:3px solid #3f6fb0}
.flow li{position:relative;margin:0 0 14px 48px;border:1px solid #65756d;border-radius:12px;background:#fffdf7;padding:14px 16px;max-width:none}
.flow li::before{content:"";position:absolute;left:-34px;top:20px;width:14px;height:14px;border-radius:50%;background:#3f6fb0;border:3px solid #faf7ef}
.flow .flow-start{background:#244f89;color:#fff;border-color:#244f89}.flow .flow-start::before{background:#244f89}
.flow-if{display:block;font-weight:700;margin-bottom:4px}.flow-if::before{content:"If: ";color:#8b3020}.flow-then{display:block}.flow-then::before{content:"Then: ";font-weight:700}
/* Technique blocks and worked examples ("plug in first" strip, numbered steps with a reason beside each). */
.tech{border-top:2px solid #65756d;margin-top:28px;padding-top:4px}
.facts{display:flex;flex-wrap:wrap;gap:10px 28px;padding:0;list-style:none}.facts li{border:1px solid #65756d;border-radius:8px;padding:8px 14px;background:#fffdf7}
.ex{border:1px solid #65756d;border-radius:12px;margin:22px 0;padding:18px 20px;background:#fffdf7}
.ex-head{font-size:1.08rem;margin:0 0 10px;overflow-wrap:anywhere}.ex-n{display:inline-block;background:#244f89;color:#fff;border-radius:6px;padding:0 10px;margin-right:8px;font-weight:700;font-size:.9rem}
.plug{margin:0 0 10px;padding:8px 12px;border-left:5px solid #a84410;background:#f3ede0;border-radius:0 8px 8px 0}
.steps{padding-left:1.4em;margin:0}.steps li{margin:6px 0;overflow-wrap:anywhere}.steps .why{display:block;font-size:.93rem;color:#46544d}
.ans{font-weight:700;border-top:1px dashed #65756d;padding-top:10px;margin:12px 0 0}.check{font-size:.95rem;margin:6px 0 0}
.piece{padding:8px 12px;border:1px solid #65756d;border-radius:8px;display:inline-block}
.three-part li{margin:6px 0}.note{border:1px solid #a84410;border-radius:10px;padding:12px 16px}
.table-wrap{overflow:auto;margin:20px 0;position:relative}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:10px 12px}th{background:#e7ece7}
table.traps{min-width:640px}
/* Practice */
.score{position:sticky;top:0;z-index:2;background:#faf7ef;border:2px solid #3f6fb0;border-radius:12px;padding:10px 16px;margin:18px 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.score p{margin:0;font-weight:700}
.q{border:1px solid #65756d;border-radius:12px;margin:22px 0;padding:20px 22px;background:#fffdf7}
.q .tag{display:block;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
.q.solved{border-color:#215b36;border-width:2px}
fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:700;margin-bottom:10px;overflow-wrap:anywhere}
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;overflow-wrap:anywhere}
input[type=radio]{width:24px;height:24px;flex-shrink:0;accent-color:#244f89;margin:0}
.q .lab{display:block;font-weight:700;margin-bottom:6px;overflow-wrap:anywhere}
input[type=text]{display:block;max-width:100%;width:260px;min-height:48px;background:#fff;color:#202d28;border:1px solid #65756d;border-radius:6px;padding:8px 10px;font:inherit;margin:6px 0 4px}
.fmt{font-size:.92rem;margin:0 0 12px}
.fb{min-height:30px;font-weight:600;margin:12px 0 0}.fb.good{color:#215b36}.fb.retry{color:#8b3020}
details{border-top:1px solid #65756d;margin-top:12px}summary{cursor:pointer;padding:10px 0;font-weight:650}details ol{padding-left:1.3em}details.hint p{margin-top:0}
.trial{border-block:1px solid #65756d;padding:24px 0;margin-top:40px}.trial p{margin:.6em 0}.trial.mid{border:1px solid #65756d;border-radius:12px;padding:20px 24px;margin:32px 0}
.sources{font-size:.95rem}.sources a{overflow-wrap:anywhere}footer{font-size:.95rem}noscript p{border:1px solid;padding:12px}
@media(max-width:500px){header,main,footer{padding:18px}.ex,.q{padding:16px}h1{font-size:2.4rem}.flow li{margin-left:40px}.flow::before{left:17px}.flow li::before{left:-30px}}
@media(prefers-color-scheme:dark){body{background:#171e1b;color:#edf1eb}a{color:#a4c8f5}th{background:#293a31}
.graph{color:#edf1eb;background:#202a25}.graph .grid{stroke:#3d4a43}.graph .curve{stroke:#a4c8f5}.graph .hole{fill:#202a25;stroke:#a4c8f5}.graph .dot,.graph .ahead{fill:#ffc3aa}.graph .bound,.graph .asym{stroke:#ffc3aa}.graph .arrow{stroke:#a7e4b7}.graph .ahead{fill:#a7e4b7}
.flow li,.ex,.q,.facts li{background:#202a25}.flow::before{border-color:#8fb6ea}.flow li::before{background:#8fb6ea;border-color:#171e1b}.flow .flow-start{background:#a4c8f5;color:#171e1b;border-color:#a4c8f5}.flow .flow-start a{color:#171e1b}.flow-if::before{color:#ffc3aa}
.ex-n{background:#a4c8f5;color:#171e1b}.plug{background:#2b3832;border-color:#ffcc77}.steps .why{color:#c5cfc8}.note{border-color:#ffcc77}
.score{background:#171e1b;border-color:#8fb6ea}.q.solved{border-color:#a7e4b7}
input[type=text]{background:#171e1b;color:#edf1eb}input[type=radio]{accent-color:#a4c8f5}
button,.cta{background:#8fb6ea;color:#171e1b}button.secondary{background:transparent;color:#a4c8f5;border-color:#a4c8f5}
.fb.good{color:#a7e4b7}.fb.retry{color:#ffc3aa}:focus-visible{outline-color:#ffcc77}.skip{background:#171e1b}}
@media print{header,.jump,button,.trial,footer,.score,.guide-try{display:none}body{background:#fff;color:#000;font-size:12pt}.q,.ex{break-inside:avoid}a{color:#000;text-decoration:none}}
