/* Shared alignment for the study routes, without changing lesson content. */
:root{--study-frame:1236px;--study-gutter:clamp(16px,3.1vw,42px);--study-inset:clamp(14px,2.4vw,30px)}
.topbar{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand version settings" "navigation navigation navigation";align-items:center;gap:14px 18px;width:100%;max-width:var(--study-frame);height:auto;min-height:0;margin:0 auto;padding:18px var(--study-gutter) 16px}
.topbar>.study-brand-guide{grid-area:brand;justify-self:start;min-width:0}
.topbar>.study-version{grid-area:version;justify-self:end;align-self:center;margin:0}
.topbar>.top-settings{grid-area:settings;display:inline-flex;align-items:center;justify-content:center;justify-self:end;align-self:center;width:48px;min-width:48px;height:48px;min-height:48px;margin:0;padding:10px}
.topbar>.top-settings .control-label{display:none}
.topbar>.top-settings .control-icon{flex:0 0 26px;width:26px;height:26px}
.topbar nav{grid-area:navigation;display:grid;grid-template-columns:104px repeat(6,minmax(0,1fr));align-items:stretch;justify-content:stretch;gap:8px;width:100%;min-width:0;max-width:100%;height:auto;margin:0;padding:0;border:0;overflow:visible}
.topbar nav>button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:48px;height:auto;margin:0;padding:10px 12px;font-size:13px;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:normal}
.topbar nav>.course-return{align-items:center;justify-content:space-between;gap:8px;min-width:0;margin:0;padding:0}
.topbar nav .course-return-link{flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px}
#main{box-sizing:border-box;width:100%;max-width:var(--study-frame);min-width:0;margin:20px auto 0;padding:0 var(--study-gutter)}
body>footer{box-sizing:border-box;width:100%;max-width:var(--study-frame);margin:30px auto 0;padding:24px var(--study-gutter);gap:12px;font-size:12px}
#main>.print-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:0 0 8px;padding:0}
#main>.print-toolbar>span{margin:0;font-size:13px;line-height:1.5}
.page-intro,.page-intro:has(+.library){max-width:none;padding:24px 0}
.page-intro h1,.page-intro:has(+.library) h1{font-size:clamp(28px,3vw,34px);line-height:1.2;margin:8px 0 14px}
.page-intro>p:last-child,.page-intro:has(+.library)>p:last-child{max-width:76ch;font-size:14px;line-height:1.65}
.library-inline .library-sidebar{min-width:0;padding-right:0}
.library-inline .search-field{min-height:48px;margin:0 0 10px;border-radius:9px;transition:border-color .15s ease,box-shadow .15s ease}
.library-inline .search-field:focus-within{border-color:#79d9f3;box-shadow:0 0 0 2px #60ccf033}
.library-inline .search-field input{min-width:0;min-height:46px;padding:10px 0;background:transparent;border:0;border-radius:0;font-size:14px;line-height:1.4;box-shadow:none}
.library-inline .search-field input:focus,.library-inline .search-field input:focus-visible{outline:0!important;box-shadow:none}
.library-inline .library-sidebar>#sector-filter{min-height:48px;font-size:14px;line-height:1.4}
.library-filters{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.library-filters>button{min-height:44px;height:auto;margin:0;padding:10px 12px;font-size:13px;line-height:1.4}
.library-inline .topic-item{margin:10px 0 0}
.library-inline #ficha-detail{margin:0 0 20px;scroll-margin-top:20px}
.reader-head{align-items:flex-start;padding:24px var(--study-inset) 20px}
.reader-head h2{line-height:1.2}
.reader-head p:not(.eyebrow){font-size:14px;line-height:1.65}
.reader-head>.favorite{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;margin:0;padding:6px}
.review-exam-summary{padding:20px var(--study-inset)}
.review-summary-actions{display:grid;grid-template-columns:repeat(2,max-content);align-items:stretch;gap:10px;margin-top:14px}
.review-summary-actions>a{min-height:44px;height:auto;margin:0;padding:11px 16px;line-height:1.35;text-align:center;white-space:normal}
.reader .reader-toolbar{top:calc(12px + env(safe-area-inset-top,0px));padding:14px var(--study-inset) 12px;background:#102f47;backdrop-filter:none}
.reader .study-chapters{margin:0;padding:18px var(--study-inset);border-width:0 0 1px;border-radius:0}
.review-topic-index>label{display:grid;gap:9px;margin:0;font-size:13px;line-height:1.4}
.review-topic-index select{box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:48px;margin:0;padding:10px 34px 10px 12px;border:1px solid #93c8df;border-radius:8px;background:#fff;color:#234e6b;font:inherit;font-size:15px;font-weight:400;line-height:1.35}
.review-topic-index select:focus-visible{outline:2px solid #246c9c;outline-offset:3px}
.reader .section-tabs{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));grid-auto-rows:auto;align-items:stretch;gap:10px;padding:18px var(--study-inset) 12px}
.reader .section-tab{align-items:center;min-height:50px;height:auto;margin:0;padding:11px 12px;line-height:1.45}
.reader .reader-nav-top{align-items:center;padding:10px var(--study-inset)}
.reader .reading-section{padding:22px var(--study-inset) 28px}
.reader .reading-title{align-items:flex-start;gap:10px;margin-bottom:20px}
.reader .reading-title h3{margin:0;line-height:1.35}
.reader .section-tag{margin-top:1px}
.reader .reading-text{max-width:80ch;font-size:17px;line-height:1.8}
.reader .reading-text p{margin:0 0 18px;line-height:1.8}
.reader .source{max-width:100%;font-size:12px!important;line-height:1.65!important}
.reader .source-note{font-size:11px;line-height:1.6}
.reader .from-slide,.reader .reader-nav{padding-left:var(--study-inset);padding-right:var(--study-inset)}
.practice-levels button[aria-pressed=true]{background:#dceffa;border-color:#3785b0;box-shadow:inset 0 -3px #60ccf0}
.practice-reference{border-color:#8db9d1}
.practice-reference>summary,.simple-practice .practice-result,.practice-top-result{color:#24516d}
.simple-practice button:focus-visible,.simple-practice summary:focus-visible,.simple-practice textarea:focus-visible,.simple-practice input:focus-visible{outline-color:#3785b0}

/* Print selection belongs to the same blue study surface. */
.print-center{background:#0b2438;color:#effaff;border-color:#5da6c7}
.print-center-header{align-items:flex-start;gap:18px;padding:24px}
.print-center-header h2{margin-top:0;color:#effaff;line-height:1.25}
.print-center-header p{font-size:14px;line-height:1.6;color:#c1ddeb}
.print-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-color:#6aa5c4;background:#153c55;color:#effaff}
.print-explanation{background:#12344b;color:#cce9f6;line-height:1.65}
.print-explanation b{color:#e8f8ff}
.print-filters{gap:12px}
.print-filters label{color:#cce7f5;font-size:13px}
.print-filters input,.print-filters select{box-sizing:border-box;min-width:0;min-height:44px;border-color:#5f9dbd;background:#102f47;color:#f1faff;font-size:14px;line-height:1.4}
.print-filters input::placeholder{color:#a5c3d7}
.print-library-tools{flex-wrap:wrap;align-items:center;gap:10px}
.print-library-tools>span,.print-count,.print-ready-note,.print-order small{color:#b3d2e5}
.print-text-button{min-height:44px;padding:10px 3px;color:#9de4fc;font-size:13px}
.print-center .print-tile{display:flex;flex-direction:row;align-items:flex-start;gap:12px;min-height:0;border-color:#528cad;background:#103149;color:#e7f8ff}
.print-tile.selected{background:#174a67;border-color:#76d5f2;box-shadow:inset 3px 0 #76d5f2}
.print-center .print-tile>input{box-sizing:border-box;flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;max-height:20px;margin:2px 0 0;padding:0;accent-color:#60ccf0}
.print-tile b{color:#effaff;font-size:14px;line-height:1.5}
.print-tile small{color:#b8d8e9;font-size:12px;line-height:1.5}
.print-tile em{background:#246c9c50;color:#c2edff;font-size:11px}
.print-section-heading h3{color:#d9f3ff}
.print-selection{background:#081f31;border-color:#4c89a8}
.print-order li{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;padding:14px 0;border-color:#6394b03d}
.print-order b{color:#e9f8ff;font-size:13px;line-height:1.5}
.print-order li>div{display:flex;justify-content:flex-end;gap:7px}
.print-order button{box-sizing:border-box;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-color:#629bb9;background:#123a54;color:#e7f8ff;font-size:19px;line-height:1}
.print-generate{min-height:48px;background:#60ccf0;border-color:#7cddf5;color:#082b43;font-size:15px;line-height:1.4}
.print-message,.print-empty{color:#c3e5f6;font-size:14px;line-height:1.6}
.print-file-ready{border-color:#5f9dbd;background:#10354f}
.print-file-ready>b,.print-file-ready p{color:#d2eefa}
.print-file-ready a{min-height:44px;font-size:14px}
.print-download{background:#9de3f7;color:#10354b}
.print-open-pdf{border-color:#72b8d4;color:#d9f4ff}
.print-center :focus-visible{outline:3px solid #8fdef5;outline-offset:3px}
.print-results,.print-related-list,.print-order{scrollbar-width:none}
.print-results::-webkit-scrollbar,.print-related-list::-webkit-scrollbar,.print-order::-webkit-scrollbar{display:none;width:0;height:0}

@media(max-width:850px){
 .topbar{gap:12px 10px;padding:16px var(--study-gutter) 14px}
 .topbar nav{display:flex;align-items:stretch;flex-wrap:nowrap;justify-content:flex-start;gap:8px;max-width:100%;margin:0;padding:6px 2px;border:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:none}
 .topbar nav>button{flex:0 0 auto;min-height:44px;padding:10px 12px;font-size:13px;white-space:nowrap}
 .topbar nav>.course-return{flex:0 0 auto;gap:6px}
 .topbar nav .course-return-link{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px}
 .topbar nav::-webkit-scrollbar{display:none;width:0;height:0}
 .reader .reading-text{max-width:100%}
}
@media(max-width:560px){
 .topbar{gap:12px 8px}
 .study-brand-guide{gap:9px}
 .topbar .brand{gap:7px;font-size:12px}
 .topbar .brand b{font-size:13px}
 .topbar .brand-icon{width:34px;height:40px;font-size:35px}
 .topbar .brand small{font-size:6px;letter-spacing:.12em;margin-top:5px}
 .topbar>.study-version{font-size:10px;padding:6px 7px}
 .topbar>.top-settings{width:44px;min-width:44px;min-height:44px;padding:9px}
 .topbar>.top-settings .control-label{display:none}
 #main{margin-top:16px}
 #main>.print-toolbar{gap:10px}
 #main>.print-toolbar>span{flex:1 1 130px;font-size:12px}
 #main>.print-toolbar>button{min-height:44px;margin:0;font-size:12px}
 .page-intro,.page-intro:has(+.library){padding:20px 0 22px}
 .reader-head{padding-top:20px;padding-bottom:18px}
 .reader-head p:not(.eyebrow){font-size:13px}
 .review-exam-summary{padding-top:18px;padding-bottom:18px}
 .review-summary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .review-summary-actions>a{padding:10px 8px;font-size:13px}
 .reader .reader-toolbar{padding:12px var(--study-inset) 10px}
 .reader .study-chapters{padding-top:16px;padding-bottom:16px}
 .reader .section-tabs{grid-template-columns:minmax(0,1fr);gap:8px;padding-top:16px}
 .reader .reading-text{font-size:16px}
 .print-center-header{gap:12px;padding:20px 17px}
}
@media(prefers-reduced-motion:reduce){.library-inline .search-field{transition:none}}
@media print{.topbar,.review-summary-actions{display:none!important}}

/* Source-based comparison tables remain readable at every reader width. */
.study-comparison{max-width:100%;margin:24px 0;overflow:visible}
.study-comparison table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:1.55;color:#173e57;background:#fff}
.study-comparison caption{text-align:left;font-size:15px;font-weight:700;line-height:1.4;padding:0 0 10px;color:#24516d}
.study-comparison th,.study-comparison td{padding:11px 10px;vertical-align:top;text-align:left;border:1px solid #adc9d8;overflow-wrap:anywhere}
.study-comparison thead th{background:#e6f0f5;color:#174a67;font-weight:700}
.study-comparison tbody th{background:#f3f7f9;font-weight:600}
@media(max-width:560px){.study-comparison table{font-size:11px;line-height:1.5}.study-comparison th,.study-comparison td{padding:8px 6px}.study-comparison caption{font-size:14px}}
.study-overview{margin:24px 0;padding:18px;border:1px solid #8bb9d1;border-radius:12px;background:#f6fafc;color:#214b65}
.study-overview h4{margin:0 0 15px;font-size:17px;line-height:1.4}
.study-overview>ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;counter-reset:study-map}
.study-overview>ol>li{counter-increment:study-map;padding:14px;border:1px solid #abcbdc;border-radius:8px;background:#fff}
.study-overview h5{margin:0 0 9px;font-size:14px;line-height:1.4}
.study-overview h5:before{content:counter(study-map) ' · ';color:#246c9c}
.study-overview ul{padding-left:17px;margin:0;font-size:13px;line-height:1.6}
.study-overview>p{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0!important;font-size:12px!important;line-height:1.5!important}
.study-overview>p>span{padding:5px 8px;border:1px solid #b3d0df;border-radius:6px;background:#eaf3f8}
@media(max-width:560px){.study-overview{padding:12px}.study-overview>ol{grid-template-columns:1fr}.study-overview h5{font-size:14px}}

.class-download-entry{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:14px 0 18px}
.class-download-entry button{min-height:46px;padding:10px 15px;font-size:13px;line-height:1.4}
.class-download-entry>span{font-size:12px;line-height:1.5;color:#bedbe8}
.lecture-download-link{display:inline-flex;align-items:center;min-height:44px;padding:10px 13px;margin:4px 0 10px;border:1px solid #4b8ead;border-radius:8px;background:#fff;color:#174a67;font-size:13px;font-weight:700;line-height:1.4;text-decoration:none}
.class-downloads>p{font-size:14px;line-height:1.65}
.class-download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.class-download-grid>a{display:flex;flex-direction:column;gap:7px;padding:17px;border:1px solid #75b9d4;border-radius:10px;color:#e9faff;background:#143e57;text-decoration:none;min-height:125px;box-sizing:border-box}
.class-download-grid span{font-size:11px;letter-spacing:.08em;color:#9de2f6}
.class-download-grid strong{font-size:15px;line-height:1.45}
.class-download-grid small{font-size:12px;line-height:1.5;color:#c5e4f1}
.study-medical-illustration{margin:24px 0;padding:0;max-width:100%;border:1px solid #a4c6d7;border-radius:10px;background:#fff;overflow:hidden}
.study-medical-illustration img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;background:#fff}
.study-medical-illustration figcaption{padding:16px 18px;color:#173e57}
.study-medical-illustration figcaption>strong{display:block;font-size:16px;line-height:1.45;margin-bottom:8px}
.study-medical-illustration figcaption p{font-size:14px!important;line-height:1.65!important;margin:0 0 8px!important}
.study-medical-illustration figcaption small{font-size:11px;color:#4c6372}
@media(max-width:560px){.class-download-grid{grid-template-columns:1fr}.class-download-entry button{width:100%}.lecture-download-link{font-size:12px}.study-medical-illustration figcaption{padding:13px}}
