:root{--ink:#28243d;--muted:#727087;--purple:#7655b4;--cream:#f8f6f0;--line:#e9e5ee;--mint:#dff2e8;--peach:#ffdfcd}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Lexend,Tahoma,Arial,sans-serif}button,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e99637;outline-offset:4px}header{padding:20px 4%;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);background:#fffefa}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-weight:bold;font-size:19px}.brandmark{display:inline-grid;place-items:center;background:var(--purple);color:white;width:45px;height:45px;border-radius:15px;font-size:31px}.brand small{display:block;font-size:13px;margin-top:4px;color:var(--muted)}nav{display:flex;gap:8px}nav button{border:0;background:transparent;padding:10px 15px;border-radius:12px;font-size:13px;color:var(--muted)}nav span{display:block;font-size:12px;margin-top:3px}nav button.active{background:#eee7fa;color:var(--purple);font-weight:bold}.headerbadge{font-size:11px;color:var(--muted)}main{max-width:1260px;margin:auto;padding:0 36px}.page{display:none}.page.active{display:block}.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:50px;padding:65px 0 55px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:bold;color:var(--purple)}h1{font-size:clamp(38px,4.2vw,59px);letter-spacing:-2px;line-height:1.12;margin:20px 0}h1 span{color:var(--purple)}p{line-height:1.75;color:var(--muted);font-size:15px}.hero p{max-width:440px;font-size:17px}.primary{background:var(--purple);color:white;border:0;border-radius:14px;padding:15px 21px;font-weight:bold;box-shadow:0 4px 0 #50358e}.primary span{margin-left:25px}.textlink{display:inline-block;margin:22px;color:var(--ink);font-size:13px}.tiny{font-size:11px;color:var(--muted);margin-top:24px}.lettergarden{height:330px;position:relative;background:#f0ecf7;border-radius:50% 45% 40% 55%}.floating{position:absolute;width:155px;height:206px;border-radius:24px;padding:18px;box-shadow:0 12px 20px #29234313;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.floating small{font-size:10px;font-weight:bold;letter-spacing:1px}.floating b{font-size:95px;line-height:1}.floating span{font-size:11px}.f1{background:#d9ede2;left:0;top:35px;transform:rotate(-12deg)}.f2{background:#ffdbbf;left:145px;top:5px;transform:rotate(5deg);z-index:1}.f3{background:#e4d9f7;right:0;top:90px;transform:rotate(15deg)}.bubble{position:absolute;bottom:-3px;left:90px;border-radius:15px;background:white;padding:15px 22px;font-size:14px;line-height:1.4;transform:rotate(-4deg);box-shadow:0 4px 20px #0001;z-index:2}.spark{position:absolute;color:#dfa72b;font-size:45px}.s1{right:0;top:-30px}.s2{bottom:0;right:40px}.pathline{display:flex;justify-content:space-around;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;font-size:13px}.pathline b{color:var(--purple);background:#eee7f8;padding:9px;border-radius:50%;margin-right:12px}.pathline i{color:#aaa}.sectionheading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:45px 0 25px}.sectionheading h2{font-size:31px;margin-bottom:0;letter-spacing:-.6px}.sectionheading>p{font-size:12px}.lessonlist{display:grid;grid-template-columns:1fr 1fr;gap:15px}.lessonlist details{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}.lessonlist summary{list-style:none;cursor:pointer;padding:22px;display:flex;gap:14px;align-items:center}.lessonlist summary::-webkit-details-marker{display:none}.lessonlist summary:after{content:'+';margin-left:auto;font-size:24px;color:var(--purple)}.lessonlist details[open] summary:after{content:'−'}.lessonicon{background:var(--mint);border-radius:12px;width:46px;height:46px;display:grid;place-items:center;font-size:24px;flex-shrink:0}.lessonlist summary b{font-size:16px}.lessonlist summary small{display:block;color:var(--muted);margin-top:4px;font-size:12px}.explanation{padding:0 24px 24px}.example{background:#f7f3fc;border-radius:15px;padding:17px;text-align:center;font:32px Tahoma;direction:rtl;line-height:1.8;color:var(--purple)}.endbanner{display:flex;align-items:center;gap:25px;background:var(--mint);border-radius:24px;padding:30px;margin:35px 0 50px}.endbanner .arabic{font-size:33px;color:#32735d}.endbanner h2{font-size:21px}.endbanner p{margin-bottom:0}.endbanner button{margin-left:auto}.smalltitle{font-size:37px;margin:13px 0}.smalltitle span{display:block;font-size:23px;letter-spacing:0;margin-top:12px}.ordercontrol{display:flex;flex-direction:column;gap:8px}.ordercontrol label{font-size:12px;font-weight:bold}select{border:1px solid #d8cee8;border-radius:12px;background:white;color:var(--ink);padding:13px}.ordercontrol small{font-size:10px;color:var(--muted)}.workspace{display:grid;grid-template-columns:270px 1fr;gap:24px;margin-bottom:45px;align-items:start}aside{background:#f1edf8;border-radius:22px;padding:18px}.asidehead{display:flex;justify-content:space-between;font-size:12px;margin-bottom:22px}.asidehead span{font-size:10px;color:var(--muted)}.groupcaption{font-size:10px;color:var(--muted);margin:17px 0 8px}.lettertiles{display:flex;gap:8px;flex-wrap:wrap}.tile{position:relative;border:1px solid transparent;border-radius:12px;background:white;width:65px;min-height:65px;font:34px Tahoma;color:var(--ink);padding:4px 4px 14px}.tile small{position:absolute;bottom:3px;left:7px;font:9px Arial;color:var(--muted)}.tile.selected{background:var(--purple);color:white;box-shadow:0 4px 0 #4d358b}.tile.selected small{color:white}.letterlesson{background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden}.lettertop{display:flex;align-items:center;justify-content:space-between;background:#fff5e8;padding:25px 32px}.lettertop h2{font:36px Tahoma;margin:12px 0 0}.lettertop p{margin:5px 0}.bigletter{width:112px;height:112px;border-radius:25px;background:#ffddb9;display:grid;place-items:center;font:82px Tahoma;color:#9a5a26;transform:rotate(5deg)}.tabs{display:flex;border-bottom:1px solid var(--line);padding:10px 20px 0;gap:10px}.tabs button{flex:1;background:transparent;border:0;border-bottom:3px solid transparent;padding:14px 4px;color:var(--muted);font-size:12px}.tabs button small{display:block;font:12px Tahoma;margin-top:7px}.tabs button.active{color:var(--purple);border-bottom-color:var(--purple);font-weight:bold}#lessonContent{padding:25px 30px;min-height:350px}#lessonContent h3{margin-top:0;font-size:20px}#lessonContent p{font-size:13px}.forms{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;direction:rtl}.formcard{padding:18px 8px;background:#faf8fd;border:1px solid var(--line);border-radius:15px;text-align:center}.formcard small{font-size:10px;color:var(--muted)}.formshape{font:44px Tahoma;margin:15px 0}.word{font:25px Tahoma;line-height:1.8}.word mark{background:#eadcf9;color:#6039a0;border-radius:4px;padding:0 1px}.isolated{font-size:12px;padding:12px;border-radius:10px;background:#eaf5ef;margin-bottom:17px}.isolated b{font:30px Tahoma;margin-left:10px}.note{background:#fff7df;padding:12px 15px;border-radius:12px;color:#7d6633;font-size:12px;line-height:1.7;margin-top:16px}.soundrow{border-bottom:1px solid var(--line);padding:15px 0}.soundrow:first-child{padding-top:0}.soundrow h4{font-size:12px;margin:0 0 12px;color:var(--muted)}.soundbuttons{display:flex;gap:9px;flex-wrap:wrap;direction:rtl;justify-content:flex-end}.sound{border:1px solid #e5dfef;border-radius:13px;background:#faf8fd;min-width:80px;padding:11px 14px;color:#777;font:29px Tahoma;display:flex;align-items:center;flex-direction:column;gap:7px}.sound small{font:9px Arial}.sound.recorded{background:#e4f4e9;color:#26754b;border-color:#b6dbbf}.sound.playing{box-shadow:0 0 0 3px #7fba94}.legend{font-size:11px;color:var(--muted);margin-bottom:20px}.lessonnav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 30px;border-top:1px solid var(--line)}.lessonnav button{border:0;background:#f1edf8;color:var(--purple);border-radius:10px;padding:12px;font-size:11px}.lessonnav button:disabled{opacity:.35;cursor:default}.lessonnav span{font-size:10px;color:var(--muted)}.guidegrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.guidegrid article,.panel{background:white;padding:25px;border:1px solid var(--line);border-radius:20px}.guidegrid article>span{color:var(--purple);font-size:28px}.guidegrid h2{font-size:20px}.panel{margin:25px 0 50px}.choices{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.choice{border:2px solid var(--line);background:#faf8fd;padding:16px 25px;border-radius:15px;font:30px Tahoma}.feedback{min-height:28px;font-size:13px;color:#286e49}.pad{width:100%;height:165px;touch-action:none;background:repeating-linear-gradient(white 0px,white 53px,#e9e3f2 54px,#e9e3f2 55px);border:1px solid var(--line);border-radius:13px}.clear{background:#f1edf8;border:0;border-radius:9px;color:var(--purple);padding:9px 13px;margin:10px 0;font-size:11px}.practiceblock{margin-top:28px}footer{border-top:1px solid var(--line);padding:25px 4%;display:flex;align-items:center;gap:15px;font-size:11px;color:var(--muted)}footer>:last-child{margin-left:auto}footer .brandmark{width:30px;height:30px;font-size:23px;border-radius:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:12px;padding:14px 22px;display:none;z-index:99;max-width:90%;font-size:13px;line-height:1.5}@media(max-width:1000px){.headerbadge{display:none}.hero{gap:15px}.floating{width:125px}.f2{left:105px}.textlink{margin-left:0}.workspace{grid-template-columns:220px 1fr}.tile{width:54px}.forms{gap:7px}.lettertop{padding:24px}}@media(max-width:720px){header{flex-direction:column;gap:17px;padding:17px 15px}nav{width:100%;justify-content:center}nav button{padding:8px;font-size:11px}main{padding:0 18px}.hero{grid-template-columns:1fr;padding:36px 0;gap:30px}.hero h1{font-size:43px}.lettergarden{max-width:360px;width:100%;margin:auto;height:280px}.floating{height:180px}.f1{left:0}.f2{left:100px}.f3{right:0;top:70px}.bubble{left:45px;font-size:12px}.pathline{font-size:10px;gap:7px}.pathline b{display:block;width:30px;margin-bottom:10px}.pathline i{display:none}.sectionheading{display:block;padding-top:30px}.sectionheading h2{font-size:27px}.lessonlist,.guidegrid{grid-template-columns:1fr}.endbanner{flex-wrap:wrap;padding:23px;gap:10px}.endbanner button{margin:10px 0}.workspace{grid-template-columns:1fr}aside{max-height:260px;overflow:auto}.tile{width:54px;min-height:56px;font-size:29px}.ordercontrol{margin-top:20px}.smalltitle{font-size:29px}.lettertop h2{font-size:31px}.bigletter{width:90px;height:90px;font-size:66px}.tabs{padding:6px 8px 0;gap:1px}.tabs button{font-size:10px}#lessonContent{padding:22px 15px}.formshape{font-size:35px}.word{font-size:23px}.formcard small{font-size:9px}.lessonnav{padding:16px 12px}.lessonnav span{font-size:9px}.sound{min-width:67px}.lessonlist summary{padding:18px}.textlink{display:block;margin:24px 0 0}.tiny{margin-top:15px}footer{flex-wrap:wrap}footer>:last-child{display:none}}

.lettertiles{direction:rtl}.lessonlist details{align-self:start}
/* A quiet, vertical learning path. */
header{max-width:1100px;margin:auto;background:transparent;padding:24px 30px}.brand{font-size:19px}.homeback,.pageback button,.textbutton{border:0;background:transparent;color:var(--purple);font-size:12px;padding:12px;cursor:pointer}.headerbadge{display:none}.homeintro{text-align:center;padding:55px 0 30px}.homeintro h1{font-size:49px;margin:17px 0 20px}.homeintro p{font-size:15px}.homeintro p span{display:block;margin-top:8px;font:18px Tahoma}.journey{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:24px;padding:10px 0 20px}.journeycard{display:flex;align-items:center;gap:22px;position:relative;width:100%;border:1px solid #e4deed;border-radius:27px;background:white;padding:30px 34px;text-align:left;color:var(--ink);box-shadow:0 8px 0 #e9e4f0,0 16px 30px #29234308;min-height:175px}.journeycard:is(button):hover{border-color:var(--purple);box-shadow:0 8px 0 #dfd5ef,0 18px 30px #29234310}.journeyicon{display:grid;place-items:center;flex-shrink:0;width:86px;height:96px;border-radius:22px;background:var(--mint);font:43px Tahoma;color:#386a56}.jc2 .journeyicon{background:#f9dfc4;color:#945b26}.jc3 .journeyicon,.jc6 .journeyicon{background:#eae1f6;color:#725995}.jc4 .journeyicon,.jc7 .journeyicon{background:#f5e2db;color:#986959}.jc5 .journeyicon,.jc8 .journeyicon{background:#dfeef4;color:#517687}.cardwords{display:flex;flex-direction:column;gap:8px;flex:1}.cardwords b{font-size:25px}.cardwords strong{font:22px Tahoma;color:#665478}.cardwords small{font-size:12px;line-height:1.6;color:var(--muted)}.cardstatus{font-size:9px;font-weight:bold;letter-spacing:1.4px;color:var(--purple)}.cardarrow{font-size:27px;color:var(--purple)}.stepnum{font-size:14px;color:#93869e;align-self:flex-start;margin-top:5px}.future{box-shadow:0 5px 0 #ece8ef;background:#fffefa;min-height:160px}.future .cardstatus{color:#8d8492}.future .cardwords b{font-size:23px}.homebottom{text-align:center;padding:15px 0 50px}.homebottom p{font-size:12px}.pageback{display:flex;align-items:center;justify-content:space-between;padding-top:25px}.pageback button{padding-left:0}.pageback>span{font-size:10px;letter-spacing:2px;color:var(--muted)}.lessonlist{display:flex;flex-direction:column;max-width:860px;margin:0 auto;gap:22px}.introstep{background:white;border:1px solid var(--line);border-radius:22px;padding:25px 28px;box-shadow:0 5px 0 #eee9f2}.introsteptitle{display:flex;gap:18px;align-items:center;margin-bottom:15px}.introsteptitle .lessonicon{width:65px;height:65px;font-size:29px}.introsteptitle h3{font-size:23px;margin:7px 0}.introsteptitle div>span:last-child{font-size:16px;color:var(--muted)}.explanation{padding:0}.explanation ul{padding-left:23px;margin:15px 0}.explanation li{color:#68647c;font-size:14px;line-height:1.9;margin:9px 0}.explanation .example{padding:20px;margin:20px 0}.sectionheading{max-width:100%}.continuousstep{padding:0 0 30px;margin-bottom:30px;border-bottom:1px solid var(--line)}.continuousstep:last-child{margin-bottom:0;border:0}.continuousheading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.continuousheading>span{width:34px;height:34px;border-radius:11px;background:#eee7fa;color:var(--purple);display:grid;place-items:center;font-size:13px}.continuousheading h3{margin:0!important;font-size:20px!important}.continuousheading small{display:block;margin-top:5px;color:var(--muted);font-size:13px}.continuousstep>.practiceblock h3{font-size:17px!important}.continuousstep>h3{font-size:17px!important}.workspace aside{position:sticky;top:20px;max-height:85vh;overflow:auto}.pad{height:200px}.endbanner{max-width:860px;margin:35px auto 50px}.endbanner .arabic{display:none}.sectionheading:has(+.lessonlist){max-width:860px;margin:auto}footer{max-width:1100px;margin:auto}.brandmark{font-size:30px}.textlink{font-size:13px}@media(max-width:720px){header{padding:17px 18px;flex-direction:row;align-items:center;gap:8px}.brand{font-size:14px;gap:8px}.brand small{font-size:10px}.brandmark{width:37px;height:37px}.homeback{font-size:10px;max-width:120px;line-height:1.6;padding:6px}.homeintro{padding-top:35px}.homeintro h1{font-size:36px}.homeintro p{font-size:13px}.homeintro p br{display:none}.journey{gap:21px}.journeycard{padding:23px 18px;gap:13px;min-height:170px;border-radius:22px}.stepnum{position:absolute;top:16px;right:19px;font-size:11px}.journeyicon{width:58px;height:74px;font-size:31px;border-radius:16px}.cardwords b,.future .cardwords b{font-size:20px}.cardwords strong{font-size:18px}.cardwords small{font-size:11px}.cardarrow{font-size:20px;align-self:flex-end}.cardstatus{font-size:8px;letter-spacing:.8px}.introstep{padding:22px 19px}.introsteptitle h3{font-size:21px}.introsteptitle{gap:13px}.introsteptitle .lessonicon{width:50px;height:55px}.explanation li{font-size:13px}.workspace aside{position:static;max-height:245px}.endbanner{padding:22px}.endbanner h2{font-size:20px}.pageback{padding-top:16px}.pageback>span{font-size:9px}.continuousstep{padding-bottom:23px;margin-bottom:23px}}
/* Quiet Arabic details and a connected learning trail. */
body{position:relative;isolation:isolate;background:radial-gradient(ellipse at 15% 8%,#fcf1dc88,transparent 35%),radial-gradient(ellipse at 90% 30%,#ede4fa66,transparent 40%),var(--cream)}
.brandemblem{width:49px;height:49px;flex-shrink:0;filter:drop-shadow(0 3px 3px #50338d14)}
footer .brandemblem{width:34px;height:34px}.edgeletters{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;user-select:none}.edgeletters span{position:absolute;font-family:Georgia,Tahoma,serif;color:#705095;opacity:.065;line-height:1.3}.edgeletters span:nth-child(1){left:2%;top:200px;font-size:120px;transform:rotate(-18deg)}.edgeletters span:nth-child(2){right:2%;top:510px;font-size:95px;transform:rotate(13deg)}.edgeletters span:nth-child(3){left:1%;top:950px;font-size:65px;transform:rotate(-12deg)}.edgeletters span:nth-child(4){right:1%;top:1330px;font-size:110px;transform:rotate(16deg)}.edgeletters span:nth-child(5){left:1%;top:1770px;font-size:60px;transform:rotate(-14deg)}.edgeletters span:nth-child(6){right:2%;top:2180px;font-size:100px;transform:rotate(12deg)}.edgeletters span:nth-child(7){left:2%;top:2550px;font-size:100px;transform:rotate(-15deg)}.edgeletters span:nth-child(8){right:2%;top:2950px;font-size:110px;transform:rotate(16deg)}
.homeintro{position:relative}.homeintro:before,.homeintro:after{content:'✦';position:absolute;color:#d9aa52;font-size:24px;opacity:.6}.homeintro:before{left:19%;top:60px}.homeintro:after{right:20%;top:155px;font-size:17px}.journey{position:relative;isolation:isolate;max-width:800px;gap:36px}.journeycard{position:relative;z-index:1;border-color:#e4dced}.journeycard.jc1{background:linear-gradient(105deg,#fff 65%,#f0f8f1)}.journeycard.jc2{background:linear-gradient(105deg,#fff 65%,#fff1df)}.journeycard.jc3{background:linear-gradient(105deg,#fffefa 70%,#f0eaf8)}.journeycard.jc4{background:linear-gradient(105deg,#fffefa 70%,#fcf0e8)}.journeycard.jc5{background:linear-gradient(105deg,#fffefa 70%,#eaf4f7)}.journeycard.jc6{background:linear-gradient(105deg,#fffefa 70%,#f3edf9)}.journeycard.jc7{background:linear-gradient(105deg,#fffefa 70%,#f9eee6)}.journeycard.jc8{background:linear-gradient(105deg,#fffefa 70%,#edf5ee)}
#journeyRope{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}.ropebase{fill:none;stroke:#ead6b2;stroke-width:8;stroke-linecap:round}.ropethread{fill:none;stroke:#bd9254;stroke-width:1.8;stroke-dasharray:3 5;stroke-linecap:round}.ropeknot{fill:#f9efd9;stroke:#bd9254;stroke-width:2}.ropespark{fill:#c6a05c;opacity:.7}
@media(max-width:1000px){.journey{max-width:calc(100% - 70px)}.edgeletters span{opacity:.045}.homeintro:before{left:8%}.homeintro:after{right:8%}}@media(max-width:720px){.brandemblem{width:40px;height:40px}.journey{max-width:calc(100% - 26px);gap:31px}.journeycard{padding:24px 15px;gap:11px}.cardwords b,.future .cardwords b{font-size:19px}.cardwords strong{font-size:17px}.journeyicon{width:51px;height:68px}.cardarrow{font-size:17px}.edgeletters span{opacity:.035}.homeintro:before{left:1%;top:20px;font-size:15px}.homeintro:after{right:0;top:125px;font-size:12px}.ropebase{stroke-width:6}.ropethread{stroke-width:1.4}}
/* Supplied Arabic calligraphy, kept outside the reading surface. */
.calligraphylogo{width:87px;height:87px;object-fit:contain;mix-blend-mode:multiply;filter:none;margin:-12px -4px -12px -12px}footer .calligraphylogo{width:59px;height:59px;margin:-7px}.calligraphyedges{pointer-events:none}.calligraphymotif{position:absolute;width:245px;height:auto;opacity:.14;user-select:none;pointer-events:none}.motif1{left:-28px;top:170px;transform:rotate(-15deg)}.motif2{right:-35px;top:570px;transform:rotate(12deg)}.motif3{left:-42px;top:1030px;transform:rotate(-12deg)}.motif4{right:-36px;top:1490px;transform:rotate(14deg)}.motif5{left:-30px;top:1990px;transform:rotate(-15deg)}.motif6{right:-35px;top:2490px;transform:rotate(10deg)}
@media(max-width:1100px){.calligraphymotif{width:190px;opacity:.1}.motif1,.motif3,.motif5{left:-75px}.motif2,.motif4,.motif6{right:-75px}}@media(max-width:720px){.calligraphylogo{width:65px;height:65px;margin:-8px -4px -8px -10px}.brand{gap:5px}.calligraphymotif{width:155px;opacity:.075}.motif1,.motif3,.motif5{left:-65px}.motif2,.motif4,.motif6{right:-65px}}
/* Later chapters share the same calm, vertical lesson rhythm. */
.chapterbody,.chapternext{max-width:900px;margin:0 auto}.lessonpaper{background:#fff;border:1px solid var(--line);border-radius:23px;padding:28px;margin-bottom:23px;box-shadow:0 5px 0 #ebe6f1}.lessonpaper h2{font-size:23px;margin:0 0 13px}.lessonpaper p,.lessonpaper li{font-size:14px;line-height:1.85;color:var(--muted)}.lessonpaper li{margin:9px 0}.selectlabel{display:flex;flex-direction:column;gap:9px;font-size:12px;color:var(--muted);max-width:100%;margin:0 0 22px}.selectlabel select{max-width:100%;width:100%}.chaptercount{font-size:11px!important;letter-spacing:.5px;color:var(--purple)!important}.blendpieces{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;margin:32px 0 22px}.blendpiece{border:2px solid #e4daef;background:#f4eefb;border-radius:20px;min-width:95px;min-height:108px;padding:15px;color:var(--purple);display:flex;flex-direction:column;align-items:center;gap:12px}.blendpiece span{font:43px Tahoma}.blendpiece small{font:10px Lexend;color:var(--muted)}.selectedpiece{background:#e2d2f4;border-color:var(--purple);box-shadow:0 4px 0 #bfa6dc}.blendplus{font-size:20px;color:#aaa}.microcopy{font-size:12px!important}.wordresult{font:58px Tahoma;color:var(--purple);text-align:center;margin:24px 0;line-height:1.9}.meaningresult{text-align:center;font-size:18px!important}.meaningresult span{font-size:32px}.answergrid{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.answercard{flex:1;min-width:130px;background:#faf7fd;border:2px solid #e8e0f0;border-radius:16px;padding:20px 14px;font-size:28px;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.answercard span{font-size:15px}.answercard:hover{border-color:#b8a0d6}.answercorrect{background:#e5f3e8!important;border-color:#70b48b!important}.arabicanswer{font:28px Tahoma}.topicbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 25px}.topicbutton{border:1px solid #dfd4ec;background:#fff;border-radius:14px;padding:13px 18px;font-size:13px;color:var(--muted);flex:1;min-width:135px}.topicbutton.selected{background:var(--purple);color:white;border-color:var(--purple)}.topicbutton small{display:block;font:13px Tahoma;margin-top:7px}.vocabgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.vocabcard{background:#fff;border:1px solid var(--line);border-radius:20px;padding:23px 15px;text-align:center;box-shadow:0 4px 0 #ece7f2}.vocabicon{font-size:45px;display:block}.vocabcard h2{font:32px Tahoma;color:var(--purple);line-height:1.6;margin:15px 0 5px}.vocabcard p{margin:5px 0 15px}.vocabcard .textbutton{display:block;margin:10px auto 0}.audiotarget{font:11px Lexend,Arial;border:1px solid #e4deed;border-radius:10px;background:#f5f1f8;color:#8b8294;padding:10px 12px;margin-top:9px}.audiotarget:disabled{cursor:default;opacity:.8}.audiotarget.ready{background:#e4f4e9;border-color:#b6dbbf;color:#26754b;cursor:pointer}.formcard .audiotarget{font-size:9px;padding:8px 5px;max-width:100%}.audionote{font-size:12px;color:#82758e;padding:0 8px;margin:20px 0 28px;line-height:1.8}.localnav,.chapternext{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:28px;margin-bottom:40px}.secondary{border:1px solid #dcd1ea;background:#f5f0fb;color:var(--purple);border-radius:12px;padding:12px 17px;font-size:12px;cursor:pointer}.secondary:disabled,.primary:disabled{opacity:.4;cursor:default}.listenorb{width:122px;height:122px;border-radius:35px;background:#e4f4e9;border:2px solid #b3d7bc;color:#26754b;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:36px;margin:28px auto;gap:10px;box-shadow:0 5px 0 #c0d8c7}.listenorb small{font-size:11px}.audioempty{text-align:center;padding:30px 10px}.audioempty>span{font-size:45px;color:#bda8d5}.sentenceicon{text-align:center;font-size:48px;margin:24px}.sentencetray{min-height:105px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:2px dashed #d8c8e9;border-radius:16px;padding:17px;background:#fcfaff;margin:24px 0}.trayhint{font-size:12px;color:#9b8caa}.trayhint span{display:block;font-size:15px;margin-top:7px}.wordbank{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;min-height:70px;margin:22px 0}.wordtile{font:29px Tahoma;line-height:1.7;background:#eee5fa;border:1px solid #d9c5ec;border-radius:13px;padding:9px 17px;color:var(--purple)}.actionrow{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:20px 0 10px}.sentencearabic{font-size:38px}.inlinear{font:23px Tahoma;color:var(--purple);line-height:1.8}.dialoguelines{display:flex;flex-direction:column;gap:20px;margin-top:27px}.dialogueline{display:flex;gap:18px;align-items:flex-start}.speakerbadge{width:35px;height:35px;background:#eee5fa;color:var(--purple);display:grid;place-items:center;border-radius:12px;flex-shrink:0}.dialoguecontent{flex:1;border-radius:18px;background:#f9f6fc;padding:20px}.dialoguearabic{font:32px Tahoma;line-height:1.7;color:var(--purple)}.hiddenline{visibility:hidden}.wordpad{height:220px;margin:20px 0}.arabicinput{width:100%;border:2px solid #d9c8ea;border-radius:14px;padding:16px;font:29px Tahoma;line-height:1.8;color:var(--ink);background:#fdfbff}.arabickeyboard{display:flex;flex-wrap:wrap;gap:6px;direction:rtl;margin:16px 0}.arabickeyboard button{font:24px Tahoma;border:1px solid #ddd1ec;background:#f3edf9;border-radius:9px;min-width:43px;height:45px;color:var(--purple)}.arabickeyboard .spacekey{font:12px Lexend;min-width:80px}.studiotarget{font:56px Tahoma;color:var(--purple);text-align:center;line-height:1.8;margin:30px 0;overflow-wrap:anywhere}.studiotools{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.filebutton{display:inline-block;cursor:pointer}.recordbutton{background:#aa3e68;box-shadow:0 4px 0 #7c2a4a}.feedback{line-height:1.7}.lessonpaper [hidden]{display:none!important}footer .textbutton{font-size:11px;margin-left:auto}
@media(max-width:720px){.lessonpaper{padding:23px 17px}.lessonpaper h2{font-size:21px}.vocabgrid{grid-template-columns:1fr 1fr;gap:12px}.vocabcard{padding:20px 10px}.vocabcard h2{font-size:28px}.vocabcard .audiotarget{font-size:9px}.vocabicon{font-size:37px}.answercard{min-width:110px;padding:15px 10px;font-size:25px}.blendpieces{gap:8px}.blendpiece{min-width:70px;min-height:95px;padding:12px}.blendpiece span{font-size:35px}.blendplus{font-size:16px}.wordresult{font-size:43px}.sentencearabic{font-size:29px}.wordtile{font-size:25px;padding:9px 13px}.dialoguearabic{font-size:27px}.dialoguecontent{padding:16px}.dialogueline{gap:10px}.topicbutton{min-width:120px}.localnav,.chapternext{flex-wrap:wrap}.chapternext .primary{font-size:12px}.studiotarget{font-size:39px}.arabickeyboard button{min-width:37px;height:41px}.audionote{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
.recommendopen{display:block;margin:0 auto 22px}.mountainprogress{display:flex;gap:20px;align-items:center;max-width:800px;margin:0 auto 28px;padding:12px 22px;border:1px solid var(--line);border-radius:20px;background:#fff9}.mountainprogress svg{width:180px;flex-shrink:0}.mountainprogress b{font-size:13px}.mountainprogress p{font-size:12px;margin:8px 0}.mountainprogress small{font-size:10px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:25px;max-width:580px;width:calc(100% - 28px);padding:30px;color:var(--ink);background:var(--cream);max-height:90dvh;overflow:auto}dialog::backdrop{background:#29244366}.dialogclose{float:right;border:0;background:transparent;font-size:25px;color:var(--purple)}dialog h2{font-size:25px;margin-right:20px}#recommendOptions label{display:flex;gap:12px;padding:11px;border:1px solid var(--line);border-radius:11px;background:white;margin:9px 0;font-size:13px;align-items:center}#recommendOptions input{accent-color:var(--purple)}#recommendResult{margin-top:20px}.numberdisplay{display:flex;justify-content:center;gap:45px;font-size:70px;color:var(--purple);margin:25px 0}.readingtext{font:29px Tahoma;line-height:2.1;color:var(--ink);background:#f8f4fc;border-radius:16px;padding:23px}.textquestion{padding:22px 0;border-bottom:1px solid var(--line)}.textquestion:last-child{border:0}.textquestion small{color:var(--muted);line-height:1.7}.introfinish{text-align:center;margin:30px}.lessonpaper details{margin:20px 0;font-size:13px;line-height:1.7}.lessonpaper summary{cursor:pointer;color:var(--purple)}@media(max-width:720px){.mountainprogress{padding:10px 14px;gap:10px}.mountainprogress svg{width:105px}.mountainprogress b{font-size:11px}.mountainprogress small{font-size:9px}.readingtext{font-size:24px;padding:18px;line-height:2.1}.numberdisplay{font-size:57px}dialog{padding:22px}.workspace{display:flex;flex-direction:column}.workspace aside,.letterlesson{width:100%}.formcard{overflow-wrap:anywhere}.audiotarget{line-height:1.6}}

#effectsToggle{position:fixed;right:16px;bottom:14px;z-index:20;background:#fffefa;border:1px solid var(--line);border-radius:20px;padding:9px 14px;box-shadow:0 3px 12px #2924430a;font-size:10px}@media(max-width:720px){#effectsToggle{bottom:10px;right:10px;padding:8px 11px}footer{padding-bottom:60px}}
.aboutbutton{margin-left:auto;order:1;border:1px solid #ded2eb;background:#fffaf3;color:var(--purple);border-radius:12px;padding:11px 15px;font-size:12px}.homeback{order:0;margin-left:auto}.aboutbutton+.homeback{margin-left:auto}.aboutbutton{margin-left:5px}header .brand{margin-right:auto}#about{padding-bottom:45px}@media(max-width:720px){header{flex-wrap:wrap}.aboutbutton{font-size:11px;padding:9px 12px;margin-left:auto}.homeback{margin-left:0}.brand{flex:1 0 65%}}
.homeintro{padding:65px 0 40px}.homeintro .eyebrow{font-size:15px;letter-spacing:2px}.homeintro h1{font-size:clamp(48px,5.5vw,76px);line-height:1.12;margin:25px 0}.homeintro p{font-size:19px;line-height:1.85}.homeintro p span{font-size:23px}.homeintro:before{font-size:31px}.homeintro:after{font-size:23px}.journeycard:after{content:'✧';position:absolute;right:24px;top:15px;font-size:19px;color:#b79a62;opacity:.35;pointer-events:none}.sectionfinish{max-width:900px;margin:30px auto 50px;text-align:center;padding:25px;border-top:1px solid var(--line)}.sectionfinish small{display:block;color:var(--muted);font-size:11px;margin-top:15px}#fixedProgress{position:fixed;top:135px;right:12px;z-index:15;width:135px;max-height:none;background:#fffefaed;padding:14px;border:1px solid #ded2ec;border-radius:16px;box-shadow:0 4px 18px #2924430a;pointer-events:none}#fixedProgress b{display:block;font-size:11px;color:var(--purple)}#fixedProgress span{display:block;font-size:10px;color:var(--muted);margin:9px 0}#fixedProgress progress{width:100%;height:9px;accent-color:var(--purple)}@media(min-width:1100px){.journey{max-width:750px}}@media(max-width:1099px){#fixedProgress{top:auto;bottom:55px;width:145px;padding:10px 12px}#fixedProgress span{margin:5px 0}.homeintro{padding-top:45px}}@media(max-width:720px){.homeintro h1{font-size:45px}.homeintro .eyebrow{font-size:12px}.homeintro p{font-size:16px}.homeintro p span{font-size:20px}#fixedProgress{right:10px;bottom:53px;width:133px}.sectionfinish{padding:23px 8px;margin-bottom:75px}footer{padding-bottom:140px}}

/* Readable English type, served with the site rather than a remote font request. */
@font-face{font-family:Lexend;font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/lexend-400.ttf') format('truetype');unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF}
@font-face{font-family:Lexend;font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/lexend-500.ttf') format('truetype');unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF}
@font-face{font-family:Lexend;font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/lexend-600.ttf') format('truetype');unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF}
@font-face{font-family:Lexend;font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/lexend-700.ttf') format('truetype');unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF}
body{font-family:Lexend,Tahoma,Arial,sans-serif;font-size:17px}
:lang(ar){font-family:Tahoma,Arial,sans-serif;letter-spacing:normal}
input,textarea{font-family:inherit}
p,.lessonpaper p,.lessonpaper li,.guidegrid p,.panel p{font-size:17px;line-height:1.9}
.explanation li{font-size:18px;line-height:1.95;margin:15px 0;color:#514c65}
.explanation p,.sectionheading>p{font-size:17px}
.explanation .example{font-size:38px;line-height:2;overflow-wrap:anywhere}
.arabicmark{display:inline-block;font:1.45em Tahoma,Arial,sans-serif;line-height:1.8;color:var(--purple);vertical-align:middle;padding:0 .12em;white-space:nowrap}
.arabicsequence{display:flex;direction:ltr;justify-content:center;align-items:center;gap:22px;flex-wrap:wrap}
.arabicsequence>span{direction:rtl;unicode-bidi:isolate;white-space:nowrap}
.vowelpairs{gap:18px;font-size:.86em}
.joiningletters{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:20px 0;direction:ltr}
.joiningletters>span{display:flex;flex-direction:column;align-items:center;min-width:68px;background:#f7f3fc;padding:8px 12px;border-radius:14px}
.joiningletters b{font-size:40px;font-weight:400;line-height:1.8;color:var(--purple)}
.joiningletters small{font-size:15px;font-family:Lexend,Tahoma,sans-serif}
.note,.audionote{font-size:16px;line-height:1.9}
.microcopy{font-size:14px!important;line-height:1.85}
.selectlabel,.selectlabel select,input:not([type=checkbox]),.secondary,.clear,.lessonnav button{font-size:16px}
.soundbuttons{direction:ltr}.sound{min-width:98px}.sound span{line-height:1.9}
.pad{display:block;width:100%;height:340px;touch-action:none;cursor:crosshair;background:repeating-linear-gradient(white 0px,white 83px,#ede7f3 84px,#ede7f3 85px);margin:20px 0}
.wordpad{height:360px}
.numberguide ol{padding-left:24px}.numberguide li{margin-bottom:18px}
.patternexamples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:23px 0}
.patternexample{display:flex;flex-direction:column;gap:8px;align-items:center;border:1px solid #dfd3ee;background:#f9f5fd;border-radius:16px;padding:18px 10px;color:var(--ink)}
.patternexample b{font-size:25px;color:var(--purple)}.patternexample span{font-size:29px;line-height:1.9}.patternexample small{font-size:13px;color:var(--muted)}
.numbergrammar{background:#f4f8f2;padding:18px;border-radius:15px}
#numbers .wordresult{font-size:clamp(30px,4vw,50px);line-height:1.95;overflow-wrap:anywhere}
.journeycomplete{max-width:800px;margin:0 auto 32px;padding:30px;border:2px solid #c0dcc6;border-radius:24px;background:linear-gradient(130deg,#eaf6ee,#fff9e9);text-align:center}
.journeycomplete[hidden]{display:none}.journeycomplete h2{font-size:28px;margin:12px 0}.completionspark{font-size:44px;color:#ba8b32}.journeycomplete .actionrow{justify-content:center}.journeycomplete small{font-size:14px;color:var(--muted)}
.completionarabic{font-size:27px!important;color:var(--purple);line-height:1.9}
@media(max-width:720px){
 body{font-size:17px}.introstep{padding:24px 19px}.explanation li{font-size:17px;line-height:1.95}.explanation p,.sectionheading>p{font-size:17px}.introsteptitle h3{font-size:22px}.introsteptitle div>span:last-child{font-size:18px}
 .explanation .example{font-size:33px;padding:18px 10px}.arabicsequence{gap:17px}.vowelpairs{gap:14px;font-size:.85em}.joiningletters{gap:9px}.joiningletters>span{min-width:66px}
 .lessonpaper p,.lessonpaper li,.guidegrid p{font-size:17px}.lessonpaper{padding:24px 18px}.lessonpaper h2{font-size:22px;line-height:1.45}.selectlabel{font-size:16px}.lessonpaper .chaptercount{font-size:12px!important}
 .pad{height:290px}.wordpad{height:310px}.patternexamples{grid-template-columns:1fr}.patternexample span{font-size:30px}.journeycomplete{padding:25px 18px}.journeycomplete h2{font-size:24px}
 .brand{font-size:16px}.brand small{font-size:13px}.homeback,.aboutbutton{font-size:12px;line-height:1.6}header{gap:10px;flex-wrap:wrap}.brand{flex:1;min-width:200px}.aboutbutton{margin-left:auto}.homeback{margin-left:auto}.localnav{flex-wrap:wrap}
 .sound{min-width:85px}.soundbuttons{gap:10px}.arabicinput{font-size:28px!important}
}

@font-face{font-family:Lexend;font-style:normal;font-weight:800 900;font-display:swap;src:url('assets/fonts/lexend-800.ttf') format('truetype');unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF}
/* One roomy pad, with all positional models visible above it. */
.tracingforms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;direction:rtl;margin:22px 0 14px}
.tracingform{border:2px solid #e2d9ed;background:#fcfaff;border-radius:15px;padding:12px 7px;min-width:0;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px}
.tracingform>span{font-size:48px;line-height:1.7;min-height:80px}.tracingform small{font-size:12px;line-height:1.7;font-family:Lexend,Tahoma,Arial,sans-serif}
.tracingform.selected{border-color:var(--purple);background:#efe6fb;box-shadow:0 3px 0 #d3c0e7}
.tracingformname{color:var(--purple);font-weight:500;font-size:16px}
.writingdirection{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;background:#f6f1fb;border:1px solid #e5dcef;border-radius:13px;padding:13px 15px;margin:18px 0;color:var(--purple);direction:ltr}
.writingdirection b{font-size:14px;font-weight:500}.writingdirection svg{width:140px;height:24px;flex-shrink:0}.writingdirection>span{font-size:18px;line-height:1.6}
.strokeexample{background:#fffaf0;border:1px solid #ecdcc0;border-radius:17px;padding:18px;margin-top:22px}
.strokeexample summary{font-size:16px;line-height:1.7;cursor:pointer;color:var(--purple)}.strokeexample h4{font-size:19px;margin-bottom:10px}.strokeexample p,.strokeexample li{font-size:16px;line-height:1.85;color:#62576a}.strokeexample li{margin:9px 0}.strokeexample ol{padding-left:24px}.jeemguide{width:100%;max-width:410px;max-height:370px;display:block;margin:15px auto;background:white;border-radius:15px;border:1px solid #eee5f1}.guidecredit{display:block;font-size:12px;line-height:1.8;color:var(--muted)}.guidecredit a{color:var(--purple)}
@media(max-width:720px){.tracingforms{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tracingform>span{font-size:47px;min-height:74px}.tracingform small{font-size:13px}.writingdirection{padding:13px 12px}.writingdirection b{width:100%;font-size:14px}.writingdirection svg{width:112px}.writingdirection>span{font-size:17px}.strokeexample{padding:15px}.strokeexample ol{padding-left:21px}}

/* Supplied geometric references, recoloured and kept outside the reading surface. */
body{position:relative;isolation:isolate;background:#f8f6f0}
body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-2;background-image:url('assets/ornaments/tile.svg');background-size:190px;opacity:.055}
.arabesquebackdrop{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;user-select:none}
.sidearch{position:absolute;right:-180px;top:80px;width:540px;height:930px;background:url('assets/ornaments/arch-side.jpg') center/cover no-repeat;filter:hue-rotate(75deg) saturate(.45);mix-blend-mode:multiply;opacity:.16}
.edgerosette{position:absolute;display:block;width:260px;height:260px;background:center/contain no-repeat;opacity:.18}
.rose1{left:-100px;top:380px;background-image:url('assets/ornaments/square-rosette.svg');transform:rotate(-9deg)}
.rose2{right:-85px;top:1260px;background-image:url('assets/ornaments/interlace.svg');transform:rotate(8deg)}
.rose3{left:-80px;top:2180px;background-image:url('assets/ornaments/star-frame.svg');transform:rotate(-10deg)}
.rose4{right:-100px;top:3250px;background-image:url('assets/ornaments/square-rosette.svg');transform:rotate(12deg)}
.homeintro{isolation:isolate;overflow:visible;padding-top:85px;padding-bottom:55px}
.homeintro:before{content:'';inset:-12px -34px -15px;z-index:-1;opacity:.48;background:url('assets/ornaments/arch-frame.jpg') center 47%/cover no-repeat;mix-blend-mode:multiply;filter:sepia(.2) hue-rotate(215deg) saturate(.45);border-radius:35px}
.homeintro:after{content:'';right:-2%;top:38px;width:135px;height:135px;opacity:.4;background:url('assets/ornaments/star-frame.svg') center/contain no-repeat;transform:rotate(7deg)}
.homeintro .eyebrow{position:relative}.homeintro h1{position:relative}.homeintro p{position:relative}
.journeycard{box-shadow:0 5px 0 #e9e1ee,0 12px 25px #49315e05}
.journeycard:after{content:'';top:18px;right:15px;width:43px;height:43px;opacity:.23;background:url('assets/ornaments/square-rosette.svg') center/contain no-repeat}
.numberexplorer{position:relative;overflow:hidden}.numberexplorer:after{content:'';position:absolute;width:160px;height:160px;right:-72px;top:22px;background:url('assets/ornaments/interlace.svg') center/contain no-repeat;opacity:.22;pointer-events:none}
.numberdisplay{position:relative;isolation:isolate;width:250px;max-width:100%;height:230px;align-items:center;margin:15px auto 5px;font-size:68px}
.numberdisplay:before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/ornaments/star-frame.svg') center/contain no-repeat;opacity:.56}
.numberdisplay b{line-height:1.2;font-weight:600;letter-spacing:-2px}
.numberguide{background:linear-gradient(110deg,#fff 70%,#faf6ed)}
.numbernav{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:25px;padding-top:23px}
.numbernav button{font-size:15px}.numberexplorer .audiotarget{display:block;margin:12px auto 0}.numberexplorer{scroll-margin-top:20px}
.tracingcontrols{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;background:#faf7fd;border:1px solid #e6deef;border-radius:15px;padding:17px 18px;margin:18px 0 12px}
.pensizelabel{display:grid;grid-template-columns:1fr auto;gap:9px 15px;min-width:210px;flex:1;font-size:15px;color:var(--ink)}
.pensizelabel output{font-size:14px;color:var(--purple);font-variant-numeric:tabular-nums}.pensizelabel input{grid-column:1/-1;width:100%;accent-color:var(--purple);min-height:28px;margin:0;cursor:pointer}
.steadypen{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 9px;font-size:15px;color:var(--ink);cursor:pointer}.steadypen input{accent-color:var(--purple);width:19px;height:19px;margin:0}.steadypen small{grid-column:2;font-size:12px;line-height:1.7;color:var(--muted)}
.resetprogress{display:block;margin-top:13px;border:1px solid #d9cce6;background:#faf7fd;padding:8px 13px;border-radius:10px;color:var(--purple);font-size:12px}
.mountainprogress{background:#fffdf9e8;align-items:center}.mountainprogress p{font-size:15px}.mountainprogress small{font-size:12px;line-height:1.8;display:block}.mountainprogress b{font-size:15px}
@media(max-width:720px){
 body:before{opacity:.04;background-size:150px}.sidearch{right:-270px;width:400px;height:790px;opacity:.08}.edgerosette{width:185px;height:185px;opacity:.13}.rose1{left:-105px;top:550px}.rose2{right:-115px;top:1450px}.rose3{left:-110px;top:2300px}.rose4{right:-105px}
 .homeintro{padding:55px 8px 40px}.homeintro:before{inset:0 -10px;border-radius:25px;opacity:.33;background-position:center center}.homeintro:after{width:80px;height:80px;right:-9px;top:22px;opacity:.28}
 .tracingcontrols{padding:16px 14px;gap:16px}.pensizelabel{min-width:0;width:100%;flex-basis:100%;font-size:16px}.steadypen{font-size:16px}.steadypen small{font-size:13px}.numbernav{gap:12px}.numbernav button{flex:1;min-width:118px;padding:13px 10px;font-size:14px}.numberdisplay{width:225px;height:210px;font-size:60px}
 .mountainprogress{align-items:flex-start}.mountainprogress svg{width:88px}.mountainprogress b{font-size:13px}.mountainprogress p{font-size:13px}.mountainprogress small{font-size:11px}.resetprogress{font-size:13px;padding:9px 12px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Zakaria branding: clear title, centred signature, and a separate navigation group. */
header{max-width:1260px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:25px;padding:22px 30px;align-items:center}
header .brand{min-width:0;flex:initial;font-size:18px;gap:12px;justify-self:start}header .brand small{font-size:14px;line-height:1.8}
header .calligraphylogo{width:79px;height:79px;margin:-6px 0;flex-shrink:0}
.namecalligraphy{display:flex;align-items:center;justify-content:center;width:168px;height:82px;mix-blend-mode:multiply;border-radius:8px}
.namecalligraphy img{width:100%;height:100%;object-fit:contain}.namecalligraphy:hover{opacity:.78}.namecalligraphy:focus-visible{outline:3px solid #c7a466;outline-offset:5px}
.headerlinks{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;justify-self:end}.headerlinks .aboutbutton,.headerlinks .homeback{margin:0;font-size:12px;max-width:none;white-space:nowrap}
/* Only the arch occupies the hero; its patterned sides reach the viewport edges. */
.homeintro:before{left:calc(12px - var(--hero-left,12px));right:auto;width:var(--hero-bleed-width,100%);top:-18px;bottom:-30px;border-radius:0;background-size:cover;background-position:center 47%}
.homeintro:after{display:none}
.sidearch{top:var(--ornament-start,1050px);right:-95px;width:400px;height:600px;filter:saturate(.65);opacity:.14}
.sidearch.leftside{left:-95px;right:auto;top:calc(var(--ornament-start,1050px) + 1000px);transform:scaleX(-1)}
.calligraphymotif{width:220px;max-height:140px;object-fit:contain;opacity:.1}
.motif1{left:-45px;right:auto;top:calc(var(--ornament-start,1050px) + 720px);transform:rotate(-8deg)}
.motif2{right:-45px;left:auto;top:calc(var(--ornament-start,1050px) + 1720px);transform:rotate(8deg)}
.rose1{left:auto;right:-65px;top:calc(var(--ornament-start,1050px) + 2020px);width:180px;height:180px;opacity:.13}
.journeycard:after{display:none}
/* Eight-point Arabic stars frame the section icons. */
.journeyicon{position:relative;width:96px;height:96px;border-radius:0;clip-path:polygon(50% 0%,64.64% 14.64%,85.36% 14.64%,85.36% 35.36%,100% 50%,85.36% 64.64%,85.36% 85.36%,64.64% 85.36%,50% 100%,35.36% 85.36%,14.64% 85.36%,14.64% 64.64%,0% 50%,14.64% 35.36%,14.64% 14.64%,35.36% 14.64%);font-size:37px}
.journeyicon:before{content:'';position:absolute;inset:5px;background:url('assets/ornaments/star-frame.svg') center/contain no-repeat;opacity:.65;pointer-events:none}
.cardwords{min-width:0}
/* A small persistent achievement row; the modal celebration is shown once per climb. */
.journeycomplete{display:flex;align-items:center;gap:15px;max-width:800px;margin:0 auto 26px;padding:17px 20px;text-align:left;border-width:1px;border-radius:17px;background:#f0f7ee;box-shadow:none}
.completionstar{display:block;width:43px;height:43px;flex-shrink:0}.completioncopy{flex:1;min-width:0}.journeycomplete h2{font-size:18px;line-height:1.5;margin:0 0 4px}.journeycomplete p{font-size:14px;line-height:1.6;margin:0}.completioncopy p span{font-size:18px;color:var(--purple);margin-right:5px}.completionactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.completionactions button{font-size:12px;padding:9px 11px}.dialogstar{width:51px;height:51px;margin:2px 0 15px}
@media(min-width:721px) and (max-width:1000px){header{gap:14px;padding:20px}.namecalligraphy{width:132px;height:69px}header .brand{font-size:16px;gap:8px}header .brand small{font-size:12px}header .calligraphylogo{width:62px;height:62px}.headerlinks{gap:4px}.headerlinks .homeback,.headerlinks .aboutbutton{font-size:11px;padding:9px}}
@media(max-width:720px){
 header{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:18px 17px}.brand{grid-column:1/-1;width:100%}header .brand{font-size:18px;gap:10px}header .brand small{font-size:14px}.namecalligraphy{grid-row:2;grid-column:1;justify-self:start;width:126px;height:63px}header .calligraphylogo{width:65px;height:65px}.headerlinks{grid-row:2;grid-column:2;max-width:195px;gap:3px}.headerlinks .homeback,.headerlinks .aboutbutton{font-size:11px;padding:9px 7px}
 .homeintro:before{left:calc(12px - var(--hero-left,12px));width:var(--hero-bleed-width,100%);right:auto;top:-12px;bottom:-25px;opacity:.33}
 .sidearch{right:-145px;width:250px;height:600px;top:var(--ornament-start,1200px);opacity:.09}.sidearch.leftside{left:-145px;right:auto;top:calc(var(--ornament-start,1200px) + 1000px)}
 .calligraphymotif{width:145px;max-height:130px;opacity:.065}.motif1{left:-50px;top:calc(var(--ornament-start,1200px) + 720px)}.motif2{right:-50px;top:calc(var(--ornament-start,1200px) + 1720px)}.rose1{right:-80px;left:auto;top:calc(var(--ornament-start,1200px) + 2020px);width:170px;height:170px;opacity:.1}
 .journeyicon{width:72px;height:72px;font-size:28px}.journeyicon:before{inset:3px}.journeycard{gap:12px;padding:27px 15px}.cardwords b{font-size:19px;line-height:1.4}.cardwords strong{font-size:17px;line-height:1.5}.cardarrow{font-size:17px}
 .journeycomplete{padding:14px;gap:11px;flex-wrap:wrap}.completionstar{width:35px;height:35px}.journeycomplete h2{font-size:17px}.journeycomplete p{font-size:13px}.completionactions{flex-basis:100%;justify-content:flex-start;margin-left:46px}.dialogstar{width:45px;height:45px}
}
@media(max-width:370px){.namecalligraphy{width:105px}.headerlinks{max-width:180px}.headerlinks .homeback,.headerlinks .aboutbutton{font-size:10px;padding:8px 6px}.journeyicon{width:64px;height:64px;font-size:26px}.cardwords b{font-size:18px}}
/* Arabic-inspired cut-corner banners, with quiet ornament outside the text. */
header{grid-template-columns:minmax(0,1fr) auto}.headerlinks{grid-column:2}
.journeycard{border:0!important;border-radius:0!important;clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);background:linear-gradient(105deg,#f0eadd,#fffefa 24%,#fffefa 76%,#f0eadd)!important;box-shadow:none!important;padding:35px 48px;position:relative;isolation:isolate}
.journeycard:nth-of-type(even){background:linear-gradient(105deg,#e8dfcd,#fffefa 26%,#fffefa 74%,#e8dfcd)!important}
.journeycard::before{content:''!important;position:absolute!important;inset:8px!important;z-index:-1;clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);background:linear-gradient(#b79a62,#d7c6a5);opacity:.85!important;pointer-events:none}
.journeycard::after{content:'';position:absolute;inset:10px;z-index:-1;clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);background:linear-gradient(90deg,#f0eadd,#fffefa 24%,#fffefa 76%,#f0eadd);pointer-events:none}
.journeycard:hover{filter:brightness(1.015);transform:translateY(-3px)}
.journeycard:focus-visible{outline:none;filter:drop-shadow(0 0 3px #7655b4)}
.journeycard .stepnum{left:32px;top:12px;background:transparent;color:#86632d}.stepnum img{width:28px;height:28px}
.jcstar .cardwords b{color:#785a22}.jcstar .journeyicon{background:#f2e4bb}
.pronunciationtip{margin:0 0 28px;padding:22px 26px;border:1px solid #dccce9;border-left:5px solid #9473bd;border-radius:18px;background:#faf6fe;font-size:17px;line-height:1.7}
.pronunciationtip h3{margin:0 0 10px;font-size:19px}.pronunciationtip p{margin:8px 0}.pronunciationtip small{display:block;color:#6c6076;font-size:14px}
.starpath{display:flex;flex-direction:column;gap:66px;max-width:960px;margin:auto}.starunit{position:relative;background:#fffefa;border:1px solid #d9c296;border-radius:28px;padding:32px;box-shadow:0 8px 24px #654d2410}
.starunit:not(:last-child)::after{content:'';position:absolute;left:calc(50% - 3px);top:100%;height:66px;width:6px;background:repeating-linear-gradient(35deg,#be994f 0 4px,#f0deac 4px 8px);border-radius:8px}
.starunitheading{display:flex;gap:22px;align-items:center;padding-bottom:24px;border-bottom:1px solid #eee2ca}.starunitheading h2{margin:8px 0}.starunitheading h2 small{display:block;font-family:Tahoma,Arial,sans-serif;margin-top:10px;font-size:25px;color:#7b643a}
.starunit section{padding:25px 0;border-bottom:1px solid #eee4d3}.starunit h3{font-size:21px}.starunit p{line-height:1.8}.starunit .readingtext{font-size:29px;line-height:2.1}
.starwords{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.starwords>div{padding:18px;border-radius:16px;background:#f7f1e8}.starwords b{display:block;font-family:Tahoma,Arial,sans-serif;font-size:30px;text-align:right}.starwords .audiotarget{max-width:100%;white-space:normal}
.starbuild{display:flex;flex-wrap:wrap;gap:10px}.starbuild button{font-family:Tahoma,Arial,sans-serif;font-size:27px}.starunitend{padding-top:24px}.starunitend a{display:inline-block;text-decoration:none}.starunit details{margin:16px 0}.starunit summary{cursor:pointer;color:#684b9f;padding:10px 0}.starunit input{max-width:100%}
#activityClimb{padding:20px 24px;background:#f5effb;border-radius:20px;margin-bottom:18px}#activityClimb b{font-size:22px;color:#654293}#activityClimb progress{width:100%;height:16px;display:block;margin:15px 0;accent-color:#8a61b3}#activityClimb p{font-size:15px;line-height:1.7}#activityClimb small{color:#665d72;font-size:13px;line-height:1.6}
#fixedProgress{width:180px}#fixedProgress small{font-size:11px}#fixedProgress span{font-size:13px}
@media(max-width:720px){header{grid-template-columns:1fr!important}.headerlinks{grid-column:1!important;grid-row:auto!important;justify-content:space-between;width:100%}.journeycard{padding:36px 25px 26px;gap:14px;clip-path:polygon(5% 0,95% 0,100% 50%,95% 100%,5% 100%,0 50%)}.journeycard .stepnum{left:25px;top:9px}.journeycard .cardwords{min-width:0}.journeycard .cardwords b{font-size:20px}.journeycard .cardwords strong{font-size:20px}.journeycard .cardarrow{font-size:20px}.pronunciationtip{padding:18px;font-size:16px}.starunit{padding:20px 16px;border-radius:20px}.starunitheading{gap:14px}.starunitheading h2{font-size:24px}.starunit .readingtext{font-size:26px}.starwords{grid-template-columns:1fr}.starunit .audiotarget{max-width:100%;white-space:normal}#fixedProgress{position:fixed;right:8px;bottom:60px;top:auto;width:152px;padding:9px 11px;opacity:.97}.starpath{gap:50px}.starunit:not(:last-child)::after{height:50px}main{padding-bottom:155px}}
@media(prefers-reduced-motion:reduce){.journeycard:hover{transform:none}}
.journeycard::after{display:block!important;width:auto!important;height:auto!important;opacity:1!important;transform:none!important;border:0!important;border-radius:0!important}
.journeycard::before{width:auto!important;height:auto!important;transform:none!important;border:0!important;border-radius:0!important}
@media(max-width:720px){#fixedProgress{width:220px;padding:7px 10px;bottom:52px;border-radius:12px}#fixedProgress b,#fixedProgress small{display:none}#fixedProgress span{font-size:12px;margin:0}#fixedProgress progress{height:8px;margin:5px 0 0}.headerlinks{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center!important;gap:8px!important}}
/* Review update: a single home summary and a flow-based lesson progress bar. */
#fixedProgress{position:sticky!important;top:0!important;bottom:auto!important;right:auto!important;left:auto!important;transform:none!important;width:auto!important;max-width:none!important;margin:0!important;display:flex;align-items:center;justify-content:center;gap:16px;padding:9px 20px!important;border-radius:0!important;background:#fbf8ff;box-shadow:0 2px 8px #39215b12;z-index:30;opacity:1!important}
#fixedProgress[hidden]{display:none!important}#fixedProgress span{font-size:14px;white-space:nowrap}#fixedProgress progress{width:160px;height:10px;margin:0!important}#fixedProgress .textbutton{font-size:13px;min-height:36px;padding:4px 10px}
#activityClimb{padding:15px 22px;margin:12px 0 26px}#activityClimb .climbtop{display:flex;justify-content:space-between;align-items:center;gap:12px}#activityClimb b{font-size:19px}#activityClimb p{margin:8px 0}#activityClimb summary{cursor:pointer;font-size:13px;min-height:32px;padding-top:8px}
.homeintro{padding-top:60px;padding-bottom:40px}.homeintro h1{font-size:clamp(38px,6vw,70px)}.recommendopen{margin-top:8px;margin-bottom:8px}
.sectionfinish{max-width:960px;margin:48px auto 16px;padding:24px;border-top:1px solid #d9c9e6;display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:#faf6fd;border-radius:18px}.sectiontick{display:flex;gap:12px;align-items:center;cursor:pointer;min-height:44px;font-size:17px;font-weight:600}.sectiontick input{width:22px;height:22px;accent-color:#7651ac}.sectionfinish small{font-size:13px;line-height:1.6;color:#61576c}.nextsection{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;margin-top:14px;text-decoration:none;color:#654194;font-weight:600;border-top:1px solid #e2d5ec;width:100%}
.localnav,.lessonnav,.numbernav{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #eee7f4}.localnav button,.lessonnav button,.numbernav button{min-height:44px}
.readingmodels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.readingmodel{border:1px solid #e3d6eb;padding:14px;border-radius:14px;margin:12px 0;background:#fffdf9}.readingmodel b{display:block;font:34px/1.8 Tahoma,Arial,sans-serif;text-align:right}.readingmodel .audiotarget{white-space:normal;max-width:100%}
.wordreinforcement{margin-top:18px;padding:10px 16px;border-radius:12px;background:#f2ecf8}.wordreinforcement summary{cursor:pointer;min-height:36px}
.sound small,.tile small,.cardstatus,.chaptercount,.microcopy,.audiotarget,.groupcaption{font-size:12px!important;line-height:1.5!important}.sound small,.microcopy,.audionote,.audiotarget:disabled{color:#63566f!important}.trayhint{color:#675574}.arabickeyboard button{min-height:44px;min-width:36px}.penwidthcontrol input[type="range"]{min-height:44px}summary{min-height:40px;padding:8px 0}.steadycontrol,.pensteady{min-height:44px}input[type="checkbox"]{accent-color:#7450a5}
.page :is(input,button,a,summary){scroll-margin-top:85px}.introstep h3{line-height:1.5}.introstep .explanation{font-size:18px}
@media(max-width:720px){#fixedProgress{gap:9px;padding:8px 10px!important}#fixedProgress span{font-size:12px;white-space:normal}#fixedProgress progress{width:85px;flex-shrink:0}#fixedProgress .textbutton{font-size:12px}.homeintro{padding-top:35px;padding-bottom:25px}.homeintro h1{font-size:39px}#activityClimb{padding:15px}#activityClimb b{font-size:17px}.climbtop{align-items:flex-start!important}.sectionfinish{padding:18px;margin-top:32px}.readingmodels{grid-template-columns:1fr}.sectionfinish .nextsection{line-height:1.6}.introstep .explanation{font-size:17px}main{padding-bottom:40px}}

.pensizelabel input[type="range"]{min-height:44px}.steadypen{min-height:44px;padding:8px}.sectionfinish{gap:5px}.sectionfinish .nextsection{margin-top:8px}@media(max-width:720px){.sectionfinish{padding:14px;margin-top:24px}.sectionfinish small{font-size:12px}.sectionfinish .nextsection{font-size:15px}}

/* Vocabulary illustrations use their natural proportions and load on demand. */
.vocabimage{display:block;width:100%;height:125px;object-fit:contain;margin:0 auto 12px}
.wordillustration{display:block;width:180px;max-width:100%;height:125px;object-fit:contain;margin:12px auto}
.letterexampleimage{display:block;width:135px;max-width:100%;height:90px;object-fit:contain;margin:12px auto 0}
.recommendguide{max-width:750px;margin:0 auto 28px;border:1px solid var(--line);border-radius:16px;background:#fffdf9;padding:16px 20px}
.recommendguide>summary{cursor:pointer;color:var(--purple);font-size:15px;line-height:1.8}
.recommendguide>summary span{display:inline-block;margin-left:12px;font-family:Tahoma,Arial,sans-serif}
#recommendDialog h2{font-size:23px}#recommendResult{line-height:1.8}
.lettercollection>summary{display:none}
.installbanner{max-width:1050px;margin:18px auto 0;padding:18px 22px;background:#f1ede3;border:1px solid #d9c69f;border-radius:16px;display:flex;align-items:center;gap:16px}
.installbanner[hidden],#installTop[hidden]{display:none!important}
.installbanner b{font-size:15px}.installbanner p{font-size:13px;margin:5px 0 0;line-height:1.6}.installbanner>div{flex:1}
.dismissinstall{border:0;background:transparent;color:var(--muted);font-size:26px;padding:8px;min-width:44px;min-height:44px}
#installHelp li{line-height:1.9;margin:12px 0;font-size:16px}#installHelp p{font-size:15px}
.writingdirection{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.writingdirection svg{display:block;width:min(220px,90%);height:28px}
.writingdirection b{width:auto}.writingdirection>span{font-size:16px}
.writingdirection+.pad{margin-top:8px}
@media(max-width:720px){
 .workspace aside{max-height:none;overflow:visible;position:static}
 #letterPicker{max-height:none;overflow:visible}
 .lettercollection>summary{display:block;cursor:pointer;padding:16px;background:#f5efe4;border-radius:12px;color:var(--purple);font-size:15px;list-style:none}
 .lettercollection>summary::after{content:' +';float:right}.lettercollection[open]>summary::after{content:' −'}
 .lettercollection>summary span{display:block;font-size:13px;margin-top:7px;color:var(--muted)}
 
 .lettercollection[open] .asidehead{margin-top:15px}
 .installbanner{margin:12px 14px 0;padding:14px;flex-wrap:wrap;gap:10px}.installbanner>div{flex-basis:calc(100% - 54px)}
 .installbanner .secondary{order:3;width:100%}.dismissinstall{align-self:flex-start}
 .headerlinks{flex-wrap:wrap;justify-content:center}#installTop{font-size:12px;padding:8px 10px}
 .vocabimage{height:105px}.letterexampleimage{height:75px}.wordillustration{height:110px}
 .writingdirection{gap:7px;padding:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Equal content rows keep the three position examples visually aligned. */
.forms>.formcard{display:flex;flex-direction:column;align-items:center;min-width:0;gap:12px}
.forms>.formcard>small{min-height:36px;display:grid;place-items:center;width:100%}
.forms .formshape{min-height:70px;margin:0;display:grid;place-items:center;width:100%}
.forms .word{min-height:62px;display:block;align-content:center;width:100%}
.forms .letterexampleimage{width:135px;max-width:100%;height:90px;margin:0 auto;flex-shrink:0}
.forms .audiotarget{width:100%;margin-top:auto;min-height:54px}
@supports(grid-template-rows:subgrid){
 .forms>.formcard{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:12px;align-items:center}
 .forms .audiotarget{margin-top:0;align-self:end}
}
@media(max-width:720px){
 .forms{column-gap:7px;row-gap:10px}
 .forms>.formcard{padding:14px 6px;gap:10px}
 .forms>.formcard>small{min-height:38px;font-size:11px;line-height:1.5}
 .forms .formshape{min-height:64px}
 .forms .word{min-height:60px}
 .forms .letterexampleimage{height:78px}
 .forms .audiotarget{min-height:66px;padding:9px 4px;line-height:1.6}
}

/* Reading sequence: the first item is on the right, then a / u / i moves left. */
.soundbuttons,.arabicsequence{direction:rtl;flex-direction:row}
.soundbuttons{justify-content:flex-start}
.soundbuttons>.sound{direction:ltr}
.soundbuttons>.sound>span{direction:rtl;unicode-bidi:isolate}
.rewardpreviews{display:flex;flex-direction:column;gap:14px;margin:22px 0}
.rewardpreviews button{text-align:left;padding:16px 18px;font-size:15px}
#rewardSoundToggle{font-size:14px;line-height:1.7;margin-top:10px}
footer .soundsettingsbutton{display:inline-flex!important;align-items:center;gap:6px;font-size:12px}
.installbrowserchoices{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.installbrowserchoices button{font-size:12px;padding:9px 12px}
.installtroubleshooting{margin:22px 0;padding:14px;border:1px solid var(--line);border-radius:12px}
.installtroubleshooting summary{cursor:pointer;font-size:14px;color:var(--purple);line-height:1.6}
.installtroubleshooting p{font-size:13px!important;line-height:1.8}
/* Keep each a / u / i trio on one row, even on narrow phones. */
.soundrow .soundbuttons,.introstep .soundbuttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:480px;margin-left:auto;margin-right:0}
.soundrow .soundbuttons>.sound,.introstep .soundbuttons>.sound{min-width:0;width:100%;padding:12px 4px}
.soundbuttons>.sound small{white-space:normal;line-height:1.5}
/* Optional learning tools keep the existing vertical lessons intact. */
.learningtools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 25px;padding:20px;border:1px solid var(--line);border-radius:20px;background:#fffefa}.learningtools>small{flex-basis:100%;color:var(--muted)}.memoryentry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}.memoryentry small{color:var(--muted);max-width:400px;line-height:1.6}.letterquicklinks{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 24px}.letterquicklinks a{padding:10px 16px;color:var(--purple);background:#f2edf9;border-radius:12px;text-decoration:none}.continuousstep{scroll-margin-top:140px}.tile{position:relative}.practisedtick{position:absolute;top:4px;right:5px;font-size:14px;color:#24734c}.itempractised{border-color:#79aa8d!important}.practisedlabel{color:#24734c;font-weight:bold}.reviewprompt{font-size:clamp(36px,6vw,52px);text-align:center;line-height:1.8;padding:15px 0}.reviewprompt,.answercard[lang="ar"]{font-family:Tahoma,Arial,sans-serif}#memoryReview,#progressTransfer,#continueDialog{max-height:85dvh;overflow:auto;width:min(650px,calc(100% - 28px))}#memoryReview h2{padding-right:22px}#progressFile{width:100%;font-size:16px;padding:12px 0}#restorePreview{background:#eef6ef;padding:16px;margin:15px 0;border-radius:15px}#memoryReview .localnav{position:sticky;bottom:-1px;background:#fffefa;padding:16px 0 2px;gap:12px}#memoryReview .answercard{min-height:58px}#memoryReview .answercard:disabled{opacity:.75}#memoryReview .answercorrect:disabled{opacity:1}input:focus-visible{outline:3px solid #e99637;outline-offset:3px}@media(max-width:600px){.learningtools{padding:16px}.learningtools>.primary{width:100%;font-size:15px}.learningtools .secondary{flex:1}.memoryentry{margin-top:15px}.letterquicklinks{justify-content:space-between}.letterquicklinks a{flex:1;text-align:center;padding:10px 6px}.continuousstep{scroll-margin-top:125px}#memoryReview .answergrid{grid-template-columns:1fr}#memoryReview .localnav{flex-wrap:wrap}}
/* Keep the collection open in normal page flow, above the complete lesson. */
.workspace{display:flex;flex-direction:column}.workspace aside,.workspace .letterlesson{width:100%;max-width:100%}.workspace aside{position:static;max-height:none;overflow:visible}#letterPicker{max-height:none;overflow:visible}.lettercollection .asidehead{margin-top:0}.lettertop{scroll-margin-top:110px}
.footerutilities{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;width:100%;border-top:1px solid var(--line);padding-top:15px;margin-top:12px}.footerutilities .textbutton{display:inline-block!important}
/* Brand and actions share one compact mobile header row. */
@media(max-width:720px){
 header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:8px;padding:14px 12px}
 header .brand{grid-column:1;grid-row:1;width:auto;min-width:0;font-size:14px;gap:7px;line-height:1.4}
 header .brand>span{min-width:0}header .brand small{font-size:11px;line-height:1.6;margin-top:5px;letter-spacing:0}
 header .calligraphylogo{width:36px!important;height:44px!important;flex-shrink:0;object-fit:contain}
 header .headerlinks{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-end!important;gap:5px!important;width:auto;max-width:145px}
 header .headerlinks .aboutbutton{font-size:11px!important;padding:9px 7px!important;min-height:44px;white-space:normal;line-height:1.4;border-radius:12px;min-width:52px}
 header .headerlinks #installTop{max-width:78px;min-width:55px}
 .navtranslation{display:none}footer{flex-wrap:wrap}.footerutilities{gap:8px}
}
@media(max-width:360px){header{padding:12px 9px;gap:5px}header .brand{font-size:12px;gap:5px}header .brand small{font-size:10px}header .calligraphylogo{width:28px!important;height:38px!important}header .headerlinks{max-width:128px;gap:4px!important}header .headerlinks .aboutbutton{font-size:10px!important;padding:8px 5px!important;min-width:48px}header .headerlinks #installTop{max-width:70px;min-width:52px}}
footer .footerutilities{display:flex!important;margin-left:0}footer .footerutilities .textbutton{margin-left:0}

/* October 29: compact collection on phones, right-hand collection on computers. */
header .brand>span{white-space:nowrap}header .brand small{white-space:nowrap}
@media(min-width:901px){
 .workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;align-items:start;gap:24px}
 .workspace>aside{grid-column:2;grid-row:1;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}
 .workspace>.letterlesson{grid-column:1;grid-row:1;min-width:0}
 .workspace .tile{width:44px;min-height:48px;font-size:29px}
 .workspace .groupcaption{margin:12px 0 6px}.workspace .lettertiles{gap:6px}
}
@media(max-width:900px){
 .workspace{display:flex;flex-direction:column;gap:16px}.workspace>aside{position:static;max-height:none;overflow:visible;padding:14px;width:100%}
 #letterPicker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;direction:rtl}
 #letterPicker .letterfamily,#letterPicker .lettertiles{display:contents}#letterPicker .groupcaption{display:none}
 #letterPicker .tile{width:100%;min-width:0;min-height:44px;height:46px;font-size:27px;padding:1px 3px 10px;border-radius:9px}
 #letterPicker .tile small{font-size:8px;bottom:2px;left:4px}.lettercollection .asidehead{margin-bottom:12px}
 #letterPicker .practisedtick{font-size:10px;top:2px;right:2px}
}
@media(max-width:480px){#letterPicker{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}header .brand{font-size:clamp(10px,2.65vw,13px)!important;gap:5px}header .brand small{font-size:clamp(9px,2.4vw,11px)!important}header .headerlinks{max-width:125px!important}header .headerlinks .aboutbutton{font-size:10px!important;padding:8px 5px!important;min-width:48px}header .calligraphylogo{width:28px!important}}
@media(max-width:350px){#letterPicker{grid-template-columns:repeat(5,minmax(0,1fr))}header{padding:12px 8px;gap:4px}header .headerlinks{max-width:112px!important;gap:3px!important}header .headerlinks #installTop{min-width:48px;max-width:61px}header .brand{font-size:9px!important}header .brand small{font-size:8.5px!important}}

/* Preserve shape families on every screen. Each family keeps its own row. */
#letterPicker .letterfamily{display:block}#letterPicker .letterfamily .groupcaption{display:block}
@media(max-width:900px){
 #letterPicker{display:flex;flex-direction:column;gap:0;direction:rtl}
 #letterPicker>.letterfamily{padding:7px 0;border-bottom:1px solid #ddd5e9}
 #letterPicker>.letterfamily:last-child{border-bottom:0}
 #letterPicker .letterfamily .groupcaption{font-size:10px;line-height:1.4;margin:0 0 5px;text-align:right}
 #letterPicker .lettertiles{display:flex;flex-wrap:wrap;gap:6px;direction:rtl}
 #letterPicker .tile{width:44px;flex:0 0 44px;min-height:44px;height:46px}
}
.workbookdownload{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 22px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fffefa}
.workbookdownload p{margin:5px 0 0;font-size:12px}.workbookdownload a{text-decoration:none;font-size:13px;line-height:1.6;text-align:center}

/* Everyday phrases follow the existing paper-and-purple lesson style. */
#recommendOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}#recommendOptions label{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #e5deec;border-radius:12px;font-size:13px;background:#fff}#recommendOptions input{accent-color:#7145b7;flex-shrink:0}#recommendResult:empty{display:none}.jcdaily{background:linear-gradient(120deg,#f2edf9,#fffaf1)}.letternameaudio{margin-top:8px}.dailyintro h2{margin-top:6px}.dailyintro details{margin-top:18px;padding-top:14px;border-top:1px solid #e9e1ef}.dailyintro summary,.dailypron summary,.dailydialogue summary{cursor:pointer}.dailytoolbar{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end}.dailytoolbar label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600}.dailytoolbar input[type=search],.dailytoolbar select{width:100%;padding:12px;border:1px solid #dcd2e7;border-radius:12px;font:inherit;background:#fff;color:#39234f}.dailytoolbar label.dailygender{flex-direction:row;align-items:center;line-height:1.5}.dailygender input{width:18px;height:18px;accent-color:#7145b7}.dailytopicheading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:25px 0 14px}.dailytopicheading h2{margin:0}.dailytopicheading span{font-size:12px;color:#726480}.dailyphrasegrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:26px}.dailyphrase{background:#fff;border:1px solid #e4dcec;border-radius:20px;padding:22px;min-width:0;box-shadow:0 3px 0 #ede7f2}.dailyphrasetop{display:flex;align-items:center;gap:10px;font-size:11px;color:#776687;flex-wrap:wrap}.dailyphrasenum{width:30px;height:30px;display:grid;place-items:center;background:#f1ebf8;border-radius:50%;color:#7046ae;font-weight:700}.dailyphrase h3{font-size:29px;line-height:1.9;color:#6841a0;margin:15px 0 10px;font-weight:500;overflow-wrap:anywhere}.dailymeaning{font-weight:500;font-size:14px;line-height:1.7}.dailypron{font-size:12px;margin:14px 0;color:#71617e}.dailypron p{font-size:15px;line-height:1.7;letter-spacing:.02em}.dailyphrase .textbutton{margin-top:8px;font-size:11px}.dailyphrase.itempractised{border-color:#9bc4af}.dailyphrase .practisedlabel{color:#376b50}.dailypatterns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dailypatterns article{padding:16px;background:#f9f6fc;border-radius:14px;min-width:0}.dailypatterns h3{font-size:25px;line-height:1.9;color:#7145b7}.dailypatterns p{font-size:13px;line-height:1.8}.dailydialogue{padding:18px 0;border-top:1px solid #e8e0ef}.dailydialogue summary{font-weight:600;line-height:1.9}.dailydialogueline{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;padding:17px 0;border-bottom:1px dashed #e8e0ef}.dailydialogueline .speakerbadge{width:auto;height:35px;font-size:10px;padding:7px 10px;border-radius:10px}.dailydialogueline .inlinear{font-size:26px;line-height:1.9;margin:0}.dailydialogueline p{line-height:1.7}.dailypractice{scroll-margin-top:80px}
@media(max-width:650px){#recommendOptions,.dailytoolbar,.dailyphrasegrid,.dailypatterns{grid-template-columns:1fr}.dailyphrase{padding:19px}.dailyphrase h3{font-size:28px}.dailytopicheading{align-items:flex-start;flex-direction:column;gap:7px}.dailydialogueline{grid-template-columns:1fr;gap:4px}.dailydialogueline .speakerbadge{width:max-content}.dailyintro h2{font-size:24px}}

/* Keep alphabet numbers in their own row at every viewport size. */
#letterPicker .tile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;width:56px;flex:0 0 56px;height:78px;min-height:78px;padding:6px 4px;border-radius:12px}
#letterPicker .tile>span[lang=ar]{display:block;font:34px/44px Tahoma,Arial,sans-serif;min-height:44px;width:100%;text-align:center}
#letterPicker .tile>small{position:static;display:block;font:11px/16px Lexend,Arial,sans-serif!important;min-height:16px;color:inherit;opacity:.8}
#letterPicker .tile .practisedtick{position:absolute;top:2px;right:3px;font:12px/14px Arial}
.blendpiece small{line-height:1.6}

/* Full-width arch: bleed horizontally while staying clear of header and tools. */
header .calligraphylogo{margin:0;align-self:center}
.homeintro{margin:24px 0 28px;padding:clamp(44px,5vw,68px) 24px;isolation:isolate}
.homeintro::before{left:calc(0px - var(--hero-left,0px));right:auto;top:0;bottom:0;width:var(--hero-bleed-width,100%);border-radius:0;background-position:center 47%;background-size:cover;pointer-events:none}
.homeintro h1{margin:0 auto 24px;max-width:100%;line-height:1.18}
.homeintro p{margin:0 auto;max-width:850px}
#home .learningtools{position:relative;isolation:isolate;align-items:stretch;margin:0 0 28px;padding:22px;gap:14px;background:#fffefa}
#home .learningtools>button{display:flex;align-items:center;justify-content:center;min-height:52px;line-height:1.5;white-space:normal;text-align:center;max-width:100%;min-width:0}
#home .learningtools>small{padding-top:2px;line-height:1.6}
@media(min-width:601px) and (max-width:1100px){
 #home .learningtools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #home .learningtools>.primary,#home .learningtools>small{grid-column:1/-1}
 .homeintro h1{font-size:clamp(38px,5.5vw,60px)}
}
@media(max-width:600px){
 .homeintro{margin:16px 0 22px;padding:36px 16px}
 .homeintro h1{font-size:clamp(30px,7.5vw,39px);letter-spacing:-1px}
 #home .learningtools{display:grid;grid-template-columns:1fr;padding:16px;gap:12px}
 #home .learningtools>button{width:100%}
}

#home .learningtools>button[hidden]{display:none}

.arabic-header-banner{max-width:1100px;margin:8px auto 16px;padding:0 20px}.arabic-header-banner img{display:block;width:100%;height:auto;max-height:230px;object-fit:contain}@media(max-width:600px){.arabic-header-banner{padding:0 12px}.arabic-header-banner img{max-height:150px}}

/* Final bounded header and Arabic card correction */
header{display:grid!important;grid-template-columns:minmax(240px,1fr) minmax(180px,430px) auto!important;align-items:center;gap:18px}header .header-art{min-width:0;pointer-events:none;line-height:0}header .header-art img{width:100%;height:auto;max-height:132px;object-fit:contain;opacity:.68} .jcdaily .journeyicon{font-size:25px!important;line-height:1.8;padding:5px;box-sizing:border-box;direction:rtl}
@media(max-width:760px){header{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}header .brand{grid-column:1;grid-row:1}header .headerlinks{grid-column:2;grid-row:1}header .header-art{grid-column:1 / -1;grid-row:2;text-align:center}header .header-art img{width:min(100%,560px);height:auto;max-height:160px;opacity:.78}#fixedProgress{position:static!important;width:auto!important;max-width:100%;margin:10px 12px!important}.jcdaily .journeyicon{font-size:19px!important;padding:3px}}
@media(min-width:761px){header .brand{grid-column:1!important;grid-row:1!important}header .header-art{grid-column:2!important;grid-row:1!important}header .headerlinks{grid-column:3!important;grid-row:1!important}}
@media(max-width:760px){header .brand{grid-column:1!important;grid-row:1!important}header .headerlinks{grid-column:2!important;grid-row:1!important}}

/* Calm interface palette and compact footer — November 2026 */
:root{--ink:#28243D;--purple:#7655B4;--cream:#F8F6F0;--gold:#B79A62;--sage:#A5C7BE;--card:#FFFEFA;--mint:#e5efeb;--line:#e5e0d8}
body{background-color:var(--cream);color:var(--ink)}
header{background-color:var(--cream)}
.lessonlist details,.letterlesson,.guidegrid article,.panel,.lessonpaper,.vocabcard,.formcard,.topicbutton,select{background-color:var(--card)}
.journeycard::before{background:linear-gradient(var(--gold),#d7c6a5)}
.journeycard .stepnum{color:#79613c}
.sound.recorded,.audiotarget.ready,.listenorb,.answercorrect{background-color:#e5efeb!important;border-color:var(--sage)!important;color:#305d50}
progress{accent-color:var(--purple)}
@media(min-width:761px){header{grid-template-columns:minmax(0,1fr) minmax(180px,30vw) minmax(0,1fr)!important}header .brand{min-width:0;max-width:100%}header .header-art{justify-self:center;width:100%}header .headerlinks{justify-self:end}}
footer{padding:18px 4%!important;gap:10px 16px;border-top:1px solid var(--gold);display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;background-color:var(--cream)}
footer .calligraphylogo{width:44px;height:44px;margin:0}
footer>span{line-height:1.65}
footer #effectsToggle{position:static;right:auto;bottom:auto;box-shadow:none;margin:0;padding:8px 10px;justify-self:end;background:var(--card)}
footer .footerutilities{grid-column:2 / -1;width:auto;border:0;padding:0;margin:0!important;justify-content:flex-start;gap:8px 20px}
footer .footerutilities .textbutton{margin:0;padding:4px 0;color:var(--purple)}
@media(max-width:760px){footer{grid-template-columns:36px minmax(0,1fr);padding:16px 18px!important;gap:8px 12px}footer .calligraphylogo{width:36px;height:42px}footer>span{font-size:11px}footer #effectsToggle{grid-column:2;justify-self:start;padding:5px 0;border:0;background:transparent;font-size:10px}footer .footerutilities{grid-column:1 / -1;justify-content:center;gap:8px 18px}footer .footerutilities .textbutton{font-size:11px}}

/* Desktop spacing balance: leave phone layouts unchanged. */
@media(min-width:761px){
 header .headerlinks{justify-self:start;margin-left:clamp(12px,3vw,44px)}
 .journeycard{display:grid;grid-template-columns:96px minmax(0,1fr) 96px;gap:16px}
 .journeycard .cardwords{text-align:center;align-items:center}
 .journeycard .cardarrow{justify-self:end;align-self:center}
 .readingmodels{grid-template-columns:repeat(2,minmax(0,360px));justify-content:center;gap:18px}
 .readingmodel{width:100%;max-width:360px;margin:10px auto;padding:20px 24px;text-align:center;border:1px solid #d7c6a5;border-radius:18px;background:linear-gradient(135deg,#b79a6220,transparent 35%),var(--card);box-shadow:inset 0 0 0 5px var(--card),inset 0 0 0 6px #b79a6228}
 .readingmodel b{text-align:center}
 .readingmodel .audiotarget{display:inline-flex;margin:10px auto 0;align-items:center;justify-content:center}
}
@media(min-width:761px){.journeycard .stepnum{position:absolute;grid-column:auto}.journeycard .journeyicon{grid-column:1;grid-row:1}.journeycard .cardwords{grid-column:2;grid-row:1}.journeycard .cardarrow{grid-column:3;grid-row:1}}
@media(min-width:761px){.journeycard .stepnum{left:48px;top:18px}}

/* Bilingual test: a compact support-language selector. */
.languagecontrol{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted);text-align:center}.languagecontrol select{padding:7px 9px;font-size:12px;min-height:38px;border-radius:10px;background:var(--card);color:var(--ink);max-width:115px}header .headerlinks{align-items:center;gap:14px}.testcopy-note{text-align:center;margin:7px 10px;font-size:10px;letter-spacing:.06em;color:var(--muted)}
@media(min-width:761px){header .headerlinks{flex-wrap:wrap;justify-content:center;margin-left:12px}html[lang=fr] header .brand{font-size:17px}html[lang=fr] .journeycard .cardwords b{font-size:23px}html[lang=fr] .journeycard .cardwords small{font-size:11px}}
@media(max-width:760px){header .headerlinks{flex-direction:column!important;gap:4px!important;max-width:145px!important}.languagecontrol{font-size:9px;gap:2px}.languagecontrol select{font-size:11px;padding:4px 7px;min-height:32px;max-width:105px}header .headerlinks .aboutbutton{min-height:32px!important;padding:5px 7px!important}html[lang=fr] .journeycard .cardwords b{font-size:18px}html[lang=fr] .journeycard .cardwords strong{font-size:17px}}

/* Direct language buttons: both choices are always visible. */
.languagecontrol{gap:6px;flex-shrink:0}.languagelabel{font-size:11px;font-weight:600;letter-spacing:.03em}.languagebuttons{display:flex;gap:4px;padding:4px;border:1px solid #d9cdea;border-radius:15px;background:var(--card);box-shadow:0 2px 8px #28243d08}.languagebuttons button{border:0;border-radius:11px;background:transparent;color:var(--purple);font:600 13px Lexend,Tahoma,Arial,sans-serif;min-height:42px;min-width:84px;padding:9px 13px;transition:background-color .15s,color .15s}.languagebuttons button:hover{background:#eee7f7}.languagebuttons button.selected{background:var(--purple);color:#fff;box-shadow:0 2px 4px #28243d18}.languagebuttons button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:760px){.languagecontrol{gap:3px}.languagelabel{font-size:9px}.languagebuttons{gap:2px;padding:3px;border-radius:12px}.languagebuttons button{min-width:57px;min-height:40px;padding:7px 5px;font-size:10px;border-radius:9px}header .headerlinks{max-width:145px!important}}

/* Customer-facing header: align navigation with the language-button row. */
header .headerlinks{align-items:flex-end!important;gap:14px;flex-wrap:nowrap}header .headerlinks>.aboutbutton{display:inline-flex;align-items:center;justify-content:center;min-height:52px;height:52px;margin:0;white-space:nowrap}
@media(min-width:761px) and (max-width:1100px){header .headerlinks{grid-column:1 / -1!important;grid-row:2!important;justify-self:center!important;justify-content:center!important;flex-direction:row!important;max-width:none!important;width:auto!important;margin:0!important}header{row-gap:14px!important}.languagebuttons button{min-width:78px}}
@media(max-width:760px){header .headerlinks>.aboutbutton{height:auto;min-height:32px!important}header .headerlinks{align-items:center!important}}
header .headerlinks>.aboutbutton{gap:4px}

/* Compact navigation and progress */
#recommendGuide[hidden]{display:none!important}
#activityClimb{max-width:760px;margin:14px auto;padding:12px 18px}
#activityClimb .climbtop b{font-size:14px}
#activityClimb p,#activityClimb details{font-size:12px;margin:6px 0}

.progressreset{font-size:12px!important;padding:4px 8px!important;white-space:nowrap}.progresshelp{font-size:12px;position:relative}.progresshelp p{position:absolute;z-index:20;right:0;width:min(340px,80vw);padding:16px;background:#FFFEFA;color:#28243D;border:1px solid #B79A62;border-radius:12px;box-shadow:0 4px 18px #28243d18;line-height:1.6}#fixedProgress{flex-wrap:wrap;gap:10px}

/* Progress controls must accept clicks inside lessons. */
#fixedProgress{pointer-events:auto!important;overflow:visible!important}#fixedProgress .progresshelp p{max-height:55vh;overflow:auto}

/* Give the target Arabic letter a readable size in the recognition question. */
.letterquestion{font-size:18px;line-height:2}.letterquestion .questionletter{display:inline-block;font-family:Tahoma,"Noto Naskh Arabic",serif;font-size:36px;font-weight:700;line-height:1.5;vertical-align:middle;margin-inline:6px;color:var(--ink,#28243D)}
