hydro-reader{display:block;min-width:0;color:#102018;font-family:var(--font);font-size:1rem;line-height:1.65}
.curriculum-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 30px;list-style-position:inside;padding:0;margin:35px 0}.curriculum-grid li{border-top:1px solid #31583d66;padding:20px 0;font-weight:650}.curriculum-grid span{display:block;font-size:.85rem;font-weight:400;margin:7px 0 0 24px}.demo-layout guide-player{min-width:0}.document-main>guide-player{max-width:580px;margin:35px auto}.document-main .course-slide h2{margin-top:0}.document-main .reader-dialog h2{margin-top:8px}
.card-index{flex:none;white-space:nowrap;min-width:1.3em}
.curriculum-grid{list-style-type:devanagari}
@media(max-width:760px){.curriculum-grid{grid-template-columns:1fr}.curriculum-grid li{padding:16px 0}}
.reader{display:flex;flex-direction:column;width:100%;height:min(850px,calc(100dvh - 110px));min-height:360px;background:#729b76;border:1px solid #31583d;border-radius:22px;overflow:hidden;box-shadow:0 16px 55px #1020181a;isolation:isolate}
.reader button,.reader-dialog button{font:inherit;color:#102018;cursor:pointer;border:1px solid #31583d;background:#85a57f;border-radius:10px;min-height:44px;padding:8px 12px;line-height:1.45}
.reader button:hover,.reader-dialog button:hover{background:#96b391}.reader button:disabled,.reader-dialog button:disabled{opacity:.45;cursor:default}
.reader button:focus-visible,.reader-dialog button:focus-visible,.reader input:focus-visible,.reader a:focus-visible{outline:3px solid #102018;outline-offset:3px}
.reader-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;gap:8px;border-bottom:1px solid #31583d;background:#729b76}
.reader .reader-action,.reader-dialog .reader-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;border-color:transparent}
.reader-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.reader-action[aria-pressed=true] svg{fill:#102018}
.reader-counter{font-size:.9rem;white-space:nowrap;font-variant-numeric:tabular-nums}.reader-module{padding:9px 18px 11px;display:grid;grid-template-columns:1fr auto;gap:5px 10px;font-size:.82rem;font-weight:600;border-bottom:1px solid #31583d55}
.reader-module-name{min-width:0}.reader-module-progress{white-space:nowrap}.reader progress{height:4px;width:100%;grid-column:1/-1;accent-color:#14301e;border:0;border-radius:4px;overflow:hidden;background:#567d5d}.reader progress::-webkit-progress-bar{background:#567d5d}.reader progress::-webkit-progress-value{background:#14301e}
.reader-stage{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom;scrollbar-width:thin;scrollbar-color:#31583d #729b76}
.course-slide{padding:25px 26px 24px;min-height:100%;overflow-wrap:anywhere}.slide-kicker{font-size:.8rem;font-weight:650;margin:0 0 10px;letter-spacing:.025em}.course-slide h2{font-size:clamp(1.65rem,4vw,2.2rem);line-height:1.35;letter-spacing:-.045em;margin:0 0 20px;font-weight:650}.course-slide h3{font-size:1.12rem;line-height:1.5;margin:0 0 5px;font-weight:650}.slide-body>p{margin:0 0 17px;line-height:1.85}.slide-body{font-size:1rem;line-height:1.85}
.slide-figure{margin:0 0 20px;display:block}.slide-figure>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:12px;max-height:370px}.type-cover>.slide-figure>img{aspect-ratio:5/4;max-height:430px}.type-cover h2{font-size:clamp(1.9rem,5vw,2.6rem);line-height:1.35}.slide-figure.is-diagram>img{object-fit:contain;aspect-ratio:auto;max-height:none;background:#85a57f;border:1px solid #31583d55}
.slide-figure figcaption{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px;font-size:.75rem;line-height:1.6}.slide-figure figcaption button{font-size:.82rem;flex:none;background:transparent;border-color:transparent;text-decoration:underline;padding:4px 2px;min-height:38px}.slide-bullets{padding-left:22px;margin:16px 0}.slide-bullets li{padding-left:3px;margin:9px 0}
.slide-note{border-left:3px solid #31583d;padding:13px 16px;background:#7ea480;border-radius:0 8px 8px 0;font-size:.9rem;line-height:1.85;margin:20px 0 4px}.slide-sources{margin-top:22px;font-size:.84rem;border-top:1px solid #31583d55;padding-top:12px}.slide-sources summary{cursor:pointer;min-height:36px;font-weight:600}.slide-sources ul{padding-left:22px}.slide-sources a{color:#102018;text-decoration:underline}.slide-sources li{margin:12px 0}.slide-sources p{font-size:.8rem}
.comparison-cards{display:grid;gap:13px;margin:20px 0}.comparison-cards>section{display:flex;align-items:flex-start;gap:16px;padding:18px;background:#85a57f;border:1px solid #31583d55;border-radius:13px}.comparison-cards p{margin:0;font-size:.95rem;line-height:1.85}.card-index{font-size:1.7rem;font-weight:500;line-height:1.4}.material-list{display:grid;gap:0;margin:20px 0}.material-list>div{display:flex;gap:14px;border-bottom:1px solid #31583d66;padding:18px 0}.material-number{border:1px solid #31583d;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;flex:none;font-size:.85rem}.material-list dt{font-weight:700;margin-bottom:6px}.material-list dd{margin:0;font-size:.95rem;line-height:1.85}.slide-checklist{display:grid;gap:12px;margin:20px 0}.slide-checklist label{display:flex;align-items:flex-start;gap:13px;border:1px solid #31583d66;border-radius:12px;padding:16px;background:#7ea480;cursor:pointer;font-size:.96rem}.slide-checklist input{width:23px;height:23px;flex:none;margin:2px 0 0;accent-color:#14301e}.slide-checklist label:has(:checked){background:#89ac88}.slide-checklist label:has(:checked) span{text-decoration:line-through;text-decoration-thickness:1px}
.reader-navigation{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-top:1px solid #31583d66;background:#729b76;gap:6px}.reader-navigation button{min-width:85px;background:#14301e;color:#e1ecd8;border-color:#14301e}.reader-navigation button:hover{background:#24482d}.reader-hint{font-size:.8rem;text-align:center}.reader-storage{font-size:.75rem;text-align:center;line-height:1.6;margin:10px 8px;color:#102018}
.reader-dialog{font-family:var(--font);color:#102018;background:#729b76;border:1px solid #31583d;border-radius:18px;padding:20px;width:min(680px,calc(100vw - 24px));max-width:none;max-height:88dvh;overflow:auto;box-sizing:border-box;line-height:1.8}.reader-dialog::backdrop{background:#102018b3}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:1.5rem;line-height:1.5;margin:8px 0 20px}.dialog-heading button{flex:none;font-size:.9rem}.index-tabs{display:flex;gap:10px;padding-bottom:15px;border-bottom:1px solid #31583d}.index-tabs button[aria-pressed=true]{background:#14301e;color:#e1ecd8}.index-module h3{font-size:1.05rem;margin:25px 0 10px}.index-module ol{padding:0;margin:0;list-style:none}.index-module li{margin:6px 0}.index-module button{display:grid;grid-template-columns:24px 1fr 18px;gap:10px;width:100%;text-align:left;background:transparent;font-size:.92rem}.index-module button[aria-current=page]{border-width:2px;background:#85a57f}.index-module button span:first-child{font-size:.8rem}.empty-favorites{padding:20px 0}.zoom-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}.zoom-level{min-width:65px;text-align:center}.zoom-viewport{overflow:auto;max-height:57dvh;background:#85a57f;border-radius:10px;touch-action:pan-x pan-y pinch-zoom}.zoom-viewport img{display:block;width:100%;max-width:none;height:auto}.zoom-caption{font-size:.9rem;margin:12px 0 0}
.course-preview{margin:0;background:#729b76}.course-top{max-width:1100px;margin:0 auto;padding:17px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.course-top .brand{font-size:1.2rem}.course-top a{font-size:.9rem}.course-shell{max-width:1080px;margin:8px auto 20px;padding:0 24px;display:grid;grid-template-columns:1fr minmax(0,530px);gap:65px;align-items:start}.course-intro{position:sticky;top:60px;padding-top:50px}.course-intro h1{font-size:3.2rem;line-height:1.3;font-weight:550;letter-spacing:-.045em;margin:18px 0 25px}.course-intro p{line-height:1.9}.course-edition{font-size:.83rem;padding:15px 0;border-block:1px solid #31583d66;margin:25px 0}.preview-banner{font-size:.8rem;line-height:1.65;border:1px solid #31583d55;padding:12px 14px;border-radius:10px}.course-mobile-note{display:none}
@media(max-width:760px){.course-shell{display:block;max-width:600px;padding:0 10px;margin:0 auto}.course-intro{display:none}.course-top{padding:11px 16px}.course-top .brand{font-size:1rem}.course-top a{font-size:.8rem}.course-mobile-note{display:block;font-size:.74rem;text-align:center;margin:0 8px 8px;line-height:1.6}.course-preview .reader{height:calc(100dvh - 132px);min-height:350px;border-radius:15px}.course-slide{padding:20px 20px 25px}.course-slide h2{font-size:1.75rem}.type-cover h2{font-size:2rem}.reader-toolbar{padding:7px 9px}.reader-module{padding:8px 14px}.reader-navigation{padding:9px 12px}.reader-action span{font-size:.85rem}.reader-counter{font-size:.82rem}}
@media(max-width:360px){.course-slide{padding:18px 16px 22px}.reader-module{font-size:.73rem}.reader-hint{font-size:.7rem}.reader-navigation button{min-width:70px;padding:8px}.reader-dialog{padding:15px}.dialog-heading h2{font-size:1.2rem}.reader-toolbar{gap:2px}.reader .reader-action{padding:7px}.slide-figure figcaption{font-size:.7rem}.comparison-cards>section{padding:14px;gap:10px}}
@media(prefers-reduced-motion:reduce){.reader *,.reader-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Fit the course to the available mobile viewport; storage help follows below. */
@media(max-width:760px){
 .course-preview{height:100dvh;display:flex;flex-direction:column}
 .course-preview .course-top,.course-preview .course-mobile-note{flex-shrink:0}
 .course-preview .course-top{width:100%}
 .course-preview .course-shell{flex:1;min-height:358px;width:100%;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .course-preview .course-shell>hydro-reader{height:100%}
 .course-preview .reader{height:100%;min-height:350px}
 .course-preview .reader-toolbar,.course-preview .reader-module,.course-preview .reader-navigation{flex-shrink:0}
}
