/* TOC Hebrew Learning dark visual language.
 * Derived from the public TOC Hebrew Learning Center's navy, gold and cyan palette.
 * Local-first: no external fonts or graphics required for offline use.
 */
:root{
 --paper:#020912;--surface:#061725;--ink:#eef5f8;--muted:#adbfcb;
 --teal:#34c5ed;--teal-dark:#1da5d1;--teal-light:#0b293a;
 --sand:#0a2431;--line:#22536b;--ochre:#e7b85d;--gold:#f2d28d;
 --error:#ffab9c;--error-bg:#321d2b;
 --shadow:0 14px 44px rgba(0,0,0,.2);
 --hl-bg:#020912;--hl-panel:#04131f;--hl-panel2:#061b2a;
 --hl-line:#1a5878;--hl-gold:#e7b85d;--hl-gold2:#f0d08c;
 --hl-cyan:#2cc5f4;--hl-muted:#9fb5c5;
 background:var(--paper);color:var(--ink);color-scheme:dark;
}
html,body{background:#020912;color:#eef5f8;}
body{background:radial-gradient(circle at 82% 5%,rgba(15,90,136,.09),transparent 35%),linear-gradient(180deg,#020912,#030d18 52%,#020912);}
h1,h2,h3{color:#f3f8fc;}
a{color:#69d9fa;}
a:hover{color:#f6d688;}
.site-header{height:auto;min-height:84px;background:rgba(4,12,23,.96);border-bottom:1px solid #22536b;box-shadow:0 3px 22px #0005;}
.header-inner{height:auto;min-height:84px;padding-top:10px;padding-bottom:10px;}
.brand{color:#f2d28d;}
.brand-symbol{background:#071a29!important;color:#f0cd77!important;border:1px solid #af8954!important;box-shadow:0 0 28px rgba(235,196,95,.08);}
.brand-copy strong{font-family:Georgia,'Times New Roman',serif;letter-spacing:.02em;color:#f2d28d;}
.brand-copy>span{color:#96b9d3;letter-spacing:.16em;}
.main-nav a{color:#d8e8f0;}
.main-nav a:hover,.main-nav a[aria-current="page"]{color:#f6d687;}
.main-nav a[aria-current="page"]{border-color:#d5a850;}
.main-content{background:transparent;}
.page-heading h1,.home-copy h1,.games-heading h1{font-family:'Arial Narrow','Barlow Condensed','Oswald',Impact,Arial,sans-serif;font-weight:750;letter-spacing:-.025em;text-wrap:balance;}
.page-heading>p:last-child,.home-copy>.intro,.path-intro{color:#b8cad4;}
.eyebrow,.activity-type,.activity-kicker .activity-count{color:#48c9ed;}
.site-footer{background:#03101a;color:#a4b6c5;border-top:1px solid #214c64;}
.site-footer>span:first-child{color:#e5c57b;}
.local-status{color:#94c6d6;}
.status-dot{background:#46c5ba;}
.icon-button{background:#081d2b;border:1px solid #315c73;color:#e9f3f7;}
.icon-button:hover{background:#12334a;border-color:#4ca4c6;}
button{accent-color:#d8ab5e;}
.button{background:linear-gradient(135deg,#11547b,#0b3859)!important;border:1px solid #3c9bc3!important;color:#f4f8fc!important;border-radius:7px!important;box-shadow:0 3px 12px #0002;transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;}
.button:hover:not(:disabled){background:linear-gradient(135deg,#17688f,#0d496b)!important;border-color:#e5bf74!important;transform:translateY(-1px);box-shadow:0 5px 18px #0004;}
.button.secondary{background:#071d2c!important;color:#d2e7ee!important;border-color:#34647c!important;}
.button.secondary:hover:not(:disabled){background:#0e3044!important;}
.text-button{color:#6bd8f9;}
.text-button:hover{color:#f5d688;}
.home-hero{border:1px solid #1d5776;background:linear-gradient(110deg,#041524,#061d2d 60%,#04121d);box-shadow:0 14px 50px #0003;position:relative;overflow:hidden;}
.home-hero:before{content:"א";position:absolute;right:20%;top:-18%;font:700 clamp(140px,24vw,340px)/1 Georgia,serif;color:rgba(238,199,112,.07);pointer-events:none;}
.home-copy,.hero-art{position:relative;z-index:1;}
.home-copy h1{color:#f0d28d;}
.home-copy h1 span{color:#e8f3f6;}
.hero-art{background:radial-gradient(circle at center,rgba(17,113,165,.18),transparent 67%);border-color:#29536b;}
.hero-hebrew{color:#f0c86d;text-shadow:0 3px 20px #0009;}
.art-topline,.art-bottomline{color:#85b6ca;}
.home-lower,.stage-grid{gap:18px;}
.stage-card,.course-card,.stat-card,.progress-lesson,.lesson-list-card,.course-note,.review-preview,.review-item,.progress-table-wrap,.summary-card,.empty-state{
 background:linear-gradient(150deg,#061b2a,#04121e)!important;color:#eaf4f8!important;border:1px solid #224e68!important;box-shadow:0 5px 18px rgba(0,0,0,.12);
}
.stage-card:hover,.lesson-list-card:hover{border-color:#cbad67!important;background:linear-gradient(150deg,#09293b,#061824)!important;transform:translateY(-1px);}
.stage-card h2,.lesson-list-card h3,.course-card h2,.section-heading h2{color:#f1d18b;}
.stage-card p,.lesson-card-copy p,.course-note p,.review-preview p,.progress-lesson p{color:#b8c9d4;}
.stage-number,.lesson-number{background:#0d2f45;color:#eed08c;border:1px solid #37637c;}
.lesson-number.done{background:#183a38;color:#7ce0c0;}
.pill.neutral{background:#0b2a3b;border:1px solid #37617a;color:#c8dae4;}
.progress-track{background:#183143;}
.progress-track>span{background:linear-gradient(90deg,#188ab7,#e6b858);}
.stage-section{background:#041421;border:1px solid #24556d;}
.stage-section>summary{background:#061c2a;color:#eaf5f7;border-color:#24556d;}
.stage-section>summary:hover{background:#082539;}
.stage-section-body{background:#030f1b;}
.stage-goal,.stage-readiness p{color:#aec6d3;}
.lesson-shell{max-width:940px;}
.lesson-topbar{color:#b8ccd5;}
.lesson-progress-label,.lesson-breadcrumb{color:#91b0bf;}
.activity,.lesson-plan{background:linear-gradient(160deg,#071b2b,#041422 80%)!important;border:1px solid #25546d!important;color:#f1f6f8!important;box-shadow:0 14px 48px #0004;border-radius:13px;}
.activity h1,.lesson-plan h1{color:#f2d18b;font-family:'Arial Narrow','Barlow Condensed',Impact,Arial,sans-serif;font-weight:700;letter-spacing:-.025em;}
.activity-prompt,.activity-body{color:#b8cbd3;}
.activity-footer{border-color:#31566d;}
.lesson-plan-summary,.lesson-practice-plan,.lesson-objectives,.plan-note,.lesson-recap{color:#bbccd8;}
.lesson-objectives h2,.lesson-practice-plan h2,.lesson-recap h2{color:#f4d591;}
.narration-player,.pronunciation-panel{background:#061b2b!important;border:1px solid #245a76!important;border-radius:12px!important;color:#dceff7;}
.narration-heading strong,.pronunciation-panel-title strong,.pronunciation-eyebrow{color:#f2d18b!important;}
.narration-heading span,.narration-status,.pronunciation-panel-title p,.audio-status{color:#abc4d0;}
.narration-rate{background:#071e2c;color:#e9f3f8;border:1px solid #36647b;}
.narration-progress{accent-color:#dfb960;}
.pronunciation-sample{border-color:#24536a;}
.pronunciation-sample>.hebrew,.example .hebrew{color:#f1d184;}
.audio-player .audio-normal{background:#09364c!important;border-color:#387895!important;color:#e9f7fd!important;}
.audio-player .audio-slow{background:#071a26!important;border-color:#2b566d!important;color:#b8d7e4!important;}
.target-display,.listening-focus,.hebrew-keyboard,.recorder,.hint-box{background:#071f2c!important;border:1px solid #2c5b71!important;color:#dcebf1!important;}
.target-display .hebrew{color:#f3d58f;}
.symbol-card,.example{background:#061b29;border:1px solid #265771;color:#dceaf1;}
.symbol-card:hover,.example:hover{border-color:#c6a15e;}
.symbol-card h2{color:#f1d48b;}
.symbol-card p,.example-english,.symbol-sound{color:#abc3cf!important;}
.symbol-pronunciation,.example-hebrew-button{color:#f1cd7e!important;}
.symbol-pronunciation:hover,.example-hebrew-button:hover{background:#0d3044;}
.symbol-pronunciation svg,.example-hebrew-button svg{color:#52d0ef!important;}
.symbol-pronunciation .hebrew{color:#f0cd7e!important;}
.teaching-picture-button,.alphabet-chart{background:linear-gradient(140deg,#061b2a,#04131f)!important;border:1px solid #285c79!important;color:#dceaf2;}
.teaching-picture-button:hover,.alphabet-key:hover{border-color:#d5ad60!important;background:#0c2b3e!important;transform:translateY(-1px);}
.picture-play-hint,.alphabet-audio-status{color:#54cbed;}
.alphabet-chart-heading h2{color:#f1d28a!important;font-family:Georgia,serif;}
.alphabet-chart-heading p{color:#b5c6d0!important;}
.alphabet-table caption{color:#f0cd85!important;}
.alphabet-key{background:linear-gradient(155deg,#081e2e,#04121e)!important;border:1px solid #285a73!important;color:#f3d186!important;border-radius:7px!important;transition:transform .18s ease,border-color .18s ease,background .18s ease;}
.alphabet-name{color:#dce8ee!important;}
.alphabet-character{color:#f1cd7e!important;}
.alphabet-key svg{color:#4cc9ed!important;}
.alphabet-key:hover .alphabet-character{color:#fff0b6!important;}
.featured-study-material{margin:8px 0 22px;padding:22px 26px 24px;background:
 radial-gradient(circle at 82% 30%,rgba(37,173,220,.14),transparent 38%),
 linear-gradient(130deg,#082338,#04111e 80%);border:1px solid #386e8a;border-radius:9px;position:relative;overflow:hidden;
 box-shadow:inset 0 0 0 1px rgba(245,208,133,.05),0 12px 28px #0002;}
.featured-study-material:after{content:"";position:absolute;top:13px;bottom:13px;left:0;width:3px;background:linear-gradient(#e7b85d,#1c92bb);}
.featured-label{font-size:.69rem;font-weight:750;letter-spacing:.19em;color:#54cdf2;margin:0 0 8px;text-transform:uppercase;}
.featured-study-content{display:flex;align-items:center;justify-content:space-around;gap:26px;flex-wrap:wrap;}
.featured-study-word{text-align:center;flex:1 1 260px;min-width:0;overflow-wrap:anywhere;}
.featured-hebrew-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:8px 17px;border:1px solid transparent;border-radius:7px;background:transparent;color:#f2d48f;cursor:pointer;max-width:100%;}
.featured-hebrew-button:hover{border-color:#366f88;background:#0b2b3e;}
.featured-hebrew-button .hebrew,.featured-study-word>.hebrew{font-size:clamp(3rem,8vw,6rem);line-height:1.5;color:#f2d287;text-shadow:0 4px 16px #0009;overflow-wrap:anywhere;}
.featured-hebrew-button svg{color:#54ccef;}
.featured-meaning{color:#e8f4f9;font-size:clamp(1rem,2.2vw,1.35rem);font-weight:650;margin-top:0;}
.featured-transliteration{color:#a9c6d6;font-size:.87rem;margin-top:3px;}
.featured-picture{flex:0 1 250px;min-width:160px;margin:0!important;padding:8px!important;border-color:#335e76!important;}
.featured-picture .teaching-visual{max-width:100%;max-height:190px;}
.full-teaching-text.editorial-teaching{margin:20px 0 24px;padding:26px 28px;background:linear-gradient(160deg,#071e2e,#061623)!important;border:1px solid #245971!important;border-radius:10px!important;color:#e0eaf0!important;box-shadow:0 10px 34px #0002;}
.editorial-heading{display:flex;align-items:center;gap:12px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid #2b5268;}
.editorial-heading svg{color:#f0ce84;}
.editorial-heading h2{margin:0;color:#f3d18d!important;font:700 clamp(1.26rem,2.7vw,1.55rem)/1.2 Georgia,serif;letter-spacing:0;}
.teaching-thought{padding:0 0 19px;margin-bottom:20px;border-bottom:1px solid #1f455b;}
.teaching-thought:last-child{border:0;margin:0;padding:0;}
.teaching-thought h3{color:#4ed0f4;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;margin:0 0 10px;line-height:1.5;font-weight:700;}
.teaching-thought p{color:#d9e6ec;font-size:calc(.99rem * var(--text-scale));line-height:1.82;margin:0 0 11px;max-width:66ch;overflow-wrap:anywhere;}
.teaching-thought p:last-child{margin-bottom:0;}
.teaching-thought .hebrew{color:#f2d18b;font-size:1.22em;font-weight:600;}
.full-teaching-text:not(.editorial-teaching){background:#071c2b!important;color:#dce7ed!important;border-color:#25556b!important;}
.full-teaching-text h2{color:#f2d18a!important;}
.teaching-transcript-body{color:#d7e6ec;}
.transcript-hebrew{color:#f2d18b;}
.games-home-promo{display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap;padding:24px 28px;margin:25px 0;background:linear-gradient(115deg,#0a2c45,#051522 76%);border:1px solid #315d7b;box-shadow:inset 3px 0 #e5b45c;}
.games-home-promo h2{font:650 clamp(1.35rem,3vw,2rem)/1.15 Georgia,serif;color:#f4d38b;margin:5px 0 9px;}
.games-home-promo p:last-child{color:#bacdd8;max-width:630px;font-size:.88rem;}
.game-tile,.games-memory-card,.games-fill-option,.games-controls select{font:inherit;}
.games-heading{padding:32px 31px 28px;border:1px solid #285a77;background:linear-gradient(125deg,#08253a,#04111f 72%);position:relative;overflow:hidden;}
.games-heading:after{content:"אבג";position:absolute;inset:auto 1% -10% auto;transform:rotate(-10deg);font:750 clamp(95px,18vw,270px)/1 Georgia,serif;color:rgba(236,196,107,.06);pointer-events:none;}
.games-heading>*{position:relative;z-index:1;}
.games-heading h1{color:#f2d28d;margin:8px 0 14px;font-size:clamp(2.3rem,6vw,4rem);}
.games-eyebrow{color:#56cdec;font-size:.7rem;letter-spacing:.18em;font-weight:800;}
.games-heading p:last-child{color:#bbccd6;max-width:710px;line-height:1.6;}
.games-page{max-width:1120px;margin:auto;}
.games-controls{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;margin:22px 0 14px;padding:20px 23px;background:#061925;border:1px solid #295775;}
.games-filter{display:flex;flex-direction:column;gap:7px;flex:1 1 155px;min-width:120px;color:#ebd28f;font-size:.78rem;font-weight:700;}
.games-filter select{width:100%;min-height:46px;border:1px solid #396b85;background:#08283b;color:#eef4f8;border-radius:5px;padding:9px 12px;}
.games-new-round{min-height:46px;}
.games-status-bar{display:flex;justify-content:space-between;gap:12px;color:#f2d18a;font-weight:600;font-size:.86rem;margin:16px 4px;}
.games-live-status{color:#8ed8ed;font-size:.84rem;line-height:1.65;min-height:1.5em;margin:8px 2px 17px;}
.games-board{padding:22px;background:linear-gradient(155deg,#061c2a,#03111e);border:1px solid #285876;border-radius:9px;min-height:250px;}
.games-instructions{color:#c0d0d9;font-size:.9rem;margin-bottom:17px;}
.games-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.games-match-column{display:grid;gap:10px;align-content:start;min-width:0;}
.game-tile{width:100%;min-height:78px;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere;padding:13px 16px;background:#082337;border:1px solid #326b88;border-radius:7px;color:#eef5f8;transition:transform .17s ease,border-color .17s ease,background .17s ease;}
.game-tile:hover:not(:disabled){border-color:#dfb968;background:#0b3045;transform:translateY(-1px);}
.game-tile[data-solved="true"]{border-color:#245f58;color:#8fabae;background:#092722;opacity:.6;}
.game-tile[aria-pressed="true"]{background:#124263;border-color:#f2d184;box-shadow:0 0 0 2px #f2d18433;}
.game-hebrew{color:#f1d18c;font-size:clamp(1.65rem,4vw,2.3rem);line-height:1.45;}
.game-english{font-size:.94rem;line-height:1.5;}
.games-memory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.games-memory-card{min-height:125px;display:flex;align-items:center;justify-content:center;background:#08263a;border:1px solid #326a86;border-radius:8px;color:#f3d18a;padding:10px;text-align:center;overflow-wrap:anywhere;transition:background .18s ease,transform .18s ease;}
.games-memory-card:hover:not(:disabled){transform:translateY(-2px);border-color:#efca7c;}
.games-memory-card[data-open="true"]{background:#0d3145;border-color:#c2a05a;}
.games-memory-card[data-matched="true"]{background:#0d3836;border-color:#328875;}
.games-card-back{font:650 clamp(2rem,6vw,3rem)/1 'TOC Hebrew',Georgia,serif;color:#e6be6a;}
.games-clue{font-size:1.1rem;font-weight:700;color:#f1d28f;margin-bottom:16px;}
.games-blank{font-size:clamp(2.1rem,5vw,3.3rem);color:#f5d992;text-align:center;background:#061824;border:1px solid #2d5d7a;border-radius:7px;padding:18px 10px;margin-bottom:20px;min-height:100px;}
.games-fill-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.games-fill-option{min-height:78px;padding:13px 15px;background:#08283d;border:1px solid #376781;border-radius:7px;color:#eed08d;font-size:clamp(1.4rem,3vw,1.9rem);}
.games-fill-option:hover:not(:disabled){background:#103c53;border-color:#f1cd85;}
.games-fill-option[data-correct="true"]{background:#0b4235;border-color:#62d1a5;}
.games-fill-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;}
.games-finish{text-align:center;padding:30px 10px;}
.games-finish-glyph{display:block;font:700 clamp(2.5rem,8vw,5rem)/1.5 'TOC Hebrew',Georgia,serif;color:#f5d993;}
.games-finish h2{font:650 clamp(1.6rem,4vw,2.7rem)/1.2 Georgia,serif;color:#eacb7c;margin:10px 0;}
.games-finish p{max-width:480px;margin:0 auto 24px;color:#b7cbd6;}
.games-empty{color:#e8c88e;line-height:1.6;}
.games-progress-note{margin:16px 0;color:#9cb6c5;font-size:.8rem;line-height:1.55;}
.choices,.progress-table,.answer-input,.hebrew-keyboard,.game-tile{color:#eaf4f8;}
.choice{background:#071d2b;border-color:#2d5872;color:#e7f1f8;}
.choice:hover{background:#0c2a3f;border-color:#dfb768;}
.choice:has(input:checked){background:#11344a;border-color:#e1b85e;}
.choice-label{color:#e2ecf0;}
.choice.success,.feedback.good{background:#0d342d;color:#b7efd7;border-color:#328f71;}
.choice.failed,.feedback.retry{background:#321e22;color:#f3b8ac;border-color:#a96f61;}
.answer-input{background:#061b2a;border-color:#33637a;color:#f0f6f8;}
.answer-input:disabled{background:#132c3c;color:#b0bec8;}
.answer-input::placeholder{color:#adc2cf;}
.input-note,.helper-label{color:#a5bac7;}
.key{background:#08293e;border-color:#36667f;color:#ebd28b;}
.key:hover{background:#133d54;}
.recorder,.hebrew-keyboard{background:#061b2a!important;}
.settings-dialog{background:#061623;border-color:#245772;color:#eaf5f8;}
.settings-top h2,.settings-section h3{color:#f3d28d;}
.settings-row,.settings-section p,.settings-section small{color:#b8cbd5;}
.settings-row{border-color:#27546e;}
.progress-table th,.progress-table thead{background:#082335;color:#d7c083;}
.progress-table td{color:#dae9ee;border-color:#23485f;}
.progress-table .word-cell .hebrew{color:#f1d187;}
.progress-legend,.schedule-note,.sources-panel{color:#afc2ce;}
/* Keep all interaction and animation optional on touch and low-motion devices. */
@media(max-width:760px){
 .header-inner{gap:12px;padding:12px 16px;flex-wrap:wrap;justify-content:center;}
 .brand{flex:1 1 200px;}
 .main-nav{order:3;flex:1 1 100%;display:flex;justify-content:space-around;gap:3px;}
 .main-nav a{padding:11px 6px;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:.83rem;}
 .header-tools{flex:0 0 auto;}
 .featured-study-material{padding:17px 14px 20px;}
 .featured-study-content{gap:12px;}
 .featured-hebrew-button .hebrew{font-size:clamp(2.8rem,12vw,5rem);}
 .full-teaching-text.editorial-teaching{padding:20px 16px;}
 .teaching-thought h3{font-size:.74rem;}
 .teaching-thought p{font-size:calc(.94rem * var(--text-scale));line-height:1.8;}
 .games-controls{padding:16px 12px;gap:12px;}
 .games-board{padding:14px;}
 .games-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
 .games-memory-card{min-height:92px;padding:6px;}
 .game-tile{min-height:70px;padding:12px 8px;}
 .games-heading{padding:25px 18px;}
 .games-home-promo{padding:19px;}
}
@media(max-width:400px){
 .header-inner{padding:10px 11px;}
 .local-status{display:none;}
 .game-tile{min-height:70px;}
 .game-hebrew{font-size:1.62rem;}
 .game-english{font-size:.78rem;}
 .games-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .games-memory-card{min-height:82px;}
 .games-fill-options{gap:8px;}
 .games-fill-option{min-height:68px;padding:8px;}
 .games-controls .games-filter{flex-basis:100%;}
 .featured-picture{width:100%;flex:1 1 100%;}
}
@media(prefers-reduced-motion:no-preference){
 .featured-study-material{animation:toc-feature-reveal .4s ease-out both;}
 .games-heading{animation:toc-feature-reveal .45s ease-out both;}
 @keyframes toc-feature-reveal{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important;transform:none!important;}
}
@media(hover:none){
 .button:hover,.game-tile:hover,.games-memory-card:hover,.games-fill-option:hover,.alphabet-key:hover,.teaching-picture-button:hover{transform:none!important;}
}

/* V6: clear, unboxed TOC home, dedicated level screens, letter study and microphone */
.home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;gap:clamp(28px,5.2vw,90px)!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;min-height:390px;padding:18px 0 32px;align-items:center;}
.home-hero::before,.home-hero::after,.hero-art::before,.hero-art::after{display:none!important;content:none!important;}
.home-copy{padding:7px 0 12px!important;max-width:620px;}
.home-copy .eyebrow{margin-bottom:16px;color:#58d4f5;letter-spacing:.2em;}
.home-copy h1{font-family:Impact,'Arial Narrow','Barlow Condensed',Arial,sans-serif;font-size:clamp(3rem,5.2vw,5.1rem)!important;font-weight:700;line-height:1.06!important;letter-spacing:-.036em!important;margin:0 0 24px!important;max-width:620px!important;color:#f5d792;text-shadow:0 5px 28px rgba(246,202,113,.15),0 17px 50px rgba(0,0,0,.64);}
.home-copy h1 span{margin-top:7px;color:#ecf6fe;text-shadow:0 3px 18px rgba(105,195,249,.14),0 14px 48px #0008;}
.home-copy>.intro{max-width:550px!important;color:#c2d4e0!important;line-height:1.77;margin:0 0 28px!important;font-size:clamp(.93rem,1.35vw,1.07rem)!important;}
.hero-action-note{color:#b1c9d7!important;font-size:.81rem!important;margin-top:15px!important;}
.hero-art{border:0!important;border-radius:0!important;box-shadow:none!important;background:radial-gradient(ellipse at 52% 51%,rgba(38,145,194,.26),rgba(8,38,60,.14) 36%,transparent 75%)!important;min-height:365px!important;padding:24px 22px 27px!important;overflow:visible!important;display:flex;flex-direction:column;justify-content:center;}
.hero-art .art-topline{display:flex;gap:18px;justify-content:space-between;align-items:center;color:#85cadf!important;font-size:.66rem!important;letter-spacing:.17em!important;line-height:1.5;}
.art-topline .small-spark{color:#e6b85d!important;font-size:1.6rem;filter:drop-shadow(0 0 10px rgba(231,184,93,.28));}
.hero-hebrew{font-family:'TOC Hebrew','Arial Hebrew',Georgia,serif!important;color:#f2c974!important;font-size:clamp(5rem,9vw,8.7rem)!important;line-height:1.32!important;margin:15px auto 0!important;padding:2px 6px!important;text-align:center;filter:drop-shadow(0 8px 14px rgba(0,0,0,.48));text-shadow:0 0 16px rgba(239,185,79,.27),0 12px 48px rgba(241,196,103,.13),0 26px 66px #0007;}
.hero-translation{color:#e4d1a2!important;text-align:center;font-size:clamp(.9rem,1.45vw,1.1rem)!important;letter-spacing:.025em;}
.art-bottomline{border:0!important;padding:13px 0 0!important;margin:22px 0 0!important;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#b3cddd!important;font-size:.73rem!important;}
.art-bottomline strong{display:block;color:#e9f2f7!important;font-size:.86rem;margin-bottom:6px;text-shadow:0 2px 14px #0007;}
.art-bottomline svg{color:#8ad7f1;filter:drop-shadow(0 0 8px #35adee33);}
.games-home-promo{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;margin:17px 0 30px!important;padding:22px 0 23px!important;display:flex!important;justify-content:space-between;align-items:center;gap:24px;}
.games-home-promo::before,.games-home-promo::after{display:none!important;}
.games-home-promo .eyebrow{margin-bottom:8px;color:#58c9ed;}
.games-home-promo h2{font:700 clamp(1.65rem,3.2vw,2.5rem)/1.14 Impact,'Arial Narrow',Arial,sans-serif!important;letter-spacing:-.018em;color:#f3d18c;margin:0 0 8px!important;text-shadow:0 6px 28px #0008;}
.games-home-promo p:last-child{line-height:1.6;color:#b6d1de;}
.games-home-promo>.button{flex-shrink:0;min-height:51px;}
.home-learning-only{display:block!important;grid-template-columns:1fr!important;}
.home-learning-only>section{width:100%;max-width:100%;}
.home-learning-only .stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.stage-grid.level-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:32px;}
.level-visual-card{border-radius:13px!important;padding:22px!important;display:flex!important;flex-direction:column!important;min-width:0;align-items:stretch;gap:0;background:linear-gradient(145deg,#082339,#04121e 80%)!important;position:relative;isolation:isolate;overflow:hidden;box-shadow:0 11px 30px #0002!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;}
.level-visual-card::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 17% 15%,rgba(70,188,237,.12),transparent 45%);opacity:.63;transition:opacity .23s ease;}
.level-visual-card:hover:not(:disabled){transform:translateY(-4px)!important;border-color:#d8b66f!important;box-shadow:0 18px 46px rgba(0,0,0,.4),0 0 24px rgba(38,154,204,.12)!important;}
.level-visual-card:hover::after{opacity:1;}
.level-visual-card:active{transform:translateY(-1px) scale(.99)!important;}
.stage-card-top{margin:0 0 17px!important;display:flex;align-items:center;justify-content:space-between;}
.stage-level-title{color:#f6d18e;font-size:.74rem;font-weight:800;letter-spacing:.2em;}
.stage-lessons-total{color:#97cce2;font-size:.72rem;border:1px solid #335d78;border-radius:20px;padding:4px 10px;}
.stage-visual-layout{display:grid;grid-template-columns:minmax(86px,34%) minmax(0,1fr);gap:18px;align-items:center;flex:1;}
.stage-visual-art{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:140px;padding:16px 9px;border:1px solid #336982;border-radius:9px;background:radial-gradient(circle at center,#103b57,#061827 68%);box-shadow:inset 0 0 26px rgba(24,132,187,.1);}
.stage-visual-glyph{font-family:'TOC Hebrew',Georgia,serif!important;color:#f6d592!important;font-size:clamp(2rem,4vw,3.25rem)!important;line-height:1.3!important;white-space:normal;overflow-wrap:anywhere;text-align:center;text-shadow:0 0 22px rgba(238,184,94,.22);}
.stage-visual-label{color:#87cbe7;font-weight:600;letter-spacing:.04em;font-size:.63rem;text-align:center;line-height:1.3;}
.stage-visual-copy h3{margin:0 0 9px!important;font-size:1.1rem!important;line-height:1.3;color:#f0d392!important;}
.stage-visual-copy p{font-size:.83rem!important;line-height:1.6;color:#b9cddb!important;}
.level-visual-card .stage-card-bottom{margin:18px 0 12px!important;display:flex;justify-content:space-between;align-items:center;gap:12px;}
.stage-open-link{display:inline-flex;align-items:center;gap:6px;color:#79d9f4;font-weight:700;font-size:.78rem;}
.level-visual-card:hover .stage-open-link svg{transform:translateX(3px);}
.level-detail-page,.level-overview-page{max-width:1152px;margin:0 auto;}
.level-top-navigation,.level-bottom-navigation,.lesson-page-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 22px;}
.level-bottom-navigation,.lesson-page-navigation.bottom{padding:20px 0 4px;margin:27px 0 0;border-top:1px solid #27546e;}
.level-page-count{color:#f2cf85;letter-spacing:.16em;font-weight:750;font-size:.75rem;}
.level-page-heading{max-width:900px!important;margin-bottom:22px!important;}
.level-page-heading h1{color:#f3d38b;font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:clamp(2.1rem,4.8vw,3.6rem);margin-bottom:13px;}
.level-page-heading>p:not(.eyebrow){color:#bacee0;}
.level-page-lessons-count{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:19px;color:#f2d18d;font-size:.95rem;font-weight:650;}
.level-page-lessons-count svg{color:#4ed4f4;}
.level-page-lessons-count span{margin-left:auto;color:#9fc8d9;font-weight:500;font-size:.79rem;}
.level-detail-page>.stage-goal{border-left:3px solid #cdaa65;background:linear-gradient(90deg,#08293e,transparent);padding:15px 21px;color:#d9e5ea!important;margin:16px 0 30px;}
.level-lessons-section .section-heading{margin-bottom:12px;}
.level-lessons-section .section-heading h2{color:#f2d08a;}
.level-navigation-hint{color:#a5bdcb;margin-bottom:18px;font-size:.85rem;line-height:1.6;}
.level-lesson-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.level-lesson-list .lesson-list-card{padding:17px!important;gap:12px!important;border-radius:10px!important;min-height:120px!important;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease!important;}
.level-lesson-list .lesson-list-card:hover{transform:translateY(-3px)!important;border-color:#ddb56a!important;box-shadow:0 10px 27px #0006!important;}
.level-lesson-list .lesson-list-card:active{transform:translateY(-1px) scale(.995)!important;}
.lesson-list-card .lesson-number{box-shadow:0 0 17px rgba(224,174,91,.06);}
.lesson-list-card:hover .lesson-card-meta svg{transform:translateX(4px);}
.lesson-page-navigation.top{padding:2px 0 13px;margin:0 0 21px;border-bottom:1px solid #28546b;}
.lesson-page-navigation .button{min-height:44px;font-size:.78rem;padding:10px 14px;}
.lesson-fullpage{animation:toc-lesson-enter .3s ease both;}
.lesson-speaking-accordion{margin:23px 0;border:1px solid #2d5e7d;border-radius:12px;background:linear-gradient(150deg,#061e30,#061726);}
.lesson-speaking-accordion>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;color:#f2d693;font-size:.96rem;font-weight:700;}
.lesson-speaking-accordion>summary small{display:block;color:#aad3e3;font-size:.72rem;font-weight:400;margin-top:4px;}
.lesson-speaking-accordion>summary svg{color:#53ccea;flex:none;}
.lesson-speaking-accordion[open]>summary{border-bottom:1px solid #306079;}
.lesson-speaking{padding:22px;}
.speaking-heading h2{font:650 1.6rem/1.2 Georgia,serif;color:#f2d58b;margin:0 0 10px;}
.speaking-heading p:not(.eyebrow){font-size:.86rem;line-height:1.6;color:#b7ccda;margin-bottom:17px;}
.speaking-select-label{display:flex;flex-direction:column;gap:9px;font-size:.79rem;color:#9bd5e9;font-weight:700;margin-bottom:13px;}
.speaking-select-label select{width:100%;max-width:650px;padding:12px;background:#082b3e;border:1px solid #39748d;border-radius:8px;color:#eef6fc;font-size:.87rem;min-height:47px;}
.speaking-preview{display:flex;align-items:center;gap:20px;justify-content:space-between;flex-wrap:wrap;padding:18px;border:1px solid #315a76;background:#071f31;border-radius:9px;}
.speaking-model{color:#f1d08a;font-size:clamp(2.6rem,6vw,4rem);line-height:1.5;text-align:center;flex:1 1 120px;}
.speaking-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;justify-content:center;flex:2 1 310px;}
.speaking-actions button{min-height:44px;font-size:.82rem;}
.speaking-feedback{margin:14px 0 10px;min-height:1.5em;color:#d3e4ee;font-size:.85rem;line-height:1.6;}
.speaking-privacy{margin-top:11px;color:#93b2c6;font-size:.73rem;line-height:1.6;}
.letter-insights{margin:22px 0 24px;padding:21px 24px;background:linear-gradient(145deg,#08273a,#051824 80%);border:1px solid #33647f;border-radius:12px;}
.letter-insights-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px;}
.letter-insights-title h2{font:650 1.3rem/1.2 Georgia,serif;color:#f2d48a;}
.letter-gematria-tag{color:#f9dda1;background:#143b50;border:1px solid #ad9055;border-radius:100px;padding:7px 13px;font-size:.78rem;font-weight:750;}
.letter-insights-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px;}
.letter-fact{padding:15px 16px;background:#041724;border:1px solid #29556e;border-radius:8px;}
.letter-fact strong{font-size:.76rem;color:#72d4f0;text-transform:uppercase;letter-spacing:.06em;display:block;margin-bottom:9px;}
.letter-fact p{color:#f1d58a;line-height:1.5;font-size:1rem;}
.letter-fact small{color:#a8c0d2;font-size:.73rem;display:block;margin-top:7px;}
.letter-mark-lesson{padding:18px 0;border-top:1px solid #2c546d;}
.letter-mark-lesson h3{color:#f2d48a;font-size:1.05rem;margin-bottom:10px;}
.letter-mark-lesson p{color:#dce9ed;line-height:1.75;margin:0 0 12px;max-width:72ch;font-size:.91rem;}
.mark-reference-toggle{padding-top:12px;border-top:1px solid #2d536c;}
.mark-reference-toggle>summary{display:flex;align-items:center;gap:11px;cursor:pointer;color:#73d8f4;font-weight:700;font-size:.84rem;padding:11px 0;}
.mark-reference{margin-top:18px;}
.mark-reference>h2{color:#f3d18c;font:600 1.2rem/1.2 Georgia,serif;margin:0 0 9px;}
.mark-reference-intro{color:#b4cddb;line-height:1.72;margin:0 0 15px;font-size:.84rem;}
.mark-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;}
.mark-card{background:#061b2b;border:1px solid #305c76;border-radius:8px;padding:14px 13px;}
.mark-symbol{font-size:clamp(2.6rem,4vw,3.4rem);color:#f1d28b;display:block;text-align:center;line-height:1.55;}
.mark-card h3{font-size:.87rem;color:#67d2ef;margin:0 0 5px;}
.mark-card p{color:#becfd8;font-size:.76rem;line-height:1.55;margin-bottom:5px;}
.mark-card .mark-position{color:#edd18d;font-weight:700;}
.alphabet-fact-note{color:#a8c1cf;font-size:.75rem;line-height:1.7;margin:15px 0 3px;}
.alphabet-key{min-height:136px!important;position:relative;padding:20px 5px 11px!important;gap:5px!important;}
.alphabet-key .alphabet-number{position:absolute;top:5px;right:9px;color:#f3cd84;font-size:.7rem;font-weight:800;}
.alphabet-key .alphabet-character{font-size:clamp(2rem,3.4vw,2.55rem);}
.alphabet-key .alphabet-name{font-size:.71rem;line-height:1.25;}
.alphabet-origin{font-size:.63rem;color:#91c9df;line-height:1.25;text-align:center;overflow-wrap:anywhere;padding:0 2px;max-width:100%;}
.alphabet-key:hover{transform:translateY(-3px)!important;box-shadow:0 11px 20px #0007,0 0 16px rgba(245,206,122,.12);}
.alphabet-key:active{transform:translateY(-1px) scale(.985)!important;}
.alphabet-table{min-width:510px!important;}
@keyframes toc-lesson-enter{from{opacity:.72;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px){
 .home-hero{grid-template-columns:1fr 1fr!important;gap:30px!important;}
 .home-copy h1{font-size:clamp(2.7rem,5vw,4rem)!important;}
 .hero-hebrew{font-size:clamp(4.4rem,9vw,7rem)!important;}
 .stage-visual-layout{grid-template-columns:minmax(70px,30%) minmax(0,1fr);}
}
@media(max-width:760px){
 .home-hero{grid-template-columns:1fr!important;gap:22px!important;margin:0 0 15px!important;padding:12px 0 14px!important;}
 .home-copy h1{font-size:clamp(3rem,11vw,4.3rem)!important;max-width:620px!important;}
 .home-copy>.intro{max-width:660px!important;}
 .hero-art{min-height:275px!important;max-width:650px;margin:0 auto;width:100%;padding:15px 16px!important;}
 .hero-hebrew{font-size:clamp(4.6rem,15vw,7rem)!important;margin:7px auto 0!important;}
 .games-home-promo{margin:6px 0 27px!important;padding:16px 0!important;gap:18px;}
 .home-learning-only .stage-grid,.stage-grid.level-overview-grid{grid-template-columns:1fr!important;}
 .stage-visual-layout{grid-template-columns:minmax(90px,32%) minmax(0,1fr);}
 .level-lesson-list{grid-template-columns:1fr!important;}
 .level-page-heading{margin-top:18px;}
 .lesson-page-navigation{justify-content:center;}
 .speaking-preview{flex-direction:column;}
 .speaking-model{flex:0 0 auto;}
 .speaking-actions{flex:0 0 auto;width:100%;}
 .letter-insights-main{grid-template-columns:1fr;}
 .mark-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .alphabet-key{min-height:118px!important;}
}
@media(max-width:410px){
 .home-copy h1{font-size:clamp(2.6rem,10.5vw,3.1rem)!important;}
 .hero-art{min-height:240px!important;}
 .hero-hebrew{font-size:clamp(4rem,15vw,5.6rem)!important;}
 .hero-art .art-topline{font-size:.55rem!important;}
 .art-bottomline{font-size:.66rem!important;}
 .stage-visual-layout{grid-template-columns:90px minmax(0,1fr);gap:12px;}
 .stage-visual-glyph{font-size:2rem!important;}
 .level-visual-card{padding:16px!important;}
 .mark-grid{grid-template-columns:1fr;}
 .speaking-actions button{flex:1 1 120px;}
}
@media(prefers-reduced-motion:reduce){
 .lesson-fullpage,.level-visual-card,.lesson-list-card,.alphabet-key,.stage-open-link svg{animation:none!important;transition:none!important;transform:none!important;}
}
@media(hover:none){
 .level-visual-card:hover,.lesson-list-card:hover,.alphabet-key:hover,.game-tile:hover{transform:none!important;box-shadow:none;}
}

/* Version 7: always-visible lesson navigation, comprehensive video teaching and
   clear letter-name versus full-word pronunciation controls. */
.lesson-navigation-toolbar{
  background:rgba(4,21,34,.98);border:1px solid #315f7d;border-radius:12px;
  padding:12px 14px;margin:14px 0 18px;display:flex;justify-content:space-between;
  align-items:center;flex-wrap:wrap;gap:12px;
  box-shadow:0 12px 36px rgba(0,0,0,.33);
}
.lesson-navigation-toolbar.top{
  position:sticky;top:8px;z-index:36;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
.lesson-navigation-toolbar.bottom{margin-top:18px;border-color:#315b73;}
.lesson-nav-primary,.lesson-nav-secondary{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;}
.lesson-navigation-toolbar button{min-height:44px!important;font-size:.8rem!important;padding:10px 12px!important;}
.lesson-nav-position{color:#e2c486;font-size:.78rem;font-weight:700;white-space:nowrap;}
.lesson-nav-jump{display:flex;flex-direction:column;gap:4px;min-width:0;color:#9ebacb;font-size:.67rem;letter-spacing:.05em;font-weight:700;}
.lesson-nav-jump select{background:#071b2c;color:#f0f6f9;border:1px solid #366983;border-radius:7px;min-height:41px;
  max-width:min(260px,70vw);min-width:135px;padding:7px 12px;font-size:.79rem;}
.lesson-nav-menu{position:relative;min-width:0;}
.lesson-nav-menu>summary{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer;padding:10px 13px;
  color:#f1d28e;border:1px solid #58738a;border-radius:7px;font-weight:750;background:#0c2b40;list-style:none;}
.lesson-nav-menu>summary::-webkit-details-marker{display:none;}
.lesson-nav-menu>summary:hover,.lesson-nav-menu[open]>summary{border-color:#e9c47b;background:#10405d;}
.lesson-nav-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:70;width:300px;max-width:calc(100vw - 34px);
  display:grid;gap:7px;box-shadow:0 16px 35px #0008;border:1px solid #56849a;background:#071826;padding:12px;border-radius:11px;}
.lesson-nav-menu-panel button{justify-content:flex-start;width:100%;}
.lesson-nav-menu[open] .lesson-nav-menu-panel{animation:toc-nav-open .13s ease-out both;}
@keyframes toc-nav-open{from{opacity:.5;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.full-lesson-video{margin:23px 0 26px;border:1px solid #356b83;border-radius:14px;
  padding:20px;background:radial-gradient(circle at 70% 0%,rgba(25,105,153,.18),transparent 60%),#061725;
  box-shadow:0 14px 30px #0003;}
.full-video-introduction h2{color:#f4d28b;font:700 clamp(1.38rem,2.6vw,2.1rem)/1.17 Georgia,serif;margin:8px 0 9px;}
.full-video-introduction p{color:#a9c7d8;line-height:1.6;font-size:.86rem;margin:0 0 18px;}
.full-video-player-frame{max-width:100%;aspect-ratio:16/9;background:#030b14;border:1px solid #356b81;
  border-radius:9px;overflow:hidden;box-shadow:0 9px 24px rgba(0,0,0,.5);}
.toc-full-lesson-video{width:100%;height:100%;object-fit:contain;display:block;background:#030b14;}
.full-video-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:17px;margin:18px 0 11px;}
.audio-only-label{display:flex;flex-direction:column;gap:9px;flex:1 1 260px;color:#ecd18f;font-size:.8rem;font-weight:750;}
.audio-only-label audio{width:100%;max-width:450px;height:40px;accent-color:#d8b56f;}
.full-video-chapter-status{color:#a3d9ed;font-size:.85rem;line-height:1.55;flex:1 1 200px;}
.full-video-status{color:#bdced7;font-size:.82rem;line-height:1.6;margin:10px 0 17px;}
.full-video-chapters,.full-video-transcript{border-top:1px solid #2e6079;padding-top:14px;margin-top:14px;color:#d7e7ee;}
.full-video-chapters>summary,.full-video-transcript>summary{display:flex;gap:15px;justify-content:space-between;cursor:pointer;
  align-items:center;color:#f2d18c;font-size:.9rem;font-weight:750;padding:11px 4px;min-height:44px;}
.full-video-chapters>summary span{font-size:.75rem;color:#98bfd2;}
.full-video-chapter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px 0;}
.full-video-chapter-link{width:100%;display:flex;align-items:center;text-align:left;gap:10px;padding:12px;
  min-height:54px;border-radius:7px;background:#09273a;color:#d5eaf1;border:1px solid #37657f;font-size:.84rem;
  line-height:1.4;transition:border-color .13s,background .13s;}
.full-video-chapter-link:hover{border-color:#e2bd73;background:#0c3349;}
.full-video-chapter-number{font-size:.75rem;letter-spacing:.04em;font-weight:700;color:#e3be74;flex:none;}
.full-video-transcript-chapter{border-bottom:1px solid #235169;padding:15px 5px 17px;}
.full-video-transcript-chapter h3{color:#7dd3ef;font-size:.98rem;margin-bottom:11px;}
.full-video-transcript-chapter bdi{color:#f1d089;font-size:2rem;display:block;margin:7px 0;font-family:SFHebrew,serif;}
.full-video-transcript-chapter p{font-size:.86rem;line-height:1.75;color:#d4e7ee;max-width:88ch;}
.pronunciation-sample{position:relative;padding:18px 0!important;}
.pronunciation-sample .pronunciation-sample-label{color:#f1d292;font-size:.93rem;font-weight:800;
  line-height:1.5;display:block;margin-bottom:12px;letter-spacing:.01em;}
.pronunciation-sample .pronunciation-description{color:#afcfdf;font-size:.78rem;margin:-3px 0 10px;line-height:1.55;}
.pronunciation-marks{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:11px 0 6px;}
.pronunciation-marks h3{color:#7ed5ed;font-size:.79rem;letter-spacing:.04em;margin:0 9px 0 0;}
.pronunciation-mark-chip{display:flex;gap:7px;align-items:center;padding:7px 11px;background:#0b293b;color:#d8e9f1;
  font-size:.77rem;border:1px solid #3b6982;border-radius:6px;line-height:1.4;}
.pronunciation-mark-chip bdi{font-size:1.1rem;color:#f1d38e;}
.pronunciation-source-note{color:#94bfd0;font-size:.75rem;margin:8px 0 0;}
.pronunciation-actions button{min-height:48px!important;}
@media(max-width:860px){
 .lesson-navigation-toolbar.top{top:0;}
 .lesson-nav-secondary{width:100%;justify-content:space-between;}
 .lesson-nav-jump{flex:1 1 150px;}
 .lesson-nav-jump select{max-width:100%;width:100%;}
}
@media(max-width:580px){
 .lesson-navigation-toolbar{padding:10px;gap:9px;}
 .lesson-nav-primary{width:100%;justify-content:space-between;}
 .lesson-nav-primary button{flex:1 1 auto;}
 .lesson-nav-position{flex:1 1 100%;text-align:center;}
 .full-lesson-video{padding:13px;}
 .full-video-chapter-list{grid-template-columns:1fr;}
 .full-video-actions{gap:12px;}
 .lesson-nav-menu-panel{right:0;width:min(280px,90vw);}
 .pronunciation-sample .hebrew{font-size:clamp(2.5rem,11vw,3.8rem);}
}
@media(prefers-reduced-motion:reduce){
 .lesson-nav-menu[open] .lesson-nav-menu-panel{animation:none!important;}
 .full-video-chapter-link{transition:none!important;}
}

/* V8: learner-controlled captions and consistent title hierarchy */
.full-video-caption-toggle{min-height:44px;white-space:nowrap;color:#f3d79b!important;}
.full-video-caption-toggle[aria-pressed=true]{border-color:#edcb7e!important;background:#18364a!important;}
.toc-full-lesson-video::cue{font-size:.83rem;color:#f7f7f7;background:rgba(0,0,0,.72);text-shadow:0 1px 2px black;}
.page-heading h1,.section-heading h2,.stage-visual-copy h3,.lesson-list-card h3,
.lesson-plan h1,.activity h1,.activity h2,.activity h3,.editorial-heading h2,
.featured-study-material .featured-meaning,.games-heading h1,.games-home-promo h2,
.full-video-introduction h2,.letter-insights h2,.mark-reference h2,.stage-card h3,
.summary-card h1,.summary-card h2,.pronunciation-sample-label,.lesson-plan-summary,
.stage-card .stage-description,.section-heading h3,.full-video-chapters summary,
.full-video-transcript summary,.full-video-transcript-chapter h3{
  text-transform:capitalize;
}
@media(max-width:580px){.full-video-caption-toggle{width:100%;min-height:48px;}}

.audio-output-alert{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;
  padding:10px 16px;background:#0d2a3e;color:#e7eef6;border-bottom:1px solid #3b7189;font-size:.82rem;line-height:1.55;}
.audio-output-alert[hidden]{display:none!important;}
.audio-output-alert button{min-height:40px;}
#sound-status-button{min-width:43px;font-size:21px;}
@media(max-width:540px){.audio-output-alert{justify-content:flex-start;gap:9px;}
 .audio-output-alert button{flex:1 1 40%;}}

.full-video-progress{display:block;width:100%;height:6px;margin:9px 0 14px;appearance:none;background:#0a2536;color:#e4bc72;border:0;border-radius:6px;overflow:hidden;}
.full-video-progress::-webkit-progress-bar{background:#102b3e;border-radius:6px;}
.full-video-progress::-webkit-progress-value{background:linear-gradient(90deg,#26b5e6,#ebc576);border-radius:6px;}
.full-video-progress::-moz-progress-bar{background:linear-gradient(90deg,#26b5e6,#ebc576);}
.full-video-playback-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.full-video-playback-actions button{min-height:44px;}
.full-video-player-frame{position:relative;isolation:isolate;}
.full-lesson-video[data-video-playing=true] .full-video-player-frame::after{content:"";position:absolute;inset:-30%;z-index:1;pointer-events:none;
  background:radial-gradient(ellipse 24% 27% at 40% 48%,rgba(75,180,210,.025),transparent 76%);animation:toc-cinematic-light 14s linear infinite;}
@keyframes toc-cinematic-light{0%{transform:translateX(-18%)}50%{transform:translateX(18%)}100%{transform:translateX(-18%)}}
@media(prefers-reduced-motion:reduce){.full-lesson-video[data-video-playing=true] .full-video-player-frame::after{animation:none!important;display:none!important;}}

.website-course-overview{max-width:1180px;margin:2.5rem auto;padding:1.5rem;color:#e2eaf5;border-top:1px solid #55718b}
.website-course-overview h2{font-size:clamp(1.3rem,2.4vw,2rem);margin-bottom:.5rem}
.website-course-overview ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;list-style:none;margin:1.2rem 0;padding:0}
.website-course-overview li{background:#132638;border:1px solid #34546b;border-radius:14px;padding:1rem}
.website-course-overview li span{display:block;margin-top:.45rem;line-height:1.45;color:#c0d1df}
.website-course-overview a,.course-membership-banner a,.website-back{color:#e1be74}
.course-membership-banner{padding:.9rem 1.2rem;display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap;background:#132f46;color:#eaf1fc;border-bottom:1px solid #50708a;text-align:center}
.course-membership-banner[hidden]{display:none}
.course-membership-banner a{font-weight:700}
.website-back{white-space:nowrap;font-size:.9rem}

/* Reserve space for the guest/member status before course hydration. */
.course-membership-banner{min-height:64px;box-sizing:border-box}
@media(max-width:520px){.course-membership-banner{min-height:98px}}

/* Reserve space for the guest/member status before course hydration. */
.course-membership-banner{min-height:64px;box-sizing:border-box}
@media(max-width:520px){.course-membership-banner{min-height:98px}}
