/* The expanded workbook: generous scenes, quiet controls and readable Arabic. */
html{background:#f3efe5}.topbar{height:88px}.lesson-heading{margin-bottom:22px}.lesson-heading h1{font-size:34px}.eyebrow{letter-spacing:1.6px;font-family:Arial,sans-serif;font-size:11px}main{padding-top:28px;max-width:1320px}.progress-box{min-width:210px}.course-nav{display:flex;gap:10px;margin-bottom:18px}.course-nav button{display:flex;align-items:center;gap:12px;padding:9px 20px;border:1px solid #c8d6cb;background:#fffdf9;color:#244251;font-weight:700}.course-nav button[aria-pressed=true]{background:#e0efdf;border-color:#6b9d82;color:#155d4f}.course-nav button>span{font:700 11px Arial;letter-spacing:1px;color:#58756b}.course-nav small{font:700 11px Arial;background:#fff9;border-radius:20px;padding:4px 7px}.stages{margin-bottom:17px;gap:9px}.stages.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stage{min-height:52px;padding:8px 13px;font-size:15px}.activity{padding:27px;min-height:490px}.activity-header{margin-bottom:18px}.activity-header>div{min-width:0}.activity-header .secondary{font-size:13px;min-height:44px;padding:8px 13px}.activity-header h2{font-size:23px}.activity-header p{font-size:14px}.sound{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:49px;font-size:15px}.sound svg{flex-shrink:0;width:21px;height:21px}.sound.secondary{background:#fffdf9}.alphabet-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:28px;align-items:stretch}.alphabet-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.letter-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #d6ded1;min-height:109px;background:#f5f4e9;color:#153e47;padding:2px 4px 6px;border-radius:14px}.letter-card:nth-child(4n+2){background:#edf1e7}.letter-card:nth-child(4n+3){background:#edf1f1}.letter-card:nth-child(4n){background:#f4eee6}.letter-card .arabic{font-size:43px;line-height:1.3}.letter-card small{font:15px Naskh,serif;color:#597066}.letter-card.selected{background:#0f7771;color:#fff;border-color:#0f7771;box-shadow:0 5px 12px #0b5f6020}.letter-card.selected small{color:#e4f6e5}.letter-card.heard:after{content:'';position:absolute;inset-inline-end:9px;top:9px;width:6px;height:6px;border-radius:50%;background:#298268}.letter-card.selected.heard:after{background:#eac078}.letter-focus{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:22px 12px;border-radius:20px;background:radial-gradient(ellipse at 50% 32%,#fffefa 15%,#eeeede 70%);border:1px solid #e2e4d5;text-align:center}.letter-orbit{display:grid;place-items:center;width:145px;height:145px;background:#fffdf7;border-radius:50%;font-size:125px;line-height:1;color:#087974;box-shadow:0 0 0 12px #dfe9d680,0 10px 20px #31482a09;margin:9px 0 10px}.letter-focus h2{font-size:26px;margin-bottom:5px}.mini-forms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;margin-top:13px}.mini-forms>div{background:#fff9;border-radius:9px;padding:6px 3px}.mini-forms span{display:block;font-size:34px;line-height:1.6}.mini-forms small{display:block;font-size:11px;line-height:1.5;color:#53675e}.activity .joining-note{font-size:13px;line-height:1.7;margin:5px 0;color:#63552d}.letter-focus .text-button{margin-top:5px}.letter-question{display:flex;justify-content:center;margin:40px 0 28px}.match-model{display:grid;place-items:center;font-size:95px;line-height:1.5;background:#f0ecd9;color:#19494c;border-radius:20px;width:160px;height:155px}.alpha-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:650px;margin:0 auto}.alpha-choice{font-size:78px;color:#193d47;background:#edf2e8;border:2px solid #cadbce;padding:14px}.alpha-choice.correct,.story-options .correct{background:#e2f3dc;border-color:#178062;box-shadow:0 0 0 2px #178062}.alpha-choice.wrong,.story-options .wrong{background:#fff1d8;border-color:#a87934}.group-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:20px}.group-nav button{border:1px solid #d1dccf;background:#f6f6ed;padding:5px 10px;color:#527064;display:flex;justify-content:center;align-items:center;gap:12px;font-size:14px}.group-nav small{font:11px Arial;opacity:.8;direction:ltr}.group-nav button[aria-pressed=true]{background:#dcebdd;border-color:#83a78a;color:#245c4c;font-weight:700}.word-scene-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:30px;align-items:center}.sentence-scene,.story-picture{border-radius:19px;overflow:hidden;background:#e6ebdb;box-shadow:0 8px 20px #103c4610;line-height:0}.sentence-scene img,.story-picture img{width:100%;height:auto;display:block;aspect-ratio:4/3;object-fit:contain}.vocab-panel{text-align:center;min-width:0}.activity .vocab-word{font-size:76px;line-height:1.4;color:#123c43;margin:2px 0}.activity .translation{font-family:Arial,sans-serif;font-size:17px;color:#627170;line-height:1.55;margin:3px 0 12px;overflow-wrap:anywhere}.sentence-block{margin-top:22px;border-top:1px solid #dce3d6;padding-top:15px}.activity .sentence{font-size:28px;line-height:1.9;color:#183f47;margin:0 0 10px;text-wrap:balance}.sentence-block .translation{font-size:14px}.vocab-panel>.text-button{margin:7px 0 3px}.position-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.position-tags>span{display:flex;align-items:center;gap:9px;background:#f1f2e6;color:#60715e;padding:1px 10px;border-radius:10px;font-size:11px}.position-tags b{font-size:26px;color:#3c6d5f;line-height:1.8;font-weight:500}.vocab-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-top:24px}.vocab-strip button{border:1px solid #ccd8c8;background:#f6f6ed;color:#244b49;padding:5px;position:relative;overflow:hidden}.vocab-strip button.selected{border:2px solid #0f7771;padding:4px;background:#e5efe1}.vocab-strip img{display:block;aspect-ratio:4/3;width:100%;height:auto;border-radius:8px;max-height:105px;object-fit:cover}.vocab-strip span{display:block;font-size:23px;padding-top:3px;line-height:1.65}.vocab-strip i{position:absolute;bottom:12px;inset-inline-end:10px;width:6px;height:6px;border-radius:50%;background:#c6d3c3}.vocab-strip i.heard{background:#087772}.section-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:17px;margin-top:10px}.section-bottom p{font-size:12px}.quiz-switch{max-width:500px;margin:0 auto 27px;justify-content:center}.quiz-switch button{flex:1}.sentence-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}.sentence-choices .choice{padding:5px;background:#eff1e6;overflow:hidden;line-height:0}.sentence-choices .choice img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:12px}.choice-result{position:absolute;bottom:13px;inset-inline-end:13px;border-radius:50%;width:29px;height:29px;background:#fff;color:#096354;font-size:22px;line-height:29px;box-shadow:0 2px 9px #183e3520}.choice-result:empty{display:none}.story-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr);gap:30px;align-items:center}.story-text{text-align:center}.activity .story-sentence{font-size:31px;line-height:2;color:#113f47;margin:16px 0}.story-text .translation{font-size:15px}.story-steps{display:flex;gap:10px;justify-content:center;margin:30px 0 10px}.story-steps button{width:44px;min-height:44px;border-radius:50%;background:#e9eedf;color:#3e6860;border:1px solid #c9d8c4;font:700 14px Arial}.story-steps button[aria-current=step]{background:#0f7771;color:#fff;border-color:#0f7771}.story-text>p:last-child{font-size:12px}.story-question{border-top:1px solid #dce3d7;margin-top:28px;padding-top:20px;text-align:center}.story-question h3{font-size:18px;margin:0}.story-question>p.arabic{font-size:26px;color:#173e47}.story-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px auto 0;max-width:780px}.story-options button{display:flex;align-items:center;justify-content:center;gap:5px;padding:5px;overflow:hidden;border:2px solid #d0dece;background:#f6f4e8}.story-options img{width:100%;max-width:100%;min-width:0;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.story-options button:has(img:nth-child(2)) img{width:calc(50% - 3px)}.form-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.form-tabs button{position:relative;border:1px solid #cedcce;background:#f1f3e7;padding:7px;color:#456755}.form-tabs button[aria-pressed=true]{border:2px solid #17816a;background:#e2efdf;padding:6px}.form-tabs span{display:block;font-size:45px;line-height:1.4;color:#164a48}.form-tabs small{font-size:12px;display:block}.form-tabs i{position:absolute;top:7px;inset-inline-end:8px;font-style:normal;color:#17816a}.trace-example{display:flex;justify-content:center;gap:25px;align-items:center;margin-top:12px}.trace-example span{font-size:37px;color:#2a6159}.trace-example p{font-size:13px}.trace-wrap{max-width:850px;margin:13px auto 15px}.trace-tools{max-width:850px;margin:auto}.vowel-cards{display:grid;grid-template-columns:1fr 1fr;max-width:850px;gap:12px;margin:20px auto 0}.vowel-cards>div{background:#f0f2e4;border-radius:12px;padding:10px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.vowel-cards span{font-size:13px;color:#5b7262}.vowel-cards b{font-size:28px;font-weight:500;color:#254f4a;white-space:nowrap}.activity .trace-note{font-size:12px;text-align:center;margin-top:15px}.lesson-footer{margin-top:18px}.lesson-footer button{min-width:110px}.preview-note{margin-top:17px}.activity .feedback{color:#096f64;font-size:18px;min-height:45px}#continue-alpha{display:flex;margin:0 auto}
@media(max-width:1050px){main{padding-inline:24px}.alphabet-layout{grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);gap:18px}.alphabet-grid{gap:7px}.letter-card{min-height:101px}.letter-card .arabic{font-size:37px}.letter-card small{font-size:13px}.letter-orbit{width:120px;height:120px;font-size:104px}.word-scene-layout{grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);gap:20px}.activity .vocab-word{font-size:64px}.activity .sentence{font-size:25px}.sound{font-size:13px;padding:11px 15px}.story-layout{gap:20px}.activity .story-sentence{font-size:28px}}
@media(max-width:760px){.topbar{height:80px}.top-actions{gap:7px}.language>span{display:none}main{padding:21px 15px}.lesson-heading{gap:12px}.lesson-heading h1{font-size:29px}.lesson-heading p:not(.eyebrow){font-size:13px}.eyebrow{font-size:9px;letter-spacing:1px}.progress-box{min-width:104px;max-width:120px;font-size:11px}.progress-box small{font-size:10px}.course-nav{gap:7px;margin-bottom:13px}.course-nav button{padding:7px 12px;font-size:14px;gap:8px;flex:1;justify-content:center}.course-nav button>span{font-size:10px}.course-nav small{font-size:10px}.stages{gap:6px;margin-bottom:13px}.stage{min-height:48px;font-size:12px;padding:7px 5px;line-height:1.4}.activity{padding:18px 14px;border-radius:19px}.activity-header{gap:10px;margin-bottom:15px}.activity-header h2{font-size:21px}.activity-header p{font-size:12px}.activity-header .secondary{font-size:11px;padding:6px 10px;min-height:40px}.alphabet-layout{grid-template-columns:1fr;gap:17px}.alphabet-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.letter-card{min-height:90px}.letter-card .arabic{font-size:35px}.letter-card small{font-size:12px}.letter-focus{display:grid;grid-template-columns:120px 1fr;column-gap:22px;row-gap:7px;padding:18px}.letter-orbit{grid-column:1;grid-row:1/4;margin:0;width:110px;height:110px;font-size:96px}.letter-focus h2{font-size:23px;grid-column:2}.letter-focus>.sound{grid-column:2}.mini-forms{grid-column:1/-1;margin-top:10px}.mini-forms span{font-size:35px}.mini-forms small{font-size:12px}.joining-note,.letter-focus>.text-button{grid-column:1/-1}.word-scene-layout{grid-template-columns:1fr;gap:13px}.sentence-scene img{max-height:420px;object-fit:cover}.activity .vocab-word{font-size:63px;line-height:1.4}.sound{font-size:14px;min-height:47px}.sentence-block{margin-top:16px;padding-top:12px}.activity .sentence{font-size:27px;line-height:1.85}.group-nav{gap:5px;margin-bottom:14px}.group-nav button{padding:6px 3px;font-size:12px;gap:2px;flex-direction:column;line-height:1.4}.group-nav small{font-size:9px}.vocab-strip{gap:6px;margin-top:17px}.vocab-strip span{font-size:20px}.vocab-strip img{border-radius:5px}.vocab-strip i{bottom:6px;inset-inline-end:5px;width:4px;height:4px}.section-bottom{flex-wrap:wrap;gap:0;padding-top:10px}.section-bottom p{font-size:11px}.section-bottom .text-button{font-size:12px}.sentence-choices{gap:7px}.sentence-choices .choice{padding:3px;border-radius:12px}.sentence-choices .choice img{border-radius:7px}.alpha-choices{gap:12px}.alpha-choice{font-size:65px;padding:14px 4px}.letter-question{margin:25px 0}.story-layout{grid-template-columns:1fr;gap:17px}.story-text .pill{display:none}.activity .story-sentence{font-size:28px;line-height:1.8;margin:4px 0 12px}.story-steps{margin:20px 0 9px}.activity-header .visual-switch{width:auto;min-width:102px}.story-options{gap:7px}.story-options button{border-radius:12px;padding:3px;gap:3px}.story-options img{border-radius:6px}.story-question>p.arabic{font-size:24px}.form-tabs{gap:6px}.form-tabs span{font-size:38px}.form-tabs small{font-size:10px}.trace-example{flex-direction:column;gap:0}.trace-example span{font-size:34px}.trace-example p{font-size:12px;text-align:center}.trace-tools{justify-content:center;gap:7px}.trace-tools .primary{margin:0}.trace-tools button{font-size:12px;padding:8px 12px;min-height:43px}.vowel-cards{gap:8px}.vowel-cards>div{padding:9px;flex-direction:column;gap:0}.vowel-cards span{font-size:12px}.vowel-cards b{font-size:26px}.activity .trace-note{font-size:11px}.lesson-footer button{min-width:87px;font-size:13px}.lesson-footer span{font-size:11px;text-align:center}.lesson-footer{gap:7px}.preview-note{font-size:11px}}
@media(max-width:400px){.brand{font-size:14px;gap:5px}.brand svg{width:29px}.brand small{font-size:7px}.topbar{padding:0 12px}.language select{width:99px;min-width:99px;font-size:13px}.topbar .icon-button{width:29px}.lesson-heading{flex-direction:column;gap:10px}.progress-box{width:100%;min-width:0;max-width:100%;display:grid;grid-template-columns:1fr 1fr;column-gap:14px;align-items:center;padding:0}.progress-box .meter{grid-column:1/-1;grid-row:2;margin:4px 0}.progress-box small{text-align:end}.lesson-heading h1{font-size:28px}.course-nav button{font-size:13px;padding-inline:9px}.alphabet-grid{gap:5px}.letter-card{min-height:75px;border-radius:9px}.letter-card .arabic{font-size:29px}.letter-card small{font-size:10px}.letter-card.heard:after{top:5px;inset-inline-end:5px;width:4px;height:4px}.letter-focus{padding:17px 10px;column-gap:12px;grid-template-columns:100px 1fr}.letter-orbit{width:92px;height:92px;font-size:82px}.letter-focus>.sound{font-size:12px;padding:8px}.mini-forms small{font-size:10px}.vocab-strip span{font-size:17px}.story-options button:has(img:nth-child(2)){flex-direction:column}.story-options button:has(img:nth-child(2)) img{width:100%}}
@media print{@page{size:A4;margin:12mm}#print-sheet.expanded-print{direction:inherit;font-size:14px}.worksheet{break-after:page;page-break-after:always;padding:0;margin:0}.worksheet:last-child{break-after:auto;page-break-after:auto}.worksheet-head{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #31524c;padding-bottom:5mm;margin-bottom:5mm;gap:10mm}.worksheet-head b{font:700 17px Arial;letter-spacing:2px}.worksheet-head h1{font-size:25px;margin:0}.print-alpha-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3mm;margin:12mm 0}.print-alpha-grid>div{border:1px solid #b9c8bc;border-radius:3mm;display:flex;flex-direction:column;align-items:center;height:39mm;justify-content:center;background:#fafbf6!important;print-color-adjust:exact}.print-alpha-grid b{font-size:52px;font-weight:500;line-height:1.4}.print-alpha-grid span{font-size:17px}.print-form-top{display:flex;align-items:center;justify-content:space-between;height:31mm;padding:0 9mm}.print-form-top>span{font-size:70px}.print-form-top>b{font-size:30px;font-weight:500}.print-trace-row{display:flex;direction:rtl;gap:5mm;margin:4mm 0;height:34mm}.print-trace-row svg{width:33%;height:100%;flex:1;min-width:0}.print-trace-row.faded{opacity:.65}.print-free-line{height:20mm;border-bottom:1px solid #9db2a6;position:relative}.print-free-line:after{content:'';position:absolute;inset-inline:0;top:8mm;border-top:1px dashed #cbd6cc}.print-small{font-size:11px;margin-top:8mm}.print-vocab-row{display:flex;align-items:center;gap:8mm;margin-bottom:4mm;height:42mm;border-bottom:1px solid #d8e0d4;padding-bottom:4mm;break-inside:avoid}.print-vocab-row img{width:49mm;height:37mm;object-fit:contain;border-radius:3mm}.print-vocab-row b{font-size:28px;font-weight:500}.print-vocab-row p{font-size:20px;line-height:1.8;margin:1mm 0}.worksheet>p{font-size:14px}}
.sound.playing{box-shadow:0 0 0 4px #e0c06a80;background:#18534e;color:#fff}.sound.playing svg{animation:pulse-sound .9s ease-in-out infinite}@keyframes pulse-sound{50%{opacity:.45}}
@media(min-width:761px) and (max-width:900px){.alphabet-layout{grid-template-columns:1fr}.alphabet-grid{gap:9px}.letter-card{min-height:96px}.letter-focus{display:grid;grid-template-columns:140px 1fr;column-gap:25px;padding:23px}.letter-orbit{grid-column:1;grid-row:1/4;margin:auto}.letter-focus h2,.letter-focus>.sound{grid-column:2}.mini-forms,.letter-focus>.joining-note,.letter-focus>.text-button{grid-column:1/-1}.mini-forms{margin-top:18px}.letter-focus>.sound{justify-self:center;min-width:230px}}
 .trace-direction{color:#b65b21!important;font-weight:700!important;text-align:center}

/* Readable 115% mobile fallback; book.js recalculates these exact variables
   when the learner chooses one of the five size levels. */
@media(max-width:760px){:root{
 --reader-ui-size:20.7px;--reader-chapter-letter-size:63.3px;--reader-chapter-name-size:23px;
 --reader-alphabet-card-size:40.3px;--reader-letter-name-small-size:15px;--reader-letter-name-size:27.6px;
 --reader-letter-orbit-size:110.4px;--reader-mini-form-size:40.3px;--reader-choice-letter-size:74.8px;
 --reader-match-letter-size:92px;--reader-vocab-word-size:72.5px;--reader-sentence-size:31.1px;
 --reader-strip-word-size:23px;--reader-position-size:29.9px;--reader-story-size:32.2px;
 --reader-story-question-size:27.6px;--reader-form-size:43.7px;--reader-trace-example-size:39.1px;
 --reader-vowel-size:29.9px
}}
