@import url('./figure-fonts.css');
:root{color-scheme:only light;--remi-font:Remi,KaTeX_Main,KaTeX_AMS,sans-serif}
:root{--ink:#25343c;--muted:#617079;--blue:#1f4fd8;--purple:#845cb2;--positive:#16816f;--negative:#ba6552;--paper:#fff;--line:#dce3e4;--figure-rule:#36535f}
/* The textbook's one reading column: text, equations, lists, tables, details, figures and placeholders all share its width. */
:root{--column:840px;--figure-gap:48px}
html:not(.slides-on):has([data-figure]){scrollbar-gutter:stable}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--remi-font)}a{color:#087295;text-underline-offset:4px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e3a541;outline-offset:4px}button:disabled{cursor:default}.skip-link{position:absolute;top:-100px;left:15px;z-index:10;background:white;padding:12px}.skip-link:focus{top:10px}
.family-header{display:flex;align-items:center;gap:24px;padding:8px 34px;border-bottom:1px solid var(--line);min-height:70px}.family-header img{display:block;width:115px;height:49px;object-fit:contain}.book-brand{font-size:14px;color:var(--ink);text-decoration:none;border-left:1px solid var(--line);padding-left:24px}.family-header nav{display:flex;gap:24px;margin-left:auto;font-size:13px}.family-header nav a{text-decoration:none;color:var(--muted)}.family-links{display:flex;gap:25px;border-bottom:1px solid var(--line);padding:10px 34px;font-size:12px;overflow:auto;white-space:nowrap}.family-links a{text-decoration:none;color:var(--muted)}.family-header nav a[aria-current=page],.family-links a[aria-current=page]{color:#0079a8;font-weight:600;text-decoration:underline;text-decoration-color:#0087bb;text-decoration-thickness:2px;text-underline-offset:6px}
.book-layout{display:grid;grid-template-columns:246px minmax(0,1fr);max-width:1600px;margin:auto}.book-sidebar{border-right:1px solid var(--line);background:#f8faf9;min-width:0;padding:33px 21px}.book-sidebar details{position:sticky;top:25px;max-height:calc(100vh - 50px);overflow-y:auto}.book-sidebar summary{display:none}.course-name{font-size:18px;font-weight:650;margin:0 0 22px}.course-name small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:6px}.book-sidebar ol{padding:0;margin:0;list-style:none}.book-sidebar li{margin:1px 0}.book-sidebar li a,.not-yet{display:flex;gap:9px;align-items:baseline;padding:11px 8px;font-size:12px;line-height:1.5;text-decoration:none;color:var(--ink)}.book-sidebar li a>span,.not-yet>span{font-size:10px;color:var(--muted);min-width:16px}.book-sidebar li a[aria-current]{background:#e8f2f4;color:#075873;border-radius:3px;font-weight:650}.not-yet{color:#6e7a80;flex-wrap:wrap}.not-yet small{font-size:9px;margin-left:25px;color:#71818a}.sidebar-home{font-size:11px;display:block;margin:26px 8px}.book-sidebar li a.current-chapter{font-weight:650;color:#075873}.book-sidebar .chapter-pages{margin:0 0 10px 24px;border-left:1px solid var(--line)}.book-sidebar .chapter-pages a{padding:6px 8px 6px 10px;font-size:11.5px;line-height:1.45}
main{min-width:0;padding:38px 56px 70px}.reading-width{max-width:var(--column);margin:0 auto}.chapter-kicker{font-size:11px;letter-spacing:.05em;color:var(--muted);margin:0 0 13px}.chapter-kicker span{margin-left:12px}article{font-size:17px;line-height:1.95;word-break:keep-all;overflow-wrap:break-word}article [data-figure]{word-break:normal;overflow-wrap:normal}
/* A list item that holds a built-up fraction (e.g. choices written with \dfrac) gets room so stacked fractions do not touch. */
article li:has(.katex .mfrac){margin:.55em 0}h1{font-size:36px;font-weight:680;letter-spacing:-.035em;line-height:1.4;margin:0 0 24px}h2{font-size:23px;line-height:1.5;letter-spacing:-.02em;margin:40px 0 14px}h3{font-size:18px;margin-top:24px}p{margin:15px 0}.lead{font-size:20px;color:#415963;line-height:1.8;margin-bottom:28px}strong{font-weight:650}blockquote{margin:28px 0;padding:3px 20px;border-left:3px solid var(--blue);color:#3b5361;background:#f5f9f9}article ul,article ol{padding-left:23px}code{font-family:"JetBrains Mono",var(--remi-font);font-variant-ligatures:none;font-size:.85em;background:#f0f4f4;padding:.1em .3em;border-radius:6px}pre{padding:18px;background:#f4f6f6;overflow:auto;line-height:1.55;font-size:14px}pre code{padding:0;background:none}.katex-display{overflow-x:auto;overflow-y:hidden;padding:8px 0;margin:22px 0}.katex{font-size:1.03em}
.concept-figure{margin:var(--figure-gap) 0;border-top:2px solid var(--figure-rule);border-bottom:1px solid var(--line);padding:19px 0 14px;line-height:1.5;font-size:14px}.figure-heading{font-size:18px;font-weight:650;margin:0 0 7px}.figure-subtitle{color:var(--muted);font-size:15px;margin:0 0 19px}.figure-controls{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;background:#f2f7f7;padding:14px 16px;margin-bottom:18px}.figure-controls label{font-size:15px;display:flex;gap:9px;align-items:center}.figure-controls input[type=range]{width:150px;accent-color:var(--blue);min-height:26px}.figure-controls output{font-variant-numeric:tabular-nums;min-width:43px;color:#075873;font-weight:650}.figure-controls select{border:1px solid var(--line-2, #c8cfda);background:white;border-radius:12px;padding:5px}.figure-controls input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue)}.figure-controls button{font-size:15px;padding:6px 9px;border:1px solid var(--line-2, #c8cfda);background:white;border-radius:12px;color:#385c69}
.inner-product-board{display:grid;grid-template-columns:minmax(0,3fr) minmax(150px,1fr);gap:15px}.comparison-lanes{display:grid;gap:19px}.comparison-lane{display:grid;grid-template-columns:1fr 1fr;gap:16px;position:relative}.comparison-lane:after{content:"→";position:absolute;left:calc(50% - 7px);top:80px;color:#78909a;background:white;padding:2px}.plot-label{font-size:15px;line-height:1.6;margin:0 0 5px}.plot-label strong{font-weight:600}.plot{min-width:0}.plot svg{width:100%;height:145px;display:block;overflow:visible}.plot svg text{font-family:var(--remi-font);font-size:16px;fill:#617079}.plot svg .axis{stroke:#b4c3c8;stroke-width:1}.plot svg .grid{stroke:#e8eded;stroke-width:1}.coefficient-panel{display:flex;flex-direction:column;justify-content:center;border-left:1px solid #dce5e5;padding-left:15px}.coefficient-panel .plot svg{height:170px}.projection-values{display:flex;justify-content:space-between;gap:9px;font-size:12px;margin:7px 0}.projection-values output{font-size:18px;font-variant-numeric:tabular-nums;color:var(--ink);font-weight:600}.figure-reading{padding:12px 14px;background:#f2f7f4;font-size:14px;line-height:1.75;margin:18px 0 10px;min-height:50px}.figure-credit{font-size:15px;color:var(--muted);line-height:1.7;margin:12px 0 0}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:7px 0}.legend span:before{content:"";display:inline-block;width:13px;height:3px;background:var(--legend);margin-right:5px;vertical-align:middle}.formula-line{font-size:14px;margin:8px 0}
.source-note{border-top:1px solid var(--line);margin-top:42px;padding-top:17px;font-size:15px;color:var(--muted);line-height:1.8}.source-note h2{font-size:16px;margin:0 0 10px}.source-note ul{padding-left:17px}.page-nav{word-break:keep-all;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;align-items:end;font-size:15px;line-height:1.55;padding:0 0 14px;margin:0 0 26px;border-bottom:1px solid var(--line)}.page-nav a{text-decoration:none;color:#075873}.page-nav a:hover{text-decoration:underline}.page-nav small{display:block;font-size:15px;color:var(--muted)}.page-next{text-align:right}.page-count{margin:0;font-size:15px;color:var(--muted);white-space:nowrap;align-self:center}.page-nav:last-child{border-bottom:0;border-top:1px solid var(--line);padding:16px 0 0;margin:var(--figure-gap) 0 0}.page-chapter{font-size:13px;color:var(--muted);margin:0 0 4px}.page-chapter+article>h2:first-child{margin-top:0}.chapter-list{margin:25px 0}.chapter-list a{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:baseline;padding:16px 0;border-bottom:1px solid var(--line);text-decoration:none}.chapter-list a>span{font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}.chapter-list a>strong{font-size:18px;font-weight:600;line-height:1.5}.chapter-list a:hover>strong{text-decoration:underline}.library-list a{display:block}.library-list a>span{display:block;margin-top:4px}.appendix-list{margin:0}article h2.list-head{margin:40px 0 8px}.quiet{font-size:15px;color:var(--muted);line-height:1.8}.library-index{max-width:930px;margin:45px auto;padding:30px}.library-index .lead{max-width:650px}
@media(max-width:1100px){.book-layout{grid-template-columns:205px minmax(0,1fr)}.book-sidebar{padding:30px 13px}main{padding:30px 34px 60px}h1{font-size:31px}.inner-product-board{gap:9px;grid-template-columns:minmax(0,3fr) minmax(135px,1fr)}}
@media(max-width:820px){.book-layout{display:block}.book-sidebar{padding:0 20px;border-right:none;border-bottom:1px solid var(--line);background:#f5f8f7}.book-sidebar details{position:static;max-height:none;overflow:visible}.book-sidebar summary{display:list-item;padding:13px 0;font-size:13px;cursor:pointer}.book-sidebar ol{padding-bottom:14px;columns:2}.book-sidebar li:has(.chapter-pages){break-inside:avoid}.book-sidebar .chapter-pages{columns:1;padding-bottom:0}.course-name{display:none}.not-yet small{display:none}.sidebar-home{display:none}main{padding:28px 28px 50px}:root{--column:720px}.family-header{padding:7px 20px;gap:15px}.family-links{padding:9px 20px;gap:22px}.family-header nav{gap:16px}.book-brand{padding-left:15px}}
@media(max-width:540px){main{padding:24px 20px 42px}h1{font-size:29px}h2{font-size:22px}article{font-size:16px;line-height:1.9}.lead{font-size:18px}.family-header img{width:90px;height:40px}.family-header{min-height:61px;padding:7px 16px;gap:10px}.book-brand{font-size:12px;padding-left:10px}.family-header nav{font-size:10px;gap:12px}.family-links{font-size:11px;padding:9px 16px;gap:19px}.book-sidebar{padding:0 20px}.book-sidebar ol{columns:1}.concept-figure{padding-top:14px}.page-nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 14px}.page-count{grid-column:1/-1;grid-row:1}.figure-heading{font-size:17px}.figure-subtitle{font-size:12px;line-height:1.6}.figure-controls{gap:8px 15px;padding:10px;margin-bottom:14px}.figure-controls label{font-size:12px}.figure-controls input[type=range]{width:110px}.figure-controls select{max-width:130px}.inner-product-board{display:block}.comparison-lanes{gap:15px}.comparison-lane{gap:15px}.plot-label{font-size:11px;min-height:33px}.plot svg{height:128px}.comparison-lane:after{top:70px}.coefficient-panel{display:grid;grid-template-columns:140px minmax(0,1fr);column-gap:15px;border-left:0;border-top:1px solid var(--line);padding:10px 0 0;margin-top:13px}.coefficient-panel>.plot{grid-column:1;grid-row:1/4}.coefficient-panel .plot-label{min-height:0}.coefficient-panel .plot svg{height:112px}.coefficient-panel .projection-values{grid-column:2;margin:8px 0;align-self:center}.coefficient-panel .formula-line{grid-column:2;margin:0;font-size:12px;align-self:center}.projection-values output{font-size:16px}.figure-reading{font-size:13px;padding:10px;margin:12px 0 8px}.figure-credit{font-size:10px}.legend{gap:11px;margin-top:0}.library-index{margin:20px auto}}
.impulse-system{display:flex;align-items:center;justify-content:center;gap:18px;padding:7px 12px;background:#f3f7f7;margin:15px 0 20px}.impulse-system>div:first-child{font-size:12px;line-height:1.7}.impulse-system strong{display:block}.impulse-system [data-formula]{display:block;margin-top:5px}.impulse-system>.plot{width:130px;flex-shrink:0}.impulse-system label{display:flex;align-items:center;gap:8px;font-size:12px;flex-wrap:wrap}.impulse-system input{width:105px;accent-color:var(--blue)}.impulse-flow{display:grid;grid-template-columns:minmax(135px,1fr) minmax(350px,2.5fr) minmax(155px,1.1fr);gap:20px;align-items:center}.impulse-summary h3{font-size:14px;margin:0 0 9px}.impulse-summary p{font-size:12px;line-height:1.7}.impulse-summary .flow-word{display:block;color:#637d89;font-size:12px;margin:12px 0}.impulse-rows{border-left:1px solid var(--line);border-right:1px solid var(--line);padding:0 12px}.impulse-row{display:grid;grid-template-columns:minmax(0,1fr) 29px minmax(0,1fr);gap:5px;align-items:end;margin:0 0 15px}.impulse-row:last-child{margin-bottom:0}.impulse-row label{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--row);font-weight:600}.impulse-row input{width:70px;min-width:30px;flex:1;accent-color:var(--row)}.impulse-row output{min-width:26px;text-align:right}.term-label{font-size:12px;margin-top:5px;color:var(--row)}.response-term{margin-bottom:0}.system-arrow{align-self:center;text-align:center;color:#81979f;font-size:12px;padding-top:24px}.output-picks{display:flex;gap:4px;justify-content:space-between}.output-picks button{background:white;border:1px solid #d3dfe2;padding:5px;min-width:31px;color:#405b65;line-height:1.7;font-size:12px}.output-picks button small{display:block;font-size:9px;color:var(--muted)}.output-picks button[aria-pressed=true]{border-color:var(--go, #1f4fd8);background:var(--go-t, #e5ecfd)}.colored-sum{font-variant-numeric:tabular-nums;font-size:14px;line-height:1.7}.impulse-summary .sum-label{margin:14px 0 5px;font-size:11px}.impulse-flow .plot svg text{font-size:10px}
@media(max-width:1100px) and (min-width:821px){.impulse-flow{grid-template-columns:minmax(120px,1fr) minmax(250px,2fr) minmax(120px,1fr);gap:10px}.impulse-rows{padding:0 6px}.impulse-row{grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr);gap:1px}.impulse-row label{font-size:10px}.impulse-row input{width:35px}.impulse-row output{min-width:18px}.impulse-system{gap:10px}.impulse-system>.plot{width:95px}}
@media(max-width:640px){.impulse-system{margin:10px 0 14px;flex-wrap:wrap;gap:2px 13px;padding:9px}.impulse-system>div:first-child{flex:1;min-width:210px}.impulse-system [data-formula]{font-size:11px}.impulse-system>.plot{width:80px}.impulse-system label{flex:1;min-width:160px}.impulse-flow{display:flex;flex-direction:column;gap:10px;align-items:stretch}.impulse-summary{display:grid;grid-template-columns:1fr 1.4fr;gap:0 12px;align-items:center}.impulse-summary h3{grid-column:1;font-size:13px;margin:0}.impulse-summary>.plot{grid-column:2;grid-row:1/4}.impulse-summary p{margin:5px 0;font-size:11px}.impulse-summary .flow-word{margin:1px 0;font-size:11px}.input-summary .flow-word{font-size:0}.input-summary .flow-word:after{content:'분해 ↓';font-size:11px}.impulse-rows{border-left:0;border-right:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 0}.impulse-row{margin-bottom:8px;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:10px}.impulse-row label{font-size:12px}.impulse-row input{width:60px}.term-label{font-size:11px}.system-arrow{font-size:11px}.output-summary>.flow-word{display:none}.output-summary>.plot{grid-row:1/3}.output-picks{grid-column:1;margin:8px 0}.output-summary .sum-label{grid-column:1;font-size:10px;margin:0}.colored-sum{grid-column:2;font-size:13px}.impulse-flow+.figure-reading{font-size:12px;line-height:1.7}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.impulse-system label{margin-top:7px}.impulse-row label .term-label{margin:0;font-size:11px;flex-shrink:0}.impulse-row .response-term{min-height:26px;display:flex;align-items:center;margin:0}.impulse-row .system-arrow{font-size:16px;padding:0;color:var(--row)}
@media(max-width:640px){[data-figure$="/impulse-response"] .figure-subtitle{margin-bottom:8px}.impulse-system>div:first-child{min-width:190px}.impulse-system label{min-width:0;margin-top:5px}.impulse-system{flex-wrap:nowrap}.impulse-system>.plot{width:93px}.impulse-row label .term-label{font-size:10px}.impulse-row input{min-width:20px;width:34px}.impulse-row{gap:7px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}.impulse-flow+.figure-reading{min-height:0;font-size:11px}.impulse-summary .flow-word{margin:0}}

.figure-todo{margin:var(--figure-gap) 0;padding:12px 14px;border:1px dashed #9fb3bd;border-radius:4px;background:#f7fafb;color:#51656f;font-size:14px;line-height:1.55}.figure-todo strong{color:#36535f}
.table-scroll{overflow-x:auto;margin:20px 0}article table{border-collapse:collapse;font-size:15px;line-height:1.6}article th,article td{padding:7px 14px 7px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}article th{font-weight:650;border-bottom:2px solid #9fb3bd}.table-scroll th,.table-scroll td{white-space:nowrap}
/* A figure is its own block in the reading column: its rules run exactly under the text's edges, with --figure-gap above
   and below. An interactive figure and the credit line under it form one block. A static figure takes the same frame (the
   rules override the inline margin and max-width in the chapter source); its drawing keeps its own size inside. */
.reading-width .concept-figure:has(+.figure-credit){margin-bottom:0;border-bottom:0}.reading-width .concept-figure+.figure-credit{margin:0 0 var(--figure-gap);padding:0 0 14px;border-bottom:1px solid var(--line)}
.reading-width article figure{margin:var(--figure-gap) 0!important;max-width:none!important;padding:19px 0 14px;border-top:2px solid var(--figure-rule);border-bottom:1px solid var(--line)}.reading-width article figure:is(.static-figure,.inline-figure)>svg{max-width:560px;margin:0 auto}
@media(max-width:540px){.reading-width article figure{padding-top:14px}}
/* Narrow phones: 14 px side padding keeps a 292 px column at 320 px (sampling's option row needs 288 px). */
@media(max-width:360px){main{padding-left:14px;padding-right:14px}.book-sidebar{padding:0 14px}}
/* vector-projection's 19 px title needs 281 px; on a 280 px column it took a second line and the figure reached 861 px.
   Since the 14 px phone padding the column is 292 px at 320 px; the rule still covers columns below 281 px (viewports under 309 px). */
@media(max-width:340px){.reading-width [data-figure$="/vector-projection"] .g-title{font-size:18px}}
/* Appendix A (shared/appendix.mjs): a chapter page's link to the scene it embeds, and a scene page's links back to the chapter pages. */
.appendix-link,.appendix-source{font-size:14px;margin:10px 0}.appendix-link a,.appendix-source a{text-decoration:none}.appendix-link a:hover,.appendix-source a:hover{text-decoration:underline}
/* course.json groups (shared/build.mjs): a heading before a group's first chapter in the side navigation and the course index. */
.book-sidebar li.nav-group{font-size:15px;font-weight:650;color:var(--muted);margin:14px 0 4px;break-after:avoid}.book-sidebar li.nav-group:first-child{margin-top:0}.chapter-list .chapter-group{font-size:15px;font-weight:650;color:var(--muted);margin:26px 0 0;padding-bottom:4px;border-bottom:1px solid var(--line)}.chapter-list .chapter-group:first-child{margin-top:0}
/* A wide figure (class figure-wide on a textbook placement; leader 2026-11-09: the rotating-vector figure at the width the PI approved): from 1280 px it leaves the text column and spans the content area less 24 px a side, centred on the column; below, the column width. A credit right under it takes the same width, so its closing rule meets the figure's top rule (h700 round 3, fable-look-T3 P2, 2026-11-12). */
@media(min-width:1280px){.concept-figure.figure-wide{--figure-wide:calc(min(100vw,1600px) - 310px);width:var(--figure-wide);max-width:none;margin-left:calc((100% - var(--figure-wide))/2);margin-right:calc((100% - var(--figure-wide))/2)}.reading-width .concept-figure.figure-wide+.figure-credit{--figure-wide:calc(min(100vw,1600px) - 310px);width:var(--figure-wide);max-width:none;margin-left:calc((100% - var(--figure-wide))/2);margin-right:calc((100% - var(--figure-wide))/2)}}
@media(max-width:540px){.chapter-list a{grid-template-columns:40px minmax(0,1fr)}}
/* Shell colour and weight (web-design 2026-11-16, records/web-design/20261116-textbook-shell-design.md items 1, 2, 7; RULES-DRAFT §1-§2). Shell scope: links and headings only inside .book-layout (the scene site and the lecture slides, which also load this file, keep theirs); links inside figures keep #087295 (Fable shell review P2, 2026-11-16). Figure tokens (--blue, --purple, --positive, --negative, --muted, --line, --figure-rule, --ink) keep their values: figures read them and are the textbook sessions'. Shell selectors move to the shared tokens instead. */
:root{--go:#1f4fd8;--go-2:#1638a8;--go-t:#e5ecfd;--go-t2:#c9d6f7;--ink-2:#4a5466;--rule:#e1e5ec;--rule-2:#c8cfda}
:where(.book-layout) a{color:var(--go)}:where(.book-layout) :where([data-figure],.concept-figure,.filter-scene,figure) a{color:#087295}.page-nav a{color:var(--go)}
.book-sidebar li a>span,.not-yet>span,.not-yet,.course-name small,.chapter-kicker,.page-chapter,.page-count,.page-nav small,.quiet,.chapter-list a>span,.chapter-list .chapter-group,.book-sidebar li.nav-group,.source-note{color:var(--ink-2)}
.course-name{font-weight:700}
.chapter-list a{border-bottom-color:var(--rule)}.chapter-list .chapter-group{border-bottom-color:var(--rule)}
.page-nav{border-bottom-color:var(--rule)}.page-nav:last-child{border-top-color:var(--rule)}.source-note{border-top-color:var(--rule)}
:where(.book-layout) h1{font-weight:750;letter-spacing:-.02em}:where(.book-layout) h2{font-weight:700;letter-spacing:0}:where(.book-layout) h3{font-weight:700}
.lead{color:var(--ink-2)}
blockquote{border-left-color:var(--go-t2);background:#f5f7fb;color:var(--ink-2)}
:where(.book-layout) .figure-credit{font-size:15px;line-height:1.6;color:var(--ink-2)}
/* Whole draft t2 (web-design 2026-11-16, records/web-design/20261116-whole-draft/TEXTBOOK-DESIGN.md; target page
   share/90d98c55382f/textbook-2-narrow.html). From 1081 px: one 1280 px frame (32 px inset), the contents 240 px, a 72 px gap,
   then the text (424 / 904 px at 1440). The contents column is sticky under the bar, no taller than the screen; only its page
   list scrolls. At 1080 px and below: one column, the text at most 720 px centred (32 px inset); at 760 px and below the full
   width less 16 px gutters (728 px at 760, 358 at 390); a hash target lands 150 px below the top at every width (the draft's
   scroll-padding-top, clear of the bar and the sticky page row);
   the contents a drawer from the left that [data-book-toc] opens (shared/book.js). Rules on .book-layout only: the slide deck
   and the scene build also load this file. Figure tokens keep their values; figures keep their own ink. The 15 px floor of the
   kicker, the page's chapter line and the appendix links (formerly in the deleted 11-16 size block) is kept here. */
:root{--head:var(--remi-bar-h,69px);--column:720px}
@media(min-width:1081px){:root{--column:904px}}
@media(max-width:760px){:root{--head:var(--remi-bar-h,57px)}}
.chapter-kicker{font-size:15px;letter-spacing:0}.page-chapter{font-size:15px}.appendix-link,.appendix-source{font-size:15px}
.book-layout{display:grid;grid-template-columns:240px minmax(0,1fr);column-gap:72px;max-width:1280px;margin:0 auto;padding:0 32px}
.book-layout>main{min-width:0;padding:40px 0 96px}
:where(.book-layout)>main>.reading-width{max-width:none}
/* --head follows the deploy's bar height when the bar publishes it (--remi-bar-h: 69, 57 at 760 px and below, 133 at
   761-1119 px with a menu row); the scroll padding keeps 81 px below it, and never less than 150 px (round 3 item 8). */
html:has(.book-layout):not([data-lab-layout]):not([data-course-kind=lab]){scroll-padding-top:max(150px, calc(var(--head) + 81px))}
/* A lab notebook page (html[data-lab-layout], notebook.js, or a 실습 notebook-row page, html[data-course-kind=lab]) keeps its own sticky row, the lab toolbar: no scroll padding
   and no sticky page row there (web-design ruling 2026-11-16, round 3 item 1). */
html:is([data-lab-layout],[data-course-kind=lab]) .book-layout .ptop{position:static}
/* Round 3 item 9: where the deploy's bar carries a course menu row (761-1119 px) the page row does not stick (c); on a
   lab course page the fallback header's 목차 button shows at every width (d). */
@media(min-width:761px) and (max-width:1119px){html:has(nav.remi-sitenav[data-remi-book-menu]) .book-layout .ptop{position:static}}
html[data-course-kind=lab] .family-header .book-toc-btn{display:inline-flex}
/* Round 3 item 12: a lab course page (html[data-course-kind=lab]) has no contents column; its contents is the drawer at
   every width, so above 1080 px it keeps the drawer rules of the 1080 px block (hidden until 목차, open state, scrim). */
@media(min-width:1081px){html[data-course-kind=lab] .book-layout{grid-template-columns:minmax(0,1fr);column-gap:0}html[data-course-kind=lab] .book-layout>.book-sidebar{position:fixed;top:0;bottom:0;left:0;z-index:1001;width:400px;max-height:none;margin-top:0;padding:0 20px 20px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 48px rgba(7,14,28,.28);visibility:hidden;transform:translateX(-100%);transition:transform .2s ease,visibility 0s linear .2s}html[data-course-kind=lab] .book-layout>.book-sidebar.is-open{display:flex;visibility:visible;transform:none;transition:transform .2s ease}html[data-course-kind=lab] .book-sidebar .toc-head{display:flex}html[data-course-kind=lab] .book-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:1000;background:rgba(7,14,28,.4)}}
/* text */
:where(.book-layout) article{font-size:18px;line-height:1.85;color:#0d1421;word-break:keep-all;overflow-wrap:break-word}
:where(.book-layout) article :where([data-figure],.concept-figure,figure){color:var(--ink)}
.book-layout article h1{font-size:44px;font-weight:750;letter-spacing:-.03em;line-height:1.25;margin:0}
.book-layout .page-chapter{display:none}.book-layout .page-chapter+article>h2:first-child{font-size:44px;font-weight:750;letter-spacing:-.03em;line-height:1.25;margin:0 0 20px}
.book-layout article .lead{font-size:21px;line-height:1.7;color:#24324a;margin:20px 0 8px}
:where(.book-layout) article h2{font-size:28px;font-weight:700;line-height:1.35;margin:44px 0 16px}
/* the contents */
.book-layout>.book-sidebar{min-width:0;display:flex;flex-direction:column;padding:0 0 16px;border:0;background:#fff;font-size:16px;line-height:1.45;word-break:keep-all;overflow-wrap:break-word}
.book-sidebar .toc-head{display:none;flex:none;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.book-sidebar .toc-title{margin:0;font-size:17px;font-weight:700;color:#0d1421}
.book-sidebar .course-name{display:inline;margin:0;font-size:inherit;font-weight:inherit}
.book-sidebar .toc-close{flex:none;min-height:40px;padding:0 16px;border:1px solid #c8cfda;border-radius:999px;background:#fff;color:#0d1421;font-size:16px;font-weight:600}
.book-sidebar .toc-close:hover{border-color:#1f4fd8;color:#1f4fd8}
.book-sidebar .chrow{flex:none;display:flex;align-items:center;height:52px;border-bottom:1px solid #e1e5ec}
.book-sidebar .chsel{position:relative;top:auto;display:block;width:100%;max-height:none;overflow:visible}
.book-sidebar .chbtn{display:flex;align-items:center;gap:10px;box-sizing:border-box;height:43px;padding:0 16px 0 16px;border:1px solid #c8cfda;border-radius:999px;background:#fff;color:#0d1421;font-size:17px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;cursor:pointer;list-style:none}
.book-sidebar .chbtn::-webkit-details-marker{display:none}
.book-sidebar .chbtn::marker{content:""}
.book-sidebar .chbtn:hover{border-color:#1f4fd8}
.book-sidebar .chbtn .n{flex:none;color:#1f4fd8;font-weight:600;font-variant-numeric:tabular-nums}
.book-sidebar .chbtn .t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.book-sidebar .chbtn::after{content:"";flex:none;width:7px;height:7px;margin:-4px 2px 0 0;border-right:2px solid #4a5466;border-bottom:2px solid #4a5466;transform:rotate(45deg)}
.book-sidebar .chsel[open]>.chbtn::after{margin-top:4px;transform:rotate(-135deg)}
.book-sidebar .chmenu{position:absolute;top:calc(100% + 6px);left:0;z-index:40;box-sizing:border-box;width:max-content;min-width:240px;max-width:min(440px,calc(100vw - 32px));max-height:calc(100vh - var(--head) - 160px);overflow:auto;margin:0;padding:6px;columns:auto;list-style:none;background:#fff;border:1px solid #e1e5ec;border-radius:12px;box-shadow:0 12px 32px rgba(13,20,33,.16)}
.book-sidebar .chmenu li,.book-sidebar .chapter-pages li{margin:0}
.book-sidebar .chmenu .nav-group{margin:10px 12px 2px;font-size:15px;font-weight:700;color:#4a5466}
.book-sidebar .chmenu .nav-group:first-child{margin-top:4px}
.book-sidebar .chmenu a,.book-sidebar .chmenu .not-yet,.book-sidebar .chapter-pages a{display:flex;align-items:baseline;gap:12px;padding:8px 12px;border-radius:10px;background:none;color:#0d1421;font-size:16px;line-height:1.45;font-weight:400;text-decoration:none}
.book-sidebar .chmenu .not-yet{flex-wrap:wrap;color:#4a5466}
.book-sidebar .chmenu .not-yet small{display:inline;margin-left:auto;font-size:15px;color:#4a5466}
.book-sidebar .chmenu .n,.book-sidebar .chapter-pages .n{flex:none;font-size:inherit;font-variant-numeric:tabular-nums;font-weight:500;color:#4a5466}
.book-sidebar .chmenu .n{min-width:24px}
.book-sidebar .chapter-pages .n{min-width:16px;text-align:right}
.book-sidebar .chapter-pages .pn{flex:1 1 auto;min-width:0;font-size:inherit;color:inherit}
.book-sidebar .chmenu a:hover,.book-sidebar .chapter-pages a:hover{background:#f3f5f8;color:#0d1421;text-decoration:none}
.book-sidebar .chmenu a[aria-current]{background:none;color:#1638a8;font-weight:700;border-radius:10px}
.book-sidebar .chapter-pages a[aria-current]{background:#e5ecfd;color:#1638a8;font-weight:700;border-radius:10px}
.book-sidebar .chmenu a[aria-current] .n,.book-sidebar .chapter-pages a[aria-current] .n{color:#1f4fd8}
.book-sidebar .chapter-pages{flex:none;margin:10px -4px 0;padding:4px;border:0;columns:auto;list-style:none}
.book-layout .book-sidebar .book-search{flex:0 1 auto;min-height:0;display:flex;flex-direction:column;margin:14px 0 0}
.book-layout .book-sidebar .book-search input{flex:none;padding:9px 16px 9px 40px;border:1px solid #c8cfda;border-radius:999px;font-size:16px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6474' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px 50%;background-size:18px 18px}
.book-layout .book-sidebar .search-results{min-height:0}
.book-sidebar .toc-sites{display:none;flex:none;gap:24px;margin:18px 0 0;padding-top:14px;border-top:1px solid #e1e5ec;font-weight:600}
.book-sidebar .toc-sites a{text-decoration:none}.book-sidebar .toc-sites a:hover{text-decoration:underline}
.book-sidebar .toc-book-menu+.toc-sites{margin-top:10px;border-top:0;padding-top:0}
.book-sidebar .toc-sites a[aria-current]{color:#1638a8;font-weight:750;text-decoration:underline 3px #1f4fd8;text-underline-offset:8px}
/* the top page row (the draft's .ptop): level with the chapter row, the same rule under it */
.book-layout .ptop{position:sticky;top:var(--head);z-index:20;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px;height:52px;margin:0 0 36px;padding:0;border-bottom:1px solid #e1e5ec;background:#fff;font-size:16px;line-height:1.45;word-break:keep-all}
.book-layout .ptop .pg{display:flex;align-items:center;gap:6px;min-width:0;color:#0d1421;text-decoration:none}
.book-layout .ptop .pg:hover{color:#1f4fd8}
.book-layout .ptop .pg span{flex:none;color:#4a5466}
.book-layout .ptop .pg b{min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-layout .ptop .nx{justify-content:flex-end}
.book-layout .ptop .prog{display:flex;align-items:center;gap:10px;min-width:0;color:#4a5466;font-variant-numeric:tabular-nums;white-space:nowrap}
.book-layout .ptop .pc{font-weight:700;color:#0d1421}
.book-layout .ptop ol{display:flex;gap:3px;min-width:0;margin:0;padding:0;list-style:none}
.book-layout .ptop li{flex:0 1 auto;min-width:4px;margin:0}
.book-layout .ptop li a{display:block;padding:10px 0}
.book-layout .ptop .seg{display:block;width:22px;max-width:100%;height:6px;border-radius:3px;background:#c8cfda}
.book-layout .ptop li a:hover .seg{background:#c9d6f7}
.book-layout .ptop li a[aria-current] .seg{background:#1f4fd8}
/* the build's own 목차 button (the deploy moves it into its bar) */
.family-header .book-toc-btn{display:none;align-items:center;flex:none;min-height:40px;padding:0 16px;border:1px solid #c8cfda;border-radius:999px;background:#fff;color:#0d1421;font-size:16px;font-weight:600;line-height:1;white-space:nowrap}
.family-header .book-toc-btn:hover{border-color:#1f4fd8;color:#1f4fd8}
/* from 1081 px: the contents column, sticky under the bar; a .figure-wide figure and its credit take the text width */
@media(min-width:1081px){
  /* The column never scrolls on its own (PI asked why the left menu scrolled; round 3 item 9a): book.js puts its height in
     --colh; a column that fits sticks under the bar, a taller one scrolls with the page until its bottom shows (24 px
     above the window's bottom), then sticks. */
  .book-layout>.book-sidebar{position:sticky;top:min(var(--head), calc(100vh - var(--colh, 0px) - 24px));z-index:20;align-self:start;margin-top:40px}
  .book-scrim{display:none}
  .book-layout .concept-figure.figure-wide,.book-layout .reading-width .concept-figure.figure-wide+.figure-credit{width:auto;max-width:none;margin-left:0;margin-right:0}
}
/* 1080 px and below: one column; the contents a drawer */
@media(max-width:1080px){
  .book-layout{display:block;max-width:none;padding:0 32px}
  .book-layout>main{padding-top:24px}
  :where(.book-layout)>main>.reading-width{max-width:720px;margin:0 auto}
  .book-layout>.book-sidebar{position:fixed;top:0;bottom:0;left:0;z-index:1001;width:min(400px,calc(100vw - 48px));padding:0 20px 20px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 48px rgba(7,14,28,.28);visibility:hidden;transform:translateX(-100%);transition:transform .2s ease,visibility 0s linear .2s}
  /* display:flex outranks the lab notebook's wide/split rule (html:is([data-lab-layout=…]) .book-sidebar{display:none},
     notebook.css, 901 px and up), so 목차 opens the drawer on a lab page too. */
  .book-layout>.book-sidebar.is-open{display:flex;visibility:visible;transform:none;transition:transform .2s ease}
  .book-sidebar .toc-head{display:flex}
  .book-scrim{position:fixed;inset:0;z-index:1000;background:rgba(7,14,28,.4)}
  .family-header .book-toc-btn{display:inline-flex}
  .book-layout .ptop{height:auto;padding:6px 0 8px}
}
@media(max-width:1080px) and (prefers-reduced-motion:reduce){.book-layout>.book-sidebar,.book-layout>.book-sidebar.is-open{transition:none}}
@media(max-width:760px){
  .book-layout{padding:0 16px}
  :where(.book-layout)>main>.reading-width{max-width:none;margin:0}
  .book-sidebar .toc-sites{display:flex}
  .family-header:has(.book-toc-btn) nav{display:none}
  .family-header .book-toc-btn{margin-left:auto}
  .book-layout .ptop{grid-template-columns:minmax(0,1fr);margin-bottom:20px;padding:2px 0 4px}
  .book-layout .ptop .pg{display:none}
  .book-layout article h1,.book-layout .page-chapter+article>h2:first-child{font-size:34px}
  .book-layout article .lead{font-size:19px}
  :where(.book-layout) article h2{font-size:24px;margin-top:36px}
  .book-layout article{line-height:1.8}
}
@media screen and (max-width:760px){
  .book-layout article table:not(.table-scroll *,[data-figure] *){
    display:block;
    overflow-x:auto;
  }
  .book-layout article :is(th,td):not([data-figure] *){
    overflow-wrap:normal;
  }
}
/* The 11-16 header look (records/web-design/20261116-family-header-ruling.md) on pages without the shell meta: the
   library index (web-design ruling 2026-11-16, round 3 item 4). Course pages take the deploy's bar. The scope reads the
   html attribute build.mjs writes beside the shell meta, not :has(meta[...]): with the :has() scope a reload put
   02-signals-2.html#연속성 600-650 px below the place it was left (round 3 item 13). html:root keeps the old (0,2,1). */
/* Textbook header (web-design 2026-11-16, records/web-design/20261116-family-header-ruling.md; PI 14:00, the textbook site look is web-design's): the family header's sizes, weights and colours. The full-width row stays beside the contents rail; logo box and first menu item start at the rail's text inset (16 px above 1100 px, 12 at 821-1100, 20 at 820 and below, 14 at 360 and below). Above 1600 px the rail sits in the centred 1600 px layout, so the inset follows it. Rows 84 + 48 like the other sites; family links on a second row at 540 and below. The lecture-mode button takes 15 px and the shell colours and hides at 640 and below (at 15 px the row no longer fits it there; Fable header review P2, 2026-11-16). Figure credits at 15 px only inside .book-layout (the slide deck and the scene site keep theirs). */
html:root:not([data-book-shell]) .family-header{min-height:84px;padding:8px 16px;gap:24px;border-bottom-color:var(--rule)}
html:root:not([data-book-shell]) .family-header,html:root:not([data-book-shell]) .family-links{padding-left:max(16px,calc((100% - 1600px)/2 + 16px));padding-right:max(16px,calc((100% - 1600px)/2 + 16px))}
html:root:not([data-book-shell]) .book-brand{font-size:15px;font-weight:600;color:var(--ink);border-left-color:var(--rule)}
html:root:not([data-book-shell]) .family-header nav{font-size:15px;gap:24px;align-self:stretch}
html:root:not([data-book-shell]) .family-header nav a{display:inline-flex;align-items:center;color:var(--ink-2);font-weight:500;border-bottom:2px solid transparent}
html:root:not([data-book-shell]) .family-links{padding-top:0;padding-bottom:0;gap:28px;font-size:15px;line-height:22px;border-bottom-color:var(--rule)}
html:root:not([data-book-shell]) .family-links a{color:var(--ink-2);font-weight:500;padding:12px 0 11px;border-bottom:2px solid transparent}
html:root:not([data-book-shell]) .family-header nav a[aria-current=page],html:root:not([data-book-shell]) .family-links a[aria-current=page]{color:var(--go);font-weight:600;text-decoration:none;border-bottom-color:var(--go)}
html:root:not([data-book-shell]) .family-header .slide-toggle{font-size:15px;border-color:var(--rule-2);border-radius:4px;color:var(--go)}html:root:not([data-book-shell]) .family-header .slide-toggle:hover{border-color:var(--go);background:var(--go-t)}
@media(max-width:640px){html:root:not([data-book-shell]) .family-header .slide-toggle{display:none}}
@media(max-width:1100px){html:root:not([data-book-shell]) .family-header,html:root:not([data-book-shell]) .family-links{padding-left:12px;padding-right:12px}}
@media(max-width:820px){html:root:not([data-book-shell]) .family-header,html:root:not([data-book-shell]) .family-links{padding-left:20px;padding-right:20px}html:root:not([data-book-shell]) .family-header{gap:16px}html:root:not([data-book-shell]) .family-header nav{gap:16px}html:root:not([data-book-shell]) .family-links{gap:20px}html:root:not([data-book-shell]) .family-links a{padding:10px 0}}
@media(max-width:540px){html:root:not([data-book-shell]) .family-header{min-height:0;flex-wrap:wrap;gap:0 16px;padding-top:8px;padding-bottom:0}html:root:not([data-book-shell]) .family-header img{width:90px;height:40px}html:root:not([data-book-shell]) .book-brand{font-size:15px;padding-left:12px}html:root:not([data-book-shell]) .family-header nav{flex-basis:100%;margin-left:0;height:47px;font-size:15px;gap:16px}html:root:not([data-book-shell]) .family-links{font-size:15px}}
@media(max-width:360px){html:root:not([data-book-shell]) .family-header,html:root:not([data-book-shell]) .family-links{padding-left:14px;padding-right:14px}html:root:not([data-book-shell]) .book-sidebar{padding-left:14px;padding-right:14px}}
