:root{color-scheme:light dark;--bg:#fff;--surface:#f9f8f7;--surface-2:#f0efed;--text:#2c2c2b;--muted:#66635f;--border:#e6e5e3;--accent:#1668b8;--accent-soft:#e5f2fc;--focus:#1668b8;--control-border:#918e89;--header-bg:rgba(255,255,255,.97)}
*{box-sizing:border-box}html{scroll-padding-top:96px;scroll-behavior:smooth}body{margin:0;color:var(--text);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.65;overflow-wrap:break-word}a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px}a:hover{text-decoration:underline}button,input{font:inherit}button{cursor:pointer}button,a,input,summary{touch-action:manipulation}:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:3px}h1,h2,h3,h4{line-height:1.25;letter-spacing:-.025em;font-weight:650;color:var(--text)}h1{font-size:40px;margin:12px 0 24px}h2{font-size:29px}h3{font-size:23px}h4{font-size:19px}p{margin:0 0 20px}small{font-size:14px}strong{font-weight:650}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:16px;padding:10px 16px;background:var(--bg);z-index:20}.skip-link:focus{top:8px}
.site-header{position:sticky;top:0;z-index:10;background:var(--header-bg);border-bottom:1px solid var(--border)}.header-inner{height:72px;max-width:1488px;padding:0 32px;margin:auto;display:flex;align-items:center;gap:40px}.site-home{color:var(--text);text-decoration:none;font-weight:650;white-space:nowrap}.site-home span{font-weight:400;color:var(--muted);margin-left:4px}.book-home{display:flex;align-items:center;gap:10px;color:var(--text);font-size:15px;font-weight:600;text-decoration:none;flex:1}.book-home svg{color:var(--accent)}.header-actions{display:flex;align-items:center;gap:8px}.header-actions button{min-height:44px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--bg);padding:8px 12px}.search-trigger{display:flex;gap:8px;align-items:center;font-size:14px}kbd{font:12px Menlo,Consolas,monospace;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:0 5px;margin-left:16px;color:var(--muted)}.header-actions .contents-trigger{display:none}.reader-layout{display:grid;grid-template-columns:240px minmax(0,760px) 192px;gap:48px;max-width:1488px;margin:auto;padding:0 32px}.book-sidebar{position:sticky;top:72px;align-self:start;height:calc(100dvh - 72px);overflow-y:auto;padding:32px 8px 32px 0;scrollbar-width:thin}.sidebar-heading{font-size:14px;letter-spacing:.01em;font-weight:650;display:flex;justify-content:space-between;gap:8px;margin-bottom:20px}.sidebar-heading span{font-size:14px;font-weight:400;color:var(--muted);white-space:nowrap}.nav-overview{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:6px;color:var(--muted);text-decoration:none;font-size:14px;margin:4px 0}.current{color:var(--accent)!important;background:var(--accent-soft);font-weight:600}.nav-group{font-size:14px;margin:2px 0}.nav-group summary{cursor:pointer;min-height:44px;padding:10px 8px 10px 20px;position:relative;color:var(--text);font-weight:550;list-style:none;line-height:1.5}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:before{content:'›';position:absolute;left:4px;top:9px;font-size:18px;color:var(--muted)}.nav-group[open]>summary:before{transform:rotate(90deg)}.nav-group ul{list-style:none;padding:0 0 8px 8px;margin:0}.nav-group a{display:block;min-height:44px;border-radius:6px;padding:8px 12px;line-height:1.5;color:var(--muted);text-decoration:none}.nav-group a:hover,.nav-overview:hover{background:var(--surface-2);color:var(--text)}.sidebar-foot{border-top:1px solid var(--border);padding-top:20px;margin-top:24px;font-size:14px}.sidebar-foot a{display:block;min-height:44px;padding:8px 12px;text-decoration:none}main{min-width:0;padding:40px 0 0;outline:none}.page-crumb{font-size:14px;color:var(--muted);display:flex;gap:10px;align-items:baseline;margin-bottom:32px;line-height:1.5}.page-crumb a{white-space:nowrap;text-decoration:none}.chapter-header{margin-bottom:32px;border-bottom:1px solid var(--border);padding-bottom:24px}.eyebrow{color:var(--accent);text-transform:uppercase;font-size:14px;font-weight:650;line-height:1.6;letter-spacing:.10em;margin-bottom:12px}.chapter-header .eyebrow{font-size:14px;letter-spacing:.06em}.chapter-header h1{font-size:36px;margin:12px 0 16px;overflow-wrap:anywhere}.page-tools{font-size:14px;color:var(--muted);margin:0}.page-tools a{color:var(--muted)}.page-toc{position:sticky;align-self:start;top:112px;max-height:calc(100dvh - 144px);overflow:auto;padding-top:0;margin-top:40px;scrollbar-width:thin}.page-toc h2{font-size:14px;letter-spacing:0;margin:0 0 12px;font-weight:650}.page-toc ul{list-style:none;padding:0;border-left:1px solid var(--border);margin:0 0 24px}.page-toc li a{font-size:14px;text-decoration:none;color:var(--muted);display:block;line-height:1.5;padding:8px 0 8px 16px;min-height:40px}.page-toc a:hover{color:var(--accent)}.back-top{display:block;font-size:14px;text-decoration:none;padding:8px 0;min-height:44px}.inline-toc{display:none}.prose{font-size:17px;line-height:1.8}.prose p{margin:0 0 20px}.prose>p:first-child{color:var(--muted)}.prose h2{margin:48px 0 20px;padding-top:8px}.prose h3{margin:32px 0 16px}.prose h4{margin:24px 0 12px}.prose li{margin-bottom:8px}.prose ul,.prose ol{padding-left:24px;margin:0 0 24px}.prose blockquote{border-left:3px solid var(--accent);margin:24px 0;padding:12px 24px;background:var(--surface)}.prose blockquote p:last-child{margin:0}.prose hr{border:0;border-top:1px solid var(--border);margin:40px 0}.prose code{font:14px/1.6 Menlo,Consolas,"Liberation Mono",monospace;background:var(--surface-2);padding:.15em .35em;border-radius:4px;overflow-wrap:anywhere}.prose pre,.diagram-source pre{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:20px;overflow-x:auto;max-width:100%;font:14px/1.65 Menlo,Consolas,monospace;margin:24px 0;white-space:pre}.prose pre code,.diagram-source pre code{padding:0;border-radius:0;background:none;font:inherit;overflow-wrap:normal}.table-scroll{max-width:100%;overflow-x:auto;margin:28px 0 36px;border:1px solid var(--border);border-radius:8px;font-size:16px;line-height:1.6}.table-scroll table{border-collapse:collapse;width:100%;min-width:640px;text-align:left}.table-scroll th{background:var(--surface);font-weight:650}.table-scroll th,.table-scroll td{padding:12px 16px;vertical-align:top;border-bottom:1px solid var(--border);min-width:150px}.table-scroll tr:last-child td{border-bottom:0}.table-scroll td+td,.table-scroll th+th{border-left:1px solid var(--border)}.math-inline{display:inline-block;vertical-align:middle;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:.12em .03em;line-height:1.4}.math-inline .katex{font-size:1em}.math-block{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:20px 16px;background:var(--surface);border:1px solid var(--border);border-radius:8px;margin:28px 0;line-height:1.5}.math-block .katex-display{margin:0;text-align:left}.math-block .katex-display>.katex{text-align:left;display:block;white-space:nowrap}.math-block .katex{font-size:1.08em}.diagram{margin:32px 0;min-width:0}.diagram-scroll{max-width:100%;overflow-x:auto;background:white;border:1px solid var(--border);border-radius:8px;padding:24px}.diagram img{display:block;max-width:none;height:auto;margin:0 auto}.diagram figcaption{font-size:14px;color:var(--muted);line-height:1.6;margin:12px 0 4px}.diagram-source{font-size:14px}.diagram-source summary{min-height:44px;padding:8px 0;cursor:pointer;color:var(--muted)}.diagram-source pre{margin:0 0 16px}.chapter-pagination{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:64px 0 32px}.chapter-pagination a{border:1px solid var(--border);border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:20px;text-decoration:none}.chapter-pagination a:hover{border-color:var(--accent);background:var(--surface)}.chapter-pagination span{font-size:14px;color:var(--muted)}.chapter-pagination strong{font-size:16px;line-height:1.5}.chapter-pagination a:last-child{text-align:right}.book-footer{border-top:1px solid var(--border);padding:28px 0 40px;margin-top:48px;color:var(--muted);font-size:14px;line-height:1.7}.book-footer p{margin-bottom:8px}.book-footer a{color:var(--muted)}
.book-hero{padding:20px 0 48px}.book-hero h1{font-size:56px;letter-spacing:-.045em;line-height:1.1;margin:16px 0 16px}.hero-subtitle{font-size:27px;line-height:1.35;letter-spacing:-.02em;margin-bottom:24px}.hero-intro{font-size:18px;line-height:1.7;color:var(--muted);max-width:640px}.book-stats{display:flex;gap:24px;font-size:15px;color:var(--muted);margin:28px 0}.book-stats strong{font-size:23px;margin-right:4px;color:var(--text)}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 20px}.button{display:inline-flex;align-items:center;justify-content:center;gap:24px;border:1px solid var(--border);border-radius:8px;padding:12px 18px;min-height:48px;font-weight:600;font-size:15px;text-decoration:none;line-height:1.5}.button:hover{text-decoration:none;filter:brightness(.96)}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.button.secondary{color:var(--text);background:var(--bg)}.edition-note{font-size:14px;line-height:1.7;color:var(--muted);margin:28px 0 0}.edition-note a{color:var(--muted)}.landing-section{padding:48px 0;border-top:1px solid var(--border)}.landing-section h2{font-size:34px;margin:8px 0 20px;line-height:1.25}.landing-section p{color:var(--muted)}.landing-section .eyebrow{color:var(--accent)}.section-heading{margin-bottom:32px}.curriculum-part{border-bottom:1px solid var(--border)}.curriculum-part:first-child{border-top:1px solid var(--border)}.curriculum-part summary{list-style:none;display:flex;align-items:center;gap:24px;cursor:pointer;min-height:94px;padding:20px 8px}.curriculum-part summary::-webkit-details-marker{display:none}.part-number{font-size:20px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:26px}.curriculum-part summary strong{display:block;font-size:17px;line-height:1.5}.curriculum-part summary small{display:block;color:var(--muted);font-size:14px;margin-top:4px}.expand-mark{margin-left:auto;font-size:22px;color:var(--muted);padding:0 8px}.curriculum-part[open] .expand-mark{transform:rotate(45deg)}.curriculum-part ol{list-style:none;margin:0 0 20px;padding:0 16px 0 58px}.curriculum-part li a{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;text-decoration:none;padding:8px 0}.reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:28px 0}.reference-link{position:relative;border:1px solid var(--border);border-radius:8px;padding:24px;text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:12px}.reference-link:hover{background:var(--surface);text-decoration:none;border-color:var(--accent)}.reference-index{font-size:14px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.reference-link strong{font-size:19px}.reference-link>span:last-child{color:var(--accent);align-self:flex-end}.support-links{display:flex;gap:24px;flex-wrap:wrap;font-size:15px;margin:24px 0 0}.support-links a{text-decoration:none}.download-note{font-size:14px;line-height:1.8;margin-top:24px}.download-section{padding-bottom:16px}
dialog{padding:0;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--text);box-shadow:0 4px 32px rgba(0,0,0,.16);width:min(680px,calc(100% - 32px));max-height:80dvh;margin:10dvh auto}dialog::backdrop{background:rgba(0,0,0,.45)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:1}.dialog-heading h2{font-size:19px;letter-spacing:-.01em;margin:0}.dialog-heading button{width:44px;height:44px;border:0;border-radius:8px;background:var(--surface);font-size:28px;color:var(--muted);line-height:1}.dialog-body{padding:16px 20px}.search-body{padding:20px}#book-search{display:block;width:100%;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:17px;min-height:52px;padding:12px 16px}.search-status{margin:16px 0 8px;color:var(--muted);font-size:14px;min-height:24px}.search-results{list-style:none;padding:0;margin:0}.search-results li{border-top:1px solid var(--border)}.search-results a{display:block;padding:16px 4px;text-decoration:none;color:var(--text)}.search-results a:hover{background:var(--surface)}.result-group{display:block;font-size:14px;color:var(--muted);margin-bottom:4px}.result-title{display:block;font-size:17px;font-weight:600;color:var(--accent);margin-bottom:8px;line-height:1.4}.result-snippet{display:block;font-size:14px;color:var(--muted);line-height:1.6}.contents-dialog nav{font-size:16px}.contents-dialog .nav-group,.contents-dialog .nav-overview{font-size:15px}
@media(min-width:1440px){.reader-layout{grid-template-columns:240px minmax(0,760px) 192px;gap:48px}}@media(max-width:1279px){.reader-layout{grid-template-columns:232px minmax(0,760px);gap:40px;max-width:1120px}.page-toc{display:none}.inline-toc{display:block;margin:24px 0 32px;border:1px solid var(--border);border-radius:8px;font-size:15px}.inline-toc>summary{cursor:pointer;padding:12px 16px;min-height:48px}.inline-toc nav{padding:0 20px 16px}.inline-toc h2{display:none}.inline-toc ul{padding:0 0 0 16px;margin:8px 0}.inline-toc li a{display:block;min-height:44px;padding:8px 0}.header-inner{gap:24px}}@media(max-width:899px){.reader-layout{display:block;max-width:808px;padding:0 24px}.book-sidebar{display:none}.header-inner{height:64px;padding:0 24px;gap:20px}.book-home{display:none}.site-home{flex:1}.header-actions .contents-trigger{display:block;font-size:14px}.search-label-extra,kbd{display:none}main{padding-top:32px}.book-hero{padding-top:8px}.book-hero h1{font-size:48px}.hero-subtitle{font-size:26px}.page-crumb{margin-bottom:24px}.chapter-header h1{font-size:34px}.chapter-header{padding-bottom:24px}}@media(max-width:520px){html{scroll-padding-top:80px}.header-inner{padding:0 16px;gap:8px}.site-home{font-size:15px}.site-home span{display:none}.header-actions{gap:8px}.header-actions button{padding:8px 10px}.search-trigger{gap:6px}.reader-layout{padding:0 20px}.book-hero{padding-bottom:32px}.book-hero h1{font-size:42px;margin:16px 0;max-width:320px}.hero-subtitle{font-size:23px}.desktop-break{display:none}.hero-intro{font-size:17px}.book-stats{gap:20px;font-size:14px;flex-wrap:wrap}.book-stats strong{font-size:21px}.hero-actions{flex-direction:column;align-items:stretch}.button{font-size:15px}.edition-note{font-size:14px}.landing-section{padding:36px 0}.landing-section h2{font-size:29px}.reference-grid{gap:12px}.reference-link{padding:16px;gap:12px}.reference-index{font-size:14px}.reference-link strong{font-size:17px;line-height:1.4}.curriculum-part summary{gap:16px;padding:20px 0}.curriculum-part summary strong{font-size:16px}.curriculum-part ol{padding-left:42px;padding-right:4px}.expand-mark{padding:0 2px}.part-number{font-size:18px}.support-links{gap:16px}.page-crumb{font-size:14px;display:block}.page-crumb>span{margin-left:8px}.chapter-header h1{font-size:30px;line-height:1.25}.chapter-header .eyebrow{font-size:14px}.prose{font-size:16px;line-height:1.8}.prose h2{font-size:26px;margin-top:36px}.prose h3{font-size:21px}.prose h4{font-size:18px}.table-scroll{font-size:16px}.prose pre{padding:16px}.math-block{padding:16px 12px}.math-block .katex{font-size:1em}.diagram-scroll{padding:16px}.chapter-pagination{gap:12px;grid-template-columns:1fr}.chapter-pagination a{padding:16px}.chapter-pagination a:last-child{text-align:left}.chapter-pagination>span:empty{display:none}.book-footer{padding-bottom:32px}dialog{margin:5dvh auto;max-height:90dvh}.dialog-heading{padding:12px 16px}.search-body{padding:16px}.download-section{padding-bottom:8px}}
@media(prefers-color-scheme:dark){:root{--bg:#191919;--surface:#202020;--surface-2:#2c2c2b;--text:#fff;--muted:#b7b5b2;--border:#484847;--accent:#79b4f4;--accent-soft:#203349;--focus:#79b4f4;--control-border:#777774;--header-bg:rgba(25,25,25,.97)}.button.primary{color:#191919}.diagram-scroll{border-color:#707070}.current:hover{background:#29425b}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}@media print{.site-header,.book-sidebar,.page-toc,.inline-toc,.chapter-pagination,.diagram-source,.page-tools{display:none}.reader-layout{display:block;max-width:none;padding:0}main{padding:0}.prose{font-size:11pt;line-height:1.5}.chapter-header h1{font-size:24pt}body{color:#000;background:#fff}.math-block,.table-scroll,.diagram-scroll{overflow:visible}.diagram img{max-width:100%;height:auto}.book-footer{font-size:9pt}.table-scroll table{min-width:0}.math-inline{overflow:visible;max-width:none}}

.header-actions button,.button.secondary,#book-search{border-color:var(--control-border)}.no-js-note{padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--border);font-size:14px}
