@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#173b30;--muted:#69766b;--paper:#f6f7f1;--line:#dce2d7;--orange:#ed9a55;--green:#ddecba}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px 'DM Sans',Arial,sans-serif}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}header{min-height:96px;padding:20px 5.5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:25px}.brand{display:flex;gap:12px;align-items:center;font-family:Manrope,Arial,sans-serif;font-weight:800;letter-spacing:2px;font-size:19px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:4px}.brandmark{width:43px;height:43px;background:var(--ink);color:white;border-radius:12px;display:grid;place-content:center;position:relative;font-size:25px;letter-spacing:0}.brandmark span{font-size:18px;position:absolute;top:-5px;right:-6px;background:var(--green);color:var(--ink);border-radius:50%;width:22px;height:22px;display:grid;place-content:center}nav{display:flex;gap:34px}nav a{padding:12px 0;color:var(--muted);font-size:14px}nav a.active{color:var(--ink);box-shadow:0 2px var(--ink);font-weight:700}.header-note{font-size:10px;letter-spacing:1.6px;color:var(--muted)}main{max-width:1180px;margin:auto;padding:46px 30px 65px;min-height:75vh}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;text-transform:uppercase;color:var(--muted)}h1,h2,h3{font-family:Manrope,Arial,sans-serif;letter-spacing:-1.3px}h1{font-size:44px;line-height:1.16;margin:16px 0}h2{font-size:27px;margin:6px 0 12px}h3{font-size:23px;margin:12px 0}p{line-height:1.7;color:var(--muted)}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:35px;align-items:center;margin-bottom:38px}.hero p{max-width:500px;font-size:16px}.road-art{height:230px;background:#e8eddf;border-radius:22px;overflow:hidden;position:relative;display:grid;place-items:center}.road-art svg{width:100%;height:100%}.badge{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:30px;background:#e5ecdb;font-size:11px;font-weight:600}.dot{width:6px;height:6px;background:#42633c;border-radius:50%}.sectionline{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.sectionline p{margin:0}.cards{display:grid;grid-template-columns:1fr 1fr;gap:22px}.mode{border:1px solid var(--line);padding:30px;border-radius:18px;background:white;position:relative;overflow:hidden}.mode.quiz{background:var(--ink);color:white;border-color:var(--ink)}.mode p{margin:12px 0 26px;max-width:360px}.mode.quiz p{color:#becfc1}.mode .icon{display:inline-grid;place-items:center;width:45px;height:45px;border-radius:12px;background:#eef2e5;font-size:22px}.quiz .icon{background:#335347}.mini{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;margin-top:24px;color:var(--muted)}.quiz .mini{color:#b7ccbf}.btn{display:inline-flex;align-items:center;justify-content:center;gap:22px;border:1px solid var(--ink);border-radius:9px;padding:13px 20px;background:var(--ink);color:white;font-weight:600;font-size:14px}.btn.light{background:var(--green);color:var(--ink);border-color:var(--green)}.btn.outline{background:transparent;color:var(--ink);border-color:var(--line)}.btn:disabled{opacity:.45;cursor:default}.btn:hover:not(:disabled){filter:brightness(1.08)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px;padding:24px 0;border-top:1px solid var(--line)}.stat{padding:0 18px;border-left:1px solid var(--line)}.stat:first-child{padding-left:0;border-left:0}.stat strong{font-family:Manrope,Arial,sans-serif;font-size:26px;display:block}.stat span{font-size:12px;color:var(--muted)}.small{font-size:12px}.subtle{color:var(--muted)}.topback{display:inline-block;font-size:13px;color:var(--muted);margin-bottom:22px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:22px 0}.search{flex:1;min-width:200px;padding:13px 16px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink)}.progress{height:6px;background:#dfe6d8;border-radius:10px;overflow:hidden}.progress span{display:block;background:#62814a;height:100%;transition:width .3s}.study-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:25px}.study-card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;display:flex;flex-direction:column}.qtag{font-size:10px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase;font-weight:700}.study-card h3{font-size:17px;line-height:1.5;letter-spacing:-.35px;margin:13px 0 18px}.question-image{max-width:100%;max-height:240px;object-fit:contain;display:block;margin:4px auto 20px;border-radius:8px}.answer{background:#eff5e6;border-radius:9px;padding:14px 16px;font-size:14px;line-height:1.6;margin-top:auto}.answer b{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#658149;margin-bottom:5px}.read-label{font-size:12px;margin-top:17px;display:flex;align-items:center;gap:8px;color:var(--muted)}input[type=checkbox]{accent-color:var(--ink);width:16px;height:16px}.quiz-wrap{max-width:790px;margin:auto}.quiz-meta{display:flex;justify-content:space-between;margin:16px 0;font-size:12px;color:var(--muted)}.question-box{background:white;border:1px solid var(--line);padding:32px;border-radius:18px;margin-top:25px}.question-box h2{font-size:23px;line-height:1.5;letter-spacing:-.6px;margin:12px 0 24px}.choice{display:flex;width:100%;text-align:left;align-items:center;gap:14px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:15px;margin:10px 0;line-height:1.45}.choice .letter{display:grid;place-content:center;min-width:31px;height:31px;border:1px solid var(--line);border-radius:7px;font-size:12px}.choice:hover:not(:disabled){border-color:#708461;background:#f9fbf5}.choice.selected{border-color:var(--ink);background:#edf2e5}.choice.correct{border-color:#579444;background:#edf6e5}.choice.wrong{border-color:#c47168;background:#fbece9}.choice:disabled{cursor:default;color:var(--ink);opacity:1}.feedback{padding:16px;background:#f0f5e9;border-radius:9px;margin-top:18px;line-height:1.6;font-size:14px}.feedback.wrong{background:#fbece9}.quiz-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.result{text-align:center;background:white;border:1px solid var(--line);padding:38px;border-radius:20px}.score-ring{display:grid;place-content:center;width:140px;height:140px;border:10px solid #dceacb;border-radius:50%;margin:25px auto;font-size:38px;font-weight:800}.result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0}.review-item{text-align:left;border-top:1px solid var(--line);padding:18px 0;line-height:1.6}.review-item strong{display:block;margin-bottom:7px}.empty{padding:35px;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:24px 5.5%;font-size:11px;color:var(--muted)}footer b{letter-spacing:1px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--orange);outline-offset:4px}@media(max-width:700px){header{padding:18px 22px;flex-wrap:wrap;gap:16px}.header-note{display:none}nav{gap:22px}.brand{font-size:15px}.brand small{font-size:8px}main{padding:28px 20px 45px}h1{font-size:35px}.hero{grid-template-columns:1fr;gap:20px}.road-art{height:160px}.cards,.study-list{grid-template-columns:1fr}.mode{padding:25px}.sectionline{align-items:flex-start}.sectionline h2{font-size:23px}.question-box{padding:22px}.question-box h2{font-size:20px}.stats{gap:8px}.stat{padding:0 10px}.stat strong{font-size:24px}footer{flex-direction:column;gap:8px}.quiz-bottom{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Readable answers and immediate, unmistakable quiz feedback. */
.question-box h2{font-size:20px;line-height:1.5}
.answer{font-size:var(--answer-text-size);font-weight:600;line-height:1.55}
.choice{font-size:var(--answer-text-size);font-weight:600;line-height:1.5}
.choice .letter{font-size:var(--answer-letter-size);font-weight:800;min-width:42px;height:42px}
.choice.correct,.choice.correct:disabled{background:#b7dfa2;border:2px solid #39752d;color:#153610}
.choice.wrong,.choice.wrong:disabled{background:#f1ada8;border:2px solid #ad3d36;color:#521914}
.choice.correct .letter{background:#d9efcd;border-color:#39752d}
.choice.wrong .letter{background:#fad7d3;border-color:#ad3d36}
.feedback{font-size:17px;line-height:1.6}
.feedback.wrong{background:#f8d6d2;color:#6b221c}
@media(max-width:700px){.question-box h2{font-size:18px}.answer,.choice{font-size:var(--answer-text-size)}}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.course-card{display:block;background:white;border:1px solid var(--line);border-radius:17px;padding:26px;transition:transform .15s,border-color .15s}.course-card:hover{transform:translateY(-3px);border-color:#67805b}.course-card.ready{background:var(--ink);color:white;border-color:var(--ink)}.course-symbol{font-family:Manrope,Arial,sans-serif;font-weight:800;font-size:20px;background:#edf2e6;border-radius:10px;padding:12px;letter-spacing:1px}.ready .course-symbol{background:#345849;color:#e2edc7}.course-card h3{margin:20px 0 0}.course-card p{margin:6px 0 22px}.ready p{color:#c3d2c8}.course-modes{display:flex;gap:8px;margin-bottom:25px}.course-modes span{font-size:12px;border:1px solid var(--line);border-radius:6px;padding:6px 12px}.ready .course-modes span{border-color:#53715e}.course-bottom{display:flex;justify-content:space-between;align-items:center;font-size:12px;border-top:1px solid var(--line);padding-top:17px}.ready .course-bottom{border-color:#53715e}@media(max-width:900px){.course-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:550px){.course-grid{grid-template-columns:1fr}.course-card{padding:23px}}

/* Shared by every chapter and future question: keep answer typography consistent. */
:root{--answer-text-size:22px;--answer-letter-size:20px}
.answer b{font-size:14px}
.feedback{font-size:19px}

.audio-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #dce3da}.audio-controls .btn{font-size:16px;padding:10px 14px}.audio-controls label{font-size:15px;display:flex;gap:8px;align-items:center}.audio-controls select{font:inherit;padding:9px;border:1px solid #9eafa2;border-radius:8px;background:white}

.language-control{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px}.language-control select{padding:9px;border:1px solid #b4c3b5;border-radius:9px;background:white;color:#173b30;font:inherit}.language-dialog{position:fixed;inset:0;background:#132e25bb;z-index:1000;display:grid;place-items:center;padding:24px}.language-dialog>div{max-width:500px;background:#f6f7f1;border-radius:25px;padding:36px;text-align:center;box-shadow:0 20px 70px #0003}.language-dialog h2{font-size:28px;line-height:1.6}.language-dialog .btn{min-width:130px;margin-top:10px}.live-score{margin:22px 0;padding:22px;border:1px solid #d6dfd2;background:#fff;border-radius:18px}.live-score h3{margin:0 0 15px;font-size:17px}.live-score>div{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.score-item{border-left:3px solid #b9ca99;padding:6px 12px;background:#f5f7f0;border-radius:6px}.score-item span{display:block;font-size:14px;color:#536359}.score-item strong{font-size:27px;display:block;margin-top:5px}.score-2{border-color:#277657}.score-3{border-color:#b64b3c}.voice-notice{background:#fff3df;padding:12px;border-radius:8px}html[lang=pa] body{font-family:'Noto Sans Gurmukhi','Nirmala UI','Raavi',sans-serif}html[lang=pa] .question-box h2{line-height:1.75}html[lang=pa] .choice{line-height:1.65}html[lang=pa] .answer{line-height:1.8}@media(max-width:780px){header{flex-wrap:wrap}.language-control{margin-left:auto}.header-note{display:none}.live-score{padding:16px}.live-score>div{grid-template-columns:repeat(2,1fr)}.score-item{padding:8px 10px}}

.lesson-language{margin-bottom:24px;padding:16px 20px;background:#eef3e7;border:1px solid #d4dfcc;border-radius:14px}.lesson-language .language-control{justify-content:space-between;max-width:370px}.lesson-language p{margin:10px 0 0}.practice-choices .choice{cursor:default}.correct-mark{margin-left:auto;font-weight:800}.practice-feedback{margin-top:16px}@media(max-width:780px){.lesson-language{padding:14px}.lesson-language .language-control{margin-left:0}}

.mode-link{display:block;text-decoration:none;color:inherit;text-align:center;padding:32px}.mode-link:hover{border-color:#596d40}.mode-link h3{margin:0}

html[lang=pa] h1,html[lang=pa] h2,html[lang=pa] h3{letter-spacing:normal;font-family:inherit}.quiz-bottom>*{flex-shrink:0}select:focus-visible{outline:3px solid var(--orange);outline-offset:3px}.practice-feedback{color:#176044}

/* Official New Era website branding. */
:root{--ink:#072d57;--muted:#485969;--paper:#f4f7fb;--line:#dbe3ed;--green:#59b51a;--brand-blue:#084c92;--brand-green:#59b51a}
header{background:white}.brand{gap:15px;letter-spacing:1px}.school-logo{width:100px;height:87px;object-fit:contain}.school-name{color:var(--brand-blue);font-size:25px;font-weight:800}.brand .school-name small{color:#367610;font-size:13px;letter-spacing:1px}.course-card.ready{background:var(--brand-blue);border-color:var(--brand-blue)}.ready .course-symbol{background:#072d57;color:#c4edaa}.ready p{color:#e0ebf7}.course-card.ready .badge{background:#e6f4dc;color:#27570e}.btn{background:var(--brand-blue);border-color:var(--brand-blue)}.btn.outline{background:transparent;color:var(--ink);border-color:var(--line)}.btn.light{background:#d7edc8;color:#173d0a;border-color:#d7edc8}.badge{background:#e6f1df}.dot{background:var(--brand-green)}.progress span{background:#398514}.lesson-language{background:#edf6e7}.mode-link:hover{border-color:var(--brand-blue)}footer b{color:var(--brand-blue)}@media(max-width:700px){.school-logo{width:76px;height:66px}.school-name{font-size:22px}.brand .school-name small{font-size:11px}}

.auth-card{padding:28px;background:white;border:1px solid var(--line);border-radius:18px}.auth-card label{display:block;margin:18px 0 8px;font-weight:700}.auth-card input{display:block;width:100%;font:inherit;padding:14px;border:1px solid #aab9c8;border-radius:9px;margin-bottom:18px}.auth-card button{margin-bottom:8px}.auth-card h1{font-size:32px}.enrollment-status{display:flex;justify-content:space-between;gap:20px;padding:18px;background:white;border:1px solid var(--line);border-radius:10px;margin:12px 0}.admin-list{display:grid;gap:18px}nav{align-items:center;flex-wrap:wrap}.auth-card [hidden]{display:none}@media(max-width:600px){.enrollment-status{flex-direction:column}.auth-card{padding:20px}}
/* Owner-approved simple original quiz layout. Brand header stays New Era. */
.simple-shell{max-width:1040px;background:#fff;border:1px solid #b6b6b6;border-radius:0;overflow:hidden}.simple-shell>.topback{margin:14px 20px}.simple-bar{background:#ed7b20;color:#fff;padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:21px}.simple-bar>div{display:flex;gap:8px}.simple-bar .btn{padding:5px 13px;min-height:44px;color:#212121;background:#eee;border:1px solid #858585;border-radius:0}.simple-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px 90px;padding:70px 65px;min-height:340px;align-items:center}.simple-mode-grid .mode{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#eee;border:2px solid #999;border-radius:0;min-height:125px;padding:20px;color:#333;font-size:33px;font-weight:500}.simple-mode-grid small,[data-fixed-label] small{display:block;font-size:.58em;line-height:1.7}.simple-mode-grid .mode>small{font-size:14px}.simple-shell .question-box{border:0;border-radius:0;padding:18px 22px;margin:0;min-height:385px}.simple-shell .question-box h2{font-size:20px;font-weight:600;letter-spacing:0;margin:8px 0 24px;line-height:1.6}.lesson-content.with-image{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:start}.illustration{background:#fff;border:1px solid #aaa;padding:10px;cursor:zoom-in;color:#333;font-size:15px;max-width:100%}.illustration .question-image{max-height:185px;margin:0 auto 10px;border-radius:0}.simple-shell .answer{border:1px solid #bbb;border-radius:0;margin:0;background:#f4f8f2;padding:18px;color:#176044;min-height:120px}.simple-shell .choice{border-radius:0;background:#f5f5f5;border:1px solid #aaa;margin:0 0 9px;padding:11px;font-size:22px;font-weight:600}.simple-shell .choice .letter{border:0;border-right:1px solid #bbb;border-radius:0;min-width:40px;height:36px;background:transparent;font-size:20px}.simple-shell .choice.correct{background:#b7dfa2;color:#153610;border-color:#39752d}.simple-shell .choice.wrong{background:#f1ada8;color:#521914;border-color:#ad3d36}.simple-shell .feedback{font-size:16px;margin-top:8px;padding:10px;border-radius:0}.simple-shell .quiz-bottom{justify-content:flex-start;margin-top:70px;flex-wrap:wrap}.simple-shell .quiz-bottom .btn{background:#eee;border:1px solid #999;border-radius:0;color:#333;min-height:52px;padding:8px 18px}.simple-shell .lesson-nav.nav-used:not(:disabled),.simple-shell a.mode:hover,.simple-shell a.mode:focus-visible,.simple-shell .btn:hover:not(:disabled),.simple-shell .btn:active:not(:disabled),.simple-shell .btn:focus-visible:not(:disabled),.simple-shell .choice:active:not(:disabled){background:#ed7b20;color:#151515;border-color:#ac4700}.simple-shell .btn:disabled{opacity:.45}.simple-position,.simple-shell .quiz-meta{font-size:14px;margin:16px 0 7px;color:#555}.simple-shell .progress{height:8px;border-radius:0;background:#eee}.simple-shell .progress span{background:#ed7b20}.simple-shell .live-score{margin:0;padding:12px 22px;border:0;border-top:1px solid #bbb;border-radius:0;background:#f2f2f2}.simple-shell .live-score h3{display:none}.simple-shell .score-item{padding:3px 12px;border:0;border-radius:0;background:transparent}.simple-shell .score-item strong{font-size:24px}.simple-shell .score-2{color:#176044}.simple-shell .score-3{color:#a42e24}.lesson-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:12px 18px 0;margin-left:auto;max-width:100%}.lesson-tools .lesson-language{padding:0;margin:0;background:transparent;border:0}.lesson-tools .lesson-language p{display:none}.lesson-tools .language-control{font-size:14px;gap:10px}.lesson-tools .audio-controls{border:0;padding:0;margin:0;background:transparent;gap:6px;justify-content:flex-end}.lesson-tools .audio-controls .btn{padding:7px 10px;min-height:42px;border-radius:0;font-size:14px}.lesson-tools .audio-controls label{font-size:13px}.image-zoom{max-width:94vw;max-height:94vh;border:1px solid #888;padding:16px}.image-zoom::backdrop{background:#0009}.image-zoom img{display:block;max-width:85vw;max-height:76vh;object-fit:contain;margin:15px auto}.image-zoom .btn{float:right}.simple-shell #lesson-help-text{padding:12px 20px;margin:0;background:#fff3df;line-height:1.6}@media(max-width:700px){.simple-mode-grid{padding:35px 18px;gap:25px 18px;min-height:270px}.simple-mode-grid .mode{font-size:26px;min-height:112px;padding:12px}.simple-bar{font-size:17px;padding:10px 12px}.simple-shell .question-box{padding:15px 12px}.lesson-content.with-image{grid-template-columns:110px minmax(0,1fr);gap:12px}.illustration{padding:6px;font-size:12px}.illustration .question-image{max-height:130px}.simple-shell .choice{font-size:22px;padding:10px 7px;gap:7px}.simple-shell .choice .letter{min-width:26px;font-size:20px}.simple-shell .answer{font-size:22px;padding:12px}.simple-shell .quiz-bottom{margin-top:40px}.lesson-tools{padding:12px;gap:12px}.lesson-tools .audio-controls{flex-wrap:wrap}.simple-shell .live-score>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.simple-shell .score-item{padding:4px}.score-item span{font-size:12px}}@media(max-width:430px){.lesson-content.with-image{grid-template-columns:1fr}.illustration{width:140px;margin:0 auto 14px}.simple-shell .question-box h2{font-size:18px}.simple-bar>div{gap:5px}.simple-bar .btn{padding:5px 9px}}
.simple-shell .lesson-nav{font-size:18px;min-width:132px;min-height:60px}.simple-shell .lesson-nav small{font-size:15px}.simple-bar .btn small{font-size:12px}.simple-shell .feedback.wrong{background:#edf6e7;color:#176044}

.module-count{box-sizing:border-box;width:100%;padding:0 20px 24px;margin:0;text-align:center;font-size:16px;line-height:1.6;overflow-wrap:anywhere}.module-count small{display:block;font-size:14px}.class1-module{border-bottom:1px solid #bbb;padding-top:16px}.class1-module:last-child{border-bottom:0}.class1-module>h2{font-size:24px;letter-spacing:0;margin:0;padding:0 24px}.class1-module .simple-mode-grid{min-height:190px;padding:20px 24px;gap:24px}.class1-module .simple-mode-grid .mode{min-height:108px;font-size:29px}@media(max-width:700px){.class1-module>h2{font-size:21px;padding:0 14px}.class1-module .simple-mode-grid{min-height:160px;padding:18px 14px;gap:14px}.class1-module .simple-mode-grid .mode{font-size:24px;min-height:100px}.module-count{padding:0 14px 20px;font-size:15px}}

.simple-bar.lesson-heading{flex-wrap:wrap}.simple-bar.lesson-heading>span{flex:1 1 200px;min-width:0}.simple-bar>.lesson-actions{flex:0 0 auto;margin-left:auto;gap:6px;align-items:stretch}.simple-bar .lesson-actions #lesson-help{box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;min-height:48px;padding:4px 2px;font-size:13px;line-height:1.3}.simple-bar .lesson-actions #lesson-help small{font-size:11px}.simple-bar .lesson-actions .lesson-home{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:132px;min-height:48px;padding:5px 10px;text-align:center;font-size:14px;font-weight:700;line-height:1.3}.simple-bar .lesson-actions .lesson-home small{font-size:11px;white-space:nowrap}

/* Readable school account navigation. */
header nav{gap:24px;min-width:0}header nav a{font-size:18px;font-weight:600;line-height:1.45;white-space:nowrap}header nav .btn{font-size:18px}header .brand{max-width:100%;min-width:0}header .school-name{min-width:0}header .brand .school-name small{line-height:1.5}@media(max-width:700px){header nav{gap:12px 20px;width:100%}header nav a,header nav .btn{font-size:17px}}

.simple-mode-grid.single-group-grid{grid-template-columns:minmax(0,380px);justify-content:center}

/* Shared lesson readability and responsive illustration layout (owner review). */
:root{--answer-text-size:20px;--answer-letter-size:18px}
.simple-shell .question-box{min-height:0;padding:14px 20px 18px}
.simple-shell .question-box h2{font-size:24px;font-weight:800;color:#111;line-height:1.4;margin:6px 0 18px;overflow-wrap:anywhere}
.simple-shell .choice,.simple-shell .answer{font-size:var(--answer-text-size);font-weight:400;line-height:1.45;color:#17212b;overflow-wrap:anywhere}
.simple-shell .choice{padding:9px 12px;min-height:52px;margin-bottom:8px}
.simple-shell .choice .letter{font-size:var(--answer-letter-size);font-weight:600;min-width:34px;height:32px}
.simple-shell .answer{min-height:0;padding:14px;color:#176044}
.simple-shell .feedback{font-weight:400;overflow-wrap:anywhere}
.lesson-content,.lesson-content>*{min-width:0}
.lesson-content.with-image,.lesson-content.with-image:has(.class6-illustration){display:grid;grid-template-columns:minmax(220px,36%) minmax(0,1fr);gap:22px;align-items:start}
.illustration,.class6-illustration{display:block;width:100%;max-width:100%;margin:0;padding:8px;align-self:start}
.illustration .question-image,.class6-illustration .question-image{display:block;width:100%;max-width:100%;height:clamp(170px,35svh,300px);max-height:300px;object-fit:contain;margin:0 auto 6px}
.illustration span,.class6-illustration span{display:block;font-size:13px;font-weight:400;margin:0}
.simple-shell .quiz-bottom{margin-top:16px;gap:10px}
.simple-shell .quiz-meta,.simple-position{margin:10px 0 6px}
.simple-shell .live-score{padding:9px 20px}
.simple-shell .score-item strong{font-size:22px}
.image-zoom{overflow:auto}.image-zoom img{width:auto;height:auto}
html[lang=pa] .simple-shell .question-box h2{line-height:1.6}
html[lang=pa] .simple-shell .choice,html[lang=pa] .simple-shell .answer{line-height:1.6}
@media(min-width:760px){
 body:has(.lesson-heading) header{padding:8px 4%;min-height:70px;gap:16px}
 body:has(.lesson-heading) .school-logo{width:66px;height:56px}
 body:has(.lesson-heading) .school-name{font-size:22px}
 body:has(.lesson-heading) main{max-width:1240px;padding:14px 24px 24px;min-height:0}
 body:has(.lesson-heading) footer{padding:12px 4%}
 .simple-shell:has(.lesson-heading){max-width:1160px}
 .lesson-heading{padding:8px 16px;font-size:19px}
 .lesson-tools{padding:8px 16px 0;gap:6px}
 .lesson-tools .audio-controls .btn{padding:5px 9px;min-height:36px}
 .lesson-tools select{padding:6px}
}
@media(max-width:759px){
 main:has(.lesson-heading){padding:14px 12px 24px}
 .simple-shell .question-box{padding:12px}
 .simple-shell .question-box h2{font-size:22px;margin-bottom:14px}
 .lesson-content.with-image,.lesson-content.with-image:has(.class6-illustration){grid-template-columns:minmax(0,1fr);gap:14px}
 .illustration,.class6-illustration{width:min(100%,400px);justify-self:center}
 .illustration .question-image,.class6-illustration .question-image{height:clamp(150px,28svh,220px);max-height:220px}
 .lesson-heading .lesson-actions{flex-wrap:wrap}
 .lesson-tools{justify-content:flex-start;padding:10px 12px 0}
 .lesson-tools .audio-controls{justify-content:flex-start}
 .simple-shell .choice,.simple-shell .answer{font-size:20px}
 .simple-shell .quiz-bottom{margin-top:14px}
 .simple-shell .score-item{padding:3px 4px}.simple-shell .score-item span{font-size:12px}
}
@media(max-width:759px){
 body:has(.lesson-heading) header{padding:8px 12px;gap:8px;min-height:0}
 body:has(.lesson-heading) .school-logo{width:54px;height:46px}
 body:has(.lesson-heading) .school-name{font-size:20px}
 body:has(.lesson-heading) .school-name small{font-size:10px}
 body:has(.lesson-heading) header nav{gap:3px 14px}
 body:has(.lesson-heading) header nav a,body:has(.lesson-heading) header nav .btn{font-size:16px;padding:5px 0;min-height:32px}
}

/* Keep lesson space for the question; Back to Home restores main navigation. */
body:has(.lesson-heading)>header{display:none}
.review-answer-panel>p{font-size:20px;line-height:1.45;margin:0 0 12px;overflow-wrap:anywhere}
