.math-article{--math-accent:#17765a;--math-alt:#9d4b23;--math-paper:#f1f5ed;max-width:920px;margin:0 auto;padding:2rem 0 4rem;line-height:1.78;font-size:1.12rem}.math-article .math-kicker{font:600 .82rem/1.6 var(--font-sans,Arial,sans-serif);letter-spacing:.05em;text-transform:uppercase;color:var(--math-accent)}.math-article h1{font-size:clamp(2.1rem,4.5vw,3.6rem);line-height:1.12;max-width:20ch;text-wrap:balance;margin:.7rem 0 1.2rem}.math-article .lead{max-width:62ch;font-size:1.22rem}.math-article .article-prose{max-width:740px;margin:2rem auto}.math-article p{margin:1.1em 0}.math-article h2{font-size:1.75rem;line-height:1.28;margin:2.6rem 0 1rem;scroll-margin-top:7rem}.math-article h3{font-size:1.23rem;line-height:1.35}.math-article a{text-underline-offset:.18em}.math-article .math-byline{font-size:.9rem;color:var(--muted,#5a655d)}.math-prereq{border-left:3px solid var(--math-accent);padding:.1rem 1.2rem;margin:1.8rem 0;font-size:.95rem}.math-toc{border-block:1px solid var(--line,#bbc7bb);padding:1rem 0}.math-toc ol{columns:2;column-gap:2rem;padding-left:1.3rem}.math-toc li{break-inside:avoid;font-size:.95rem;margin:.45rem 0}.equation{font-family:Cambria,'Times New Roman',serif;background:var(--math-paper);border-left:3px solid var(--math-accent);padding:1rem 1.2rem;line-height:2;overflow-x:auto;max-width:100%;font-size:1.08em;white-space:normal;overflow-wrap:normal}.inline-math{font-family:Cambria,'Times New Roman',serif}.math-figure{margin:2rem 0}.diagram-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line,#bac6bb);border-radius:12px;background:var(--math-paper)}.math-figure svg{display:block;width:100%;min-width:560px;font-family:Arial,sans-serif;color:var(--ink,#1a3329);fill:currentColor}.math-figure figcaption{font-size:.9rem;line-height:1.55;margin:.7rem 0;color:var(--muted,#5a655d)}.math-figure .axis{stroke:currentColor;stroke-width:1.7}.math-figure .grid{stroke:currentColor;stroke-opacity:.13;stroke-width:1}.math-figure .curve{stroke:var(--math-accent);stroke-width:3.2;fill:none}.math-figure .alt{stroke:var(--math-alt);stroke-width:3;stroke-dasharray:7 4;fill:none}.math-figure .thin{stroke-width:1.3;opacity:.8}.math-figure .shape{stroke:var(--math-accent);stroke-width:3;fill:none}.math-figure .highlight{fill:var(--math-accent);opacity:.18}.math-figure .bar{fill:var(--math-accent);stroke:none}.math-figure .bar.alt{fill:var(--math-alt);stroke:none}.math-exercises{margin-top:3rem}.math-exercises details{border-bottom:1px solid var(--line,#bbc7bb);padding:.7rem 0}.math-exercises summary{cursor:pointer;line-height:1.55;font-size:1rem;min-height:44px}.math-exercises details p{font-size:1rem;padding:0 .5rem}.math-sources{font-size:.92rem;line-height:1.6;overflow-wrap:anywhere}.math-sources li{margin:1rem 0;scroll-margin-top:7rem}.math-sources p{margin:.4rem 0}.math-widget{border:1px solid var(--line,#bbc7bb);border-radius:12px;padding:1.3rem;margin:2rem 0;background:var(--math-paper)}.math-widget h3{margin:0 0 1rem}.math-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;align-items:end}.math-widget label{display:grid;gap:.4rem;font-size:.92rem}.math-widget input,.math-widget select,.math-widget button{font:inherit;min-height:44px;max-width:100%;min-width:0}.math-widget input:not([type=range]),.math-widget select{width:100%;padding:.5rem;border:1px solid var(--line,#bbc7bb);border-radius:5px;background:var(--bg,#fff);color:inherit}.math-widget button{padding:.6rem 1rem;border:1px solid currentColor;background:transparent;color:inherit;border-radius:6px;cursor:pointer}.math-widget button:disabled{opacity:.5;cursor:default}.math-result{font-size:1rem;border-top:1px solid var(--line,#bbc7bb);padding-top:1rem;margin-top:1rem;min-height:3rem;overflow-wrap:anywhere}.math-result[data-error=true]{color:var(--math-alt)}.widget-plot svg{width:100%;height:auto;display:block;color:inherit}.math-table-scroll{max-width:100%;overflow-x:auto}.math-article table{border-collapse:collapse;font-size:.95rem;width:100%}.math-article th,.math-article td{padding:.5rem .65rem;border-bottom:1px solid var(--line,#bbc7bb);text-align:left;white-space:nowrap}.math-pagination{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid var(--line,#bbc7bb);padding-top:1.5rem;margin-top:2rem}.math-pagination a{max-width:48%;font-size:.95rem}.math-access{padding:1.3rem;background:var(--math-paper);border-radius:10px}.math-series-intro{max-width:68ch}.math-series-cover{max-width:100%;border-radius:14px}.math-series-new{margin:1.5rem 0;padding:.7rem 1rem;border-left:3px solid var(--green,#17765a)}
[data-theme=dark] .math-article{--math-accent:#9ad7af;--math-alt:#f5b184;--math-paper:#192c24}[data-theme=dark] .math-figure svg{color:#e0e9dc}[data-theme=dark] .math-widget input:not([type=range]),[data-theme=dark] .math-widget select{background:#192c24}
@media(max-width:600px){.math-article{font-size:1.04rem;padding-top:1rem}.math-article h2{font-size:1.5rem}.math-toc ol{columns:1}.math-widget{padding:.9rem}.math-controls{grid-template-columns:1fr}.math-pagination{flex-direction:column}.math-pagination a{max-width:100%}.equation{font-size:1rem;padding:.8rem}.math-article .article-prose{margin-top:1.2rem}}
@media print{.math-widget,.math-toc,.math-pagination,.math-tools{display:none}.math-article{color:#000;background:#fff;max-width:none}.diagram-scroll{overflow:visible}.math-figure svg{min-width:0}.math-exercises details{break-inside:avoid}}
