.chapter1-redesign [data-c1-widget] input{max-width:100%;width:150px;font:inherit;padding:.45rem;border:1px solid #9fb5cb;border-radius:6px}.chapter1-redesign [data-c1-widget] label{display:flex;flex-direction:column;gap:.35rem;max-width:100%}.chapter1-redesign [data-c1-widget] svg{width:100%;height:auto;max-width:650px}.chapter1-redesign [data-c1-result]{display:block;font-weight:700;margin-top:.6rem}.c1-fresh-panel>details{margin-top:1rem}.c1-fresh-panel .lesson-content-copy{padding:1rem}.c1-fresh-panel button[aria-pressed=true]{background:#315fe8;color:white}
.chapter1-redesign .earth-grid{fill:none;stroke:#d6edf4;stroke-opacity:.55;stroke-width:1}.chapter1-redesign .earth-offset{font-size:19px;font-weight:800;fill:#173b57;stroke:#fff;stroke-width:4;paint-order:stroke}.chapter1-redesign .earth-side-label{font-size:20px;font-weight:700;fill:#315977}.chapter1-redesign [data-earth-scene]{touch-action:pan-y;cursor:grab;border-radius:24px}.chapter1-redesign [data-earth-scene]:focus-visible{outline:3px solid #315fe8;outline-offset:3px}.chapter1-redesign [data-c1-widget] input[type=range]{width:240px;max-width:100%;accent-color:#315fe8}.chapter1-redesign [data-c1-caption]{line-height:1.6;margin-top:.8rem}
.chapter1-redesign [data-earth-interactive]:focus-visible{outline:3px solid #315fe8;outline-offset:3px;border-radius:24px}
.chapter1-redesign .c1-time-summary{padding:.8rem 1rem;border-radius:12px;background:#e7eff9;font-size:1rem;line-height:1.7}.chapter1-redesign .c1-earth-credit{font-size:.85rem;line-height:1.5;color:#48617a}.chapter1-redesign .earth-offset{font-size:24px}
.chapter1-redesign[data-practice-api] .activity-navigation{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.chapter1-redesign[data-practice-api] .activity-navigation #leave{margin-inline-start:auto}.chapter1-redesign[data-practice-api] #question .fill-input{box-sizing:border-box}.chapter1-redesign[data-practice-api] #clock{display:block;font-size:20px;font-weight:800}.chapter1-redesign[data-practice-api] #review[aria-pressed=true]{background:#fdba74;color:#431407}
.c1-main-layout{border-radius:18px}
.c1-main-layout>.panel-head{margin-bottom:12px}
.c1-main-layout .student-subtopic-grid [data-learning-topic]{min-height:54px;line-height:1.4}
.c1-main-layout .student-subtopic-grid [data-learning-topic][aria-expanded=true]{border:1px solid #16834f;background:#e2f5e9;box-shadow:inset 4px 0 #16834f,0 4px 10px #16834f20;color:#14532d;font-weight:800}
.c1-main-layout .student-subtopic-content,.c1-main-layout .student-topic-levels{display:grid;gap:12px;min-width:0}
.c1-main-layout .student-lesson-slot{min-width:0}
.ncert-task-layout{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:1rem;align-items:start}.ncert-task-sidebar{position:sticky;top:1rem;max-height:76vh;overflow:auto;padding:1rem;border:1px solid #dbe5f3;border-radius:16px;background:#f7f9fd}.ncert-task-sidebar>h2{margin:.1rem 0 1rem;font-size:1.1rem}.ncert-task-group{margin-block:1rem}.ncert-task-group h3{margin:.5rem 0;color:#48617a;font-size:.9rem}.ncert-task-link{display:block;width:100%;margin:.35rem 0;padding:.65rem .75rem;text-align:start;font:inherit;color:#24364b;background:#fff;border:1px solid #dbe5f3;border-radius:10px;cursor:pointer}.ncert-task-link:hover,.ncert-task-link[aria-current=page]{border-color:#315fe8;background:#eaf0ff;color:#173caa;font-weight:700}.ncert-task-link:focus-visible{outline:3px solid #315fe8;outline-offset:2px}.ncert-task-link span{display:block;font-size:.86rem;line-height:1.4}.ncert-task-current{min-width:0;min-height:260px;padding:clamp(1.1rem,3vw,2rem);border:1px solid #dbe5f3;border-radius:18px;background:linear-gradient(145deg,#fff,#f7faff)}.ncert-task-detail{max-width:720px}.ncert-task-detail h2{line-height:1.4}.ncert-task-eyebrow{color:#315fe8;font-weight:800;text-transform:uppercase;letter-spacing:.04em;font-size:.8rem}@media(max-width:760px){.ncert-task-layout{grid-template-columns:1fr}.ncert-task-sidebar{position:static;max-height:340px}.ncert-task-current{min-height:0}}
.ncert-source-line{margin:.3rem 0;color:#48617a;font-size:.9rem;line-height:1.4}.ncert-source-line:empty{display:none}
/* Compact Chapter 1 focused practice layout. */
.chapter1-redesign[data-practice-api] .practice-page-head{min-height:54px;padding:6px 18px}
.chapter1-redesign[data-practice-api] .practice-page-head nav{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(1120px,100%);margin:auto}
.chapter1-redesign[data-practice-api] .practice-page-head .student-language-toggle button{min-width:54px;height:34px;padding:0 12px;font-size:15px}
.chapter1-redesign[data-practice-api] .practice-wrap{max-width:1120px;padding:12px 16px 22px}
.chapter1-redesign[data-practice-api] .practice-card{display:flex;flex-direction:column;gap:8px;padding:16px 20px;border-radius:16px}
.chapter1-redesign[data-practice-api] .question-top{align-items:flex-start;gap:8px}
.chapter1-redesign[data-practice-api] .question-top h1{margin:2px 0;font-size:clamp(1.25rem,2vw,1.65rem);line-height:1.2}
.chapter1-redesign[data-practice-api] #identity{margin:0;font-size:.72rem;letter-spacing:.04em}
.chapter1-redesign[data-practice-api] .activity-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.chapter1-redesign[data-practice-api] #position{padding:5px 9px;white-space:nowrap}
.chapter1-redesign[data-practice-api] #clock{display:inline-block;font-size:.92rem;white-space:nowrap}
.chapter1-redesign[data-practice-api] #notice,#counts{margin:0;font-size:.88rem;line-height:1.35}
.chapter1-redesign[data-practice-api] #questionNavigator{display:grid;grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:4px;max-height:74px;overflow:auto;padding:3px 2px 5px;margin:0;border-block:1px solid #e5ebf4;scrollbar-width:thin}
.chapter1-redesign[data-practice-api] #questionNavigator .question-jump{width:30px;height:30px}
.chapter1-redesign[data-practice-api] .question-number-legend{display:flex;flex-wrap:wrap;gap:5px 14px;margin:0;color:#52657a;font-size:.76rem;line-height:1.2}
.chapter1-redesign[data-practice-api] .question-number-legend>span{display:flex;align-items:center;gap:5px}
.chapter1-redesign[data-practice-api] .question-number-legend .question-state{width:11px;height:11px}
.chapter1-redesign[data-practice-api] #question{min-width:0}
.chapter1-redesign[data-practice-api] #question .prompt{margin:7px 0;font-size:clamp(1.15rem,1.8vw,1.55rem);line-height:1.3}
.chapter1-redesign[data-practice-api] #question .meta-row{margin-top:5px}
.chapter1-redesign[data-practice-api] #question .passage{margin-bottom:10px;padding:11px 13px}
.chapter1-redesign[data-practice-api] #question .option-list,.chapter1-redesign[data-practice-api] #question .match-list,.chapter1-redesign[data-practice-api] #question .radio-list{gap:7px;margin-top:8px}
.chapter1-redesign[data-practice-api] #question .option-button,#question .match-item{padding:8px 10px;border-radius:10px}
.chapter1-redesign[data-practice-api] .question-submit-actions,.chapter1-redesign[data-practice-api] .activity-navigation{display:contents}
.chapter1-redesign[data-practice-api] #previous,.chapter1-redesign[data-practice-api] #next,.chapter1-redesign[data-practice-api] #submit,.chapter1-redesign[data-practice-api] #review,.chapter1-redesign[data-practice-api] #retry,.chapter1-redesign[data-practice-api] #leave{order:2;margin:0}
.chapter1-redesign[data-practice-api] #previous{order:1}
.chapter1-redesign[data-practice-api] #next{order:1}
.chapter1-redesign[data-practice-api] #submit{order:2}
.chapter1-redesign[data-practice-api] #review{order:2}
.chapter1-redesign[data-practice-api] #retry{order:2}
.chapter1-redesign[data-practice-api] #leave{order:3;margin-inline-start:auto}
.chapter1-redesign[data-practice-api] #previous,.chapter1-redesign[data-practice-api] #next,.chapter1-redesign[data-practice-api] #submit,.chapter1-redesign[data-practice-api] #review,.chapter1-redesign[data-practice-api] #retry,.chapter1-redesign[data-practice-api] #leave{align-self:flex-start;box-shadow:0 2px 8px #10274618}
.chapter1-redesign[data-practice-api] #feedback{order:0;margin:2px 0}
.chapter1-redesign[data-practice-api] #model-reference{order:0;margin:0;padding:8px 12px;border:1px solid #e5ebf4;border-radius:10px;background:#f8faff}
@media(max-width:650px){.chapter1-redesign[data-practice-api] .practice-page-head{padding:6px 10px}.chapter1-redesign[data-practice-api] .practice-wrap{padding:8px}.chapter1-redesign[data-practice-api] .practice-card{gap:7px;padding:12px}.chapter1-redesign[data-practice-api] .question-top{align-items:flex-start}.chapter1-redesign[data-practice-api] .activity-status{gap:5px;justify-content:flex-start}.chapter1-redesign[data-practice-api] #questionNavigator{grid-template-columns:repeat(8,minmax(28px,1fr));max-height:68px}.chapter1-redesign[data-practice-api] .question-number-legend{gap:5px 9px;font-size:.7rem}.chapter1-redesign[data-practice-api] #previous,.chapter1-redesign[data-practice-api] #next,.chapter1-redesign[data-practice-api] #submit,.chapter1-redesign[data-practice-api] #review,.chapter1-redesign[data-practice-api] #retry,.chapter1-redesign[data-practice-api] #leave{position:static}.chapter1-redesign[data-practice-api] #leave{margin-inline-start:auto}}
/* Keep question navigation and answer actions aligned in one compact toolbar. */
.chapter1-redesign[data-practice-api] .question-submit-actions,
.chapter1-redesign[data-practice-api] .activity-navigation{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.chapter1-redesign[data-practice-api] .practice-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%;padding-top:10px;margin-top:2px;border-top:1px solid #e5ebf4}
.chapter1-redesign[data-practice-api] .practice-controls .btn{min-height:40px;margin:0;white-space:nowrap}
.chapter1-redesign[data-practice-api] .practice-controls #leave{margin-inline-start:auto}
@media(max-width:650px){.chapter1-redesign[data-practice-api] .practice-controls{gap:8px}.chapter1-redesign[data-practice-api] .practice-controls .btn{min-height:38px;padding-inline:11px}}
/* Separate answer controls from question navigation; keep the visual model below both. */
.chapter1-redesign[data-practice-api] .practice-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px}
.chapter1-redesign[data-practice-api] .practice-controls .question-submit-actions{grid-column:1;grid-row:1}
.chapter1-redesign[data-practice-api] .practice-controls #leave{grid-column:2;grid-row:1;justify-self:end}
.chapter1-redesign[data-practice-api] .practice-controls .activity-navigation{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:12px;padding-top:8px;margin-top:2px;border-top:1px solid #e5ebf4}
.chapter1-redesign[data-practice-api] #model-reference{margin-top:4px}
@media(max-width:520px){.chapter1-redesign[data-practice-api] .practice-controls{grid-template-columns:minmax(0,1fr)}.chapter1-redesign[data-practice-api] .practice-controls .question-submit-actions{grid-column:1;grid-row:1}.chapter1-redesign[data-practice-api] .practice-controls #leave{grid-column:1;grid-row:2}.chapter1-redesign[data-practice-api] .practice-controls .activity-navigation{grid-column:1;grid-row:3;justify-content:flex-start}}
/* Reduce excess vertical spacing in the expanded Chapter 1 lesson panel. */
.c1-main-layout [data-fresh-lesson][open]{padding:10px 16px 14px}
.c1-main-layout [data-fresh-lesson] .read-aloud-controls{margin:0 0 4px}
.c1-main-layout [data-fresh-lesson] .lesson-content-copy{margin:0;line-height:1.5}
.c1-main-layout [data-fresh-lesson] .lesson-content-copy>p:first-child{margin:0 0 8px}
.c1-main-layout [data-fresh-lesson] .lesson-content-copy>.btn{margin:0}
.c7-learning-panel{padding:clamp(12px,2vw,20px)}
.c7-learning-panel .panel-head{margin:0 0 10px}
.c7-learning-panel .panel-head h2{margin:0 0 4px;font-size:clamp(1.25rem,2vw,1.65rem)}
.c7-learning-panel .panel-head p{margin:0;color:#52657a}
.c7-learning-panel .student-subtopic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:8px;margin:10px 0 14px}
.c7-learning-panel .student-subtopic-grid button{display:flex;align-items:center;gap:9px;min-height:48px;padding:9px 12px;text-align:left;line-height:1.3}
.c7-learning-panel .student-subtopic-grid button>span{flex:0 0 30px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e7efff;color:#315fe8;font-size:.8rem;font-weight:800}
.c7-learning-panel .student-subtopic-grid button[aria-expanded=true]{border-color:#16834f;background:#e2f5e9;box-shadow:inset 4px 0 #16834f;color:#14532d;font-weight:800}
.c7-learning-panel .student-subtopic-grid button.c1-full-topic{border-style:dashed}
.c7-learning-panel .student-subtopic-content{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.c7-learning-panel .student-topic-levels{display:grid;gap:10px;min-width:0}
.c7-learning-panel .lesson-learning{margin:0;min-width:0;border:1px solid #dbe5f3;border-radius:14px;background:linear-gradient(145deg,#fff,#f7faff)}
.c7-learning-panel .lesson-learning-heading{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px}
.c7-learning-panel .lesson-learning-heading h3{margin:0;font-size:1rem}
.c7-learning-panel .lesson-content-copy{padding:4px 12px 12px;line-height:1.5}
.c7-learning-panel .lesson-content-copy>p{margin:4px 0 10px}
.c7-learning-panel .lesson-content-copy>.btn{margin:0}
.c7-learning-panel .c7-legacy-link{margin-top:10px}
.c7-learning-panel [data-fresh-practice-cards] .question-type-grid{gap:8px;margin-top:8px}
.chapter1-redesign[data-chapter7-practice] .practice-wrap{width:min(1440px,calc(100vw - 24px));max-width:1440px;padding:12px clamp(16px,2.3vw,32px) 24px}
.chapter1-redesign[data-chapter7-practice] .practice-card{width:100%}
@media(max-width:760px){.c7-learning-panel .student-subtopic-content{grid-template-columns:1fr}.c7-learning-panel .student-subtopic-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}}
/* Keep the selected topic list beside its lesson, practice and NCERT panels. */
.c1-main-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);column-gap:clamp(14px,2vw,24px);row-gap:12px;align-items:start}
.c1-main-layout>.panel-head{grid-column:1/-1;width:100%}
.c1-main-layout .student-subtopic-grid.student-subtopic-grid{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin:0;max-height:min(72vh,760px);overflow-y:auto;align-content:start;position:sticky;top:12px;padding:0 4px 0 0}
.c1-main-layout .student-subtopic-grid.student-subtopic-grid button{min-height:44px;padding:8px 10px}
.c1-main-layout .student-subtopic-content{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.c1-main-layout .student-topic-levels{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.lesson-direct-link{display:block;color:inherit;text-decoration:none;cursor:pointer}
.lesson-direct-link:hover{border-color:#9bb4f3;box-shadow:0 5px 16px #315fe814}
.lesson-direct-link:focus-visible{outline:3px solid #315fe8;outline-offset:3px}
.lesson-direct-link .lesson-learning-heading{display:flex;align-items:center;gap:10px;min-height:52px;padding:9px 14px}
.lesson-direct-link .lesson-learning-heading h3{margin:0}
.lesson-direct-arrow{margin-inline-start:auto;color:#315fe8;font-size:1.15rem;font-weight:800}
@media(max-width:760px){.c1-main-layout{grid-template-columns:minmax(0,1fr);row-gap:12px}.c1-main-layout .student-subtopic-grid.student-subtopic-grid{grid-column:1;grid-row:auto;position:static;max-height:260px;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}.c1-main-layout .student-subtopic-content{grid-column:1;grid-row:auto}}
/* The Class 6 Social portal for chapters 9–14 has the same selector-and-sections flow without the redesigned portal wrapper. */
.c8-learning-panel:not(.c1-main-layout){display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);column-gap:clamp(14px,2vw,24px);row-gap:10px;align-items:start}
.c8-learning-panel:not(.c1-main-layout)>.panel-head,.c8-learning-panel:not(.c1-main-layout)>p{grid-column:1/-1}
.c8-learning-panel:not(.c1-main-layout)>.chapter8-topic-grid{grid-column:1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-content:start;max-height:min(72vh,760px);overflow-y:auto;position:sticky;top:12px;margin:0;padding:0 4px 0 0}
.c8-learning-panel:not(.c1-main-layout)>.chapter8-topic-grid+details,.c8-learning-panel:not(.c1-main-layout)>.chapter8-topic-grid+details~details{grid-column:2;min-width:0}
@media(max-width:760px){.c8-learning-panel:not(.c1-main-layout){grid-template-columns:minmax(0,1fr)}.c8-learning-panel:not(.c1-main-layout)>.chapter8-topic-grid{grid-column:1;grid-row:auto;position:static;max-height:260px;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}.c8-learning-panel:not(.c1-main-layout)>.chapter8-topic-grid+details,.c8-learning-panel:not(.c1-main-layout)>.chapter8-topic-grid+details~details{grid-column:1}}
body[data-chapter7-ncert] main.chapter7-ncert-layout{display:grid;grid-template-columns:minmax(235px,310px) minmax(0,1fr);align-items:start;gap:12px}
body[data-chapter7-ncert] main.chapter7-ncert-layout>section:first-child,body[data-chapter7-ncert] #sources,body[data-chapter7-ncert] main.chapter7-ncert-layout>nav{grid-column:1/-1}
body[data-chapter7-ncert] main.chapter7-ncert-layout>section:first-child{padding:12px 16px}
body[data-chapter7-ncert] #pageTitle{margin:8px 0;font-size:clamp(1.25rem,2.3vw,1.8rem);line-height:1.2}
body[data-chapter7-ncert] #sources{padding:10px 16px}
body[data-chapter7-ncert] #sources h2,body[data-chapter7-ncert] #sources p{margin:4px 0}
body[data-chapter7-ncert] #sources .chapter7-ncert-edition{font-size:.88rem;line-height:1.35;color:#42526b}
body[data-chapter7-ncert] #textbook{grid-column:1;position:sticky;top:10px;max-height:74vh;overflow:auto;padding:10px;scrollbar-width:thin}
body[data-chapter7-ncert] #textbook>.panel{padding:10px 12px;margin:7px 0;border-radius:12px}
body[data-chapter7-ncert] #textbook h3{margin:2px 0 6px;font-size:.98rem;line-height:1.3}
body[data-chapter7-ncert] #textbook article>p{display:none}
body[data-chapter7-ncert] #textbook article button{width:100%;min-height:38px;text-align:left;padding:7px 10px;font-size:.88rem}
body[data-chapter7-ncert] #activity{grid-column:2;position:sticky;top:10px;min-width:0;padding:clamp(14px,2vw,24px);border:1px solid #dbe5f3;border-radius:16px;background:linear-gradient(145deg,#fff,#f7faff)}
body[data-chapter7-ncert] #activity h2{margin:4px 0 12px}
body[data-chapter7-ncert] #activity #leave{margin-top:12px}
body[data-chapter7-ncert] main.chapter7-ncert-layout:not(.has-active-task) #textbook{grid-column:1/-1;position:static;max-height:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:8px}
body[data-chapter7-ncert] main.chapter7-ncert-layout:not(.has-active-task) #textbook>.panel{margin:0}
@media(max-width:760px){body[data-chapter7-ncert] main.chapter7-ncert-layout{grid-template-columns:1fr}body[data-chapter7-ncert] main.chapter7-ncert-layout>section:first-child,body[data-chapter7-ncert] #sources,body[data-chapter7-ncert] #textbook,body[data-chapter7-ncert] #activity,body[data-chapter7-ncert] main.chapter7-ncert-layout>nav{grid-column:1;position:static;max-height:none}body[data-chapter7-ncert] main.chapter7-ncert-layout.has-active-task #textbook{max-height:300px;display:block}}
body[data-chapter8-ncert] main.chapter8-ncert-layout{display:grid;grid-template-columns:minmax(235px,310px) minmax(0,1fr);align-items:start;gap:12px}
body[data-chapter8-ncert] main.chapter8-ncert-layout>section:first-child,body[data-chapter8-ncert] #sources,body[data-chapter8-ncert] main.chapter8-ncert-layout>nav{grid-column:1/-1}
body[data-chapter8-ncert] main.chapter8-ncert-layout>section:first-child{padding:12px 16px}
body[data-chapter8-ncert] #pageTitle{margin:8px 0;font-size:clamp(1.25rem,2.3vw,1.8rem);line-height:1.2}
body[data-chapter8-ncert] #sources{padding:10px 16px}
body[data-chapter8-ncert] #sources .chapter8-ncert-edition{margin:4px 0;font-size:.88rem;line-height:1.35;color:#42526b}
body[data-chapter8-ncert] #textbook{grid-column:1;position:sticky;top:10px;max-height:74vh;overflow:auto;padding:10px;scrollbar-width:thin}
body[data-chapter8-ncert] #textbook>.panel{padding:10px 12px;margin:7px 0;border-radius:12px}
body[data-chapter8-ncert] #textbook h3{margin:2px 0 6px;font-size:.98rem;line-height:1.3}
body[data-chapter8-ncert] #textbook article>p{display:none}
body[data-chapter8-ncert] #textbook article button{width:100%;min-height:38px;text-align:left;padding:7px 10px;font-size:.88rem}
body[data-chapter8-ncert] #activity{grid-column:2;position:sticky;top:10px;min-width:0;padding:clamp(14px,2vw,24px);border:1px solid #dbe5f3;border-radius:16px;background:linear-gradient(145deg,#fff,#f7faff)}
body[data-chapter8-ncert] #activity h2{margin:4px 0 12px}
body[data-chapter8-ncert] #activity #leave{margin-top:12px}
body[data-chapter8-ncert] main.chapter8-ncert-layout:not(.has-active-task) #textbook{grid-column:1/-1;position:static;max-height:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:8px}
body[data-chapter8-ncert] main.chapter8-ncert-layout:not(.has-active-task) #textbook>.panel{margin:0}
@media(max-width:760px){body[data-chapter8-ncert] main.chapter8-ncert-layout{grid-template-columns:1fr}body[data-chapter8-ncert] main.chapter8-ncert-layout>section:first-child,body[data-chapter8-ncert] #sources,body[data-chapter8-ncert] #textbook,body[data-chapter8-ncert] #activity,body[data-chapter8-ncert] main.chapter8-ncert-layout>nav{grid-column:1;position:static;max-height:none}body[data-chapter8-ncert] main.chapter8-ncert-layout.has-active-task #textbook{max-height:300px;display:block}}

/* The Learning Library owns class, subject and chapter selection. */
.student-learning-page .student-subject-heading,.student-learning-page .student-subject-links,.student-learning-page .student-language-hint,.student-learning-page .student-chapter-picker{display:none!important}
.student-library-return{display:flex;justify-content:flex-end;margin:0 0 12px}
/* Keep the textbook task list beside its focused task for guided Social chapters. */
body[data-ncert-split] main.chapter-ncert-split{display:grid;grid-template-columns:minmax(235px,310px) minmax(0,1fr);align-items:start;gap:12px}
body[data-ncert-split] main.chapter-ncert-split>section:first-child,body[data-ncert-split] #sources,body[data-ncert-split] main.chapter-ncert-split>nav{grid-column:1/-1}
body[data-ncert-split] main.chapter-ncert-split>section:first-child{padding:8px 16px}
body[data-ncert-split] #pageTitle{margin:4px 0;font-size:clamp(1.25rem,2.3vw,1.8rem);line-height:1.2}
body[data-ncert-split] #notice{margin:4px 0;font-size:.94rem}
body[data-ncert-split] #counts{margin:4px 0;font-size:.88rem}
body[data-ncert-split] #sources{padding:7px 12px}
body[data-ncert-split] #sources .ncert-edition-line{margin:0;font-size:.88rem;line-height:1.45}
body[data-ncert-split] #sources .ncert-edition-line span{margin-inline-start:.4em;color:#536987}
body[data-ncert-split] #textbook{grid-column:1;position:sticky;top:10px;max-height:74vh;overflow:auto;padding:10px;scrollbar-width:thin}
body[data-ncert-split] #textbook>.ncert-task-item{margin:0;border-bottom:1px solid #e4ebf6}
body[data-ncert-split] #textbook>.ncert-task-item:last-child{border-bottom:0}
body[data-ncert-split] #textbook .ncert-task-link{width:100%;min-height:42px;border:0;border-radius:9px;background:transparent;color:#244fc5;text-align:left;padding:8px 10px;font-size:.88rem;line-height:1.35;font-weight:700;cursor:pointer}
body[data-ncert-split] #textbook .ncert-task-link:hover,body[data-ncert-split] #textbook .ncert-task-item.is-active .ncert-task-link{background:#eaf0ff;color:#173eaf}
body[data-ncert-split] #textbook .ncert-task-link:focus-visible{outline:3px solid #9db4ff;outline-offset:1px}
body[data-ncert-split] #activity{grid-column:2;position:sticky;top:10px;min-width:0;padding:clamp(14px,2vw,24px);border:1px solid #dbe5f3;border-radius:16px;background:linear-gradient(145deg,#fff,#f7faff)}
@media(max-width:760px){body[data-ncert-split] main.chapter-ncert-split{grid-template-columns:1fr}body[data-ncert-split] main.chapter-ncert-split>section:first-child,body[data-ncert-split] #sources,body[data-ncert-split] #textbook,body[data-ncert-split] #activity,body[data-ncert-split] main.chapter-ncert-split>nav{grid-column:1;position:static;max-height:none}body[data-ncert-split] main.chapter-ncert-split.has-active-task #textbook{max-height:300px;display:block}}
