:root{--ink:#403b35;--muted:#71695f;--cream:#fbf6e9;--paper:#fffdf7;--gold:#c18b43;--gold-dark:#875b27;--sage:#71836b;--line:#e8dcc8;--focus:#245fbd;--base:17px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;font-size:var(--base)}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Tahoma,Arial,sans-serif;line-height:1.8}
a{color:inherit}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.skip-link{position:absolute;top:-60px;right:1rem;background:#fff;padding:.7rem;z-index:20}
.skip-link:focus{top:1rem}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem clamp(1rem,4vw,4rem);background:rgba(255,253,247,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.brand{display:flex;gap:.7rem;align-items:center;text-decoration:none}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#f0dfbd;color:var(--gold-dark);font-size:1.5rem;font-weight:bold}.brand small{display:block;color:var(--muted);font-size:.72rem}
.nav-links{display:flex;gap:1rem}.nav-links a{text-decoration:none;font-size:.9rem}.nav-links a:hover{text-decoration:underline}
.header-tools{display:flex;gap:.35rem}.small-btn,.nav-toggle{border:1px solid var(--line);background:#fff;border-radius:10px;padding:.45rem .65rem;color:var(--ink);cursor:pointer}.nav-toggle{display:none}
.hero{min-height:430px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:2rem;padding:4rem clamp(1.2rem,8vw,8rem);background:radial-gradient(circle at 85% 20%,#f4e6c9 0 8%,transparent 8.5%),linear-gradient(135deg,#fbf6e9,#f4ead7)}
.hero-copy{max-width:650px}.eyebrow{color:var(--sage);font-weight:bold;letter-spacing:.02em;margin:0 0 .4rem}.hero h1{font-size:clamp(2.2rem,5vw,4rem);line-height:1.2;margin:.2rem 0 1rem}.lead{font-size:1.2rem;color:var(--muted);max-width:55ch}.primary-btn,.secondary-btn,.text-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:12px;padding:.65rem 1.1rem;font:inherit;text-decoration:none;cursor:pointer}.primary-btn{background:var(--gold);color:white;border:2px solid var(--gold-dark);font-weight:bold;margin-top:1rem}.secondary-btn{background:#fff;border:1px solid var(--line);color:var(--ink)}.text-btn{background:transparent;border:0;color:var(--gold-dark);text-decoration:underline}
.hero-art{min-height:230px;display:grid;place-items:center;position:relative}.book{font-size:8rem;filter:drop-shadow(0 12px 10px #8c714433)}.sun{position:absolute;top:10%;right:20%;font-size:4rem;color:var(--gold)}.sparkle{position:absolute;bottom:12%;left:18%;font-size:3rem;color:var(--sage)}
.section{padding:3.5rem clamp(1rem,7vw,7rem);scroll-margin-top:90px}.section-heading{margin-bottom:1.5rem}.section h2{font-size:clamp(1.7rem,3vw,2.4rem);margin:.2rem 0}.section-heading>p:last-child{color:var(--muted);max-width:70ch}
.intro-panel{display:grid;grid-template-columns:1.5fr 1fr;gap:2rem;align-items:center}.tip-card,.setting,.quiz-card,.lesson-step{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:1.4rem;box-shadow:0 8px 24px #5b48200b}.tip-icon{font-size:2rem;display:block}.tip-card p{color:var(--muted)}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.course-card{display:block;text-decoration:none;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:1.3rem;transition:transform .2s,box-shadow .2s}.course-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #5b48201a}.course-card h3{margin:.4rem 0}.course-card p{color:var(--muted);margin:.2rem 0 1rem}.course-icon{font-size:2rem}.card-link{color:var(--gold-dark);font-weight:bold}.featured{border-color:#d6b77d;background:#fffaf0}
.lesson-panel{background:#f7efdf;border-top:1px solid var(--line)}.lesson-step{display:grid;grid-template-columns:180px 1fr;gap:1.5rem;align-items:center}.lesson-illustration{display:grid;place-items:center;min-height:150px;border-radius:16px;background:#f2e5cb;font-size:5rem}.step-count,.question-count{color:var(--sage);font-weight:bold;font-size:.9rem}.button-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.quiz-panel{background:#fffaf0}.quiz-card{max-width:680px}.answers{display:grid;gap:.7rem;margin:1.2rem 0}.answer{background:white;border:2px solid var(--line);border-radius:12px;padding:.8rem 1rem;text-align:right;font:inherit;min-height:54px;cursor:pointer}.answer:hover{border-color:var(--gold)}.answer.correct{border-color:#4e8150;background:#eef7ed}.answer.wrong{border-color:#a85b4d;background:#fff0ed}.feedback{min-height:2rem;font-weight:bold}.feedback.good{color:#286b35}.feedback.try{color:#875b27}
.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.setting p,.small-note{color:var(--muted)}.setting-note{font-size:.9rem;color:var(--sage)}.site-footer{text-align:center;padding:2rem;background:#efe4d1;color:var(--muted)}.site-footer a{color:var(--gold-dark)}
body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
@media(max-width:900px){.site-header{flex-wrap:wrap}.nav-toggle{display:inline-block}.nav-links{display:none;position:absolute;top:100%;right:1rem;left:1rem;flex-direction:column;background:#fffdf7;padding:1rem;border:1px solid var(--line);border-radius:14px}.nav-links.open{display:flex}.header-tools{margin-inline-start:auto}.course-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.hero{grid-template-columns:1fr;padding-top:3rem;text-align:center}.hero-art{min-height:150px}.book{font-size:5rem}.intro-panel,.lesson-step{grid-template-columns:1fr}.course-grid,.settings-grid{grid-template-columns:1fr}.section{padding-top:2.5rem;padding-bottom:2.5rem}.site-header{position:relative}.brand small{font-size:.62rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Wudu lesson: calm, readable and keyboard-friendly learning interface */
.wudu-learning-card,.support-card,.wudu-quiz{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:clamp(1rem,3vw,1.6rem);box-shadow:0 8px 24px #5b48200b}
.wudu-progress-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}
.progress-track{display:block;flex:1;min-width:120px;height:12px;border-radius:20px;background:#eee5d6;overflow:hidden}
.progress-track>span{display:block;height:100%;width:10%;background:var(--sage);border-radius:20px;transition:width .2s ease}
.wudu-step-layout{display:grid;grid-template-columns:minmax(150px,.7fr) 1.3fr;gap:1.5rem;align-items:center}
.wudu-picture{min-height:230px;border-radius:18px;background:linear-gradient(145deg,#f5ead5,#fff8e9);display:grid;place-items:center;border:1px solid #eadcc4}
.wudu-picture span{font-size:6rem}
.wudu-step-copy h3{font-size:1.7rem;margin:.2rem 0 .5rem}
.wudu-step-copy>p{max-width:62ch}
.wudu-hint{background:#f5f0e5;border-inline-start:4px solid var(--sage);padding:.65rem .85rem;border-radius:8px;color:#554d43}
.wudu-controls{display:flex;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-top:1.5rem;border-top:1px solid var(--line);padding-top:1rem}
.wudu-support-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}
.support-card h3{margin-top:0}
.choice-stack{display:grid;gap:.55rem;margin-top:.8rem}
.practice-choice{min-height:48px;padding:.65rem .85rem;border:2px solid var(--line);border-radius:12px;background:white;text-align:start;font:inherit;cursor:pointer}
.practice-choice:hover{border-color:var(--gold)}
.practice-choice:disabled{cursor:default;opacity:1}
.practice-choice.correct{border-color:#4e8150;background:#eef7ed}
.practice-choice.incorrect{border-color:#a85b4d;background:#fff0ed}
.wudu-quiz{margin-top:1.5rem;scroll-margin-top:90px}
.wudu-quiz .section-heading{margin-bottom:1rem}
.wudu-quiz h4{font-size:1.25rem;margin:.5rem 0 1rem}
.score-label{font-size:.9rem;color:var(--muted);font-weight:bold}
.religious-review{margin-top:1rem;padding:1rem;background:#fff8e9;border-radius:12px;border:1px solid var(--line)}
@media(max-width:620px){.wudu-step-layout,.wudu-support-grid{grid-template-columns:1fr}.wudu-picture{min-height:150px}.wudu-picture span{font-size:4.5rem}.wudu-controls>*{flex:1}}
@media(prefers-reduced-motion:reduce){.progress-track>span{transition:none}}


/* Salah lesson: matching the existing calm learning interface. */
.salah-prep-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1rem}
.salah-icon{font-size:2.3rem;display:block;margin-bottom:.4rem}
.salah-learning-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:clamp(1rem,3vw,1.6rem);box-shadow:0 8px 24px #5b48200b}
.salah-step-layout{display:grid;grid-template-columns:minmax(150px,.7fr) 1.3fr;gap:1.5rem;align-items:center}
.salah-picture{min-height:230px;border-radius:18px;background:linear-gradient(145deg,#f5ead5,#fff8e9);display:grid;place-items:center;border:1px solid #eadcc4}
.salah-picture span{font-size:6rem}
.salah-quiz{margin-top:1.5rem}
.salah-next-link{margin-top:1rem}
@media(max-width:700px){.salah-prep-grid{grid-template-columns:1fr 1fr}.salah-step-layout{grid-template-columns:1fr}.salah-picture{min-height:150px}.salah-picture span{font-size:4.5rem}}
@media(max-width:480px){.salah-prep-grid{grid-template-columns:1fr}}


/* Quran learning module: text-first, calm, readable and independent from decorative artwork. */
.quran-note{padding:1rem 1.2rem;border:1px solid var(--line);border-inline-start:5px solid var(--sage);background:#fffaf0;border-radius:14px;margin:1rem 0 1.5rem}
.quran-surah-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1.5rem 0 1rem}
.quran-surah-heading h3{font-size:1.7rem;margin:.15rem 0}.quran-surah-heading p:last-child{margin:.2rem 0;color:var(--muted)}
.quran-basmala{text-align:center;font-size:clamp(1.5rem,3vw,2rem);line-height:2.1;padding:1rem;background:#fffdf7;border:1px solid var(--line);border-radius:16px;margin-bottom:1rem;font-family:serif}
.quran-reader,.quran-verse-list,.quran-practice{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:clamp(1rem,3vw,1.5rem);margin-top:1rem}
.quran-progress-row{display:flex;justify-content:space-between;gap:1rem;color:var(--sage);font-weight:bold}.quran-progress{height:10px;background:#eee5d6;border-radius:20px;overflow:hidden;margin:.65rem 0 1.2rem}.quran-progress span{display:block;height:100%;background:var(--sage);width:20%;transition:width .2s}
.quran-verse-card{border:1px solid #eadcc4;background:#fffdf8;border-radius:16px;padding:clamp(1rem,4vw,2rem);text-align:center}
.quran-verse-text{font-family:'Amiri','Noto Naskh Arabic',serif;font-size:clamp(2rem,5vw,3rem);line-height:2.1;color:#342f29;margin:1rem auto 1.5rem;max-width:28ch}
.quran-meaning,.quran-word-box{max-width:760px;margin:1rem auto;padding:.8rem 1rem;border-radius:12px;background:#f7f1e6;text-align:start}.quran-meaning h4,.quran-word-box h4{margin:.1rem 0 .3rem;color:var(--sage)}.quran-meaning p,.quran-word-box p{margin:.2rem 0}
.quran-controls{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1rem}.quran-verse-buttons{display:flex;gap:.6rem;flex-wrap:wrap}.quran-verse-choice{min-width:90px;min-height:48px;padding:.6rem .9rem;border:2px solid var(--line);border-radius:12px;background:#fff;font:inherit;cursor:pointer}.quran-verse-choice.active{border-color:var(--sage);background:#edf2e9;font-weight:bold}.quran-practice{margin-top:1rem}.quran-practice h3{margin:.2rem 0}.quran-practice>p:not(.eyebrow){color:var(--muted)}.quran-audio-link{margin-top:.5rem}
@media(max-width:620px){.quran-controls>*{flex:1}.quran-verse-choice{flex:1 1 28%}.quran-verse-text{line-height:2.2}}
@media(prefers-reduced-motion:reduce){.quran-progress span{transition:none}}

/* Added Quran surah selector and prophet-story scene card */
.quran-surah-list { margin: 1.25rem 0; }
.quran-surah-list h3 { margin-bottom: .75rem; }
.quran-surah-list .quran-verse-buttons { display: flex; flex-wrap: wrap; gap: .65rem; }
.story-stage { margin: 1.25rem 0; padding: clamp(1.1rem, 3vw, 1.75rem); border: 1px solid var(--line, #e6dccb); border-radius: 1.2rem; background: var(--surface, #fffdf8); }
.story-stage h3 { margin: .35rem 0 .75rem; }
.story-stage p { line-height: 1.9; }
.story-stage .small-note { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .story-stage, .quran-verse-card { scroll-behavior: auto; transition: none !important; animation: none !important; } }


/* Daily adhkar: selectable, low-pressure learning cards */
.adhkar-filter{display:flex;gap:.55rem;flex-wrap:wrap;margin:1.2rem 0}.filter-btn{border:1px solid var(--line);background:#fffdf7;color:var(--ink);border-radius:999px;padding:.55rem .95rem;font:inherit;cursor:pointer;min-height:44px}.filter-btn.active{background:#e9efdf;border-color:#71836b;font-weight:bold}.adhkar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.adhkar-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:1.2rem;display:flex;flex-direction:column;gap:.5rem}.adhkar-card[hidden]{display:none}.adhkar-card-top{display:flex;align-items:center;gap:.7rem}.adhkar-icon{font-size:2rem}.adhkar-card h3{font-size:1.1rem;margin:0}.adhkar-context{color:var(--sage);font-weight:bold;margin:0}.adhkar-text{font-size:1.15rem;line-height:2;color:#342f29;background:#fbf6e9;border-radius:12px;padding:.8rem;margin:.2rem 0}.adhkar-meaning,.adhkar-source{margin:0;color:var(--muted);font-size:.93rem}.adhkar-source a{color:var(--gold-dark);font-weight:bold}.adhkar-listen{align-self:flex-start;border:1px solid var(--line);background:#fff;border-radius:10px;padding:.5rem .8rem;min-height:44px;font:inherit;cursor:pointer}.adhkar-practice{margin-top:2rem}.adhkar-manners{margin-top:2rem}.manners-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.manners-grid article{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:1rem}.manners-grid article>span{font-size:2rem}.manners-grid h4{margin:.3rem 0}.manners-grid p{margin:.2rem 0;color:var(--muted)}
@media(max-width:700px){.adhkar-grid,.manners-grid{grid-template-columns:1fr}}

/* Stage 6: story selector and learner-paced narration controls */
.story-picker-row { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; margin:1rem 0; }
.story-picker-row label { font-weight:700; }
.story-picker { min-height:46px; min-width:min(100%,260px); padding:.65rem .9rem; border:1px solid var(--line,#d8cdbb); border-radius:.7rem; background:var(--surface,#fffdf8); color:inherit; font:inherit; }
.story-visual { display:grid; place-items:center; width:76px; height:76px; margin:.75rem 0; border-radius:1.1rem; background:var(--soft,#f4efe5); font-size:2.3rem; }
.story-stage .button-row { margin-top:1rem; }
.story-picker:focus-visible, .story-stage button:focus-visible { outline:3px solid var(--accent,#6b7c59); outline-offset:3px; }
@media(max-width:600px){.story-picker-row{align-items:stretch;flex-direction:column}.story-picker{width:100%}}

/* Stage 7: low-pressure interactive learning activities */
.activity-section{scroll-margin-top:5rem}.activity-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:clamp(1rem,3vw,1.5rem);margin:1.2rem 0;box-shadow:0 8px 24px #5b48200b}.activity-heading{display:flex;align-items:center;gap:.85rem}.activity-heading>span{font-size:2.3rem}.activity-heading h3{margin:.1rem 0}.activity-heading .eyebrow{margin:0}.order-list{display:grid;gap:.65rem;margin:1rem 0}.order-item{display:grid;grid-template-columns:auto 1fr auto auto;gap:.6rem;align-items:center;border:1px solid var(--line);border-radius:13px;background:#fffdf8;padding:.65rem}.order-item .step-icon{font-size:1.7rem}.order-item button{min-width:48px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:#fff;font:inherit;cursor:pointer}.order-item button:disabled{opacity:.35;cursor:not-allowed}.matching-layout{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}.matching-layout h4{margin:.2rem 0 .6rem}.match-options{display:grid;gap:.55rem}.match-option{min-height:58px;border:2px solid var(--line);border-radius:12px;background:#fff;padding:.65rem;font:inherit;cursor:pointer;text-align:center}.match-option .match-icon{display:block;font-size:1.8rem}.match-option.selected{border-color:var(--sage);background:#edf2e9}.match-option.matched{border-color:#66815d;background:#eef6e9}.match-option:disabled{opacity:1;cursor:default}.identify-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:1rem 0}.identify-option{min-height:110px;border:2px solid var(--line);border-radius:14px;background:#fff;display:grid;place-items:center;gap:.3rem;padding:.6rem;font:inherit;cursor:pointer}.identify-option .identify-icon{font-size:2.4rem}.identify-option.selected{border-color:var(--sage);background:#edf2e9}.identify-option:disabled{opacity:1}.activity-card button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:620px){.matching-layout{grid-template-columns:1fr}.identify-options{grid-template-columns:repeat(2,minmax(0,1fr))}.order-item{grid-template-columns:auto 1fr auto auto}.order-item button{min-width:42px;padding:.4rem}}
@media(prefers-reduced-motion:reduce){.activity-card *{scroll-behavior:auto;transition:none!important;animation:none!important}}


/* Stage 8: calm progress overview with local-only, learner-controlled completion. */
.progress-panel{scroll-margin-top:5rem}.progress-summary{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:1rem;margin:1rem 0}.progress-summary strong{display:block;margin-bottom:.6rem}.progress-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin:1rem 0}.progress-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:1rem;min-width:0}.progress-card h3{margin:.1rem 0 .4rem;font-size:1.08rem}.progress-card.is-done{border-color:#819477;background:#f7faf4}.progress-status{margin:.2rem 0 .8rem;color:var(--muted)}.progress-card .progress-toggle{min-height:44px;white-space:normal}.teacher-summary{margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fffdf8}.teacher-summary summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}.progress-tools{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-top:1rem}.progress-tools .small-note{flex:1 1 260px}.lesson-complete-wrap{margin-top:.75rem}.lesson-complete-wrap button[aria-pressed="true"]{border-color:#819477;background:#f2f7ef}
@media(max-width:800px){.progress-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.progress-cards{grid-template-columns:1fr}.progress-tools{align-items:stretch;flex-direction:column}.progress-tools>*{width:100%}}

/* Stage 9: unified Ro'ya visual identity and original, consistent learning artwork. */
:root{--ink:#343b38;--muted:#65716b;--cream:#f8f5ec;--paper:#fffefa;--gold:#c99a4b;--gold-dark:#805b27;--sage:#557b70;--line:#e5dfd1;--focus:#245fbd;--base:17px;--soft-blue:#e9f3f3;--soft-green:#edf3e9;--soft-gold:#fbf1dc;--soft-rose:#f8ece8}
body{background:linear-gradient(180deg,#faf7ef 0%,#f6f3e9 100%);color:var(--ink)}
.site-header{background:rgba(255,254,250,.96);box-shadow:0 4px 18px #39443b0a;backdrop-filter:blur(8px)}
.brand-mark{background:linear-gradient(145deg,#dcebe4,#f5e8c9);color:#466b60;border:1px solid #d6e2d8}
.hero{background:radial-gradient(circle at 78% 28%,#e5f0e9 0 15%,transparent 15.5%),radial-gradient(circle at 94% 80%,#f5e8c9 0 9%,transparent 9.5%),linear-gradient(125deg,#f9f6ed,#f1ead9);border-bottom:1px solid var(--line)}
.hero-illustration{width:min(100%,330px);height:auto;object-fit:contain;filter:drop-shadow(0 18px 20px #49665b18);position:relative;z-index:1;border-radius:30px}
.hero-orbit{position:absolute;border:1px solid #b9d0c5;border-radius:50%;width:300px;height:300px;opacity:.55}.hero-orbit-one{width:340px;height:340px}.hero-orbit-two{width:250px;height:250px;border-color:#dfc58e}
.tip-illustration{width:76px;height:76px;object-fit:contain;display:block;margin-bottom:.4rem;border-radius:16px}
.course-grid{gap:1.1rem}.course-card{position:relative;overflow:hidden;border-radius:22px;border-color:#e5dfd2;box-shadow:0 6px 22px #39443b0a;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.course-card:nth-child(3n+1){background:linear-gradient(145deg,#fffefa,#f2f7f2)}.course-card:nth-child(3n+2){background:linear-gradient(145deg,#fffefa,#f8f2e5)}.course-card:nth-child(3n){background:linear-gradient(145deg,#fffefa,#eef5f5)}.course-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #39443b16;border-color:#c8d8ce}.course-icon-image{display:block;width:88px;height:82px;object-fit:contain;border-radius:17px;margin-bottom:.55rem}.course-card h3{font-size:1.2rem;color:#34443d}.course-card p{min-height:3.2em}.featured{background:linear-gradient(145deg,#fffaf0,#f5eedc)!important;border-color:#dec99f}
.section-heading h2{letter-spacing:-.02em}.eyebrow{color:#557b70}.primary-btn{background:#557b70;border-color:#3f655a}.primary-btn:hover{background:#456c61}.secondary-btn{border-color:#d9dfd5;background:#fffefa}.secondary-btn:hover,.text-btn:hover{border-color:#9bb6a6}
.wudu-learning-card,.support-card,.wudu-quiz,.salah-learning-card,.activity-card,.progress-card,.progress-summary{box-shadow:0 7px 22px #39443b0a;border-color:#e2dfd4}.wudu-picture,.salah-picture{background:linear-gradient(145deg,#eaf3ed,#f8f2e5);border-color:#dce7dc}.wudu-hint{background:#eff4ed;border-inline-start-color:#557b70}.story-stage{background:linear-gradient(145deg,#fffefa,#f2f6f1);border-color:#e0e6dc}.story-visual{width:104px;height:104px;background:linear-gradient(145deg,#f8efd9,#eaf3ed);border:1px solid #e4dfd2;overflow:hidden;padding:8px}.story-visual img{width:100%;height:100%;object-fit:contain;border-radius:12px}
.activity-card{background:linear-gradient(145deg,#fffefa,#f7f6ef)}.activity-heading{gap:1rem}.activity-heading>img{width:72px;height:72px;object-fit:contain;flex:0 0 72px;border-radius:17px;background:#f4f0e4;padding:5px}.order-item .step-icon{width:56px;height:56px;object-fit:contain;border-radius:12px;background:#f8f3e7;padding:3px}.match-option{display:flex;align-items:center;justify-content:center;gap:.7rem}.match-option .match-icon{width:64px;height:58px;object-fit:contain;flex:0 0 64px;border-radius:12px;background:#f8f3e7;padding:3px}.identify-option .identify-icon{width:86px;height:78px;object-fit:contain;border-radius:14px;background:#f8f3e7;padding:4px}.activity-card button:hover:not(:disabled){border-color:#9bb6a6;background:#f6faf6}.progress-card.is-done{background:linear-gradient(145deg,#f8fbf6,#edf4e9)}
@media(max-width:620px){.hero-illustration{width:min(72vw,250px)}.hero-orbit-one{width:260px;height:260px}.hero-orbit-two{width:200px;height:200px}.course-icon-image{width:76px;height:72px}.activity-heading>img{width:62px;height:62px;flex-basis:62px}.match-option{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.course-card{transition:none}}

/* Stage 11: user-controlled accessibility preferences */
body.high-contrast{--ink:#171717;--muted:#333;--cream:#fff;--paper:#fff;--gold:#704000;--gold-dark:#4a2900;--sage:#244d35;--line:#555;--focus:#003f9e;background:#fff;color:#171717}
body.high-contrast .site-header,body.high-contrast .tip-card,body.high-contrast .setting,body.high-contrast .activity-card,body.high-contrast .progress-card,body.high-contrast .course-card,body.high-contrast .wudu-learning-card,body.high-contrast .support-card,body.high-contrast .wudu-quiz{background:#fff;border-color:#555}
body.high-contrast .primary-btn{background:#704000;border-color:#3b2400;color:#fff}
body.high-contrast .secondary-btn,body.high-contrast .text-btn,body.high-contrast a{color:#171717}
body.wide-text{letter-spacing:.025em;word-spacing:.12em;line-height:2.05}
body.wide-text p,body.wide-text li,body.wide-text button,body.wide-text a{line-height:2.05}
.setting button[aria-pressed="true"]{outline:2px solid var(--focus);outline-offset:2px}
button,a{min-width:24px}
:focus-visible{scroll-margin-block:7rem}
@media(max-width:620px){.header-tools .small-btn{min-height:44px;min-width:44px}.nav-toggle{min-height:44px}.identify-options{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Stage 14: page-by-page navigation for a calmer, app-like learning flow. */
body.page-mode main>section[hidden]{display:none!important}
body.page-mode main>section:not([hidden]){display:block;min-height:calc(100svh - 86px);animation:pageEnter .18s ease-out}
.page-navigation{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin:2rem 0 0;padding:1rem 0;border-top:1px solid var(--line)}
.page-navigation button{min-height:48px;padding:.65rem 1.1rem;border-radius:13px;border:1px solid var(--line);background:#fffefa;color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.page-navigation button.next-page{background:var(--sage);border-color:var(--sage);color:white}
.page-navigation button:disabled{opacity:.4;cursor:not-allowed}
.page-navigation .page-counter{color:var(--muted);font-size:.92rem}
.site-header{position:sticky;top:0;z-index:20}
.hero-illustration{max-height:350px}
.course-icon-image{height:112px;width:120px;object-fit:cover;object-position:center;border-radius:20px;background:#fff}
.tip-illustration{width:104px;height:104px;object-fit:cover}
@keyframes pageEnter{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:620px){.course-icon-image{width:100px;height:96px}.page-navigation{position:relative}.page-navigation button{flex:1 1 42%}.page-navigation .page-counter{flex-basis:100%;text-align:center;order:3}}
@media(prefers-reduced-motion:reduce){body.page-mode main>section:not([hidden]){animation:none}}
