/* Only the Senās Indijas course panel uses the book layout. */
.textbook[hidden],#lesson-tabs[hidden],.textbook [hidden]{display:none!important}
#lesson-panel.textbook{padding:24px}
.textbook-breadcrumb{font-size:calc(12px * var(--reading-scale,1));color:var(--muted);margin:0 0 14px}
.textbook-top{display:flex;justify-content:space-between;gap:20px;align-items:start}.textbook-top .eyebrow{margin-bottom:8px}.textbook-title{font:calc(30px * var(--reading-scale,1))/1.2 Georgia,serif;margin:0 0 16px;max-width:32ch}
.textbook-top>button{max-width:240px;flex-shrink:0}
.textbook-top>div{min-width:0}
.textbook-tools{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 16px}.textbook-tools>details{border:1px solid var(--line);padding:10px 14px;background:#f2e9da;border-radius:4px;max-width:100%}.textbook-tools>details[open]{flex-basis:100%}.textbook-tools summary{font-size:calc(14px * var(--reading-scale,1))}.textbook-toc>div{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}.textbook-toc button{text-align:left}.textbook-toc [aria-current="page"]{border-color:var(--rust);background:#e6d3b9}
.textbook-step-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:12px 0;scroll-margin-top:95px}.textbook-step-nav button{border:1px solid #c8b79e;border-radius:4px;background:#f1e6d5;color:var(--ink);padding:10px;font-size:calc(14px * var(--reading-scale,1));line-height:1.35;min-height:64px}.textbook-step-nav span{display:block;font-size:12px;margin-bottom:4px}.textbook-step-nav [aria-current="step"]{background:var(--blue);color:#fff4df;border-color:var(--blue)}
.textbook-status{font-weight:650;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px;font-size:calc(15px * var(--reading-scale,1))}
.textbook .textbook-step{margin:0;padding:0;max-width:none}.textbook .textbook-page{min-width:0}.textbook .textbook-page:focus{outline:0}.textbook .vedic-stage{margin-top:12px;padding-top:16px}.textbook .learning-start{margin:12px 0;padding:16px}.textbook .callout{margin:12px 0;padding:18px}.textbook .knowledge{margin:14px 0}.textbook .film-study{margin-top:0;padding-top:8px}.textbook .film-heading{margin-top:8px}.textbook .film-art-credit{margin-bottom:10px}
.textbook-page-nav{display:flex;align-items:end;gap:10px;background:#eee4d4;padding:12px;border-radius:4px;margin:0 0 18px}.textbook-page-nav label{flex:1;min-width:0;font-size:13px}.textbook-page-nav select{display:block;width:100%;max-width:100%;padding:8px;border:1px solid #b9a486;border-radius:3px;background:#fffaf1;color:var(--ink);margin-top:4px}.textbook-page-nav button{flex-shrink:0;min-height:44px;padding:8px 12px}.textbook button:disabled{opacity:.45;cursor:default}
.textbook .textbook-page-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:14px 18px;background:#fff0d6;border:2px solid #c6572b;border-radius:6px}
.textbook .textbook-material-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;color:#943c20;font-size:calc(14px * var(--reading-scale,1));font-weight:800;line-height:1.3;letter-spacing:.5px}
.textbook-material-hint>span[aria-hidden]{color:#d34417;font:800 42px/1 system-ui;flex-shrink:0}
.textbook .textbook-page-nav label{font-size:calc(15px * var(--reading-scale,1));font-weight:700;order:0}
.textbook .textbook-page-nav select{min-height:52px;border:2px solid #a94629;font-size:calc(17px * var(--reading-scale,1));font-weight:650;background:#fffdf6;padding:10px;cursor:pointer}
.textbook .textbook-page-nav select:focus-visible{outline:4px solid #193b4d;outline-offset:3px}
.textbook .textbook-material-help{margin:4px 0 0;font-size:calc(14px * var(--reading-scale,1));line-height:1.45;color:#674833}
@media(max-width:600px){.textbook .textbook-page-nav{padding:12px}.textbook .textbook-material-hint{font-size:calc(12px * var(--reading-scale,1))}.textbook-material-hint>span[aria-hidden]{font-size:34px}}
.textbook-controls{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.textbook-controls button{min-height:48px}.textbook-teacher{margin-top:16px}.textbook-teacher>summary{font-size:14px}.textbook-notebook,.textbook-pair{border-left:3px solid var(--rust);padding:0 0 0 20px}.textbook li{margin-bottom:10px}.textbook-summary{border:1px solid var(--line);padding:16px;background:#f4e9d7}
.textbook .film-video-slot,.textbook video{display:none!important}
.textbook .film-study .film-story-gallery{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;padding:6px 4px 16px;margin-top:18px}
.textbook .film-study .film-story-gallery .film-story-card,.textbook .film-study .film-story-gallery .film-story-card:nth-child(5){flex:0 0 240px;width:240px;scroll-snap-align:start}
.textbook .film-story-copy{padding:14px}.textbook .film-story-title{font-size:calc(24px * var(--reading-scale,1))}.textbook .film-story-detail-image img{max-height:65vh;width:auto;max-width:100%;object-fit:contain}.textbook .film-story-detail-image .film-annotated>img{width:100%;max-height:none}.textbook .film-story-detail-image .film-annotated{max-width:min(620px,50vh)}
.textbook .film-card>p,.textbook .film-card>label,.textbook .film-card>details{max-width:75ch}.textbook .film-card .film-card-heading{margin-top:10px}
.textbook .museum-object{margin:12px auto}.textbook .museum-object img{max-height:66vh;object-fit:contain}
@media(min-width:1500px){#lesson-panel.textbook{padding:28px}.textbook-title{max-width:45ch}.textbook-step-nav button{min-height:72px}}
@media(max-width:700px){#lesson-panel.textbook{padding:16px}.textbook-top{display:block}.textbook-top>button{max-width:none;width:100%}.textbook-title{font-size:calc(25px * var(--reading-scale,1))}.textbook-step-nav{grid-template-columns:repeat(5,minmax(115px,1fr));overflow-x:auto;padding-bottom:8px}.textbook-step-nav button{font-size:14px}.textbook-toc>div{grid-template-columns:1fr}.textbook-page-nav{flex-wrap:wrap}.textbook-page-nav label{order:-1;flex-basis:100%}.textbook-page-nav button{flex:1}.textbook .film-story-detail-image .film-annotated{max-width:100%}.textbook-controls button{flex:1}.textbook .film-study .film-story-gallery .film-story-card{flex-basis:min(76vw,280px);width:min(76vw,280px)}}
@media print{.textbook-step[hidden],.textbook-page[hidden]{display:block!important}.textbook-tools,.textbook-step-nav,.textbook-controls,.textbook-page-nav,.textbook-teacher{display:none!important}.textbook .film-story-gallery{display:block!important}.textbook .film-story-card{break-inside:avoid}.textbook .film-story-detail-image .film-annotated{max-width:280px}}
