:root{--paper:#faf9f5;--ink:#253c36;--muted:#65736c;--line:#dedfd5;--green:#175848;--deep:#193f37;--sage:#e6eee5;--gold:#b17b31;--accent:#f0dabc;--red:#904839;--serif:Georgia,'Times New Roman',serif;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-size:16px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:80px}body{margin:0}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--green);text-underline-offset:4px}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #b37d2b;outline-offset:4px}button{color:inherit}h1,h2,h3,h4,p{margin-top:0}h2{font-family:var(--serif);font-weight:400}p{line-height:1.75}strong{font-weight:700}svg{max-width:100%}.eyebrow{font-size:.66rem;font-weight:700;letter-spacing:.16em;line-height:1.7}.muted{font-size:.8rem;color:var(--muted);line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-60px;left:20px;z-index:200;background:white;padding:12px}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;padding:34px 25px 20px;border-right:1px solid var(--line);background:#f1f2eb;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:.85rem;line-height:1.35;transition:opacity .15s ease}.brand:hover{opacity:.85}.brand-logo{height:46px;width:auto;max-width:52px;object-fit:contain;display:block;flex-shrink:0}.brand-text{display:flex;flex-direction:column}.brand-title{font-weight:700;font-size:.92rem;color:var(--ink);line-height:1.2}.brand-sub{font-size:.62rem;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;line-height:1.2}.brand-mark{font-family:var(--serif);font-size:49px;line-height:1;letter-spacing:-8px;padding-right:7px}.brand-mark span{color:var(--gold)}.brand b{font-weight:600}.side-course{margin-top:28px}.side-course p{font-family:var(--serif);font-size:1.2rem;line-height:1.3;margin-top:12px}#chapter-nav{overflow:auto;scrollbar-width:thin;min-height:0;margin-top:20px}#chapter-nav a{display:flex;gap:9px;align-items:center;min-height:41px;padding:9px 9px;border-radius:5px;text-decoration:none;font-size:.75rem;line-height:1.3;margin:2px 0;color:#637069}#chapter-nav a.active{background:#dfe8dd;color:var(--green);font-weight:bold}#chapter-nav a.future{color:#7a817b}#chapter-nav a:hover{background:#e5e9df}#chapter-nav .chapter-number{font-size:.62rem;width:18px;flex:none;font-variant-numeric:tabular-nums}#chapter-nav small{margin-left:auto;font-size:.55rem;background:#fff7;padding:3px;white-space:nowrap}#chapter-nav .checked{color:var(--green)}.side-bottom{margin-top:auto;padding-top:25px}.progress-label{display:flex;justify-content:space-between;gap:8px;font-size:.62rem}progress{width:100%;height:4px;border:0;border-radius:9px;background:#d5ddd1;accent-color:var(--green);margin-top:11px}progress::-webkit-progress-bar{background:#d5ddd1}progress::-webkit-progress-value{background:var(--green)}.side-bottom p{font-size:.6rem;color:var(--muted);line-height:1.5;margin:8px 0}.text-button{border:0;background:none;padding:0;text-decoration:underline;text-underline-offset:4px;font-size:.7rem;color:var(--green)}.workspace{margin-left:236px}.topbar{min-height:70px;border-bottom:1px solid var(--line);padding:12px 5.5%;display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--paper);position:sticky;top:0;z-index:15}.breadcrumb{font-size:.7rem;color:var(--muted)}.breadcrumb a{color:inherit;text-decoration:none;transition:color .15s ease}.breadcrumb a:hover{text-decoration:underline;color:var(--ink)}.breadcrumb span{padding:0 12px;color:#b5b8ae}.top-actions{display:flex;gap:20px}.toolbar-button{background:none;border:none;text-decoration:none;font-size:.73rem;display:flex;gap:7px;align-items:center;min-height:38px;padding:3px;color:var(--ink)}main{max-width:1280px;padding:0 5.5%;margin:auto}.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:5%;align-items:center;padding:62px 0 52px}.live-dot{width:6px;height:6px;border-radius:50%;background:#7c9978;display:inline-block;margin-right:6px;vertical-align:1px}.hero h1{font-family:var(--serif);font-size:clamp(2.8rem,4.5vw,4.8rem);line-height:1.05;letter-spacing:-.04em;font-weight:400;margin:19px 0 25px}.hero h1 em{font-weight:400;color:var(--green)}.hero-lead{font-size:.98rem;line-height:1.65;max-width:380px;margin-bottom:10px}.hero-sub{font-size:.8rem;color:var(--muted);max-width:330px;line-height:1.7;margin-bottom:25px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:22px;border-radius:5px;padding:14px 20px;font-size:.78rem;font-weight:600;line-height:1.3;text-decoration:none;border:1px solid var(--green);min-height:45px}.primary-button{background:var(--green);color:white}.primary-button:hover{background:#103f33}.secondary-button{color:var(--green);background:transparent}.hero-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:.57rem;color:var(--muted);margin-top:22px}.hero-meta span+span:before{content:'·';margin-right:12px}.hero-art{border-radius:120px 120px 8px 8px;background:var(--deep);color:#e8eee2;padding:51px 22px 20px;min-width:0;box-shadow:0 12px 30px #233d3510}.art-heading{display:flex;justify-content:space-between;font-size:.55rem;letter-spacing:.12em;margin:0 16px 8px;color:#b1c7b9}.hero-art svg{width:100%;height:auto;display:block}.art-caption{display:flex;justify-content:space-between;border-top:1px solid #66887b55;padding-top:17px;gap:5px;font-size:.64rem}.art-caption b{color:#d5b071;font-size:.56rem;margin-right:5px}.hero-art>p{font-size:.54rem;text-align:center;line-height:1.5;color:#aec3b6;margin:20px 0 0}.path-picker{padding:30px 0 25px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.path-picker h2{font-size:1.5rem;margin-bottom:20px}.path-picker .eyebrow{margin-bottom:7px}#path-buttons{display:flex;gap:8px;flex-wrap:wrap}#path-buttons button{flex:1;min-width:90px;text-align:left;background:transparent;border:1px solid #cdd2c7;padding:13px 15px;border-radius:6px;position:relative}#path-buttons button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}#path-buttons b{display:block;font-size:.88rem;margin-bottom:5px}#path-buttons small{display:block;font-size:.61rem;line-height:1.4}#path-buttons button[aria-pressed=true]:after{content:'✓';position:absolute;right:11px;top:12px;font-size:.7rem}.path-picker>.muted{margin:12px 0 0}.path-contract{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px;padding:32px 0}.path-contract h2{font-size:1.7rem;margin:8px 0}.path-contract ul{list-style:none;margin:0 0 12px;padding:0}.path-contract li{position:relative;padding:0 0 8px 23px;font-size:.84rem;line-height:1.55}.path-contract li:before{content:'↗';position:absolute;left:0;color:var(--green)}.path-contract .muted{margin-bottom:0}.support-note{background:#eef0e7;border:1px solid #e0e4d5;border-radius:6px;padding:0 20px;margin-bottom:60px;font-size:.82rem}.support-note summary{list-style:none;display:flex;align-items:center;gap:14px;cursor:pointer;padding:18px 0;line-height:1.5}.support-note summary::-webkit-details-marker{display:none}.note-icon{font-size:1.25rem}.plus{margin-left:auto;font-size:1.2rem}.support-note[open] .plus{transform:rotate(45deg)}.support-body{padding:5px 5px 20px}.barrier{padding-top:15px;border-top:1px solid var(--line);margin-top:18px}.barrier h3{font-size:.9rem}.reading-heading{padding-top:8px;border-bottom:1px solid var(--line);margin-bottom:15px}.reading-heading p{font-size:.75rem;color:var(--muted);margin:7px 0 18px}.lesson{padding:45px 0 38px;border-bottom:1px solid var(--line);scroll-margin-top:80px}.lesson-head{display:flex;gap:22px;margin-bottom:28px}.lesson-index{font-family:var(--serif);font-size:2.4rem;color:#91a08c;line-height:1.1;min-width:48px}.lesson h2{font-size:2.2rem;letter-spacing:-.02em;line-height:1.18;margin:0 0 10px}.lesson-question{font-size:.88rem;color:var(--muted);margin:0}.lesson-body{max-width:780px;margin-left:70px}.content-block{padding-bottom:18px;margin-bottom:14px;scroll-margin-top:100px}.content-block h3{font-size:1.1rem;line-height:1.4;margin:12px 0 16px}.content-block h4{font-size:.92rem;margin-bottom:9px}.content-block p,.content-block li{font-size:.94rem;line-height:1.85}.content-block li{padding-bottom:8px}.content-block ul,.content-block ol{padding-left:23px}.content-block p:last-child{margin-bottom:0}.term{border:none;border-bottom:1px dotted var(--green);background:none;padding:0;color:var(--green);font:inherit;line-height:inherit;cursor:help}.citations{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:14px}.cite{font-size:.65rem;line-height:1.4;color:#4f665b;background:#f1f3eb;border:1px solid #dce1d6;text-decoration:none;padding:5px 8px;border-radius:4px;min-height:29px;display:inline-flex;align-items:center;gap:4px}.cite:hover{background:#e2eadd}.external-cite{background:transparent}.more-citations{display:inline-block;font-size:.65rem}.more-citations summary{cursor:pointer;padding:5px}.origin{color:var(--muted);font-size:.7rem!important;letter-spacing:.015em}.analogy{border-left:3px solid #c5a36b;padding:12px 18px;background:#f5efe3;font-size:.84rem!important;line-height:1.75;margin:22px 0}.analogy p{font-size:.84rem}.analogy-map{border:1px solid var(--line);padding:13px 16px;border-radius:4px}.analogy-map summary{font-size:.8rem;cursor:pointer}.analogy-map p{font-size:.82rem;margin-top:12px}.source-figure{margin:20px 0 24px;background:white;border:1px solid var(--line);border-radius:5px;padding:15px}.source-figure>a{display:block}.source-figure img{width:100%;max-height:430px;object-fit:contain;display:block}.source-figure figcaption{font-size:.75rem;line-height:1.65;margin-top:14px;color:var(--muted)}.source-figure .cite{margin-top:10px}.correction-inline{border-left:3px solid #b8864e;background:#f6efdf;margin:18px 0;padding:13px 16px}.correction-inline summary{cursor:pointer;font-size:.8rem;font-weight:bold;line-height:1.5}.correction-inline p{font-size:.82rem;margin:12px 0}.correction-inline .original{color:#6d685b}.quiz{padding:23px;background:#eef2e9;border:1px solid #dbe2d3;border-radius:7px;margin:25px 0}.quiz .eyebrow{color:#557049;margin-bottom:10px}.quiz h4{font-family:var(--serif);font-size:1.25rem;line-height:1.4;font-weight:400}.quiz-options{display:grid;gap:8px}.quiz-option{display:flex;align-items:flex-start;gap:12px;text-align:left;border:1px solid #d2dbca;border-radius:5px;padding:13px;background:#fafbf7;line-height:1.55;font-size:.84rem}.quiz-option>span{flex:none;border:1px solid #d1d9c9;font-size:.6rem;padding:3px 6px;border-radius:3px}.quiz-option[aria-pressed=true]{border-color:var(--green);background:#dfebde}.quiz-option.incorrect{border-color:#9f6657;background:#f7eae3}.quiz-feedback{font-size:.84rem;line-height:1.7;margin-top:16px;padding-top:15px;border-top:1px solid #cbd8c3}.quiz-feedback strong{display:block;margin-bottom:4px}.quiz-feedback p{font-size:.83rem}.worked{border-left:3px solid #8aa381;padding:8px 20px;background:#f0f4ed;margin:20px 0}.worked p{font-size:.88rem}.free-response label,.content-block>label{display:block;font-size:.85rem;line-height:1.6;margin:15px 0 10px}textarea{display:block;width:100%;background:#fffefb;border:1px solid #bcc7b7;border-radius:5px;padding:14px;line-height:1.7;color:var(--ink);resize:vertical;font-size:.86rem}details:not(.support-note):not(.more-citations):not(.correction-inline):not(.analogy-map){margin:16px 0}details>summary{cursor:pointer;line-height:1.6;font-size:.87rem}details>p:first-of-type{margin-top:16px}.feynman-mini{background:#f1f0e6;border-radius:5px;padding:18px;margin-top:20px}.feynman-mini p{font-size:.84rem}.table-scroll{overflow-x:auto;margin:18px 0;max-width:100%;border:1px solid var(--line);border-radius:5px}table{border-collapse:collapse;width:100%;font-size:.8rem;line-height:1.7}caption{text-align:left;padding:14px 15px;font-size:.77rem;font-weight:600;background:#eef1e8}th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line);vertical-align:top}thead th{font-size:.72rem;background:#f3f4ed}tbody th{min-width:105px;font-weight:600}tr:last-child th,tr:last-child td{border-bottom:0}.lesson-end{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:22px 0 0 70px}.done-button{border:1px solid #c5cebe;border-radius:6px;background:transparent;padding:11px 15px;font-size:.78rem;text-align:left;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;transition:all .18s ease}.done-button[aria-pressed=true],.done-button.is-done{background:#e0ebdc;border-color:#8fa782;color:#245331;font-weight:600}.done-button .done-check{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#245331;color:#fff;font-size:.75rem;font-weight:bold}.done-button .done-hint{font-size:.72rem;opacity:.8;font-weight:normal}.lesson-end a{font-size:.73rem}.finish{padding:55px 0}.finish h2{font-size:2.4rem;line-height:1.2;margin-top:15px}.finish p{font-size:.9rem;max-width:530px;color:var(--muted)}.finish>div{display:flex;gap:12px;flex-wrap:wrap}.finish .secondary-button{font-size:.72rem}footer{border-top:1px solid var(--line);padding:25px 0 40px;font-size:.67rem;color:var(--muted)}footer p{line-height:1.7;margin:0 0 8px}footer>div{display:flex;gap:15px;flex-wrap:wrap;margin-top:15px}footer button{font-size:.67rem!important}dialog{border:1px solid #c9d3c4;border-radius:10px;padding:0;width:min(720px,94vw);max-height:90dvh;background:var(--paper);color:var(--ink);box-shadow:0 25px 100px #0f292b38}dialog::backdrop{background:#183a334d;backdrop-filter:blur(2px)}.dialog-head{padding:22px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}.dialog-head h2{font-size:1.7rem;margin:5px 0 0}.icon-button{border:1px solid #c9d2c3;border-radius:50%;width:38px;height:38px;background:transparent;font-size:1.5rem;flex:none}.dialog-scroll{overflow:auto;padding:20px 25px;max-height:calc(90dvh - 130px)}.source-dialog{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:51vw;max-width:100vw;border-radius:0;overflow:hidden}.source-dialog[open]{display:flex;flex-direction:column}.source-dialog::backdrop{background:#152e301f;backdrop-filter:none}.source-dialog iframe{border:0;flex:1;min-height:0;width:100%;background:white}.source-dialog .dialog-head{padding:18px}.source-dialog h2{font-size:1.35rem}.dialog-foot{display:flex;justify-content:space-between;gap:10px;padding:15px;font-size:.65rem;border-top:1px solid var(--line)}.search-label{font-size:.75rem;display:block;margin:20px 25px 8px}#glossary-search{width:calc(100% - 50px);margin:0 25px 5px;padding:12px;border:1px solid #bdcbb8;border-radius:5px;background:white;color:var(--ink)}#glossary-list{max-height:calc(90dvh - 220px)}.glossary-entry{padding:18px 0;border-bottom:1px solid var(--line)}.glossary-entry h3{font-family:var(--serif);font-size:1.35rem;margin:0 0 9px}.glossary-entry p{font-size:.85rem;margin-bottom:10px}.glossary-entry>a{font-size:.75rem}.correction-entry{border-bottom:1px solid var(--line);padding:15px 0}.correction-entry h4{font-size:.9rem;margin-bottom:10px}.correction-entry p{font-size:.83rem;line-height:1.7}.external-entry{padding:15px 0;border-bottom:1px solid var(--line)}.external-entry a{font-size:.86rem}.external-entry p{font-size:.73rem;margin:7px 0;color:var(--muted)}.model-widget{margin:26px 0;padding:24px;border-radius:7px;background:var(--deep);color:#edf2e7}.model-widget .eyebrow{color:#bcd0ba}.model-widget h4{font-family:var(--serif);font-size:1.3rem;font-weight:400;margin:7px 0 12px}.model-prediction{font-size:.78rem!important;color:#c7d8c3;margin-bottom:18px}.model-display{position:relative;min-height:155px;padding:16px 10px}.stage-controls{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0 16px}.stage-controls button{background:transparent;color:#deeadb;border:1px solid #71927a;border-radius:4px;padding:9px 10px;font-size:.69rem;min-height:38px}.stage-controls button[aria-pressed=true]{background:#dee8d7;color:#254b39}.model-controls{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #668673;padding-top:14px}.model-controls button{font-size:.71rem;padding:8px 12px;background:#dfe9d7;border:0;border-radius:4px;color:#214633;min-height:35px}.model-caption{font-size:.84rem!important;line-height:1.65!important;margin-bottom:18px;min-height:65px}.model-controls span{font-size:.61rem;color:#c2d2ba}.model-print{display:none}
@media(min-width:1600px){.hero h1{font-size:5rem}}@media(max-width:1150px){.sidebar{width:205px;padding:28px 17px 17px}.workspace{margin-left:205px}.hero{gap:24px}.hero-art{padding:45px 15px 15px}.hero h1{font-size:3.7rem}.hero-meta{gap:8px}.hero-meta span+span:before{margin-right:6px}.lesson-body{margin-left:45px}.lesson-end{margin-left:45px}.lesson-index{min-width:25px}.lesson h2{font-size:1.9rem}.top-actions{gap:12px}}
@media(max-width:850px){.sidebar{display:none}.workspace{margin-left:0}.topbar{padding:10px 5%}.hero{padding-top:42px;gap:25px}.hero h1{font-size:3.6rem}.source-dialog{width:75vw}.lesson-body{margin-left:0}.lesson-end{margin-left:0}main{padding:0 6%}.hero-art{border-radius:90px 90px 7px 7px}.art-caption{font-size:.55rem}}
@media(max-width:590px){html{scroll-padding-top:65px}.breadcrumb{font-size:.62rem}.breadcrumb span{padding:0 5px}.top-actions{gap:10px}.toolbar-button{font-size:.65rem}.topbar{min-height:59px;padding:7px 5%}.hero{grid-template-columns:1fr;padding-top:35px;padding-bottom:30px;gap:28px}.hero h1{font-size:3.65rem;line-height:1.02;margin:17px 0 20px}.hero-lead{font-size:.96rem;max-width:100%}.hero-sub{max-width:100%;font-size:.82rem}.hero-art{border-radius:70px 70px 6px 6px;padding:30px 18px 17px;max-width:100%;width:100%;}.hero-art svg{max-height:250px}.hero-meta{font-size:.59rem}.art-caption{font-size:.68rem}.hero-art>p{font-size:.61rem}.path-picker{padding-top:25px}.path-picker h2{font-size:1.42rem;line-height:1.3}#path-buttons{gap:6px}#path-buttons button{min-width:90px;padding:12px;flex:1 0 29%}#path-buttons small{font-size:.64rem}.path-contract{grid-template-columns:1fr;gap:10px;padding:25px 0}.path-contract h2{font-size:1.5rem}.path-contract li{font-size:.86rem}.support-note{padding:0 13px;margin-bottom:35px}.support-note summary{font-size:.77rem;gap:10px}.lesson{padding-top:30px}.lesson-head{gap:13px}.lesson-index{font-size:2rem;min-width:28px}.lesson h2{font-size:1.8rem}.lesson-question{font-size:.8rem}.content-block p,.content-block li{font-size:.94rem;line-height:1.8}.content-block h3{font-size:1.04rem}.quiz{padding:17px}.quiz h4{font-size:1.16rem}.quiz-option{font-size:.8rem;padding:11px}.model-widget{padding:17px}.stage-controls button{flex:1 0 42%;font-size:.65rem}.model-caption{min-height:95px}.model-controls{flex-wrap:wrap}.lesson-end{align-items:flex-start}.lesson-end a{font-size:.7rem}.done-button{font-size:.68rem}.source-dialog{width:100vw}.dialog-head{padding:18px}.dialog-scroll{padding:18px}.finish h2{font-size:2.05rem}.finish .primary-button,.finish .secondary-button{width:100%}.table-scroll table{min-width:510px}.source-figure{padding:8px}.source-figure figcaption{padding:3px;font-size:.7rem}footer{font-size:.65rem}dialog{max-height:94dvh;width:96vw}.dialog-foot span{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar,.hero,.path-picker,.support-note,.done-button,.lesson-end,.finish,dialog,.skip-link,footer,.reading-heading,.quiz-options,.quiz-feedback,.model-widget,.citations,.correction-inline{display:none!important}.workspace{margin:0}main{padding:0;max-width:none}.path-contract{display:block}.content-block,.lesson{break-inside:auto}.source-figure,table,.quiz{break-inside:avoid}.lesson h2{font-size:22pt}.content-block p,.content-block li{font-size:11pt}.term{color:inherit;border:0}.model-print{display:block}textarea{min-height:100px}details>*{display:block!important}.lesson{padding:20px 0}.lesson-body{margin-left:0}body{background:white}}

/* Reading position, practical entry points and progressive disclosure of sources. */
.study-entry{display:flex;align-items:stretch;flex-direction:column;gap:12px;margin-top:20px;max-width:560px}
.study-entry .secondary-button{font-size:.78rem;padding:12px 16px;border-radius:6px}
.study-entry>span{font-size:.74rem;color:var(--muted);line-height:1.5}
.study-entry .text-button{font-size:.75rem;line-height:1.5;text-align:left;padding:5px 0}
.study-entry [hidden]{display:none}
.deck-spotlight-hero{display:flex!important;align-items:center;gap:14px;background:var(--gold-light)!important;border:1.5px solid var(--gold-border)!important;border-radius:8px!important;padding:14px 18px!important;color:#382713!important;text-decoration:none!important;box-shadow:0 3px 12px rgba(177,123,49,0.10)!important;transition:all .2s ease!important}
.deck-spotlight-hero:hover{background:#f5eedb!important;border-color:var(--gold)!important;transform:translateY(-2px);box-shadow:0 6px 18px rgba(177,123,49,0.18)!important}
.deck-play-badge{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--green);color:#fff;font-size:.95rem;flex-shrink:0;box-shadow:0 2px 8px rgba(23,88,72,0.25);transition:transform .15s ease}
.deck-spotlight-hero:hover .deck-play-badge{transform:scale(1.06)}
.deck-spotlight-text{display:flex;flex-direction:column;gap:2px;flex:1;text-align:left}
.deck-spotlight-pill{font-size:.65rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.deck-spotlight-text strong{font-family:var(--serif);font-size:1.1rem;color:#20170a;line-height:1.25}
.deck-spotlight-text small{font-size:.76rem;color:#554430;line-height:1.4}
.deck-spotlight-arrow{font-size:1.15rem;color:var(--gold);font-weight:bold}
.study-entry-secondary-row{display:grid;grid-template-columns:repeat(auto-fit, minmax(130px, 1fr));gap:10px}
.study-tool-card{background:var(--white);border:1px solid var(--line);border-radius:6px;padding:10px 14px;text-decoration:none;color:var(--ink);transition:all .15s ease;display:flex;flex-direction:column;gap:3px;box-shadow:0 1px 3px rgba(37,60,54,0.02)}
.study-tool-card:hover{border-color:var(--green);background:#f7faf5;transform:translateY(-1px)}
.study-tool-card strong{font-size:.82rem;color:var(--green)}
.study-tool-card small{font-size:.72rem;color:var(--muted)}
.mobile-reading-nav{display:none}#chapter-nav a.available{color:var(--ink)}#chapter-nav a.active{background:#dfe8dd;color:var(--green);font-weight:bold;border-left:3px solid var(--green);padding-left:6px}.citations{align-items:flex-start}.more-citations{max-width:100%;margin:0}.more-citations>summary{min-height:29px;font-size:.68rem;line-height:1.5;padding:5px 7px;color:var(--green);text-decoration:underline;text-underline-offset:3px}.citation-list{display:flex;flex-wrap:wrap;gap:7px;padding:8px 0;max-width:100%}.cite{max-width:100%;overflow-wrap:anywhere}
@media(max-width:850px){.mobile-reading-nav{display:flex;align-items:center;gap:10px;position:sticky;top:59px;z-index:14;background:#f1f2eb;border-bottom:1px solid var(--line);padding:8px 5%;font-size:.73rem}.mobile-reading-nav label{flex:none;font-weight:600}.mobile-reading-nav select{min-width:0;width:100%;min-height:36px;border:1px solid #bdc9b7;border-radius:5px;background:var(--paper);color:var(--ink);padding:6px;font-size:.75rem}html{scroll-padding-top:125px}.lesson,.content-block{scroll-margin-top:0}}
@media(min-width:591px) and (max-width:850px){.mobile-reading-nav{top:70px}}
@media print{.mobile-reading-nav,.study-entry{display:none!important}}
/* Give the purpose of the course before its formal learning pathway. */
.hero{align-items:start;padding-top:36px}.hero-art{margin-top:35px;position:sticky;top:100px}.course-purpose{scroll-margin-top:140px}.course-purpose h1{font-family:var(--serif);font-size:clamp(2.4rem,3.8vw,3.6rem);line-height:1.08;margin:10px 0 18px;color:var(--ink);letter-spacing:-.02em}.course-purpose section{background:var(--white);border:1px solid var(--line);border-radius:6px;padding:12px 16px;margin:10px 0;box-shadow:0 1px 3px rgba(37,60,54,0.02)}.course-purpose section h2{font-family:var(--serif);font-size:.98rem;font-weight:600;color:var(--green);margin:0 0 4px}.course-purpose section p{font-size:.85rem;line-height:1.6;margin:0;color:var(--ink)}.course-purpose .hero-lead{max-width:100%;font-size:.98rem;line-height:1.65;margin-bottom:20px;color:var(--muted)}.purpose-care{font:italic .93rem/1.6 Georgia,serif;margin:16px 0 12px;padding:12px 16px;background:#fdf6ec;border-left:4px solid var(--gold);border-radius:0 6px 6px 0;color:#40301c}.purpose-provenance{font-size:.64rem;color:var(--muted);line-height:1.6;margin:0 0 18px}.purpose-links a{font-size:.82rem}.purpose-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}.purpose-actions .primary-button{font-size:.84rem;padding:12px 20px}.purpose-actions .text-button{font-size:.68rem;line-height:1.5}#purpose-copy-status:empty{display:none}#purpose-copy-fallback{width:100%;font-size:.75rem;padding:10px;margin-top:10px}.course-purpose section{scroll-margin-top:140px}.course-purpose~.study-entry{margin-top:16px}@media(max-width:850px){.hero-art{position:static}}@media(max-width:590px){.hero{padding-top:22px}.course-purpose h1{font-size:2.55rem}.course-purpose h2{font-size:1rem}.course-purpose section p{font-size:.91rem}.hero-art{margin-top:0}.purpose-provenance{font-size:.7rem}.purpose-links a{line-height:1.9}.purpose-actions .text-button{font-size:.75rem}.course-purpose .hero-lead{font-size:1rem}.study-entry-secondary-row{grid-template-columns:1fr}}

/* Respiratory model: one highlighted link of the chain at a time. */
.model-display svg{width:100%;height:auto;display:block;color:#bcd5c8}
.model-display text{fill:#e8eee2;font:13px Arial,Helvetica,sans-serif}
.model-display text.small{font-size:11px;fill:#c7d8c3}
.model-display .line{fill:none;stroke:#89b5a8;stroke-width:2}
.model-display .thick{stroke-width:5;stroke-linecap:round}
.model-display .soft{fill:#234e49}
.model-display .dash{stroke-dasharray:6 5;color:#e0b46a;stroke:#e0b46a}
.model-display .air{color:#9cc9e6;stroke:#9cc9e6}
.model-display .alv{fill:#234e49;stroke:#b4d4ca}
.model-display .vessel{stroke:#d98f82;stroke-width:9;stroke-linecap:round;opacity:.75}
.model-display .rbc{fill:#d98f82;stroke:#f4c2b5;stroke-width:1.5}
.model-display .o2{fill:#9cc9e6}
.model-display .co2{fill:#e0b46a}
.model-display .o2l{stroke:#9cc9e6;color:#9cc9e6}
.model-display .co2l{stroke:#e0b46a;color:#e0b46a}
.model-display .cell{fill:#234e49;stroke:#b4d4ca}
.model-display .st{opacity:.22;transition:opacity .5s}
.model-display[data-stage='0'] .st0,.model-display[data-stage='1'] .st1,.model-display[data-stage='2'] .st2,.model-display[data-stage='3'] .st3,.model-display[data-stage='4'] .st4{opacity:1}
.model-controls{flex-wrap:wrap}
.model-controls .text-button{background:none;color:#dfe9d7;font-size:.68rem;padding:0;min-height:0;text-decoration:underline}
/* Keyword descriptions on hover, focus and touch. */
.term-tip{position:fixed;z-index:60;max-width:min(340px,calc(100vw - 16px));background:#fffdf7;color:var(--ink);border:1px solid #c9d3c4;border-radius:7px;box-shadow:0 12px 35px #183a3326;padding:12px 14px;font-size:.8rem;line-height:1.55}
.term-tip strong{display:block;font-family:var(--serif);font-size:1rem;margin-bottom:4px}
.term-tip span{display:block}
.term-tip small{display:block;margin-top:8px;color:var(--muted);font-size:.68rem}
.term-tip[hidden]{display:none}
/* Every unit can be shared by its address. */
.block-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.block-head h3{margin-right:auto}
.copy-link, [data-copy-block], [data-copy-step], [data-copy-correction], [data-copy-purpose], [data-copy-link], .copy-fallback{display:none!important}
.route-notice{margin:20px 0;padding:16px 18px;border-left:3px solid var(--red);background:#f7eae3;font-size:.85rem}
.route-notice[hidden]{display:none}
.route-notice code{font-size:.8rem}
.glossary-entry.highlighted{background:#eef2e9;margin:0 -12px;padding:18px 12px;border-radius:5px}
.glossary-entry h3:focus{outline:none}
@media(max-width:590px){.block-head{flex-direction:column;gap:0}.copy-link{padding-left:0}}
@media print{.copy-link,.term-tip,.route-notice{display:none!important}}

/* The teacher's voice: one maxim per sequence, short stories for the non-trivial ideas. */
.aphorism{font:italic 1rem/1.5 Georgia,'Times New Roman',serif;color:#8a5f2a;margin:10px 0 0}
.story{border-left:3px solid #7f9fb3;background:#eef3f6;padding:12px 18px;margin:22px 0;border-radius:0 5px 5px 0}
.story h4{font-size:.86rem;margin-bottom:6px;color:#2f5f73}
.story p{font-size:.88rem!important;line-height:1.75}
.story .story-limit{font-size:.76rem!important;color:var(--muted)}
.study-entry .secondary-button+.secondary-button{margin-top:-2px}


/* Cardio model */
.model-display .model-dot{fill:#f8ede0;stroke:#193f37;stroke-width:3;transition:transform .9s ease-in-out}
.model-legend{font-size:.68rem!important;color:#c7d8c3;margin:8px 0 14px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.model-legend .key{display:inline-block;width:26px;height:0;border-top:3px solid #eaa292;vertical-align:middle}
.model-legend .key.poor{border-top:3px dashed #9cc3de}
@media(prefers-reduced-motion:reduce){.model-display .model-dot{transition:none}}
.model-display .loop{fill:none;stroke-width:4;opacity:.35;transition:opacity .4s,stroke-width .3s}
.model-display .loop.poor{stroke:#9cc3de;stroke-dasharray:8 6}
.model-display .loop.rich{stroke:#eaa292}
.model-display .chamber{stroke-width:2;opacity:.45;transition:opacity .4s}
.model-display .chamber.poor{fill:#2f5f73;stroke:#9cc3de}
.model-display .chamber.rich{fill:#7a3e36;stroke:#eaa292}
.model-display .organ{fill:#234e49;stroke:#89b5a8;stroke-width:2;opacity:.4;transition:opacity .4s}
.model-display .active{opacity:1}
.model-display .loop.active{stroke-width:6}
.model-display .organ-label{letter-spacing:.14em}
.model-display .organ-label,.model-display .chamber-label,.model-display .side-label{text-anchor:middle}
.model-display .side-label,.model-display .loop-label{font-weight:400;font-size:11px}
.model-display .loop-label{text-anchor:start}
.model-display .loop-label.middle{text-anchor:middle}


/* Tissus model */
.model-display .cellbox{fill:#dfe9e0;stroke:#b4d4ca;stroke-width:1.2}
.model-display .nucleus{fill:#5f8a7a}
.model-display .basal{stroke:#e0b46a;stroke-width:3}
.model-display .conj{fill:#2b4a44;stroke:#89b5a8}
.model-display .fiber{stroke:#c9b48a;stroke-width:1.6}
.model-display .fibro{fill:#c9b48a}
.model-display .musc{fill:#3a4a3a;stroke:#89b5a8}
.model-display .myo{fill:#d98f82;stroke:#f4c2b5;stroke-width:1.2}
.model-display .nerve{stroke:#f0d58a;stroke-width:2}
.model-display .neuron{fill:#f0d58a}
.model-display .frame{fill:none;stroke:#e8eee2;stroke-width:1.2;stroke-dasharray:4 4}


/* Concepts loop model */
.model-display .node{fill:#234e49;stroke:#b4d4ca;stroke-width:1.5}
.model-display .centre{fill:#2e5f56}
.model-display .flow{stroke:#e0b46a;color:#e0b46a;stroke-width:2.5}
.model-display .back{stroke:#9cc9e6;color:#9cc9e6;stroke-width:2.5;stroke-dasharray:6 4}
.model-display .thermo{stroke:#d98f82;color:#d98f82;stroke-width:2.5}


/* Hemostasis model */
.model-display .platelet{fill:#f0d58a;stroke:#ba945f;stroke-width:1.5}
.model-display .fibrin{stroke:#d98f82;stroke-width:2;stroke-dasharray:5 3}
.model-display .clot{fill:#7a3e36;stroke:#d98f82}


/* Cross-course topbar navigation */
.topbar .hub-link{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:var(--gold-soft);text-decoration:none;padding:5px 10px;border-radius:4px;border:1px solid #c9b48a33;transition:background .2s}
.topbar .hub-link:hover{background:#ecd4aa1a;text-decoration:none}

/* ==========================================================================
   Diagnostic & Remédiation Active QCM
   ========================================================================== */
.diagnostic-banner{background:#fffdf5;border:1.5px solid #e9d5a1;border-radius:8px;padding:16px 20px;margin:18px 0 32px;box-shadow:0 4px 14px rgba(180,83,9,0.06)}
.diagnostic-banner.has-misconception{background:#fdf6f5;border-color:#f1b8af;box-shadow:0 4px 14px rgba(185,28,28,0.07)}
.diagnostic-banner-inner{display:flex;flex-direction:column;gap:12px}
.diagnostic-banner-main{display:flex;gap:14px;align-items:flex-start}
.diagnostic-banner-icon{font-size:1.6rem;line-height:1}
.diagnostic-banner-title{font-family:var(--serif,Georgia,serif);font-size:1.15rem;font-weight:600;color:#92400e;margin:0 0 4px}
.diagnostic-banner.has-misconception .diagnostic-banner-title{color:#991b1b}
.diagnostic-banner-sub{font-size:.84rem;line-height:1.55;color:#4b5563;margin:0}
.diagnostic-banner-links{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px solid rgba(217,119,6,0.15)}
.diagnostic-jump-chip{display:inline-flex;align-items:center;gap:6px;background:#ffffff;border:1px solid #d97706;border-radius:20px;padding:4px 12px;font-size:.76rem;font-weight:600;color:#92400e;text-decoration:none;transition:all .15s ease}
.diagnostic-jump-chip:hover{background:#fef3c7;transform:translateY(-1px)}
.diagnostic-jump-chip.misconception{border-color:#dc2626;color:#991b1b}
.diagnostic-jump-chip.misconception:hover{background:#fee2e2}

/* Mise en exergue du bloc en remédiation */
.content-block.remedial-target{border-left:4px solid #d97706!important;background:linear-gradient(90deg,rgba(254,243,199,0.22) 0%,transparent 60px);padding-left:18px;border-radius:4px;transition:all .3s ease}
.content-block.remedial-target.misconception{border-left-color:#dc2626!important;background:linear-gradient(90deg,rgba(254,226,226,0.22) 0%,transparent 60px)}

/* Changement de fonte sur le texte d'explication clé */
.content-block.remedial-target .remedial-lead-text{font-family:Georgia,'Times New Roman',serif!important;font-size:1.05rem!important;line-height:1.74!important;color:#1a2e26!important;letter-spacing:-.01em;background:rgba(254,243,199,0.18);padding:8px 12px;border-radius:4px;border-left:3px solid rgba(217,119,6,0.4)}
.content-block.remedial-target.misconception .remedial-lead-text{border-left-color:rgba(220,38,38,0.4);background:rgba(254,226,226,0.18)}

/* Surlignage feutre sur les notions clés */
mark.remedial-highlight,button.term.remedial-highlight{background:linear-gradient(104deg,rgba(254,240,138,0.95) 0%,rgba(253,224,71,0.9) 100%)!important;color:#1e293b!important;padding:1px 5px!important;border-radius:3px!important;font-weight:700!important;box-decoration-break:clone;-webkit-box-decoration-break:clone;box-shadow:0 1px 3px rgba(180,83,9,0.15);border-bottom:2px solid #d97706}
.content-block.remedial-target.misconception mark.remedial-highlight,.content-block.remedial-target.misconception button.term.remedial-highlight{background:linear-gradient(104deg,#fed7aa 0%,#fde047 100%)!important;border-bottom-color:#dc2626}

/* La Note Dynamique (Post-it / Callout d'attention) */
.remedial-note{background:#fffdf8;border:1px solid #ebd9b5;border-radius:8px;padding:16px 20px;margin:14px 0 20px;box-shadow:0 3px 12px rgba(180,83,9,0.08)}
.remedial-note.misconception{background:#fdf7f6;border-color:#f1c2bb;box-shadow:0 3px 12px rgba(220,38,38,0.08)}
.remedial-note-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.remedial-note-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.remedial-badge-title{font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:#92400e}
.remedial-badge-status{font-size:.68rem;padding:2px 8px;border-radius:12px;font-weight:600}
.remedial-badge-status.misconception{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.remedial-badge-status.review{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.remedial-note-close{background:none;border:1px solid #d1d5db;color:#6b7280;font-size:.72rem;font-weight:600;padding:3px 8px;border-radius:4px;cursor:pointer;transition:all .15s ease}
.remedial-note-close:hover{background:#e5e7eb;color:#111827}

/* Callout franc & percutant */
.remedial-candid-callout{background:#fef3c7;border-left:3px solid #d97706;border-radius:0 4px 4px 0;padding:8px 12px;font-size:.85rem;line-height:1.5;color:#78350f;margin-bottom:12px}
.remedial-note.misconception .remedial-candid-callout{background:#fee2e2;border-left-color:#dc2626;color:#7f1d1d}

.remedial-note-content{font-size:.84rem;line-height:1.6;color:var(--ink)}
.remedial-stem{margin:0 0 6px;font-family:var(--serif,Georgia,serif);font-size:.96rem}
.remedial-chosen{margin:0 0 8px;font-size:.82rem;color:#6b7280}
.remedial-bad-answer{color:#b91c1c;text-decoration:line-through;font-weight:600}
.remedial-key-rule{margin:8px 0 0;font-style:italic;font-size:.88rem;color:#1e3a2b;background:rgba(23,88,72,0.05);padding:6px 10px;border-radius:4px}

.remedial-note-footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px;padding-top:10px;border-top:1px solid rgba(217,119,6,0.15)}
.remedial-btn-resolve{background:#175848;color:#ffffff;border:none;font-size:.78rem;font-weight:600;padding:7px 14px;border-radius:4px;cursor:pointer;transition:all .15s ease}
.remedial-btn-resolve:hover{background:#103f34}
.remedial-btn-retest{background:#f7f9f4;color:#175848;border:1px solid #bdc9b7;font-size:.78rem;font-weight:600;padding:7px 14px;border-radius:4px;cursor:pointer;transition:all .15s ease}
.remedial-btn-retest:hover{background:#e9eee4}

/* Retest interactif in-situ */
.remedial-inline-retest{margin-top:14px;padding:14px;background:#f8faf6;border:1px solid #d2ded5;border-radius:6px}
.retest-prompt{margin:0 0 10px;font-size:.86rem;color:var(--ink)}
.retest-options{display:flex;flex-direction:column;gap:6px}
.retest-opt-btn{display:flex;align-items:flex-start;gap:10px;text-align:left;background:#ffffff;border:1px solid #cfd8d2;border-radius:4px;padding:8px 12px;font-size:.82rem;cursor:pointer;transition:all .15s ease}
.retest-opt-btn:hover:not(:disabled){border-color:var(--green);background:#f3f7f2}
.retest-opt-btn.is-correct{border-color:#15803d;background:#f0fdf4;color:#14532d;font-weight:600}
.retest-opt-btn.is-wrong{border-color:#b91c1c;background:#fef2f2;color:#7f1d1d}
.retest-status{margin-top:10px;font-size:.82rem}
.retest-success{color:#15803d;font-weight:500}
.retest-failure{color:#b91c1c;font-weight:500}

/* Note validée / repliée */
.remedial-resolved-pill{display:flex;justify-content:space-between;align-items:center;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;padding:6px 12px;margin:10px 0;font-size:.74rem;color:#166534}

/* Badge dans le sommaire latéral */
.nav-remedial-pill{display:inline-block;font-size:.62rem;font-weight:700;color:#b45309;background:#fef3c7;border:1px solid #fde68a;border-radius:10px;padding:1px 6px;margin-left:6px;vertical-align:1px}

/* Animation d'arrivée sur le bloc */
@keyframes remedialPulse{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(217,119,6,0.4)}50%{transform:scale(1.01);box-shadow:0 0 0 10px rgba(217,119,6,0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(217,119,6,0)}}
.remedial-pulse{animation:remedialPulse 1.2s ease}

/* ==========================================================================
   iPad & Touch Ergonomics (Apple HIG Compliance)
   ========================================================================== */
/* Prévention du zoom forcé iOS Safari sur les champs de saisie */
input, select, textarea, #glossary-search, .mobile-reading-nav select {
  font-size: 16px !important;
  touch-action: manipulation;
}

/* Safe Area Insets pour barre de statut, Dynamic Island et barre d'accueil iPad */
.topbar {
  padding-top: max(12px, env(safe-area-inset-top, 0px)) !important;
  padding-right: max(5.5%, env(safe-area-inset-right, 0px)) !important;
  padding-left: max(5.5%, env(safe-area-inset-left, 0px)) !important;
}

.sidebar {
  padding-top: max(34px, env(safe-area-inset-top, 0px)) !important;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
  padding-left: max(25px, env(safe-area-inset-left, 0px)) !important;
}

.mobile-reading-nav {
  padding-left: max(5%, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(5%, env(safe-area-inset-right, 0px)) !important;
}

footer {
  padding-bottom: max(40px, calc(30px + env(safe-area-inset-bottom, 0px))) !important;
  padding-left: max(5.5%, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(5.5%, env(safe-area-inset-right, 0px)) !important;
}

/* Cibles tactiles normalisées HIG (>= 44x44 pt) */
.toolbar-button {
  min-height: 44px !important;
  padding: 8px 12px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.icon-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cite {
  min-height: 38px !important;
  padding: 6px 12px !important;
  font-size: 0.72rem !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


.quiz-option {
  min-height: 50px !important;
  padding: 14px 16px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.done-button {
  min-height: 44px !important;
  padding: 12px 18px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.remedial-btn-resolve,
.remedial-btn-retest,
.retest-opt-btn {
  min-height: 44px !important;
  padding: 10px 16px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.diagnostic-jump-chip {
  min-height: 38px !important;
  padding: 8px 14px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.remedial-note-close {
  min-height: 40px !important;
  padding: 8px 12px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Défilement inertiel & confinement d'overscroll pour iPadOS Safari */
dialog,
.dialog-scroll,
#glossary-list,
.table-scroll,
#chapter-nav {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Nomenclature 2026 dans la barre latérale et l'en-tête */
.side-sub-nomen {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--sans);
  line-height: 1.25;
}

.hero-meta .meta-ref2026 {
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}



/* Consultation is a neutral trace; it does not indicate successful learning. */
.remedial-resolved-pill{background:#f5f4ed;border-color:#d4d3c7;color:var(--ink);gap:12px;flex-wrap:wrap}
.remedial-note-content[hidden]{display:none!important}
.remedial-inline-retest fieldset{border:0;padding:0;margin:0 0 14px;min-width:0}
.remedial-inline-retest legend{font-weight:600;font-size:.9rem;margin-bottom:10px}
.retest-opt-btn input{flex:none;margin-top:4px}
.retest-status li{margin:8px 0}
#question-prerequisites a{overflow-wrap:anywhere}

.worked-context-link{padding:14px 16px;margin:20px 0;border-left:3px solid var(--green);background:#f0f3e9;font-size:.88rem}.worked-context-link p{margin:0 0 6px}.worked-context-link a{overflow-wrap:anywhere}

/* Keep every study action reachable on a narrow screen. */
@media(max-width:680px){.topbar{align-items:flex-start}.top-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0}}
