/* Shared navigation, resource actions and compact game entry screens. */
.teacher-workspace{display:grid;gap:28px}
.teacher-setup,.teacher-share{padding:26px}
.teacher-selects{display:grid;grid-template-columns:140px minmax(0,1fr) 230px;gap:18px;margin-top:20px}
.teacher-workspace label{display:block;font-weight:600;font-size:.875rem;margin-bottom:8px}
.teacher-workspace select,.teacher-workspace input,.teacher-workspace textarea{width:100%;min-width:0;min-height:46px;border:1px solid #bbc4d0;border-radius:10px;background:#fff;color:var(--navy);padding:11px 12px;font:inherit;font-size:.875rem}
.teacher-workspace :is(select,input,textarea,button,summary):focus-visible{outline:3px solid #bc923a;outline-offset:3px}
.teacher-level-note,.teacher-library-note{color:var(--sparrow-secondary);font-size:.875rem;line-height:1.6;margin:16px 0 0}
.teacher-session-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:18px}
.teacher-session-heading h2{margin-top:10px;font-size:1.75rem}
.teacher-session-heading>p{flex-shrink:0;margin:0;color:var(--sparrow-secondary);font-size:.9375rem;text-align:right;line-height:1.7}
.teacher-session-steps{list-style:none;padding:0;margin:0;gap:18px}
.teacher-session-steps .panel{padding:22px;display:flex;flex-direction:column;align-items:start;min-width:0}
.teacher-step-meta{display:flex;justify-content:space-between;gap:16px;width:100%;font-size:.75rem;font-weight:700;color:#75602d;letter-spacing:.04em}
.teacher-step-meta span{font-weight:500;color:var(--sparrow-secondary);letter-spacing:0}
.teacher-session-steps h3{font-size:1.35rem;margin:15px 0 0}
.teacher-session-steps p{font-size:.9375rem;line-height:1.6;color:var(--sparrow-secondary);margin:12px 0 20px}
.teacher-session-steps .btn{margin-top:auto;min-height:46px}
.teacher-share h2{margin:8px 0 12px}
.teacher-share>div>p{color:var(--sparrow-secondary);line-height:1.6}
.teacher-share .actions{margin:20px 0 0;gap:12px}
.teacher-share .btn{min-height:46px}
.teacher-copy-status{font-size:.875rem;color:var(--navy);margin:12px 0 16px;min-height:1.4em}
.teacher-task-preview{margin-top:18px}
.teacher-workspace summary{min-height:44px;cursor:pointer;font-weight:600;font-size:.9375rem;padding:12px 0}
.teacher-task-preview textarea{margin-top:10px;line-height:1.65;resize:vertical}
.teacher-results-note{border-top:1px solid var(--line);padding-top:18px;margin:20px 0 0;color:var(--sparrow-secondary);font-size:.875rem;line-height:1.65}
.teacher-print{padding:10px 26px}
.teacher-print .actions{margin:12px 0 18px}
.teacher-library-note{margin-top:0}
@media(max-width:760px){.teacher-selects{grid-template-columns:1fr}.teacher-setup,.teacher-share{padding:20px}.teacher-session-heading{display:block}.teacher-session-heading>p{margin-top:12px;text-align:left}.teacher-session-steps{grid-template-columns:1fr}.teacher-session-steps .btn{width:100%}.teacher-share .actions{display:grid;grid-template-columns:1fr}.teacher-print{padding:8px 20px}}
.nav-soon{display:inline-block;margin-left:3px;font-size:.65rem;line-height:1.3;color:#76602d;font-weight:600}
.hero-levels .nav-soon{color:inherit}
.nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:3px}
.topic-card .topic-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;align-items:stretch}
.topic-card .topic-primary-actions .btn{width:100%;min-width:0;min-height:44px;margin:0;padding:10px 8px;display:flex;justify-content:center;align-items:center;gap:5px;font-size:.875rem;line-height:1.4;white-space:normal;text-align:center}
.topic-card .topic-primary-actions .btn-play-games{grid-column:auto;box-shadow:none}
.topic-card .topic-primary-actions .btn-play-games span{font-size:inherit}
.topic-downloads{margin-top:4px;border-top:1px solid #d7cba8;padding-top:4px}
.topic-downloads summary{padding:10px 2px;min-height:44px;cursor:pointer;font-size:.85rem;font-weight:700;color:#10223d}
.topic-downloads summary span{font-size:.8125rem;font-weight:400;color:#536074;margin-left:6px}
.topic-downloads summary:focus-visible{outline:3px solid #b58b35;outline-offset:2px;border-radius:4px}
.topic-download-list{display:grid;gap:8px;padding:0 0 8px}
.topic-download-row{display:flex;flex-wrap:wrap;gap:5px 14px;padding:6px 10px;border-radius:8px;background:#f5f1e7}
.topic-download-row a{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;color:#163f65;text-decoration:underline;text-underline-offset:3px}
.library-filters{gap:14px 20px;margin-bottom:12px}
.library-filters .search{flex:1 0 100%;width:100%;min-width:0;max-width:none;font-size:1rem;min-height:44px}
.library-filter-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.library-filter-group>span{font-size:.8125rem;font-weight:700;color:#536074;margin-right:3px}
.library-filter-group .chip{min-height:44px}
.library-result-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:20px;min-height:44px}
.library-result-bar p{margin:0;color:#536074;font-size:.875rem}
.library-result-bar button{min-height:44px}
.library-result-bar [hidden]{display:none}
.topic-resource-nav{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;margin:0 0 20px;padding:10px 14px;border:1px solid #d7cba8;border-radius:10px;background:#faf8f2}
.topic-index-link{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;font-weight:700;color:#163f65;text-decoration:none}
.topic-resource-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.topic-resource-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #d7cba8;border-radius:10px;background:#fff;color:#10223d;font-size:.875rem;font-weight:600;line-height:1.4;text-align:center;text-decoration:none}
.topic-resource-links a.active{background:#10223d;border-color:#10223d;color:#fff}
.topic-resource-nav a:focus-visible{outline:3px solid #a97f29;outline-offset:3px}
@media(max-width:640px){
 .topic-resource-nav{padding:10px;gap:4px}
 .topic-resource-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .library-filter-group{width:100%}
}

/* Five visual navigation choices; native disclosures support touch and keyboard. */
.site-header .nav-wrap {align-items:center;min-height:82px;padding-block:12px;gap:16px}
.site-header .brand {margin:0;flex-shrink:0}
.site-menu {position:relative;min-width:0}
.site-menu>.site-menu-toggle {display:none}
.site-header .site-nav {display:flex;gap:5px;flex-wrap:nowrap;max-width:none;align-items:center}
.site-nav>a,.site-nav-group>summary {min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 11px;border:1px solid transparent;border-radius:12px;font:inherit;font-size:.82rem;font-weight:700;color:#354861;text-decoration:none;white-space:nowrap;cursor:pointer}
.site-nav-group {position:relative}
.site-nav-group>summary {list-style:none}
.site-nav-group>summary::-webkit-details-marker,.site-menu-toggle::-webkit-details-marker {display:none}
.site-nav-icon {display:block;width:21px;height:21px;flex:none;color:#a77a27}
.site-nav-chevron {font-size:1rem;color:#8b7955}
.site-nav-group.active>summary,.site-nav-group[open]>summary,.site-nav>a.active,.site-nav>a:hover,.site-nav-group>summary:hover {background:#f3ead7;color:#10223d;border-color:#e8d8b4}
.site-nav-dropdown {position:absolute;top:calc(100% + 8px);left:0;min-width:235px;padding:8px;border:1px solid #e2d3b6;border-radius:16px;background:#fffdf8;box-shadow:0 14px 36px #10223d24;z-index:100}
.site-nav-group:not([open])>.site-nav-dropdown {display:none}
.site-nav .site-nav-dropdown>a {display:flex;justify-content:flex-start;min-height:44px;padding:10px 12px;font-size:.86rem;border-radius:9px}
.site-nav .site-nav-exams {background:#10223d;color:#fff6df;border-color:#10223d}
.site-nav .site-nav-exams .site-nav-icon {color:#e4c481}
.site-nav .site-nav-exams:hover {background:#203b5b;color:#fff6df;border-color:#203b5b}
.site-menu summary:focus-visible,.site-nav a:focus-visible,.site-footer-links a:focus-visible {outline:3px solid #b48735;outline-offset:3px}
.site-footer-links {display:flex;gap:1.3rem;align-items:center;flex-wrap:wrap}
.site-footer-links a {color:#40506a;text-decoration:none;font-size:.9rem;min-height:44px;display:inline-flex;align-items:center}
.site-footer-links a:hover {text-decoration:underline}
@media(max-width:1000px) {
 .site-header .nav-wrap {display:flex;align-items:center;justify-content:space-between;min-height:72px;position:relative}
 .site-header .brand {margin:0}
 .site-menu>.site-menu-toggle {display:inline-flex;align-items:center;gap:8px;background:#10223d;color:#fff6df;padding:11px 14px;border-radius:12px;min-height:46px;cursor:pointer;list-style:none;font-weight:700;font-size:.9rem}
 .site-menu-toggle .site-nav-icon {color:#e4c481}
 .site-menu[open]>.site-menu-toggle {background:#263e5b}
 .site-menu:not([open])>.site-nav {display:none}
 .site-header .site-nav {position:absolute;right:0;top:calc(100% + 12px);width:min(360px,calc(100vw - 24px));display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:14px;border:1px solid #e2d3b6;border-radius:18px;background:#fffdf8;box-shadow:0 16px 40px #10223d26;z-index:100}
 .site-nav>a,.site-nav-group>summary {display:flex;justify-content:flex-start;padding:13px 14px;font-size:.95rem;min-height:50px}
 .site-nav-chevron {margin-left:auto}
 .site-nav-dropdown {position:static;min-width:0;margin:6px 0 2px 14px;box-shadow:none;background:#f7f1e6;border-radius:12px}
 .site-nav .site-nav-dropdown>a {min-height:46px}
}
@media(max-width:400px) {
 .site-header .brand span {font-size:1.05rem}
 .site-header .brand-logo {width:38px;height:38px}
 .site-menu>.site-menu-toggle {padding:10px 12px}
 .site-footer-links {gap:.8rem}
}
.learning-guide{list-style:none;padding:0;margin:0 0 24px}
.learning-guide .panel,.difficulty-guide{padding:24px}
.learning-guide h3{margin:16px 0 10px}
.learning-guide p,.difficulty-guide p,.difficulty-guide dd{color:#536074;line-height:1.65}
.difficulty-guide h2{font-size:clamp(1.5rem,3vw,2rem)}
.difficulty-guide dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.difficulty-guide dt{font-weight:700;color:#10223d}
.difficulty-guide dd{margin:6px 0 0}
.jackpot-stage .jackpot-stage-header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;padding-top:20px;padding-bottom:8px;text-align:left}
.jackpot-stage .jackpot-stage-header h1{grid-column:1/-1;font-size:clamp(1.8rem,3.6vw,3rem);line-height:1.15;margin:4px 0;max-width:1000px}
.jackpot-stage .games-back{margin-bottom:0;min-height:44px}
.jackpot-stage .stage-kicker-row{grid-column:2;min-width:0}
.jackpot-stage .jackpot-activity-label{grid-column:1/-1;margin:0}
.jackpot-stage .challenge-shell{padding-top:8px;padding-bottom:28px}
.jackpot-stage .jackpot-setup,.hm-stage .hm-mode-chooser{max-width:760px;margin-left:auto;margin-right:auto;padding:18px}
.jackpot-stage .chooser-music-row{margin-bottom:12px}
.jackpot-stage .jackpot-choice-heading,.hm-stage .jackpot-choice-heading{margin-bottom:12px}
.jackpot-stage .final-flight-briefing{margin:0 auto 14px;padding:12px 16px;max-width:600px;min-height:0}
.jackpot-stage .final-flight-mascot{width:54px;height:54px;flex-basis:54px}
.jackpot-stage .difficulty-scroll-grid,.hm-stage .difficulty-scroll-grid{width:100%;max-width:640px;box-sizing:border-box;margin:0 auto}
.hm-stage .hm-heading{margin:12px 0}
.hm-stage .hm-heading h1{font-size:clamp(1.8rem,3.6vw,3rem)}
.hm-stage .hm-heading img{width:48px;height:48px}
.hm-stage .hm-topic{margin:10px 0 14px}
.preview-page{padding-top:20px}
.preview-page .preview-heading{margin-top:12px;margin-bottom:16px}
.memory-stage .memory-settings{grid-template-columns:minmax(180px,240px) minmax(0,540px);justify-content:space-between;align-items:center}
.memory-stage .memory-scroll-grid{max-width:540px;box-sizing:border-box;margin-left:auto;margin-right:auto}
@media(min-width:761px){
 .jackpot-stage .difficulty-scroll-label>strong,.hm-stage .difficulty-scroll-label>strong,.memory-stage .difficulty-scroll-label>strong{font-size:24px!important}
 .jackpot-stage .difficulty-scroll-sapphire .difficulty-scroll-label>strong,.hm-stage .difficulty-scroll-sapphire .difficulty-scroll-label>strong,.memory-stage .difficulty-scroll-sapphire .difficulty-scroll-label>strong{font-size:18px!important}
 .jackpot-stage .difficulty-scroll-label>small,.hm-stage .difficulty-scroll-label>small,.memory-stage .difficulty-scroll-label>small{font-size:12px!important}
}
@media(max-width:800px){
 .memory-stage .memory-settings{gap:12px}
 .memory-stage .memory-scroll-grid{width:100%}
 .difficulty-guide dl{grid-template-columns:1fr;gap:14px}
}
@media(max-width:600px){
 .nav{gap:3px;flex-wrap:wrap}
 .nav a{padding:8px;font-size:.75rem}
 .nav-soon{font-size:.6rem}
 .jackpot-stage .jackpot-stage-header{padding-top:14px}
 .jackpot-stage .stage-kicker-row{justify-content:flex-end}
 .jackpot-stage .stage-kicker-row .tv-kicker{display:none}
 .jackpot-stage .jackpot-setup,.hm-stage .hm-mode-chooser{padding:12px 8px}
 .jackpot-stage .final-flight-briefing{gap:10px;padding:10px}
 .jackpot-stage .final-flight-briefing p{font-size:.8rem;line-height:1.5}
 .hm-stage .hm-top{gap:8px;flex-wrap:wrap}
 .hm-stage .hm-top>span{font-size:.6rem;letter-spacing:.08em}
 .topic-card .topic-primary-actions .btn{font-size:.875rem}
 .learning-guide .panel,.difficulty-guide{padding:20px}
}

.hm-topic-options{justify-content:center;flex-wrap:wrap;margin-top:12px}
.hm-topic-options .btn{min-height:44px}

/* Worksheet tables remain scrollable without squeezing their columns. */
.aw-table-hint{display:none}
.aw-table-scroll:focus-visible{outline:3px solid #a97f29;outline-offset:3px}
.aw-prompt>span:last-child{min-width:0;overflow-wrap:anywhere}

@media(max-width:760px){
 .present-slide-controls #present-jump{min-height:44px;font-size:1rem}
 .present-slide-controls button,.present-songs{min-height:44px}
 .present-actions .btn{font-size:.8125rem;min-height:44px;white-space:normal}
}
@media(max-width:700px){
 .aw-toolbar{flex-wrap:wrap;align-items:flex-start;gap:10px}
 .aw-page-tabs{width:100%}
 .aw-page-tabs button{flex:1;min-height:44px;font-size:.875rem}
 .aw-toolbar #aw-score{flex:1 0 100%;font-size:.875rem;white-space:normal}
 .aw-answer{font-size:1rem;min-height:44px;max-width:100%}
 .aw-gap:not(.aw-phrase){width:96px;min-width:96px}
 .aw-question select.aw-answer{width:auto;min-width:100px}
 .aw-reset{min-height:44px;padding:10px 8px}
 .aw-table-hint{display:block;margin:0 0 8px;color:#536074;font-size:.8125rem;line-height:1.45}
 .aw-sheet{scroll-margin-top:20px}
 .games-topic-filter select,.memory-settings select{font-size:1rem;min-height:44px}
 .filters .chip,.games-levels .chip{min-height:44px}
 .games-card-detail{font-size:.7rem;letter-spacing:.08em}
 .games-card-difficulties{font-size:.75rem;line-height:1.5}
 .games-card-play{min-height:44px}
}
@media(max-width:650px){
 .memory-status{min-width:0;flex-wrap:wrap;gap:8px;font-size:.8125rem}
 .memory-status button{min-height:44px;font-size:.8125rem;padding:8px}
 .memory-tools button{min-width:44px;width:44px;min-height:44px}
 .memory-board{grid-auto-rows:minmax(132px,auto)}
 .memory-feedback{font-size:.875rem;line-height:1.45}
 .hm-keyboard{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
 .hm-keyboard button{width:100%;min-height:44px;height:44px;font-size:1rem}
 .hm-clue{font-size:1rem;line-height:1.45}
 .hm-status{font-size:.75rem;flex-wrap:wrap}
 .hm-instruction,.hm-feedback-clue p{font-size:.875rem;line-height:1.45}
 .hm-auto-next{font-size:.75rem;line-height:1.4}
 .hm-levels .btn{min-height:44px}
}
@media(max-width:380px){
 .hm-keyboard{grid-template-columns:repeat(6,minmax(0,1fr))}
 .memory-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:'settings' 'tools' 'status' 'board' 'feedback'}
 .memory-topline{justify-self:end}
}

/* Shared visual rhythm: paper cards, clear secondary text and navy/gold controls. */
:root{--sparrow-control-radius:10px;--sparrow-card-radius:18px;--sparrow-secondary:#536074;--sparrow-border:#d7cba8;--sparrow-focus:#a97f29}
.btn{min-height:44px;border-radius:var(--sparrow-control-radius);font-size:.875rem;line-height:1.4;text-align:center;white-space:normal;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.btn-gold:hover{transform:none}
.btn-outline:hover{background:#f6eedb;border-color:var(--gold-dark)}
.hero .btn-outline:hover{background:rgba(215,177,90,.16)}
.btn:focus-visible,.chip:focus-visible,.search:focus-visible,.song-pages a:focus-visible,.home-song-section a:focus-visible{outline:3px solid var(--sparrow-focus);outline-offset:3px}
.topic-card,.games-card,.song-feature,.song-activity,.song-game-card,.song-worksheet-card,.worksheet-card{border-radius:var(--sparrow-card-radius);border-color:var(--sparrow-border)}
.worksheet-card{border-top-color:var(--tier)}
.topic-card .card-body p,.games-card p,.song-feature-copy p{color:var(--sparrow-secondary);line-height:1.6}
.topic-card .card-meta span:last-child{font-size:.8125rem;color:var(--sparrow-secondary)}
.topic-downloads summary,.library-filter-group>span,.games-topic-filter label{font-size:.875rem}
.topic-index-link:hover,.worksheet-back:hover,.song-back:hover{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.games-card p{font-size:.875rem}
.games-card-detail{font-size:.75rem;letter-spacing:.08em;color:#785a21}
.games-card-difficulties{font-size:.8125rem;line-height:1.5;color:var(--sparrow-secondary)}
.games-card-play{min-height:44px;border-radius:var(--sparrow-control-radius);font-size:.875rem;letter-spacing:.04em}
.games-topic-filter select,.memory-settings select{font-size:1rem;border-radius:var(--sparrow-control-radius)}
.song-kicker{font-size:.8125rem;letter-spacing:.12em}
.song-activity>span:last-of-type,.song-small-note,.song-duration{font-size:.875rem;color:var(--sparrow-secondary)}
.song-game-card .song-small-note,.song-worksheet-card .song-small-note{font-size:.875rem;color:var(--sparrow-secondary)}
.worksheet-back,.song-back,.preview-library{display:inline-flex;align-items:center;min-height:44px}
.worksheet-card-head h2 span,.worksheet-page-count{font-size:.875rem}
.aw-page-tabs button,.present-slide-controls button,.slide-controls button{min-height:44px;border-radius:var(--sparrow-control-radius)}
.aw-grammar-note,.aw-feedback{font-size:.875rem;line-height:1.55}
.aw-feedback{align-items:flex-start;flex-wrap:wrap}
.aw-show-answer{min-height:44px;padding:8px 4px;font-size:.8125rem;line-height:1.4;text-underline-offset:3px}
.aw-reset{min-height:44px}
.jackpot-stage .difficulty-scroll-grid,.hm-stage .difficulty-scroll-grid{max-width:580px}
.difficulty-scroll-data strong,.memory-difficulty-data strong{font-size:14px!important;line-height:1.4!important}
.difficulty-scroll .difficulty-scroll-play,.memory-difficulty-scroll .difficulty-scroll-play{font-family:"Public Sans",Arial,sans-serif;font-size:14px!important;font-weight:700;letter-spacing:.04em;border-radius:var(--sparrow-control-radius)}
.difficulty-scroll:focus-visible,.memory-difficulty-scroll:focus-visible{outline:3px solid #f0d98d!important;outline-offset:4px!important}
@media(max-width:760px){
 .difficulty-scroll-label>strong{font-size:clamp(16px,3.8vw,24px)!important}
 .difficulty-scroll-sapphire .difficulty-scroll-label>strong{font-size:clamp(12px,2.9vw,18px)!important}
 .difficulty-scroll-label>small{font-size:clamp(10px,1.8vw,12px)!important}
}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}

/* One learning path for each topic: presentation, games, then self-check. */
.topic-resource-nav{display:block}
.topic-resource-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;margin-bottom:8px}
.topic-song-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#163f65;font-size:.875rem;font-weight:600;text-decoration:none}
.topic-song-link:hover{text-decoration:underline;text-underline-offset:3px}
.topic-learning-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:8px;margin:0;padding:0}
.topic-learning-steps li{min-width:0}
.topic-learning-steps a{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 14px;border:1px solid var(--sparrow-border);border-radius:var(--sparrow-control-radius);background:#fff;color:var(--navy);text-decoration:none;box-sizing:border-box}
.topic-learning-steps a:hover{background:#f6eedb}
.topic-learning-steps a.active{background:var(--navy);border-color:var(--navy);color:#fff}
.topic-step-number{display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;background:#f4ead2;color:#785a21;font-size:.875rem;font-weight:700}
.active .topic-step-number{background:var(--gold);color:var(--navy)}
.topic-step-copy{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.topic-step-copy strong{font-size:.875rem;line-height:1.3}
.topic-step-copy small{font-size:.8125rem;line-height:1.35;color:var(--sparrow-secondary)}
.active .topic-step-copy small{color:#e2e7ee}
.topic-next-step{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 24px;padding:20px;margin:24px 0;border:1px solid var(--sparrow-border);border-radius:var(--sparrow-card-radius);background:#faf8f2}
.topic-next-step[hidden]{display:none}
.topic-next-step>div:first-child{flex:1 1 260px;min-width:0}
.topic-next-step h2{font-size:1.125rem;line-height:1.4;margin:0 0 6px;color:var(--navy)}
.topic-next-step p,.topic-study-intro{font-size:.875rem;line-height:1.6;color:var(--sparrow-secondary)}
.topic-next-step p{margin:0;max-width:600px}
.topic-next-step .btn{max-width:100%;box-sizing:border-box}
.topic-study-intro{max-width:780px;margin:0 0 24px}
.topic-complete-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:640px){
 .topic-learning-steps a{flex-direction:column;align-items:flex-start;gap:6px;padding:10px 8px}
 .topic-step-number{width:24px;height:24px}
 .topic-step-copy small{font-size:.75rem}
 .topic-next-step{padding:16px;margin:20px 0}
 .topic-next-step>.btn,.topic-complete-actions{width:100%}
 .topic-complete-actions .btn{flex:1 1 100%}
}

/* Clear worksheet support and feedback for each answer box. */
.aw-question-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}
.aw-question-main>div{min-width:0}
.aw-hint-toggle{min-width:52px;min-height:44px;padding:8px;border:1px solid var(--sparrow-border);border-radius:8px;background:#fff;color:#163f65;font:inherit;font-size:.8125rem;font-weight:700;cursor:pointer}
.aw-hint-toggle:hover,.aw-hint-toggle[aria-expanded="true"]{background:#f6eedb}
.aw-hint-toggle:focus-visible,.aw-show-answer:focus-visible{outline:3px solid var(--sparrow-focus);outline-offset:3px}
.aw-hint{margin:10px 0 0 27px;padding:10px 12px;background:#f6eedb;border-radius:8px;color:#785a21;font-size:.875rem;line-height:1.55}
.aw-hint[hidden]{display:none}
.aw-feedback-rule{display:block;margin-top:4px;font-weight:400}
.aw-incomplete{background:#fff8e5;border-color:#b58b35}
.aw-incomplete .aw-feedback{color:#785a21}
.aw-answer{min-height:44px}
.aw-answer.aw-field-correct{border-color:#238946;background:#f5fcf6}
.aw-answer.aw-field-retry{border-color:#c7293a;background:#fff8f8}
.aw-answer.aw-field-missing{border-color:#997825;background:#fffdf7}
@media(max-width:700px){.aw-hint{margin-left:23px}.aw-question-main{gap:5px}.aw-hint-toggle{min-width:48px;padding:8px 6px}}

/* A quieter hierarchy for the library and classroom planning pages. */
.nav a{border-radius:10px}
.hero{min-height:520px;padding:64px 0}
.hero h1{font-size:clamp(2.8rem,6vw,4.5rem)}
.hero p{max-width:650px;line-height:1.65}
.hero-emblem{width:min(28vw,320px);opacity:.11}
.page-hero{padding:40px 0 20px}
.page-hero h1{font-size:clamp(2.25rem,4.2vw,3.3rem);line-height:1.12;margin-top:10px;max-width:980px}
.page-hero p{max-width:780px;line-height:1.65;margin-top:14px}
.page-hero+.section-tight{padding-top:24px}
.section-head h2{font-size:clamp(1.85rem,3.3vw,2.55rem);line-height:1.16}
.library-filters{padding:20px;margin:0 0 14px;border:1px solid var(--sparrow-border);border-radius:var(--sparrow-card-radius);background:#fff;box-shadow:0 5px 18px rgba(16,34,61,.035)}
.library-filters .search{border-color:#c7cfda;border-radius:10px;background:#fcfcfb}
.library-filter-group .chip{border-radius:10px;border-color:#d5dbe3}
.library-filter-group .chip.active{border-color:var(--navy)}
.library-result-bar{margin-bottom:18px;min-height:36px}
.topic-card .card-body{padding:22px;gap:12px}
.topic-card .card-body h3{font-size:1.4rem;line-height:1.2}
.topic-card .topic-primary-actions{margin-top:auto;padding-top:4px}
.topic-card .topic-primary-actions .btn-outline{background:#fff;border-color:#cbd2dc}
.topic-card .topic-primary-actions .btn-outline:hover{background:#f6eedb;border-color:var(--gold-dark)}
.topic-card .topic-downloads{border-top-color:#e1e5eb}
.teacher-workspace{gap:24px}
.teacher-setup{border-top:3px solid var(--navy);padding:22px 26px}
.teacher-setup h2{font-size:1.65rem;line-height:1.25}
.teacher-selects{margin-top:18px}
.teacher-session-heading{align-items:center}
.teacher-session-heading h2{font-size:1.7rem;line-height:1.25;margin-top:8px}
.teacher-session-heading>p{padding:10px 14px;border:1px solid var(--sparrow-border);border-radius:10px;background:#fff;font-size:.875rem;line-height:1.5}
.teacher-session-heading>p small{font-size:.8125rem}
.teacher-session-steps .panel{border-top:3px solid var(--navy);box-shadow:0 5px 18px rgba(16,34,61,.045)}
.teacher-session-steps .panel:last-child{border-top-color:var(--gold);background:#fcf8ed}
.teacher-step-meta{align-items:center;color:var(--navy);font-size:.8125rem;letter-spacing:.08em}
.teacher-step-meta .teacher-step-label{display:inline-flex;align-items:center;gap:9px;color:var(--navy);font-weight:700;letter-spacing:.08em}
.teacher-step-number{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--navy);color:#fff;border-radius:50%;font-size:.875rem;letter-spacing:0}
.teacher-session-steps .panel:last-child .teacher-step-number{background:var(--gold);color:var(--navy)}
.teacher-step-meta small{font-size:.8125rem;color:var(--sparrow-secondary);font-weight:500;letter-spacing:0}
.teacher-session-steps h3{font-size:1.4rem;margin-top:16px}
.teacher-workspace .btn-outline{background:#fff;border-color:#cbd2dc}
.teacher-workspace .btn-outline:hover{background:#f6eedb;border-color:var(--gold-dark)}
.teacher-share{padding:24px 26px;border-top:3px solid var(--gold)}
.teacher-share h2{font-size:1.85rem;line-height:1.2}
.teacher-share .eyebrow{font-size:.75rem;letter-spacing:.14em}
.teacher-share .actions{margin-top:16px}
.teacher-copy-status:empty{min-height:0;margin-bottom:10px}
.teacher-print{background:#fff}
.teacher-print summary{color:var(--navy)}
@media(max-width:760px){
 .hero{min-height:0;padding:48px 0}.hero-emblem{width:230px;opacity:.07}
 .page-hero{padding-top:30px}.page-hero h1{font-size:clamp(2rem,6vw,2.7rem)}
 .page-hero+.section-tight{padding-top:20px}
 .library-filters{padding:16px;gap:16px}.library-filter-group{width:100%;gap:7px}
 .topic-card .card-body{padding:18px}.topic-card .card-body h3{font-size:1.35rem}
 .teacher-setup,.teacher-share{padding:20px}
 .teacher-session-heading>p{display:inline-block;margin-top:14px}
 .teacher-setup h2{font-size:1.5rem}.teacher-share h2{font-size:1.65rem}
}
