/* Native MathML and course calculations. Equations stay visible at narrow widths. */
.math-heading .eyebrow{display:block;margin-block:14px}.math-heading>.button,.math-heading>.text-link{margin-top:22px}.math-directory{padding-block:12px 80px}.math-chapter{display:grid;grid-template-columns:240px 1fr;column-gap:46px;border-top:1px solid var(--line);padding-block:30px}.math-chapter>h2{font-size:18px;font-weight:500;grid-row:1/20;line-height:1.7}.math-chapter>a{display:flex;justify-content:space-between;gap:24px;padding:0 0 25px;margin-bottom:24px;border-bottom:1px solid var(--line)}.math-chapter>a:last-child{margin-bottom:0;border:0;padding-bottom:0}.math-chapter h3{font-size:21px;font-weight:500}.math-chapter p{font-size:18px;line-height:1.9;margin-top:8px;color:var(--muted)}.math-chapter small{display:block;font-size:16px;line-height:1.9;margin-top:8px;color:var(--muted)}.math-chapter>a>span{font-size:26px;color:var(--accent)}.math-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:52px;padding-bottom:80px}.math-sidebar{position:sticky;top:106px;align-self:start;max-height:calc(100vh - 130px);overflow:auto;padding-right:15px}.math-nav-chapter{margin-bottom:24px}.math-nav-chapter h3{font-size:16px;font-weight:500;line-height:1.8;color:var(--muted);margin-bottom:6px}.math-nav-chapter a{display:flex;justify-content:space-between;align-items:start;gap:12px;font-size:16px;padding:8px 10px;margin-left:-10px;line-height:1.65;border-left:2px solid transparent}.math-nav-chapter a[aria-current]{background:#ffffff;border-color:var(--accent);color:var(--accent)}.math-nav-chapter a>span{font-size:15px;color:var(--muted);padding-top:3px}.math-reading{min-width:0;max-width:900px}.math-in-page{display:flex;flex-wrap:wrap;gap:10px 24px;padding:18px 0;border-block:1px solid var(--line);margin-bottom:34px}.math-in-page a{font-size:16px;color:var(--accent)}.math-topic{padding-bottom:38px;margin-bottom:38px;border-bottom:1px solid var(--line);scroll-margin-top:110px}.math-topic h2{font-size:26px;font-weight:500;line-height:1.5;margin-block:9px 20px}.math-topic h3{font-size:18px;font-weight:600;margin-bottom:9px}.math-topic>p{font-size:18px;line-height:2;margin-block:12px}.math-topic li{font-size:18px;line-height:1.95;margin-bottom:8px}.math-topic ul,.math-topic ol{padding-left:22px;margin-block:8px}.math-equation{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:25px 22px;margin-block:18px;background:#ffffff;border-left:2px solid #626269;font-size:1.17rem;line-height:1.8;scrollbar-width:thin}.math-equation:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.math-equation math{font-family:"Cambria Math","STIX Two Math",math;min-width:max-content;margin-inline:auto}.math-equation code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:18px}.math-symbols{margin:24px 0;border-top:1px solid var(--line)}.math-symbols>div{display:grid;grid-template-columns:minmax(110px,.32fr) minmax(0,1fr);gap:25px;padding:10px 0;border-bottom:1px solid var(--line);font-size:16px;line-height:1.9}.math-symbols dt{font-family:"Cambria Math",var(--serif);font-size:18px;overflow-wrap:anywhere}.math-symbols dd{margin:0;color:var(--muted)}.math-conditions{margin-block:25px}.math-conditions h3{color:var(--accent)}.math-derivation{margin-block:28px}.math-example{margin-block:25px;padding:24px 28px;border:1px solid #dedee3;background:#ffffff}.math-example h3{font-size:17px}.math-result{border-top:1px solid var(--line);margin-top:16px;padding-top:15px;font-size:18px;line-height:1.9;color:var(--accent)}.math-errors{margin-top:24px}.math-errors h3{font-size:16px;color:var(--muted)}.math-errors li{font-size:16px;color:var(--muted)}.math-source{font-size:16px;line-height:1.9}.math-source h2{font-size:19px;margin-bottom:15px}.math-source p{margin-top:12px}.math-source ul{padding-left:18px}.math-source a{color:var(--accent);overflow-wrap:anywhere}.math-lesson{margin-top:45px;border-top:1px solid var(--line);padding-top:30px}.math-lesson .section-title h2{font-size:27px;margin-top:8px}.math-lesson .section-title>.text-link{font-size:16px;flex-shrink:0}.math-lesson-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 45px}.math-lesson-sections>article{min-width:0}.math-lesson-sections h3{font-size:20px;font-weight:500;margin-bottom:9px}.math-lesson-sections>article>p{font-size:16px;color:var(--muted);line-height:1.95}.math-lesson-item{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.math-lesson-item h4{font-size:18px;font-weight:600}.math-lesson-item>p{font-size:16px;line-height:1.9;margin-block:13px}.math-lesson-item>a{font-size:16px;color:var(--accent)}.math-lesson-item .math-equation{font-size:16px;padding:20px 15px}.math-workbench{padding-bottom:80px}.math-calculator-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:35px}.math-calculator-tabs button{font:inherit;font-size:16px;border:1px solid var(--line);background:transparent;padding:10px 15px}.math-calculator-tabs button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}#math-calculator>header h2{font-size:26px;font-weight:500}#math-calculator>header p{font-size:18px;color:var(--muted);line-height:1.9;margin-top:12px;max-width:750px}.math-calculator-layout{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr);gap:45px;margin-top:28px}.math-inputs{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-content:start}.math-inputs label{display:flex;flex-direction:column;gap:8px;font-size:16px;color:var(--muted)}.math-inputs input{font:inherit;font-variant-numeric:tabular-nums;font-size:16px;width:100%;min-width:0;padding:12px 10px;color:var(--ink);background:#fbfbf5;border:1px solid #dedee3;border-radius:2px}.math-inputs>.button{grid-column:1/-1;justify-self:start;margin-top:6px}#math-calculator-result{min-width:0}#math-calculator-result>p{font-size:16px;line-height:1.95;margin-bottom:16px}.math-calculation-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:18px;table-layout:fixed}.math-calculation-table th,.math-calculation-table td{padding:15px 12px;border-block:1px solid var(--line);text-align:left;line-height:1.8;overflow-wrap:anywhere}.math-calculation-table th{font-size:16px;font-weight:400;width:55%;color:var(--muted)}.math-calculation-table td{color:var(--accent)}.math-calculation-table+p{margin-top:20px}.math-input-error{padding:18px 20px;background:#f2e4d8;border-left:2px solid #ab6e48}.ex-math-link{margin-top:24px;padding-top:17px;border-top:1px solid var(--line);font-size:16px;line-height:1.9}.ex-math-link a{color:var(--accent);display:inline-block;margin-right:15px}.ex-home-math{display:flex;justify-content:space-between;align-items:center;gap:30px;border-top:1px solid var(--line);padding-block:35px;margin-top:30px}.ex-home-math h2{font-size:24px;font-weight:500}.ex-home-math p{font-size:18px;line-height:1.9;color:var(--muted);margin-top:10px}.site-header nav{gap:25px}
@media(max-width:1100px){.math-layout{grid-template-columns:200px minmax(0,1fr);gap:28px}.math-chapter{grid-template-columns:200px 1fr;gap:30px}.site-header nav{gap:16px}.math-calculator-layout{gap:26px}.math-lesson-sections{grid-template-columns:1fr}}
@media(max-width:760px){.math-layout{display:block}.math-sidebar{position:static;max-height:none;padding:0;margin-bottom:30px}.math-sidebar nav{display:flex;overflow-x:auto;gap:25px;padding-bottom:12px}.math-nav-chapter{flex:0 0 210px;margin:0}.math-chapter{display:block;padding-block:25px}.math-chapter>h2{margin-bottom:23px;font-size:18px}.math-chapter h3{font-size:19px}.math-topic h2{font-size:24px}.math-topic>p{font-size:18px}.math-equation{padding:22px 14px;font-size:16px}.math-symbols>div{grid-template-columns:95px minmax(0,1fr);gap:15px}.math-example{padding:20px 17px}.math-calculator-layout{grid-template-columns:1fr;gap:28px}.math-calculation-table{font-size:16px}.math-calculation-table th,.math-calculation-table td{padding:12px 8px}.math-calculator-tabs{gap:7px}.math-calculator-tabs button{font-size:16px;padding:9px 11px}.math-lesson .section-title{align-items:start}.math-lesson .section-title h2{font-size:23px}.ex-home-math{align-items:start;flex-direction:column;gap:20px}.math-heading h1{font-size:38px}}
@media print{.math-sidebar,.math-in-page,.math-calculator-tabs,.math-inputs{display:none}.math-layout{display:block}.math-equation{overflow:visible;background:transparent;break-inside:avoid}.math-topic{break-before:auto}.math-reading{max-width:none}}
