:root{--paper:#f4f1e9;--white:#fffdf7;--ink:#192f38;--muted:#58676b;--line:#cdd1c7;--accent:#a13d2b;--accent-wash:#f5e3da;--teal:#32635d;--teal-wash:#e7eee7;--serif:"Songti SC","STSong","Noto Serif CJK SC",serif;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--duration:380ms;--ease:cubic-bezier(.2,.7,.2,1)}
*{box-sizing:border-box}html{scroll-behavior:auto;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.75;-webkit-font-smoothing:antialiased}h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.35;font-weight:600}h1,h2{font-family:var(--serif)}p+p{margin-top:12px}a{color:inherit;text-decoration-thickness:1px;text-underline-offset:5px}button,input{font:inherit;color:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{border:0}a:hover{text-decoration-color:var(--accent);color:var(--accent)}button:hover{filter:brightness(.97)}:focus-visible{outline:3px solid var(--accent);outline-offset:5px;border-radius:3px}button:disabled{cursor:default;opacity:.45}::selection{background:#eac6b5;color:var(--ink)}[hidden]{display:none!important}.wrap{width:min(1240px,calc(100% - 96px));margin-inline:auto}.small,.source-line{font-size:13px;line-height:1.7;color:var(--muted)}.eyebrow{font-size:12px;font-weight:650;letter-spacing:.13em;color:var(--teal);line-height:1.6}.source-line a{margin-left:8px}.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}.skip{position:fixed;top:8px;left:8px;transform:translateY(-160%);background:var(--ink);color:white;padding:10px 18px;z-index:100}.skip:focus{transform:translateY(0)}.js-only{display:none!important}.js .js-only{display:flex!important}
.site-header{height:94px;border-bottom:1px solid var(--line)}.header-inner{width:min(1344px,calc(100% - 96px));height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:var(--serif);font-size:24px;font-weight:650;white-space:nowrap}.brand-mark{font-family:Georgia,serif;font-size:42px;line-height:1;color:var(--accent);transform:translateY(-3px)}.brand small{font-family:var(--sans);display:block;font-size:8px;letter-spacing:.15em;line-height:1.7;font-weight:500;color:var(--muted)}.site-header nav{display:flex;gap:30px;align-items:center;font-size:14px}.site-header nav a{text-decoration:none;padding:10px 0}.site-header nav [aria-current]{border-bottom:2px solid var(--accent)}.site-footer{border-top:1px solid var(--line);width:min(1240px,calc(100% - 96px));margin:72px auto 0;padding:34px 0 30px;display:grid;grid-template-columns:1fr 1fr auto;gap:28px;color:var(--muted);font-size:12px}.footer-brand{font-family:var(--serif);font-size:20px;color:var(--ink);text-decoration:none}.site-footer p{margin:5px 0}.site-footer>div:last-child{display:flex;flex-direction:column;gap:6px}.button{min-height:48px;padding:11px 22px;display:inline-flex;gap:20px;align-items:center;justify-content:center;text-decoration:none;font-weight:550;font-size:14px;border:1px solid transparent;border-radius:3px;line-height:1.6;transition:background 180ms,color 180ms}.button.primary{background:var(--ink);color:var(--white)}.button.primary:hover{background:#2d4d55}.button.secondary{background:transparent;border-color:#9ca9a4}.button.plain{background:transparent;text-decoration:underline;padding-inline:4px}.row-links{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:20px;font-size:15px}.quiet-button{background:transparent;text-decoration:underline;text-underline-offset:4px;padding:10px 0;font-size:14px;color:var(--muted)}
.home-hero{display:grid;grid-template-columns:1.06fr 1fr;align-items:center;gap:7%;padding-top:62px;padding-bottom:66px;min-height:716px}.hero-copy h1{font-size:clamp(54px,5.3vw,78px);line-height:1.23;letter-spacing:-.035em;font-weight:500;margin:24px 0}.accent-word{color:var(--accent)}.red-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);display:inline-block;margin-right:7px;vertical-align:2px}.hero-description{font-size:18px;line-height:1.9;color:#495a60}.hero-actions{display:flex;gap:24px;align-items:center;margin-top:34px}.hero-note{font-size:12px;color:var(--muted);margin-top:20px}.hero-board{background:var(--white);padding:26px 32px 22px;border:1px solid #c9cec3;position:relative;box-shadow:9px 9px 0 #e4e8df}.hero-board:before{content:"";position:absolute;left:-1px;top:-1px;width:54px;height:3px;background:var(--accent)}.board-top{display:flex;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:.06em;color:var(--muted)}.hero-board h2{font-size:28px;margin:20px 0 24px;line-height:1.45;font-weight:500}.scope-toggle{margin-top:22px;display:flex;border:1px solid var(--line);padding:3px;gap:3px;background:var(--paper)}.scope-toggle button{background:transparent;flex:1;padding:8px 6px;font-size:12px;border-radius:2px;min-height:40px}.scope-toggle [aria-pressed="true"]{background:var(--ink);color:white}.hero-result{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 14px}.hero-result>span{font-family:Georgia,serif;font-size:20px}.hero-result small{display:block;font-family:var(--sans);font-size:11px;color:var(--muted);margin-top:4px}.hero-result strong{font-family:Georgia,serif;font-size:52px;line-height:1.1;font-weight:400;color:var(--accent);letter-spacing:-.045em}.hero-result strong span{font-size:24px;margin-left:5px}.hero-board figcaption{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}.hero-board figcaption a{display:block;margin-top:5px}.home-lower{border-top:1px solid var(--line);padding-top:42px}.section-heading h2{font-size:31px;margin:10px 0}.section-heading>p:last-child{color:var(--muted);font-size:14px}.chapter-strip{margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.chapter-strip>a{display:flex;gap:16px;text-decoration:none;border-top:2px solid #9faea5;padding-top:20px}.chapter-number{font-family:Georgia,serif;font-size:27px;color:var(--teal);line-height:1.4}.chapter-strip h3{font-size:16px;font-weight:550;margin:4px 0 9px}.chapter-strip p{font-size:12px;color:var(--muted)}.chapter-strip a>span:last-child{margin-left:auto}.sample-note{display:flex;align-items:flex-start;gap:14px;border-top:1px solid var(--line);margin-top:45px;padding-top:24px;font-size:13px;color:var(--muted)}.sample-note>a{white-space:nowrap;margin-left:auto;color:var(--ink)}.status-dot{width:6px;height:6px;background:var(--teal);border-radius:50%;flex:none;margin-top:9px}.sample-note strong{color:var(--ink);font-weight:550}
.page-main,.reading-main,.practice-main,.answer-main{padding-top:50px}.page-heading{max-width:820px;margin-bottom:36px}.page-heading h1{font-size:43px;line-height:1.4;margin:16px 0 20px;font-weight:500}.page-heading>p:last-child{font-size:16px;color:var(--muted);max-width:720px}.catalog-tools{max-width:660px;margin-bottom:44px}.catalog-tools label{display:block;margin-bottom:10px;font-size:14px}.catalog-tools input{width:100%;padding:12px 16px;border:1px solid #9faaa4;background:var(--white);border-radius:3px;font-size:16px;min-height:48px}.catalog-tools p{margin-top:7px}.catalog-chapter{margin:46px 0;scroll-margin-top:30px}.chapter-heading{display:flex;gap:25px;align-items:flex-start;border-bottom:2px solid var(--ink);padding-bottom:20px}.chapter-heading>span{font-size:44px;font-family:Georgia,serif;color:var(--teal);line-height:1.1}.chapter-heading h2{font-size:27px;font-weight:500}.chapter-heading p{font-size:13px;margin-top:8px;color:var(--muted)}.catalog-row{display:grid;grid-template-columns:68px 1fr;gap:10px;padding:24px 0;border-bottom:1px solid var(--line)}.section-number{font-family:Georgia,serif;font-size:24px;color:var(--muted)}.catalog-row h3{font-size:19px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.catalog-row .section-content>p{max-width:850px;margin-top:8px;font-size:14px;color:var(--muted)}.sample-badge{font-size:11px;color:var(--accent);font-weight:500;border-bottom:1px solid #cf8e7d;line-height:1.8}.catalog-row .row-links{margin:13px 0 16px}.plan-detail{margin-top:13px;font-size:13px;color:var(--muted)}.plan-detail summary{display:flex;align-items:center;gap:20px;min-height:36px;list-style:none;text-decoration:underline;text-underline-offset:5px}.plan-detail summary:before{content:'+';color:var(--accent);font-size:18px}.plan-detail[open] summary:before{content:'−'}.plan-detail summary span{margin-left:auto;font-size:12px;color:#66766e;text-decoration:none}.plan-detail p{margin-top:9px}.records-section{background:var(--teal-wash);padding:30px;margin-top:64px}.record-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0;font-size:14px}.record-summary div{border-top:1px solid #aebeb1;padding-top:12px}.record-summary strong{font-size:16px;display:block}.record-summary p{margin-top:8px}.record-actions{display:flex;gap:30px;align-items:flex-start;flex-wrap:wrap}.record-actions summary{padding:12px 0;font-size:13px}.record-actions details p{margin:4px 0 12px}
.lesson-main{padding-top:36px}.lesson-heading h1{font-size:36px;margin:10px 0 16px;font-weight:500}.lesson-toolbar{position:sticky;top:0;z-index:10;background:rgba(244,241,233,.98);display:flex;align-items:center;justify-content:space-between;gap:15px;border-block:1px solid var(--line);margin:26px 0 22px;padding:8px 0;min-height:59px;font-size:13px}.lesson-toolbar>div{display:flex;gap:20px;align-items:center}.lesson-toolbar a{text-decoration:none;padding:8px 0;white-space:nowrap}.route-tabs a{padding:8px 14px}.route-tabs a[aria-current]{background:var(--ink);color:var(--white);border-radius:3px}.conditions{background:var(--white);border:1px solid var(--line);margin-bottom:30px;padding:0 20px}.conditions summary,.symbols summary{padding:12px 0;font-size:14px;font-weight:600}.conditions summary span,.symbols summary span{font-weight:400;font-size:12px;color:var(--muted);margin-left:14px}.conditions ol{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:8px 22px;padding:0;margin:0 0 12px}.conditions li{display:grid;grid-template-columns:76px 1fr;gap:10px;padding:8px 10px;font-size:13px;line-height:1.65;border-left:2px solid transparent;scroll-margin-top:120px}.conditions li.is-referenced{border-color:var(--accent);background:#f8eee6}.conditions strong{font-weight:600}.conditions .small{padding:0 10px 14px}.lesson-flow{display:grid;grid-template-columns:1.08fr 1fr;gap:24px 40px;grid-template-areas:'visual question' 'visual explanation' 'visual controls';align-items:start}.question-panel{grid-area:question}.step-question .eyebrow{display:flex;justify-content:space-between}.step-question h2{font-size:28px;font-weight:550;margin:12px 0 14px;scroll-margin-top:100px}.condition-refs{font-size:12px;color:var(--muted)}.condition-refs a{padding-block:7px}.visual-panel{grid-area:visual;background:var(--white);border:1px solid var(--line);padding:22px;min-width:0}.visual-heading{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:20px}.count-matrix{min-width:0}.count-matrix table{width:100%;border-collapse:collapse;text-align:center;font-size:18px;table-layout:fixed;font-variant-numeric:tabular-nums}.count-matrix th{font-size:13px;font-weight:500}.count-matrix th,.count-matrix td{padding:17px 6px;border-bottom:1px solid var(--line);transition:background var(--duration) var(--ease),color var(--duration) var(--ease),opacity var(--duration) var(--ease)}.count-matrix thead th{font-size:12px;color:var(--muted);padding:8px 4px 14px}.count-matrix thead .katex{font-size:1em}.count-matrix thead th:first-child{width:26%}.count-matrix tfoot th,.count-matrix tfoot td{border-top:2px solid #9aa99f;border-bottom:0}.count-matrix .total{font-weight:600}.event-tag{display:inline-block;font:italic 12px Georgia,serif;color:var(--accent);margin-left:2px}.count-matrix[data-state="restricted"] tr.jia{background:var(--accent-wash)}.count-matrix[data-state="restricted"] tr.yi,.count-matrix[data-state="restricted"] tfoot{color:#758079;background:#f2f2eb}.count-matrix[data-focus="total-bad"] [data-cell="total-bad"],.count-matrix[data-focus="total-bad"] [data-cell="total"],.count-matrix[data-focus="jia-total"] [data-cell="jia-total"]{background:var(--teal-wash);box-shadow:inset 0 -2px var(--teal);color:var(--ink)}.count-matrix[data-focus="jia-bad"] [data-cell="jia-bad"],.count-matrix[data-focus="jia-bad"] [data-cell="jia-total"]{background:var(--accent-wash);box-shadow:inset 0 -3px var(--accent);color:var(--accent);font-weight:650}.count-matrix.compact th,.count-matrix.compact td{padding:11px 4px}.count-matrix.compact table{font-size:17px}.count-matrix.compact th{font-size:12px}.visual-panel figcaption{font-size:12px;color:var(--muted);margin:18px 0}.visual-panel figcaption>span{display:block;margin-top:7px}.legend-swatch{display:inline-block;width:13px;height:10px;background:var(--accent-wash);border-bottom:2px solid var(--accent);margin-right:7px}.number-sources{border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.number-sources summary{padding:13px 0 0}.number-sources dl{margin-bottom:0}.number-sources dl>div{margin-top:12px}.number-sources dt{color:var(--ink);font-weight:600}.number-sources dd{margin:3px 0}.explanation-panel{grid-area:explanation;min-width:0}.step-explanation{font-size:16px;line-height:1.95}.step-result{padding:15px 0;border-block:1px solid var(--line);margin:18px 0}.step-result p{font-size:16px;font-weight:500}.step-result .math-block{margin:0;padding-block:5px}.number-note{font-size:13px;color:var(--muted)}.number-note strong{display:block;font-weight:550;color:var(--teal);margin-bottom:4px}.why{font-size:14px;margin-top:18px}.why summary{padding:9px 0}.why p{margin-top:8px}.step-controls{grid-area:controls;display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:2px}.step-controls .button{padding:10px 15px}.step-controls [aria-disabled="true"]{visibility:hidden}.step-controls .replay{background:transparent;text-decoration:underline;text-underline-offset:5px;font-size:12px;padding:12px 0;min-width:70px}.step-map{display:flex;gap:20px;margin:34px 0 26px;border-top:1px solid var(--line);padding-top:18px;flex-wrap:wrap}.step-map a{font-size:13px;text-decoration:none;display:flex;align-items:center;gap:8px}.step-map a>span:first-child{border:1px solid #aab4ab;border-radius:50%;font:12px Georgia,serif;width:24px;height:24px;display:grid;place-content:center}.step-map a[aria-current="step"]{color:var(--accent);font-weight:600}.step-map a[aria-current="step"]>span:first-child{background:var(--accent);color:white;border-color:var(--accent)}.symbols{border-block:1px solid var(--line);padding:0 2px}.symbols dl{margin:3px 0 20px}.symbols dl>div{display:grid;grid-template-columns:120px 1fr;gap:14px;border-top:1px solid #dde0d7;padding:10px 0}.symbols dd{margin:0;font-size:14px}.symbols p{padding-bottom:16px}.takeaway{padding:38px 0 0;max-width:760px}.takeaway h2{font-size:31px;font-weight:500;margin:14px 0 20px}.takeaway>p:not(.eyebrow){font-size:15px;color:var(--muted)}.takeaway .quiet-button{margin-top:22px}.takeaway #lesson-note{display:block}.math-block{overflow-x:auto;overflow-y:hidden;padding:8px 1px;margin:14px 0;max-width:100%;font-size:1.02em}.math-block .katex-display{margin:.4em 0;text-align:left}.math-block .katex-display>.katex{text-align:left}.math-inline .katex{font-size:1.05em}
.reading-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:65px}.reading-toc{display:flex;flex-direction:column;align-self:start;position:sticky;top:85px;gap:4px;font-size:13px}.reading-toc a{padding:9px 0;text-decoration:none;color:var(--muted)}.reading-toc a:last-child{color:var(--accent);border-top:1px solid var(--line);margin-top:10px;padding-top:16px}.reading-body{max-width:820px;min-width:0}.reading-body>section{padding:24px 0 36px;border-bottom:1px solid var(--line);scroll-margin-top:100px}.reading-body h2{font-size:28px;margin:10px 0 20px;font-weight:550}.reading-body p{font-size:15px;line-height:1.9}.reading-body .source-line{font-size:12px;margin-top:20px}.reading-body .count-matrix{background:var(--white);padding:12px 20px;margin:22px 0}.rule-note{border-left:3px solid var(--teal);background:var(--teal-wash);padding:17px 20px;margin:22px 0;font-size:14px}.rule-note strong{font-weight:600}.rule-note p{margin-top:6px}.solution-steps{list-style:none;counter-reset:solution;padding:0;margin:20px 0}.solution-steps>li{counter-increment:solution;border-top:1px solid var(--line);padding:24px 0 24px 46px;position:relative}.solution-steps>li:before{content:counter(solution,decimal-leading-zero);position:absolute;left:0;top:22px;font:22px Georgia,serif;color:var(--teal)}.solution-steps h3,.solution-steps h2{font-family:var(--sans);font-size:18px;margin:0 0 12px;font-weight:550}.proof-chain>article{display:flex;gap:16px;padding:20px 0;border-top:1px solid var(--line)}.proof-chain>article>span{width:26px;height:26px;flex:none;background:var(--teal-wash);color:var(--teal);font:17px Georgia,serif;display:grid;place-content:center}.proof-chain>article>div{min-width:0}.proof-chain h3{font-size:16px}.proof-chain .math-block{margin:6px 0}.pitfalls>div{padding:18px 0;border-top:1px solid var(--line)}.pitfalls dt{font-weight:550;font-size:16px}.pitfalls dd{margin:12px 0 0;font-size:15px;line-height:1.9}
.practice-main,.answer-main{max-width:1040px}.problem-givens{background:var(--white);border:1px solid var(--line);padding:24px 28px}.problem-stem{font-size:18px;line-height:1.9;margin-top:10px}.problem-givens ul{font-size:14px;margin:18px 0;padding-left:20px}.problem-givens>p:not(.problem-stem){font-size:14px}.problem-givens .source-line{font-size:12px!important;margin-top:16px}.practice-layout{display:grid;grid-template-columns:1fr .82fr;gap:70px;margin-top:38px}.answer-area h2{font-size:29px;margin:10px 0 24px;font-weight:500}.answer-area fieldset{padding:0;margin:0 0 22px;border:0}.option-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.option{display:flex;gap:15px;align-items:center;background:var(--white);border:1px solid var(--line);padding:18px;min-height:84px;cursor:pointer;position:relative}.option:has(input:checked){border-color:var(--teal);background:var(--teal-wash)}.option:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px}.option input{position:absolute;opacity:0;width:1px;height:1px}.option-letter{font-size:12px;color:var(--muted)}.radio-ring{width:14px;height:14px;border:1px solid #92a096;border-radius:50%;margin-left:auto}.option input:checked~.radio-ring{background:var(--teal);box-shadow:inset 0 0 0 3px var(--teal-wash);border-color:var(--teal)}.option .katex{font-size:1.3em}.practice-feedback{border-left:3px solid var(--accent);background:var(--accent-wash);padding:16px 20px;margin:22px 0 12px;font-size:14px}.practice-feedback.correct{border-color:var(--teal);background:var(--teal-wash)}.practice-feedback strong{display:block;margin-bottom:6px}.practice-aside{padding-top:8px;min-width:0}.product-display{border-top:2px solid var(--teal);padding:18px 0}.products{display:flex;gap:9px;margin:20px 0}.product{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;aspect-ratio:.8;border:1px solid #8b9d91;background:var(--teal-wash);font:23px Georgia,serif;line-height:1.5;max-width:65px;border-radius:30px 30px 4px 4px}.product.second{background:var(--white);border-style:dashed}.product small{font:10px var(--sans);margin-top:5px}.product-display>p:last-child{font-size:12px;color:var(--muted)}.hint-box{border-block:1px solid var(--line);padding:5px 0;margin:15px 0}.hint-box summary{font-size:14px;padding:12px 0}.hint-box p{font-size:14px;padding-bottom:15px}.practice-aside>a{display:block;margin-top:26px;font-size:13px}.answer-body{max-width:840px;margin:34px auto 0}.answer-highlight{background:var(--teal-wash);padding:24px 28px;border-top:3px solid var(--teal)}.answer-highlight>span{font-size:13px;color:var(--teal)}.answer-highlight .math-block{font-size:1.2em}.answer-highlight p{font-size:15px}.draw-detail{margin-top:20px;font-size:13px}.draw-detail summary{padding:10px 0}.draw-table-wrap{overflow-x:auto;margin-top:16px}.draw-table{border-collapse:collapse;width:100%;min-width:370px;text-align:center;font-size:12px}.draw-table caption{text-align:left;font-size:12px;color:var(--muted);padding-bottom:10px}.draw-table th,.draw-table td{border:1px solid var(--line);padding:11px 5px}.draw-table th{font-weight:500}.draw-table .condition-row{background:var(--accent-wash)}.draw-table td.success{background:#dce9dd;color:var(--teal)}.draw-table td.illegal{background:#e9e9e1;color:#78877c}.source-cards{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-block:1px solid var(--line);padding:30px 0}.source-cards h2{font-size:27px;margin:12px 0 20px;font-weight:500}.source-cards p{font-size:15px}.source-cards .small{font-size:12px;margin-top:20px}.source-section{margin:45px 0}.source-section h2{font-size:27px;margin-bottom:20px}.source-section>p,.source-section li{font-size:15px;max-width:900px}.responsive-table{overflow-x:auto}.source-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}.source-table th,.source-table td{border-bottom:1px solid var(--line);padding:15px 10px;vertical-align:top}.source-table th{font-weight:500}.source-table thead{background:var(--teal-wash)}.source-list{max-width:950px}.source-list>div{display:grid;grid-template-columns:240px 1fr;border-top:1px solid var(--line);gap:30px;padding:20px 0;font-size:14px}.source-list dt{font-weight:600}.source-list dd{margin:0;color:var(--muted)}.storage-notice,.noscript-note{padding:12px 20px;background:#f5dfce;border-top:1px solid #b4947a;font-size:13px;text-align:center}.storage-notice{position:sticky;bottom:0;z-index:30}.noscript-note{margin-top:20px}.replay-highlight{animation:replay-highlight 620ms var(--ease)}@keyframes replay-highlight{0%{box-shadow:0 0 0 0 transparent}30%{box-shadow:0 0 0 4px #a13d2b55}100%{box-shadow:0 0 0 0 transparent}}
@media(min-width:1000px){.hero-board{transform:rotate(1deg)}.hero-board>*{transform:rotate(-1deg)}}
@media(max-width:1000px){.wrap{width:calc(100% - 64px)}.header-inner,.site-footer{width:calc(100% - 64px)}.home-hero{gap:5%;min-height:650px}.hero-copy h1{font-size:55px}.hero-board{padding:22px}.hero-actions{gap:15px;flex-wrap:wrap}.hero-description{font-size:16px}.hero-board h2{font-size:26px}.chapter-strip{gap:24px}.chapter-strip>a{gap:12px}.lesson-flow{gap:22px 28px}.step-question h2{font-size:25px}.visual-panel{padding:18px}.reading-layout{grid-template-columns:160px minmax(0,1fr);gap:30px}.reading-toc{font-size:12px}.practice-layout{gap:36px}.source-list>div{grid-template-columns:200px 1fr;gap:20px}}
@media(max-width:760px){html{scroll-padding-top:110px}.wrap{width:calc(100% - 40px)}.site-header{height:78px}.header-inner{width:calc(100% - 40px);gap:10px}.brand{font-size:21px;gap:8px}.brand-mark{font-size:35px}.brand small{font-size:6px;letter-spacing:.1em}.site-header nav{gap:20px;font-size:12px}.site-header .nav-record{display:none}.home-hero{grid-template-columns:1fr;gap:36px;padding-top:36px;padding-bottom:42px;min-height:0}.hero-copy h1{font-size:56px;margin:20px 0}.hero-description{font-size:16px}.hero-actions{margin-top:26px;gap:24px}.hero-note{font-size:11px;margin-top:14px}.hero-board{padding:24px;box-shadow:6px 6px 0 #e4e8df;max-width:540px;width:100%;margin-inline:auto}.hero-board h2{font-size:28px;margin:18px 0}.hero-result strong{font-size:48px}.count-matrix.compact td{font-size:18px}.home-lower{padding-top:28px}.section-heading h2{font-size:27px}.chapter-strip{grid-template-columns:1fr;gap:22px}.chapter-strip>a{padding-top:16px;gap:20px}.chapter-strip h3{font-size:17px}.chapter-strip p{font-size:13px}.sample-note{flex-wrap:wrap;margin-top:30px}.sample-note>p{flex:1}.sample-note>a{margin-left:20px}.site-footer{width:calc(100% - 40px);grid-template-columns:1fr;gap:18px;margin-top:46px;padding-top:24px}.site-footer>div:last-child{border-top:1px solid var(--line);padding-top:16px}.page-main,.reading-main,.practice-main,.answer-main{padding-top:32px}.page-heading h1{font-size:34px;margin:12px 0 18px}.page-heading>p:last-child{font-size:14px}.page-heading{margin-bottom:28px}.catalog-tools{margin-bottom:28px}.catalog-tools input{font-size:14px;padding:12px}.chapter-heading{gap:16px}.chapter-heading>span{font-size:35px}.chapter-heading h2{font-size:23px}.chapter-heading p{font-size:12px}.catalog-row{grid-template-columns:38px 1fr;gap:10px;padding:22px 0}.section-number{font-size:20px}.catalog-row h3{font-size:18px;gap:6px 10px}.catalog-row .section-content>p{font-size:13px}.plan-detail summary{align-items:flex-start;gap:8px}.plan-detail summary span{min-width:36px;font-size:10px}.records-section{padding:24px 18px;margin-top:44px}.record-summary{grid-template-columns:1fr;gap:16px}.record-actions{gap:14px}.lesson-main{padding-top:26px}.lesson-heading h1{font-size:29px;margin:10px 0 14px}.source-line{font-size:11px}.lesson-toolbar{margin:20px 0 18px;gap:8px;min-height:57px;font-size:12px;padding:7px 0}.lesson-toolbar>div{gap:10px}.route-tabs a{padding:7px 10px}.lesson-toolbar>div:last-child{gap:10px}.conditions{padding:0 14px;margin-bottom:24px}.conditions summary{font-size:13px}.conditions summary span{font-size:10px;margin-left:6px}.conditions ol{grid-template-columns:1fr;gap:4px}.conditions li{padding:6px 7px;grid-template-columns:65px 1fr;gap:8px;font-size:12px}.conditions .small{font-size:11px;padding:0 7px 12px}.lesson-flow{grid-template-columns:1fr;gap:20px;grid-template-areas:'question' 'visual' 'explanation' 'controls'}.step-question h2{font-size:26px;margin:10px 0 12px}.step-question .eyebrow{font-size:11px}.condition-refs{font-size:11px}.visual-panel{padding:18px 16px}.visual-heading{font-size:11px;margin-bottom:10px}.count-matrix table{font-size:19px}.count-matrix th,.count-matrix td{padding:14px 4px}.count-matrix th{font-size:12px}.count-matrix thead th{font-size:11px}.visual-panel figcaption{margin:13px 0 10px;font-size:11px}.number-sources{font-size:12px}.step-explanation{font-size:15px;line-height:1.9}.step-result{margin:16px 0;padding:10px 0}.step-result p{font-size:15px}.number-note{font-size:12px}.step-controls{gap:10px}.step-controls .button{font-size:13px;padding:10px 13px;min-height:46px}.step-controls .replay{font-size:12px;min-width:62px}.step-map{gap:10px 16px;justify-content:space-between;margin:26px 0 20px;padding-top:16px}.step-map a{font-size:11px;gap:6px}.step-map a>span:first-child{width:20px;height:20px;font-size:10px}.symbols dl>div{grid-template-columns:100px 1fr;gap:14px}.symbols dd{font-size:13px}.takeaway{padding-top:30px}.takeaway h2{font-size:27px}.takeaway .row-links{font-size:14px}.math-block{font-size:.94em}.reading-layout{display:block}.reading-toc{position:static;display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;padding-bottom:20px;border-bottom:1px solid var(--line);font-size:12px}.reading-toc a{padding:8px 0}.reading-toc a:last-child{margin-top:0;padding:8px 0;border:0}.reading-body>section{padding:26px 0}.reading-body h2{font-size:25px;margin-top:10px}.reading-body p{font-size:14px}.reading-body .count-matrix{padding:10px 8px}.solution-steps>li{padding-left:32px}.solution-steps>li:before{font-size:19px}.solution-steps h3,.solution-steps h2{font-size:17px}.rule-note{padding:15px;margin:20px 0}.proof-chain>article{gap:11px}.proof-chain>article>span{width:22px;height:22px;font-size:15px}.proof-chain .math-block{font-size:.87em}.pitfalls dd{font-size:14px}.practice-layout{grid-template-columns:1fr;gap:32px;margin-top:26px}.problem-givens{padding:20px 17px}.problem-stem{font-size:16px;line-height:1.85}.problem-givens ul{font-size:13px;padding-left:17px}.problem-givens>p:not(.problem-stem){font-size:13px}.problem-givens .source-line{font-size:11px!important}.answer-area h2{font-size:27px}.option{padding:18px 14px;min-height:78px}.answer-area form>.button{width:100%}.products{max-width:360px}.product{max-width:62px}.practice-aside{padding-top:0}.answer-highlight{padding:20px 16px}.answer-highlight .math-block{font-size:1em}.answer-body .solution-steps p{font-size:14px}.source-cards{grid-template-columns:1fr;gap:28px;padding:26px 0}.source-cards>section+section{border-top:1px solid var(--line);padding-top:26px}.source-cards h2{font-size:25px;margin:10px 0 16px}.source-section h2{font-size:25px}.source-section{margin:32px 0}.source-table{font-size:12px;min-width:420px}.source-table th,.source-table td{padding:12px 7px}.source-table th:first-child{min-width:135px}.source-list>div{grid-template-columns:1fr;gap:8px;padding:20px 0;font-size:13px}.source-section>p,.source-section li{font-size:14px}.source-section ol{padding-left:22px}.source-section li{margin-bottom:12px}.storage-notice{font-size:12px}}
@media(max-width:360px){.wrap,.header-inner,.site-footer{width:calc(100% - 28px)}.brand{font-size:19px;gap:6px}.brand-mark{font-size:30px}.brand small{font-size:5px}.site-header nav{gap:13px;font-size:11px}.hero-copy h1{font-size:48px}.hero-board{padding:20px 15px}.hero-actions{gap:18px}.hero-actions .button{padding:11px 16px;font-size:13px}.hero-actions .plain{padding-inline:0;font-size:12px}.hero-description{font-size:15px}.hero-board h2{font-size:26px}.hero-result strong{font-size:43px}.hero-result>span{font-size:18px}.scope-toggle button{font-size:11px}.page-heading h1{font-size:30px}.lesson-heading h1{font-size:27px}.lesson-toolbar{font-size:11px;gap:5px}.lesson-toolbar>div{gap:5px}.route-tabs a{padding:7px 8px}.lesson-toolbar>div:last-child{gap:8px}.conditions{padding:0 10px}.conditions summary span{font-size:9px}.conditions li{grid-template-columns:60px 1fr;padding:6px 4px;gap:6px}.step-question h2{font-size:24px}.visual-panel{padding:15px 10px}.count-matrix th{font-size:11px}.count-matrix table{font-size:17px}.count-matrix thead th{font-size:10px}.count-matrix thead th:first-child{width:26%}.event-tag{font-size:10px}.step-map{display:grid;grid-template-columns:1fr 1fr}.step-controls{gap:7px}.step-controls .button{font-size:12px;padding:10px}.step-controls .replay{font-size:11px}.math-block{font-size:.86em}.symbol dl>div{grid-template-columns:80px 1fr}.option{gap:10px;padding:16px 12px}.record-actions .button{width:100%}.source-line a{margin-left:0;display:inline-block}.takeaway h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.hero-board,.hero-board>*{transform:none!important}}
@media print{body{background:white;font-size:11pt}.wrap{width:100%;max-width:none}.site-header,.site-footer,.lesson-toolbar,.step-controls,.step-map,.reading-toc,.record-actions,.quiet-button,.js-only,.scope-toggle,.skip{display:none!important}.lesson-flow,.reading-layout,.practice-layout{display:block}.step-question[hidden],.explanation-panel article[hidden]{display:block!important}.step-question{margin:18px 0}.visual-panel{break-inside:avoid;margin:20px 0}.count-matrix{background:white!important}.count-matrix tr{color:#222!important}.hero-board{transform:none;box-shadow:none}.math-block{overflow:visible}.reading-body{max-width:none}.reading-body>section{break-inside:auto}.question-panel h2{font-size:20pt}.page-heading h1{font-size:25pt}.conditions{break-inside:avoid}.storage-notice{display:none}a{color:inherit}p,h2,h3{orphans:3;widows:3}}

.print-lesson{display:none}
@media print{.js .js-only{display:none!important}.lesson-main>:not(.lesson-heading):not(.print-lesson){display:none!important}.print-lesson{display:block}.print-lesson>section{margin-top:24px;break-inside:avoid}.print-lesson h2{font-size:18pt;margin:14px 0}.print-lesson .print-givens{font-size:11pt;padding-left:20px}.print-lesson .count-matrix{margin:20px 0}.print-lesson .math-block{font-size:12pt}.print-lesson p{margin-top:9px}.print-lesson .print-source{font-size:10pt;color:#444}}

.nav-short{display:none}.catalog-search-row{display:flex;gap:8px;align-items:center}.catalog-search-row input{min-width:0;flex:1;font-size:16px!important}.catalog-jumps,.catalog-filter{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.catalog-jumps a,.catalog-filter button,.catalog-search-row button{min-height:44px;display:inline-flex;align-items:center;padding:8px 14px;border:1px solid #cbd2c6;background:transparent;border-radius:4px;font:inherit;color:inherit;text-decoration:none}.catalog-filter button[aria-pressed=true]{background:#183b43;color:#fff}.row-links a{min-height:44px;display:inline-flex;align-items:center}.resume-panel{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:20px;margin:20px 0;border:1px solid #b7c4b6;border-radius:6px;background:#edf0e7;color:#183b43}.resume-panel small,.resume-panel strong{display:block}.resume-panel small{font-size:12px;margin-bottom:6px}.resume-action{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;font-weight:700;color:inherit}.resume-panel[hidden]{display:none}
@media(max-width:760px){.nav-long{display:none}.nav-short{display:inline}.site-header .nav-record{display:inline-flex!important}.site-header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}.site-header nav{gap:2px}.header-inner{gap:8px}.resume-panel{padding:16px;flex-wrap:wrap}.catalog-jumps{gap:6px}.catalog-jumps a{padding:8px 11px}.row-links{gap:8px 16px}}
@media print{.resume-panel,.catalog-filter,.catalog-jumps{display:none}}

[hidden]{display:none!important}

.step-map a>span:first-child{flex:none}.step-map .step-label{min-width:0;overflow-wrap:anywhere}
