:root{--green:var(--tone-103f36,#103f36);--green-dark:var(--tone-082e28,#082e28);--gold:#b88a45;--gold-light:#e8c88b;--ink:var(--tone-153b32,#153b32);--muted:var(--tone-64756e,#64756e);--line:var(--tone-e2e7e2,#e2e7e2);--paper:var(--tone-fbfcf9,#fbfcf9);--body:'Noto Sans Arabic','Manrope',sans-serif;--display:'Amiri','Noto Naskh Arabic',serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:105px}body{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.9 var(--body);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:5px}button:hover,a:hover{transition:background .2s,color .2s,transform .2s}p,h1,h2,h3{margin:0}h1,h2,h3{font-weight:500}button svg{width:25px;height:25px}.container{max-width:1220px;margin-inline:auto;padding-inline:36px}.skip-link{position:fixed;top:-70px;inset-inline-start:15px;background:var(--green);color:white;padding:10px 20px;z-index:100}.skip-link:focus{top:10px}.site-header{background:rgba(251,252,249,.95);border-bottom:1px solid var(--line)}.header-inner{min-height:104px;display:flex;justify-content:space-between;align-items:center;gap:28px}.brand{display:inline-flex;align-items:center;gap:9px;flex-shrink:0}.brand-emblem{width:47px;height:47px;display:none;background:center/contain no-repeat}.brand-emblem.loaded{display:block}.brand-name{font:700 2.75rem/.95 var(--display);display:block;text-align:center}.brand-name span{display:block;font:600 0.625rem/1 'Manrope',sans-serif;letter-spacing:5px;margin-top:10px;padding-left:5px}.desktop-nav{display:flex;gap:31px;font-size:0.875rem;font-weight:500}.desktop-nav a:hover{color:var(--gold)}.header-actions{display:flex;align-items:center;gap:23px}.language-switch{display:flex;direction:ltr;align-items:center;gap:3px}.language-switch button{background:transparent;min-width:34px;padding:4px;font-size:0.8125rem;color:var(--muted);border-radius:5px}.language-switch button[aria-pressed=true]{color:var(--green);background:var(--tone-e9efe9,#e9efe9);font-weight:700}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--green);background:var(--green);color:#fff;padding:13px 26px;border-radius:6px;font-weight:500;line-height:1.8;min-height:50px}.button:hover{background:var(--green-dark);transform:translateY(-1px)}.button-small{font-size:0.875rem;min-height:43px;padding:8px 20px}.text-button{background:none;padding:8px 0;border-bottom:1px solid var(--tone-b8c5bc,#b8c5bc);font-size:0.9375rem;line-height:1.7}.text-button:hover{color:var(--gold);border-color:var(--gold)}.hero{display:grid;grid-template-columns:1.07fr 1fr;gap:90px;padding-top:61px;padding-bottom:69px;align-items:center}.bismillah{font:400 1.5rem/1.8 var(--display);color:#847345;margin-bottom:30px}.eyebrow{font-size:0.8125rem;font-weight:600;color:var(--gold);line-height:1.8;margin-bottom:12px}.hero h1{font:400 clamp(3rem,5.1vw,4.5625rem)/1.42 var(--display);letter-spacing:-1.5px}.hero h1 span,.hero h1 em{display:block}.hero h1 em{font-style:normal;color:var(--green)}.hero-description{color:var(--muted);font-size:1rem;line-height:2.05;max-width:480px;margin-top:20px}.hero-actions{display:flex;align-items:center;gap:29px;margin-top:28px}.hero-details{display:flex;align-items:center;gap:12px;font-size:0.75rem;color:var(--muted);margin-top:22px}.hero-details i{width:3px;height:3px;border-radius:50%;background:var(--tone-adb8ae,#adb8ae)}.hero-visual{padding-top:27px}.lesson-preview{color:#fff;background:var(--green);border-radius:155px 155px 14px 14px;padding:64px 33px 25px;box-shadow:0 24px 55px -37px #103f36aa;position:relative;isolation:isolate;min-height:430px}.lesson-preview:before{content:'';position:absolute;inset:10px;border:1px solid #ffffff25;border-radius:148px 148px 8px 8px;pointer-events:none;z-index:-1}.preview-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.tiny-label{font-size:0.75rem;opacity:.73}.lesson-number{font:400 0.875rem 'Manrope',sans-serif;opacity:.65}.verse-stage{text-align:center;padding:9px 0 20px}.verse{font:400 5rem/1.6 'Amiri',serif;direction:rtl;letter-spacing:0}.target-noon{color:var(--gold-light)}.target-letter{color:var(--tone-b2d5bd,#b2d5bd)}.verse-ref{font-size:0.75rem;opacity:.67}.rule-caption{display:flex;align-items:center;justify-content:center;gap:10px;font-size:0.75rem;color:#dfdfcc;margin:7px 0 29px}.rule-line{height:1px;width:23px;background:var(--gold-light)}.preview-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff26;padding-top:20px}.preview-bottom h2{font:400 1.75rem/1.5 var(--display);margin-top:2px}.round-button{height:47px;width:47px;border-radius:50%;background:#ffffff13;border:1px solid #ffffff4d;display:flex;align-items:center;justify-content:center;color:#eee8d7}.round-button:hover{background:#ffffff25}.visual-footnote{display:flex;align-items:center;justify-content:center;gap:11px;color:var(--muted);font-size:0.75rem;margin-top:24px}.small-star{color:var(--gold);font-size:1.1875rem}.intro-strip{background:var(--tone-f0f4ee,#f0f4ee);border-block:1px solid var(--line)}.intro-inner{display:grid;grid-template-columns:1fr 1.5fr auto;align-items:center;gap:45px;padding-block:31px}.intro-inner h2{font:400 1.75rem/1.6 var(--display)}.intro-inner .eyebrow{margin-bottom:5px;font-size:0.75rem}.intro-inner p{color:var(--muted);font-size:0.875rem;line-height:2}.intro-ornament{color:var(--tone-9aaa90,#9aaa90);font:2.75rem 'Amiri',serif}.path-section{padding-top:75px;padding-bottom:74px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:31px}.section-heading h2{font:400 2.375rem/1.5 var(--display)}.section-heading>p{font-size:0.875rem;color:var(--muted);max-width:330px;margin-bottom:7px}.course-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.course-card{padding:28px 30px 26px;border:1px solid var(--tone-cfdbd0,#cfdbd0);border-radius:10px;background:#fff}.course-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.course-index{font:600 0.75rem 'Manrope',sans-serif;letter-spacing:1.5px;direction:ltr;color:var(--tone-688073,#688073)}.badge{font-size:0.75rem;padding:3px 12px;border-radius:30px;background:var(--tone-eef4ed,#eef4ed);color:var(--tone-385c44,#385c44)}.course-card h3{font:400 2.0625rem/1.6 var(--display)}.course-card>p{font-size:0.875rem;line-height:1.95;color:var(--muted);margin-top:9px;max-width:410px}.course-topics{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px;min-height:70px;align-content:start}.course-topics span{font-size:0.75rem;border:1px solid var(--line);padding:4px 10px;border-radius:4px}.course-bottom{margin-top:18px;border-top:1px solid var(--line);padding-top:23px;display:flex;align-items:center;gap:17px;min-height:72px}.course-bottom .button{font-size:0.875rem;padding:9px 19px;min-height:44px}.course-bottom>span{font-size:0.75rem;color:var(--muted)}.advanced-card{background:var(--tone-f6f7f3,#f6f7f3);border-color:var(--tone-e0e4dc,#e0e4dc)}.badge-muted{background:var(--tone-e9ece5,#e9ece5);color:var(--tone-73806d,#73806d)}.preparing{display:flex;align-items:center;gap:10px}.preparing svg{width:18px;height:18px}.method-section{padding-bottom:70px}.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;border-top:1px solid var(--line);padding-top:25px}.method-grid article{position:relative;padding-inline-start:47px}.step{position:absolute;inset-inline-start:0;top:2px;font:400 1.375rem/1.5 'Amiri',serif;color:var(--gold)}.method-grid h3{font:400 1.8125rem/1.4 var(--display);margin-bottom:10px}.method-grid p{font-size:0.875rem;color:var(--muted)}.closing{margin-bottom:70px;background:var(--green);color:white;max-width:1148px;padding:36px 40px;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:40px}.closing .eyebrow{color:var(--gold-light);font-size:0.75rem}.closing h2{font:400 1.9375rem/1.5 var(--display)}.closing p:not(.eyebrow){font-size:0.8125rem;color:var(--tone-c1d1c7,#c1d1c7);margin-top:9px;max-width:520px}.language-pills{display:flex;gap:8px;flex-shrink:0}.language-pills button{font-size:0.875rem;padding:8px 16px;color:#f6f3e7;background:transparent;border:1px solid #ffffff3d;border-radius:5px}.language-pills button[aria-pressed=true],.language-pills button:hover{color:var(--green);background:#f6f3e7}footer{border-top:1px solid var(--line);padding-top:29px;background:var(--tone-f6f8f3,#f6f8f3)}.footer-main{display:flex;align-items:center;gap:26px;padding-bottom:23px}.footer-main .brand-name{font-size:2.0625rem}.footer-main .brand-emblem{width:36px;height:36px}.footer-main .brand-name span{font-size:0.5rem;letter-spacing:3px;margin-top:7px}.footer-main>p{font-size:0.875rem;color:var(--muted)}.footer-main>button{margin-inline-start:auto;font-size:0.8125rem}.footer-note{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:30px;padding-block:16px;font-size:0.75rem;color:var(--muted)}.footer-note span{white-space:nowrap}dialog{padding:0;border:1px solid var(--line);border-radius:14px;max-width:660px;width:calc(100% - 32px);max-height:90dvh;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#082e28aa;backdrop-filter:blur(5px)}.dialog-body{padding:42px}.dialog-close{position:absolute;inset-inline-end:13px;top:8px;width:40px;height:40px;background:transparent;font:1.875rem/1 sans-serif;z-index:2}.dialog-body h2{font:400 2.4375rem/1.6 var(--display);margin-bottom:17px}.dialog-body>p{font-size:0.9375rem;color:var(--muted)}.throat-letters{font:1.875rem/1.9 'Amiri',serif;color:var(--gold);text-align:center;padding:16px 0}.lesson-example{text-align:center;background:var(--green);color:white;padding:10px 20px 23px;border-radius:9px;margin-bottom:24px}.lesson-example .verse{font-size:4.3125rem}.lesson-example>p:last-child{font-size:0.75rem;opacity:.7}.source-link{display:inline-block;color:var(--green);text-decoration:underline;text-underline-offset:6px;font-size:0.875rem;margin-top:19px}.dialog-body .audio-note{font-size:0.75rem;margin:10px 0 24px}.quiz{border-top:1px solid var(--line);padding-top:20px}.quiz h3{font:400 1.6875rem/1.5 var(--display)}.quiz>p{font-size:0.875rem}.quiz-options{display:flex;gap:12px;margin-top:15px}.quiz-options button{border:1px solid var(--tone-c3d3c8,#c3d3c8);border-radius:6px;background:#fff;min-width:64px;padding:4px 20px;font:1.75rem/1.5 'Amiri',serif}.quiz-options button:hover,.quiz-options button.selected{background:var(--tone-e9efe5,#e9efe5);border-color:var(--green)}.quiz-feedback{min-height:34px;margin-top:12px;color:var(--green)}.quiz-feedback.incorrect{color:#945222}.dialog-body .draft-note{font-size:0.75rem;color:var(--tone-768172,#768172);border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.sources-list{padding-inline-start:20px;line-height:2.2;font-size:0.9375rem}.sources-list li{margin:12px 0}.sources-list a{text-decoration:underline;text-underline-offset:5px}html[lang=en]{--body:'Manrope',sans-serif;--display:'Manrope',sans-serif}html[lang=en] .brand-name,html[lang=en] .bismillah{font-family:'Amiri',serif}html[lang=en] h1{font-size:3.5625rem;line-height:1.2;font-weight:600;letter-spacing:-2px}html[lang=en] .section-heading h2{font-size:1.9375rem;font-weight:500}html[lang=en] .course-card h3{font-size:1.6875rem}html[lang=en] .intro-inner h2,html[lang=en] .method-grid h3{font-size:1.4375rem}html[lang=en] .closing h2{font-size:1.6875rem}html[lang=en] .dialog-body h2{font-size:1.875rem}html[lang=en] .preview-bottom h2{font-size:1.5rem}html[lang=en] .hero-description{line-height:1.8}html[lang=ur]{--body:'Noto Naskh Arabic',serif;--display:'Noto Naskh Arabic',serif}html[lang=ur] body{font-size:1.125rem}html[lang=ur] .hero h1{font-size:3.8125rem;line-height:1.5;letter-spacing:0}html[lang=ur] .hero-description,html[lang=ur] .course-card>p,html[lang=ur] .method-grid p{font-size:1.125rem;line-height:1.9}@media(min-width:1400px){.hero{padding-block:74px}}@media(max-width:1000px){.desktop-nav{gap:18px;font-size:0.8125rem}.header-inner{gap:18px}.header-actions{gap:12px}.hero{gap:42px}.hero h1{font-size:3.6875rem}.closing{margin-inline:36px}.course-bottom{flex-wrap:wrap}.hero-actions{gap:18px}.intro-inner{gap:25px}html[lang=en] .hero h1{font-size:2.9375rem}}@media(max-width:760px){.container{padding-inline:24px}.header-inner{min-height:84px}.desktop-nav,.header-start{display:none}.brand-name{font-size:2.25rem}.brand-name span{font-size:0.5rem;margin-top:9px}.brand-emblem{width:38px;height:38px}.hero{grid-template-columns:1fr;padding-top:31px;gap:35px;padding-bottom:44px}.hero-copy{text-align:center}.bismillah{font-size:1.375rem;margin-bottom:21px}.hero h1{font-size:3.6875rem;line-height:1.35;letter-spacing:-1px}.hero-description{margin-inline:auto;font-size:0.9375rem;margin-top:19px}.hero-actions,.hero-details{justify-content:center}.hero-actions{gap:24px}.hero-actions .button{padding:12px 20px;font-size:0.875rem}.hero-actions .text-button{font-size:0.875rem}.hero-visual{max-width:390px;width:100%;justify-self:center;padding-top:0}.lesson-preview{min-height:392px;padding:58px 30px 26px;border-radius:130px 130px 12px 12px}.lesson-preview:before{border-radius:124px 124px 6px 6px}.verse-stage{padding-block:0 12px}.verse{font-size:4.625rem}.preview-top{margin-bottom:17px}.rule-caption{margin-bottom:24px}.intro-inner{grid-template-columns:1fr;gap:12px;padding-block:25px}.intro-inner h2{font-size:1.75rem}.intro-ornament{display:none}.intro-inner p{font-size:0.875rem}.path-section{padding-block:45px}.section-heading{display:block;margin-bottom:23px}.section-heading h2{font-size:2.125rem}.section-heading>p{margin-top:10px}.course-grid{grid-template-columns:1fr;gap:18px}.course-card{padding:24px}.course-card h3{font-size:2rem}.course-topics{min-height:0;margin-bottom:21px}.course-bottom{justify-content:space-between;gap:12px}.method-section{padding-bottom:45px}.method-grid{grid-template-columns:1fr;gap:25px}.method-grid article{padding-inline-start:42px}.method-grid h3{font-size:1.8125rem;margin-bottom:5px}.method-grid p{font-size:0.875rem}.closing{margin-inline:24px;padding:27px 23px;margin-bottom:45px;display:block}.closing h2{font-size:1.75rem}.language-pills{margin-top:24px;flex-wrap:wrap}.footer-main{gap:17px;flex-wrap:wrap}.footer-main>p{font-size:0.75rem}.footer-main .text-button{font-size:0.75rem}.footer-note{display:block;font-size:0.75rem}.footer-note span{display:block;margin-top:10px}.dialog-body{padding:37px 24px 25px}.dialog-body h2{font-size:2.125rem}html[lang=en] .hero h1{font-size:3rem}html[lang=en] .hero-description{font-size:0.9375rem}html[lang=ur] .hero h1{font-size:3.0625rem}html[lang=en] .closing h2{font-size:1.5rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}@media(max-width:360px){.container{padding-inline:18px}.hero h1{font-size:3.125rem}.hero-actions{gap:15px}.hero-details{font-size:0.6875rem;gap:8px}.hero-actions .button{padding-inline:15px}.course-card{padding:20px}.language-pills button{padding-inline:12px}}
/* Itqan: luminous calligraphy and water form the site's opening. */
:root{--green:var(--tone-123e32,#123e32);--green-dark:var(--tone-041c18,#041c18);--gold:#aa7931;--gold-light:#efcc87;--paper:var(--tone-fafbf8,#fafbf8);--ink:var(--tone-17382e,#17382e)}
.site-header{background:var(--tone-041c18,#041c18);color:#e9e8dd;border-color:#c4a05624}.header-inner{min-height:92px}.site-header .desktop-nav a{color:var(--tone-d0d9cf,#d0d9cf)}.site-header .desktop-nav a:hover{color:#efcc87}.header-actions .button{background:#d9b46d;color:var(--tone-142b22,#142b22);border-color:#d9b46d}.language-switch button{color:var(--tone-c4d1c6,#c4d1c6)}.language-switch button[aria-pressed=true]{background:#f0cc8520;color:#efcc87}.brand{gap:8px}.brand-calligraphy{width:48px;height:62px;display:block;position:relative;overflow:hidden;flex-shrink:0;border-radius:3px;background:var(--tone-041c18,#041c18)}.brand-calligraphy img{position:absolute;width:104px;max-width:none;height:104px;left:-28px;top:-3px;object-fit:cover}.brand-word{font:700 2.125rem/1.25 'Amiri',serif;color:#e7c786;text-align:center}.brand-word>span{display:block;font:600 0.6875rem/1 'Palatino Linotype','Book Antiqua',Georgia,serif;letter-spacing:0.34em;margin-top:4px;padding-left:0.34em;text-transform:uppercase}.itqan-hero{background:var(--tone-041c18,#041c18);color:white;overflow:hidden}.hero-art{max-width:1440px;margin-inline:auto;position:relative}.hero-art picture{display:block}.hero-art img{display:block;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover}.hero-art:after{content:'';position:absolute;inset:auto 0 0;height:9%;background:linear-gradient(transparent,var(--tone-041c18,#041c18));pointer-events:none}.hero-band{display:flex;align-items:center;justify-content:space-between;gap:40px;padding-top:7px;padding-bottom:19px}.hero-invitation{max-width:545px}.hero-band h1{font-family:var(--body);font-size:1.6875rem;line-height:1.7;font-weight:500;letter-spacing:0;margin-bottom:14px}.hero-band h1 em{font-style:normal;color:#efcc87}.hero-band .hero-description{color:var(--tone-c2cdc2,#c2cdc2);font-size:0.9375rem;line-height:1.95;margin:0;max-width:545px}.hero-band .hero-actions{margin-top:0;gap:22px;flex-shrink:0}.hero-band .button{background:#e0bc79;color:var(--tone-112c21,#112c21);border-color:#e0bc79;padding:12px 30px}.hero-band .button:hover{background:#edcb8e}.hero-band .text-button{color:#f0e9d6;border-color:#b6a16d6b}.hero-baseline{display:flex;align-items:center;gap:13px;justify-content:center;font-size:0.75rem;color:var(--tone-9cab9e,#9cab9e);padding-bottom:26px}.hero-baseline i{width:3px;height:3px;border-radius:50%;background:#9a8d62}.first-lesson{display:flex;align-items:center;justify-content:space-between;gap:35px;max-width:1148px;margin-bottom:70px;padding-block:28px;border-block:1px solid var(--line);background:var(--tone-eef3eb,#eef3eb)}.first-lesson h2{font:400 2rem/1.5 var(--display);margin:2px 0 7px}.first-lesson-copy>p:not(.eyebrow){font-size:0.875rem;color:var(--muted)}.first-lesson .eyebrow{margin-bottom:5px}.first-lesson .text-button{margin-top:10px}.first-lesson .verse{color:var(--green);font-size:4.125rem;line-height:1.5}.first-lesson .target-noon{color:#947036}.first-lesson .target-letter{color:var(--tone-41724d,#41724d)}.first-lesson-verse{text-align:center}.first-lesson .verse-ref{color:var(--muted);opacity:1}.first-lesson .round-button{background:var(--green);color:#edcf96;border-color:var(--green);flex-shrink:0}footer .brand-word{color:var(--green)}footer .brand-calligraphy{width:41px;height:50px}footer .brand-calligraphy img{width:87px;height:87px;left:-23px;top:-3px}footer .brand-word{font-size:1.875rem}html[lang=en] .brand-word{font-family:'Amiri',serif}html[lang=en] .hero-band h1{font-size:1.625rem;line-height:1.4;letter-spacing:0}html[lang=ur] .hero-band h1{font-size:1.8125rem;line-height:1.6}html[lang=ur] .hero-band .hero-description{font-size:1.125rem}html[lang=ar] .hero-band h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1440px){.hero-art{max-width:1360px}.hero-art img{aspect-ratio:21/9;object-fit:contain}}
@media(max-width:900px){.hero-band{gap:23px}.hero-band .hero-actions{gap:17px}.hero-band .button{padding-inline:20px}.hero-band .hero-description{font-size:0.875rem}.first-lesson{margin-inline:36px}.header-inner{min-height:88px}}
@media(max-width:640px){.header-inner{min-height:82px}.brand-calligraphy{width:40px;height:55px}.brand-calligraphy img{width:93px;height:93px;left:-26px;top:-2px}.brand-word{font-size:1.8125rem}.hero-art img{aspect-ratio:1/1;object-fit:contain}.hero-art{margin-top:-5px}.hero-band{display:block;text-align:center;padding-top:0;padding-bottom:22px}.hero-band .hero-invitation{max-width:430px;margin:auto}.hero-band h1,html[lang=ar] .hero-band h1{position:static;clip:auto;width:auto;height:auto;white-space:normal;margin:0 0 12px;font:500 1.75rem/1.7 'Noto Sans Arabic',sans-serif;overflow:visible}.hero-band h1 span,.hero-band h1 em{display:block}.hero-band .hero-description{font-size:0.875rem;line-height:1.95}.hero-band .hero-actions{margin-top:23px;justify-content:center}.hero-band .button{font-size:0.875rem;padding-inline:26px}.hero-baseline{font-size:0.75rem;gap:11px;padding-bottom:27px}.first-lesson{margin-inline:24px;margin-bottom:45px;padding:24px;gap:22px;flex-wrap:wrap;border-radius:6px}.first-lesson-copy{flex:1 1 170px}.first-lesson-verse{flex:1 1 120px}.first-lesson .verse{font-size:3.875rem}.first-lesson .round-button{display:none}.first-lesson h2{font-size:1.8125rem}html[lang=en] .hero-band h1{font-family:'Manrope',sans-serif;font-size:1.6875rem;line-height:1.45}html[lang=ur] .hero-band h1{font-family:'Noto Naskh Arabic',serif;font-size:1.9375rem}.footer-main .brand{gap:7px}}

@media(max-width:640px){.hero-art{margin-top:0}.hero-art img{aspect-ratio:21/9;object-fit:contain}.hero-band{padding-top:18px}.hero-band .hero-description{max-width:410px;margin-inline:auto}html[lang=ar] .hero-band h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}
/* The curriculum uses a clear interface face; Quranic examples retain a naskh face. */
:root{--body:'Tajawal','Manrope',sans-serif;--display:'Cairo','Tajawal',sans-serif}
body{font-size:1.125rem;line-height:1.85}h1,h2,h3,h4{font-weight:700;line-height:1.55}html[lang=en]{--body:'Manrope',sans-serif;--display:'Manrope',sans-serif}html[lang=ur]{--body:'Noto Naskh Arabic',serif;--display:'Noto Naskh Arabic',serif}html[lang=ur] body{line-height:2}.verse,.throat-letters,.card-letter,.topic-symbol{font-family:'Amiri','Noto Naskh Arabic',serif}.brand-word{font-family:'Amiri',serif}.section-heading h2{font-size:clamp(1.75rem,3.3vw,2.5rem)}.section-heading>p{max-width:440px}.hero-invitation h1{font-size:clamp(1.75rem,3.2vw,2.75rem)}.path-section{padding-block:70px 50px}.level-switch{display:flex;gap:14px;margin:28px 0 22px}.level-switch button{display:flex;align-items:center;flex-wrap:wrap;gap:12px;flex:1;padding:20px 24px;background:var(--tone-edf1ec,#edf1ec);border:1px solid var(--tone-d4ded5,#d4ded5);border-radius:14px;text-align:start;font-weight:700;font-family:var(--display);font-size:1.3125rem}.level-switch button[aria-pressed=true]{background:var(--tone-103f36,#103f36);border-color:var(--tone-103f36,#103f36);color:#fff}.level-switch small{font:600 0.75rem 'Manrope',sans-serif;letter-spacing:1.8px;margin-inline-start:auto;opacity:.8}.level-count{font:600 0.875rem 'Manrope',sans-serif;background:#ffffff24;border:1px solid #889c8d6b;border-radius:20px;padding:3px 10px}.curriculum-intro{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:30px;color:var(--tone-54695e,#54695e);font-size:1.0625rem}.curriculum-intro p{max-width:760px}.curriculum-intro>span{flex-shrink:0;font-size:0.875rem;font-weight:700;color:var(--tone-31765f,#31765f)}.group-heading{display:flex;align-items:center;gap:13px;margin:32px 0 17px}.group-heading>span{font:600 0.8125rem 'Manrope',sans-serif;color:#9b7841;letter-spacing:2px}.group-heading h3{font-size:1.3125rem}.group-heading>div{height:1px;background:var(--tone-d8e1d8,#d8e1d8);flex:1;margin-inline-start:10px}.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.topic-card{display:flex;flex-direction:column;border:1px solid var(--tone-dfe5dc,#dfe5dc);border-radius:15px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s}.topic-card:hover{transform:translateY(-4px);box-shadow:0 10px 26px #0a302710;border-color:var(--tone-91b1a0,#91b1a0)}.card-art{height:128px;position:relative;overflow:hidden;isolation:isolate;background:var(--tone-e9f0e7,#e9f0e7);display:grid;place-items:center}.card-art:before{content:'';position:absolute;width:156px;height:156px;border:1px solid #fff9;border-radius:50%;inset-inline-start:-48px;top:-65px}.card-art:after{content:'';position:absolute;width:205px;height:205px;border:1px solid #355f4220;border-radius:50%;inset-inline-end:-110px;bottom:-155px}.card-orbit{width:115px;height:115px;border:1px solid #a2b69a66;border-radius:50%;position:absolute;transform:rotate(-20deg);z-index:-1}.card-number{position:absolute;top:13px;inset-inline-start:16px;font:600 0.75rem 'Manrope',sans-serif;letter-spacing:1px;color:var(--tone-607e68,#607e68)}.card-letter{font-size:3rem;font-weight:400;color:var(--tone-2e614f,#2e614f);line-height:1.6;position:relative;z-index:1}.art-noon{background:var(--tone-0d3d32,#0d3d32)}.art-noon .card-letter{color:#edd19a}.art-noon .card-number{color:var(--tone-a9c3ac,#a9c3ac)}.art-noon:before{border-color:#d8cb9855}.art-noon .card-orbit{border-color:#d8cb9833}.art-meem{background:#efe7d7}.art-meem .card-letter{color:#856633}.art-madd{background:#e5edf0}.art-madd .card-letter{color:#40626c}.art-stop,.art-mastery{background:#eae6f0}.art-stop .card-letter,.art-mastery .card-letter{color:#635779}.art-precision{background:var(--tone-e1ebe5,#e1ebe5)}.art-extension{background:#eae9db}.topic-card-copy{padding:17px 19px 16px;display:flex;flex-direction:column;flex:1}.topic-badge{font-size:0.8125rem;color:var(--tone-6c7c70,#6c7c70);font-weight:500}.has-audio .topic-badge{color:var(--tone-17724e,#17724e);font-weight:700}.has-audio{border-color:var(--tone-7bab91,#7bab91)}.topic-card h4{font-family:var(--display);font-size:1.1875rem;margin:7px 0 8px;color:var(--tone-183b2f,#183b2f)}.topic-card-copy>p{font-size:1rem;color:var(--tone-69776e,#69776e);line-height:1.7;margin-bottom:17px}.topic-card-link{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:auto;padding-top:12px;border-top:1px solid var(--tone-edf0e9,#edf0e9);font-size:0.875rem;font-weight:700;color:var(--tone-2b6651,#2b6651)}.topic-card-link>span{font-size:1.25rem}.curriculum-reference{font-size:0.9375rem;color:var(--tone-718074,#718074);padding-top:28px;margin-top:20px;border-top:1px solid var(--tone-dfe5dc,#dfe5dc)}.curriculum-reference a{color:var(--tone-396c52,#396c52);text-decoration:underline;text-underline-offset:4px;white-space:nowrap}dialog{width:min(780px,calc(100% - 28px));max-height:90dvh}dialog .dialog-body{padding:38px}dialog h2{font-family:var(--display);font-size:1.875rem}dialog .dialog-close{z-index:2}.throat-letters{font-size:2rem;margin:14px 0 28px}.audio-lesson-heading{padding-top:4px}.audio-lesson-heading h3{font-size:1.375rem}.audio-lesson-heading p{font-size:0.9375rem;color:var(--tone-64766c,#64766c)}.audio-instruction{font-size:1rem;margin-top:10px}.example-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:0.875rem;margin:18px 0 12px}.example-legend span{display:inline-flex;gap:7px;align-items:center}.example-legend span:before{content:'';width:11px;height:11px;border-radius:3px;background:var(--tone-216b4c,#216b4c)}.example-legend .throat-key:before{background:#a66d1e}.audio-examples{display:grid;gap:17px}.audio-example{border:1px solid var(--tone-dbe6dc,#dbe6dc);border-radius:15px;padding:19px 22px;background:var(--tone-f6f8f1,#f6f8f1)}.audio-example.is-playing{border-color:var(--tone-38805e,#38805e);background:var(--tone-f0f6eb,#f0f6eb)}.example-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:0.875rem;color:var(--tone-6f7c71,#6f7c71)}.example-number{font:600 0.75rem 'Manrope',sans-serif;letter-spacing:1px}.audio-example .verse{font-size:3.1875rem;text-align:center;line-height:1.8;margin:10px 0 7px}.audio-example .target-noon{color:var(--tone-1c6846,#1c6846);background:transparent;border-bottom:2px solid var(--tone-31825a,#31825a)}.audio-example .target-letter{color:#91601d;background:transparent;border-bottom:2px solid #b0843b}.audio-example .sound-active{background:#e8da9c;color:var(--tone-073e2d,#073e2d);box-shadow:0 3px 0 #c5a54f}.rule-location{font-size:1.0625rem;line-height:1.8;text-align:center;color:var(--tone-3b5d49,#3b5d49)}.clip-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.clip-play{display:inline-flex;align-items:center;gap:10px;padding:8px 16px;background:var(--tone-164f3c,#164f3c);color:white;border-radius:8px;font-size:1rem;font-weight:700;min-height:43px}.play-icon{font-size:0.8125rem;display:inline-block;width:16px;text-align:center}.clip-replay{font-size:0.875rem;background:transparent;text-decoration:underline;text-underline-offset:4px;padding:7px;color:var(--tone-47694e,#47694e);min-height:43px}.clip-time{font:500 0.75rem 'Manrope',sans-serif;margin-inline-start:auto;color:var(--tone-6b7b6e,#6b7b6e)}.clip-progress{appearance:none;display:block;width:100%;height:4px;margin-top:15px;border:0;border-radius:5px;background:var(--tone-dfe8db,#dfe8db);direction:ltr}.clip-progress::-webkit-progress-bar{background:var(--tone-dfe8db,#dfe8db);border-radius:5px}.clip-progress::-webkit-progress-value{background:var(--tone-44845c,#44845c);border-radius:5px}.clip-progress::-moz-progress-bar{background:var(--tone-44845c,#44845c)}.clip-status{font-size:0.875rem;color:var(--tone-3b6a4c,#3b6a4c);margin-top:8px;min-height:1.6em}.audio-example[data-state=error] .clip-status{color:#a03824}.audio-note{font-size:0.875rem!important;color:var(--tone-73806f,#73806f);line-height:1.8;margin-top:14px}.audio-credit{font-size:0.8125rem;line-height:1.9;margin:12px 0 26px;color:var(--tone-6f7e71,#6f7e71)}.audio-credit a{text-decoration:underline;text-underline-offset:3px}.topic-symbol{font-size:3.375rem;line-height:1.6;background:var(--tone-e7efdf,#e7efdf);color:var(--tone-3d7054,#3d7054);border-radius:15px;margin:20px 0;text-align:center;padding:14px}.topic-summary{margin-top:22px;padding:22px;background:var(--tone-f0f4eb,#f0f4eb);border-radius:12px}.topic-summary h3{font-size:1.1875rem;margin-bottom:10px}#topic-description{color:var(--tone-68786d,#68786d)}.topic-summary p{font-size:1.125rem}#topic-points{padding-inline-start:24px;margin-block:25px}#topic-points li{padding-block:5px}.topic-book{font-size:0.9375rem;color:var(--tone-667a69,#667a69)}.topic-book a{color:var(--tone-2c7456,#2c7456);text-decoration:underline;text-underline-offset:3px}.topic-status{font-size:0.875rem;padding-block:16px;color:#7f806b}.topic-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;border-top:1px solid var(--tone-e0e6db,#e0e6db);padding-top:20px}.topic-navigation .button{padding:10px 19px;font-size:1rem}
@media(max-width:1100px){.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.level-switch small{display:none}}
@media(max-width:760px){body{font-size:1.0625rem}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.curriculum-intro{display:block}.curriculum-intro>span{display:inline-block;margin-top:10px}.level-switch button{padding:15px 14px;font-size:1.125rem;gap:8px}.topic-card h4{font-size:1.125rem}.topic-card-copy{padding:15px}.card-art{height:112px}.card-letter{font-size:2.6875rem}.group-heading h3{font-size:1.25rem}dialog .dialog-body{padding:32px 22px}.audio-example{padding:16px}.audio-example .verse{font-size:2.875rem}.clip-controls{gap:6px}.clip-time{width:100%;margin-top:4px;text-align:end}}
@media(max-width:440px){.container{padding-inline:18px}.topic-grid{gap:12px}.topic-card h4{font-size:1.0625rem}.topic-card-copy{padding:13px}.topic-card-copy>p{font-size:0.9375rem}.card-letter{font-size:2.3125rem}.card-number{inset-inline-start:11px;top:10px}.level-switch{gap:9px}.level-switch button{font-size:1.0625rem;padding:13px 11px}.level-count{font-size:0.75rem;padding:2px 7px}.group-heading h3{font-size:1.125rem}.topic-card-link{font-size:0.8125rem}.section-heading h2{font-size:1.75rem}}
@media(prefers-reduced-motion:reduce){.topic-card:hover{transform:none}.topic-card{transition:none}}

/* Chapter numbering and lesson numbering are independent. */
.curriculum-scope{padding:17px 20px;background:var(--tone-f0f3e9,#f0f3e9);border-inline-start:3px solid #b89958;margin-bottom:30px;font-size:0.9375rem;color:var(--tone-627060,#627060);border-radius:4px}.curriculum-scope strong{display:block;color:var(--tone-375c43,#375c43);font-weight:700;margin-bottom:3px}.curriculum-scope p{max-width:860px}.group-heading .chapter-number{font:700 0.9375rem var(--body);letter-spacing:0;background:var(--tone-e8eee3,#e8eee3);padding:7px 12px;border-radius:7px;color:var(--tone-486e50,#486e50);white-space:nowrap}.lesson-index{display:block;font-size:0.875rem;font-weight:700;color:var(--tone-47694f,#47694f);margin-bottom:6px}.topic-badge{display:block}.topic-card h4{margin-top:6px}.group-heading{scroll-margin-top:95px}html[lang=en] .group-heading .chapter-number{font-size:0.8125rem}@media(max-width:440px){.group-heading{gap:9px}.group-heading .chapter-number{font-size:0.8125rem;padding:6px 8px}.curriculum-scope{padding:13px 15px}}

/* Reading preferences and the introduction. */
html{--text-scale:1;font-size:calc(16px * var(--text-scale));color-scheme:light}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.brand-and-preferences,.header-preferences{display:flex;align-items:center;gap:18px}
.brand-and-preferences{flex-shrink:0}.header-preferences{gap:8px}
.brand-word{font-size:34px}.brand-word>span{font-size:11px;letter-spacing:0.31em}
.language-picker{position:relative;display:flex;align-items:center}
.language-picker select{appearance:none;min-height:44px;width:106px;padding:7px 12px;padding-inline-end:32px;border:1px solid #c4a05666;border-radius:8px;background:var(--tone-12392f,#12392f);color:#f4ead4;font:500 14px/1.6 var(--body);cursor:pointer}
.language-picker svg{position:absolute;inset-inline-end:10px;width:16px;height:16px;fill:none;stroke:#e7c786;stroke-width:1.6;pointer-events:none}
.settings-wrap{position:relative}
.settings-toggle{display:grid;place-items:center;width:44px;height:44px;border:1px solid #c4a05666;border-radius:8px;background:var(--tone-12392f,#12392f);color:#e7c786}
.settings-toggle svg{width:21px;height:21px}
.settings-toggle:hover,.settings-toggle[aria-expanded=true]{background:var(--tone-224c3c,#224c3c)}
select:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.settings-panel{position:absolute;inset-inline-end:0;top:calc(100% + 14px);width:min(300px,calc(100vw - 36px));z-index:20;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:0 14px 45px #001a2540;font-size:.9375rem;line-height:1.7;max-height:calc(100dvh - 110px);overflow-y:auto}
.settings-panel[hidden]{display:none}.settings-panel h2{font-family:var(--display);font-size:1.1875rem;margin:0 0 18px}
.theme-field{padding:0;margin:0 0 18px;border:0}.theme-field legend{margin-bottom:8px;font-weight:700}
.theme-options{display:flex;gap:8px}.theme-options button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:44px;border:1px solid var(--line);border-radius:8px;background:transparent}
.theme-options button[aria-pressed=true]{background:var(--tone-1b513f,#1b513f);color:#fff;border-color:var(--tone-1b513f,#1b513f)}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-weight:700}
.setting-row select{min-width:105px;min-height:42px;padding:5px 10px;font:inherit;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}
.volume-setting{border-block:1px solid var(--line);padding-block:16px;margin-top:18px}.volume-setting .setting-row{margin-bottom:7px}
.volume-setting output{font:500 .875rem 'Manrope',sans-serif;color:var(--muted)}
.volume-setting input{width:100%;accent-color:var(--tone-388266,#388266);min-height:26px;cursor:pointer;margin:0}
.volume-setting p{font-size:.8125rem;color:var(--muted);margin-top:4px}
.reset-settings{background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:.8125rem;color:var(--muted);padding:14px 0 0}
.about-section{background:var(--tone-f0f4ee,#f0f4ee);border-bottom:1px solid var(--line);padding-block:52px 44px}
.hadith-intro{text-align:center;max-width:890px;margin-inline:auto}.hadith-intro .eyebrow{margin-bottom:10px}
.hadith-narrator{font-size:.9375rem;color:var(--muted)}
.hadith-intro blockquote{font:400 clamp(1.625rem,2.7vw,2.125rem)/1.95 'Amiri',serif;margin:14px 0 13px;color:var(--tone-234e3b,#234e3b)}
.hadith-translation{font-size:1rem;color:var(--muted);max-width:760px;margin:0 auto 12px;line-height:1.9}
html[lang=ar] .hadith-translation{display:none}
.hadith-source{font-size:.875rem;color:var(--tone-58734c,#58734c);text-decoration:underline;text-underline-offset:4px}
.hadith-book{font-size:.75rem;color:var(--muted);margin-top:9px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;border-top:1px solid var(--tone-cedbcb,#cedbcb);margin-top:35px;padding-top:30px}
.about-grid h2{font:700 1.5rem/1.6 var(--display);margin-bottom:10px}
.about-grid p{font-size:1.0625rem;color:var(--muted);line-height:1.95}
html[data-theme=dark]{color-scheme:dark;--paper:var(--tone-0c201b,#0c201b);--ink:var(--tone-e6ede5,#e6ede5);--muted:var(--tone-b1c1b4,#b1c1b4);--line:var(--tone-304b3e,#304b3e);--gold:#d4b571}
html[data-theme=dark] .about-section,html[data-theme=dark] footer{background:var(--tone-10281f,#10281f)}
html[data-theme=dark] .hadith-intro blockquote{color:#e4cf9d}
html[data-theme=dark] .hadith-source{color:var(--tone-c2d7ae,#c2d7ae)}
html[data-theme=dark] .about-grid{border-color:var(--line)}
html[data-theme=dark] .topic-card{background:var(--tone-152e25,#152e25);border-color:var(--tone-365342,#365342)}
html[data-theme=dark] .topic-card h4,html[data-theme=dark] .curriculum-scope strong{color:var(--tone-e3ece0,#e3ece0)}
html[data-theme=dark] :is(.topic-card-copy>p,.topic-badge,.curriculum-intro,.curriculum-reference,.audio-lesson-heading p,.example-top,.clip-time,.audio-note,.audio-credit,#topic-description,.topic-book,.topic-status,.dialog-body .draft-note){color:var(--muted)}
html[data-theme=dark] :is(.topic-card-link,.lesson-index,.curriculum-intro>span,.has-audio .topic-badge,.topic-book a,.clip-replay,.clip-status,.rule-location,.quiz-feedback,.curriculum-reference a){color:var(--tone-a7d6b2,#a7d6b2)}
html[data-theme=dark] :is(.topic-card-link,.curriculum-reference,.topic-navigation){border-color:var(--line)}
html[data-theme=dark] :is(.curriculum-scope,.topic-summary,.audio-example){background:var(--tone-173026,#173026);border-color:var(--tone-3a5643,#3a5643);color:var(--muted)}
html[data-theme=dark] .audio-example.is-playing{background:var(--tone-203e2d,#203e2d);border-color:var(--tone-93bd82,#93bd82)}
html[data-theme=dark] .audio-example .target-noon{color:var(--tone-a9dcab,#a9dcab)}html[data-theme=dark] .audio-example .target-letter{color:#edcb85}
html[data-theme=dark] .audio-example .sound-active{color:var(--tone-073e2d,#073e2d)}
html[data-theme=dark] .audio-example[data-state=error] .clip-status{color:#f6bca5}
html[data-theme=dark] .group-heading>div{background:var(--line)}
html[data-theme=dark] .group-heading .chapter-number,html[data-theme=dark] .topic-symbol{background:var(--tone-254431,#254431);color:var(--tone-c5dbb5,#c5dbb5)}
html[data-theme=dark] .level-switch button{background:var(--tone-19372b,#19372b);border-color:var(--tone-46614a,#46614a);color:var(--tone-cfddc9,#cfddc9)}
html[data-theme=dark] .level-switch button[aria-pressed=true]{background:var(--tone-a8c99b,#a8c99b);color:var(--tone-102b20,#102b20);border-color:var(--tone-a8c99b,#a8c99b)}
html[data-theme=dark] .card-art{background:var(--tone-214336,#214336)}html[data-theme=dark] .card-letter{color:var(--tone-c5dbb5,#c5dbb5)}
html[data-theme=dark] .art-noon{background:var(--tone-0d3d32,#0d3d32)}html[data-theme=dark] .art-noon .card-letter{color:#edd19a}
html[data-theme=dark] .art-meem,html[data-theme=dark] .art-extension{background:#403c26}html[data-theme=dark] .art-meem .card-letter{color:#e3ce9c}
html[data-theme=dark] .art-madd{background:#223b42}html[data-theme=dark] .art-madd .card-letter{color:#bcd5dd}
html[data-theme=dark] .art-stop,html[data-theme=dark] .art-mastery{background:#393244}html[data-theme=dark] :is(.art-stop,.art-mastery) .card-letter{color:#d4c6e3}
html[data-theme=dark] .quiz-options button{background:var(--tone-173026,#173026);color:var(--tone-e5eddf,#e5eddf);border-color:var(--tone-506b52,#506b52)}
html[data-theme=dark] .quiz-options button.selected{background:var(--tone-32513b,#32513b)}
html[data-theme=dark] .quiz-feedback.incorrect{color:#edb586}
html[data-theme=dark] footer .brand-word{color:#e7c786}
html[data-theme=dark] .settings-panel .theme-options button[aria-pressed=true]{background:var(--tone-aecb9a,#aecb9a);color:var(--tone-102b20,#102b20);border-color:var(--tone-aecb9a,#aecb9a)}
@media(max-width:1050px){.header-actions{display:none}}
@media(max-width:760px){.header-actions{display:none}.header-inner{justify-content:center}.brand-and-preferences{justify-content:space-between;width:100%;gap:12px}.about-section{padding-block:36px}.about-grid{grid-template-columns:1fr;gap:24px;padding-top:24px;margin-top:25px}.hadith-intro blockquote{font-size:1.6875rem}.about-grid h2{font-size:1.375rem}.brand-word{font-size:29px}.brand-word>span{font-size:10px}}
@media(max-width:360px){.brand-and-preferences{gap:8px}.brand{gap:5px}.language-picker select{width:91px}.header-preferences{gap:6px}.settings-toggle{width:40px}.brand-calligraphy{width:34px}.brand-word{font-size:27px}.brand-word>span{font-size:9px}}

.skip-link{opacity:0;pointer-events:none}.skip-link:focus{opacity:1;pointer-events:auto}

/* A quiet, compact card keeps the hadith distinct from the explanation. */
.about-section{background:var(--paper);padding-block:32px 38px}
.hadith-intro{max-width:940px;padding:22px 30px 18px;background:var(--tone-f0f4ec,#f0f4ec);border:1px solid var(--tone-dce6d5,#dce6d5);border-inline-start:3px solid #b6a06d;border-radius:12px}
.hadith-narrator{font-size:.875rem;line-height:1.6;color:var(--tone-65795e,#65795e)}
.hadith-intro blockquote{font-size:clamp(1.375rem,2.1vw,1.6875rem);line-height:1.85;margin:9px 0 12px}
.hadith-translation{font-size:.9375rem;line-height:1.8;margin-bottom:12px}
.hadith-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 18px}
.hadith-source{font-size:.8125rem}.hadith-book{margin:0;font-size:.75rem;line-height:1.7}
.about-grid{margin-top:26px;padding-top:0;border-top:0;gap:48px}
html[data-theme=dark] .hadith-intro{background:var(--tone-183328,#183328);border-color:var(--tone-354e3b,#354e3b);border-inline-start-color:#b6a06d}
html[data-theme=dark] .hadith-narrator{color:var(--tone-b7c9ae,#b7c9ae)}
@media(max-width:760px){.about-section{padding-block:24px 30px}.hadith-intro{padding:18px 17px 15px;border-radius:10px}.hadith-intro blockquote{font-size:1.375rem;line-height:1.9;margin-block:8px 11px}.about-grid{gap:22px;margin-top:24px}}

/* Geometric manuscript frame. The hadith remains readable, selectable text. */
.hadith-intro.islamic-frame{position:relative;isolation:isolate;margin-top:15px;padding:31px 55px 30px;border:1px solid #b9a373;border-radius:3px;background:var(--tone-f2f5ed,#f2f5ed)}
.islamic-frame:before{content:'';position:absolute;inset:7px;border:1px solid #b9a37366;pointer-events:none;z-index:-1}
.frame-ornaments{position:absolute;inset:0;pointer-events:none;z-index:-1}
.frame-corner{position:absolute;width:60px;height:60px;opacity:.82}
.frame-tl{top:0;left:0}.frame-tr{top:0;right:0;transform:scaleX(-1)}.frame-bl{bottom:0;left:0;transform:scaleY(-1)}.frame-br{bottom:0;right:0;transform:rotate(180deg)}
.frame-medallion{position:absolute;width:36px;height:36px;top:-18px;left:50%;transform:translateX(-50%)}
html[data-theme=dark] .hadith-intro.islamic-frame{background:var(--tone-183328,#183328);border-color:#ad986b}
@media(max-width:760px){.hadith-intro.islamic-frame{padding:29px 26px 28px}.frame-corner{width:45px;height:45px}.frame-medallion{width:32px;height:32px;top:-16px}}
/* One continuous green progression, from foundations towards mastery. */
.topic-group[data-chapter=start]{--chapter-color:var(--tone-edf4e8,#edf4e8);--chapter-ink:var(--tone-35563b,#35563b)}
.topic-group[data-chapter=noon]{--chapter-color:var(--tone-dcead3,#dcead3);--chapter-ink:var(--tone-315038,#315038)}
.topic-group[data-chapter=meem]{--chapter-color:var(--tone-c4d9b9,#c4d9b9);--chapter-ink:var(--tone-294732,#294732)}
.topic-group[data-chapter=madd]{--chapter-color:var(--tone-9dbb97,#9dbb97);--chapter-ink:var(--tone-1f3d2b,#1f3d2b)}
.topic-group[data-chapter=letters]{--chapter-color:var(--tone-527558,#527558);--chapter-ink:#fff7dc}
.topic-group[data-chapter=stop]{--chapter-color:var(--tone-355e45,#355e45);--chapter-ink:#f0dfac}
.topic-group[data-chapter=precision]{--chapter-color:var(--tone-294f3e,#294f3e);--chapter-ink:#ead59d}
.topic-group[data-chapter=extension]{--chapter-color:var(--tone-1d4133,#1d4133);--chapter-ink:#ead59d}
.topic-group[data-chapter=mastery]{--chapter-color:var(--tone-103326,#103326);--chapter-ink:#ead59d}
.topic-group[data-chapter] .card-art{background:var(--chapter-color);color:var(--chapter-ink)}
.topic-group[data-chapter] .card-art .card-letter{color:var(--chapter-ink)}
.topic-group[data-chapter] .card-orbit{border-color:currentColor;opacity:.2}
.topic-group[data-chapter] .card-art:before,.topic-group[data-chapter] .card-art:after{border-color:currentColor;opacity:.15}
.topic-group[data-chapter] .group-heading .chapter-number{background:var(--chapter-color);color:var(--chapter-ink)}
html[data-theme=dark] .topic-group[data-chapter=start]{--chapter-color:var(--tone-7e9474,#7e9474);--chapter-ink:var(--tone-112b1b,#112b1b)}
html[data-theme=dark] .topic-group[data-chapter=noon]{--chapter-color:var(--tone-6b8866,#6b8866);--chapter-ink:var(--tone-071b10,#071b10)}
html[data-theme=dark] .topic-group[data-chapter=meem]{--chapter-color:var(--tone-4b6c4c,#4b6c4c);--chapter-ink:#f0e8cf}
html[data-theme=dark] .topic-group[data-chapter=madd]{--chapter-color:var(--tone-385b42,#385b42);--chapter-ink:#f0e8cf}
html[data-theme=dark] .topic-group[data-chapter=letters]{--chapter-color:var(--tone-2b4e38,#2b4e38);--chapter-ink:#f0dfac}
html[data-theme=dark] .topic-group[data-chapter=stop]{--chapter-color:var(--tone-20422f,#20422f);--chapter-ink:#f0dfac}
html[data-theme=dark] .topic-group[data-chapter=precision]{--chapter-color:var(--tone-193c2c,#193c2c)}
html[data-theme=dark] .topic-group[data-chapter=extension]{--chapter-color:var(--tone-123224,#123224)}
html[data-theme=dark] .topic-group[data-chapter=mastery]{--chapter-color:var(--tone-0a291d,#0a291d)}

/* Four short learning stages: understand, pronounce, listen, check. */
.complete-lesson{--lesson-surface:var(--tone-eef4e8,#eef4e8);--lesson-card:#fff;width:min(860px,calc(100% - 24px));max-width:860px;max-height:93dvh}
.complete-lesson .dialog-body{padding:32px 36px 25px}
.lesson-closebar{position:sticky;top:0;z-index:10;height:0}
.complete-lesson .dialog-close{background:var(--paper);border:1px solid var(--line);border-radius:50%;width:36px;height:36px;top:9px;inset-inline-end:10px}
.lesson-header{padding-inline-end:20px}.lesson-header .eyebrow{margin-bottom:5px}.lesson-header h2{font:700 2rem/1.5 var(--display);margin-bottom:5px}
.lesson-duration{font-size:.8125rem;color:var(--muted);margin-bottom:14px}
.lesson-header>p:last-child{font-size:1.0625rem;color:var(--muted);line-height:1.85;max-width:660px}
.lesson-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:24px 0 27px}
.lesson-steps button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:52px;padding:10px 8px;border:1px solid var(--line);background:transparent;border-radius:9px;font-size:.9375rem;font-weight:700;line-height:1.5}
.lesson-steps b{font:600 .8125rem 'Manrope',sans-serif;display:grid;place-items:center;width:21px;height:21px;border:1px solid currentColor;border-radius:50%;flex-shrink:0}
.lesson-steps button[aria-selected=true]{background:var(--tone-214f39,#214f39);color:#fff5d9;border-color:var(--tone-214f39,#214f39)}
.lesson-panel[hidden],.audio-example[hidden]{display:none}
.lesson-panel h3{font:700 1.25rem/1.7 var(--display);margin-bottom:12px}.lesson-panel h4{font:700 1.125rem/1.7 var(--display);margin:0 0 6px}
.lesson-panel p{font-size:1rem;line-height:1.9}
.lesson-goals{background:var(--lesson-surface);border-inline-start:3px solid #a5915b;padding:19px 22px;margin-bottom:24px;border-radius:6px}
.lesson-goals ul,.common-mistakes ul{margin:8px 0 0;padding-inline-start:22px;font-size:1rem;line-height:1.95}
.recall-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.recall-grid article{border:1px solid var(--line);background:var(--lesson-card);border-radius:10px;padding:18px}
.recall-grid p{color:var(--muted);font-size:.9375rem}.recall-symbol{display:block;font:400 2.1rem/1.5 'Amiri',serif;color:var(--tone-557e4d,#557e4d);margin-bottom:6px}
.rule-box{padding:20px 22px;border:1px solid var(--tone-b5c9aa,#b5c9aa);background:var(--lesson-surface);border-radius:10px}
.lesson-panel .lesson-note{font-size:.875rem;color:var(--muted);margin-top:18px;line-height:1.85}
.throat-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:17px}
.throat-map>div{text-align:center;padding:13px 10px;border:1px solid var(--line);border-radius:8px;background:var(--lesson-card)}
.throat-map strong{display:block;font:400 2.125rem/1.4 'Amiri',serif;color:var(--tone-557347,#557347)}.throat-map span{display:block;font-size:.8125rem;color:var(--muted);margin-top:8px}
.pronunciation-steps{padding-inline-start:30px;margin:18px 0 24px}.pronunciation-steps li{padding-inline-start:10px;margin-bottom:20px}.pronunciation-steps li::marker{font-weight:700;color:var(--gold)}.pronunciation-steps p{color:var(--muted)}
.sound-route{display:flex;justify-content:center;align-items:center;gap:15px;background:var(--lesson-surface);border-radius:8px;padding:17px;font-size:1rem;font-weight:700}
html[lang=en] .sound-route>span[aria-hidden]{transform:rotate(180deg)}
.common-mistakes{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.lesson-panel .lesson-reciter{font-size:.875rem;color:var(--muted);margin-bottom:12px}
.example-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:20px 0 17px}
.example-tabs button{border:1px solid var(--line);border-radius:10px;background:transparent;padding:9px 4px;font-size:.75rem;line-height:1.5}
.example-tabs strong{display:block;font:400 1.625rem/1.4 'Amiri',serif}.example-tabs span{display:block;margin-top:4px}
.example-tabs button[aria-selected=true]{background:var(--tone-214f39,#214f39);color:#fff5d9;border-color:var(--tone-214f39,#214f39)}
.complete-lesson .audio-example{background:var(--lesson-surface)}
.complete-lesson .audio-example .verse{font-size:clamp(2rem,5.8vw,3.2rem);line-height:1.9}
.complete-lesson .example-number{font:700 .875rem var(--body);letter-spacing:0}
.complete-lesson .rule-location{font-size:1rem}
.complete-lesson .listened-badge{font-size:.8125rem;color:var(--tone-3d7748,#3d7748);margin-top:10px;font-weight:700}
.complete-lesson .listening-progress{font-size:.875rem;color:var(--muted);margin-top:15px}
.practice-check{display:flex;align-items:flex-start;gap:12px;padding:18px;background:var(--lesson-surface);border:1px solid var(--line);border-radius:9px;margin-top:20px;font-size:.9375rem;cursor:pointer}
.practice-check input{accent-color:var(--tone-3e7147,#3e7147);width:20px;height:20px;flex-shrink:0;margin-top:5px}
.quiz-question{border:0;border-bottom:1px solid var(--line);padding:0 0 22px;margin:25px 0}
.quiz-question legend{font-weight:700;font-size:1rem;line-height:1.9;margin-bottom:13px}
.quiz-question legend b{font:700 .8125rem 'Manrope',sans-serif;display:inline-grid;place-items:center;min-width:26px;height:26px;background:var(--lesson-surface);border-radius:6px;margin-inline-end:8px}
.lesson-answer-options{display:grid;gap:9px}.lesson-answer-options label{display:flex;align-items:center;gap:11px;border:1px solid var(--line);padding:11px 13px;border-radius:8px;background:var(--lesson-card);font-size:.9375rem;cursor:pointer}
.lesson-answer-options input{accent-color:var(--tone-416e43,#416e43);flex-shrink:0;width:17px;height:17px;margin:0}
.lesson-answer-options label:has(input:checked){border-color:var(--tone-829f70,#829f70);background:var(--lesson-surface)}
.lesson-panel .question-feedback{font-size:.875rem;margin-top:12px;padding:12px 15px;border-inline-start:3px solid var(--tone-6f945d,#6f945d);background:var(--lesson-surface);color:var(--ink)}
.quiz-question.is-incorrect .question-feedback{border-color:#b48a46}
.lesson-panel .quiz-result{font-size:1.0625rem;font-weight:700;margin:18px 0}
.lesson-completion{padding:23px;background:var(--lesson-surface);border-radius:11px;margin-top:28px}
.lesson-completion>p{color:var(--muted)}
#izhar-checklist{list-style:none;padding:0;margin:18px 0;font-size:.9375rem}#izhar-checklist li{padding:7px 0}#izhar-checklist li:before{content:'○';margin-inline-end:10px;color:var(--muted)}#izhar-checklist .is-done:before{content:'✓';color:var(--tone-5d874d,#5d874d)}
.complete-lesson .button:disabled{opacity:.48;cursor:default;transform:none}
.lesson-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;border-top:1px solid var(--line);padding-top:22px;margin-top:28px}
.lesson-navigation [hidden]{display:none}.lesson-navigation .button{margin-inline-start:auto}
.lesson-sources{font-size:.8125rem;color:var(--muted);margin-top:25px;border-top:1px solid var(--line);padding-top:15px}
.lesson-sources summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}.lesson-sources p{margin-top:10px;line-height:1.8}
html[data-theme=dark] .complete-lesson{--lesson-surface:var(--tone-1b3728,#1b3728);--lesson-card:var(--tone-142c22,#142c22)}
html[data-theme=dark] :is(.recall-symbol,.throat-map strong){color:var(--tone-c2d6a2,#c2d6a2)}
html[data-theme=dark] .rule-box{border-color:var(--tone-4d6846,#4d6846)}
html[data-theme=dark] :is(.lesson-steps,.example-tabs) button[aria-selected=true]{background:var(--tone-b8cea0,#b8cea0);color:var(--tone-183122,#183122);border-color:var(--tone-b8cea0,#b8cea0)}
html[data-theme=dark] .complete-lesson .listened-badge{color:var(--tone-c2d6a2,#c2d6a2)}
@media(max-width:640px){.complete-lesson .dialog-body{padding:30px 19px 23px}.lesson-header h2{font-size:1.65rem}.lesson-steps{gap:5px}.lesson-steps button{flex-direction:column;font-size:.8125rem;padding:9px 3px;gap:5px}.recall-grid{grid-template-columns:1fr;gap:12px}.throat-map{gap:8px}.throat-map>div{padding-inline:5px}.example-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.example-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;font-size:.8125rem}.example-tabs span{margin-top:0}.lesson-goals,.rule-box,.lesson-completion{padding:17px}.complete-lesson .clip-controls{gap:8px}.complete-lesson .clip-time{width:auto;margin-inline-start:auto}.sound-route{font-size:.9375rem;gap:10px;padding:14px}.complete-lesson .dialog-close{width:33px;height:33px}}
/* All lessons share the approved four-stage learning flow. */
.course-dialog{max-width:920px;width:calc(100% - 36px)}
.course-dialog .lesson-closebar{justify-content:space-between;align-items:center;font-size:.75rem;color:var(--muted);padding-inline:24px}
.course-header h2{font:700 clamp(1.7rem,4vw,2.4rem)/1.5 var(--display);margin:7px 0}
.course-header>p{color:var(--muted)}
.course-meta{display:flex;flex-wrap:wrap;gap:8px;margin:19px 0;font-size:.75rem;color:var(--muted)}
.course-meta span{padding:5px 10px;border:1px solid var(--line);border-radius:25px}
.course-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:24px 0}
.course-steps button{display:flex;gap:8px;align-items:center;justify-content:center;background:var(--lesson-card);border:1px solid var(--line);border-radius:9px;padding:13px 7px;font-size:.9375rem;line-height:1.6;color:var(--ink)}
.course-steps b{display:grid;place-items:center;flex-shrink:0;border:1px solid currentColor;width:25px;height:25px;border-radius:50%;font:600 .8125rem/1 var(--body)}
.course-steps [aria-selected=true],.course-example-tabs [aria-selected=true]{background:var(--tone-214f39,#214f39);color:#fff5d9;border-color:var(--tone-214f39,#214f39)}
.course-panel[hidden],.course-navigation [hidden]{display:none}
.course-panel h3{font:700 1.3rem/1.7 var(--display);margin:20px 0 12px}.course-panel p{line-height:1.95;font-size:1rem}
.course-goals,.course-caution,.course-completion,.ishmam-demo{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--lesson-surface);margin:20px 0}
.course-goals h3,.course-caution h4,.course-completion h3,.ishmam-demo h3{margin-top:0}
.course-goals ul{padding-inline-start:23px;line-height:1.95;font-size:.9375rem}
.course-rules{list-style:none;padding:0;margin:0;display:grid;gap:15px}
.course-rules li{display:flex;align-items:flex-start;gap:15px;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--lesson-card)}
.course-rules p{margin:0;min-width:0}.rule-number{display:grid;place-items:center;background:var(--lesson-surface);border:1px solid var(--line);border-radius:7px;min-width:29px;height:29px;color:var(--muted);font-size:.875rem}
.course-coach{padding-inline-start:25px;line-height:2}.course-coach li{margin:17px 0;padding-inline-start:8px}.course-caution{border-inline-start:3px solid #ae9456}.course-caution p{margin:7px 0}
.course-example-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.course-example-tabs button{border:1px solid var(--line);background:var(--lesson-card);border-radius:9px;padding:9px 16px;font-size:.875rem;color:var(--ink)}.course-example-tabs [aria-selected=true]{background:var(--tone-214f39,#214f39);color:#fff5d9}.course-example-tabs bdi{display:block;opacity:.8;font:500 .75rem var(--body);margin-top:5px}
.course-dialog .lesson-small{font-size:.8125rem;color:var(--muted);line-height:1.8}
.course-audio{border:1px solid var(--line);padding:22px;border-radius:12px}.example-topline{display:flex;gap:10px;justify-content:space-between;font-size:.8125rem;color:var(--muted)}.course-heard{color:var(--tone-376a42,#376a42);font-weight:700}.course-audio .verse{padding:16px 0;margin:0;text-align:center;letter-spacing:0;word-spacing:.08em}.quran-word{display:inline-block;border-radius:6px;padding:0 .05em;outline:2px solid transparent;outline-offset:3px}.rule-word{color:var(--tone-276a3a,#276a3a);background:var(--tone-e0edd9,#e0edd9)}.word-speaking{outline-color:#bd933a;background:#fff1bd;color:var(--tone-243823,#243823)}.course-target{border-inline-start:3px solid var(--tone-5a8650,#5a8650);padding:12px 16px;background:var(--lesson-card);border-radius:6px;margin:12px 0 20px}.course-target>b{font-size:.8125rem;color:var(--muted)}.course-target>p{margin:4px 0}.course-audio .clip-time{font-size:.8125rem;font-variant-numeric:tabular-nums}.course-audio .clip-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.course-audio .clip-play,.course-audio .clip-replay{padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:var(--lesson-card);font-size:.875rem;color:var(--ink)}.course-audio .clip-play{background:var(--tone-214f39,#214f39);color:#fff5d9;min-width:120px}.course-audio progress{width:100%;height:6px;accent-color:var(--tone-638257,#638257);margin-top:15px}.course-audio .clip-status{font-size:.8125rem;min-height:1.8em;margin-top:10px}
.course-practice{display:flex;gap:12px;align-items:flex-start;padding:20px;background:var(--lesson-surface);border:1px solid var(--line);border-radius:10px;margin-top:20px;font-size:.9375rem;line-height:1.8}.course-practice input{width:20px;height:20px;accent-color:var(--tone-376a42,#376a42);flex-shrink:0;margin-top:4px}
.course-panel .quiz-verse{font-family:'Amiri',serif;font-size:1.65rem;line-height:2;text-align:right;background:var(--lesson-surface);border-radius:8px;padding:12px 17px;margin:8px 0 15px}.verse-reference{font:500 .75rem var(--body);color:var(--muted)}.course-panel .question-feedback{padding:14px;border-inline-start:3px solid var(--tone-658950,#658950);background:var(--lesson-surface);font-size:.9375rem}.course-completion li{margin:8px 0}.course-completion ul{padding-inline-start:22px}.course-completion .teacher-note{font-size:.8125rem;margin-top:20px}.course-navigation{display:flex;justify-content:space-between;gap:12px;margin-top:25px;padding-top:23px;border-top:1px solid var(--line)}.course-navigation .button{margin-inline-start:auto}.course-source{font-size:.8125rem;color:var(--muted);margin-top:25px}.course-source summary{cursor:pointer;text-decoration:underline;text-underline-offset:5px}.course-source p{margin:12px 0}.course-adjacent{display:flex;justify-content:space-between;gap:25px;margin-top:24px;border-top:1px solid var(--line);padding-top:19px;font-size:.8125rem}.course-adjacent a{max-width:47%}.topic-card.is-complete .topic-badge{background:var(--tone-dcead3,#dcead3);color:var(--tone-264d31,#264d31)}
.lip-sequence{max-width:260px;margin:0 auto}.lip-outline{fill:#d7b5a2;stroke:#805d4d;stroke-width:2}.lip-rest{stroke:#805d4d;stroke-width:3;fill:none}.lip-round{fill:#684b3c;stroke:#805d4d;stroke-width:2;opacity:0;transition:opacity .3s}.rounded .lip-round{opacity:1}.rounded .lip-rest{opacity:0}.ishmam-demo{text-align:center}.ishmam-demo .lesson-small{text-align:start}
html[data-theme=dark] .course-steps [aria-selected=true],html[data-theme=dark] .course-example-tabs [aria-selected=true]{background:var(--tone-b8cea0,#b8cea0);color:var(--tone-142f22,#142f22)}
html[data-theme=dark] .rule-word{color:var(--tone-def0ca,#def0ca);background:var(--tone-315439,#315439)}html[data-theme=dark] .word-speaking{background:#5d5029;color:#fff2cd}html[data-theme=dark] .course-heard{color:var(--tone-c4dcb1,#c4dcb1)}html[data-theme=dark] .topic-card.is-complete .topic-badge{background:var(--tone-315439,#315439);color:var(--tone-e1efcf,#e1efcf)}
@media(max-width:640px){.course-dialog{width:calc(100% - 14px);max-height:96dvh}.course-dialog .lesson-closebar{padding-inline:18px}.course-meta{gap:6px}.course-meta span{font-size:.6875rem}.course-steps{gap:5px}.course-steps button{flex-direction:column;padding:9px 3px;font-size:.75rem}.course-rules li{padding:14px;gap:10px}.course-rules p{font-size:.9375rem}.course-goals,.course-caution,.course-completion{padding:17px}.course-audio{padding:15px}.course-audio .verse{font-size:2rem}.course-example-tabs button{flex:1 1 26%;padding:8px}.course-adjacent{gap:12px}.course-meta span:last-child{font-size:.75rem}.course-dialog .clip-time{margin-inline-start:auto}.course-panel .quiz-verse{font-size:1.5rem}.course-navigation{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.lip-round{transition:none}}

.course-dialog .lesson-closebar{display:flex;height:auto;min-height:48px;padding-block:7px;background:var(--lesson-card);border-bottom:1px solid var(--line)}
.course-dialog .lesson-closebar .dialog-close{position:static;flex-shrink:0;margin:0}
.course-dialog .dialog-body{padding-top:24px}
.rounded .lip-outline{d:path("M93 62 Q93 24 130 24 Q167 24 167 62 Q167 102 130 102 Q93 102 93 62Z")}

/* Keep Arabic letters joined: only inline paint, never padding or extra text. */
.rule-letter{color:var(--tone-245d34,#245d34);background:var(--tone-dfecd7,#dfecd7);text-decoration:underline;text-decoration-color:var(--tone-77a368,#77a368);text-underline-offset:.13em;text-decoration-thickness:1px;border-radius:2px}
.word-speaking .rule-letter{color:var(--tone-1e482a,#1e482a);background:#e0e4a7}
.targets-hidden .rule-letter{color:inherit;background:transparent;text-decoration:none}
.course-challenge{padding:16px;border:1px dashed var(--line);border-radius:8px;color:var(--muted)}
.course-reveal{font-size:.8125rem;min-height:44px;margin-block:4px}
.course-teaching-video{padding:22px;border:1px solid var(--line);border-radius:12px;margin-block:22px;background:var(--lesson-card)}
.course-video-moments{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;font-size:.8125rem}.course-video-moments a{padding:8px;border:1px solid var(--line);border-radius:6px}
html[data-theme=dark] .rule-letter{color:var(--tone-e6f4d5,#e6f4d5);background:var(--tone-36563c,#36563c);text-decoration-color:var(--tone-9bbf83,#9bbf83)}html[data-theme=dark] .word-speaking .rule-letter{color:#fff6d0;background:var(--tone-4b5631,#4b5631)}html[data-theme=dark] .targets-hidden .rule-letter{color:inherit;background:transparent;text-decoration:none}

.course-video-link{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.example-topline bdi,.course-heard{white-space:nowrap}

/* Named example selection remains compact as the practice library grows. */
.course-example-picker{margin:22px 0;border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--lesson-card)}
.course-example-picker label{display:block;font-weight:700;margin-bottom:9px;font-size:.9375rem}
.course-example-picker select{width:100%;max-width:100%;min-height:48px;border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:var(--paper);color:var(--ink);font:inherit;font-size:1rem}
.course-example-navigation{display:flex;justify-content:space-between;gap:12px;margin-top:8px}
.course-example-navigation button{min-height:44px;font-size:.875rem}
.course-example-navigation button:disabled{opacity:.4;cursor:default}
.course-example-picker select:focus-visible{outline:3px solid var(--tone-b7ca8e,#b7ca8e);outline-offset:2px}
.course-audio .example-topline{align-items:flex-start;gap:12px;line-height:1.8}
.course-audio .example-topline>span:first-child{font-size:1rem;font-weight:700}
html[data-theme=dark] .course-example-picker select{background:var(--tone-16372a,#16372a);color:#f3f0e4}
@media(max-width:640px){.course-example-picker{padding:12px}.course-audio .example-topline{flex-direction:column;gap:4px}.course-example-picker select{font-size:.875rem}.course-audio .verse{overflow-wrap:normal;word-break:normal}}

/* The home page presents two paths; each curriculum has its own route. */
[hidden]{display:none!important}
.learning-path-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.learning-path-card{display:flex;flex-direction:column;min-height:330px;padding:32px;border:1px solid var(--tone-c8d8be,#c8d8be);border-radius:18px;background:var(--tone-edf4e5,#edf4e5);color:var(--tone-234d35,#234d35);transition:transform .2s,box-shadow .2s}
.learning-path-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #0b302214}
.path-card-top{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:.875rem;margin-bottom:23px}
.path-card-label{font:600 .875rem 'Manrope',sans-serif;letter-spacing:.13em}
.learning-path-card h3{font:700 clamp(1.6rem,3vw,2rem)/1.7 var(--display)}
.learning-path-card>p{font-size:1rem;line-height:1.95;margin-top:12px;max-width:38em}
.path-card-bottom{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;border-top:1px solid #9caf9755;margin-top:auto;padding-top:24px;margin-block-start:30px}
.path-count{font-size:.875rem}.path-enter{font-weight:700;font-size:1rem;text-decoration:underline;text-underline-offset:6px}
.path-advanced{background:var(--tone-173f32,#173f32);border-color:var(--tone-365b42,#365b42);color:#f3ecdb}.path-advanced .path-card-top{color:#e6ca8c}.path-advanced .path-card-bottom{border-color:#c8c39a44}
.level-page{padding-block:32px 76px;min-height:70vh}.level-breadcrumb{display:flex;flex-wrap:wrap;gap:12px;font-size:.875rem;color:var(--muted);margin-bottom:30px}.level-breadcrumb a{text-decoration:underline;text-underline-offset:5px;min-height:44px;display:inline-flex;align-items:center}.level-breadcrumb span{align-self:center}
.level-page-heading{max-width:820px;margin-bottom:28px}.level-page-heading h1{font:700 clamp(2rem,4vw,3rem)/1.6 var(--display)}.level-page-heading>p:last-child{font-size:1.125rem;line-height:1.9;color:var(--muted);margin-top:10px}
.level-page-switch{display:flex;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:24px}
.level-page-switch a{font-size:1rem;padding:10px 18px;border:1px solid var(--line);border-radius:8px;min-height:48px}.level-page-switch a[aria-current=page]{background:var(--green);color:#fff;border-color:var(--green)}
html[data-theme=dark] .path-basic{background:var(--tone-244632,#244632);border-color:var(--tone-52724a,#52724a);color:var(--tone-e3ecd9,#e3ecd9)}html[data-theme=dark] .path-advanced{background:var(--tone-0e2c24,#0e2c24);border-color:var(--tone-69805c,#69805c)}html[data-theme=dark] .level-page-switch a[aria-current=page]{background:var(--tone-b9d3a7,#b9d3a7);color:var(--tone-173326,#173326)}
.teaching-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-block:22px}
.teaching-video-card{min-width:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}
.teaching-video-heading{padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.teaching-video-heading h4{margin:0;font-size:1rem}.teaching-video-heading>span{font-size:.875rem;color:var(--muted)}
.teaching-video-stage{aspect-ratio:16/9;min-height:210px;background:var(--tone-123b2f,#123b2f);position:relative}
.teaching-video-cover{height:100%;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#e8cf98}.teaching-video-cover>span{font:400 2.75rem/1.4 'Amiri',serif}.teaching-video-cover .button{border-color:#c6ab74;background:#e7d5aa;color:var(--tone-193a2b,#193a2b);font-size:.9375rem;padding:8px 20px;min-height:44px}
.teaching-video-frame{position:absolute;inset:0}.teaching-video-frame iframe{display:block;width:100%;height:100%;border:0;min-height:200px}
.teaching-video-note{padding:16px 18px 0;font-size:1rem;line-height:1.9}.teaching-video-actions{padding:10px 18px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.teaching-video-actions .text-button{font-size:.875rem;min-height:44px}
@media(max-width:760px){.learning-path-cards,.teaching-video-grid{grid-template-columns:1fr}.learning-path-card{padding:25px;min-height:300px}.path-card-bottom{gap:14px}.course-teaching-video{padding:16px}.level-page-heading>p:last-child{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.learning-path-card{transition:none}.learning-path-card:hover{transform:none}}

#level-heading:focus{outline:none}.level-page .curriculum-scope{margin-top:32px}

.learning-tools-home{padding-bottom:70px}.learning-tools-home>h2{font:700 1.8rem/1.6 var(--display);margin-bottom:24px}.learning-tool-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.learning-tool-cards>a{display:flex;flex-direction:column;align-items:flex-start;padding:26px;border:1px solid var(--line);border-radius:14px;background:var(--lesson-card);gap:12px}.learning-tool-cards h3{font:700 1.4rem/1.6 var(--display)}.learning-tool-cards p{color:var(--muted);font-size:1rem}.learning-tool-cards .path-enter{margin-top:6px}.learning-tool-cards>a:hover{border-color:var(--gold)}
#learning-tools-heading:focus,#review-question-title:focus{outline:none}.review-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:20px;margin-bottom:24px}.review-toolbar label{display:flex;flex-direction:column;gap:8px;font-weight:700}.review-toolbar select,#surah-exercise{border:1px solid var(--line);border-radius:8px;padding:10px 14px;min-height:48px;color:var(--ink);background:var(--paper);font:inherit;font-size:1rem}.review-toolbar .text-button:disabled{opacity:.55;cursor:default}.tool-hint{padding:14px 18px;border-radius:8px;background:var(--lesson-card);color:var(--muted);margin-block:16px;font-size:1rem}.review-question,.review-result{max-width:900px;margin-block:28px;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--lesson-card)}.review-question h2{font-size:1.375rem;line-height:1.9}.review-question fieldset{border:0;padding:0;margin-block:22px}.review-question .verse{font-size:2.4rem;line-height:2;margin-block:18px}.review-question .verse-reference{font:400 1rem var(--body)}.review-feedback{padding:20px;border-inline-start:3px solid var(--gold);background:var(--paper);margin-block:22px}.review-feedback.correct{border-color:var(--tone-489467,#489467)}.review-feedback>p{margin-block:10px;font-size:1rem}.review-result h2{font-size:1.5rem}.review-result ul{padding:0;list-style:none}.review-result li{padding-block:12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px}.review-result a{text-decoration:underline;text-underline-offset:4px}
.tool-section-title{font:700 1.5rem var(--display);margin-block:26px}.surah-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.surah-picker>a{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--lesson-card)}.surah-picker h3{font:700 1.6rem/1.7 var(--display)}.surah-picker p{color:var(--muted);font-size:.9375rem}.surah-picker>a:hover{border-color:var(--gold)}.surah-reader{margin-block:24px 36px;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--lesson-card)}.surah-reader-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-bottom:20px}.surah-reader h2{font:700 2rem var(--display)}.surah-reader h3{font-size:1rem;margin-block:20px 10px}.practice-audio{width:100%;max-width:680px;min-height:44px;margin-block:12px;display:block}.surah-text{margin-block:16px}.surah-text summary{font-size:1rem;cursor:pointer;min-height:44px}.surah-verses{font:400 2.2rem/2.25 'Amiri',serif;text-align:center;max-width:950px;margin-inline:auto}.surah-basmala{font:400 1.75rem/2 'Amiri',serif;text-align:center;margin:20px}.ayah-number{font-size:1.25rem;white-space:nowrap;color:var(--gold)}.surah-exercises h2{font:700 1.75rem var(--display);margin-block:20px}.surah-exercises>p{font-size:1rem;color:var(--muted)}.tool-select-label{display:block;font-size:1rem;font-weight:700;margin:24px 0 10px}#surah-exercise{width:100%;margin-bottom:20px}#surah-explanation>p{margin-top:24px;padding:18px;background:var(--paper);border-inline-start:3px solid var(--gold);font-size:1rem}.practice-audio-error{color:#a04532;font-size:.9375rem}html[data-theme=dark] .practice-audio-error{color:#f0b9a5}
@media(max-width:760px){.learning-tool-cards{grid-template-columns:1fr}.surah-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.surah-reader,.review-question,.review-result{padding:20px}.surah-verses{font-size:1.8rem}.review-toolbar{align-items:stretch;gap:15px}.review-toolbar>label{width:100%}.review-question .verse{font-size:2rem}}
@media(max-width:420px){.surah-picker{grid-template-columns:1fr}.review-result li{flex-direction:column;gap:6px}}

.teaching-video-status:not(:empty){margin:14px 18px 0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;font-size:.875rem;color:var(--muted)}
