/* Familiar controls and a deliberately optional learning layer. */
.student-tools{position:fixed;top:89px;right:4vw;z-index:70;display:flex;align-items:center;gap:9px;font-family:Inter,Arial,sans-serif;isolation:isolate}
.student-tools :is(button,a),.student-dialog :is(button,a),.student-inline-explain{box-sizing:border-box;min-height:46px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.student-toggle,.student-stage-button{border:1px solid #c4d3ef88;border-radius:999px;background:#111d30ed;color:#f8faff;box-shadow:inset 0 1px 0 #fff2,0 7px 24px #02061138;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);font:600 12px/1.3 Inter,Arial,sans-serif}
.student-toggle{display:flex;align-items:center;gap:9px;padding:7px 13px}
.student-toggle-name{white-space:nowrap}
.student-mode-label{color:#bdcce1;font-size:10px;min-width:18px}
.student-switch-track{position:relative;flex:0 0 32px;width:32px;height:20px;border-radius:20px;background:#72809a60;border:1px solid #afc0db88;box-sizing:border-box}
.student-switch-thumb{display:block;position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#dde6f4;transition:transform .18s ease,background .18s ease}
.student-toggle[aria-checked="true"] .student-switch-track{background:#5585c7;border-color:#aad1ff}
.student-toggle[aria-checked="true"] .student-switch-thumb{transform:translateX(12px);background:#fff}
.student-stage-button{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 9px;border-color:#cde2ffbb;background:linear-gradient(135deg,#254564ec,#343961ed);text-align:left;min-width:178px}
.student-stage-button[hidden],.student-inline-explain[hidden]{display:none!important}
.student-book-icon{display:flex;align-items:center;justify-content:center;width:29px;height:29px;flex:0 0 29px;border:1px solid #c8def17a;border-radius:50%;font:600 17px/1 Georgia,serif;background:#ffffff12;color:#edf7ff}
.student-stage-copy{display:flex;flex-direction:column;gap:2px}
.student-stage-copy small{font-size:9px;font-weight:400;color:#cad8ed;letter-spacing:.025em}
.student-toggle:hover,.student-stage-button:hover{background:#2b4466;border-color:#fff}
.student-tools :focus-visible,.student-dialog :focus-visible,.student-inline-explain:focus-visible{outline:3px solid #8db9fa;outline-offset:4px}
.student-introduction{position:absolute;right:0;top:calc(100% + 11px);width:min(395px,88vw);box-sizing:border-box;padding:20px;border:1px solid #c3d7ee9c;border-radius:21px;background:#142237eb;color:#eff6ff;box-shadow:0 14px 50px #0004,inset 0 1px 0 #fff2;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.student-introduction>strong{font-size:14px;line-height:1.5;display:block}
.student-introduction>p{font-size:12px;line-height:1.6;margin:9px 0 16px;color:#d1e0f2}
.student-introduction-actions{display:flex;gap:8px;flex-wrap:wrap}
.student-introduction-actions button{flex:1;border:1px solid #b1c8e377;border-radius:13px;padding:11px;font:600 11px/1.4 Inter,Arial,sans-serif;color:#f5f9ff;background:#ffffff0d;min-width:115px}
.student-introduction-actions button:first-child{background:#d7e9ff;color:#182944;border-color:#d7e9ff}
.student-introduction-actions button:hover{filter:brightness(1.12)}
.osmania-chapter .student-tools{top:94px}
.student-inline-explain{display:inline-flex;align-items:center;justify-content:center;border:1px solid #52708370;border-radius:999px;padding:10px 16px;margin-top:17px;background:#f9fcffe0;color:#263946;font:600 12px/1.4 Inter,Arial,sans-serif;box-shadow:0 3px 12px #1b324510}
.student-inline-explain:hover{background:#e7f0fc;border-color:#4b79a6}

.student-dialog{--student-ink:#18273a;position:fixed;inset:0;width:80vw;height:80vh;height:80dvh;max-width:80vw;max-height:80dvh;box-sizing:border-box;margin:auto;padding:0;border:1px solid #ffffffd9;border-radius:29px;overflow:hidden;background:linear-gradient(145deg,#f8fbffe0,#edf3ffe3 65%,#f8f5ffe3);color:var(--student-ink);font-family:Inter,Arial,sans-serif;box-shadow:0 28px 100px #0005,inset 0 1px 0 #fff;backdrop-filter:blur(30px) saturate(1.15);-webkit-backdrop-filter:blur(30px) saturate(1.15)}
.student-dialog:not([open]){display:none!important}
.student-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.student-dialog::backdrop{background:#0b172549;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.student-dialog-fallback{z-index:1000;box-shadow:0 0 0 100vmax #07142372,0 28px 100px #0005}
.student-dialog-header,.student-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 29px;border-bottom:1px solid #899bb32e;background:#ffffff38}
.student-eyebrow{font:600 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.12em;color:#3e5a80;margin:0 0 5px}
.student-dialog-count{font:500 11px/1.4 Inter,Arial,sans-serif;color:#5b6a7d}
.student-dialog-close{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #8c9aad7a;border-radius:999px;background:#ffffffba;color:#243955;font:600 12px/1.3 Inter,Arial,sans-serif;padding:9px 15px;white-space:nowrap}
.student-dialog-close>span:first-child{font:400 25px/1 Arial,sans-serif}
.student-dialog-close:hover,.student-dialog-resume:hover{background:#ddeafc;border-color:#6d8db9}
.student-dialog-content{overflow:auto;overscroll-behavior:contain;padding:30px clamp(24px,4vw,66px) 36px;scrollbar-width:thin;scrollbar-color:#8cabc9 #e9eff650}
.student-explanation-title{font:600 clamp(26px,3.2vw,44px)/1.13 Inter,Arial,sans-serif;letter-spacing:-.035em;color:#152a42;margin:0 0 17px;max-width:24ch;text-wrap:balance}
.student-explanation-lead{font:400 clamp(14px,1.4vw,18px)/1.7 Inter,Arial,sans-serif;margin:0 0 26px;color:#354e68;max-width:72ch}
.student-visual{position:relative;overflow:hidden;margin:0 0 28px;border-radius:18px;border:1px solid #90a6bf47;box-shadow:0 10px 35px #27466413;background:#dee9f3}
.student-visual img{display:block;width:100%;height:auto;max-height:380px;object-fit:contain;background:#142638}
.student-visual figcaption{padding:12px 17px;font-size:11px;line-height:1.65;color:#52617b;background:#f7faffbb}
.student-story-steps{padding:0;margin:0 0 28px;list-style:none;display:grid;gap:15px}
.student-story-steps>li{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:15px;padding:19px 21px;border:1px solid #acbdd456;border-radius:17px;background:#ffffff6b;box-shadow:inset 0 1px 0 #fff9}
.student-step-number{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;color:#385b88;background:#c9ddf054;font:600 11px/1 Inter,Arial,sans-serif;border:1px solid #9cb5d243}
.student-story-steps h3{font:600 15px/1.4 Inter,Arial,sans-serif;color:#243d5b;margin:1px 0 7px}
.student-story-steps p{font:400 13px/1.75 Inter,Arial,sans-serif;color:#40566e;margin:0;max-width:75ch}
.student-words{border-top:1px solid #92a5bd42;padding-top:24px;margin-bottom:23px}
.student-words>h3{font:600 13px/1.4 Inter,Arial,sans-serif;color:#3c5473;margin:0 0 13px}
.student-words dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 23px;margin:0}
.student-words dt{font:600 12px/1.5 Inter,Arial,sans-serif;color:#29445f;margin-bottom:4px}
.student-words dd{font:400 12px/1.65 Inter,Arial,sans-serif;color:#50627a;margin:0}
.student-takeaway,.student-caution{padding:18px 22px;border-radius:16px;margin:15px 0;background:#deeaf7a8;border:1px solid #90acc645}
.student-caution{background:#f3eeeba8;border-color:#b4a49743}
.student-takeaway strong,.student-caution strong{font:600 12px/1.5 Inter,Arial,sans-serif;color:#3a5576}
.student-caution strong{color:#755742}
.student-takeaway p,.student-caution p{font:400 13px/1.7 Inter,Arial,sans-serif;color:#3b536e;margin:7px 0 0;max-width:80ch}
.student-source-link{display:inline-flex;align-items:center;max-width:100%;border:1px solid #849ab963;border-radius:999px;margin-top:10px;padding:10px 17px;font:600 12px/1.5 Inter,Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;color:#34517b;background:#fff8;overflow-wrap:anywhere}
.student-source-link:hover{background:#e0ebfa}
.student-dialog-footer{border-top:1px solid #899bb32e;border-bottom:0;padding-block:14px;background:#ffffff65}
.student-dialog-footer>span{font:400 11px/1.5 Inter,Arial,sans-serif;color:#61728b}
.student-dialog-resume{font:600 12px/1.4 Inter,Arial,sans-serif;color:#233d61;background:#f7faffcc;border:1px solid #8c9aad7a;border-radius:999px;padding:10px 19px;white-space:nowrap}
.student-explanation-open .student-tools{visibility:hidden}

@media(max-width:1180px){
 .student-tools{top:147px;left:4vw;right:4vw;justify-content:space-between;gap:10px}
 .student-introduction{left:0;right:auto}
 .osmania-chapter .student-tools{top:88px;left:auto;right:4vw}
 .osmania-chapter .student-introduction{left:auto;right:0}
}
@media(max-width:760px){
 .student-tools{top:136px;left:5vw;right:5vw;gap:8px}
 .student-toggle{padding:7px 10px;gap:7px;font-size:10px;min-height:46px}
 .student-toggle-name{white-space:normal;max-width:88px;line-height:1.3}
 .student-mode-label{font-size:9px;min-width:13px}
 .student-stage-button{min-width:151px;padding:6px 10px 6px 8px;font-size:10px;gap:7px;min-height:46px}
 .student-book-icon{width:25px;height:25px;flex-basis:25px;font-size:15px}
 .student-stage-copy small{font-size:8px}
 .student-introduction{width:100%;padding:16px;border-radius:17px}
 .student-introduction>strong{font-size:13px}
 .student-introduction>p{font-size:11px;line-height:1.6;margin-bottom:12px}
 .student-introduction-actions button{font-size:10px}
 .osmania-chapter .student-tools{top:131px;left:5vw;right:5vw}
 .osmania-chapter .student-introduction{left:0;right:auto}
 .student-dialog{width:94vw;height:86vh;height:86dvh;max-height:none;border-radius:22px}
 .student-dialog-header,.student-dialog-footer{padding:16px 17px;gap:12px}
 .student-eyebrow{font-size:8px;letter-spacing:.09em}
 .student-dialog-count{font-size:10px}
 .student-dialog-close{font-size:11px;padding:8px 12px;gap:7px}
 .student-dialog-content{padding:25px 20px 28px}
 .student-explanation-title{font-size:27px}
 .student-explanation-lead{font-size:14px;line-height:1.65;margin-bottom:22px}
 .student-visual{border-radius:13px;margin-bottom:22px}
 .student-visual img{max-height:260px}
 .student-visual figcaption{font-size:10px;padding:10px 12px}
 .student-story-steps>li{padding:16px 14px;grid-template-columns:30px minmax(0,1fr);gap:12px;border-radius:14px}
 .student-step-number{width:28px;height:28px;font-size:10px}
 .student-story-steps h3{font-size:13px}
 .student-story-steps p{font-size:12px;line-height:1.7}
 .student-words dl{grid-template-columns:1fr;gap:15px}
 .student-takeaway,.student-caution{padding:16px}
 .student-takeaway p,.student-caution p{font-size:12px}
 .student-source-link{font-size:11px;border-radius:14px}
 .student-dialog-footer>span{max-width:40%;font-size:10px}
 .student-dialog-resume{font-size:11px;padding:9px 13px}
}
@media(max-width:359px){.student-tools{gap:5px}.student-toggle{gap:5px;padding-inline:8px}.student-toggle-name{max-width:75px;font-size:9px}.student-switch-track{width:28px;flex-basis:28px}.student-toggle[aria-checked="true"] .student-switch-thumb{transform:translateX(8px)}.student-stage-button{min-width:140px;font-size:9px;padding-inline:7px}.student-book-icon{display:none}}
@media(max-height:530px) and (min-width:761px){.student-tools{top:135px}.osmania-chapter .student-tools{top:72px}.student-dialog{height:88vh;height:88dvh;width:88vw;border-radius:20px}.student-dialog-header{padding-block:11px}.student-dialog-footer{padding-block:9px}.student-dialog-content{padding-block:21px}.student-introduction{padding:13px}.student-introduction>p{margin-block:5px 8px}}
@media(prefers-reduced-motion:reduce){.student-switch-thumb{transition:none}.student-dialog::backdrop{backdrop-filter:none}.student-tools,.student-dialog,.student-introduction{scroll-behavior:auto}}
@media(forced-colors:active){.student-tools :is(button,a),.student-dialog :is(button,a),.student-inline-explain{forced-color-adjust:auto;border:1px solid ButtonText}.student-switch-track{background:Canvas;border-color:ButtonText}.student-switch-thumb{background:ButtonText}.student-toggle[aria-checked="true"] .student-switch-track{background:Highlight}.student-dialog{background:Canvas;color:CanvasText;backdrop-filter:none}.student-dialog :is(p,h2,h3,dt,dd,strong,span){color:CanvasText}.student-dialog::backdrop{background:#0008}}
@media(max-width:760px){.student-dialog{max-width:94vw}}
