.study-route{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 0}.study-route span{background:#ebf0f8;border:1px solid #d8dde5;border-radius:20px;padding:6px 14px;font-size:14px}.study-route b{color:#8391a9}.study-panel{border:1px solid #b6c5db!important;background:#f5f7fb;border-radius:12px;padding:24px;margin:28px 0}.study-panel h3{margin-top:12px}.study-panel summary,#study-chapter summary{font-weight:700;font-size:18px}.study-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:12px;color:#805321}.study-answers{display:grid;gap:10px}.study-answers button{text-align:left;background:#fffefb;line-height:1.7}.study-answers button[aria-pressed=true]{border:2px solid #355d9e;background:#e8effb}#study-feedback{border-left:4px solid #8c5a24;padding:16px;background:#fff8eb}#study-chapter .study-chapter-body{max-height:75vh;overflow:auto;padding:0 20px 10px 0}.study-chapter-body section{border-top:2px solid #aab7ca;margin-top:40px}.study-chapter-body h3 small{font-size:13px;font-weight:400}#study-frame{width:100%;height:1000px;border:0;display:block;margin-top:20px;background:#f6f4ef}#study-writing select{min-width:0;max-width:100%}.study-tools{margin-top:16px}.study-tools input{display:block;max-width:100%;font:inherit;font-size:13px;margin-top:8px}#study-editor{width:100%;font:14px/1.8 ui-monospace,monospace;padding:14px;border:1px solid #8391a9;border-radius:8px;resize:vertical}.study-cell-label{display:block;font-size:12px;color:#626d7f}#study-preview td{min-width:160px}#study-preview textarea{width:100%;min-height:110px;border:1px solid #bcc8d9;background:#fffefb;resize:vertical;font:15px/1.7 system-ui,sans-serif;padding:8px;border-radius:5px;color:#26334d}.study-panel textarea:focus-visible{outline:3px solid #466eae;outline-offset:2px}#study-writing-status{font-size:14px;color:#805321}.study-panel p{overflow-wrap:anywhere}@media(max-width:600px){.study-panel{padding:16px}.study-route{gap:5px}.study-route span{padding:4px 8px;font-size:12px}#study-writing .bar{display:block}#study-writing .bar>*{margin:6px 0;max-width:100%}#study-preview table{font-size:13px}#study-chapter .study-chapter-body{padding-right:0}}@media print{.study-route,.study-panel button,#study-simulation,#study-writing{display:none!important}.study-chapter-body{max-height:none!important;overflow:visible!important}}
/* Reading and practice are separate views; optional tools never autoplay. */
.chapter-reader p,.chapter-reader li,.chapter-section>h3,.step-phase-panel p,.step-phase-panel li{word-break:keep-all;overflow-wrap:break-word}
.chapter-section td,.chapter-section th{word-break:keep-all;overflow-wrap:anywhere}
.unit-direction{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.unit-direction nav{display:flex;gap:8px}.unit-direction button{font-size:14px;padding:6px 10px}.eyebrow{font-size:12px;letter-spacing:.1em;color:#805321}.reader-view{display:flex;gap:8px;margin:22px 0 8px}.reader-view button{flex:1;max-width:230px}.reader-view [aria-pressed=true]{background:#355d9e;color:#fff}.chapter-reader{max-width:900px;margin:24px auto}.chapter-reader>h2{margin-top:0}.chapter-reader p{line-height:1.95;margin:16px 0;overflow-wrap:anywhere}.chapter-reader li{margin:8px 0}.chapter-brief{display:grid;grid-template-columns:1fr 1fr;gap:24px;border-bottom:1px solid #d8dde5;padding-bottom:20px}.chapter-brief h3{margin-top:12px}.chapter-brief ul{padding-left:22px;font-size:15px}.chapter-toc{display:grid;gap:8px;padding:22px 0}.chapter-toc a{font-size:15px;text-decoration:none}.chapter-section{scroll-margin-top:20px;padding:28px 0;border-top:1px solid #ccd5e2}.chapter-section>h3{font-size:24px;line-height:1.6;margin:8px 0 24px}.chapter-section h4{font-size:18px;margin-top:30px}.chapter-section table{font-size:15px;line-height:1.8}.chapter-handoff{background:#edf2fa;border-radius:10px;padding:22px;margin-top:26px}.chapter-handoff h3{margin-top:0}.release-notice{background:#f1f4f8;padding:18px;border-left:3px solid #8391a9;border-radius:6px}.release-notice p{font-size:15px}.phase-tabs{display:flex;gap:6px;border-bottom:1px solid #ccd5e2;padding-bottom:14px;margin:22px 0}.phase-tabs button{flex:1;font-size:15px;padding:10px 6px}.phase-tabs [aria-selected=true]{border-color:#355d9e;background:#e8effb;font-weight:700}.step-phase-panel{padding-top:4px}.step-phase-panel>button[data-continue]{margin-top:20px}.step-phase-panel .study-panel{margin-top:24px}#study-quiz h3{border:0;padding-top:0}#unit-intro h2{margin:8px 0}.chapter-section .reading-table{margin:22px 0}#study-frame{min-height:600px}@media(max-width:650px){.chapter-brief{grid-template-columns:1fr;gap:0}.chapter-section>h3{font-size:21px}.chapter-reader{padding:20px}.phase-tabs button{font-size:13px}.chapter-section{padding:24px 0}.reader-view button{font-size:15px}.chapter-handoff{padding:18px}}@media print{#unit-intro,.outline,.phase-tabs,.paging,[data-continue],#reader-view{display:none!important}.chapter-reader{max-width:none;border:0}.release-notice button,.chapter-handoff button{display:none!important}}

/* In-context textbook diagrams: a quiet working-paper surface, no autoplay. */
#step-title,#chapter-title{scroll-margin-top:16px}
.chapter-reader .chapter-figure{margin:30px 0 34px;padding:24px 0 16px;border-top:2px solid #64728a;border-bottom:1px solid #d8dde5;break-inside:avoid}
.chapter-reader .chapter-figure h4{font-size:20px;line-height:1.65;margin:0 0 10px;color:#1d3152;word-break:keep-all}
.chapter-reader .chapter-figure .figure-lead{font-size:16px;margin:8px 0 0;line-height:1.8}
.figure-desktop svg{display:block;width:100%;height:auto;overflow:visible}
.figure-mobile{display:none}
.chapter-reader .chapter-figure figcaption p{font-size:15px;line-height:1.85;margin:12px 0}
.chapter-reader .chapter-figure .figure-question{padding:12px 16px;border-left:3px solid #916323;background:#fbf0df}
.chapter-reader .chapter-figure .figure-source{font-size:13px;color:#626d7f}
@media(max-width:640px){
 .chapter-reader .chapter-figure{margin:26px 0;padding:20px 0 12px}
 .figure-desktop{display:none}.figure-mobile{display:grid;gap:12px;margin:20px 0}
 .figure-node{border:1px solid #aab7ca;border-left:3px solid #64728a;padding:14px 16px;font-size:16px;line-height:1.75;overflow-wrap:anywhere;background:#fffefb}
 .figure-node strong{display:block;color:#26334d;font-size:17px;margin-bottom:5px}
 .figure-node-evidence{background:#edf2fa;border-left-color:#355d9e}.figure-node-decision{background:#fbf0df;border-left-color:#916323}.figure-node-result{background:#eaf4ef;border-left-color:#3f705e}
 .figure-node ul.figure-connections{list-style:none;margin:10px 0 0;padding:9px 0 0;border-top:1px solid #ccd5e2;font-size:14px}
 .figure-connections li{margin:4px 0}.figure-connections span{color:#53627a}
}
@media print{.figure-mobile{display:none}.figure-desktop{display:block}}

/* The result is the learner's own document, not an automatically completed answer. */
#study-writing .study-export-help{font-size:13px;line-height:1.75;color:#596985;margin:10px 0}
.study-document-tabs{display:flex;gap:0;border-bottom:1px solid #ccd7ee;margin:24px 0 0}
.study-document-tabs button{flex:1;border:0;border-radius:0;border-bottom:3px solid transparent;background:transparent;color:#596985;padding:14px 10px;font-size:16px;font-weight:600;line-height:1.5}
.study-document-tabs button[aria-selected=true]{border-bottom-color:#3056c9;color:#243c78;background:#edf1fc}
.study-document-tabs button:focus-visible{outline:3px solid #3056c9;outline-offset:-3px}
.study-document-tabs[hidden],#study-edit-panel[hidden],#study-document-panel[hidden]{display:none}
#study-edit-panel{padding-top:16px}
.study-document-caption{display:flex;justify-content:space-between;gap:24px;padding:18px 0;color:#596985}
#study-writing .study-document-caption p{font-size:13px;line-height:1.7;margin:0;max-width:38em}
#study-writing .study-document-caption strong{font-size:15px;color:#243c78}
#study-writing .study-paper{font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;max-width:860px;margin:0 auto 12px;padding:44px 36px;background:#fff;border:1px solid #dce3f1;border-top:4px solid #3056c9;box-shadow:0 10px 28px #1524470b;color:#152447;font-size:16px;line-height:1.85;overflow-wrap:anywhere;word-break:keep-all}
#study-writing .study-paper h1{font-size:29px;line-height:1.45;letter-spacing:-.04em;margin:0 0 24px;padding-bottom:24px;border-bottom:2px solid #3056c9;color:#152447}
#study-writing .study-paper h2{font-size:21px;line-height:1.6;margin:36px 0 16px;padding-bottom:10px;border:0;border-bottom:1px solid #dce3f1;color:#152447}
#study-writing .study-paper h3{font-size:18px;line-height:1.65;margin:24px 0 12px;padding:0;border:0;color:#243c78}
#study-writing .study-paper h4,#study-writing .study-paper h5,#study-writing .study-paper h6{font-size:16px;line-height:1.7;margin:20px 0 10px}
#study-writing .study-paper p{font-size:inherit;line-height:inherit;margin:12px 0}
#study-writing .study-paper .study-paper-control{font-size:14px;line-height:1.85;color:#4c5c7e;background:#f4f6fc;padding:12px 16px;border-left:3px solid #3056c9}
#study-writing .study-paper-table{overflow:auto;max-width:100%;margin:20px 0}
#study-writing .study-paper table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.7;white-space:normal}
#study-writing .study-paper th,#study-writing .study-paper td{border:1px solid #dce3f1;padding:12px;text-align:left;vertical-align:top;min-width:90px;overflow-wrap:anywhere}
#study-writing .study-paper th{position:static;background:#edf1fc;color:#243c78;font-weight:700}
#study-writing .study-paper tr:hover td{background:transparent}
.study-paper-gap{display:inline;padding:1px 3px;background:#fff6d9;border-bottom:1px dashed #a27b26;color:#755a22;box-decoration-break:clone}
#study-writing .study-paper ul,#study-writing .study-paper ol{padding-left:26px}
#study-writing .study-paper li{margin:7px 0}
#study-writing .study-paper blockquote{margin:20px 0;padding:10px 20px;border-left:3px solid #7f96d8;background:#f4f6fc}
#study-writing .study-paper pre{background:#f4f6fc;padding:16px;white-space:pre-wrap;word-break:break-word;overflow:auto}
#study-writing .study-paper code{font:13px/1.7 ui-monospace,monospace;white-space:pre-wrap}
#study-writing .study-paper hr{border:0;border-top:1px solid #dce3f1;margin:28px 0}
#study-writing .study-paper-empty{color:#657391}
#study-writing .study-paper-table:focus-visible{outline:3px solid #3056c9;outline-offset:3px}
@media(max-width:650px){
 .study-document-caption{display:block;padding:16px 0}
 #study-writing .study-document-caption p+p{margin-top:8px}
 #study-writing .study-paper{padding:26px 18px;font-size:15px}
 #study-writing .study-paper h1{font-size:24px}
 #study-writing .study-paper h2{font-size:19px}
 #study-writing .study-paper th,#study-writing .study-paper td{padding:9px;min-width:88px}
 .study-document-tabs button{font-size:14px;padding:12px 8px}
}
