/* Generated startup bundle. Original sources and byte ranges: startup-bundles.json. */

/* /visual-learning.css */
/* Live infographic scenes: Arabic stays selectable, accessible, and exact. */
.visual-learning,.vl-compact{--vl-ink:#172b35;--vl-muted:#52636b;--vl-line:#d6dfdf;--vl-paper:#fffef9;--vl-page:#f6f4ed;--vl-accent:#274f52;--vl-accent-ink:#fff;--vl-gold:#a46f17;--vl-sky:#1474a3;--vl-mint:#177250;--vl-amber:#956013;--vl-purple:#7b429d;color:var(--vl-ink);font-family:var(--font-ui,Inter,Arial,sans-serif);}
.visual-learning *,.vl-compact *{box-sizing:border-box}.visual-learning button,.visual-learning a,.vl-compact button{font-family:inherit}.visual-learning button,.vl-compact button{cursor:pointer}.visual-learning button:disabled{opacity:.45;cursor:default}.visual-learning :focus-visible,.vl-compact :focus-visible{outline:3px solid #b47e22;outline-offset:4px}.visual-learning{max-width:1040px;margin:0 auto;min-width:0}.visual-learning h2,.visual-learning h3,.visual-learning p{color:inherit}.visual-learning [tabindex="-1"]{scroll-margin-top:145px}.visual-learning h2{letter-spacing:-.04em;line-height:1.12}.visual-learning p{line-height:1.75}.vl-eyebrow{display:block;color:var(--vl-gold);font-size:10px;font-weight:800;letter-spacing:.12em;line-height:1.7}.vl-primary,.vl-secondary{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:48px;padding:12px 18px;border:1px solid var(--vl-accent);border-radius:12px;font-size:13px;font-weight:750;line-height:1.5;text-decoration:none;text-align:center}.vl-primary{background:var(--vl-accent);color:var(--vl-accent-ink)}.vl-primary>span[aria-hidden]{font-size:20px}.vl-secondary{background:var(--vl-paper);color:var(--vl-ink);border-color:var(--vl-line)}.vl-text-button{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:7px 0;border:0;background:transparent;color:var(--vl-accent);font-size:13px;font-weight:700;text-align:start}.vl-text-button:hover{text-decoration:underline;text-underline-offset:4px}.vl-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:26px;align-items:center;padding:34px;border:1px solid #d7d3c5;border-radius:24px;background:linear-gradient(135deg,#fffdf6 20%,#ede8d9);position:relative;overflow:hidden}.vl-hero-copy{position:relative;z-index:1}.vl-hero h2{font-size:clamp(34px,4.3vw,52px);font-weight:650;margin:14px 0 17px;max-width:440px}.vl-hero-copy>p{font-size:15px;max-width:350px;color:var(--vl-muted);margin:0 0 25px}.vl-hero-art{background:#142932;border:1px solid #36515b;border-radius:19px;padding:26px 17px;color:#eaf3ee;box-shadow:0 14px 30px #14293216;position:relative}.vl-hero-art:before{content:'';position:absolute;inset:8px;border:1px solid #e8ca8640;border-radius:13px;pointer-events:none}.vl-hero-caption{display:block;text-align:center;font-size:10px;font-weight:750;letter-spacing:.17em;color:#ecd397;margin-bottom:23px}.vl-hero-art .vl-mini-node{border:1px solid #ffffff2a;background:#203c47;color:#a8d9ee;padding:10px 7px;min-width:0}.vl-hero-art .vl-state-nasb{color:#f5d38a;background:#4a3922}.vl-hero-art .vl-state-fixed{color:#e0e7ea;background:#33434b}.vl-hero-art .vl-mini-node b{color:#fff9eb}.vl-hero-art .vl-mini-link{background:#abbbb1}.vl-art-foot{display:block;text-align:center;color:#b6c5c7;font-size:10px;line-height:1.7;margin-top:23px}.vl-progress-summary{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:19px 4px;color:var(--vl-muted);font-size:12px}.vl-progress-summary b{font-size:17px;color:var(--vl-ink)}.vl-progress-summary progress{width:190px;height:5px;accent-color:var(--vl-accent);border:0;border-radius:9px;background:var(--vl-line);overflow:hidden}.vl-progress-summary progress::-webkit-progress-bar{background:var(--vl-line)}.vl-progress-summary progress::-webkit-progress-value{background:var(--vl-accent);border-radius:9px}.vl-progress-summary progress::-moz-progress-bar{background:var(--vl-accent)}
.vl-map-group{margin-top:19px;margin-bottom:36px}.vl-group-heading{margin-bottom:16px}.vl-group-heading h3{font-size:18px;font-weight:750;letter-spacing:-.02em;margin:0 0 6px}.vl-group-heading p{font-size:13px;color:var(--vl-muted);margin:0}.vl-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.vl-map-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--vl-line);border-radius:17px;background:var(--vl-paper);text-align:start;color:var(--vl-ink);padding:0;overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s}.vl-map-card:hover{border-color:#7d948a;transform:translateY(-3px);box-shadow:0 9px 24px #203c4712}.vl-card-art{height:103px;position:relative;display:flex;align-items:center;justify-content:center;background:#edf0ec;border-bottom:1px solid var(--vl-line);overflow:hidden}.vl-card-art:after{content:'';width:135px;height:135px;border:1px solid #476b5c15;border-radius:50%;position:absolute;box-shadow:0 0 0 19px #476b5c06}.vl-card-art svg{width:136px;height:72px;stroke:#547279;stroke-width:1.8;position:relative;z-index:1}.vl-card-art .vl-sky{fill:#a8d4e9;stroke:#4a849f}.vl-card-art .vl-gold{fill:#e8ce94;stroke:#aa8444}.vl-card-art .vl-mint{fill:#acd6bd;stroke:#55816e}.vl-card-art .vl-rose{fill:#d5bfe0;stroke:#8d6e9e}.vl-art-endings,.vl-art-five-verbs{background:#eff0f5}.vl-art-roots,.vl-art-idafa{background:#edf2e9}.vl-art-overrides,.vl-art-relative{background:#f3ecdf}.vl-card-number{position:absolute;top:12px;inset-inline-start:14px;font-size:10px;color:#617571;letter-spacing:.1em}.vl-card-copy{display:flex;flex-direction:column;gap:9px;flex:1;padding:18px}.vl-card-kicker{font-size:10px;line-height:1.5;color:var(--vl-muted)}.vl-card-copy>strong{font-size:17px;line-height:1.4;letter-spacing:-.025em;font-weight:650}.vl-card-meta{margin-top:auto;padding-top:9px;display:flex;justify-content:space-between;gap:10px;color:var(--vl-muted);font-size:11px}.vl-card-meta>span:last-child{font-size:18px;color:var(--vl-accent)}.vl-done{color:var(--vl-mint);font-weight:750}
.vl-lesson-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px;color:var(--vl-muted);font-size:12px}.vl-lesson-heading{max-width:760px;margin-bottom:26px}.vl-lesson-heading h2{font-size:clamp(29px,3.8vw,43px);margin:10px 0 16px;font-weight:650}.vl-lesson-heading>p{font-size:15px;color:var(--vl-muted);margin:0;max-width:650px}.vl-scene-tabs{display:flex;align-items:stretch;gap:7px;margin-bottom:15px;flex-wrap:wrap}.vl-scene-tabs button{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid var(--vl-line);border-radius:100px;min-height:46px;font-size:12px;line-height:1.45;background:var(--vl-paper);color:var(--vl-muted);text-align:start}.vl-scene-tabs button>span{font-size:10px;border:1px solid currentColor;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;flex:none}.vl-scene-tabs button[aria-pressed="true"]{background:var(--vl-accent);color:var(--vl-accent-ink);border-color:var(--vl-accent);font-weight:750}.vl-canvas{--vl-sky:#a8dafa;--vl-mint:#91dfb9;--vl-amber:#f2d18a;--vl-purple:#d8b7f1;border:1px solid #385259;border-radius:22px;padding:26px;background:radial-gradient(ellipse at 50% 0,#27454d 0,#172e37 55%,#142831 100%);color:#f6f4e9;position:relative;overflow:hidden;box-shadow:0 16px 36px #102d3610}.vl-example-label{display:flex;justify-content:space-between;gap:16px;font-size:10px;line-height:1.6;color:#b9cbd1;margin-bottom:19px}.vl-example-label bdi{font-weight:700;color:#ead6a9}.vl-canvas h3{font-size:18px;line-height:1.6;font-weight:600;max-width:700px;margin:0 auto 27px;text-align:center}.vl-token-stage{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:11px;padding:4px 0 13px;position:relative}.vl-token{--token:#b5c4d0;position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;min-width:87px;min-height:108px;max-width:100%;background:#223b46;border:1px solid #ffffff20;border-top:3px solid var(--token);border-radius:12px;padding:12px 17px;color:#fff;transition:background .16s,transform .16s,border-color .16s}.vl-token:hover{background:#2d4c57;transform:translateY(-2px)}.vl-state-raf{--token:var(--vl-sky,#1474a3)}.vl-state-nasb{--token:var(--vl-amber,#956013)}.vl-state-jarr{--token:var(--vl-mint,#177250)}.vl-state-jazm{--token:var(--vl-purple,#7b429d)}.vl-state-fixed,.vl-state-plain{--token:#b7c6d1}.vl-token-ar{font:400 clamp(30px,3.7vw,43px)/1.7 var(--arabic,Amiri,serif);white-space:normal;overflow-wrap:anywhere;color:#fff8e8}.vl-token-role{font-size:11px;line-height:1.6;max-width:160px;color:var(--token);font-weight:650}.vl-token-active{border:1px solid var(--token);border-top:3px solid var(--token);background:#2a4650;box-shadow:0 0 0 3px #f2d18a15;transform:translateY(-3px)}.vl-selected-dot{position:absolute;width:7px;height:7px;bottom:-4px;border-radius:50%;background:var(--token)}.vl-tap-hint{font-size:11px;color:#bfd2d5!important;text-align:center;margin:9px 0 20px}.vl-token-detail{border-inline-start:3px solid var(--token);padding:17px 20px;background:#0e232ab3;border-radius:3px 12px 12px 3px;margin:14px auto 26px;max-width:670px;animation:vl-reveal .2s ease}.vl-token-detail .vl-eyebrow{color:#e6cc92;font-size:9px;margin-bottom:9px}.vl-token-detail>strong{font-size:16px;color:var(--token);display:block;margin-bottom:7px}.vl-token-detail p{font-size:13px;line-height:1.8;margin:0;color:#e8f0ef}.vl-token-detail details{margin-top:9px;border-top:1px solid #ffffff1c}.vl-token-detail summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#c6d8dc;font-size:11px;gap:10px}.vl-token-detail summary:after{content:'+';margin-inline-start:auto}.vl-token-detail details[open] summary:after{content:'−'}.vl-state-badge{display:inline-flex;padding:5px 12px;border:1px solid var(--token);border-radius:30px;color:var(--token);font-size:11px;margin-bottom:4px}.vl-flow-caption{text-align:center;font-size:9px;color:#e5cb92;font-weight:750;letter-spacing:.16em;margin-top:25px}.vl-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;list-style:none;padding:0;margin:17px 0 12px}.vl-flow li{min-width:0;position:relative;text-align:center;display:flex;align-items:center;flex-direction:column}.vl-flow li+li:before{content:'';width:calc(100% - 16px);height:1px;position:absolute;inset-inline-end:calc(50% + 22px);top:16px;background:linear-gradient(90deg,#688b86,#9dbaa8)}.vl-flow li+li:after{content:'';position:absolute;top:12px;inset-inline-start:-13px;width:7px;height:7px;border-inline-end:1px solid #a2c3b5;border-top:1px solid #a2c3b5;transform:rotate(45deg)}[dir=rtl] .vl-flow li+li:after{transform:rotate(-45deg)}.vl-flow-number{display:grid;place-items:center;width:34px;height:34px;border:1px solid #a1bdaa;border-radius:50%;background:#2b4948;color:#e6e8cc;font-size:12px;position:relative;z-index:1}.vl-flow p{font-size:12px;color:#e0e9e6!important;line-height:1.75;margin:11px 0 0;max-width:230px}.vl-colour-note{font-size:10px;line-height:1.7;text-align:center;color:#b1c4c9!important;border-top:1px solid #ffffff1b;padding-top:15px;margin:20px 0 0}.vl-scene-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.vl-scene-footer>span{font-size:11px;color:var(--vl-muted);white-space:nowrap}.vl-skip{display:flex;margin:12px auto 0;font-size:11px;color:var(--vl-muted);min-height:44px}
.vl-quiz{border:1px solid var(--vl-line);border-radius:22px;background:var(--vl-paper);padding:32px;max-width:800px;margin:auto}.vl-quiz h3{font-size:24px;line-height:1.6;font-weight:650;letter-spacing:-.02em;margin:12px 0}.vl-quiz-hint{font-size:13px;color:var(--vl-muted)!important;margin-bottom:23px}.vl-answer-options{display:grid;gap:11px}.vl-answer-options button{display:flex;align-items:center;gap:14px;min-height:66px;background:var(--vl-page);border:1px solid var(--vl-line);border-radius:12px;padding:14px 17px;color:var(--vl-ink);font-size:14px;line-height:1.7;text-align:start}.vl-answer-options button:hover:not(:disabled){border-color:var(--vl-accent)}.vl-answer-options button:disabled{opacity:1;cursor:default}.vl-option-letter{width:27px;height:27px;flex:none;border:1px solid var(--vl-line);border-radius:50%;font-size:11px;display:grid;place-items:center;color:var(--vl-muted)}.vl-answer-options .vl-correct{background:#e8f2e8;border-color:#43845a;color:#1a5033}.vl-answer-options .vl-incorrect{background:#f7eddc;border-color:#b18b44;color:#674813}.vl-feedback{border-inline-start:3px solid var(--vl-accent);padding:5px 0 5px 18px;margin:28px 0;color:var(--vl-ink)}[dir=rtl] .vl-feedback{padding:5px 18px 5px 0}.vl-feedback>strong{font-size:18px;display:block}.vl-feedback p{font-size:14px;line-height:1.85;margin:9px 0 0;color:var(--vl-muted)}.vl-keep{padding:22px;border:1px solid #d6c8a7;border-radius:15px;background:#f6f0df;margin-top:25px}.vl-keep>p{font-size:17px;line-height:1.8;font-weight:600;margin:8px 0 0}.vl-keep details{border-top:1px solid #d8ccb1;margin-top:16px}.vl-keep summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;cursor:pointer;font-size:12px;font-weight:650}.vl-keep summary:after{content:'+'}.vl-keep details[open] summary:after{content:'−'}.vl-keep details p{font-size:13px;line-height:1.85;margin:0 0 5px}.vl-quiz-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}.vl-quiz-actions .vl-primary{margin-inline-start:auto}.vl-source{margin:28px 0 12px;border-top:1px solid var(--vl-line);padding-top:3px;font-size:12px;color:var(--vl-muted);line-height:1.85}.vl-source summary{display:flex;justify-content:space-between;align-items:center;min-height:48px;cursor:pointer;font-weight:650}.vl-source summary:after{content:'+'}.vl-source[open] summary:after{content:'−'}.vl-source p{max-width:700px;margin:5px 0 10px}.vl-source a{display:inline-flex;align-items:center;min-height:44px;margin-inline-end:19px;color:var(--vl-accent);font-size:12px;text-underline-offset:4px}.vl-loading,.vl-load-error{padding:40px 25px;border:1px solid var(--vl-line);border-radius:18px;background:var(--vl-paper);line-height:1.8}.vl-load-error h2{font-size:24px}.vl-storage-note{padding:15px;border:1px solid #b8a780;border-radius:12px;font-size:12px;line-height:1.7;color:var(--vl-muted)}
.vl-compact{margin:20px 0 25px;padding:19px;border:1px solid #b7c8c9;background:linear-gradient(135deg,#eef4ee,#f6f2e3);border-radius:15px;overflow:hidden}.vl-compact>.vl-eyebrow{font-size:9px;color:#4d6961}.vl-mini-diagram{display:flex;align-items:stretch;justify-content:center;gap:0;margin:20px 0 14px;min-width:0}.vl-mini-node{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 1 0;gap:5px;min-width:0;border:1px solid #b5ccd6;border-top:3px solid var(--token);border-radius:9px;background:#fffdf8;padding:11px 8px;text-align:center;color:var(--vl-ink)}.vl-mini-node b{font:400 27px/1.7 var(--arabic,Amiri,serif);color:#223a40;overflow-wrap:anywhere}.vl-mini-node small{font-size:10px;line-height:1.6;font-weight:650;color:var(--token)}.vl-mini-link{position:relative;width:16px;height:1px;align-self:center;background:#80958a;flex:0 0 16px}.vl-mini-link:before{content:'';width:6px;height:6px;position:absolute;top:-2.5px;left:1px;border-left:1px solid #80958a;border-bottom:1px solid #80958a;transform:rotate(45deg)}.vl-compact-note{display:block;text-align:center;font-size:10px;line-height:1.6;color:#5d6c65}.vl-compact-launch{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-top:1px solid #c4cfc5;padding:13px 0 0;margin-top:15px;min-height:49px;width:100%;background:transparent;color:#254b4c;font-size:12px;font-weight:750;line-height:1.6;text-align:start}.vl-compact-launch>span{font-size:21px}
.visual-learning[dir=rtl] h2{letter-spacing:0;line-height:1.5}.visual-learning[dir=rtl] .vl-eyebrow,.visual-learning[dir=rtl] .vl-hero-caption,.visual-learning[dir=rtl] .vl-flow-caption,.vl-compact[dir=rtl] .vl-eyebrow{letter-spacing:0}.visual-learning[dir=rtl] .vl-hero h2{font-size:clamp(33px,4vw,46px);margin:8px 0 11px}.visual-learning[dir=rtl] p{line-height:1.95}.visual-learning[dir=rtl] .vl-card-copy>strong{letter-spacing:0;line-height:1.7;font-size:19px}.visual-learning[dir=rtl] .vl-card-kicker{font-size:11px}.visual-learning[dir=rtl] .vl-token-role{font-size:12px}.visual-learning[dir=rtl] .vl-token-detail{border-radius:12px 3px 3px 12px}.visual-learning[dir=rtl] .vl-flow p{font-size:13px;line-height:1.9}.visual-learning[dir=rtl] .vl-quiz h3{letter-spacing:0}.visual-learning[dir=rtl] .vl-primary,.visual-learning[dir=rtl] .vl-secondary{font-size:14px}.visual-learning[dir=rtl] .vl-scene-tabs button{font-size:13px}
.dark .visual-learning,.dark .vl-compact{--vl-ink:#edf1ed;--vl-muted:#b8c6c8;--vl-line:#42535b;--vl-paper:#1a2a32;--vl-page:#20323b;--vl-accent:#b8d1c1;--vl-accent-ink:#152c29;--vl-gold:#ebd093;--vl-sky:#a8dafa;--vl-mint:#91dfb9;--vl-amber:#f2d18a;--vl-purple:#d8b7f1}.dark .vl-hero{background:linear-gradient(135deg,#263a3f,#1a2d34);border-color:#485b59}.dark .vl-map-card{background:#1b2d35}.dark .vl-card-art{background:#213941;border-color:#42535b}.dark .vl-card-art:after{border-color:#cae4cd13;box-shadow:0 0 0 19px #cae4cd03}.dark .vl-card-number{color:#b1c6c4}.dark .vl-art-overrides,.dark .vl-art-relative{background:#373b32}.dark .vl-art-endings,.dark .vl-art-five-verbs{background:#2d3547}.dark .vl-art-roots,.dark .vl-art-idafa{background:#263e35}.dark .vl-map-card:hover{border-color:#adbcaa;box-shadow:0 10px 24px #0002}.dark .vl-keep{background:#393b2d;border-color:#7c7859}.dark .vl-keep details{border-color:#716e52}.dark .vl-answer-options .vl-correct{background:#254538;border-color:#80b498;color:#d0edda}.dark .vl-answer-options .vl-incorrect{background:#493c25;border-color:#bda16b;color:#efdbaf}.dark .vl-compact{background:linear-gradient(135deg,#243d3a,#333c2f);border-color:#607b70}.dark .vl-compact>.vl-eyebrow{color:#c5d5c7}.dark .vl-mini-node{background:#1c3035;border-color:#536b6d;border-top-color:var(--token)}.dark .vl-mini-node b{color:#f3f0e5}.dark .vl-compact-note{color:#bbc9bf}.dark .vl-compact-launch{border-color:#61786a;color:#e2e9dc}.dark .vl-hero-art .vl-mini-node{background:#223d45}.dark .vl-hero-art .vl-state-nasb{background:#4a3922}.dark .vl-hero-art .vl-state-fixed{background:#33434b}
@keyframes vl-reveal{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.vl-ending-lens{display:flex;align-items:center;justify-content:center;gap:23px;margin:22px auto 27px;max-width:650px;padding:19px 23px;background:#0d2028a6;border:1px solid #cbb67c5c;border-radius:17px}.vl-lens-symbols{display:flex;align-items:center;gap:12px;flex:none}.vl-lens-mark{display:grid;place-items:center;width:77px;height:77px;border-radius:50%;border:1px solid #d9c184;background:radial-gradient(circle,#a58a4424,#e3c67b05);box-shadow:0 0 0 5px #d9c1840b;color:#f6d992;font:400 48px/1 var(--arabic,Amiri,serif)}.vl-lens-before{color:#bfced1;font:400 39px/1 var(--arabic,Amiri,serif)}.vl-lens-arrow{font-size:22px;color:#9cb1ae}.vl-ending-lens .vl-eyebrow{color:#e6d2a2;font-size:9px;line-height:1.7;margin-bottom:5px}.vl-ending-lens p{font-size:12px;line-height:1.8;color:#e8eeee!important;margin:0}.visual-learning[dir=rtl] .vl-ending-lens p{font-size:13px}.vl-ending-lens .vl-lens-symbols[dir=rtl]{direction:rtl}
@media(max-width:580px){.vl-ending-lens{gap:16px;padding:17px;align-items:center}.vl-lens-mark{width:62px;height:62px;font-size:42px}.vl-lens-before{font-size:31px}.vl-lens-symbols{gap:8px}.vl-lens-arrow{font-size:17px}.vl-ending-lens p{font-size:11px}.vl-ending-lens .vl-eyebrow{font-size:8px}.visual-learning[dir=rtl] .vl-ending-lens p{font-size:12px}}
@media(max-width:380px){.vl-ending-lens{flex-direction:column;text-align:center;gap:15px}.vl-lens-mark{width:66px;height:66px}.vl-ending-lens .vl-eyebrow{font-size:9px}.vl-ending-lens p{font-size:12px}}
@media(max-width:800px){.vl-hero{padding:26px;gap:22px}.vl-hero h2{font-size:36px}.vl-hero-art{padding:22px 12px}.vl-hero-art .vl-mini-node b{font-size:25px}.vl-hero-art .vl-mini-link{width:9px;flex-basis:9px}.vl-map{grid-template-columns:repeat(2,minmax(0,1fr))}.vl-canvas{padding:23px}.vl-token{padding:11px 13px}}
@media(max-width:580px){.vl-hero{display:block;padding:26px 22px;border-radius:20px}.vl-hero h2{font-size:37px;max-width:300px;margin-top:10px}.vl-hero-copy>p{font-size:14px;margin-bottom:20px}.vl-hero-copy>.vl-primary{width:100%;margin-bottom:24px}.vl-hero-art{padding:22px 12px}.vl-hero-caption{font-size:9px;margin-bottom:14px}.vl-hero-art .vl-mini-diagram{margin:12px 0}.vl-hero-art .vl-mini-node b{font-size:27px}.vl-art-foot{margin-top:15px;font-size:9px}.vl-progress-summary{gap:12px;font-size:11px;padding:19px 2px}.vl-progress-summary progress{width:80px;flex:none}.vl-map{gap:10px}.vl-card-art{height:88px}.vl-card-art svg{width:113px}.vl-card-copy{padding:14px 12px;gap:7px}.vl-card-copy>strong{font-size:16px}.vl-card-kicker{font-size:9px;line-height:1.7}.vl-card-meta{font-size:10px}.vl-group-heading h3{font-size:17px}.vl-group-heading p{font-size:12px}.vl-lesson-top{margin-bottom:14px}.vl-lesson-heading{margin-bottom:21px}.vl-lesson-heading h2{font-size:31px}.vl-lesson-heading>p{font-size:14px}.vl-scene-tabs{gap:6px;margin-bottom:12px}.vl-scene-tabs button{font-size:11px;padding:8px 10px;flex:1 1 auto;justify-content:center;min-width:0;border-radius:11px}.vl-scene-tabs button>span{font-size:9px;width:19px;height:19px}.vl-canvas{padding:20px 16px;border-radius:18px}.vl-example-label{font-size:9px;gap:10px;margin-bottom:15px}.vl-canvas h3{font-size:16px;margin-bottom:21px;text-align:start}.vl-token-stage{gap:8px;padding-top:0}.vl-token{padding:9px 10px;min-width:75px;min-height:96px;flex:1 1 auto;max-width:100%}.vl-token-ar{font-size:34px;line-height:1.6}.vl-token-role{font-size:10px;max-width:140px}.vl-token-detail{padding:15px;margin-top:10px}.vl-token-detail>strong{font-size:15px}.vl-token-detail p{font-size:12px}.vl-flow-caption{text-align:start;margin-top:22px;font-size:9px}.vl-flow{display:flex;flex-direction:column;gap:0;margin:17px 0 8px}.vl-flow li{flex-direction:row;align-items:flex-start;gap:12px;text-align:start;min-height:61px;padding-bottom:17px}.vl-flow-number{width:30px;height:30px;flex:none;font-size:11px}.vl-flow p{margin:3px 0 0;font-size:12px;max-width:none}.vl-flow li+li:before{width:1px;height:calc(100% + 2px);inset-inline-start:15px;top:calc(-100% + 16px);background:#779b8d}.vl-flow li+li:after{width:6px;height:6px;top:-11px;inset-inline-start:12px;border:0;border-inline-end:1px solid #a2c3b5;border-bottom:1px solid #a2c3b5;transform:rotate(45deg)}[dir=rtl] .vl-flow li+li:after{transform:rotate(-45deg)}.vl-flow li:last-child{padding-bottom:0;min-height:43px}.vl-colour-note{font-size:9px;margin-top:15px}.vl-scene-footer{gap:8px;flex-wrap:wrap}.vl-scene-footer>span{display:none}.vl-scene-footer .vl-primary,.vl-scene-footer .vl-secondary{flex:1;font-size:12px;padding:11px 12px;min-height:48px}.vl-quiz{padding:23px 18px;border-radius:18px}.vl-quiz h3{font-size:21px}.vl-answer-options button{font-size:13px;padding:13px;gap:11px}.vl-keep{padding:18px}.vl-keep>p{font-size:15px}.vl-quiz-actions{flex-direction:column}.vl-quiz-actions .vl-primary{margin-inline-start:0}.vl-feedback>strong{font-size:17px}.vl-feedback p{font-size:13px}.vl-compact{padding:16px 13px}.vl-mini-node{padding:10px 5px}.vl-mini-node b{font-size:25px}.vl-mini-node small{font-size:9px}.vl-mini-link{width:11px;flex-basis:11px}.visual-learning[dir=rtl] .vl-card-copy>strong{font-size:17px}.visual-learning[dir=rtl] .vl-lesson-heading h2{font-size:30px}.visual-learning[dir=rtl] .vl-token-role{font-size:11px}.visual-learning[dir=rtl] .vl-flow p{font-size:12px}.visual-learning[dir=rtl] .vl-scene-tabs button{font-size:12px}}
@media(max-width:360px){.vl-hero{padding:22px 16px}.vl-hero h2{font-size:33px}.vl-card-copy>strong{font-size:15px}.vl-card-kicker{font-size:9px}.vl-card-copy{padding:12px 10px}.vl-token{min-width:69px;padding-inline:8px}.vl-token-ar{font-size:30px}.vl-canvas{padding:18px 13px}.vl-mini-node b{font-size:23px}.vl-hero-art .vl-mini-node b{font-size:25px}.vl-hero-art{padding-inline:8px}.vl-hero-art .vl-mini-node{padding-inline:4px}.vl-primary,.vl-secondary{padding-inline:13px}}
@media(prefers-reduced-motion:reduce){.visual-learning *, .vl-compact *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.vl-map-card:hover,.vl-token:hover,.vl-token-active{transform:none}}

/* Explanations are primary reading text, including on small screens. */
.vl-state-fixed,.vl-state-plain{--token:#596d78}.vl-canvas .vl-state-fixed,.vl-canvas .vl-state-plain,.vl-hero-art .vl-state-fixed,.vl-hero-art .vl-state-plain{--token:#c7d4db}.dark .vl-state-fixed,.dark .vl-state-plain{--token:#c7d4db}
.vl-token-detail p,.vl-flow p,.vl-ending-lens p{font-size:14px}.vl-token-role{font-size:12px}.visual-learning[dir=rtl] .vl-token-detail p,.visual-learning[dir=rtl] .vl-flow p,.visual-learning[dir=rtl] .vl-ending-lens p{font-size:14px}.visual-learning[dir=rtl] .vl-token-role{font-size:13px}
@media(max-width:580px){.vl-token-detail p,.vl-flow p,.vl-ending-lens p{font-size:14px;line-height:1.85}.vl-token-role{font-size:12px;line-height:1.7}.visual-learning[dir=rtl] .vl-token-detail p,.visual-learning[dir=rtl] .vl-flow p,.visual-learning[dir=rtl] .vl-ending-lens p{font-size:14px;line-height:1.95}.visual-learning[dir=rtl] .vl-token-role{font-size:13px}.vl-ending-lens{align-items:center;flex-wrap:wrap}.vl-ending-lens>div:last-child{flex:1 1 150px}.vl-flow li{min-height:68px}.vl-mini-node small{color:var(--vl-ink)}}
.vl-hero-art .vl-mini-node small{color:var(--token)}

/* A dotted circle anchors isolated Arabic vowel marks without Amiri's
   elongated-kashida positioning. This is a teaching glyph, not verse text. */
.vl-lens-mark,.vl-lens-before{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1;flex:none}.vl-symbol-glyph{display:block;font-family:Arial,Tahoma,sans-serif;font-size:42px;font-weight:400;line-height:1.25;letter-spacing:0;direction:ltr}.vl-symbol-name{display:block;font-family:var(--font-ui,Arial,sans-serif);font-size:9px;font-weight:700;line-height:1.4;white-space:nowrap;margin-top:-3px}.vl-lens-before .vl-symbol-glyph{font-size:34px}.vl-lens-before .vl-symbol-name{font-size:8px}.vl-symbol-letter{font-family:Arial,Tahoma,sans-serif;font-size:38px;line-height:1.3}.vl-lens-before .vl-symbol-letter{font-size:30px}
@media(max-width:580px){.vl-symbol-glyph{font-size:34px}.vl-lens-before .vl-symbol-glyph{font-size:28px}.vl-symbol-name{font-size:8px}.vl-lens-before .vl-symbol-name{font-size:8px}.vl-symbol-letter{font-size:33px}.vl-lens-before .vl-symbol-letter{font-size:27px}}

/* Dark preview cards keep readable case labels in both outer themes. */
.vl-hero-art{--vl-sky:#a8dafa;--vl-mint:#91dfb9;--vl-amber:#f2d18a;--vl-purple:#d8b7f1}


/* /grammar-connections.css */
/* Small teaching diagrams shared by the word reader, glossary and lessons. */
.vg-card{--vg-ink:#17343c;--vg-muted:#49636a;--vg-line:#b8ceca;--vg-paper:#edf4ef;--vg-chip:#fffefa;--vg-focus:#dcece0;color:var(--vg-ink);background:var(--vg-paper);border:1px solid var(--vg-line);border-radius:16px;padding:16px;margin:14px 0;max-width:620px;min-width:0}
.vg-card h3{font-size:17px;line-height:1.5;margin:0 0 12px;color:var(--vg-ink);letter-spacing:0}.vg-example{display:flex;gap:7px;align-items:stretch;justify-content:center}.vg-token{flex:1;min-width:0;padding:6px 5px;border:1px solid var(--vg-line);border-radius:9px;background:var(--vg-chip);display:flex;flex-direction:column;align-items:center;text-align:center}.vg-token b{font:400 29px/1.65 var(--arabic,Amiri,serif);overflow-wrap:anywhere;color:var(--vg-ink)}.vg-token span{font-size:12px;line-height:1.5;color:var(--vg-muted)}.vg-focus{background:var(--vg-focus);border-color:#608875;border-bottom:3px solid #608875}
.vg-sequence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;margin:13px 0 0;gap:10px}.vg-sequence li{display:flex;gap:6px;align-items:flex-start;font-size:12px;line-height:1.55;position:relative;min-width:0}.vg-sequence li>b{display:grid;place-items:center;min-width:19px;height:19px;border-radius:50%;background:#28564e;color:#fff;font:600 10px/1 system-ui}.vg-sequence li+li:before{content:'›';position:absolute;inset-inline-start:-9px;top:0;color:var(--vg-muted)}[dir=rtl] .vg-sequence li+li:before{content:'‹'}.vg-note{font-size:13px;line-height:1.7;margin-top:8px}.vg-note summary{min-height:40px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:var(--vg-ink);font-weight:650}.vg-note summary:after{content:'+'}.vg-note[open] summary:after{content:'−'}.vg-note p{margin:4px 0 10px;color:var(--vg-muted)}.vg-caption{display:block;font-size:10px;line-height:1.6;color:var(--vg-muted)}.vg-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;border-top:1px solid var(--vg-line);padding-top:7px}.vg-actions button{min-height:42px;flex:1;border:0;background:none;color:var(--vg-ink);font-size:12px;font-weight:750;padding:6px;text-align:start;cursor:pointer}.vg-actions button:first-child:not(:last-child){background:var(--vg-focus);border-radius:8px}.vg-card :focus-visible{outline:3px solid #ac7c22;outline-offset:2px}
.dark .vg-card{--vg-ink:#edf4ed;--vg-muted:#c0d3ce;--vg-line:#48645f;--vg-paper:#1a343a;--vg-chip:#253e44;--vg-focus:#315749}.dark .vg-focus{border-color:#90bea7}.dark .vg-sequence li>b{background:#b4d2bb;color:#18392f}
.ending-help-dialog{width:min(820px,calc(100% - 30px));max-height:min(90dvh,950px);padding:0;border:1px solid #8a9c9b;border-radius:20px;background:var(--panel,#fffdf8);color:var(--text,#18333b);overflow:auto}.ending-help-dialog::backdrop{background:#061b22b8;backdrop-filter:blur(3px)}.eh-chrome{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 20px;background:var(--panel,#fffdf8);border-bottom:1px solid #819b913c}.eh-chrome button{min-height:44px;background:none;color:inherit;border:0;font-size:13px;font-weight:700;cursor:pointer}.eh-close{font-size:25px!important;width:44px}.eh-body{padding:18px}.eh-context{margin-bottom:15px}.eh-context-heading{font-size:12px;line-height:1.7;display:flex;justify-content:space-between;gap:12px}.eh-context [data-ending-open]{display:none!important}.eh-context .weg-card{margin-bottom:0}.eh-status{padding:22px;font-size:15px}.eh-links{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0 0}.eh-links button{min-height:44px;border:1px solid #819b9166;border-radius:9px;background:transparent;color:inherit;padding:8px 12px;cursor:pointer;font-size:12px}.eh-context .weg-context{display:none}.ending-help-dialog:focus{outline:none}
.ce-concept-strip{padding:13px 16px;border:1px solid var(--ce-line,#b9ceca);background:var(--ce-paper,#e9f2eb);border-radius:13px;margin:12px 0;font-size:13px;line-height:1.7}.ce-concept-strip button{min-height:44px;border:0;background:none;color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.dark .ce-concept-strip{background:#203c40;color:#e2eee8}
.gh-corpus-link{display:flex;min-height:44px;align-items:center;color:inherit;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;font-size:13px;cursor:pointer}.grammar-detail>.vg-card{margin-top:10px}.academy-tabs{scrollbar-width:thin}.academy-tabs::-webkit-scrollbar{height:3px}
@media(max-width:580px){.vg-card{padding:13px;border-radius:13px}.vg-card h3{font-size:16px}.vg-token b{font-size:27px}.vg-sequence{gap:9px}.vg-sequence li{font-size:11px;gap:4px;display:block}.vg-sequence li>b{margin-bottom:4px}.vg-token span{font-size:11px}.vg-actions button{font-size:12px}.ending-help-dialog{width:calc(100% - 16px);max-height:94dvh;border-radius:17px}.eh-body{padding:12px}.eh-chrome{padding:7px 12px}}
@media(prefers-reduced-motion:reduce){.vg-card *,.ending-help-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.eh-parallel-note{font-size:12px;line-height:1.75;padding:10px 12px;background:#8a9c9b16;border-inline-start:3px solid #608875}.eh-context .word-ending-guide{margin-bottom:0}
.eh-original-word{font:400 34px/1.8 var(--arabic,Amiri,serif);text-align:center;margin:8px 0;color:inherit}
.vg-sequence li>b{width:19px;max-width:19px}
.dark .ending-help-dialog,.dark .eh-chrome{background:#172127;color:#edf4ed}.dark .eh-chrome button{color:#edf4ed}
.vg-sequence li>span{min-width:0;overflow-wrap:anywhere}.vg-token span{overflow-wrap:anywhere}
.vg-sequence li{display:block}.vg-sequence li>b{margin-bottom:5px}.vg-sequence li+li:before{top:2px}


/* /learning-connections.css */
.learning-start-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 22px}.learning-start-links a,.connected-practice{display:flex;align-items:center;gap:12px;text-align:start;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);text-decoration:none;padding:16px;min-height:64px}.learning-start-links a:first-child{border-color:color-mix(in srgb,var(--green) 45%,var(--line));background:var(--pale)}.learning-start-links a>span:first-child{font-size:26px;color:var(--green)}.learning-start-links a>span:nth-child(2),.connected-practice>span:nth-child(2){flex:1;min-width:0}.learning-start-links strong,.learning-start-links small,.connected-practice strong,.connected-practice small{display:block;overflow-wrap:anywhere}.learning-start-links strong,.connected-practice strong{font-size:14px;line-height:1.55}.learning-start-links small,.connected-practice small{font-size:12px;color:var(--muted);line-height:1.65;margin-top:3px}.connected-practice{width:100%;margin-block:12px;background:var(--pale);cursor:pointer}.connected-practice>span:first-child{font-size:22px;color:var(--green)}.grammar-ending-details{margin-block:12px;border:1px solid var(--line);border-radius:12px;padding:0 10px}.grammar-ending-details>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:600}.grammar-ending-details>summary:before{content:'+';color:var(--green);font-size:20px}.grammar-ending-details[open]>summary:before{content:'−'}.grammar-ending-details .weg-card{margin-top:0}.learning-start-links a:focus-visible,.connected-practice:focus-visible,.grammar-ending-details>summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}@media(max-width:600px){.learning-start-links{grid-template-columns:1fr;gap:8px}.learning-start-links a{padding:12px}.connected-practice{padding:12px}}

/* Numbered alternatives use normal digits, avoiding unsupported circled glyphs. */
.learning-start-links .learning-entry-number{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;font-family:inherit;font-size:13px;font-weight:700;color:var(--green);background:var(--bg)}
.course-studio>.learning-start-links{margin:0 0 16px}.course-studio>.learning-start-links a{border-color:var(--line);background:var(--panel)}
.precision-verse-link{display:flex;gap:14px;align-items:center;text-decoration:none;color:var(--ink);background:var(--pale);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-block:14px;min-height:64px}.precision-verse-link>span:first-child{flex:1;min-width:0}.precision-verse-link strong,.precision-verse-link small{display:block}.precision-verse-link strong{font-size:14px;line-height:1.6}.precision-verse-link small{font-size:12px;line-height:1.7;color:var(--muted);margin-top:3px}.precision-verse-link>bdi{font-size:12px;white-space:nowrap}.precision-verse-link>span:last-child{color:var(--green)}.precision-verse-link:focus-visible{outline:3px solid var(--green);outline-offset:3px}


/* /sentence-practice.css */
/* Bilingual, sentence-first practice. All answer cues are added only after grading. */
.sentence-practice{--sp-bg:#fffdf8;--sp-soft:#f2f3ed;--sp-ink:#20343b;--sp-muted:#56686d;--sp-line:#cbd5d1;--sp-accent:#28594e;--sp-accent-text:#fff;--sp-gold:#9b6b19;--sp-raf:#0e6997;--sp-nasb:#895400;--sp-jarr:#076b46;--sp-jazm:#7b369c;--sp-fixed:#576573;max-width:880px;min-width:0;margin-inline:auto;padding:22px;border:1px solid var(--sp-line);border-radius:18px;background:var(--sp-bg);color:var(--sp-ink);font-family:var(--font-ui,Inter,Arial,sans-serif);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.sentence-practice *{box-sizing:border-box;min-width:0}.sentence-practice button,.sentence-practice summary{font:inherit;min-height:44px;cursor:pointer}.sentence-practice button{border:1px solid var(--sp-line);border-radius:10px;background:var(--sp-bg);color:var(--sp-ink);padding:10px 14px;line-height:1.45;white-space:normal;text-align:start;transition:border-color .15s,background-color .15s}.sentence-practice button:hover:not(:disabled){border-color:var(--sp-accent);background:var(--sp-soft)}.sentence-practice button:disabled{opacity:1;cursor:default}.sentence-practice :focus-visible{outline:3px solid var(--sp-gold);outline-offset:3px}.sentence-practice h2,.sentence-practice p{color:inherit}.sentence-practice h2{margin:4px 0 10px;font-size:clamp(21px,3vw,28px);line-height:1.3;letter-spacing:-.025em}.sentence-practice p{margin:9px 0}.sentence-practice .sp-primary{background:var(--sp-accent);color:var(--sp-accent-text);border-color:var(--sp-accent);font-weight:700;text-align:center}.sentence-practice .sp-primary:hover:not(:disabled){background:var(--sp-accent);filter:brightness(1.07);color:var(--sp-accent-text)}.sp-kicker{display:block;color:var(--sp-gold)!important;font-size:11px;font-weight:750;letter-spacing:.1em;text-transform:uppercase;margin-bottom:5px}.sp-header p{color:var(--sp-muted);font-size:14px;max-width:65ch;line-height:1.7}.sp-header{margin-bottom:18px}.sp-toolbar,.sp-question-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.sp-toolbar>span,.sp-question-top>span{font-size:12px;color:var(--sp-muted)}.sp-toolbar button,.sp-question-top button{padding-inline:11px;font-size:12px}.sp-map-progress{background:var(--sp-soft);border:1px solid var(--sp-line);border-radius:12px;padding:13px 15px;margin-bottom:14px;font-size:12px;color:var(--sp-muted)}.sp-map-progress b{color:var(--sp-accent);font-size:15px}.sentence-practice progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:10px;background:var(--sp-line);overflow:hidden;margin:10px 0 17px;accent-color:var(--sp-accent)}.sentence-practice progress::-webkit-progress-bar{background:var(--sp-line)}.sentence-practice progress::-webkit-progress-value{background:var(--sp-accent);border-radius:10px}.sentence-practice progress::-moz-progress-bar{background:var(--sp-accent);border-radius:10px}.sp-map-progress progress{margin-bottom:0}.sentence-practice .sp-resume,.sentence-practice .sp-review-all{display:block;width:100%;margin-bottom:10px;font-weight:650;background:var(--sp-soft)}.sp-skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sentence-practice .sp-skill-card{display:flex;align-items:start;gap:11px;padding:15px}.sp-skill-number{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--sp-soft);color:var(--sp-accent);font-size:12px;font-weight:750}.sp-skill-copy{flex:1}.sp-skill-copy strong{display:block;font-size:14px;line-height:1.45}.sp-skill-copy small{display:block;color:var(--sp-muted);font-size:12px;line-height:1.6;margin:5px 0 8px}.sp-skill-card>b{color:var(--sp-accent);font-weight:400}.sp-skill-status{font-size:10px;font-weight:700;color:var(--sp-muted);display:inline-block;border:1px solid var(--sp-line);padding:3px 7px;border-radius:20px}.sp-status-passed{color:var(--sp-jarr);border-color:currentColor}.sp-status-review{color:var(--sp-nasb);border-color:currentColor}.sp-private{font-size:11px!important;line-height:1.65;color:var(--sp-muted)!important;margin-top:18px!important}.sp-diagram{border:1px solid var(--sp-line);border-radius:14px;background:var(--sp-soft);margin:0;overflow:hidden}.sp-teaching-tokens{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:17px 12px}.sp-teaching-token{--sp-state:var(--sp-fixed);flex:1 1 95px;max-width:160px;border:1px solid var(--sp-line);border-block-end:3px solid var(--sp-state);background:var(--sp-bg);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 7px;text-align:center}.sp-teaching-token b{font-family:var(--font-arabic,'Amiri','Noto Naskh Arabic',serif);font-size:27px;line-height:1.85;color:var(--sp-state);font-weight:500}.sp-teaching-token span{font-size:11px;color:var(--sp-ink);line-height:1.5}.sp-color-raf{--sp-state:var(--sp-raf)}.sp-color-nasb{--sp-state:var(--sp-nasb)}.sp-color-jarr{--sp-state:var(--sp-jarr)}.sp-color-jazm{--sp-state:var(--sp-jazm)}.sp-color-fixed,.sp-color-plain{--sp-state:var(--sp-fixed)}.sp-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;border-block-start:1px solid var(--sp-line)}.sp-steps li{padding:14px 13px;display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.65}.sp-steps li+li{border-inline-start:1px solid var(--sp-line)}.sp-steps li>b{flex:0 0 21px;border:1px solid var(--sp-line);border-radius:50%;width:21px;height:21px;display:grid;place-items:center;font-size:10px;color:var(--sp-accent);background:var(--sp-bg)}.sp-diagram figcaption{font-size:10px;color:var(--sp-muted);padding:7px 12px;border-block-start:1px solid var(--sp-line);background:var(--sp-bg);text-align:center}.sp-takeaway{padding:13px 15px;border-inline-start:3px solid var(--sp-gold);background:var(--sp-soft);border-radius:0 9px 9px 0;font-weight:650;font-size:13px;line-height:1.7;margin:14px 0!important}.sentence-practice[dir=rtl] .sp-takeaway{border-radius:9px 0 0 9px}.sp-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.sp-actions button{flex:1 1 160px;text-align:center}.sp-deeper{margin-top:17px;border-top:1px solid var(--sp-line);padding-top:5px}.sp-deeper summary{display:flex;align-items:center;gap:9px;color:var(--sp-muted);font-size:12px;font-weight:650;list-style:none}.sp-deeper summary::before{content:'+';font-size:18px;color:var(--sp-accent)}.sp-deeper[open] summary::before{content:'−'}.sp-help-links{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.sp-help-links button,.sp-deeper>button{font-size:12px}.sp-help-links button{flex:1 1 150px}.sp-target-hint{font-size:12px;color:var(--sp-muted)!important;line-height:1.6}.sp-source-line{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--sp-muted);margin:15px 0 0;border:1px solid var(--sp-line);border-radius:12px 12px 0 0;background:var(--sp-soft);padding:8px 12px}.sp-source-line bdi{font-weight:650}.sp-question-sentence{display:flex;flex-wrap:wrap;gap:2px 9px;align-items:center;justify-content:center;padding:20px 13px;margin-bottom:17px;border:1px solid var(--sp-line);border-top:0;border-radius:0 0 12px 12px;font-family:var(--font-arabic,'Amiri','Noto Naskh Arabic',serif);font-size:clamp(25px,5vw,34px);line-height:2.1;color:var(--sp-ink);background:var(--sp-bg)}.sp-question-sentence>span{white-space:normal;overflow-wrap:anywhere;padding:0 3px}.sp-question-sentence .sp-question-target{border:2px solid var(--sp-ink);border-radius:9px;padding:0 9px;background:var(--sp-soft);color:var(--sp-ink);box-shadow:0 2px 0 var(--sp-line)}.sp-question-sentence .sp-question-target[class*='sp-color-']{border-color:var(--sp-state);color:var(--sp-state)}.sp-answers{display:grid;gap:8px}.sp-answers button{display:flex;align-items:center;gap:10px;font-size:13px;min-height:54px;padding:11px 13px}.sp-answers button>span:nth-child(2){flex:1;line-height:1.6}.sp-choice-index{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;background:var(--sp-soft);border:1px solid var(--sp-line);border-radius:7px;font-size:10px;font-weight:700}.sp-answers .sp-answer-correct{border-color:#39805c;background:#e9f4eb;color:#205b3d}.sp-answers .sp-answer-wrong{border-color:#a57525;background:#fff3df;color:#75460b}.sp-answers .sp-answer-correct .sp-choice-index,.sp-answers .sp-answer-wrong .sp-choice-index{color:inherit;background:transparent;border-color:currentColor}.sp-feedback{padding:15px;border:1px solid var(--sp-line);border-radius:12px;background:var(--sp-soft);margin-top:14px}.sp-feedback>strong{color:var(--sp-accent);font-size:14px}.sp-feedback p{font-size:13px;line-height:1.8;margin:8px 0}.sp-feedback small{display:block;color:var(--sp-muted);font-size:12px}.sp-result{text-align:center;padding:20px 0 8px}.sp-result h2{font-family:Georgia,serif;font-size:64px;letter-spacing:-.04em;color:var(--sp-accent);margin:15px 0 0;font-weight:400}.sp-result>p{color:var(--sp-muted);max-width:52ch;margin-inline:auto;line-height:1.8}.sp-result .sp-result-status{padding:10px;background:var(--sp-soft);border-radius:10px;color:var(--sp-ink);font-size:13px;margin-top:20px}.sp-result .sp-actions{text-align:start}.sp-status,.sp-error{padding:25px 5px;text-align:center}.sp-error h2{font-size:22px}.sp-error p{color:var(--sp-muted);margin-bottom:16px}.sp-notice,.sp-storage{padding:12px;border-radius:10px;background:var(--sp-soft);border:1px solid var(--sp-line);font-size:12px;line-height:1.7}.sp-storage{border-color:var(--sp-nasb);color:var(--sp-nasb)!important}
.dark .sentence-practice{--sp-bg:#192c33;--sp-soft:#213940;--sp-ink:#eaf2ed;--sp-muted:#bdccce;--sp-line:#476067;--sp-accent:#b5cfbe;--sp-accent-text:#17362c;--sp-gold:#e2bd70;--sp-raf:#9fdafa;--sp-nasb:#f4d18a;--sp-jarr:#8fdfb8;--sp-jazm:#d8b9ef;--sp-fixed:#c1cbd8}.dark .sp-answers .sp-answer-correct{background:#254835;border-color:#86bb98;color:#dbf3e1}.dark .sp-answers .sp-answer-wrong{background:#4b3e29;border-color:#c4a065;color:#f1ddb8}.sentence-practice[dir=rtl] h2{letter-spacing:0;line-height:1.65}.sentence-practice[dir=rtl] .sp-header p,.sentence-practice[dir=rtl] .sp-feedback p{line-height:1.95}.sentence-practice[dir=rtl] .sp-kicker{letter-spacing:0;font-size:12px}.sentence-practice[dir=rtl] .sp-steps li{font-size:13px;line-height:1.9}
@media(max-width:600px){.sentence-practice{padding:15px;border-radius:14px}.sp-skill-grid{grid-template-columns:1fr}.sentence-practice .sp-skill-card{padding:13px}.sp-header{margin-bottom:14px}.sp-steps{grid-template-columns:1fr}.sp-steps li{padding:11px 13px}.sp-steps li+li{border-inline-start:0;border-block-start:1px solid var(--sp-line)}.sp-teaching-token{flex-basis:80px}.sp-teaching-tokens{padding:13px 9px;gap:6px}.sp-teaching-token b{font-size:25px}.sp-toolbar{align-items:flex-start}.sp-toolbar>span{font-size:10px;text-align:end;max-width:45%}.sp-question-sentence{padding:14px 7px;gap:0 5px}.sp-question-sentence .sp-question-target{padding-inline:6px}.sp-actions button{flex-basis:100%}.sp-feedback{padding:12px}.sp-answers button{font-size:12px;padding:10px;gap:8px}.sp-source-line{font-size:10px}.sp-skill-copy small{font-size:12px}.sp-result{padding-top:8px}}
@media(prefers-reduced-motion:reduce){.sentence-practice *{transition:none!important;scroll-behavior:auto!important}}
.sentence-practice .sp-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-round-choice{border:1px solid var(--sp-line);border-radius:12px;background:var(--sp-soft);padding:13px 15px;margin-top:14px}.sp-round-choice>p{font-size:12px;line-height:1.8;color:var(--sp-muted);margin:0}.sp-round-choice .sp-actions{margin-top:11px}
/* v32 governor clue bar, 3-step grammar chain, passage reader & round diagnostic breakdown */
.sp-clue-bar{margin:0 0 14px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.sp-clue-bar button{font-size:12px;font-weight:650;padding:8px 13px;background:var(--sp-soft);border-style:dashed}.sp-clue-text{margin:0!important;width:100%;padding:11px 13px;border-radius:10px;border:1px solid var(--sp-line);border-inline-start:3px solid var(--sp-gold);background:var(--sp-soft);font-size:12px;line-height:1.75;color:var(--sp-ink)}
.sp-chain{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;padding:10px 12px;border-radius:10px;border:1px solid var(--sp-line);background:var(--sp-bg)}.sp-chain-node{flex:1 1 110px;display:flex;flex-direction:column;gap:2px;padding:4px 6px}.sp-chain-node small{font-size:10px;font-weight:700;color:var(--sp-muted);text-transform:uppercase}.sentence-practice[dir=rtl] .sp-chain-node small{text-transform:none;letter-spacing:0}.sp-chain-node strong{font-size:12px;line-height:1.5;color:var(--sp-ink)}.sp-chain-node strong[lang=ar]{font-family:var(--font-arabic,'Amiri','Noto Naskh Arabic',serif);font-size:20px;line-height:1.6}.sp-chain-arrow{color:var(--sp-gold);font-weight:700}
.sp-kind-breakdown{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0 6px}.sp-kind-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;border:1px solid var(--sp-line);background:var(--sp-soft);font-size:12px;color:var(--sp-ink)}.sp-kind-pill.is-ok{border-color:var(--sp-jarr);color:var(--sp-jarr)}.sp-kind-pill.is-miss{border-color:var(--sp-nasb);color:var(--sp-nasb)}
[data-sp-passage-reader]{margin:10px 0 4px}


/* /foundation-path.css */
/* Compact bilingual learning route. No colour is used without a text label. */
.foundation-path{--fp-paper:#fffefa;--fp-ink:#183b34;--fp-muted:#56675e;--fp-line:#d8e1d7;--fp-soft:#f2f5ee;--fp-accent:#225b4b;--fp-gold:#a98232;--fp-panel:#faf8f2;--fp-blue:#1e607e;--fp-correct:#135c46;--fp-wrong:#934434;color:var(--fp-ink);max-width:1180px;margin:auto;padding:8px 0 30px;font-size:15px;line-height:1.6}
.dark .foundation-path,[data-theme=dark] .foundation-path{--fp-paper:#182321;--fp-ink:#eff5ed;--fp-muted:#bccbc3;--fp-line:#3c5048;--fp-soft:#202f29;--fp-accent:#98d4bb;--fp-gold:#e1c077;--fp-panel:#141e1b;--fp-blue:#9dd6eb;--fp-correct:#9cdec1;--fp-wrong:#ffc0ad}
.foundation-path *{box-sizing:border-box}.foundation-path button,.foundation-path a{touch-action:manipulation}.foundation-path button{font:inherit;cursor:pointer}.foundation-path button:disabled{cursor:default}.foundation-path :is(button,a,summary):focus-visible{outline:3px solid var(--fp-gold);outline-offset:4px}.foundation-path [tabindex="-1"]:focus{outline:none}.foundation-path h2,.foundation-path h3,.foundation-path h4,.foundation-path p{margin:0}.foundation-path h2{font-size:clamp(27px,4vw,38px);line-height:1.2;letter-spacing:-.035em;font-weight:650}.foundation-path h3{font-size:20px;line-height:1.4}.foundation-path h4{font-size:17px;line-height:1.5}.foundation-path[lang=ar]{font-family:var(--font-arabic-ui,"Noto Naskh Arabic"),Tahoma,Arial,sans-serif}.foundation-path[lang=ar] :is(h2,h3,h4){letter-spacing:0;line-height:1.6}.foundation-path small{font-size:12px;line-height:1.5}.foundation-path a{color:inherit;text-underline-offset:3px}.fp-eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;color:var(--fp-accent);display:block;margin-bottom:8px}.foundation-path[lang=ar] .fp-eyebrow{letter-spacing:0;font-size:13px}.fp-head{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:25px 0 30px}.fp-head>div:first-child{max-width:650px}.fp-head p{max-width:540px;color:var(--fp-muted);margin-top:12px}.fp-progress{flex:none;border-inline-start:2px solid var(--fp-gold);padding-inline-start:22px;display:flex;flex-direction:column;gap:3px;max-width:230px}.fp-progress>b{font-size:30px;line-height:1.2;color:var(--fp-accent);font-variant-numeric:tabular-nums}.fp-progress>b span{font-size:18px;color:var(--fp-muted);font-weight:450}.fp-progress>span{font-size:12px;font-weight:700}.fp-progress small{color:var(--fp-muted);font-size:11px}.fp-milestones{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 24px}.fp-milestone{display:flex;align-items:center;gap:11px;background:var(--fp-paper);border:1px solid var(--fp-line);border-radius:12px;min-height:84px;color:var(--fp-muted);padding:14px 12px;text-align:start;transition:border-color .15s,background .15s}.fp-milestone.is-active{border-color:var(--fp-accent);background:var(--fp-soft);color:var(--fp-ink);box-shadow:inset 0 -3px 0 var(--fp-accent)}.fp-milestone-number{display:flex;width:29px;height:29px;align-items:center;justify-content:center;border:1px solid var(--fp-line);border-radius:50%;font-size:12px;flex:none;font-variant-numeric:tabular-nums}.is-active>.fp-milestone-number{background:var(--fp-accent);border-color:var(--fp-accent);color:var(--fp-paper)}.fp-milestone b{display:block;font-size:13px;line-height:1.4}.fp-milestone small{display:block;font-size:11px;margin-top:3px}.fp-route-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr);gap:24px;align-items:start}.fp-route-panel{min-width:0;padding:23px;background:var(--fp-paper);border:1px solid var(--fp-line);border-radius:18px}.fp-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.fp-panel-head .fp-eyebrow{margin-bottom:4px}.fp-count{font-size:11px;background:var(--fp-soft);border-radius:20px;padding:4px 9px;white-space:nowrap;color:var(--fp-muted)}.fp-small{font-size:12px;color:var(--fp-muted);line-height:1.6}.fp-route-panel>.fp-small{margin-top:7px}.fp-next{padding:18px 20px;margin:20px 0 8px;border-radius:13px;background:var(--fp-soft);border:1px solid var(--fp-line);position:relative}.fp-next .fp-eyebrow{font-size:10px;margin-bottom:4px}.fp-next strong{font-size:19px;display:block;line-height:1.4}.fp-next p{color:var(--fp-muted);font-size:13px;margin:3px 0 12px}.fp-action{border:1px solid var(--fp-line);background:var(--fp-paper);color:var(--fp-ink);padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:9px;font-size:13px!important;font-weight:650;text-decoration:none!important;white-space:normal;text-align:center;line-height:1.3}.fp-action:hover{border-color:var(--fp-accent);background:var(--fp-soft)}.fp-action.fp-primary{background:var(--fp-accent);border-color:var(--fp-accent);color:var(--fp-paper)}.fp-action.fp-primary:hover{filter:brightness(1.08)}.fp-steps{list-style:none;padding:0;margin:0}.fp-steps li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid var(--fp-line)}.fp-steps li:last-child{border-bottom:0}.fp-step-num{font-size:12px;color:var(--fp-muted);align-self:start;padding-top:2px;font-variant-numeric:tabular-nums}.fp-steps li>div>b{display:block;font-size:14px;line-height:1.5}.fp-steps li>div>small{display:block;color:var(--fp-muted);margin:2px 0 3px}.fp-steps .fp-action{font-size:12px!important;padding-inline:10px}.fp-type,.fp-status{display:inline-block;font-size:10px;line-height:1.4;letter-spacing:.02em;color:var(--fp-muted);padding:3px 7px;background:var(--fp-soft);border-radius:5px}.fp-status-checked{color:var(--fp-correct);border:1px solid var(--fp-line)}.fp-status-rehearsed{color:var(--fp-blue)}.fp-expand{display:block;min-height:44px;width:100%;border:1px dashed var(--fp-line);background:var(--fp-soft);border-radius:8px;color:var(--fp-accent);font-size:13px!important;padding:10px;margin-top:10px}.fp-bridge{padding:22px;background:var(--fp-panel);border:1px solid var(--fp-line);border-radius:18px}.fp-reason-cards{display:grid;gap:10px;margin:15px 0}.fp-reason-cards>button{display:grid;grid-template-columns:30px 1fr;background:var(--fp-paper);border:1px solid var(--fp-line);border-inline-start:3px solid var(--fp-blue);border-radius:10px;text-align:start;color:var(--fp-ink);padding:13px 14px;min-height:76px;gap:1px 8px}.fp-reason-cards>button:nth-child(2){border-inline-start-color:var(--fp-gold)}.fp-reason-cards>button:nth-child(3){border-inline-start-color:var(--fp-accent)}.fp-reason-cards>button>span{grid-row:1/3;color:var(--fp-accent);font-size:21px}.fp-reason-cards b{font-size:14px}.fp-reason-cards small{color:var(--fp-muted)}.fp-honest{font-size:12px;line-height:1.7;margin-top:20px!important;padding-top:17px;border-top:1px solid var(--fp-line);color:var(--fp-muted)}.fp-link{background:transparent;border:0;padding:10px 0;min-height:44px;color:var(--fp-accent);font-size:13px!important;text-decoration:underline;text-underline-offset:4px;text-align:start}.fp-back{margin:0 0 12px}.fp-self{display:block;min-height:44px;font-size:12px!important;border:0;background:transparent;color:var(--fp-accent);text-decoration:underline;text-underline-offset:3px;text-align:start;padding:8px 0}.fp-micro-head{border-bottom:1px solid var(--fp-line);padding-bottom:20px;margin-bottom:20px}.fp-micro-head h2{font-size:28px;margin-bottom:8px}.fp-goal{max-width:800px;font-size:16px;color:var(--fp-muted)}.fp-diagram{padding:18px 20px;border:1px solid var(--fp-line);background:var(--fp-soft);border-radius:15px;margin:20px 0}.fp-diagram figcaption{font-size:11px;font-weight:700;color:var(--fp-accent);margin-bottom:12px}.fp-diagram>div{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;justify-content:center}.fp-diagram-node{flex:1 1 100px;min-width:0;display:flex;flex-direction:column;align-items:center;background:var(--fp-paper);border:1px solid var(--fp-line);border-radius:10px;padding:10px 8px;gap:6px;text-align:center}.fp-diagram-node b{font-family:Amiri,"Noto Naskh Arabic",serif;line-height:1.7;font-size:34px;color:var(--fp-ink);font-weight:500;overflow-wrap:anywhere}.fp-diagram-rules .fp-diagram-node b{font-size:24px;max-width:240px;line-height:1.8}.fp-diagram-node span{font-size:12px;color:var(--fp-muted)}.fp-teaching-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.fp-teaching-cards article{background:var(--fp-paper);border:1px solid var(--fp-line);border-radius:13px;padding:20px}.fp-card-number{display:flex;width:26px;height:26px;align-items:center;justify-content:center;border:1px solid var(--fp-gold);border-radius:50%;font-size:12px;color:var(--fp-accent);margin-bottom:12px}.fp-teaching-cards h3{font-size:18px;margin-bottom:9px}.fp-teaching-cards p{color:var(--fp-muted);font-size:14px;line-height:1.8}.fp-listen{display:flex;gap:17px;padding:21px;margin:26px 0 0;border-radius:13px;background:var(--fp-soft);border:1px solid var(--fp-line)}.fp-listen-icon{font-size:31px;color:var(--fp-accent);line-height:1.3}.fp-listen>div{min-width:0}.fp-listen h4{margin-bottom:5px}.fp-listen p{font-size:14px;color:var(--fp-muted);max-width:750px;margin-bottom:12px}.fp-listen small{display:block;color:var(--fp-muted);max-width:700px;margin-top:9px}.fp-listen bdi{color:var(--fp-accent);font-size:13px;font-variant-numeric:tabular-nums}.fp-sources{margin:18px 0 0;color:var(--fp-muted);font-size:12px}.fp-sources summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 4px;font-weight:650;color:var(--fp-accent)}.fp-sources p{padding:8px 0;max-width:850px}.fp-sources small{display:block;margin-top:4px}.fp-quiz{max-width:800px;margin:20px auto;background:var(--fp-paper);padding:24px;border:1px solid var(--fp-line);border-radius:15px}.fp-quiz-head{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:var(--fp-muted)}.fp-quiz-head b{color:var(--fp-accent)}.fp-quiz progress{display:block;width:100%;height:5px;border:0;border-radius:20px;overflow:hidden;margin:15px 0 24px;background:var(--fp-soft);accent-color:var(--fp-accent)}.fp-quiz progress::-webkit-progress-bar{background:var(--fp-soft)}.fp-quiz progress::-webkit-progress-value{background:var(--fp-accent)}.fp-quiz h3{font-size:20px;max-width:690px}.fp-quiz .fp-small{margin-top:8px}.fp-answers{display:grid;gap:10px;margin:23px 0 16px}.fp-answers button{display:flex;align-items:center;gap:12px;width:100%;padding:15px;background:var(--fp-panel);border:1px solid var(--fp-line);border-radius:10px;color:var(--fp-ink);font-size:15px;text-align:start;min-height:56px}.fp-answers button:not(:disabled):hover{border-color:var(--fp-accent);background:var(--fp-soft)}.fp-answers button>span{display:flex;align-items:center;justify-content:center;border:1px solid var(--fp-line);border-radius:5px;min-width:26px;min-height:26px;font-size:12px;flex:none}.fp-answers button>b{margin-inline-start:auto}.fp-answers button.is-correct{border-color:var(--fp-correct);color:var(--fp-correct);background:var(--fp-soft)}.fp-answers button.is-wrong{border-color:var(--fp-wrong);color:var(--fp-wrong)}.fp-feedback{padding:17px;border:1px solid var(--fp-line);border-inline-start:3px solid var(--fp-correct);border-radius:9px;background:var(--fp-soft);font-size:14px}.fp-feedback.is-wrong{border-inline-start-color:var(--fp-wrong)}.fp-feedback>b{color:var(--fp-correct)}.fp-feedback.is-wrong>b{color:var(--fp-wrong)}.fp-feedback p{margin:6px 0 14px}.fp-result{text-align:center;padding:30px 20px;border:1px solid var(--fp-line);background:var(--fp-paper);border-radius:14px}.fp-result>span{color:var(--fp-correct);display:block;font-size:35px;margin-bottom:10px}.fp-result p{max-width:560px;color:var(--fp-muted);margin:10px auto 20px}.fp-result .fp-action{margin:4px}.fp-notice{padding:14px;border:1px solid var(--fp-line);border-radius:9px;font-size:13px;color:var(--fp-muted);background:var(--fp-soft);margin:0 0 18px}.fp-notice .fp-action{margin-top:10px}
@media(max-width:900px){.fp-route-grid{grid-template-columns:minmax(0,1fr)}.fp-bridge{padding:20px}.fp-reason-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.fp-reason-cards>button{grid-template-columns:1fr;gap:5px}.fp-reason-cards>button>span{grid-row:auto}.fp-milestone{padding:11px;gap:8px}.fp-milestone small{display:none}.fp-milestone b{font-size:12px}.fp-head{gap:20px}.fp-progress{max-width:180px}}
@media(max-width:600px){.foundation-path{font-size:14px;padding-top:0}.fp-head{padding:18px 0 22px;align-items:start;gap:18px;flex-wrap:wrap}.fp-head h2{font-size:30px;max-width:300px}.fp-head p{font-size:14px;margin-top:10px}.fp-progress{max-width:none;flex-direction:row;align-items:center;gap:9px;width:100%;padding-inline-start:12px}.fp-progress>b{font-size:22px}.fp-progress>b span{font-size:14px}.fp-progress>span{font-size:11px}.fp-progress>small{display:none}.fp-milestones{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}.fp-milestone{min-height:67px;padding:10px}.fp-milestone b{font-size:12px}.fp-milestone-number{height:25px;width:25px}.fp-milestone small{display:block;font-size:10px}.fp-route-panel{padding:17px;border-radius:14px}.fp-panel-head h3{font-size:19px}.fp-next{padding:16px;margin-top:16px}.fp-next strong{font-size:18px}.fp-next .fp-action{width:100%}.fp-steps li{gap:9px;grid-template-columns:18px minmax(0,1fr) auto;padding:16px 0}.fp-steps li>div>b{font-size:13px}.fp-steps li>div>small{font-size:11px}.fp-steps .fp-action{padding-inline:8px;min-width:58px}.fp-steps .fp-action>span{display:none}.fp-count{font-size:10px;padding:3px 7px}.fp-bridge{padding:17px}.fp-reason-cards{grid-template-columns:1fr;gap:8px}.fp-reason-cards>button{grid-template-columns:28px 1fr;min-height:67px;padding:11px}.fp-reason-cards>button>span{grid-row:1/3}.fp-reason-cards b{font-size:13px}.fp-reason-cards small{font-size:12px}.fp-teaching-cards{grid-template-columns:1fr;gap:12px}.fp-teaching-cards article{padding:17px}.fp-teaching-cards h3{font-size:17px}.fp-teaching-cards p{font-size:14px}.fp-diagram{padding:15px 12px}.fp-diagram>div{gap:7px}.fp-diagram-node{flex-basis:42%;padding:8px 6px}.fp-diagram-letters .fp-diagram-node{flex-basis:44px}.fp-diagram-node b{font-size:31px}.fp-diagram-node span{font-size:11px}.fp-micro-head h2{font-size:26px}.fp-quiz{padding:17px}.fp-quiz h3{font-size:19px}.fp-quiz-head{font-size:11px}.fp-answers button{font-size:14px;line-height:1.7;padding:12px}.fp-listen{gap:10px;padding:17px}.fp-listen-icon{font-size:26px}.fp-listen h4{font-size:16px}.fp-listen .fp-action{width:100%}.fp-goal{font-size:15px}.fp-honest{font-size:12px}}
@media(prefers-reduced-motion:reduce){.foundation-path *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.fp-status-review{color:var(--fp-wrong);border:1px solid var(--fp-wrong)}.fp-status-inprogress{color:var(--fp-blue);border:1px solid var(--fp-line)}


/* /word-learning-links.css */
/* Compact lesson bridge. Source words remain Quran text; the steps explain the route. */
.word-learning-links{--wll-ink:#213c3c;--wll-muted:#536c68;--wll-border:#c8d8d0;--wll-paper:#edf4ed;--wll-accent:#22594e;--wll-button:#fffef9;margin:14px 0;border:1px solid var(--wll-border);border-radius:14px;background:var(--wll-paper);color:var(--wll-ink);font-family:var(--font-ui,Arial,sans-serif);overflow:hidden}
.wll-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 0;line-height:1.5}.wll-heading strong{font-size:12px}.wll-heading>span{font-size:10px;color:var(--wll-muted);text-align:end}
.wll-steps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);list-style:none;margin:0;padding:12px 14px 10px;gap:10px}.wll-steps li{min-width:0;border-inline-start:2px solid var(--wll-border);padding-inline-start:8px}.wll-steps small{display:block;margin-bottom:5px;color:var(--wll-muted);font-size:10px;line-height:1.5}.wll-steps small>span{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border:1px solid var(--wll-border);border-radius:50%;font-size:9px;margin-inline-end:3px}.wll-steps li>span{display:block;font-size:12px;font-weight:650;line-height:1.65;overflow-wrap:anywhere}.wll-word{display:block;font:400 25px/1.9 var(--arabic,Amiri,serif);color:var(--wll-ink);overflow-wrap:anywhere;text-align:start}.wll-reference{display:block;color:var(--wll-muted);font-size:10px;line-height:1.5;direction:ltr;unicode-bidi:isolate}.wll-reason{font-size:12px;line-height:1.75;margin:0 14px 12px;overflow-wrap:anywhere}
.wll-actions{display:flex;gap:8px;padding:0 14px}.wll-actions button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;border:1px solid var(--wll-accent);border-radius:9px;padding:8px 10px;font:600 12px/1.5 var(--font-ui,Arial,sans-serif);cursor:pointer}.wll-practice{flex:1 1 160px;background:var(--wll-accent);color:var(--wll-button)}.wll-explain{flex:0 1 110px;background:transparent;color:var(--wll-accent)}.wll-practice:hover{filter:brightness(1.08)}.wll-explain:hover{background:#ffffff60}.wll-foundation{display:block;min-height:44px;background:transparent;border:0;padding:9px 14px;font:500 11px/1.6 var(--font-ui,Arial,sans-serif);text-align:start;color:var(--wll-accent);text-decoration:underline;text-underline-offset:3px;cursor:pointer}.word-learning-links :focus-visible{outline:3px solid #b58a28;outline-offset:3px}
.wll-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;margin-top:9px;border-top:1px solid var(--wll-border)}.wll-provenance{min-width:0}.wll-provenance[open]{grid-column:1/-1}.wll-provenance summary{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:44px;padding:8px 14px;box-sizing:border-box;font-size:11px;color:var(--wll-muted);cursor:pointer;list-style:none}.wll-provenance summary::after{content:'+';font-size:16px}.wll-provenance[open] summary::after{content:'−'}.wll-provenance p{margin:0;padding:0 14px 12px;font-size:11px;line-height:1.8;color:var(--wll-muted)}
.dark .word-learning-links{--wll-ink:#eef6f0;--wll-muted:#b9cec3;--wll-border:#466457;--wll-paper:#21392f;--wll-accent:#bce1c6;--wll-button:#142d23}.dark .wll-explain:hover{background:#ffffff0d}.word-learning-links[dir=rtl] .wll-heading strong,.word-learning-links[dir=rtl] .wll-steps li>span{font-size:13px}.word-learning-links[dir=rtl] .wll-reason{font-size:13px}.word-learning-links[dir=rtl] .wll-actions button,.word-learning-links[dir=rtl] .wll-foundation{font-size:13px}.word-learning-links[dir=rtl] .wll-word{text-align:start}
@media(max-width:380px){.wll-heading,.wll-actions{padding-inline:11px}.wll-heading{align-items:flex-start}.wll-heading>span{max-width:74px;flex-shrink:0}.wll-steps{gap:6px;padding-inline:11px}.wll-steps li{padding-inline-start:6px}.wll-steps li>span{font-size:11px}.wll-word{font-size:23px}.wll-reason{margin-inline:11px}.wll-actions button{font-size:11px;padding-inline:8px}.wll-actions{gap:6px}.wll-explain{flex-basis:80px}.word-learning-links[dir=rtl] .wll-actions button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.word-learning-links *{transition:none!important}}


/* /practice-help.css */
.practice-help-dialog{box-sizing:border-box;width:min(1080px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid var(--line,#dce4e0);border-radius:20px;background:var(--panel,#fff);color:var(--ink,#172d28);box-shadow:0 24px 90px #0006;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;font-family:var(--font-ui,Inter,sans-serif)}
.practice-help-dialog::backdrop{background:#06131bbc;backdrop-filter:blur(4px)}
.practice-help-dialog *{box-sizing:border-box;min-width:0}
.ph-chrome{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 15px;border-bottom:1px solid var(--line,#dce4e0);background:var(--panel,#fff)}
.ph-chrome button,.ph-status button{min-height:44px;border:1px solid var(--line,#dce4e0);border-radius:11px;background:var(--panel,#fff);color:var(--ink,#172d28);padding:9px 13px;font:inherit;font-weight:700;cursor:pointer}
.ph-chrome .ph-close{min-width:44px;padding:4px;font-size:25px;font-weight:400}
.ph-body{padding:16px;display:grid;gap:16px}
.ph-context{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 16px;border:1px solid var(--line,#dce4e0);border-radius:14px;background:var(--light,#f4f7f5)}
.ph-context>div{display:grid;gap:5px;font-size:12px;line-height:1.55}
.ph-context strong{font-size:14px}.ph-context span{opacity:.82}.ph-context bdi{width:fit-content;font-family:ui-monospace,monospace;font-size:12px}
.ph-context>p{margin:0;font-family:var(--arabic,Amiri,serif);font-size:32px;line-height:1.75;overflow-wrap:anywhere;white-space:normal;color:var(--ink,#172d28);text-align:center}
.ph-status{margin:0;padding:14px;border:1px solid var(--line,#dce4e0);border-radius:12px;font-size:14px;line-height:1.7}
.ph-status button{margin-block-start:8px}
.practice-help-dialog button:focus-visible,.practice-help-dialog a:focus-visible{outline:3px solid #428be7;outline-offset:3px}
@media(max-width:560px){.practice-help-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);border-radius:16px}.ph-chrome{padding:7px 9px;gap:6px}.ph-body{padding:10px;gap:12px}.ph-context{padding:10px 12px;gap:10px}.ph-context>div{font-size:11px}.ph-context>p{font-size:29px}.ph-context strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.practice-help-dialog *{scroll-behavior:auto!important}}


/* /ending-lab.css */
/* Compact job → state → marker teaching diagrams, with independent RTL copy. */
.ending-lab{--el-bg:#fffdf8;--el-soft:#f2f3ed;--el-ink:#20343b;--el-muted:#56686d;--el-line:#ccd6d5;--el-accent:#28594e;--el-accent-text:#fff;--el-raf:#0e6997;--el-nasb:#895400;--el-jarr:#076b46;--el-jazm:#7b369c;max-width:760px;margin-inline:auto;padding:20px;border:1px solid var(--el-line);border-radius:18px;background:var(--el-bg);color:var(--el-ink);font-family:var(--font-ui,Inter,Arial,sans-serif)}
.ending-lab *{box-sizing:border-box}.ending-lab button,.ending-lab select{font:inherit}.ending-lab button{cursor:pointer}.ending-lab button:disabled{cursor:default}.ending-lab :focus-visible,.el-launcher:focus-visible{outline:3px solid #aa7a22;outline-offset:3px}.ending-lab h2,.ending-lab h3,.ending-lab p{color:inherit}.el-header h2{font-size:24px;line-height:1.3;margin:0 0 7px;letter-spacing:-.025em}.el-header p{font-size:14px;line-height:1.7;margin:0 0 16px;color:var(--el-muted)}.el-switch{display:flex;gap:6px;margin-bottom:12px}.el-switch button{flex:1;min-height:44px;background:var(--el-soft);color:var(--el-ink);border:1px solid var(--el-line);border-radius:9px;padding:8px 12px;font-size:13px;font-weight:650}.el-switch button[aria-pressed=true]{background:var(--el-accent);color:var(--el-accent-text);border-color:var(--el-accent)}.el-family{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--el-muted);font-weight:650;margin-bottom:13px}.el-family select{flex:1;min-width:0;min-height:44px;max-width:100%;padding:9px;border:1px solid var(--el-line);border-radius:9px;background:var(--el-bg);color:var(--el-ink);font-size:13px}.el-cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.el-cases button{min-height:56px;min-width:0;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;border:1px solid var(--el-line);border-radius:10px;background:var(--el-soft);color:var(--el-ink);padding:8px 5px}.el-cases strong{font-size:14px;color:var(--el-state)}.el-cases span{font-size:11px;line-height:1.5}.el-cases button[aria-pressed=true]{border-color:var(--el-state);box-shadow:inset 0 -3px var(--el-state)}.el-state-raf{--el-state:var(--el-raf)}.el-state-nasb{--el-state:var(--el-nasb)}.el-state-jarr{--el-state:var(--el-jarr)}.el-state-jazm{--el-state:var(--el-jazm)}.el-key{font-size:13px;line-height:1.7;color:var(--el-muted)!important;margin:12px 0 15px}.el-path{display:grid;grid-template-columns:1.3fr .8fr 1fr;list-style:none;margin:0;padding:0;border:1px solid var(--el-line);border-radius:10px;overflow:hidden;background:var(--el-soft)}.el-path li{padding:11px 12px;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;position:relative}.el-path li+li{border-inline-start:1px solid var(--el-line)}.el-path small{font-size:10px;color:var(--el-muted);line-height:1.5}.el-path strong{font-size:12px;line-height:1.6;color:var(--el-state,var(--el-ink));font-weight:650}.el-example{text-align:center;margin:15px 0}.el-caption{font-size:10px;line-height:1.5;color:var(--el-muted)}.el-sentence{font-family:var(--arabic,Amiri,serif);font-size:33px;line-height:1.9;margin:5px 0 0;overflow-wrap:anywhere;word-break:normal;color:var(--el-ink)}.el-target{white-space:nowrap}.el-target mark{background:transparent;color:var(--el-state);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;text-decoration-color:var(--el-state);border-radius:2px}.el-tail{color:var(--el-muted)}.el-translation{font-size:12px;line-height:1.7;margin:0;color:var(--el-muted)!important}.el-sign-note{display:flex;align-items:center;gap:14px;padding:13px 14px;border:1px solid var(--el-line);border-inline-start:3px solid var(--el-state);background:var(--el-soft);border-radius:9px;margin:13px 0}.el-glyph{font-family:Arial,Tahoma,sans-serif;font-size:32px;line-height:1.4;white-space:nowrap;color:var(--el-state,var(--el-ink));min-width:42px;text-align:center}.el-sign-note strong{font-size:12px;color:var(--el-state)}.el-sign-note p{font-size:13px;line-height:1.75;margin:4px 0 0}.el-actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 0}.el-actions button{min-height:44px;padding:10px 14px;background:var(--el-soft);border:1px solid var(--el-line);color:var(--el-ink);border-radius:9px;font-size:12px;font-weight:650}.el-actions .el-primary{background:var(--el-accent);color:var(--el-accent-text);border-color:var(--el-accent)}.el-bounds{margin-top:14px;border-top:1px solid var(--el-line);font-size:12px;line-height:1.8}.el-bounds summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:650;gap:12px}.el-bounds summary:after{content:'+'}.el-bounds[open] summary:after{content:'−'}.el-bounds p{margin:0 0 10px;color:var(--el-muted)}.el-bounds a{display:inline-flex;min-height:44px;align-items:center;color:var(--el-accent);text-underline-offset:4px}.el-quiz h3{font-size:18px;line-height:1.5;margin:17px 0 7px}.el-quiz>p{font-size:12px;line-height:1.7;margin:0 0 15px;color:var(--el-muted)}.el-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.el-answers button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:92px;min-width:0;padding:12px 8px;background:var(--el-soft);border:1px solid var(--el-line);border-radius:9px;color:var(--el-ink);font-size:12px;line-height:1.6;text-align:center}.el-answers button:disabled{opacity:1}.el-answers .el-correct{background:#e4f1e6;border-color:#39784b;color:#174829}.el-answers .el-wrong{background:#f8ecda;border-color:#ad7c22;color:#6b430b}.el-feedback{margin-top:14px;padding:12px;border-inline-start:3px solid var(--el-accent);background:var(--el-soft);border-radius:7px}.el-feedback strong{font-size:14px}.el-feedback p{font-size:13px;line-height:1.8;margin:6px 0 0}.el-masked{display:inline-block;min-width:110px;color:var(--el-muted);font-size:25px;letter-spacing:1px}.el-launcher{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:64px;text-align:start;width:100%;padding:12px 14px;border:1px solid #b8cbc4;border-radius:12px;background:#eef4ef;color:#244f44;cursor:pointer;font:inherit}.el-launcher span{font-size:9px;letter-spacing:.08em}.el-launcher strong{font-size:13px;line-height:1.6}
.dark .ending-lab{--el-bg:#192c33;--el-soft:#213940;--el-ink:#eaf2ed;--el-muted:#bdccce;--el-line:#476067;--el-accent:#b5cfbe;--el-accent-text:#17362c;--el-raf:#9fdafa;--el-nasb:#f4d18a;--el-jarr:#8fdfb8;--el-jazm:#d8b9ef}.dark .el-answers .el-correct{background:#254835;border-color:#86bb98;color:#dbf3e1}.dark .el-answers .el-wrong{background:#4b3e29;border-color:#c4a065;color:#f1ddb8}.dark .el-launcher{background:#263e37;border-color:#5a7768;color:#e0ece0}
.ending-lab[dir=rtl] .el-header h2{letter-spacing:0;line-height:1.55}.ending-lab[dir=rtl] .el-path strong,.ending-lab[dir=rtl] .el-sign-note p,.ending-lab[dir=rtl] .el-family select{font-size:14px}.ending-lab[dir=rtl] .el-cases span{font-size:12px}.ending-lab[dir=rtl] .el-key{font-size:14px;line-height:1.9}
@media(max-width:540px){.ending-lab{padding:15px;border-radius:14px}.el-header h2{font-size:22px}.el-header p{font-size:13px}.el-family{flex-direction:column;align-items:stretch;gap:5px}.el-family select{width:100%;font-size:12px}.el-path{grid-template-columns:1.2fr .8fr 1fr}.el-path li{padding:9px 7px}.el-path strong{font-size:11px}.el-path small{font-size:9px}.el-sentence{font-size:29px;line-height:1.9}.el-sign-note{gap:10px;padding:10px}.el-sign-note p{font-size:13px}.el-sign-note .el-glyph{font-size:29px;min-width:35px}.el-answers{gap:6px}.el-answers button{font-size:11px;padding:10px 5px}.el-answers .el-glyph{font-size:29px}.el-cases span{font-size:10px}.el-cases strong{font-size:13px}.ending-lab[dir=rtl] .el-path strong{font-size:12px}.ending-lab[dir=rtl] .el-sign-note p{font-size:13px}.el-actions .el-primary{width:100%}}
@media(prefers-reduced-motion:reduce){.ending-lab *{scroll-behavior:auto!important;transition:none!important}}
/* Practice asks for the cause before revealing its ending. */
.el-practice-context{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 0;color:var(--el-ink,#24343c);font-size:13px}.el-practice-context>span{padding:4px 9px;border:1px solid var(--el-line,#cbd7d2);border-radius:7px;font-size:11px}.el-step{font-size:12px!important;font-weight:750;letter-spacing:.02em;color:var(--el-accent,#226353)!important;margin:0 0 7px!important}.el-job-clue{padding:12px;border-inline-start:3px solid var(--el-accent,#226353);background:var(--el-soft,#eaf1ed);font-size:14px;line-height:1.8}.el-quiz .el-answers button[data-el-state-answer]{min-height:55px;font-size:16px}.ending-help-dialog .eh-linked-word{display:flex;align-items:center;gap:16px;padding:3px 0 9px}.ending-help-dialog .eh-linked-word .eh-original-word{margin:0;font-size:30px;white-space:nowrap}.eh-linked-word>div{display:flex;flex-direction:column;gap:3px;min-width:0}.eh-linked-word>div>span{font-size:11px;line-height:1.7;opacity:.8}.eh-linked-word strong{font-size:13px;line-height:1.7}.eh-context-details>summary{min-height:44px;display:flex;align-items:center;gap:9px;font-size:12px;cursor:pointer;color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}.eh-context-details>summary:before{content:'+'}.eh-context-details[open]>summary:before{content:'−'}.ending-help-dialog .eh-context{padding-bottom:9px;margin-bottom:8px;border-bottom:1px solid #819b913c}.ending-help-dialog .eh-parallel-note{margin:0 0 12px;padding:6px 10px;font-size:11px;line-height:1.7}.eh-context-details>summary:focus-visible{outline:3px solid #b88829;outline-offset:2px}@media(max-width:420px){.ending-help-dialog .eh-linked-word{gap:12px}.ending-help-dialog .eh-linked-word .eh-original-word{font-size:28px}.el-practice-context{font-size:12px}}
.el-target{font-synthesis:none;letter-spacing:normal}.ending-lab[dir=rtl] .el-step{letter-spacing:normal}


/* /word-ending-guide.css */
/* A short explanation beside the selected corpus word; source detail is opt-in. */
.word-ending-guide{--weg-ink:#20343b;--weg-muted:#52676d;--weg-line:#cbd8d6;--weg-paper:#f2f6f1;--weg-accent:#275f60;margin:16px 0;border:1px solid var(--weg-line);border-radius:14px;background:var(--weg-paper);color:var(--weg-ink);font-family:var(--font-ui,Arial,sans-serif);overflow:hidden}
.weg-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px 0}.weg-heading strong{font-size:13px;line-height:1.6}.weg-heading>span{font-size:10px;color:var(--weg-muted);line-height:1.6}
.weg-overview{display:grid;grid-template-columns:minmax(72px,max-content) minmax(0,1fr);gap:14px;align-items:center;padding:14px}.weg-whole-word{display:block;max-width:100%;font:400 31px/1.9 var(--arabic,Amiri,serif);letter-spacing:normal;font-synthesis:none;color:var(--weg-ink);text-align:center;white-space:nowrap}.weg-overview p{font-size:13px;line-height:1.85;margin:0;overflow-wrap:break-word}
.weg-facts{display:flex;gap:18px;flex-wrap:wrap;margin:0 14px;padding:11px 0;border-block:1px solid var(--weg-line)}.weg-facts>div{flex:1 1 130px;min-width:0}.weg-facts dt{font-size:11px;line-height:1.6;color:var(--weg-muted);margin-bottom:3px}.weg-facts dd{margin:0;font-size:13px;line-height:1.8;font-weight:650}.weg-facts button,.weg-help{min-height:44px;border:0;background:transparent;padding:0;color:var(--weg-accent);font:inherit;text-align:start;cursor:pointer}.weg-facts button{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}.weg-help{font-size:12px}.weg-facts button i,.weg-help i{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font-size:10px;font-style:normal;margin-inline-start:3px}
.weg-marker-explanation{margin:12px 14px;font-size:13px;line-height:1.85}.weg-details{border-top:1px solid var(--weg-line)}.weg-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 14px;color:var(--weg-accent);font-size:12px;font-weight:700;line-height:1.65;cursor:pointer}.weg-details>summary:after{content:'+';font-size:18px}.weg-details[open]>summary:after{content:'−'}.weg-details>p{font-size:13px;line-height:1.85;margin:10px 14px;color:var(--weg-ink)}.weg-details>.weg-provenance{font-size:11px;color:var(--weg-muted)}.weg-state-explanation{border-inline-start:3px solid var(--weg-accent);padding-inline-start:10px}
.weg-parts{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:16px 14px;padding:10px;border:1px dashed var(--weg-line);border-radius:10px}.weg-part{display:flex;align-items:center;flex-direction:column;gap:4px;padding:5px 9px;border:1px solid transparent;border-radius:8px;min-width:40px}.weg-part-selected{border-color:var(--weg-line);background:#ffffff60}.weg-part b{font:400 28px/1.7 var(--arabic,Amiri,serif);font-synthesis:none;letter-spacing:normal;color:var(--weg-ink);white-space:nowrap}.weg-part small{font-size:10px;line-height:1.6;color:var(--weg-muted)}.weg-boundary{padding:10px;border:1px solid var(--weg-line);border-radius:8px}.weg-correction{border-inline-start:3px solid #a86a29;padding-inline-start:10px}
.weg-actions{display:flex;gap:8px;flex-wrap:wrap;padding:4px 14px 14px}.weg-actions button{display:flex;align-items:center;justify-content:center;min-height:44px;flex:1 1 180px;padding:9px 12px;border:1px solid var(--weg-accent);border-radius:9px;background:transparent;color:var(--weg-accent);font-size:12px;line-height:1.6;font-family:inherit;cursor:pointer}.weg-actions button:first-child{background:var(--weg-accent);color:var(--weg-paper)}.word-ending-guide :focus-visible{outline:3px solid #b88829;outline-offset:3px}
.dark .word-ending-guide{--weg-ink:#edf2ef;--weg-muted:#b7c8ca;--weg-line:#4b666a;--weg-paper:#20363b;--weg-accent:#bcddcb}.dark .weg-part-selected{background:#102b3166}.word-ending-guide[dir=rtl] .weg-overview p,.word-ending-guide[dir=rtl] .weg-marker-explanation,.word-ending-guide[dir=rtl] .weg-details>p{font-size:14px}.word-ending-guide[dir=rtl] .weg-details>.weg-provenance{font-size:12px}
@media(max-width:420px){.weg-heading{align-items:flex-start}.weg-heading>span{max-width:95px;text-align:end}.weg-overview{grid-template-columns:1fr;gap:5px;padding:10px 14px}.weg-whole-word{font-size:30px}.weg-part b{font-size:26px}.weg-facts{gap:10px}.weg-facts>div{flex-basis:115px}.weg-actions{flex-direction:column}.weg-actions button{flex:auto}}
.word-ending-guide>.weg-correction{margin:12px 14px;font-size:12px;line-height:1.8}


/* /grammar-help.css */
/* Grammar teaching is separate from the Quran's tajweed colour system. */
.grammar-help-dialog{--gh-bg:#faf8f3;--gh-panel:#fffefa;--gh-ink:#202b32;--gh-muted:#56616a;--gh-line:#d5d7d6;--gh-accent:#234b5b;--gh-gold:#805b14;--gh-example:#f1ead8;color:var(--gh-ink);background:var(--gh-bg);font-family:var(--font-ui,Inter,Arial,sans-serif);width:min(620px,calc(100vw - 28px));max-width:620px;max-height:min(850px,calc(100dvh - 40px));border:1px solid var(--gh-line);border-radius:22px;padding:0;box-shadow:0 25px 90px #0005;overflow-y:auto;overscroll-behavior:contain;margin:auto;scrollbar-width:thin}
.grammar-help-dialog::backdrop{background:#07101abd;backdrop-filter:blur(5px)}
.grammar-help-dialog *{box-sizing:border-box}.grammar-help-dialog button,.grammar-help-dialog a{font-family:inherit}.grammar-help-dialog button{cursor:pointer}.grammar-help-dialog :focus-visible{outline:3px solid var(--gh-gold);outline-offset:3px}.grammar-help-dialog .gh-chrome{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;background:var(--gh-bg);border-bottom:1px solid var(--gh-line)}
.grammar-help-dialog .gh-back,.grammar-help-dialog .gh-close{min-height:44px;border:0;background:transparent;color:var(--gh-ink);border-radius:10px;font-size:13px;font-weight:650;display:flex;align-items:center;gap:10px;padding:8px 10px}.grammar-help-dialog .gh-close{font-size:26px;font-weight:400;min-width:44px;justify-content:center}.grammar-help-dialog .gh-back:hover,.grammar-help-dialog .gh-close:hover{background:var(--gh-example)}
.grammar-help-dialog .gh-lesson{padding:26px 30px 30px}.grammar-help-dialog .gh-eyebrow{display:block;font-size:10px;letter-spacing:1.4px;font-weight:750;line-height:1.7;color:var(--gh-gold);margin:0 0 9px}.grammar-help-dialog h2{font-size:28px;line-height:1.25;letter-spacing:-.6px;margin:0 0 15px;color:var(--gh-ink)}.grammar-help-dialog h3{font-size:14px;line-height:1.6;color:var(--gh-ink);margin:0 0 8px;font-weight:750}.grammar-help-dialog p{font-size:14px;line-height:1.8;margin:0 0 12px;color:var(--gh-ink)}.grammar-help-dialog .gh-definition{font-size:16px;line-height:1.85;margin-bottom:23px}.grammar-help-dialog .gh-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.grammar-help-dialog .gh-section-heading bdi{font-size:12px;color:var(--gh-muted);white-space:nowrap}.grammar-help-dialog .gh-example{background:var(--gh-example);padding:18px 21px;border-radius:15px;border:1px solid #caba8e;margin:21px 0}.grammar-help-dialog .gh-arabic{font:400 34px/1.9 var(--arabic,Amiri,serif);text-align:center;overflow-wrap:anywhere;margin:12px 0 1px;color:var(--gh-ink)}.grammar-help-dialog .gh-meaning{text-align:center;font-weight:650;margin-bottom:15px}.grammar-help-dialog .gh-text-link{display:inline-flex;gap:10px;align-items:center;min-height:44px;font-size:13px;font-weight:700;color:var(--gh-accent);text-decoration:underline;text-underline-offset:4px}
.grammar-help-dialog .gh-why{padding:0 2px;margin:25px 0}.grammar-help-dialog .gh-why p{color:var(--gh-muted)}.grammar-help-dialog .gh-check{padding:22px 0 6px;border-top:1px solid var(--gh-line)}.grammar-help-dialog .gh-check h3{font-size:16px;font-weight:700;margin:5px 0 15px}.grammar-help-dialog .gh-answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grammar-help-dialog .gh-answers button{min-height:52px;padding:12px 14px;border:1px solid var(--gh-line);border-radius:11px;background:var(--gh-panel);color:var(--gh-ink);font-size:13px;font-weight:600;line-height:1.6;text-align:start}.grammar-help-dialog .gh-answers button:hover{border-color:var(--gh-accent)}.grammar-help-dialog .gh-answers .gh-correct{background:#e6f0e9;border-color:#2b6945;color:#164a2b}.grammar-help-dialog .gh-answers .gh-try{background:#f8ecd9;border-color:#946512;color:#5c3c0d}.grammar-help-dialog .gh-feedback{margin-top:13px;min-height:8px}.grammar-help-dialog .gh-feedback strong{display:block;font-size:13px;color:var(--gh-ink);margin:0 0 4px}.grammar-help-dialog .gh-feedback p{font-size:13px;color:var(--gh-muted)}.grammar-help-dialog .gh-next{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:15px}.grammar-help-dialog .gh-primary{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:start;border:1px solid var(--gh-accent);border-radius:11px;min-height:50px;padding:12px 16px;background:var(--gh-accent);color:#fff;font-size:14px;font-weight:650;line-height:1.6}.grammar-help-dialog .gh-source{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:12px;line-height:1.6;color:var(--gh-muted);text-decoration:underline;text-underline-offset:3px}.grammar-help-dialog .gh-state{padding:30px}.grammar-help-dialog .gh-state button{min-height:44px;border:1px solid var(--gh-line);padding:9px 15px;border-radius:10px;background:var(--gh-panel);color:var(--gh-ink)}.gh-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.grammar-inline .grammar-help-tile{font:inherit;font-weight:650;display:inline-flex;gap:9px;align-items:center;justify-content:space-between;min-height:44px;text-align:start;cursor:pointer;white-space:normal}.grammar-inline .grammar-help-tile>i{font-style:normal;font-size:11px;line-height:18px;width:18px;height:18px;flex:none;border:1px solid currentColor;opacity:.75;border-radius:50%;text-align:center}.grammar-inline .grammar-features .grammar-help-tile{border:1px solid var(--line,#d5d7d6);background:var(--panel,#fffefa);color:var(--ink,#202b32);border-radius:9px;padding:8px 10px;font-size:12px}.grammar-inline .grammar-segment-top .grammar-help-tile{border:0;background:transparent;color:var(--ink);padding:4px 0;font-size:13px}.grammar-inline .grammar-label-help{display:flex;align-items:center;justify-content:space-between;gap:5px;border:0;background:transparent;color:var(--muted,#56616a);font-size:11px;line-height:1.5;padding:0;min-height:44px;font-weight:650;text-align:start;cursor:pointer}.grammar-inline .grammar-label-help span{font-size:13px;border-bottom:1px dotted currentColor}.grammar-inline .grammar-tile-hint{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 11px}.grammar-inline .grammar-help-tile:hover,.grammar-inline .grammar-label-help:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.dark .grammar-help-dialog{--gh-bg:#151d25;--gh-panel:#1b2731;--gh-ink:#eef1f1;--gh-muted:#b8c4ca;--gh-line:#48535c;--gh-accent:#b2d5e0;--gh-gold:#e0c074;--gh-example:#2a2b25}.dark .grammar-help-dialog .gh-example{border-color:#716748}.dark .grammar-help-dialog .gh-primary{background:#b2d5e0;color:#132c36}.dark .grammar-help-dialog .gh-answers .gh-correct{background:#1c3d2c;color:#c3efd1;border-color:#82bd96}.dark .grammar-help-dialog .gh-answers .gh-try{background:#45361c;color:#f3d29b;border-color:#c19b50}
.grammar-help-dialog[dir=rtl] .gh-eyebrow{letter-spacing:0;font-size:12px}.grammar-help-dialog[dir=rtl] h2{letter-spacing:0;font-size:29px}.grammar-help-dialog[dir=rtl] p{line-height:1.95}.grammar-help-dialog[dir=rtl] .gh-answers button{font-size:14px}.grammar-help-dialog[dir=rtl] .gh-back{font-size:14px}
@media(max-width:500px){.grammar-help-dialog{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0;border-bottom:0}.grammar-help-dialog .gh-chrome{padding:9px 12px}.grammar-help-dialog .gh-lesson{padding:20px 20px max(24px,env(safe-area-inset-bottom))}.grammar-help-dialog h2{font-size:25px}.grammar-help-dialog .gh-definition{font-size:15px}.grammar-help-dialog .gh-example{padding:16px}.grammar-help-dialog .gh-arabic{font-size:32px}.grammar-help-dialog .gh-answers{grid-template-columns:1fr}.grammar-help-dialog .gh-state{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){.grammar-help-dialog *{scroll-behavior:auto!important}}

.gh-video-link{background:transparent;border:0;min-height:44px;text-align:start;cursor:pointer;padding:10px 0;}

/* Put a visual example before terminology; preserve the full explanation. */
.gh-precision{border-block:1px solid var(--line,#d9ddd8);padding:6px 0;margin:18px 0;}
.gh-precision summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:700;gap:10px;}
.gh-precision summary:before{content:"+";font-size:20px;color:var(--gold-text,#795b22);}
.gh-precision[open] summary:before{content:"−";}
.gh-precision p{line-height:1.9;font-size:14px;}
.gh-precision summary:focus-visible{outline:3px solid var(--gold,#b69652);outline-offset:4px;}


/* /syntax-lab.css */
/* Mobile-first evidence lab. Colour reinforces written role labels. */
.syntax-lab{--sx-ink:var(--ink,#182732);--sx-muted:var(--muted,#54636e);--sx-paper:var(--panel,#fffdf9);--sx-wash:var(--light,#f2f4f2);--sx-line:var(--line,#d9dfdf);--sx-accent:var(--green,#173f54);--sx-gold:#795c24;--sx-gold-bg:#f6efd9;--sx-blue:#174b6b;--sx-blue-bg:#eaf2f7;--sx-green:#1b624b;--sx-green-bg:#eaf4ee;--sx-red:#8a303b;--sx-red-bg:#fbeced;max-width:960px;min-width:0;margin:auto;color:var(--sx-ink);font-family:inherit}.syntax-lab *{box-sizing:border-box}.syntax-lab button,.syntax-lab select{font:inherit;touch-action:manipulation}.syntax-lab button{cursor:pointer}.syntax-lab button,.syntax-lab select,.syntax-lab summary,.syntax-lab a{min-height:44px}.syntax-lab button:focus-visible,.syntax-lab select:focus-visible,.syntax-lab a:focus-visible,.syntax-lab summary:focus-visible{outline:3px solid #ad8238;outline-offset:3px}.syntax-lab p{font-size:14px;line-height:1.85}.syntax-heading{padding:4px 0 25px}.syntax-eyebrow{display:block;color:var(--sx-gold);font-size:10px;letter-spacing:1.5px;font-weight:800;line-height:1.6}.syntax-heading h2{font-size:clamp(25px,3vw,33px);line-height:1.25;letter-spacing:-.7px;margin:11px 0}.syntax-heading p{margin:0;color:var(--sx-muted);max-width:650px}.syntax-case-picker{background:var(--sx-wash);border:1px solid var(--sx-line);border-radius:14px;padding:15px}.syntax-case-picker label{display:flex;justify-content:space-between;gap:16px;font-size:12px;font-weight:750;margin-bottom:10px}.syntax-case-picker label>span{font-size:11px;color:var(--sx-muted);font-weight:500}.syntax-case-picker select{background:var(--sx-paper);color:var(--sx-ink);border:1px solid var(--sx-line);border-radius:9px;width:100%;max-width:100%;padding:12px;min-height:48px;font-size:14px}.syntax-case-heading{padding:25px 0 16px}.syntax-reference{font-size:9px!important;letter-spacing:1px;color:var(--sx-muted);font-weight:750;margin:0 0 12px;display:flex;align-items:center;gap:12px}.syntax-reference bdi{font-size:12px;letter-spacing:0;padding:4px 9px;border:1px solid var(--sx-line);border-radius:6px;background:var(--sx-paper)}.syntax-case-heading h3{font-size:clamp(23px,3vw,28px);letter-spacing:-.5px;line-height:1.35;margin:0 0 10px}.syntax-case-heading>p:last-child{color:var(--sx-muted);margin:0;max-width:680px}.syntax-original{border-block:1px solid var(--sx-line);padding:17px 0 20px;margin-bottom:27px}.syntax-original>span{font-size:10px;color:var(--sx-muted);font-weight:700}.syntax-original blockquote{font-family:var(--arabic,'Noto Naskh Arabic',serif);font-size:clamp(25px,4vw,32px);line-height:2.05;margin:12px 0 0;text-align:start;overflow-wrap:anywhere}.syntax-experiment-top{display:flex;gap:11px;align-items:center}.syntax-step{width:28px;height:28px;flex:none;border:1px solid var(--sx-line);border-radius:50%;font-size:10px;display:grid;place-items:center;color:var(--sx-muted);font-weight:750}.syntax-experiment h4,.syntax-evidence h4,.syntax-quiz h4{margin:0;font-size:16px;line-height:1.5}.syntax-prompt{color:var(--sx-muted);margin:10px 0 14px}.syntax-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:var(--sx-wash);padding:5px;border:1px solid var(--sx-line);border-radius:11px;margin-bottom:14px}.syntax-switch button{border:1px solid transparent;border-radius:7px;background:transparent;color:var(--sx-muted);font-weight:750;padding:11px 7px;line-height:1.5;font-size:12px;min-height:46px}.syntax-switch button[aria-pressed=true]{background:var(--sx-paper);border-color:var(--sx-line);color:var(--sx-ink);box-shadow:0 2px 5px #143d5010}.syntax-diagram{background:var(--sx-paper);border:1px solid var(--sx-line);border-radius:14px;padding:17px 14px 12px}.syntax-diagram-kind{margin:0 0 17px!important;font-size:11px!important;color:var(--sx-muted);line-height:1.6!important}.syntax-nodes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-items:stretch}.syntax-node{min-width:0;border-radius:10px;border:1px solid currentColor;padding:13px 8px 11px;display:flex;flex-direction:column;justify-content:center;gap:8px;position:relative}.syntax-node-word{display:block;font-size:clamp(23px,3vw,30px);font-family:var(--arabic,'Noto Naskh Arabic',serif);line-height:1.9;text-align:center;overflow-wrap:anywhere}.syntax-node-label{font-size:11px;line-height:1.65;text-align:center}.syntax-role-focus{color:var(--sx-gold);background:var(--sx-gold-bg)}.syntax-role-subject{color:var(--sx-blue);background:var(--sx-blue-bg)}.syntax-role-state{color:var(--sx-green);background:var(--sx-green-bg)}.syntax-role-restriction,.syntax-role-warning{color:var(--sx-red);background:var(--sx-red-bg)}.syntax-role-warning{border-style:dashed;border-width:2px}.syntax-connection{margin:0 12px;display:flex;flex-direction:column;align-items:center;text-align:center}.syntax-connection>span{width:75%;height:16px;border:1px solid var(--sx-line);border-top:none;border-radius:0 0 9px 9px}.syntax-connection>p{font-size:12px!important;line-height:1.7!important;margin:9px 0 3px;max-width:650px;font-weight:650}.syntax-is-hypothetical .syntax-diagram-kind{color:var(--sx-red);font-weight:750}.syntax-explanation{padding:13px 1px 0;margin:0!important;color:var(--sx-muted)}.syntax-evidence{padding-top:28px}.syntax-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:19px}.syntax-evidence-grid section{position:relative;border-top:2px solid var(--sx-line);padding-top:14px}.syntax-evidence-marker{color:var(--sx-muted);font-size:10px;position:absolute;inset-inline-end:0;top:17px}.syntax-evidence-grid h5{font-size:13px;margin:0 18px 9px 0;line-height:1.5}.syntax-evidence-grid p{font-size:13px;margin:0;color:var(--sx-muted);line-height:1.85}.syntax-boundary{margin:20px 0 0;padding:15px 17px;border-inline-start:3px solid var(--sx-gold);background:var(--sx-wash);color:var(--sx-muted);font-size:12px!important;border-radius:0 7px 7px 0}.syntax-boundary strong{display:block;font-size:11px;color:var(--sx-ink);margin-bottom:5px}.syntax-quiz{margin-top:27px;padding:21px 20px;background:var(--sx-paper);border:1px solid var(--sx-line);border-radius:15px}.syntax-question{font-size:16px!important;line-height:1.65!important;font-weight:650;margin:17px 0}.syntax-answers{display:grid;gap:9px}.syntax-answers button{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid var(--sx-line);border-radius:10px;background:var(--sx-paper);color:var(--sx-ink);font-size:13px;line-height:1.7;text-align:start;min-height:51px}.syntax-answers button>span{display:grid;place-items:center;width:24px;height:24px;flex:none;font-size:10px;border:1px solid var(--sx-line);border-radius:5px;color:var(--sx-muted)}.syntax-answers button>b{margin-inline-start:auto;font-size:17px}.syntax-answers button:disabled{cursor:default;opacity:1}.syntax-answers .syntax-answer-correct{background:var(--sx-green-bg);color:var(--sx-green);border-color:var(--sx-green)}.syntax-answers .syntax-answer-review{background:var(--sx-gold-bg);color:var(--sx-gold);border-color:var(--sx-gold)}.syntax-feedback:empty{display:none}.syntax-feedback{margin-top:18px}.syntax-feedback strong{font-size:13px}.syntax-feedback p{font-size:13px;color:var(--sx-muted);margin:6px 0 0}.syntax-quiz-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.syntax-quiz-actions button,.syntax-error button{border:1px solid var(--sx-line);border-radius:8px;background:var(--sx-wash);color:var(--sx-ink);padding:10px 13px;font-size:12px;line-height:1.5;font-weight:750}.syntax-sources{margin-top:23px;border-top:1px solid var(--sx-line)}.syntax-sources summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:14px 2px;font-size:13px;font-weight:750;list-style:disclosure-closed}.syntax-sources summary>span{color:var(--sx-muted);font-size:10px;font-weight:500}.syntax-sources p{font-size:12px;color:var(--sx-muted);margin:0 0 11px}.syntax-sources ul{padding:0;margin:0;list-style:none}.syntax-sources li+li{border-top:1px solid var(--sx-line)}.syntax-sources a{color:var(--sx-ink);font-size:12px;line-height:1.7;text-decoration:underline;text-underline-offset:4px;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;overflow-wrap:anywhere}.syntax-sources a>span{flex:none;color:var(--sx-muted)}.syntax-loading,.syntax-error{padding:30px 15px;text-align:center;color:var(--sx-muted)}.syntax-error h3{color:var(--sx-ink)}.syntax-lab[dir=rtl] .syntax-eyebrow,.syntax-lab[dir=rtl] .syntax-reference{letter-spacing:0}.syntax-lab[dir=rtl] .syntax-boundary{border-radius:7px 0 0 7px}
body.dark .syntax-lab{--sx-gold:#ead18d;--sx-gold-bg:#302a1c;--sx-blue:#b5d7ee;--sx-blue-bg:#172b38;--sx-green:#b1e2ca;--sx-green-bg:#193128;--sx-red:#f2b6bf;--sx-red-bg:#39232a}body.dark .syntax-switch button[aria-pressed=true]{box-shadow:none}
@media(max-width:680px){.syntax-evidence-grid{grid-template-columns:1fr;gap:14px}.syntax-evidence-grid section{border-top-width:1px;padding-top:12px}.syntax-evidence-grid h5{font-size:13px}.syntax-evidence-grid p{font-size:13px}.syntax-case-heading h3{font-size:24px}.syntax-quiz{padding:18px 14px}.syntax-lab p{font-size:14px}.syntax-diagram{padding:14px 10px 11px}.syntax-nodes{gap:6px}.syntax-node{padding:10px 5px}.syntax-node-word{font-size:24px}.syntax-node-label{font-size:10px}.syntax-quiz-actions{display:grid;grid-template-columns:1fr 1fr}.syntax-sources summary{font-size:12px}.syntax-case-picker select{font-size:12px}.syntax-reference{letter-spacing:.5px}}
@media(max-width:420px){.syntax-nodes{grid-template-columns:1fr}.syntax-node{flex-direction:row;align-items:center;justify-content:space-between;padding:8px 13px;gap:15px;min-height:76px}.syntax-node-word{font-size:27px;max-width:60%;text-align:start}.syntax-node-label{max-width:42%;font-size:11px;text-align:start}.syntax-connection>span{width:1px;height:12px;border:0;border-inline-start:1px solid var(--sx-line)}.syntax-connection{margin-inline:2px}.syntax-switch button{font-size:11px}.syntax-case-picker{padding:12px}.syntax-eyebrow{font-size:9px}.syntax-heading h2{font-size:27px}.syntax-quiz-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.syntax-lab *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* /root-forge.css */
/* The explorer stays scoped: grammar colours never alter Quran tajweed colours. */
.root-forge{max-width:850px;margin-inline:auto;color:var(--ink,#202c32);font-family:var(--font-ui,Inter,sans-serif);line-height:1.65;min-width:0;--rf-accent:#285c52;--rf-soft:#eaf0e9;--rf-paper:#fffcf6;--rf-border:#d9ded7;--rf-muted:#596467}
.dark .root-forge{--rf-accent:#9cdec9;--rf-soft:#223e37;--rf-paper:#1b252b;--rf-border:#41524f;--rf-muted:#c1ceca}
.root-forge *{box-sizing:border-box}
.root-forge h2,.root-forge h3{margin:0;color:var(--ink,#202c32);line-height:1.35}
.root-forge h2{font-size:clamp(24px,4vw,34px);letter-spacing:-.7px;font-weight:650}
.root-forge h3{font-size:22px}
.root-forge p{margin:8px 0 14px}
.root-forge .rf-eyebrow{font-size:10px;letter-spacing:1.3px;font-weight:750;color:var(--rf-accent);margin:0 0 10px}
.root-forge[dir="rtl"] .rf-eyebrow{letter-spacing:0;font-size:12px}
.rf-header{padding:8px 0 18px}.rf-header>p:last-child{font-size:15px;color:var(--rf-muted);max-width:620px}
.root-forge button,.root-forge input{font:inherit}.root-forge button,.root-forge a{touch-action:manipulation}
.root-forge button:focus-visible,.root-forge input:focus-visible,.root-forge a:focus-visible{outline:3px solid #ad8131;outline-offset:3px}
.rf-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.rf-presets button{flex:1 1 70px;min-height:52px;padding:8px 14px;border:1px solid var(--rf-border);border-radius:10px;background:var(--rf-paper);color:var(--ink);font-family:Amiri,serif;font-size:24px}
.rf-presets button[aria-pressed="true"]{border-color:var(--rf-accent);background:var(--rf-soft);box-shadow:inset 0 -3px var(--rf-accent)}
.rf-search{border:1px solid var(--rf-border);background:var(--rf-paper);border-radius:13px;padding:16px;margin-bottom:20px}
.rf-search label{font-weight:650;font-size:13px;display:block;margin-bottom:7px}
.rf-search>div{display:flex;gap:8px}
.rf-search input{width:100%;min-width:0;min-height:48px;border:1px solid var(--rf-border);border-radius:8px;background:var(--bg,#f3f1eb);color:var(--ink);padding:6px 12px;font-family:Amiri,serif;font-size:25px}
.rf-search button{min-height:48px;padding:8px 18px;border:0;background:#285c52;color:#fff;border-radius:8px;font-weight:600}
.rf-search small{display:block;font-size:11px;color:var(--rf-muted);margin-top:7px;line-height:1.6}
.rf-root-summary{display:flex;gap:20px;align-items:center;margin:24px 0;padding-bottom:20px;border-bottom:1px solid var(--rf-border)}
.rf-root-letters{display:flex;gap:8px;flex-shrink:0}
.rf-root-letters span{display:flex;align-items:center;justify-content:center;width:50px;height:62px;background:var(--rf-soft);border:1px solid var(--rf-border);border-radius:10px;font:34px Amiri,serif;color:var(--rf-accent)}
.rf-root-summary strong{font-size:15px}.rf-root-summary p{font-size:12px;color:var(--rf-muted);margin:4px 0 0}
.root-forge .rf-picker-label{font-size:12px;font-weight:600;color:var(--rf-muted)}
.rf-forms{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;margin-bottom:18px}
.rf-forms button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:65px;padding:7px 2px;border:1px solid var(--rf-border);border-radius:9px;background:var(--rf-paper);color:var(--ink)}
.rf-forms button strong{font-size:15px}.rf-forms button small{font-size:11px;color:var(--rf-muted)}
.rf-forms button[aria-pressed="true"]{border-color:var(--rf-accent);background:var(--rf-soft);box-shadow:inset 0 -3px var(--rf-accent)}
.rf-forms button.no-examples{border-style:dashed}
.rf-form-panel{border:1px solid var(--rf-border);border-radius:16px;padding:24px;background:var(--rf-paper)}
.rf-form-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.rf-pattern{font:30px Amiri,serif;line-height:1.9;color:var(--rf-accent)}
.rf-form-panel>p{font-size:14px}.root-forge .rf-template-note{font-size:11px;color:var(--rf-muted);border-inline-start:2px solid #ae955b;padding-inline-start:10px}
.root-forge .rf-count{font-size:12px;margin:22px 0 12px}
.rf-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.root-forge .rf-example{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--rf-border);border-radius:10px;text-decoration:none;color:var(--ink);min-height:76px;background:var(--bg,#f3f1eb)}
.rf-example>span:first-child{font:29px Amiri,serif;line-height:1.8;flex:1}
.rf-example-meta{display:flex;flex-direction:column;gap:3px}.rf-example-meta bdi{font-size:12px;font-weight:650}.rf-example-meta small{font-size:9px;color:var(--rf-muted)}
.rf-example>span:last-child{color:var(--rf-accent)}
.rf-more,.rf-error button{display:block;min-height:44px;margin:16px 0 0;border:1px solid var(--rf-border);border-radius:8px;background:var(--rf-soft);color:var(--rf-accent);font-size:12px;padding:9px 14px}
.rf-no-examples,.rf-error,.rf-status{border:1px dashed var(--rf-border);border-radius:10px;padding:20px;font-size:14px;background:var(--rf-soft)}
.rf-no-examples p{font-size:12px;color:var(--rf-muted);margin-bottom:0}
.rf-source{margin-top:22px;padding:18px 0;border-top:1px solid var(--rf-border);font-size:12px;color:var(--rf-muted)}
.rf-source a{display:inline-block;color:var(--rf-accent);text-decoration:underline;text-underline-offset:3px;padding-block:8px;min-height:44px}
.rf-source small{display:block;font-size:10px}
@media(max-width:650px){.rf-forms{grid-template-columns:repeat(5,minmax(0,1fr))}.rf-examples{grid-template-columns:1fr}.rf-root-summary{align-items:flex-start;gap:14px}.rf-root-letters span{width:40px;height:52px;font-size:29px}.rf-form-panel{padding:18px}.rf-form-heading{gap:12px}.rf-pattern{font-size:26px}.rf-search{padding:13px}}
@media(max-width:370px){.rf-root-summary{flex-direction:column}.rf-presets{gap:6px}.rf-presets button{padding:8px;font-size:22px;flex-basis:60px}.rf-form-panel{padding:14px}.rf-search button{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.root-forge *{scroll-behavior:auto!important;transition:none!important}}


/* /academy.css */
/* A calm, readable learning workspace with explicit actions. */
.mushaf-academy{--academy-accent:#315d55;--academy-accent-ink:#fff;--academy-tint:#e8eee6;max-width:1080px;margin:auto;color:var(--ink);padding:18px 0 40px;}
body.dark .mushaf-academy{--academy-accent:#b6d3bd;--academy-accent-ink:#14251f;--academy-tint:#263d35;}
.academy-header{padding:10px 0 26px;max-width:700px;}
.academy-eyebrow{font-size:11px;font-weight:700;letter-spacing:.11em;color:var(--gold-text,#80642e);}
.academy-header h1{font:600 clamp(26px,3.5vw,38px)/1.25 var(--font-ui,Inter,sans-serif);letter-spacing:-.04em;margin:14px 0 12px;}
.academy-header p,.academy-section-head p{color:var(--muted);font-size:15px;line-height:1.8;margin:0;}
.academy-tabs{display:flex;gap:6px;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:auto;scrollbar-width:thin;margin:0 0 28px;}
.academy-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;flex:1 0 auto;padding:9px 15px;background:transparent;border:0;border-radius:10px;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap;}
.academy-tabs button span{font-size:20px;line-height:1;}
.academy-tabs button[aria-current="page"]{background:var(--academy-accent);color:var(--academy-accent-ink);}
.academy-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;}
.academy-section-head h2{font-size:23px;line-height:1.4;margin:0 0 10px;letter-spacing:-.02em;}
.academy-section-head p{max-width:640px;font-size:14px;}
.academy-language-badge{font-size:11px;line-height:1.7;white-space:nowrap;border:1px solid var(--line);padding:6px 10px;border-radius:30px;color:var(--muted);}
.academy-search{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;max-width:540px;}
.academy-search input{width:100%;min-height:48px;padding:12px 16px;background:var(--panel);border:1px solid var(--line);border-radius:11px;color:var(--ink);font-size:15px;}
.academy-count{font-size:12px;color:var(--muted);margin:18px 0;}
.academy-term-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.academy-term{display:flex;flex-direction:column;text-align:start;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:20px;color:var(--ink);min-height:170px;transition:border-color .15s,transform .15s;}
.academy-term:hover{border-color:var(--academy-accent);transform:translateY(-2px);}
.academy-term-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:17px;line-height:1.45;}
.academy-term-label>span{font-size:19px;color:var(--academy-accent);}
.academy-term>span:nth-child(2){font-size:13px;line-height:1.8;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.academy-term small{margin-top:auto;font-size:11px;font-weight:700;color:var(--academy-accent);}
.academy-resource-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-block:1px solid var(--line);padding:16px 0;}
.academy-resource-controls label{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;}
.academy-resource-controls select{min-height:44px;max-width:180px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:7px 12px;}
.academy-other-language{min-height:44px;cursor:pointer;}
.academy-other-language input{width:20px;height:20px;accent-color:var(--academy-accent);}
.academy-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.academy-resource{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;gap:12px;min-width:0;}
.academy-resource-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--academy-accent);font-weight:600;}
.academy-resource-meta span{background:var(--academy-tint);padding:5px 9px;border-radius:5px;}
.academy-resource h3{font-size:20px;line-height:1.45;letter-spacing:-.02em;margin:3px 0 0;}
.academy-resource p{font-size:14px;line-height:1.85;color:var(--muted);margin:0;}
.academy-resource .academy-teacher{font-size:12px;font-weight:600;color:var(--ink);}
.academy-resource-access{font-size:12px;color:var(--muted);margin-top:auto;padding-top:8px;}
.academy-resource-action,.academy-primary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:12px 16px;border:1px solid var(--academy-accent);border-radius:9px;background:var(--academy-accent);color:var(--academy-accent-ink);font-weight:600;font-size:13px;text-decoration:none;}
.academy-resource details{border-top:1px solid var(--line);margin-top:2px;padding-top:5px;}
.academy-resource summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--muted);font-size:12px;}
.academy-resource summary:after{content:'+';margin-inline-start:auto;}
.academy-resource details[open] summary:after{content:'−';}
.academy-resource details small{display:block;margin-top:12px;color:var(--muted);line-height:1.7;}
.academy-topic{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--academy-tint);padding:8px 14px;border-radius:10px;margin-bottom:14px;font-size:13px;}
.academy-topic button{background:none;border:0;text-decoration:underline;min-height:44px;color:var(--ink);font-size:12px;}
.academy-empty{border:1px dashed var(--line);border-radius:14px;padding:26px;text-align:center;line-height:1.8;}
.academy-empty p,.academy-footnote{color:var(--muted);font-size:13px;line-height:1.85;}
.academy-empty button{margin:16px auto 0;}
.academy-footnote{max-width:780px;margin:26px 0;}
.academy-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.mushaf-academy button:focus-visible,.mushaf-academy a:focus-visible,.mushaf-academy summary:focus-visible{outline:3px solid #a67e27;outline-offset:3px;}
.mushaf-academy[dir="rtl"] .academy-eyebrow{letter-spacing:0;}
.mushaf-academy[dir="rtl"] h1{letter-spacing:0;line-height:1.6;}
body.learn-page .study-segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
body.learn-page .study-segments button{min-width:0;min-height:48px;line-height:1.5;padding:9px 8px;}
@media(max-width:720px){.academy-term-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.academy-resource-grid{grid-template-columns:1fr;}.academy-section-head{display:block;}.academy-language-badge{display:inline-block;margin-top:14px;}.academy-header{padding-top:0;}.academy-header h1{font-size:28px;}.academy-tabs{margin-inline:-4px;margin-bottom:24px;}.academy-tabs button{font-size:12px;padding:8px 12px;}.academy-term{padding:16px;min-height:176px;}.academy-term-label{font-size:16px;}.academy-resource{padding:20px;}body.learn-page .study-segments button{font-size:12px;}}
@media(max-width:380px){.academy-term-grid{grid-template-columns:1fr;}.academy-term{min-height:135px;}.academy-header h1{font-size:26px;}}
@media(prefers-reduced-motion:reduce){.academy-term{transition:none;}.academy-term:hover{transform:none;}}

/* The explorer supplies its own headline; avoid stacked landing headers. */
.academy-header-corpus{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.mushaf-academy:has(.academy-header-corpus){padding-top:4px;}
@media(max-width:600px){.academy-tabs{scrollbar-width:none;margin-bottom:18px}.academy-tabs::-webkit-scrollbar{display:none}.academy-tabs button{font-size:12px;min-height:46px;padding:8px 12px}.study-segments{gap:2px}.study-segments button{padding-inline:8px}}

/* A focused lesson keeps one way back, rather than three stacked navigation rows. */
.academy-visual-focus .academy-tabs{display:none;}
.learn-page:has(.academy-visual-focus) .study-segments{display:none!important;}
.academy-visual-focus{padding-top:8px;}
@media(max-width:600px){.academy-visual-focus .vl-lesson-top{margin-bottom:12px;} .academy-visual-focus .vl-lesson-heading{margin-bottom:16px;}}

body.learn-page .study-segments{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.academy-reading-help{margin-block:1.4rem .4rem;border-block-start:1px solid var(--line);color:var(--muted)}
.academy-reading-help summary,.academy-reading-help button{min-height:44px;align-content:center;cursor:pointer}
.academy-reading-help button{font:inherit;color:var(--green);background:none;border:none;text-decoration:underline}


/* /corpus-explorer.css */
/* Corpus learning uses colour plus labels; it never replaces tajweed colours. */
.corpus-explorer{--ce-bg:#fffcf6;--ce-soft:#edf3ef;--ce-line:#d1dcd5;--ce-ink:#1d302b;--ce-muted:#50615b;--ce-accent:#245d4b;max-width:1040px;margin-inline:auto;color:var(--ce-ink);font-family:var(--font-ui,Inter,sans-serif);line-height:1.65;min-width:0}
.dark .corpus-explorer{--ce-bg:#172620;--ce-soft:#20372e;--ce-line:#4c6559;--ce-ink:#f1f5ed;--ce-muted:#c4d2c8;--ce-accent:#a2e1bb}
.corpus-explorer *{box-sizing:border-box}.corpus-explorer h2,.corpus-explorer h3{color:var(--ce-ink);line-height:1.3;margin:0}.corpus-explorer h2{font-size:clamp(26px,4.4vw,38px);font-weight:650;letter-spacing:-.7px}.corpus-explorer[dir=rtl] h2{letter-spacing:0}.corpus-explorer h3{font-size:18px}.corpus-explorer p{margin:8px 0 14px}.corpus-explorer button,.corpus-explorer input,.corpus-explorer select{font:inherit}.corpus-explorer button,.corpus-explorer a,.corpus-explorer summary{touch-action:manipulation}.corpus-explorer button{cursor:pointer}.corpus-explorer button:disabled{cursor:default;opacity:.55}.corpus-explorer :is(button,input,select,a,summary):focus-visible{outline:3px solid #b78826;outline-offset:3px}.corpus-explorer :is(h2,h3,div,section)[tabindex="-1"]:focus{outline:none}.corpus-explorer label{font-size:12px;font-weight:650;display:flex;flex-direction:column;gap:6px;color:var(--ce-muted)}
.ce-header{padding:8px 0 20px}.ce-header>p{color:var(--ce-muted);font-size:16px;max-width:650px}.ce-eyebrow{font-size:10px;letter-spacing:1.1px;font-weight:750;color:var(--ce-accent);display:block;margin-bottom:9px}[dir=rtl] .ce-eyebrow{letter-spacing:0;font-size:12px}.ce-stats{display:flex;flex-wrap:wrap;gap:9px 20px;font-size:12px;color:var(--ce-muted);padding-top:8px}.ce-stats b{color:var(--ce-ink);font-size:16px;font-variant-numeric:tabular-nums}.ce-view-nav{display:flex;gap:6px;padding:6px;border:1px solid var(--ce-line);border-radius:12px;background:var(--ce-bg);margin-bottom:18px}.ce-view-nav button{min-height:46px;flex:1;border:0;background:transparent;color:var(--ce-ink);border-radius:8px;font-weight:650;font-size:13px;padding:8px}.ce-view-nav button[aria-pressed=true]{background:var(--ce-soft);box-shadow:inset 0 -2px var(--ce-accent)}.ce-view-nav span{font-size:11px;padding-inline-start:5px;color:var(--ce-muted)}
.ce-starters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.ce-starters button{min-height:42px;background:var(--ce-soft);border:1px solid var(--ce-line);border-radius:30px;padding:8px 13px;color:var(--ce-accent);font-size:12px}.ce-search{padding:19px;border:1px solid var(--ce-line);border-radius:15px;background:var(--ce-bg);margin-bottom:24px}.ce-query-label{margin-bottom:8px}.ce-search-line{display:flex;gap:8px}.corpus-explorer input,.corpus-explorer select{min-height:46px;max-width:100%;width:100%;background:var(--ce-bg);color:var(--ce-ink);border:1px solid var(--ce-line);border-radius:8px;padding:9px 11px}.ce-search-line input{min-width:0;flex:1;font-size:17px}.corpus-explorer .ce-primary{min-height:46px;background:#245d4b;color:#fff;border:1px solid #245d4b;padding:10px 18px;border-radius:9px;font-size:13px;font-weight:650}.dark .corpus-explorer .ce-primary{background:#a2e1bb;color:#13271b;border-color:#a2e1bb}.corpus-explorer .ce-secondary{min-height:44px;background:var(--ce-soft);color:var(--ce-accent);border:1px solid var(--ce-line);padding:9px 13px;border-radius:8px;font-size:12px;font-weight:600}.ce-search-kind{display:flex;gap:15px;align-items:flex-end;margin-top:13px}.ce-search-kind label{max-width:340px;flex:1}.corpus-explorer .ce-text-button{min-height:44px;border:0;background:none;color:var(--ce-accent);font-size:12px;padding:9px;text-decoration:underline;text-underline-offset:3px}.ce-filters{border-top:1px solid var(--ce-line);margin-top:17px;padding-top:12px}.corpus-explorer summary{cursor:pointer;min-height:40px;font-size:13px;font-weight:650;padding-block:8px;color:var(--ce-accent)}.ce-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 15px}.ce-hint{font-size:12px;color:var(--ce-muted)}
.ce-results-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 14px}.ce-results-heading h3 span{color:var(--ce-accent);font-variant-numeric:tabular-nums;margin-inline-start:8px}.ce-results-heading p{font-size:11px;color:var(--ce-muted);margin:0}.ce-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ce-word-card{position:relative;background:var(--ce-bg);border:1px solid var(--ce-line);border-radius:13px;min-width:0;overflow:hidden}.ce-word-open{display:flex;flex-direction:column;align-items:center;justify-content:space-between;width:100%;min-height:186px;padding:18px 36px 14px;background:none;border:0;color:var(--ce-ink);text-align:center}.ce-word-open:hover{background:var(--ce-soft)}.ce-word{font:34px/1.9 Amiri,serif;overflow-wrap:anywhere;margin-bottom:8px}.ce-result-meta{display:flex;flex-direction:column;align-items:center;gap:5px}.ce-result-meta bdi{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--ce-muted)}.ce-result-meta small{font-size:10px;color:var(--ce-muted)}.corpus-explorer .ce-save{position:absolute;inset-block-start:4px;inset-inline-end:4px;background:transparent;border:0;border-radius:8px;width:40px;height:44px;font-size:23px;color:var(--ce-muted)}.corpus-explorer .ce-save[aria-pressed=true]{color:#8a6418}.dark .corpus-explorer .ce-save[aria-pressed=true]{color:#f4cc76}.ce-badge{display:block;max-width:100%;font-size:10px;font-weight:650;padding:3px 7px;border:1px solid var(--ce-line);border-radius:6px;line-height:1.5;background:var(--ce-soft);color:var(--ce-ink)}.ce-badge.ce-raf{background:#e3f1fb;border-color:#97c5e2;color:#174668}.ce-badge.ce-nasb{background:#fff1cd;border-color:#d8b561;color:#694812}.ce-badge.ce-jarr{background:#dbf5e8;border-color:#8bcbb0;color:#1a5c40}.ce-badge.ce-jazm{background:#f0e7fb;border-color:#c2a8de;color:#603c83}.dark .ce-badge.ce-raf{background:#15364d;color:#a9dcff;border-color:#528cac}.dark .ce-badge.ce-nasb{background:#43351a;color:#ffe19a;border-color:#a68c4a}.dark .ce-badge.ce-jarr{background:#153d2c;color:#b3f5d0;border-color:#508d6b}.dark .ce-badge.ce-jazm{background:#3a274e;color:#e5c8ff;border-color:#9070ac}
.ce-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.ce-pagination button{min-height:44px;padding:9px 18px;border:1px solid var(--ce-line);border-radius:9px;background:var(--ce-bg);color:var(--ce-ink);font-size:12px}.ce-pagination span{font-size:12px;font-variant-numeric:tabular-nums}.ce-practice-entry{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:18px;background:var(--ce-soft);border:1px solid var(--ce-line);border-radius:12px;margin-bottom:18px}.ce-practice-entry>div{flex:1;min-width:180px}.ce-practice-entry h3{font-size:16px}.ce-practice-entry p{margin:4px 0 0;font-size:12px;color:var(--ce-muted)}.ce-practice-entry label{min-width:150px}.ce-practice-entry>small{flex-basis:100%;font-size:12px;color:var(--ce-muted)}.ce-resume{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;padding:12px 15px;background:var(--ce-soft);border:1px solid var(--ce-line);border-radius:10px;margin-bottom:16px}.ce-notice,.ce-status,.ce-empty{padding:20px;border:1px solid var(--ce-line);border-radius:12px;background:var(--ce-soft);font-size:14px}.ce-empty p,.ce-status p{color:var(--ce-muted)}.ce-source{font-size:12px;color:var(--ce-muted);border-top:1px solid var(--ce-line);margin-top:25px;padding-top:10px}.ce-source a{display:inline-block;min-height:44px;padding-block:10px;color:var(--ce-accent);text-decoration:underline;text-underline-offset:3px}.ce-source small{display:block;font-size:11px;margin-top:5px}
.ce-match{text-decoration:underline;text-decoration-color:var(--ce-line);text-underline-offset:7px;text-decoration-thickness:1.5px}.ce-context{margin:0 0 20px;padding:4px 12px;border:1px solid var(--ce-line);border-radius:9px;color:var(--ce-muted)}.ce-context-arabic{font:25px/2 Amiri,serif;text-align:start;color:var(--ce-ink)}.ce-context small{display:block;font-size:11px;padding-bottom:9px}
.ce-inspector{padding:20px;border:1px solid var(--ce-line);border-radius:14px;background:var(--ce-bg)}.ce-inspector-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.ce-inspector-heading bdi{font-size:13px;color:var(--ce-muted)}.ce-inspector-links{display:flex;gap:8px 16px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--ce-line);margin-bottom:15px}.ce-inspector-links a,.ce-inspector-links button{display:inline-flex;align-items:center;min-height:44px;padding:7px 0;background:none;border:0;color:var(--ce-accent);font-size:12px;text-decoration:underline;text-underline-offset:3px}.ce-inspector .grammar-inline{margin:0}
.ce-session{max-width:700px;margin:10px auto;padding:clamp(18px,4vw,35px);border:1px solid var(--ce-line);border-radius:20px;background:var(--ce-bg)}.ce-session-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--ce-muted)}.ce-session progress{appearance:none;width:100%;height:6px;accent-color:#245d4b;border:0;border-radius:6px;overflow:hidden;margin:13px 0 28px;background:var(--ce-soft)}.ce-session progress::-webkit-progress-bar{background:var(--ce-soft)}.ce-session progress::-webkit-progress-value{background:#448562}.ce-session h2{font-size:clamp(22px,4vw,29px);letter-spacing:0}.ce-question-word{font:clamp(42px,8vw,58px)/2 Amiri,serif;text-align:center;margin:22px 0 5px!important;color:var(--ce-ink);overflow-wrap:anywhere}.ce-target{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:14px;text-decoration-color:var(--ce-accent)}.ce-question-reference{text-align:center;font-size:12px;color:var(--ce-muted);margin:0 0 28px!important}.ce-options{display:grid;gap:10px}.ce-options button{min-height:57px;padding:13px 20px;border:1px solid var(--ce-line);background:var(--ce-bg);color:var(--ce-ink);border-radius:10px;font-size:15px;text-align:start}.ce-options button:hover:not(:disabled){background:var(--ce-soft);border-color:var(--ce-accent)}.ce-options button:disabled{opacity:1}.ce-options .ce-answer-correct{border-color:#47845e;background:#e1f2e6;color:#205632}.ce-options .ce-answer-wrong{border-color:#b27061;background:#fff0e9;color:#823b2d}.dark .ce-options .ce-answer-correct{border-color:#75bd8f;background:#153d2c;color:#b5f5c9}.dark .ce-options .ce-answer-wrong{border-color:#ce8e7f;background:#4a2b23;color:#ffd4c9}.ce-feedback{margin-top:20px;padding:20px;background:var(--ce-soft);border:1px solid var(--ce-line);border-radius:12px;font-size:14px}.ce-feedback .ce-primary{display:block;width:100%;margin-top:10px}.ce-session-complete>p{color:var(--ce-muted)}.ce-session-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
@media(max-width:800px){.ce-results{grid-template-columns:repeat(2,minmax(0,1fr))}.ce-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ce-practice-entry>div{flex-basis:100%}.ce-practice-entry label{flex:1}.ce-results-heading{align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:480px){.ce-search{padding:14px}.ce-stats{gap:6px 13px}.ce-stats b{font-size:14px}.ce-word-open{padding:17px 24px 12px;min-height:177px}.ce-word{font-size:30px}.ce-badge{font-size:9px}.ce-result-meta small{font-size:9px}.ce-practice-entry{padding:14px;gap:10px}.ce-practice-entry .ce-primary{padding-inline:12px}.ce-inspector{padding:14px}.ce-view-nav button{font-size:12px}.ce-filter-grid{gap:10px}.ce-search-kind{gap:8px}.ce-search-line .ce-primary{padding-inline:13px}.ce-session{padding:18px}.ce-source{overflow-wrap:anywhere}}
@media(max-width:350px){.ce-filter-grid{grid-template-columns:1fr}.ce-word-open{padding-inline:16px}.ce-word{font-size:27px}.ce-practice-entry .ce-primary{width:100%}.ce-view-nav button{padding-inline:3px}}
@media(prefers-reduced-motion:reduce){.corpus-explorer *{scroll-behavior:auto!important;transition:none!important}}

/* Keep programmatic focus below the persistent app header. */
.corpus-explorer .ce-session,.corpus-explorer [id^="ce-"]{scroll-margin-top:130px}


/* /learning-v14.css */
/* Clear next actions and one continuous lesson journey. */
.learning-root .learning-recommended{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:22px 0 28px;padding:24px;border:1px solid #d8cbae;border-radius:18px;background:#f5f0e4;color:#283a34}
.learning-recommended h2{font-size:21px;line-height:1.4;margin:6px 0 8px;color:inherit}
.learning-recommended p{margin:0 0 10px;font-size:14px;line-height:1.7;color:inherit}
.learning-recommended small{font-size:12px;color:#536158;line-height:1.65}
.learning-recommended .learning-primary{flex-shrink:0;background:#184f42;color:#fff;border-color:#184f42;min-height:50px}
.learning-root .learning-step-path{display:flex;list-style:none;max-width:700px;margin:18px auto 13px;padding:0;gap:12px}
.learning-step-path li{display:flex;align-items:center;gap:8px;flex:1;font-size:13px;line-height:1.5;color:var(--muted)}
.learning-step-path li>span{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:27px;height:27px;flex-shrink:0;background:var(--panel);font-size:12px;font-weight:700}
.learning-step-path li.is-current{color:var(--ink)}
.learning-step-path li.is-current>span{background:#184f42;color:#fff;border-color:#184f42}
.learning-step-path li.is-done>span{background:#e0eee6;color:#23573d;border-color:#b2cabc}
.learning-root .learning-progress{margin-bottom:24px}
.learning-root .learning-session-body{border-radius:18px;box-shadow:none}
.learning-root .learning-session-body h1{max-width:28ch}
.learning-root .learning-result h1{margin-inline:auto}
.learning-root .learning-help-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:18px 0;color:var(--muted);font-size:13px}
.learning-help-chips>span{width:100%;font-size:12px}
.learning-root .learning-help-chips button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;max-width:100%;padding:8px 12px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:9px;font-size:13px;line-height:1.4;text-align:start}
.learning-help-chips button>span{display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:17px;height:17px;flex-shrink:0;font-size:11px}
.learning-root .learning-reminder{margin-top:22px;border-block:1px solid var(--line);padding:2px 0}
.learning-reminder summary{min-height:48px;padding:13px 2px;font-size:13px;line-height:1.6;font-weight:700;color:var(--ink);cursor:pointer}
.learning-reminder section{padding:8px 3px 16px}
.learning-reminder section+section{border-top:1px solid var(--line)}
.learning-reminder h2{font-size:16px;line-height:1.55;margin:8px 0}
.learning-reminder p{font-size:14px;line-height:1.9;color:var(--ink)}
.learning-reminder .learning-reminder-example{font-family:var(--arabic);font-size:29px;line-height:1.9;text-align:center;overflow-wrap:anywhere;background:var(--light);border-radius:10px;padding:12px}
.learning-next-preview{display:flex;flex-direction:column;gap:7px;margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--light);text-align:start}
.learning-next-preview small{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.5px}
.learning-next-preview strong{font-size:16px;line-height:1.55;color:var(--ink)}
.dark .learning-root .learning-recommended{background:#202e2b;color:#f0ede4;border-color:#716348}
.dark .learning-recommended small{color:#c0ccc6}
.dark .learning-recommended .learning-primary{background:#dfc58e;color:#182c25;border-color:#dfc58e}
.dark .learning-step-path li.is-current>span{background:#dfc58e;color:#182c25;border-color:#dfc58e}
.dark .learning-step-path li.is-done>span{background:#244334;color:#d2e9da;border-color:#507961}
@media(max-width:700px){
 .learning-root .learning-recommended{display:block;padding:20px;margin-top:18px;border-radius:15px}
 .learning-recommended h2{font-size:20px}
 .learning-recommended .learning-primary{width:100%;margin-top:18px}
 .learning-root .learning-step-path{gap:8px;margin:16px 0 12px}
 .learning-step-path li{font-size:12px;gap:6px}
 .learning-step-path li>span{width:25px;height:25px}
 .learning-root .learning-session-body{padding:22px 17px}
 .learning-root .learning-actions{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:2;background:var(--panel);padding:10px 0;margin-top:18px;border-top:1px solid var(--line)}
 .learning-root .learning-actions .learning-button{min-height:50px;font-size:14px!important}
 .learning-root .learning-options button{min-height:84px;font-size:15px}
 .learning-root .learning-feedback{font-size:14px;line-height:1.8}
 .learning-root .learning-session-body .learning-source{font-size:12px;min-height:44px;display:inline-flex;align-items:center}
 .learning-root .learning-gentle{font-size:13px!important}
}
@media(max-width:360px){.learning-step-path li{flex-direction:column;align-items:flex-start;gap:5px}.learning-root .learning-recommended{padding:17px}.learning-root .learning-actions{gap:8px}.learning-root .learning-actions .learning-button{min-width:85px}}


/* /teacher-review.css */
.teacher-review{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid #63877a;border-radius:18px;background:#f8f7f1;color:#163b31;overflow-y:auto;font:inherit;line-height:1.7;overflow-wrap:anywhere}.teacher-review::backdrop{background:rgb(5 24 18 / .65)}.teacher-review header{display:flex;align-items:start;justify-content:space-between;gap:14px}.teacher-review h1{font-size:1.5rem;line-height:1.4;margin:.3rem 0}.teacher-review h2{font-size:1.15rem;line-height:1.5}.teacher-review header span,.teacher-review small{font-size:.85em;color:#3f6155}.teacher-review section{border-top:1px solid #bdcfc6;margin-block:20px;padding-block-start:12px}.teacher-review button{min-height:44px;padding:9px 13px;border:1px solid #446c5e;border-radius:9px;background:#fff;color:#194f3c;font:inherit;cursor:pointer;white-space:normal}.teacher-review [data-review-export]{background:#194f3c;color:white}.teacher-review details{padding:12px;border:1px solid #bdcfc6;border-radius:10px;margin-block:9px}.teacher-review summary{cursor:pointer}.teacher-review input[type=checkbox]{flex:none;width:20px;height:20px;accent-color:#194f3c;margin-inline:0 9px}.teacher-review summary label,.teacher-review-choice{display:flex;align-items:flex-start;gap:5px}.teacher-review-choice{margin-block:14px}.teacher-review-notes{display:block;font-weight:600;margin-block:18px}.teacher-review textarea{display:block;box-sizing:border-box;width:100%;margin-block-start:6px;padding:10px;resize:vertical;border:1px solid #63877a;border-radius:9px;color:inherit;background:#fff;font:inherit;font-weight:400}.teacher-review-actions{display:flex;flex-wrap:wrap;gap:10px}.teacher-review :focus-visible{outline:3px solid #94691f;outline-offset:3px}.teacher-review[lang=ar]{font-size:18px;line-height:1.9}.teacher-review [data-review-status]:empty{display:none}@media(max-width:400px){.teacher-review{padding:16px;width:calc(100vw - 16px)}.teacher-review header{gap:8px}.teacher-review h1{font-size:1.25rem}.teacher-review-actions button{width:100%}}

.teacher-review{max-width:calc(100% - 16px)}.teacher-review header>div{min-width:0}.teacher-review header>button{flex-shrink:0;white-space:nowrap}


/* /course-studio.css */
/* A continuous mobile learning path. Meaning first, one deliberate action at a time. */
.course-studio{--course-green:#215b4b;--course-on-green:#fff;--course-tint:#eaf0e9;--course-gold:#806020;--course-gold-tint:#f3eddb;--course-error:#943d32;--course-error-tint:#faece7;--course-focus:#876015;scroll-margin-top:var(--course-scroll-offset,144px);max-width:1080px;margin-inline:auto;color:var(--ink,#26342f);padding:22px 0 50px;line-height:1.75}
body.dark .course-studio{--course-green:#b6d6c0;--course-on-green:#12271d;--course-tint:#243b30;--course-gold:#e1c77e;--course-gold-tint:#333126;--course-error:#ffc4b4;--course-error-tint:#472d29;--course-focus:#e8cb79}
.course-studio *{box-sizing:border-box}.course-studio button,.course-studio a,.course-studio summary{touch-action:manipulation}.course-studio button{font:inherit;cursor:pointer}.course-studio button:disabled{cursor:default}.course-studio button:focus-visible,.course-studio a:focus-visible,.course-studio summary:focus-visible,.course-studio audio:focus-visible{outline:3px solid var(--course-focus);outline-offset:4px}.course-studio [tabindex="-1"]:focus{outline:none}.course-studio a{color:var(--course-green);text-underline-offset:4px}.course-studio h1,.course-studio h2,.course-studio h3{color:var(--ink);line-height:1.35;letter-spacing:-.025em}.course-studio p{margin:0 0 18px}.course-studio[dir="rtl"] h1,.course-studio[dir="rtl"] h2,.course-studio[dir="rtl"] h3{letter-spacing:0;line-height:1.65}.course-eyebrow{display:block;font-size:11px;font-weight:750;color:var(--course-gold);letter-spacing:.095em;line-height:1.6}.course-studio[dir="rtl"] .course-eyebrow{letter-spacing:0}
.course-heading{max-width:740px;margin:0 0 28px}.course-heading h1{font-size:clamp(28px,3.1vw,42px);margin:11px 0 14px;max-width:24ch}.course-heading p{font-size:16px;color:var(--muted);line-height:1.85;max-width:66ch}.course-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;margin-bottom:38px}.course-next{padding:28px 30px;background:var(--course-tint);border:1px solid var(--line);border-radius:18px;position:relative}.course-next:before{content:'';position:absolute;inset-inline-start:0;top:28px;bottom:28px;width:3px;background:var(--course-green);border-radius:4px}.course-next h2{font-size:25px;margin:10px 0 12px}.course-next p{color:var(--ink);font-size:15px;max-width:62ch}.course-next small{display:block;color:var(--muted);font-size:12px;margin-bottom:20px}.course-primary,.course-secondary,.course-review-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 20px;border:1px solid transparent;border-radius:10px;font-size:14px!important;line-height:1.5;font-weight:700!important;text-decoration:none}.course-primary{background:var(--course-green);color:var(--course-on-green)}.course-secondary{background:var(--panel);color:var(--ink);border-color:var(--line)}.course-primary:disabled,.course-secondary:disabled{opacity:.42}.course-progress-card{padding:28px 24px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}.course-progress-card>strong{display:block;font-size:40px;line-height:1.3;margin-top:13px;letter-spacing:-.05em;font-weight:600}.course-progress-card>strong>span{font-size:21px;letter-spacing:-.02em;color:var(--muted)}.course-progress-card>p{font-size:13px;color:var(--muted);margin:3px 0 16px}.course-mini-progress,.course-session-progress{height:5px;background:var(--line);overflow:hidden;border-radius:20px}.course-mini-progress>span,.course-session-progress>span{display:block;background:var(--course-green);height:100%;border-radius:20px;transition:width .2s ease}.course-review-note{font-size:12px!important;line-height:1.75;margin-top:16px!important}.course-review-button{width:100%;margin-top:17px;padding:10px;background:var(--course-gold-tint);color:var(--course-gold);border-color:var(--course-gold)}
.course-path{display:grid;gap:28px}.course-unit>header{display:flex;align-items:flex-start;gap:15px;margin:0 0 14px}.course-unit-number{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;font-size:12px;color:var(--course-gold);background:var(--panel)}.course-unit>header h2{font-size:21px;margin:1px 0 5px}.course-unit>header p{font-size:13px;color:var(--muted);margin:0;line-height:1.75}.course-lesson-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--panel)}.course-lesson{display:flex;align-items:center;text-align:start;gap:16px;padding:20px 22px;border:0;background:transparent;color:var(--ink);width:100%}.course-lesson+.course-lesson{border-top:1px solid var(--line)}.course-lesson:hover{background:var(--course-tint)}.course-lesson-mark{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;background:var(--light);border:1px solid var(--line);border-radius:50%;font-size:12px;color:var(--muted)}.course-lesson.is-complete .course-lesson-mark{color:var(--course-green);border-color:var(--course-green);background:var(--course-tint)}.course-lesson>span:nth-child(2){flex:1;min-width:0}.course-lesson strong{display:block;font-size:16px;font-weight:650;line-height:1.5}.course-lesson small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:4px;max-width:70ch}.course-lesson-meta{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:12px;white-space:nowrap}.course-lesson-meta>span{font-size:21px;color:var(--course-green)}.course-footnote{font-size:12px;color:var(--muted);line-height:1.8;margin:25px 0 0!important;max-width:760px}.course-related{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0 10px}.course-related a{display:inline-flex;align-items:center;min-height:44px;gap:8px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;font-size:13px;text-decoration:none;background:var(--panel);color:var(--ink)}.course-origin{display:inline-flex;align-items:center;min-height:44px;font-size:13px;gap:8px;margin-bottom:15px}
.course-session-header{display:flex;align-items:center;gap:16px;max-width:820px;margin:0 auto 16px;font-size:13px;color:var(--muted)}.course-session-header>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-session-header small{white-space:nowrap}.course-back{border:0;padding:9px 0;background:none;color:var(--ink);font-size:12px!important;min-height:44px;font-weight:650!important}.course-phases{display:flex;justify-content:space-between;gap:10px;list-style:none;padding:0;margin:0 auto 16px;max-width:820px}.course-phases li{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;line-height:1.5;flex:1;white-space:nowrap}.course-phases li>span{width:25px;height:25px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:11px;flex-shrink:0}.course-phases .is-active{color:var(--ink);font-weight:700}.course-phases .is-active>span{background:var(--course-green);color:var(--course-on-green);border-color:var(--course-green)}.course-phases .is-done>span{background:var(--course-tint);color:var(--course-green);border-color:var(--course-green)}.course-session-progress{max-width:820px;margin:0 auto 24px}.course-step{max-width:820px;margin-inline:auto;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:30px 36px}.course-step> .course-eyebrow{margin-bottom:15px}.course-step h1,.course-step h2{font-size:clamp(23px,2.5vw,30px);margin:0 0 20px;max-width:35ch}.course-step p{font-size:16px;line-height:1.95;color:var(--ink)}.course-step .course-example{background:var(--course-gold-tint);border:1px solid var(--line);border-radius:14px;padding:23px;margin:25px 0}.course-example>p{font-family:var(--arabic,Amiri,serif);font-size:32px;line-height:2.1;text-align:center;margin:0 0 12px;overflow-wrap:anywhere}.course-example figcaption{text-align:center;line-height:1.8;font-size:14px}.course-example figcaption strong{font-weight:650;display:block}.course-example figcaption span{display:block;margin-top:9px;font-size:13px;color:var(--muted)}.course-instruction{font-size:13px!important;color:var(--muted)!important;line-height:1.8!important;margin-bottom:18px!important}
.course-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.course-choices button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:75px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px;color:var(--ink);font-size:15px;line-height:1.7;text-align:start}.course-choices button b{font-size:16px;font-weight:500;flex-shrink:0;color:var(--muted)}.course-choices button[aria-pressed="true"]{background:var(--course-tint);border-color:var(--course-green);box-shadow:inset 0 0 0 1px var(--course-green)}.course-choices button[aria-pressed="true"] b{color:var(--course-green)}.course-choices button:disabled{opacity:1}.course-word-bank{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.course-word-bank button,.course-build-answer button{font-family:var(--arabic,Amiri,serif);font-size:28px;line-height:1.8;min-height:62px;padding:8px 17px;background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--ink)}.course-word-bank button[aria-pressed="true"]{background:var(--course-tint);border-color:var(--course-green);box-shadow:inset 0 0 0 1px var(--course-green)}.course-word-bank button:disabled:not([aria-pressed]){opacity:.3}.course-selection-count{font-size:12px!important;color:var(--muted)!important;min-height:22px;margin:12px 0!important}.course-build-answer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:95px;padding:12px;background:var(--course-tint);border:1px dashed var(--course-green);border-radius:13px;margin:20px 0}.course-build-answer button{background:var(--panel);border-color:var(--course-green);font-size:27px;min-height:55px;padding:4px 12px}.course-build-empty{font-family:inherit;font-size:14px;color:var(--muted);width:100%;text-align:center}.course-edit-actions{display:flex;justify-content:space-between;gap:12px}.course-text-button{min-height:44px;background:none;border:0;color:var(--course-green);padding:8px 0;font-size:13px!important;text-decoration:underline;text-underline-offset:4px}.course-text-button:disabled{opacity:.4}.course-match{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.course-match>div{display:flex;flex-direction:column;gap:12px}.course-match button{display:grid;grid-template-columns:20px minmax(0,1fr);gap:6px 9px;align-items:center;min-height:90px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:14px;text-align:start;color:var(--ink);font-size:15px;line-height:1.6}.course-match button>span:nth-child(2){overflow-wrap:anywhere}.course-pair-number{font-size:10px!important;width:20px;height:20px;display:grid;place-items:center;background:var(--light);border-radius:50%;color:var(--muted)}.course-match small{grid-column:2;font-size:10px;color:var(--muted)}.course-match button[aria-pressed="true"]{border-color:var(--course-gold);background:var(--course-gold-tint);box-shadow:inset 0 0 0 1px var(--course-gold)}.course-match button.is-linked{border-color:var(--course-green);background:var(--course-tint)}.course-match button.is-linked .course-pair-number{background:var(--course-green);color:var(--course-on-green)}.course-match button:disabled{opacity:.7}.course-match button.is-linked:disabled{opacity:1}
.course-feedback{padding:20px;border-radius:12px;margin:22px 0 10px;border:1px solid}.course-feedback.is-correct{color:var(--course-green);background:var(--course-tint);border-color:var(--course-green)}.course-feedback.is-retry{color:var(--course-error);background:var(--course-error-tint);border-color:var(--course-error)}.course-feedback strong{display:block;font-size:16px;line-height:1.6;margin-bottom:7px}.course-feedback p{color:inherit;font-size:14px;line-height:1.85;margin:0}.course-step-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin:25px 0 20px}.course-step-actions .course-primary{min-width:180px}.course-step-actions .course-secondary{min-width:150px}.course-hint,.course-reminder,.course-sources,.course-verse{border-top:1px solid var(--line);padding:0;margin-top:20px}.course-hint summary,.course-reminder summary,.course-sources summary,.course-verse summary{cursor:pointer;min-height:48px;padding:13px 0;font-size:13px;font-weight:650;line-height:1.7;color:var(--ink)}.course-hint p{font-size:14px;color:var(--muted)}.course-reminder[open]{background:var(--light);padding:0 18px 18px;border:1px solid var(--line);border-radius:12px}.course-reminder h2{font-size:18px;margin-top:18px}.course-reminder p{font-size:14px}.course-reminder .course-example{padding:15px;margin:18px 0}.course-reminder .course-example>p{font-size:28px}.course-sources p{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:14px}.course-sources a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;gap:8px}.course-sources>div+div{border-top:1px solid var(--line);padding-top:8px}.course-verse summary b{font-size:11px;font-weight:500;margin-inline-start:12px;color:var(--muted)}.course-verse .course-quran{font-family:var(--arabic,Amiri,serif);font-size:30px;line-height:2.1;text-align:center;overflow-wrap:anywhere;margin:12px 0 18px;padding:14px;background:var(--light);border-radius:10px}.course-verse label{font-size:12px;color:var(--muted);display:block}.course-verse audio{width:100%;height:42px;display:block;margin:10px 0 12px}.course-verse a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;gap:8px}.course-verse>small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.course-audio-error{font-size:12px!important;color:var(--course-error)!important}.course-help{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:20px}.course-help>span{font-size:12px;color:var(--muted);width:100%;margin-bottom:1px}.course-help button{display:inline-flex;align-items:center;gap:12px;min-height:44px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:9px;padding:8px 12px;font-size:12px}.course-help button>span{font-size:10px;border:1px solid var(--muted);border-radius:50%;width:16px;height:16px;text-align:center;line-height:14px;color:var(--muted)}
.course-complete{max-width:700px;margin:10px auto;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:36px;text-align:center}.course-complete-seal{display:grid;place-items:center;background:var(--course-tint);color:var(--course-green);font-size:36px;width:72px;height:72px;margin:0 auto 22px;border:1px solid var(--course-green);border-radius:50%}.course-complete h1{font-size:32px;margin:15px 0 18px}.course-complete>p{color:var(--muted);font-size:15px;line-height:1.9}.course-complete .course-complete-goal{color:var(--ink);font-weight:600}.course-up-next{padding:22px;margin:26px 0 18px;background:var(--course-tint);border:1px solid var(--line);border-radius:13px;text-align:start}.course-up-next>small{font-size:10px;color:var(--course-gold);font-weight:700;letter-spacing:.08em}.course-up-next>strong{display:block;font-size:20px;line-height:1.5;margin:8px 0 16px}.course-up-next .course-primary{width:100%}.course-save-warning{background:var(--course-gold-tint);border:1px solid var(--course-gold);border-radius:10px;padding:14px 18px;font-size:13px;line-height:1.8;color:var(--course-gold)}.course-error,.course-status{max-width:700px;border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:30px;margin:20px auto}.course-error h2{font-size:24px}.course-error p{color:var(--muted);font-size:14px}.course-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.course-studio{padding-top:16px}.course-heading{margin-bottom:21px}.course-heading h1{font-size:29px;max-width:24ch}.course-heading p{font-size:14px;line-height:1.85}.course-dashboard{grid-template-columns:1fr;gap:12px;margin-bottom:28px}.course-next{padding:23px 22px}.course-next h2{font-size:23px}.course-next .course-primary{width:100%;min-height:50px}.course-progress-card{display:grid;grid-template-columns:auto 1fr;gap:2px 20px;padding:18px 22px;align-items:center}.course-progress-card>.course-eyebrow{grid-column:1}.course-progress-card>strong{grid-column:1;font-size:31px;margin:0}.course-progress-card>p:not(.course-review-note){grid-column:1;margin:0;font-size:11px}.course-progress-card>.course-mini-progress{grid-column:2;grid-row:2;width:100%;min-width:70px}.course-progress-card>.course-review-note,.course-progress-card>.course-review-button{grid-column:2;grid-row:1 / 4;margin:0!important}.course-progress-card:has(.course-review-note)>.course-mini-progress,.course-progress-card:has(.course-review-button)>.course-mini-progress{grid-column:1;grid-row:4;margin-top:9px}.course-review-note{font-size:11px!important;line-height:1.8}.course-review-button{min-height:48px;font-size:12px!important;padding:9px}.course-unit>header{gap:12px}.course-unit>header h2{font-size:20px}.course-unit>header p{font-size:12px}.course-lesson{padding:17px 15px;gap:12px}.course-lesson strong{font-size:15px}.course-lesson small{font-size:12px}.course-lesson-mark{width:30px;height:30px}.course-lesson-meta{font-size:10px;gap:8px;flex-direction:column}.course-session-header{gap:12px;font-size:12px;margin-bottom:10px}.course-phases{gap:6px;margin-bottom:14px}.course-phases li{font-size:10px;gap:5px}.course-phases li>span{width:22px;height:22px;font-size:10px}.course-session-progress{margin-bottom:18px}.course-step{padding:24px 20px;border-radius:15px}.course-step h1,.course-step h2{font-size:24px}.course-step p{font-size:15px;line-height:1.95}.course-step .course-example{padding:17px;margin:22px 0}.course-example>p{font-size:30px!important}.course-example figcaption{font-size:13px}.course-example figcaption span{font-size:12px}.course-choices{gap:10px}.course-choices button{min-height:80px;padding:13px;font-size:14px;line-height:1.7}.course-word-bank{gap:8px}.course-word-bank button{font-size:26px;min-height:59px;padding:7px 12px}.course-build-answer{padding:10px;min-height:84px}.course-build-answer button{font-size:25px;min-height:51px;padding:5px 10px}.course-match{gap:12px}.course-match button{padding:12px 10px;gap:5px 7px;font-size:13px;min-height:105px;grid-template-columns:17px minmax(0,1fr)}.course-match small{font-size:9px}.course-pair-number{width:17px;height:17px;font-size:9px!important}.course-feedback{padding:17px}.course-feedback p{font-size:14px}.course-step-actions{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:2;background:var(--panel);padding:10px 0;border-top:1px solid var(--line);margin-top:22px;flex-wrap:wrap}.course-step-actions .course-primary{flex:1;width:100%;min-height:50px}.course-step-actions .course-secondary{flex:1}.course-complete{padding:28px 22px}.course-complete h1{font-size:29px}.course-up-next{padding:20px}.course-origin{font-size:12px}.course-related{display:grid;grid-template-columns:1fr}.course-related a{padding:12px 15px}}
@media(max-width:370px){.course-step{padding:21px 15px}.course-heading h1{font-size:27px}.course-next{padding:21px 18px}.course-next h2{font-size:21px}.course-progress-card{padding:17px;gap:3px 12px}.course-phases li{flex-direction:column;gap:4px;align-items:flex-start;font-size:11px}.course-match{gap:9px}.course-match button{padding:10px 8px;font-size:12px;grid-template-columns:15px minmax(0,1fr)}.course-match .course-pair-number{width:15px;height:15px}.course-choices{grid-template-columns:1fr}.course-choices button{min-height:62px}.course-lesson{gap:9px;padding:16px 12px}.course-lesson-mark{width:26px;height:26px}.course-lesson strong{font-size:14px}.course-lesson small{font-size:11px}.course-word-bank button{padding:7px 10px;font-size:25px}.course-build-answer button{font-size:24px}}
@media(max-width:760px){.course-step-explain .course-step-actions{position:static}.course-step{scroll-margin-bottom:calc(150px + env(safe-area-inset-bottom,0px))}}
@media(max-width:760px) and (max-height:700px){.course-step-actions{position:static}}
@media(prefers-reduced-motion:reduce){.course-mini-progress>span,.course-session-progress>span{transition:none}}

.course-studio .course-step.course-step-explain>.course-step-actions{position:static!important;bottom:auto!important}
.course-studio .course-word-bank[lang="en"] button,.course-studio .course-build-answer[lang="en"] button{font-family:inherit;font-size:16px;line-height:1.65;letter-spacing:0;min-height:50px;text-align:start}

/* v28: start learning before secondary routes and long introduction. */
.course-path-heading{margin-bottom:20px}.course-path-heading h1{margin:7px 0 9px}.course-path-heading p{font-size:14px;line-height:1.65;margin-bottom:0}
.course-about{border-bottom:1px solid var(--line);margin:0 0 26px}.course-about summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:13px;font-weight:600;color:var(--muted)}.course-about summary:after{content:'+';margin-inline-start:auto;color:var(--green);font-size:18px}.course-about[open] summary:after{content:'−'}.course-about p{font-size:14px;line-height:1.8;color:var(--muted);max-width:70ch;margin:0 0 18px}
@media(max-width:760px){.course-studio{padding-top:12px}.course-path-heading{margin-bottom:16px}.course-path-heading h1{font-size:26px;line-height:1.32;max-width:24ch;margin:6px 0 9px}.course-studio[dir=rtl] .course-path-heading h1{line-height:1.55}.course-path-heading .course-eyebrow{font-size:11px}.course-path-heading p{font-size:13px;line-height:1.6}.course-dashboard{margin-bottom:16px}.course-next{padding:20px}.course-next h2{font-size:22px;margin:7px 0 9px}.course-next p{font-size:14px;line-height:1.75;margin-bottom:12px}.course-next small{font-size:12px;margin-bottom:14px}.course-progress-card{padding:15px 20px}.course-progress-card>.course-review-note{font-size:12px!important}.course-about{margin-bottom:24px}}
/* v32: explicit lesson goal bar, diagnostic scaffolding, passage reader slot & confidence calibration */
.course-goal-bar{max-width:820px;margin:0 auto 14px;padding:10px 16px;border-radius:12px;border:1px solid var(--line);background:var(--course-tint);font-size:13px;line-height:1.65;color:var(--ink);display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline}
.course-goal-bar strong{color:var(--course-green);font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.course-studio[dir=rtl] .course-goal-bar strong{letter-spacing:0}
.course-goal-profile{font-size:12px;color:var(--muted);width:100%}
.course-diagnostic{margin-bottom:8px!important;font-weight:550}
.course-hint-inline{margin-top:8px!important;padding-top:8px;border-top:1px dashed currentColor;font-size:13px!important;opacity:.92}
.course-confidence{margin:20px 0;padding:18px;border-radius:13px;border:1px solid var(--line);background:var(--light);text-align:start}
.course-confidence strong{display:block;font-size:14px;margin-bottom:6px;color:var(--ink)}
.course-confidence p{font-size:13px;color:var(--muted);margin:0 0 12px;line-height:1.65}
.course-confidence-actions{display:flex;flex-wrap:wrap;gap:10px}
.course-confidence-actions button{flex:1 1 200px;min-height:46px;padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:13px;font-weight:650;text-align:start}
.course-confidence-actions button[aria-pressed="true"]{border-color:var(--course-green);background:var(--course-tint);color:var(--course-green);box-shadow:inset 0 0 0 1px var(--course-green)}
[data-course-passage-reader]{margin:10px 0 16px}

/* Arabic readers choose grammar depth, not alphabet literacy. */
.course-level-choice{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);}
.course-level-choice h2{font-size:20px;margin:0 0 8px;line-height:1.65;}
.course-level-choice p{font-size:14px;line-height:1.9;color:var(--muted);margin:0 0 16px;max-width:70ch;}
.course-level-choice [role=group]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.course-level-choice button{min-height:64px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:inherit;line-height:1.6;font-weight:650;}
.course-level-choice button small{display:block;font-size:12px;font-weight:400;}
.course-level-choice button[aria-pressed=true]{background:var(--course-green,var(--green));color:var(--on-accent,#fff);border-color:var(--course-green,var(--green));}
@media(max-width:520px){.course-level-choice{padding:14px}.course-level-choice [role=group]{grid-template-columns:repeat(2,minmax(0,1fr));}.course-level-choice h2{font-size:19px}.course-level-choice button{font-size:14px}}

/* Optional lesson resources use the same validated notes, with one recall prompt at a time. */
.course-session-header .course-resource-link{min-height:44px;white-space:normal;font-size:13px;padding:8px 10px;flex-shrink:0}.course-resources>h1{max-width:none}.course-resource-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.course-resource-actions button{min-height:44px}.course-resource-notice:empty{display:none}.course-resource-notice{font-size:13px!important;color:var(--muted)!important}.course-recall{border:1px solid var(--line);background:var(--light);border-radius:14px;padding:22px;margin:24px 0}.course-recall-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.course-recall-heading h2{margin:0;font-size:21px}.course-recall-heading>span{white-space:nowrap;font-size:13px;color:var(--muted)}.course-recall h3{font-size:18px;line-height:1.8;margin:18px 0}.course-recall-context{padding-inline-start:26px;line-height:1.9}.course-recall-context[lang=ar]{font-family:var(--arabic,Amiri,serif);font-size:25px;line-height:2}.course-recall-context li{padding:4px 0}.course-recall>[data-course-action="recall-reveal"]{min-height:44px}.course-recall-answer,[id="course-recall-answer"]{padding-top:18px;line-height:1.9;overflow-wrap:anywhere}#course-recall-answer[hidden]{display:none}.course-recall-paging{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.course-recall-paging button{min-height:44px;flex:1}.course-rule-notes{padding-block:18px;border-top:1px solid var(--line)}.course-rule-notes summary{cursor:pointer;min-height:44px;font-weight:650}.course-rule-notes h2{margin-top:22px;font-size:22px}.course-resource-link{color:var(--course-green)}
@media(max-width:540px){.course-session-header{flex-wrap:wrap}.course-session-header .course-resource-link{margin-inline-start:auto}.course-recall{padding:16px}.course-recall-heading h2{font-size:19px}.course-recall h3{font-size:17px}.course-resource-actions{display:grid;grid-template-columns:1fr}.course-resource-actions button{width:100%}.course-recall-paging button{font-size:13px;padding:9px}.course-resources .course-footnote{margin-top:14px!important}}
/* Token recall keeps ordered word positions while wrapping into readable chips. */
.course-recall-context[lang="ar"]{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;padding-inline-start:0;list-style-position:inside;margin:16px 0;line-height:1.7}
.course-recall-context[lang="ar"] li{display:list-item;box-sizing:border-box;min-height:44px;max-width:100%;padding:5px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow-wrap:anywhere}
.course-recall-context[lang="ar"] li::marker{font-family:var(--font-ui,Arial,sans-serif);font-size:11px;font-weight:600;color:var(--muted)}
.course-studio[lang="ar"] .course-recall-context[lang="ar"]{list-style-type:arabic-indic}

/* Focused recall prompts stay below the sticky application header. */
.course-studio [data-course-recall-prompt]{scroll-margin-top:var(--course-scroll-offset,144px);scroll-margin-bottom:100px}

/* Language, close reading and Imami evidence share one saved learning history. */
.course-track-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 26px;max-width:1080px}
.course-track-choice button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:78px;padding:14px 18px;text-align:start;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--ink);line-height:1.55}
.course-track-choice strong{font-size:16px;font-weight:700;overflow-wrap:anywhere}
.course-track-choice small{display:block;margin-top:4px;font-size:12px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.course-track-choice button[aria-pressed="true"]{border-color:var(--course-green);background:var(--course-tint);box-shadow:inset 0 0 0 1px var(--course-green)}
.course-track-choice button[aria-pressed="true"] strong{color:var(--course-green)}
.course-evidence-intro{margin:0 0 24px;padding:22px 24px;border:1px solid var(--line);border-radius:15px;background:var(--panel)}
.course-evidence-intro h2{font-size:22px;margin:0 0 12px}
.course-evidence-intro p{font-size:14px;line-height:1.9;max-width:78ch;color:var(--muted);margin:0 0 15px}
.course-evidence-intro ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 26px;padding-inline-start:22px;margin:18px 0 22px}
.course-evidence-intro li{font-size:14px;line-height:1.8;padding-inline-start:4px}
.course-evidence-intro li::marker{color:var(--course-green);font-weight:700}
.course-studio[dir="rtl"] .course-evidence-intro ol{list-style-type:arabic-indic}
.course-evidence-intro details{border-top:1px solid var(--line)}
.course-evidence-intro summary,.course-language-bridges summary{min-height:48px;padding:12px 0;line-height:1.8;font-size:13px;font-weight:650;cursor:pointer}
.course-evidence-intro details p{margin:0 0 4px;font-size:13px}
.course-language-bridges{border-top:1px solid var(--line);margin-top:20px}
.course-language-bridges p{font-size:13px;line-height:1.9;color:var(--muted);margin:0 0 14px}
.course-language-bridges>div{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.course-language-bridges button{min-height:44px;text-align:start;max-width:100%;font-size:13px!important}
.course-other-session{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;margin:-12px 0 24px;border:1px solid var(--line);border-radius:12px;background:var(--light)}
.course-other-session p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
.course-other-session button{flex-shrink:0;font-size:13px!important}
@media(max-width:640px){.course-track-choice{grid-template-columns:1fr;gap:7px;margin-bottom:22px}.course-track-choice button{min-height:66px;padding:10px 14px}.course-track-choice strong{font-size:15px}.course-track-choice small{font-size:12px;margin-top:2px}}
@media(max-width:540px){.course-evidence-intro{padding:18px}.course-evidence-intro h2{font-size:20px}.course-evidence-intro ol{grid-template-columns:1fr;gap:8px;margin:16px 0}.course-other-session{align-items:flex-start;flex-direction:column}.course-other-session button{width:100%}.course-language-bridges>div{display:grid;grid-template-columns:minmax(0,1fr)}.course-language-bridges button{width:100%;justify-content:flex-start}}

.course-balagha-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 16px;align-items:center;margin:24px 0 10px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--course-tint);color:var(--ink)!important;text-decoration:none;min-height:64px}
.course-balagha-link strong{font-size:15px;line-height:1.75}.course-balagha-link>span:not([aria-hidden]){grid-column:1;font-size:12px;line-height:1.8;color:var(--muted)}.course-balagha-link>[aria-hidden]{grid-column:2;grid-row:1 / 3;font-size:21px;color:var(--course-green)}.course-language-bridges .course-balagha-link{margin:12px 0 6px;padding:12px 14px}

/* Keep the next answer action above the fixed phone navigation after feedback. */
.course-step-actions [data-course-action="next"],.course-step-actions [data-course-action="retry"]{scroll-margin-bottom:calc(96px + env(safe-area-inset-bottom,0px))}

/* Lesson context is already above this compact optional narration control. */
[data-course-passage-reader] .mpr-source-name,[data-course-passage-reader] .mpr-kind-pill{display:none}
[data-course-passage-reader] .mpr-shell{margin:0;padding:8px}
[data-course-passage-reader] .mpr-bar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center}
[data-course-passage-reader] .mpr-play-btn{grid-column:1;grid-row:1;position:relative;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;gap:0}
[data-course-passage-reader] .mpr-play-btn [data-mpr-play-label]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-course-passage-reader] .mpr-meta{grid-column:2;grid-row:1;min-width:0;max-width:100%}
[data-course-passage-reader] .mpr-mode-pill{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.45;padding:5px 7px;border-radius:9px}
[data-course-passage-reader] .mpr-gear-btn{grid-column:3;grid-row:1;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0}
[data-course-passage-reader] .mpr-transport{grid-column:1 / -1;grid-row:2;width:100%;min-width:0;flex-wrap:wrap;justify-content:space-between}
/* The tablet side rail leaves too little room for a fixed 260px progress column. */
@media(min-width:761px) and (max-width:1000px){
 .course-dashboard{grid-template-columns:1fr;gap:14px}
 .course-next{padding:24px}
 .course-progress-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 24px;padding:20px 24px}
 .course-progress-card>.course-eyebrow,.course-progress-card>strong,.course-progress-card>p:not(.course-review-note){grid-column:1;margin:0}
 .course-progress-card>strong{font-size:32px}
 .course-progress-card>.course-mini-progress{grid-column:1;grid-row:4;margin-top:8px}
 .course-progress-card>.course-review-note,.course-progress-card>.course-review-button{grid-column:2;grid-row:1 / 5;margin:0!important}
}

/* Language precision stays inside the existing course, with explicit verse discovery. */
.course-precision-entry{display:flex;align-items:center;gap:22px;padding:22px 24px;margin:0 0 22px;border:1px solid var(--course-gold);border-radius:15px;background:var(--course-gold-tint)}
.course-precision-entry>div{flex:1;min-width:0}.course-precision-entry h2{font-size:22px;margin:5px 0 8px}.course-precision-entry p{font-size:14px;line-height:1.8;margin:0;max-width:67ch}.course-precision-entry>button{flex-shrink:0;max-width:240px}
.course-search{margin:0 0 24px;scroll-margin-top:150px}.course-search label{display:block;font-weight:650;font-size:15px;margin-bottom:9px}.course-search>div{display:flex;gap:9px;align-items:stretch}.course-search input{min-width:0;flex:1;min-height:48px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:15px;background:var(--panel);color:var(--ink)}.course-search input:focus-visible{outline:3px solid var(--course-focus);outline-offset:3px}.course-search p{font-size:12px;color:var(--muted);margin:8px 0 0;line-height:1.7}.course-search-count{font-size:14px;color:var(--muted);margin-bottom:15px!important}.course-no-results{border:1px dashed var(--line);border-radius:14px;padding:25px}.course-no-results h2{font-size:21px;margin:0 0 12px}.course-no-results p{font-size:14px;margin:0}
@media(max-width:760px){.course-precision-entry{display:block;padding:20px}.course-precision-entry h2{font-size:21px}.course-precision-entry>button{margin-top:15px;max-width:none;width:100%}.course-search>div{flex-wrap:wrap}.course-search input{flex-basis:100%;font-size:16px}.course-search button{flex:1}.course-precision-entry p{font-size:13px}}
.course-precision-method{margin-bottom:18px!important}.course-precision-method p{margin-bottom:0}.course-verse-tafsir{margin-inline-start:15px}.course-step-verse-links{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;border-top:1px solid var(--line);padding-top:14px;margin-top:20px;font-size:12px}.course-step-verse-links strong{font-size:12px;color:var(--muted)}.course-step-verse-links a{display:inline-flex;align-items:center;min-height:44px;line-height:1.6}
.course-search-resume{margin:0 0 18px}.course-search-resume .course-secondary{min-height:44px;padding:8px 14px;font-size:12px!important}

/* Put reviewed media in a named, direct entry point rather than an unlabeled duration tile. */
.course-reviewed-media{border:1px solid var(--line);border-radius:14px;padding:18px;margin-block:0 20px;background:var(--light)}.course-reviewed-media h2{font-size:1.15rem;line-height:1.5;margin:0 0 5px;scroll-margin-top:150px}.course-reviewed-media>p{font-size:.9rem;line-height:1.7;color:var(--muted);margin:0 0 14px}.course-learning-modes.course-media-links,.course-learning-modes.course-reading-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.course-learning-modes.course-media-links{margin:0}.course-learning-modes.course-media-links>button{display:grid;grid-template-columns:24px minmax(0,1fr);text-align:start;align-items:center;gap:5px 10px;padding:14px;min-height:90px}.course-media-links .course-mode-icon{grid-row:1 / span 2}.course-media-links strong{font-size:15px}.course-media-links small{grid-column:2}.course-studio[lang=ar] .course-media-links strong{font-size:17px;line-height:1.8}@media(max-width:540px){.course-reviewed-media{padding:14px}.course-learning-modes.course-media-links{grid-template-columns:1fr}.course-learning-modes.course-media-links>button{min-height:76px}.course-reviewed-media h2{scroll-margin-top:160px}}

.course-adult-step .course-lesson-wording { padding:.9rem 1rem;margin-block:1rem;border-inline-start:3px solid var(--course-green);border-radius:.4rem;background:var(--course-tint); }
.course-lesson-wording .course-example { margin:0;padding:0;border:0;background:transparent; }
.course-lesson-wording .course-anchor-link { display:inline-flex;align-items:center;gap:.35rem;min-height:44px;color:var(--course-green);text-underline-offset:.2em;font-weight:650; }
@media (max-width:540px) {
 .course-adult-step .course-lesson-wording { padding:.7rem .8rem; }
}

.course-studio .course-collection{max-width:54rem;margin-inline:auto;color:var(--ink)}
.course-collection h1{margin:.65rem 0;font-size:clamp(1.4rem,4vw,2rem);line-height:1.5}
.course-collection ol{padding-inline-start:1.6rem}
.course-collection li{border-block-start:1px solid var(--line);padding:.75rem .2rem;margin:0}
.course-collection p{max-width:70ch;margin:.15rem 0 .45rem;line-height:1.65}
.course-collection .cc-lesson,.course-collection .cc-ayah{display:inline-flex;align-items:center;min-height:44px;color:var(--green)}
.course-collection .cc-lesson{font-size:1.08rem;font-weight:700}
.course-collection .cc-ayah{gap:.3em}

/* v97: overview, current step and section destinations share an explicit hierarchy. */
.course-session-nav{max-width:820px;margin:0 auto 1rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem;padding:.75rem;border:1px solid var(--line);border-inline-start:4px solid var(--course-green);border-radius:.8rem;background:var(--course-tint)}
.course-studio .course-session-nav .course-back{min-height:44px;padding:.55rem .8rem;border:1px solid var(--course-green);border-radius:.55rem;background:var(--panel);font-size:1rem!important;font-weight:750!important;text-decoration:underline;text-underline-offset:.2em}
.course-step-travel{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.course-step-position{font-size:.875rem;font-weight:750;white-space:nowrap}
.course-studio .course-session-header{align-items:flex-start;margin-block:1rem;gap:.8rem}.course-session-header>div{flex:1;min-width:0}.course-session-header h2{margin:.2rem 0 0;font-size:clamp(1.3rem,3.7vw,1.75rem);line-height:1.55;color:var(--ink);font-weight:750}.course-session-header .course-eyebrow{font-size:.875rem;letter-spacing:.04em}.course-studio[dir=rtl] .course-session-header .course-eyebrow{letter-spacing:0}
.course-goal-bar{display:block;padding:1rem;font-size:1rem;line-height:1.8;border-inline-start:4px solid var(--course-green)}.course-goal-bar strong{display:block;font-size:.875rem;letter-spacing:0;margin-bottom:.2rem}.course-goal-profile{display:block;font-size:.875rem;margin-top:.4rem}
.course-steps-index{max-width:820px;margin:0 auto .85rem;border:1px solid var(--line);border-radius:.7rem;background:var(--panel);overflow:hidden}.course-steps-index>summary{min-height:44px;padding:.65rem 1rem;align-content:center;font-size:.875rem;font-weight:750;cursor:pointer}.course-steps-index ol{list-style:none;padding:.4rem;margin:0;display:grid;gap:.35rem}.course-steps-index button{display:grid;grid-template-columns:1.6rem minmax(0,1fr) auto;gap:.55rem;text-align:start;align-items:center;width:100%;min-height:48px;padding:.65rem;border:1px solid var(--line);border-radius:.5rem;background:var(--panel);color:var(--ink);font:inherit}.course-steps-index button strong{font-size:1rem;line-height:1.6}.course-steps-index button small{font-size:.875rem}.course-steps-index button[aria-current=step]{border-color:var(--course-green);background:var(--course-tint);box-shadow:inset 3px 0 var(--course-green)}.course-studio[dir=rtl] .course-steps-index button[aria-current=step]{box-shadow:inset -3px 0 var(--course-green)}.course-steps-index button:disabled{opacity:.65;cursor:default}
.course-section-tiles{max-width:820px;margin:0 auto 1rem;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem}.course-studio .course-section-tiles button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;min-height:64px;padding:.55rem .4rem;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);color:var(--course-green);font-size:.875rem!important;font-weight:700;white-space:normal;text-align:center;line-height:1.5}.course-section-tiles svg{width:1.35rem;height:1.35rem;flex:none}.course-section-tiles button:disabled{color:var(--muted);opacity:.65;cursor:default}.course-section-tiles button:first-child{border-color:var(--course-green);background:var(--course-tint)}
.course-revisit-note{max-width:820px;margin:.7rem auto;padding:.75rem 1rem;border-inline-start:3px solid var(--course-green);background:var(--course-tint);font-size:1rem;line-height:1.7}.course-studio :is(.course-session-nav,.course-section-tiles,.course-steps-index) :is(button,a,summary):focus-visible{outline:3px solid var(--focus-ring,var(--course-green));outline-offset:3px}.course-studio :is(.course-sources,.course-verse,.course-reminder,[data-course-focus]){scroll-margin-top:var(--course-scroll-offset,160px)}
@media(max-width:560px){.course-section-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.course-studio .course-session-nav{align-items:stretch}.course-step-travel{width:100%;justify-content:space-between}.course-step-travel button{flex:1}.course-steps-index button{grid-template-columns:1.4rem minmax(0,1fr)}.course-steps-index button small{grid-column:2}.course-studio .course-step p{font-size:1rem}.course-studio .course-session-header .course-resource-link{font-size:.875rem}.course-studio .course-back,.course-studio .course-origin{font-size:.875rem!important}}
@media(prefers-reduced-motion:reduce){.course-studio *{scroll-behavior:auto!important}}


/* /study-path.css */
/* Study is a page; the v5 .study-path class styles a horizontal homepage button. */
.study-landing {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:1rem;
  box-sizing:border-box;
  inline-size:100%;
  max-inline-size:54rem;
  margin-inline:auto;
  color:var(--ink);
  text-align:start;
}
.study-landing *, .study-landing *::before, .study-landing *::after {box-sizing:border-box}
.study-landing > *, .study-landing .sp-group, .study-landing .sp-rows {min-inline-size:0}
.study-landing :is(h1,h2,p,blockquote){margin:0;letter-spacing:normal}
.study-landing .sp-ayah {
  margin:0;
  padding:clamp(1rem,4vw,2.15rem);
  background:var(--panel);
  border:1px solid var(--line);
  border-block-start:3px solid var(--green);
  border-radius:.9rem;
}
.study-landing .sp-ref{
  color:var(--muted);
  font-size:.94rem;
  font-weight:650;
  line-height:1.6;
}
.study-landing .sp-ref bdi {white-space:nowrap;font-variant-numeric:tabular-nums}
.study-landing .sp-ayah blockquote,.study-landing .sp-opening{
  display:block;
  margin:0;
  padding:clamp(.75rem,2.5vw,1.1rem) 0;
  border:0;
  background:none;
  color:var(--ink);
  font:normal clamp(1.85rem,5.6vw,2.85rem)/1.95 var(--quran-font,Amiri,serif);
  text-align:start;
  overflow-wrap:break-word;
  word-break:normal;
}
.study-landing .sp-gloss {color:var(--muted);line-height:1.6;text-align:start}
.study-landing .sp-gloss cite {font-size:.875rem;font-style:normal}
.study-landing .sp-lesson {
  margin-block-start:.65rem;
  padding-block-start:1rem;
  border-block-start:1px solid var(--line);
}
.study-landing .sp-lesson h1 {font-size:clamp(1.12rem,3.2vw,1.45rem);line-height:1.5}
.study-landing .sp-question{margin:.25rem 0 0;line-height:1.7}
.study-landing .sp-excerpt summary {cursor:pointer;min-block-size:44px;list-style:none}
.study-landing .sp-excerpt summary::-webkit-details-marker{display:none}
.study-landing .sp-expand,.study-landing .sp-collapse{color:var(--green);font-size:.94rem;text-decoration:underline;text-underline-offset:.17em}
.study-landing .sp-excerpt .sp-collapse,.study-landing .sp-excerpt[open] :is(.sp-opening,.sp-expand){display:none}
.study-landing .sp-excerpt[open] .sp-collapse{display:inline-flex;align-items:center;min-block-size:44px}
.study-landing .sp-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-inline-size:100%;
  min-block-size:44px;
  margin-block-start:.8rem;
  padding:.5rem 1.05rem;
  color:var(--on-accent,#fff);
  background:var(--green);
  border-radius:.5rem;
  font-weight:700;
  text-decoration:none;
}
.study-landing .sp-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
.study-landing .sp-group h2 {margin:0 0 .35rem;font-size:1.12rem;line-height:1.6}
.study-landing .sp-rows{border-block-start:1px solid var(--line)}
.study-landing .sp-row{
  display:flex;
  align-items:center;
  min-inline-size:0;
  inline-size:100%;
  min-block-size:44px;
  padding:.65rem .1rem;
  border:0;
  border-block-end:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  line-height:1.6;
  text-align:start;
  text-decoration:none;
}
.study-landing .sp-row[hidden]{display:none}
.study-landing .sp-row[data-sp-current]{border:0;border-inline-start:3px solid var(--line);padding:.3rem .85rem}
.study-landing .sp-row small,.study-landing .sp-row strong{display:block}
.study-landing .sp-row small{color:var(--muted);font-size:.875rem}
.study-landing .sp-optional{border-block-end:1px solid var(--line);padding-inline:.1rem}
.study-landing .sp-optional summary {cursor:pointer;padding-block:.65rem;min-block-size:44px;font-weight:600}
.study-landing .sp-optional .sp-row:last-child {border:0}
.study-landing :is(a,button,summary):focus-visible{outline:3px solid var(--sd-focus,var(--green));outline-offset:2px}
@media(hover:hover){.study-landing :is(.sp-row,.sp-finder):hover{background:var(--pale)}.study-landing .sp-primary:hover{text-decoration:underline}}
.study-landing .sp-finder,.li-return,.lesson-index .li-top a,.lesson-index .li-verse,.lesson-index .li-pages a{
  display:inline-flex;align-items:center;min-height:44px;font-weight:650;color:var(--green);
}
.study-landing .sp-finder{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.15rem;
  padding:.85rem 1rem;
  border:1px solid var(--line);
  border-radius:.65rem;
  background:var(--panel);
  color:var(--ink);
  line-height:1.55;
  text-decoration:none;
}
.study-landing .sp-finder small{font-size:.94rem;font-weight:400;color:var(--muted)}
.lesson-index{max-width:56rem;margin-inline:auto;text-align:start;color:var(--ink)}
.lesson-index h1{margin:.35rem 0 1rem;line-height:1.35}
.lesson-index .li-intro{max-inline-size:48rem;margin-block:-.35rem 1.1rem;line-height:1.65;color:var(--muted)}
.li-lesson-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:.15rem .5rem}
.li-lesson-tags a{display:inline-flex;align-items:center;min-block-size:2.75rem;padding-inline:.15rem;font-size:.875rem;line-height:1.5;color:var(--green);text-decoration:underline;text-underline-offset:.2em}
.li-lesson-tags a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.lesson-index .li-tag{display:block;font-size:.875rem;line-height:1.5;color:var(--green);margin-block:.2rem}
.lesson-index .li-top,.lesson-index .li-pages{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap}
.lesson-index form{background:var(--panel);border:1px solid var(--line);border-radius:.8rem;padding:clamp(.9rem,3vw,1.4rem)}
.lesson-index label{display:grid;gap:.3rem;font-size:.95rem;font-weight:600}
.lesson-index label[hidden]{display:none}
.lesson-index :is(input,select){width:100%;min-width:0;min-height:44px;padding:.5rem .65rem;border:1px solid var(--line);border-radius:.45rem;background:var(--panel);color:var(--ink);font:inherit;font-size:1rem}
.lesson-index .li-filter-options{margin-block-start:.55rem}
.lesson-index .li-filter-options summary{min-block-size:44px;padding-block:.6rem;cursor:pointer;color:var(--green);font-size:.94rem;font-weight:600}
.lesson-index .li-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.7rem;margin-top:.25rem}
.lesson-index [data-li-numbering]{margin-top:.75rem}
.lesson-index .li-status{margin:1.15rem 0 .4rem;font-size:.94rem;color:var(--muted)}
.lesson-index ul{list-style:none;padding:0;margin:0}
.lesson-index li{padding:.55rem .15rem;border-block-start:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
.lesson-index .li-open{display:grid;text-decoration:none;color:var(--ink);line-height:1.5;min-height:44px}
.lesson-index .li-type{font-size:.875rem;color:var(--muted)}
.lesson-index .li-ayah-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin-block:.65rem 1.3rem}
.lesson-index .li-ayah-actions a{display:inline-flex;align-items:center;justify-content:center;min-block-size:44px;max-inline-size:100%;padding:.55rem .9rem;border-radius:.45rem;line-height:1.5;font-weight:650;text-decoration:none}
.lesson-index .li-explanation{background:var(--green);color:var(--on-accent,#fff)}
.lesson-index .li-source{background:var(--panel);color:var(--green);border:1px solid var(--line)}
.lesson-index .li-ayah-group h2{font-size:1.08rem;line-height:1.55}
.lesson-index .li-ayah-group[data-li-relation] h2{padding-block:.55rem}
.lesson-index .li-relation-note{margin-block:.55rem;line-height:1.65;font-size:.94rem;color:var(--muted)}
.lesson-index .li-verse{font-size:.94rem}
.lesson-index [data-li-clear],.lesson-index [data-li-retry]{min-height:44px;font:inherit;color:var(--green);border-radius:.4rem;border:1px solid var(--line);background:var(--panel);padding:.4rem .8rem}
.lesson-index .li-pages{border-block-start:1px solid var(--line);margin-block-end:.5rem}
.lesson-index :is(a,button,select,input,summary):focus-visible,.li-return:focus-visible{outline:3px solid var(--sd-focus,var(--green));outline-offset:2px}
@media(min-width:46rem){.lesson-index li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center}}
.lesson-index .li-scope-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:1rem 0 1.2rem;}
.lesson-index .li-scope-menu a{display:flex;align-items:flex-start;gap:.6rem;padding:.85rem;border:1.5px solid var(--line);border-radius:.7rem;background:var(--panel);color:var(--ink);min-height:44px;text-decoration:none;}
.lesson-index .li-scope-menu a[aria-current="page"]{border-color:var(--green);background:var(--pale);}
.lesson-index .li-scope-menu svg{width:1.35rem;height:1.35rem;flex:none;color:var(--green);margin-top:.15rem;}
.lesson-index .li-scope-menu strong{display:block;font-size:1rem;color:var(--green);}
.lesson-index .li-scope-menu small{display:block;margin-top:.35rem;font-size:.875rem;line-height:1.55;color:var(--ink);}
.lesson-index .li-open strong{text-decoration:none;}
.li-detail-overview{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;margin:0 auto 1rem;padding:.55rem .9rem;max-width:68rem;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);}
.li-detail-overview a{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:.2em;}
@media(max-width:620px){.lesson-index .li-scope-menu{grid-template-columns:1fr;gap:.4rem;}.lesson-index .li-scope-menu a{padding:.65rem .8rem;}.lesson-index .li-scope-menu small{margin-top:.1rem;}}
.lesson-index .li-ayah-preview{margin-top:.75rem;padding:.1rem .8rem;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);}
.lesson-index .li-ayah-preview[hidden]{display:none;}
.lesson-index .li-ayah-preview>summary{min-height:44px;padding:.6rem .2rem;cursor:pointer;font-weight:700;color:var(--green);line-height:1.5;}
.lesson-index .li-ayah-preview>summary bdi{margin-inline-start:.4rem;}
/* v97: put the choices before the saved passage, with matching visual roles. */
.study-landing{max-inline-size:62rem;gap:1.25rem}
.study-landing .sp-heading>p:first-child{font-size:.87rem;font-weight:800;letter-spacing:.04em;color:var(--green)}
.study-landing .sp-heading h1{font-size:clamp(1.65rem,4vw,2.25rem);font-weight:850;line-height:1.35;margin:.4rem 0 .55rem}
.study-landing .sp-heading>p:last-child{max-inline-size:46rem;font-size:1.06rem;line-height:1.75;color:var(--muted)}
.study-landing .sp-start-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.study-landing .sp-start-grid :is(.sp-finder,.sp-start-card){display:flex;flex-direction:column;align-items:flex-start;gap:1rem;padding:1.15rem;border:1px solid var(--line);border-block-start:4px solid var(--lesson-accent);border-radius:.8rem;background:var(--panel);color:var(--ink);text-decoration:none;min-inline-size:0;min-block-size:10.75rem;line-height:1.55}
.study-landing .sp-start-grid .le-icon{width:2.6rem;height:2.6rem;margin:0;padding:.5rem;border-radius:.6rem;background:var(--lesson-tint);color:var(--lesson-accent);flex:none}
.study-landing .sp-start-grid strong{display:block;font-size:1.12rem;font-weight:800}
.study-landing .sp-start-grid small{display:block;margin-top:.5rem;font-size:.97rem;font-weight:400;line-height:1.65;color:var(--muted)}
.study-landing .sp-row[data-sp-current]{padding:.75rem 1rem;border:1px solid var(--line);border-inline-start:4px solid var(--green);border-radius:.55rem;background:var(--pale);gap:.6rem}
.study-landing .sp-row[data-sp-current] strong{font-size:1.05rem;font-weight:750}
.study-landing .sp-ayah{padding:1rem 1.3rem;border-block-start-width:1px}
.study-landing .sp-ayah blockquote,.study-landing .sp-opening{font-size:clamp(1.7rem,3.5vw,2.2rem);line-height:1.85}
.study-landing .sp-lesson{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem}
.study-landing .sp-lesson h2{font-size:1.17rem;line-height:1.6;font-weight:800}
.study-landing .sp-lesson .sp-question{flex-basis:100%}
.study-landing .sp-primary{margin:0}
.study-landing .sp-optional{padding:.35rem 1rem;border:1px solid var(--line);border-radius:.65rem;background:var(--panel)}
.study-landing .sp-optional>summary{font-size:1.05rem;font-weight:800;color:var(--green)}
.study-landing .sp-row .le-icon{flex:none;color:var(--green);margin-inline-end:.65rem}
.lesson-index h1{font-size:clamp(1.8rem,4vw,2.35rem);font-weight:850}
.lesson-index .li-scope-menu a{border-block-start:4px solid var(--lesson-accent);gap:.75rem;padding:1rem}
.lesson-index .li-scope-menu :is(strong,svg){color:var(--lesson-accent)}
.lesson-index .li-scope-menu a[aria-current=page]{border-color:var(--lesson-accent);background:var(--lesson-tint)}
.lesson-index .li-scope-menu strong{font-size:1.08rem;font-weight:800}
.lesson-index .li-scope-menu small{font-size:.96rem}
.lesson-index .li-ayah-group{margin-block:1.3rem}
.lesson-index .li-ayah-group h2{font-size:1.2rem;font-weight:800;border-block-end:2px solid var(--line);padding-block-end:.6rem}
.lesson-index .li-ayah-group ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.lesson-index .li-ayah-group li{display:block;padding:0;border:1px solid var(--line);border-inline-start:4px solid var(--lesson-accent);border-radius:.65rem;background:var(--panel)}
.lesson-index .li-open{display:flex;align-items:flex-start;gap:.8rem;padding:1rem;min-block-size:8rem}
.lesson-index .li-card-icon{display:flex;align-items:center;justify-content:center;flex:none;width:2.35rem;height:2.35rem;border-radius:.55rem;background:var(--lesson-tint);color:var(--lesson-accent)}
.lesson-index .li-card-icon .le-icon{margin:0}
.lesson-index .li-card-copy{display:block;min-inline-size:0}
.lesson-index .li-type{display:block;color:var(--lesson-accent);font-size:.83rem;font-weight:750;line-height:1.5;margin-bottom:.4rem}
.lesson-index .li-open strong{display:block;font-size:1.08rem;font-weight:800;line-height:1.6;text-decoration-color:var(--lesson-accent);text-decoration-thickness:1.5px}
.lesson-index .li-card-action{display:block;margin-top:.65rem;font-size:.9rem;color:var(--green);font-weight:650}
.li-detour-navigation{border-inline-start:4px solid var(--green);justify-content:space-between}
.li-detour-navigation .li-return-lesson{padding:.4rem .8rem;border-radius:.45rem;background:var(--green);color:var(--on-accent,#fff)}
@media(hover:hover){.study-landing .sp-start-grid a:hover,.lesson-index .li-open:hover{background:var(--lesson-tint)}.study-landing .sp-start-grid a:hover strong,.lesson-index .li-open:hover strong{text-decoration-thickness:2px}}
@media(max-width:640px){.study-landing .sp-start-grid,.lesson-index .li-ayah-group ul{grid-template-columns:1fr}.study-landing .sp-start-grid :is(.sp-finder,.sp-start-card){flex-direction:row;min-block-size:0;padding:.95rem;gap:.8rem}.study-landing .sp-start-grid small{margin-top:.3rem}.study-landing .sp-ayah{padding:.9rem 1rem}.lesson-index .li-open{min-block-size:0}.li-detour-navigation{gap:.25rem .75rem;padding:.4rem .6rem}.study-landing .sp-heading h1{font-size:1.7rem}}

/* Cards carry their action through shape, icon and focus, not underlined headings. */
@media(hover:hover){.study-landing .sp-start-grid :is(.sp-finder,.sp-start-card):hover,.lesson-index .li-scope-menu a:hover{border-color:var(--lesson-accent);background:var(--lesson-tint)}.lesson-index .li-open:hover{background:var(--pale)}}
.lesson-index .li-open:focus-visible{outline-offset:-3px}

.study-tools-menu {margin-block:0 .75rem; color:var(--ink); border-block-end:1px solid var(--line)}
.study-tools-menu>summary {display:flex; align-items:center; gap:.55rem; cursor:pointer; min-height:2.85rem; font-weight:650; list-style:none}
.study-tools-menu>summary::-webkit-details-marker {display:none}
.study-tools-menu>summary>svg {inline-size:1.35rem;block-size:1.35rem;color:var(--green)}
.study-tools-menu>summary::after {content:"";inline-size:.45rem;block-size:.45rem;border-inline-end:2px solid;border-block-end:2px solid;transform:rotate(45deg);margin-inline:.2rem}
[dir=rtl] .study-tools-menu>summary::after {transform:rotate(-45deg)}
.study-tools-menu[open]>summary::after {transform:rotate(225deg)}
[dir=rtl] .study-tools-menu[open]>summary::after {transform:rotate(135deg)}
.study-landing:not([data-sp-profile="researcher"]) .sp-start-grid {gap:0 1rem}
.study-landing:not([data-sp-profile="researcher"]) .sp-start-grid :is(.sp-finder,.sp-start-card) {flex-direction:row;align-items:center;min-block-size:3.5rem;gap:.65rem;padding:.55rem .2rem;border:0;border-block-end:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.study-landing:not([data-sp-profile="researcher"]) .sp-start-grid .le-icon {width:1.65rem;height:1.65rem;background:transparent;padding:0}
.study-landing:not([data-sp-profile="researcher"]) .sp-start-grid strong {font-size:1.05rem}
.lesson-index:not([data-profile="researcher"]) .li-ayah-group ul {display:block}
.lesson-index:not([data-profile="researcher"]) .li-ayah-group li {border:0;border-block-end:1px solid var(--line);border-radius:0;background:transparent;padding-block:.2rem}
.lesson-index:not([data-profile="researcher"]) .li-open {min-block-size:3rem;align-items:center;border:0;background:transparent;border-radius:0;padding:.5rem .1rem}
.lesson-index .li-topic-link {display:inline-flex;align-items:center;min-block-size:2.75rem;padding-inline:.45rem;color:var(--green);text-decoration:underline;text-underline-offset:.18em;font-size:.9375rem}

/* The study entrance shares the site's paper and touch cues, without moving the text. */
.study-landing .sp-heading.mushaf-surface {
  display:flow-root;padding:clamp(1rem,3vw,1.65rem);border:1px solid var(--line);
  border-inline-start:4px solid var(--green);border-radius:1rem;background:var(--panel);
}
.study-landing .sp-heading>p:first-of-type {font-size:.87rem;font-weight:750;letter-spacing:.04em;color:var(--green)}
.study-landing .sp-heading>p:last-of-type {max-inline-size:46rem;font-size:1.06rem;line-height:1.75;color:var(--muted)}
.study-landing .sp-heading-art {float:inline-end;inline-size:clamp(4rem,11vw,6rem);margin-inline-start:1rem;margin-block:.25rem;line-height:0}
.study-landing .sp-heading-art>span {max-inline-size:100%}
.study-landing.ys-study .ys-study-lead.mushaf-surface {
  padding:clamp(1rem,3vw,1.5rem);border:1px solid var(--ys-line,var(--line));
  border-block-start:3px solid var(--ys-accent,var(--green));border-radius:1rem;
  background:var(--ys-paper,var(--panel));box-shadow:0 2px 0 var(--ys-line,var(--line));
}
.study-landing.ys-study .ys-study-lead .ys-byline {align-items:center}
.study-landing.ys-study .ys-study-subjects .lf-subject {border-radius:.6rem}
.study-landing.ys-study .lf-subject>summary {padding-inline:.45rem}
.study-landing.ys-study .lf-subject-links a {padding-inline:.4rem;border-radius:.4rem}
@media(max-width:25rem){.study-landing .sp-heading-art {inline-size:3.75rem;margin-inline-start:.7rem}}


/* /recognition-deck.css */
/* Optional, local recognition practice: one prompt and its explanation at a time. */
.recognition-entry{display:flex;align-items:center;gap:20px;justify-content:space-between;border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:18px 20px;margin:22px 0;color:var(--ink)}
.recognition-entry>div{min-width:0}.recognition-entry>div>span{font-size:10px;font-weight:700;letter-spacing:.06em;color:var(--green)}.recognition-entry strong{display:block;font-size:20px;line-height:1.4;margin:5px 0}.recognition-entry p{margin:0;font-size:13px;line-height:1.7;color:var(--muted)}.recognition-entry button{min-height:46px;flex-shrink:0;border:1px solid var(--line);background:var(--light);border-radius:9px;padding:10px 14px;color:var(--ink);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.recognition-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 28px));max-width:100%;height:min(850px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--line,#d5d9d1);border-radius:20px;color:var(--ink,#1e3029);background:var(--panel,#fffdf8);font-family:var(--font-ui,Arial,sans-serif);box-shadow:0 18px 80px #001b1840;overflow:hidden}
.recognition-dialog::backdrop{background:#0e231ab3;backdrop-filter:blur(3px)}.recognition-dialog *{box-sizing:border-box}.recognition-shell{display:flex;flex-direction:column;height:100%;min-height:0}.recognition-header{display:flex;align-items:flex-start;gap:14px;padding:22px 25px 17px;border-bottom:1px solid var(--line);flex-shrink:0;background:var(--panel)}.recognition-header>div{flex:1;min-width:0}.recognition-eyebrow{font-size:10px;letter-spacing:.08em;font-weight:700;color:var(--green);line-height:1.5}.recognition-header h2{font-size:23px;line-height:1.35;margin:5px 0 8px}.recognition-position{font-size:13px;color:var(--muted);margin:0;line-height:1.5}.recognition-dialog button{font:inherit;font-size:14px;line-height:1.5;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:var(--light);color:var(--ink);cursor:pointer;touch-action:manipulation}.recognition-dialog button:disabled{opacity:.45;cursor:default}.recognition-dialog .recognition-close{width:44px;height:44px;min-width:44px;padding:0;font-size:27px;line-height:1;background:transparent}.recognition-dialog button:focus-visible,.recognition-dialog a:focus-visible,.recognition-dialog summary:focus-visible,.recognition-entry button:focus-visible{outline:3px solid var(--green,#236b53);outline-offset:3px}.recognition-dialog [tabindex="-1"]:focus{outline:none}
.recognition-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 25px 28px;scrollbar-gutter:stable}.recognition-notice:empty{display:none}.recognition-notice,.recognition-warning{font-size:13px;line-height:1.7;border:1px solid var(--line);background:var(--light);padding:11px 13px;border-radius:9px;margin:0 0 18px}.recognition-warning{color:var(--gold,#775411)}.recognition-prompt h3,.recognition-round h3,.recognition-confirm h3{font-size:clamp(20px,3vw,25px);line-height:1.55;margin:9px 0 20px;font-weight:650;overflow-wrap:anywhere}.recognition-dialog p{line-height:1.85}.recognition-prompt .recognition-eyebrow{margin:0}.recognition-dialog .recognition-primary{background:var(--green,#236b53);border-color:var(--green,#236b53);color:var(--on-accent,#fff)}.recognition-reveal{width:100%;margin:4px 0 16px;min-height:48px!important;font-weight:650!important}
.recognition-verse{margin:18px 0 22px;border:1px solid var(--line);background:var(--light);border-radius:12px;padding:16px}.recognition-verse figcaption{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:12px}.recognition-verse>p[lang=ar]{font-family:var(--arabic,Amiri,serif);font-size:32px;line-height:2.15;text-align:center;letter-spacing:0;word-spacing:normal;margin:0;overflow-wrap:normal}.recognition-focus-word{background:transparent;color:inherit;text-decoration:underline;text-decoration-color:var(--green);text-decoration-thickness:2px;text-underline-offset:8px}.recognition-example-meaning{font-size:13px;text-align:center;color:var(--muted);margin:10px 0 0}.recognition-verse-status,.recognition-verse-error{font-size:14px;padding:15px;border:1px solid var(--line);border-radius:10px;margin:15px 0}.recognition-verse-error p{margin:0 0 12px}
.recognition-answer{padding:19px 18px;margin:0 0 16px;background:var(--light);border:1px solid var(--line);border-radius:12px}.recognition-answer[hidden]{display:none}.recognition-answer h4{font-size:13px;margin:0 0 7px;color:var(--green);font-weight:700}.recognition-answer>p{font-size:16px;line-height:1.9;margin:0 0 18px;overflow-wrap:anywhere}.recognition-rating{border:0;border-top:1px solid var(--line);padding:16px 0 0;margin:0}.recognition-rating legend{font-size:14px;font-weight:650;padding:0 0 6px}.recognition-rating p{font-size:12px;color:var(--muted);margin:0 0 12px}.recognition-rating>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.recognition-rating button[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:var(--panel)}.recognition-current-rating{font-size:12px;color:var(--muted);margin:0 0 14px}
.recognition-sources,.recognition-about{border-top:1px solid var(--line);margin-top:18px}.recognition-dialog summary{min-height:44px;padding:12px 0;font-size:13px;font-weight:650;line-height:1.6;cursor:pointer}.recognition-sources p,.recognition-about p{font-size:13px;line-height:1.85;color:var(--muted);margin:0 0 14px;overflow-wrap:anywhere}.recognition-sources>div{margin:13px 0}.recognition-sources a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-size:13px;line-height:1.65;text-underline-offset:3px;overflow-wrap:anywhere;gap:5px}.recognition-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.recognition-round>p,.recognition-confirm>p{font-size:15px;color:var(--muted);line-height:1.85}
.recognition-footer{flex-shrink:0;border-top:1px solid var(--line);padding:12px 25px 10px;background:var(--panel)}.recognition-footer nav{display:grid;grid-template-columns:1fr 1fr;gap:12px}.recognition-footer nav button{min-height:46px}.recognition-options summary{color:var(--muted);font-size:12px;min-height:44px;padding:12px 0 8px}.recognition-options>div{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 0}.recognition-options button{font-size:12px}.recognition-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:540px){.recognition-entry{align-items:stretch;flex-direction:column;gap:14px;padding:16px}.recognition-entry button{width:100%}.recognition-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:14px}.recognition-header{padding:17px 16px 13px;gap:9px}.recognition-header h2{font-size:20px}.recognition-header .recognition-eyebrow{font-size:9px}.recognition-scroll{padding:18px 16px 24px;scrollbar-gutter:auto}.recognition-prompt h3{font-size:21px;line-height:1.6}.recognition-footer{padding:11px 16px calc(10px + env(safe-area-inset-bottom,0px))}.recognition-answer{padding:17px 14px}.recognition-answer>p{font-size:15px}.recognition-verse{padding:13px}.recognition-verse>p[lang=ar]{font-size:29px}.recognition-rating>div{grid-template-columns:1fr}.recognition-actions{display:grid;grid-template-columns:1fr}.recognition-actions button{width:100%}}
@media(max-height:600px){.recognition-header{padding-top:10px;padding-bottom:9px}.recognition-header h2{font-size:18px;margin:3px 0 5px}.recognition-header .recognition-eyebrow{display:none}.recognition-scroll{padding-top:15px}.recognition-footer{padding-top:8px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.recognition-dialog *{scroll-behavior:auto}}

.recognition-entry[lang="ar"],.recognition-dialog[lang="ar"]{font-family:var(--font-ui,'Noto Sans Arabic',Arial,sans-serif)}.recognition-entry[lang="ar"]>div>span,.recognition-dialog[lang="ar"] .recognition-eyebrow{letter-spacing:0}.recognition-entry[lang="ar"] strong,.recognition-dialog[lang="ar"] h2{line-height:1.7}.recognition-dialog[lang="ar"] .recognition-prompt h3{line-height:1.9}.recognition-dialog[lang="ar"] .recognition-answer>p{line-height:2}.recognition-entry button{display:flex;align-items:center;justify-content:center;gap:10px}

/* The available learning modes sit beside the path heading, before progress cards. */
.course-learning-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 24px}.course-learning-modes>button,.course-learning-modes>a{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:4px 10px;text-align:start;padding:15px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:12px;min-height:80px;text-decoration:none;font:inherit;cursor:pointer;touch-action:manipulation}.course-learning-modes strong{font-size:15px;font-weight:650;line-height:1.6}.course-learning-modes small{grid-column:2;font-size:12px;line-height:1.6;color:var(--muted)}.course-mode-icon{display:flex;align-items:center;justify-content:center;color:var(--green)}.course-mode-icon svg{height:22px;width:22px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}.course-learning-modes>button:focus-visible,.course-learning-modes>a:focus-visible{outline:3px solid var(--green);outline-offset:3px}.course-learning-modes>button:hover,.course-learning-modes>a:hover{border-color:var(--green);background:var(--light)}
@media(max-width:540px){.course-learning-modes{gap:8px;margin-bottom:20px}.course-learning-modes>button,.course-learning-modes>a{display:flex;flex-direction:column;gap:5px;align-items:center;text-align:center;padding:12px 6px;min-height:94px}.course-learning-modes strong{font-size:14px}.course-learning-modes small{font-size:11px}.course-mode-icon svg{width:21px;height:21px}}


/* /learning-audio.css */
/* Optional orientation: actual reviewed audio, with a readable transcript. */
.learning-audio-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 28px));max-width:100%;height:min(760px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);font-family:var(--font-ui,Arial,sans-serif);box-shadow:0 18px 80px #001b1840;overflow:hidden}.learning-audio-dialog::backdrop{background:#0e231ab3;backdrop-filter:blur(3px)}.learning-audio-dialog *{box-sizing:border-box}.learning-audio-shell{display:flex;flex-direction:column;height:100%;min-height:0}.learning-audio-header{display:flex;align-items:flex-start;gap:14px;padding:22px 25px 18px;border-bottom:1px solid var(--line);flex-shrink:0}.learning-audio-header>div{min-width:0;flex:1}.learning-audio-header span{font-size:10px;font-weight:700;letter-spacing:.07em;line-height:1.7;color:var(--green)}.learning-audio-header h2{font-size:23px;line-height:1.4;margin:7px 0 0}.learning-audio-dialog button,.learning-audio-dialog select{font:inherit;font-size:14px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--light);color:var(--ink);padding:10px 14px;cursor:pointer}.learning-audio-dialog button:disabled,.learning-audio-dialog select:disabled{opacity:.5;cursor:default}.learning-audio-dialog .learning-audio-close{width:44px;height:44px;min-width:44px;padding:0;font-size:27px;line-height:1;background:transparent}.learning-audio-dialog button:focus-visible,.learning-audio-dialog select:focus-visible,.learning-audio-dialog a:focus-visible,.learning-audio-dialog summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.learning-audio-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 25px 28px;scrollbar-gutter:stable}.learning-audio-description{font-size:16px;line-height:1.8;margin:0 0 8px}.learning-audio-duration{font-size:12px;font-weight:650;color:var(--green);margin:0 0 15px}.learning-audio-scope{font-size:13px;line-height:1.85;color:var(--muted);margin:0 0 20px;overflow-wrap:anywhere}.learning-audio-player{border:1px solid var(--line);background:var(--light);border-radius:13px;padding:16px;margin-bottom:24px}.learning-audio-player audio{display:block;width:100%;height:54px;max-width:100%;margin:0 0 15px}.learning-audio-controls{display:grid;grid-template-columns:1fr 1fr 1.1fr;align-items:end;gap:9px}.learning-audio-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.learning-audio-controls select{width:100%;min-width:0;padding:10px 8px}.learning-audio-status{font-size:12px;line-height:1.75;margin:13px 0 0;color:var(--muted)}.learning-audio-player [data-learning-audio-action=retry]{margin-top:14px}.learning-audio-transcript h3{font-size:19px;margin:0 0 10px}.learning-audio-transcript-notice{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 18px;padding-inline-start:12px;border-inline-start:2px solid var(--line)}.learning-audio-transcript-text p{white-space:pre-wrap;font-size:15px;line-height:1.95;margin:0 0 19px;overflow-wrap:anywhere}.learning-audio-sources{border-top:1px solid var(--line);margin-top:24px}.learning-audio-sources summary{min-height:48px;padding:14px 0;font-size:14px;font-weight:650;cursor:pointer}.learning-audio-sources p{font-size:12px;line-height:1.85;color:var(--muted);overflow-wrap:anywhere}.learning-audio-sources a{display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:13px;line-height:1.7;color:var(--green);text-underline-offset:3px;overflow-wrap:anywhere}.learning-audio-error h3{font-size:20px}.learning-audio-error p{line-height:1.85}.learning-audio-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.course-learning-modes.has-listen{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:540px){.learning-audio-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:14px}.learning-audio-header{padding:17px 16px 14px;gap:8px}.learning-audio-header h2{font-size:20px}.learning-audio-header span{font-size:9px}.learning-audio-scroll{padding:18px 16px 24px;scrollbar-gutter:auto}.learning-audio-player{padding:12px}.learning-audio-controls{gap:7px}.learning-audio-controls button{padding:10px 8px}.course-learning-modes.has-listen{grid-template-columns:repeat(2,minmax(0,1fr))}.course-learning-modes.has-listen>button,.course-learning-modes.has-listen>a{display:grid;grid-template-columns:23px minmax(0,1fr);text-align:start;align-items:center;gap:2px 8px;min-height:79px;padding:12px}.course-learning-modes.has-listen small{grid-column:2}.course-learning-modes.has-listen .course-mode-icon{grid-row:1 / span 2}}
@media(max-height:600px){.learning-audio-header{padding-top:10px;padding-bottom:10px}.learning-audio-header h2{font-size:18px}.learning-audio-header span{display:none}.learning-audio-scroll{padding-top:14px}}

.learning-audio-teaching-note{border:1px solid var(--line);background:var(--light);border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.85;margin:0 0 20px;color:var(--ink)}

.learning-audio-dialog[lang="ar"] .learning-audio-header span{letter-spacing:0;line-height:1.9}.learning-audio-dialog[lang="ar"] .learning-audio-header h2{line-height:1.7}.learning-audio-dialog[lang="ar"] .learning-audio-transcript-text p{line-height:2}.learning-audio-examples{margin:20px 0;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--light)}.learning-audio-examples h4{font-size:13px;line-height:1.85;margin:0 0 15px;color:var(--muted)}.learning-audio-examples figure{margin:0;padding:14px 0}.learning-audio-examples figure+figure{border-top:1px solid var(--line)}.learning-audio-examples figure>p{font-family:var(--arabic,Amiri,serif);font-size:32px;line-height:2;text-align:center;margin:0 0 8px}.learning-audio-examples figcaption{font-size:14px;line-height:1.95}.learning-audio-dialog[lang="ar"] .learning-audio-controls button{font-size:13px;line-height:1.7}
.learning-audio-controls{display:flex;align-items:center;gap:12px}
.learning-audio-controls label{display:flex;flex-direction:row;align-items:center;margin-inline-start:auto;font-size:.875rem}
.learning-audio-controls select{width:auto;min-width:75px}
.learning-audio-controls [data-learning-audio-action="replay"]{width:44px;min-width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.learning-audio-status:empty{display:none}


/* /learning-video.css */
/* Arabic portrait study video: optional playback with native controls and readable text. */
.learning-video-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 28px));max-width:100%;height:min(850px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);font-family:var(--font-ui,'Noto Sans Arabic',Arial,sans-serif);box-shadow:0 18px 80px #001b1840;overflow:hidden}.learning-video-dialog::backdrop{background:#0e231ab3;backdrop-filter:blur(3px)}.learning-video-dialog *{box-sizing:border-box}.learning-video-shell{display:flex;flex-direction:column;height:100%;min-height:0}.learning-video-header{display:flex;align-items:flex-start;gap:14px;padding:20px 25px 16px;border-bottom:1px solid var(--line);flex-shrink:0}.learning-video-header>div{min-width:0;flex:1}.learning-video-header span{font-size:11px;font-weight:650;line-height:1.9;color:var(--green)}.learning-video-header h2{font-size:23px;line-height:1.7;margin:6px 0 0}.learning-video-dialog button,.learning-video-dialog select{font:inherit;font-size:14px;min-height:44px;line-height:1.7;border:1px solid var(--line);border-radius:9px;background:var(--light);color:var(--ink);padding:9px 13px;cursor:pointer}.learning-video-dialog button:disabled,.learning-video-dialog select:disabled{opacity:.5;cursor:default}.learning-video-dialog .learning-video-close{width:44px;height:44px;min-width:44px;padding:0;font-size:27px;line-height:1;background:transparent}.learning-video-dialog button:focus-visible,.learning-video-dialog select:focus-visible,.learning-video-dialog a:focus-visible,.learning-video-dialog summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.learning-video-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 25px 28px;scrollbar-gutter:stable}.learning-video-description{font-size:15px;line-height:1.9;margin:0 0 8px}.learning-video-duration{font-size:12px;font-weight:650;color:var(--green);margin:0 0 12px}.learning-video-scope{font-size:13px;line-height:1.9;color:var(--muted);margin:0 0 17px;overflow-wrap:anywhere}.learning-video-player{border:1px solid var(--line);background:var(--light);border-radius:13px;padding:15px;margin-bottom:18px}.learning-video-player video{display:block;width:100%;height:auto;aspect-ratio:9/16;max-width:260px;max-height:440px;object-fit:contain;background:#14201c;margin:0 auto 15px;border-radius:8px}.learning-video-controls{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;gap:9px}.learning-video-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.learning-video-controls select{width:100%;min-width:0;padding:9px 8px}.learning-video-status{font-size:12px;line-height:1.9;margin:13px 0 0;color:var(--muted)}.learning-video-player [data-learning-video-action=retry]{margin-top:14px}.learning-video-study-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.learning-video-study-actions>button{background:var(--green);border-color:var(--green);color:var(--on-accent,#fff)}.learning-video-dialog a{display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:13px;line-height:1.8;color:var(--green);text-underline-offset:3px;overflow-wrap:anywhere}.learning-video-exercise{border:1px solid var(--line);border-radius:12px;background:var(--light);padding:18px;margin:20px 0}.learning-video-exercise[hidden],.learning-video-exercise [hidden]{display:none}.learning-video-exercise h3{font-size:18px;margin:0 0 12px}.learning-video-prompt{font-size:19px;line-height:2;margin:0 0 16px}.learning-video-prompt:focus{outline:none}.learning-video-exercise h4{font-size:14px;color:var(--green);margin:18px 0 5px}.learning-video-exercise p{line-height:1.95}.learning-video-practice-note{font-size:12px;color:var(--muted)}.learning-video-transcript,.learning-video-sources{border-top:1px solid var(--line);margin-top:20px}.learning-video-dialog summary{min-height:48px;padding:14px 0;font-size:14px;font-weight:650;line-height:1.8;cursor:pointer}.learning-video-transcript-notice,.learning-video-sources p{font-size:12px;line-height:1.95;color:var(--muted);overflow-wrap:anywhere}.learning-video-transcript-text p{white-space:pre-wrap;font-size:16px;line-height:2;margin:0 0 18px;overflow-wrap:anywhere}.learning-video-error h3{font-size:20px}.learning-video-error p{line-height:1.9}.learning-video-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:540px){.learning-video-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:14px}.learning-video-header{padding:15px 16px 12px;gap:8px}.learning-video-header h2{font-size:20px}.learning-video-header span{font-size:10px}.learning-video-scroll{padding:16px 16px 24px;scrollbar-gutter:auto}.learning-video-player{padding:11px}.learning-video-player video{max-height:360px;max-width:235px}.learning-video-controls{gap:7px}.learning-video-controls button{font-size:12px;padding:9px 6px}.learning-video-controls select{font-size:13px}.learning-video-study-actions{align-items:stretch;flex-direction:column}.learning-video-study-actions>button{width:100%}.learning-video-study-actions>a{justify-content:center}.learning-video-exercise{padding:15px}.learning-video-prompt{font-size:18px}}
@media(max-height:600px){.learning-video-header{padding-top:9px;padding-bottom:9px}.learning-video-header h2{font-size:18px}.learning-video-header span{display:none}.learning-video-scroll{padding-top:13px}.learning-video-player video{max-height:280px;max-width:180px}}

.learning-video-dialog[lang="en"] .learning-video-header h2{line-height:1.4}.learning-video-dialog[lang="en"] .learning-video-header span{font-size:10px;letter-spacing:.06em}.learning-video-dialog[lang="en"] .learning-video-transcript-text p,.learning-video-dialog[lang="en"] .learning-video-prompt{line-height:1.85}

.learning-video-examples{border-top:1px solid var(--line);margin-top:20px}.learning-video-examples-note{font-size:12px;line-height:1.85;color:var(--muted)}.learning-video-examples figure{margin:12px 0;padding:15px;background:var(--light);border:1px solid var(--line);border-radius:10px}.learning-video-examples figure>p{font-family:var(--arabic,Amiri,serif);font-size:29px;line-height:2;text-align:center;margin:0 0 10px}.learning-video-examples figcaption{font-size:14px;line-height:1.85}


/* /relationship-cards.css */
/* Relationship cards: intact Arabic words, separate controls and explicit roles. */
.relationship-cards{margin:22px 0 28px;color:var(--ink);font-family:var(--font-ui,Arial,sans-serif)}
.rc-heading{margin:0 0 12px}.rc-heading h2{margin:0 0 5px;font-size:20px;line-height:1.55;font-weight:700}.rc-heading p{margin:0;max-width:68ch;color:var(--muted);font-size:14px;line-height:1.8}
[data-rc-list]{display:grid;gap:9px}.rc-card{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;min-width:0}.rc-card>summary{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px 16px;cursor:pointer;list-style:none}.rc-card>summary::-webkit-details-marker{display:none}.rc-card-number{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;color:var(--green);font-size:13px;font-weight:700;background:var(--light)}.rc-summary-copy{display:grid;gap:3px;min-width:0;flex:1}.rc-summary-copy strong{font-size:15px;line-height:1.65;font-weight:650}.rc-summary-copy>span{font-size:12px;color:var(--muted);line-height:1.8}.rc-expand{flex:0 0 18px;width:18px;text-align:center;color:var(--green);font-size:22px;line-height:1}.rc-expand:before{content:'+'}.rc-card[open]>.rc-expand:before,.rc-card[open]>summary .rc-expand:before{content:'−'}.rc-card[open]>summary{border-bottom:1px solid var(--line);background:var(--light)}
.rc-card-body{padding:18px 20px 8px;min-width:0}.rc-passage{margin:0 0 16px;padding:16px 18px;background:var(--reading-paper,var(--panel));border:1px solid var(--line);border-radius:9px}.rc-passage figcaption{margin:0 0 12px;color:var(--muted);font-size:12px;font-weight:600;line-height:1.6}.rc-passage figcaption bdi{white-space:nowrap;margin-inline-start:5px}.rc-verse{font-family:var(--arabic,Amiri,serif)!important;font-size:clamp(28px,4.2vw,36px)!important;line-height:2.15!important;font-weight:400!important;letter-spacing:normal!important;word-spacing:normal!important;text-align:right;margin:0!important;overflow-wrap:normal!important;word-break:normal!important}.rc-verse>span{display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.rc-verse .rc-word-selected{background:var(--word-follow,#f5df9c);color:var(--ink);text-decoration:underline;text-decoration-color:var(--word-follow-line,#8f6b22);text-decoration-thickness:2px;text-underline-offset:6px;border-radius:2px}
.rc-targets{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin:0 0 14px}.rc-targets-label{flex-basis:100%;font-size:12px;font-weight:650;color:var(--muted);line-height:1.6}.rc-targets button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:90px;min-height:50px;max-width:100%;padding:6px 12px;border:1px solid var(--control-line,var(--line));border-radius:9px;background:var(--panel);color:var(--ink);cursor:pointer}.rc-targets button>span{font-family:var(--arabic,Amiri,serif);font-size:25px;line-height:1.65;letter-spacing:normal}.rc-targets button>small{font-family:var(--font-ui,Arial,sans-serif);font-size:11px;font-weight:650;color:var(--muted);min-width:16px}.rc-targets button[aria-pressed=true]{border-color:var(--green);background:var(--pale);box-shadow:inset 0 0 0 1px var(--green)}.rc-targets button[aria-pressed=true]>small{color:var(--green)}
.rc-selection{padding:14px 16px;border:1px solid var(--line);border-inline-start:3px solid var(--green);border-radius:9px;background:var(--light);min-width:0}.rc-selection-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 14px;margin:0 0 10px!important}.rc-selection-heading>span{font-size:12px;color:var(--muted)}.rc-selection-heading>b{font-family:var(--arabic,Amiri,serif);font-size:27px;font-weight:400;line-height:1.8}.rc-analysis{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:0}.rc-analysis>div{min-width:0}.rc-analysis dt{font-size:11px;color:var(--muted);font-weight:600;line-height:1.6;margin-bottom:3px}.rc-analysis dd{font-size:14px;font-weight:650;line-height:1.8;margin:0;overflow-wrap:anywhere}.rc-reason{font-size:14px!important;line-height:1.9!important;margin:12px 0 0!important;max-width:75ch}.rc-reason strong{font-weight:650}.rc-takeaway{font-size:13px!important;line-height:1.9!important;color:var(--muted);margin:15px 0 12px!important;max-width:75ch}.rc-takeaway strong{color:var(--ink);margin-inline-end:4px}
.rc-lesson,.rc-retry{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:9px 13px;border:1px solid var(--control-line,var(--line));border-radius:9px;background:var(--panel);color:var(--green);font-family:inherit;font-size:13px;font-weight:650;line-height:1.8;text-align:start;cursor:pointer;max-width:100%}.rc-lesson>span{flex-shrink:0}.rc-sources{margin-top:14px;border-top:1px solid var(--line)}.rc-sources summary{min-height:44px;display:flex;align-items:center;font-size:12px;line-height:1.7;color:var(--muted);cursor:pointer;padding:8px 0}.rc-sources p,.rc-sources li{font-size:12px!important;line-height:1.9!important;color:var(--muted);margin:0 0 8px!important}.rc-sources ul{margin:0 0 12px;padding-inline-start:20px}.rc-sources a{color:var(--green);text-underline-offset:3px;overflow-wrap:anywhere;padding-block:5px;display:inline-block}.rc-status{font-size:14px;line-height:1.9;color:var(--muted);margin:4px 0 12px}
.relationship-cards button:focus-visible,.relationship-cards summary:focus-visible,.relationship-cards a:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}.rc-card>summary:focus-visible{outline-offset:-4px}
@media(max-width:540px){.relationship-cards{margin:18px 0 24px}.rc-heading h2{font-size:19px}.rc-heading p{font-size:13px}.rc-card>summary{padding:12px;gap:9px}.rc-card-number{width:26px;height:26px;flex-basis:26px}.rc-summary-copy strong{font-size:14px}.rc-summary-copy>span{font-size:12px}.rc-card-body{padding:14px 12px 6px}.rc-passage{padding:12px}.rc-verse{font-size:29px!important}.rc-analysis{grid-template-columns:1fr;gap:9px}.rc-selection{padding:12px}.rc-lesson{width:100%}.rc-targets button{flex:1 1 84px;min-width:76px}.rc-targets button>span{font-size:24px}}
@media(prefers-reduced-motion:reduce){.relationship-cards *{scroll-behavior:auto}}


/* /hadith-audio.css */
.ha-player{margin:1.5rem 0;padding:1.25rem;border:1px solid var(--line,#d6dfd8);border-radius:18px;background:var(--panel,#fff);color:var(--ink,#22382e)}
.ha-player header{display:flex;gap:.8rem;align-items:flex-start}.ha-player h3{font-size:1.1rem;margin:0 0 .35rem}.ha-player header p{margin:0;font-size:.95rem;line-height:1.65;color:var(--muted,#607066)}.ha-symbol{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#e5f2eb;color:#215a42;letter-spacing:-4px;font-size:20px;padding-inline-end:4px}
.ha-speech{margin-top:1.15rem}.ha-speech-controls,.ha-actions{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}.ha-player button,.ha-file{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:46px;padding:.65rem 1rem;border:1px solid var(--line,#cbd8d0);border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:.95rem;cursor:pointer}.ha-player .ha-primary{background:#185b43;color:#fff;border-color:#185b43;font-weight:700;min-width:140px}.ha-player button:disabled,.ha-file:has(input:disabled){opacity:.5;cursor:not-allowed}.ha-player button:focus-visible,.ha-player select:focus-visible,.ha-player input:focus-visible,.ha-player summary:focus-visible,.ha-file:focus-within,.ha-links a:focus-visible{outline:3px solid #3c9b7f;outline-offset:3px}
.ha-speech-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.55fr);gap:.85rem;margin:.85rem 0}.ha-speech label{display:grid;gap:.4rem;font-size:.9rem}.ha-speech select{width:100%;max-width:100%;min-height:46px;color:inherit;background:var(--panel,#fff);border:1px solid var(--line,#d6dfd8);border-radius:9px;padding:.55rem;font:inherit}.ha-player .ha-network{display:flex;gap:.65rem;align-items:flex-start;min-height:44px;cursor:pointer;line-height:1.55;margin:.85rem 0}.ha-network input{width:22px;height:22px;flex:none;margin:2px 0 0;accent-color:#185b43}.ha-player .ha-small{font-size:.86rem;line-height:1.65;color:var(--muted,#607066);margin:.65rem 0}.ha-status,.ha-speech [role=status]{font-size:.91rem;line-height:1.6;min-height:1.5em;margin:.55rem 0}.ha-unavailable{font-size:.95rem;line-height:1.7;color:var(--muted,#607066)}.ha-progress{display:flex;justify-content:space-between;gap:.6rem;align-items:center;margin:.9rem 0;font-size:.88rem}.ha-progress progress{width:50%;height:8px;accent-color:#185b43}.ha-passage{padding:1rem;border-inline-start:3px solid #8ebda9;background:color-mix(in srgb,var(--panel,#fff) 90%,#2b795a);border-radius:10px;font-family:Amiri,serif;font-size:1.3rem;line-height:2;max-height:13rem;overflow:auto;overflow-wrap:anywhere}.ha-passage-label{font-size:.87rem;font-weight:600;margin:.7rem 0 .35rem}
.ha-local{border-top:1px solid var(--line,#d6dfd8);margin-top:1.15rem;padding-top:.5rem}.ha-local summary{display:flex;align-items:center;min-height:46px;cursor:pointer;font-weight:600;font-size:.95rem}.ha-local summary::before{content:'＋';margin-inline-end:.5rem}.ha-local[open] summary::before{content:'−'}.ha-local strong,.ha-filename{display:block;font-size:.91rem}.ha-filename{color:var(--muted,#607066);overflow-wrap:anywhere;margin:.3rem 0}.ha-player audio{width:100%;height:46px;margin:.4rem 0}.ha-file{position:relative;overflow:hidden;background:#e5f2eb;color:#194e36;border-color:#c7dfd0;font-weight:600}.ha-file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.ha-binding{border-top:1px solid var(--line,#d6dfd8);padding-top:.9rem;margin:.8rem 0 0;font-size:.82rem;color:var(--muted,#607066)}.ha-binding bdi{margin-inline-start:.35rem}.ha-links{margin-top:.85rem;font-size:.88rem}.ha-links>div{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.45rem}.ha-links a{display:flex;min-height:44px;align-items:center;padding:.4rem .8rem;border:1px solid var(--line,#d6dfd8);border-radius:9px;color:inherit;text-decoration:none}.ha-links p{color:var(--muted,#607066);line-height:1.6;font-size:.85rem}.ha-player [hidden]{display:none!important}.dark .ha-file,.dark .ha-symbol{background:#183b2d;color:#c2ecdb;border-color:#335a48}.dark .ha-player .ha-primary{background:#b5e3cf;color:#0b2f23;border-color:#b5e3cf}.dark .ha-passage{background:#142b22}
@media(max-width:440px){.ha-player{padding:1rem}.ha-player header{gap:.6rem}.ha-speech-settings{grid-template-columns:1fr}.ha-speech-controls>*{flex:1 1 auto}.ha-speech-controls .ha-primary{flex-basis:60%}.ha-actions>*{flex:1 1 auto}.ha-passage{font-size:1.2rem}}

.ha-published{padding:1rem;margin-block:1rem;border:1px solid #4b806d;border-radius:14px;background:var(--surface,#162921)}.ha-published h4{margin:0 0 .7rem}.ha-published audio{width:100%;min-height:46px}.ha-published details{font-size:.85rem;line-height:1.6}.ha-published a{color:inherit;text-decoration:underline}
.ha-player .ha-speech-controls{gap:.35rem}
.ha-player .ha-speech-controls button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;flex:none}
.ha-player .ha-symbol{letter-spacing:0;padding:0}
.ha-voice-label{font-size:.8125rem;color:var(--muted,#607066);margin-inline:.25rem;flex:1}
.ha-options{border-top:1px solid var(--line,#d6dfd8);margin-top:.7rem;padding-top:.3rem}
.ha-player .ha-options p{font-size:.8125rem}
.ha-player .ha-speech [role=status]:empty,.ha-unavailable:empty{display:none}
body:not([data-profile="researcher"]) .ha-player{padding:1rem;margin-block:1rem}
body:not([data-profile="researcher"]) .ha-player h3{font-size:1rem}
body:not([data-profile="researcher"]) .ha-speech{margin-top:.7rem}


/* /hadith-library.css */
.mushaf-hadith{max-width:1080px;margin:0 auto;padding:30px clamp(16px,4vw,44px) 112px;color:var(--ink);font-family:inherit;line-height:1.7;overflow-wrap:anywhere}.mushaf-hadith *,.hd-inline *,.hd-home *{box-sizing:border-box}.mushaf-hadith button,.mushaf-hadith input{font:inherit}.mushaf-hadith :is(button,a,summary){-webkit-tap-highlight-color:transparent}.mushaf-hadith :is(button,a,input,summary):focus-visible,.hd-inline a:focus-visible,.hd-home:focus-visible{outline:3px solid var(--green);outline-offset:3px}.mushaf-hadith button{min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);cursor:pointer;line-height:1.5}.mushaf-hadith button:disabled{opacity:.45;cursor:default}.mushaf-hadith a{color:var(--green);text-underline-offset:4px}.hd-header{max-width:710px;margin:0 0 26px}.hd-kicker{font-size:11px;font-weight:750;letter-spacing:.12em;color:var(--green);margin:0 0 8px}.mushaf-hadith[dir=rtl] .hd-kicker{letter-spacing:0;font-size:13px}.hd-header h1{font-size:clamp(28px,4vw,40px);line-height:1.25;letter-spacing:-.035em;margin:0 0 13px;font-weight:650}.mushaf-hadith[dir=rtl] .hd-header h1{letter-spacing:0;line-height:1.7}.hd-header>p:last-child{font-size:15px;color:var(--muted);margin:0;line-height:1.8}.hd-controls{margin-bottom:22px}.hd-controls label{display:block;font-size:13px;font-weight:650;margin-bottom:9px}.hd-controls input{display:block;width:100%;min-height:50px;max-width:680px;padding:12px 15px;color:var(--ink);border:1px solid var(--line);background:var(--panel);border-radius:12px;outline-offset:2px}.hd-controls input::placeholder{color:var(--muted);opacity:1}.hd-topics{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.hd-topics button{border-radius:99px;font-size:12px;padding:10px 14px}.hd-topics button[aria-pressed=true]{border-color:var(--green);color:var(--on-accent,#fff);background:var(--green)}.hd-context{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px;background:var(--pale);padding:12px 15px;border-radius:10px;font-size:13px}.hd-context button{font-size:12px}.hd-result-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 14px;font-size:13px;color:var(--muted)}.hd-result-heading p{margin:0}.hd-result-heading button{font-size:12px}.hd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hd-card{min-width:0;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:23px}.hd-card-meta{display:flex;gap:8px;justify-content:space-between;font-size:10px;color:var(--muted);line-height:1.5}.hd-card-meta span:first-child{color:var(--green);font-weight:700}.hd-card h2{font-size:20px;line-height:1.45;margin:15px 0 7px;font-weight:650}.hd-card h2 a{color:var(--ink);text-decoration:none}.hd-card h2 a:hover{text-decoration:underline}.hd-speaker{font-size:12px;color:var(--muted);margin:0 0 17px;line-height:1.7}.hd-card-arabic{font-family:var(--arabic,serif);font-size:23px;line-height:2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 18px;min-height:0;color:var(--ink);border-block:1px solid var(--line);padding:14px 0}.hd-card-summary{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 20px}.hd-card .hd-open{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-top:auto;text-decoration:none;font-size:13px;font-weight:700}.hd-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:24px;font-size:12px;color:var(--muted)}.hd-pagination button{font-size:13px}.hd-empty,.hd-loading{padding:28px 20px;border:1px solid var(--line);border-radius:14px;background:var(--panel);font-size:14px}.hd-empty h2{font-size:20px}.hd-detail{max-width:760px;margin:auto}.hd-back{display:inline-flex;align-items:center;min-height:44px;gap:8px;text-decoration:none;font-size:13px;margin-bottom:22px}.hd-detail>h2{font-size:clamp(25px,4vw,35px);line-height:1.4;letter-spacing:-.025em;margin:8px 0 10px}.mushaf-hadith[dir=rtl] .hd-detail>h2{letter-spacing:0;line-height:1.8}.hd-quotation{background:var(--panel);border:1px solid var(--line);border-inline-start:3px solid var(--green);border-radius:14px;padding:23px;margin:26px 0}.hd-text-label{font-size:10px;letter-spacing:.1em;color:var(--muted);font-weight:750}.mushaf-hadith[dir=rtl] .hd-text-label{letter-spacing:0;font-size:12px}.hd-quotation blockquote{font:400 clamp(27px,4vw,34px)/2.1 var(--arabic,serif);margin:15px 0 0;color:var(--ink);text-align:start}.hd-explanation{margin-bottom:27px}.hd-explanation h3,.hd-related-verses h3{font-size:17px;margin:0 0 9px}.hd-explanation>p{font-size:15px;margin:0 0 10px;line-height:1.9}.hd-explanation small,.hd-related-verses>small{font-size:12px;color:var(--muted);line-height:1.8;display:block}.hd-source,.hd-method{border-block:1px solid var(--line);padding:0 0 14px;margin:20px 0}.hd-source summary,.hd-method summary{font-size:13px;font-weight:700;cursor:pointer;min-height:48px;padding:13px 0}.hd-source p,.hd-method p{font-size:13px;line-height:1.85;margin:5px 0 13px}.hd-source a,.hd-method a{font-size:13px;display:inline-flex;gap:8px;align-items:center;min-height:44px}.hd-source-note{color:var(--muted);font-size:12px!important}.mushaf-hadith .hd-copy{font-size:13px;background:var(--ink);color:var(--bg);border-color:var(--ink)}[data-hd-status]{font-size:13px;color:var(--green);min-height:1em}.hd-related-verses{margin:28px 0}.hd-related-verses>p{font-size:14px;line-height:1.8}.hd-related-verses>div{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.hd-related-verses a{display:inline-flex;min-height:44px;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;font-size:12px;background:var(--panel)}.hd-method{margin-top:40px;color:var(--muted)}.hd-method summary{color:var(--ink)}.hd-resources{display:grid;grid-template-columns:1fr 1fr;gap:12px 25px;font-size:12px;margin-top:25px}.hd-resources h2{grid-column:1/-1;font-size:17px;margin:0}.hd-resources a{display:inline-flex;min-height:44px;align-items:center;gap:8px;font-weight:650;line-height:1.7}.hd-resources p{color:var(--muted);line-height:1.7;margin:0}.hd-inline{border-top:1px solid var(--line);margin-top:26px;padding-top:20px;font-family:inherit;color:var(--ink)}.hd-inline header{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:space-between;align-items:center}.hd-inline header>span{font-size:14px;font-weight:700}.hd-inline header a{font-size:12px;color:var(--green);display:inline-flex;align-items:center;min-height:44px;gap:7px;text-decoration:none}.hd-inline-note{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 13px}.hd-inline-card{display:flex;flex-direction:column;gap:7px;padding:17px 18px;border:1px solid var(--line);background:var(--panel);border-radius:12px;color:var(--ink);text-decoration:none;margin-bottom:10px}.hd-inline-card strong{font-size:14px;line-height:1.7}.hd-inline-card span{font-size:13px;line-height:1.8;color:var(--muted)}.hd-inline-card small{font-size:11px;line-height:1.7;color:var(--green)}.hd-home{display:flex;gap:16px;align-items:center;border:1px solid var(--line);padding:22px;border-radius:16px;background:var(--panel);color:var(--ink);text-decoration:none;margin:22px 0}.hd-home>span:nth-child(2){display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.hd-home small{font-size:10px;letter-spacing:.1em;color:var(--green);font-weight:750}.hd-home[dir=rtl] small{letter-spacing:0;font-size:12px}.hd-home strong{font-size:17px;line-height:1.5}.hd-home span span{font-size:12px;line-height:1.8;color:var(--muted)}.hd-home-mark{font-size:32px;color:var(--green);align-self:flex-start}.hd-home>b{font-size:20px;font-weight:400;color:var(--green)}@media(max-width:700px){.mushaf-hadith{padding:18px 18px 108px}.hd-header{margin-bottom:23px}.hd-grid{grid-template-columns:1fr;gap:13px}.hd-card{padding:20px}.hd-card-arabic{font-size:25px}.hd-topics{gap:7px}.hd-topics button{font-size:12px;padding:10px 12px}.hd-quotation{padding:18px}.hd-resources{grid-template-columns:1fr}.hd-home{padding:18px;gap:12px}.hd-home-mark{display:none}}@media(max-width:360px){.mushaf-hadith{padding-inline:14px}.hd-header h1{font-size:27px}.hd-card{padding:17px}.hd-topics button{font-size:11px}.hd-quotation{padding:15px}.hd-pagination{gap:8px}.hd-pagination button{padding:10px 12px}}@media(prefers-reduced-motion:reduce){.mushaf-hadith *{scroll-behavior:auto!important}}
.hadith-library-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:17px 18px;margin:16px 0;color:var(--green);text-decoration:none;font:650 14px/1.7 inherit}.hadith-library-entry:focus-visible{outline:3px solid var(--green);outline-offset:3px}.hadith-library-entry small{display:block;font-weight:400;color:var(--muted);font-size:12px}.hadith-library-entry span{min-width:0}
.hd-book-entry{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;border:1px solid var(--line);border-inline-start:3px solid var(--green);border-radius:13px;background:var(--panel);text-decoration:none;margin:0 0 26px}.hd-book-entry>span{display:flex;flex-direction:column;gap:6px;min-width:0}.hd-book-entry small{font-size:10px;font-weight:750;letter-spacing:.08em;color:var(--green)}.mushaf-hadith[dir=rtl] .hd-book-entry small{letter-spacing:0;font-size:12px}.hd-book-entry strong{font-size:17px;line-height:1.7;color:var(--ink)}.hd-book-entry span span{font-size:12px;color:var(--muted);line-height:1.8}.hd-book-entry>b{font-size:22px;font-weight:400}@media(max-width:400px){.hd-book-entry{padding:17px}}
.hd-card-label{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.06em;margin-bottom:7px}.mushaf-hadith[dir=rtl] .hd-card-label{font-size:11px;letter-spacing:0}.hd-card-arabic{border-top:0;padding-top:0}
.hd-source-actions{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:12px 0}.mushaf-hadith .hd-source-in-app{background:var(--green);color:var(--on-accent,#fff);padding:10px 15px;border:1px solid var(--green);border-radius:10px;text-decoration:none;font-weight:700;line-height:1.7;min-height:46px;max-width:100%}

.study-source-home.source-index {
  max-width: 60rem;
  margin-inline: auto;
  color: var(--ink);
  text-align: start;
}
.source-index h1 { margin: .5rem 0 1rem; font-size: clamp(1.45rem,4vw,2.05rem); line-height: 1.45; }
.source-index .source-verse-place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.source-index .source-verse-place > div:first-child { display: grid; gap: .2rem; }
.source-index .source-verse-place > div > span, .source-index-group p, .source-index-list small {
  color: var(--muted);
}
.source-index .source-verse-place > div > span, .source-index-list small { font-size: .875rem; }
.source-index .source-verse-actions { display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.source-index .source-verse-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  text-underline-offset: .18em;
}
.source-index .source-index-group { margin-block-start: 1.5rem; }
.source-index .source-index-group h2 { margin: 0 0 .3rem; font-size: 1.16rem; line-height: 1.6; }
.source-index .source-index-group p { margin: 0 0 .6rem; font-size: .925rem; line-height: 1.65; }
.source-index .source-index-list { border-block-start: 1px solid var(--line); }
.source-index .source-index-list > :is(a,button) {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 0 1rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: .65rem .15rem;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.source-index .source-index-list small { display: block; }
.source-index .source-index-list .vh-entry > :is(strong,span) { grid-column: 1; }
.source-index .source-index-list .vh-entry > strong { font: inherit; }
.source-index .source-index-list .vh-entry > span { color: var(--muted); font-size: .875rem; }
.source-index .vh-entry::after { grid-column: 2; grid-row: 1 / span 2; }
.source-index .source-row-arrow, .source-index .vh-entry::after {
  justify-self: center;
  content: '';
  inline-size: .45em;
  block-size: .45em;
  border-inline-end: 2px solid var(--green);
  border-block-start: 2px solid var(--green);
  transform: rotate(45deg);
}
.source-index[dir=rtl] .source-row-arrow, .source-index[dir=rtl] .vh-entry::after { transform: rotate(-45deg); }
.source-index :is(a,button):focus-visible { outline: 3px solid var(--sd-focus,var(--green)); outline-offset: 2px; }
@media (hover:hover) {
  .source-index .source-index-list > :is(a,button):hover { background: var(--pale); }
}
.source-verse-place [data-source-study-reports]:empty{display:none}
.source-verse-place [data-source-study-reports]:not(:empty){flex-basis:100%;border-block-start:1px solid var(--line);padding-block-start:.35rem}

/* v116: one entry per narration, with the reading ahead of optional controls. */
.mushaf-hadith { max-width: 54rem; }
.hd-grid { grid-template-columns: minmax(0,1fr); gap: 0; border-block-start: 1px solid var(--line); }
.hd-card.hd-card-calm { padding: 0; background: transparent; border: 0; border-block-end: 1px solid var(--line); border-radius: 0; }
.hd-card-link { display: block; padding: 1.05rem .2rem; text-decoration: none; color: var(--ink) !important; }
.hd-card-topic { display: block; font-size: .8125rem; color: var(--muted); }
.hd-card-calm h2 { margin: .2rem 0 .5rem; font-size: 1.1rem; line-height: 1.65; }
.hd-card-calm .hd-card-label { display: block; margin: 0; font-size: .8125rem; letter-spacing: 0; font-weight: 400; }
.hd-card-calm .hd-card-arabic { padding: 0; margin: .25rem 0 .5rem; border: 0; font-size: 1.3rem; line-height: 1.9; -webkit-line-clamp: 2; }
.hd-card-source { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.65; }
.hd-card-action { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--green); font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.hd-card-link:hover { background: var(--pale); }
.hd-topic-filter { margin-block: .4rem; }
.hd-topic-filter > summary,.hd-record-options > details > summary { min-height: 2.75rem; align-content: center; padding-block: .5rem; cursor: pointer; color: var(--green); font-size: .875rem; }
.hd-topics { margin-top: .25rem; }
.hd-topics button { font-size: .875rem; }
.hd-controls label,.hd-result-heading,.hd-pagination,.hd-back { font-size: .875rem; }
.hd-detail > h1 { font-size: clamp(1.5rem,4vw,2rem); line-height: 1.5; margin: .4rem 0 .5rem; }
.hd-detail .hd-kicker { font-size: .8125rem; letter-spacing: 0; }
.hd-detail .hd-speaker,.hd-source-brief { font-size: .875rem; color: var(--muted); }
.hd-detail .hd-quotation { padding: .4rem 0; border: 0; border-radius: 0; background: transparent; margin: 1rem 0; }
.hd-detail .hd-text-label { font-size: .8125rem; letter-spacing: 0; font-weight: 400; }
.hd-detail .hd-quotation blockquote { font-size: clamp(1.4rem,4vw,1.8rem); line-height: 2; margin-top: .5rem; }
.hd-detail .hd-explanation { margin-block: .75rem 1rem; }
.hd-detail .hd-explanation h2 { font-size: 1rem; margin: 0 0 .35rem; }
.hd-detail .hd-explanation > p { font-size: 1rem; line-height: 1.8; }
.hd-detail .hd-explanation > small { font-size: .8125rem; }
.hd-record-options { border-block: 1px solid var(--line); }
.hd-record-options > details { border: 0; margin: 0; padding: 0; }
.hd-record-options > details + details { border-block-start: 1px solid var(--line); }
.hd-record-options > details[open] { padding-block-end: .75rem; }
.hd-record-options .hd-source p,.hd-record-options .hd-source a,.hd-record-options .hd-copy { font-size: .875rem; }
.hd-detail + .hd-method { margin-block-start: 1rem; }
@media(max-width:360px) { .hd-card.hd-card-calm { padding: 0; } }
@media(forced-colors:active) { .hd-card-link { color: CanvasText !important; } .hd-card-action { color: LinkText; } }

.hd-library-resources { margin-block: 1rem; border-block-start: 1px solid var(--line); }
.hd-library-resources > summary { min-height: 2.75rem; align-content: center; padding-block: .5rem; color: var(--green); font-size: .875rem; cursor: pointer; }
.hd-library-resources .hd-book-entry { margin-block: .5rem; }
.hd-library-resources .hd-method { margin-block: .5rem; }
.hd-library-resources .hd-resources { margin-block: .7rem; }

/* v131: curated readings share the narration-first and Researcher source boundary. */
.mushaf-hadith{padding:4px 0 88px}
.hd-detail{max-width:46rem}
.hd-detail .hd-back{margin:0;font-size:.8125rem;min-height:44px}
.hd-collection-return{margin:12px 0 0}
.hd-detail>h1{font-size:clamp(1.4rem,4vw,1.9rem);font-weight:780;line-height:1.45;letter-spacing:-.02em;margin:4px 0 9px}
.mushaf-hadith[dir=rtl] .hd-detail>h1{line-height:1.65;letter-spacing:0}
.hd-detail .hd-speaker{margin-bottom:12px}
.hd-detail .hd-quotation{margin:13px 0 16px}
.hd-detail .hd-quotation blockquote{font-size:clamp(1.5rem,4vw,1.9rem);line-height:2}
.hd-detail .hd-explanation h2{font-size:.8125rem;font-weight:650;color:var(--green)}
.hd-detail .hd-explanation>p{font-size:1rem;line-height:1.85}
.hd-detail .hd-explanation>small{font-size:.75rem}
.hd-detail .hd-related-verses{margin:19px 0 13px}
.hd-detail .hd-related-verses>h2{font-size:1rem;line-height:1.65;font-weight:700;margin:0 0 5px}
.hd-detail .hd-related-verses>p{font-size:.875rem;line-height:1.8;color:var(--muted);margin:0}
.hd-detail .hd-related-verses>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:11px 0 0}
.hd-detail .hd-related-verses a{display:flex;align-items:center;gap:9px;min-height:48px;font-size:.8125rem;font-weight:650;background:var(--pale);padding:9px 11px}
.hd-detail .hd-related-verses svg{flex:none}
.hd-detail .hd-source{margin:16px 0}
.hd-source-footer{font-size:.75rem;margin-top:14px}
.hd-source-footer>a{font-size:.75rem}
@media(max-width:700px){.mushaf-hadith{padding-inline:0}.hd-detail .hd-quotation blockquote{font-size:1.5rem}}
@media(max-width:360px){.hd-detail>h1{font-size:1.3rem}.hd-detail .hd-related-verses>div{grid-template-columns:minmax(0,1fr)}.hd-source-footer{display:block}.hd-source-footer>a{display:flex}}


/* /hadith-book.css */
.hadith-book{max-width:980px;margin:auto;padding:22px 0 55px;color:var(--ink);line-height:1.8;--hb-accent:#245a49;--hb-soft:#edf3ed;--hb-gold:#806020}.dark .hadith-book{--hb-accent:#bedcc9;--hb-soft:#23382f;--hb-gold:#e1c77e}.hadith-book *{box-sizing:border-box}.hadith-book a{color:var(--hb-accent);text-underline-offset:4px}.hadith-book button,.hadith-book select,.hadith-book input{font:inherit}.hadith-book button{cursor:pointer;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:9px;min-height:44px;padding:9px 15px;line-height:1.55}.hadith-book button:disabled{opacity:.4;cursor:default}.hadith-book :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--hb-gold);outline-offset:3px}.hb-back{display:inline-flex;align-items:center;min-height:44px;font-size:13px;margin-bottom:12px}.hb-heading{max-width:740px;margin-bottom:20px}.hb-heading h1{font-size:clamp(28px,3.5vw,40px);line-height:1.35;margin:8px 0 14px;letter-spacing:-.03em}.hadith-book[dir=rtl] h1{letter-spacing:0;line-height:1.7}.hb-heading>p:not(.hb-eyebrow){color:var(--muted);font-size:16px;max-width:62ch}.hb-eyebrow{font-size:11px;letter-spacing:.08em;color:var(--hb-gold);font-weight:700;margin:0}.hadith-book[dir=rtl] .hb-eyebrow{letter-spacing:0}.hb-count{display:inline-flex;gap:8px;background:var(--hb-soft);color:var(--hb-accent);font-size:12px;border-radius:6px;padding:6px 11px;font-weight:650}.hb-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hb-controls label,.hb-reading-heading label{display:grid;gap:7px;font-size:12px;font-weight:650}.hb-controls :is(select,input),.hb-reading-heading select{width:100%;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:10px 12px;font-size:14px}.hb-search-help,.hb-language-note,.hb-chapter-note{font-size:12px;color:var(--muted);line-height:1.8}.hb-search-help{margin:8px 0 25px}.hb-reading-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0}.hb-reading-heading h2{font-size:20px;line-height:1.6;font-weight:650;margin:0}.hb-reading-heading label{min-width:104px;flex-shrink:0}.hb-report{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;padding:26px 30px}.hb-report-meta{display:flex;justify-content:space-between;gap:15px;color:var(--hb-gold);font-size:10px;letter-spacing:.045em;font-weight:650;flex-wrap:wrap}.hb-report-meta bdi{letter-spacing:0;color:var(--muted);font-weight:500}.hb-report blockquote{font-family:var(--arabic,'Amiri',serif);font-size:29px;line-height:2.15;margin:22px 0 28px;text-align:start;overflow-wrap:anywhere;white-space:pre-line;font-weight:400;color:var(--ink)}.hb-language-note{margin:14px 0 0}.hb-report footer{border-top:1px solid var(--line);padding-top:16px;display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.hb-report footer a{display:inline-flex;min-height:44px;align-items:center;font-size:13px}.hb-report footer button{font-size:13px}.hb-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin:22px 0 5px}.hb-pager button{min-height:49px;font-size:13px}.hb-pager span{font-size:12px;color:var(--muted)}.hb-chapter-note{text-align:center}.hb-provenance{margin-top:35px;border-top:1px solid var(--line);padding-top:15px;font-size:13px;color:var(--muted)}.hb-provenance summary{min-height:44px;cursor:pointer;padding:8px 0;color:var(--ink);font-weight:650}.hb-provenance p{max-width:760px;line-height:1.95}.hb-provenance a{display:inline-flex;min-height:44px;align-items:center}.hb-results-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:20px 0}.hb-results-heading h2{font-size:19px;margin:0}.hb-results-heading button{font-size:12px}.hb-results{display:grid;gap:12px}.hadith-book .hb-results>button{display:block;text-align:start;padding:20px 22px;border-radius:13px;width:100%}.hb-results>button>span{font-size:12px;color:var(--muted);display:block}.hb-results>button p{font:24px/1.9 var(--arabic,'Amiri',serif);color:var(--ink);margin:13px 0;overflow-wrap:anywhere}.hb-results>button>strong{font-size:12px;color:var(--hb-accent)}.hb-empty,.hb-loading{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:25px;font-size:14px}.hadith-book [data-hb-status]:not(:empty){background:var(--hb-soft);color:var(--hb-accent);padding:12px 16px;border-radius:9px;margin:15px 0;font-size:13px}.hadith-book [data-hb-content]{scroll-margin-top:160px}@media(max-width:650px){.hadith-book{padding-top:12px}.hb-heading h1{font-size:29px}.hb-heading>p:not(.hb-eyebrow){font-size:14px}.hb-controls{grid-template-columns:1fr;gap:13px}.hb-reading-heading{gap:14px;align-items:start}.hb-reading-heading h2{font-size:18px}.hb-reading-heading label{min-width:78px;max-width:90px}.hb-report{padding:21px 18px}.hb-report blockquote{font-size:27px;line-height:2.05}.hb-report-meta{font-size:9px}.hb-pager{gap:9px}.hb-pager button{padding:9px 8px;font-size:12px}.hb-pager span{font-size:11px}.hb-results>button{padding:17px!important}.hb-results>button p{font-size:23px}.hb-provenance{font-size:12px}.hb-report footer{gap:7px}.hb-report footer button{font-size:12px}.hb-search-help{font-size:11px}}
.hb-gradings{border-top:1px solid var(--line);padding:12px 0;margin-bottom:16px;font-size:12px;color:var(--muted)}.hb-gradings summary{cursor:pointer;min-height:44px;padding:9px 0;color:var(--ink);font-weight:650}.hb-gradings>div{padding:12px 0;border-bottom:1px solid var(--line);display:grid;gap:5px}.hb-gradings strong{color:var(--ink);font-size:13px}.hb-gradings span{font-size:17px;text-align:start;color:var(--ink)}.hb-gradings small{font-size:11px;overflow-wrap:anywhere}

/* v107: complete narration first, compact secondary attribution. */
.hb-gradings{padding:.2rem 0;margin-block:.2rem .6rem;font-size:.875rem;border:0}
.hb-gradings summary{min-height:2.25rem;padding:.3rem 0;font-size:.875rem;font-weight:500}
.hb-gradings>div{padding:.35rem 0;gap:.15rem;font-size:.875rem}
.hb-gradings strong,.hb-gradings small{font-size:.875rem}
.hb-gradings span{font-size:1rem}
.hb-provenance{margin-top:1.25rem;padding-top:.5rem;font-size:.875rem}
.hb-report footer{padding-top:.5rem;gap:.5rem}

/* v116: the complete narration leads; browsing and listening stay available on request. */
.hadith-book { max-width: 50rem; }
.hb-heading { margin-block-end: .6rem; }
.hb-heading h1 { font-size: clamp(1.4rem,4vw,1.9rem); margin-block: .3rem .6rem; }
.hb-back,.hb-eyebrow { font-size: .875rem; }
.hb-eyebrow { letter-spacing: 0; }
.hb-browse { margin-block: .3rem .6rem; border-block: 1px solid var(--line); }
.hb-browse > summary,.hb-reading-options > details > summary { min-height: 2.75rem; padding-block: .5rem; cursor: pointer; color: var(--hb-accent); font-size: .875rem; align-content: center; }
.hb-browse .hb-controls { padding-block: .4rem; }
.hb-controls label,.hb-reading-heading label,.hb-search-help { font-size: .875rem; }
.hb-reading-heading { margin-block: .9rem .5rem; align-items: center; }
.hb-reading-heading h2 { font-size: 1.1rem; }
.hb-report { border: 0; border-radius: 0; padding: .75rem 0 0; background: transparent; }
.hb-report-meta { font-size: .8125rem; letter-spacing: 0; }
.hb-report blockquote { font-size: clamp(1.4rem,4vw,1.85rem); line-height: 2; margin-block: .65rem 1.1rem; }
.hb-reading-options { border-block: 1px solid var(--line); }
.hb-reading-options > details + details { border-block-start: 1px solid var(--line); }
.hb-reading-options > details[open] { padding-block-end: .65rem; }
.hb-source-tools footer { border-block-start: 0; }
.hb-pager button,.hb-pager span,.hb-chapter-note { font-size: .875rem; }
.hb-provenance { margin-block-start: .7rem; }
@media(max-width:650px) { .hb-report { padding-inline: 0; } .hb-reading-heading label { min-width: 5.25rem; } }


/* /hadith-index.css */
.hadith-index,.hi-inline{color:var(--ink,#183a32);font-family:inherit;line-height:1.7;overflow-wrap:anywhere}.hadith-index{max-width:1100px;margin:auto;padding:28px clamp(15px,4vw,42px) 104px}.hadith-index *,.hi-inline *{box-sizing:border-box}.hadith-index :is(button,input,select){font:inherit}.hadith-index :is(button,a,input,select,summary):focus-visible,.hi-inline a:focus-visible{outline:3px solid var(--green,#235b4c);outline-offset:3px}.hadith-index button,.hadith-index select{min-height:44px;border:1px solid var(--line,#d6dcd2);border-radius:10px;padding:9px 13px;color:var(--ink);background:var(--panel,#fffdf7);cursor:pointer;max-width:100%}.hadith-index button:disabled{opacity:.45;cursor:default}.hadith-index a,.hi-inline a{color:var(--green,#235b4c);text-underline-offset:4px}.hi-header{max-width:730px;margin-bottom:23px}.hi-eyebrow{font-size:10px;font-weight:750;letter-spacing:.12em;color:var(--green);margin:0 0 8px}.hadith-index[dir=rtl] .hi-eyebrow{font-size:12px;letter-spacing:0}.hi-header h1{font-size:clamp(28px,4vw,40px);line-height:1.2;letter-spacing:-.035em;margin:0 0 14px;font-weight:650}.hadith-index[dir=rtl] .hi-header h1{letter-spacing:0;line-height:1.6}.hi-header>p:last-child{color:var(--muted);font-size:15px;line-height:1.9;margin:0}.hi-counts{display:flex;gap:14px 27px;flex-wrap:wrap;margin:20px 0;padding:17px 0;border-block:1px solid var(--line)}.hi-counts>span{display:flex;align-items:baseline;gap:8px;color:var(--muted);font-size:12px}.hi-counts strong{font-size:25px;line-height:1.2;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}.hi-method,.hi-grades{font-size:12px;color:var(--muted)}.hi-method{margin:-9px 0 20px}.hi-method summary,.hi-grades summary,.hi-filters summary,.hi-listen summary,.hi-relations summary{min-height:44px;padding:10px 0;cursor:pointer;color:var(--green);font-size:13px;font-weight:650}.hi-method p,.hi-grades p{margin:7px 0 13px}.hi-method h3{font-size:14px;color:var(--ink);margin-bottom:5px}.hi-method ul{list-style:none;margin:12px 0;padding:0}.hi-method li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 18px;border-bottom:1px solid var(--line);padding:10px 0}.hi-method li span{font-size:11px}.hi-method a{display:inline-flex;align-items:center;min-height:44px}.hi-filters{padding:19px;background:var(--panel);border:1px solid var(--line);border-radius:15px;margin:0 0 14px}.hi-filters>label{font-size:12px;font-weight:700;display:block;margin-bottom:9px}.hi-filters>input{width:100%;min-height:48px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:11px 13px;font-size:14px;min-width:0}.hi-filters input::placeholder{color:var(--muted);opacity:1}.hi-filters details{margin-top:5px}.hi-selects{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hi-selects label{min-width:0;font-size:12px;font-weight:650}.hi-selects label:last-child{grid-column:1/-1}.hi-selects select{display:block;width:100%;font-size:12px;font-weight:400;margin-top:6px}.hi-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:12px;margin-top:10px;border-top:1px solid var(--line);font-size:12px}.hi-context a{display:inline-flex;min-height:44px;align-items:center}.hi-result-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin:5px 0 14px}.hi-result-heading p{margin:0}.hi-result-heading button{font-size:12px;padding:7px 11px}.hi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.hi-card{display:flex;flex-direction:column;min-width:0;padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:16px}.hi-card-top{display:flex;align-items:start;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.hi-card-top>small{font-size:10px;text-align:end}.hi-card h2{font-size:19px;line-height:1.55;letter-spacing:-.01em;margin:13px 0 12px}.hi-card h2 a{color:var(--ink);text-decoration:none}.hi-card h2 a:hover{text-decoration:underline}.hi-badges{display:flex;flex-wrap:wrap;gap:6px}.hi-badge{display:inline-block;padding:4px 8px;font-size:10px;line-height:1.5;font-weight:600;border:1px solid var(--line);border-radius:6px;background:var(--pale);color:var(--green)}.hi-badge.hi-quotation{border-inline-start:3px solid #418b94}.hi-badge.hi-surah{border-inline-start:3px solid #a28437}.hi-badge.hi-theme{border-inline-start:3px solid #769675}.hi-snippet{font:400 24px/2 var(--arabic,Amiri,serif);text-align:start;margin:15px 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hi-locator{font-size:11px;line-height:1.7;color:var(--muted)}.hi-open{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-top:auto;padding-top:12px;text-decoration:none;font-size:13px;font-weight:700}.hi-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0;font-size:12px;color:var(--muted)}.hi-pager button{font-size:12px}.hi-loading,.hi-empty{padding:26px 20px;border:1px solid var(--line);background:var(--panel);border-radius:12px;font-size:14px}.hi-empty h2{font-size:20px}.hi-curated{display:flex;align-items:center;min-height:48px;font-size:13px;margin-top:20px}.hi-detail{max-width:780px;margin:auto}.hi-link-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px}.hi-link-row a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:13px}.hi-detail>.hi-link-row{margin-bottom:24px}.hi-detail>.hi-link-row a{text-decoration:none}.hi-detail .hi-origin{padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:var(--pale);font-weight:650}.hi-detail>h2{font-size:clamp(25px,3.8vw,35px);line-height:1.4;letter-spacing:-.025em;margin:8px 0 13px}.hadith-index[dir=rtl] .hi-detail>h2{letter-spacing:0;line-height:1.7}.hi-small{color:var(--muted);font-size:12px;line-height:1.9}.hi-detail>.hi-small{margin:14px 0 20px}.hi-detail>section.hi-quotation{background:var(--panel);border:1px solid var(--line);border-inline-start:3px solid var(--green);border-radius:15px;padding:24px;margin:20px 0 15px}.hi-text-label{font-size:10px;font-weight:700;letter-spacing:.07em;color:var(--muted)}.hadith-index[dir=rtl] .hi-text-label{letter-spacing:0;font-size:12px}.hi-quotation blockquote{font:400 clamp(25px,3.6vw,32px)/2.1 var(--arabic,Amiri,serif);white-space:pre-line;text-align:start;margin:17px 0 0;color:var(--ink)}.hi-quotation>button{margin-top:17px;font-size:12px}.hi-listen{border:1px solid var(--line);border-radius:12px;padding:0 17px;background:var(--panel);margin-bottom:24px}.hi-listen>summary{padding-block:13px;min-height:50px}.hi-listen .ha-player{margin:5px 0 17px}.hi-source{border-block:1px solid var(--line);padding:21px 0;margin:23px 0}.hi-source>h3,.hi-relations>h3{font-size:17px;margin:0 0 11px}.hi-source>p{font-size:13px;line-height:1.9}.hi-source .hi-link-row button{font-size:12px}.hi-grades{margin-top:15px}.hi-grades>div{padding:13px 0;border-top:1px solid var(--line)}.hi-grades strong{color:var(--ink)}.hi-grades>div>p{font-family:var(--arabic,Amiri,serif);font-size:21px}.hi-grades small{font-size:11px}.hi-relations>article{padding:18px;border:1px solid var(--line);border-radius:12px;margin:12px 0;background:var(--panel)}.hi-relations>article>p{font-size:13px;line-height:1.9;margin:10px 0}.hi-relations>article>a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:13px;font-weight:650}.hi-relations>article>small{display:block;color:var(--muted);font-size:11px;line-height:1.8}.hi-relations details>p{font:400 23px/2 var(--arabic,Amiri,serif);margin:10px 0}.hi-relations summary{font-size:12px}.hi-source-issue{border:1px solid var(--line);border-inline-start:3px solid #a28437;padding:16px;border-radius:10px;font-size:12px;line-height:1.9;background:var(--pale)}.hi-source-issue strong{color:var(--ink)}.hi-source-issue p{color:var(--muted);margin:5px 0}.hi-inline{margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.hi-inline>header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 18px;font-size:14px}.hi-inline>header>a{min-height:44px;display:inline-flex;align-items:center;font-size:12px}.hi-inline>p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 14px}.hi-inline-card{display:flex;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-top:10px;background:var(--panel);text-decoration:none}.hi-inline-card strong{font-size:14px;color:var(--ink)}.hi-inline-card small{font-size:11px;color:var(--muted)}
@media(max-width:700px){.hadith-index{padding:18px 16px 105px}.hi-header h1{font-size:30px}.hi-header>p:last-child{font-size:14px}.hi-counts{gap:10px 17px}.hi-counts>span{font-size:11px;gap:6px}.hi-counts strong{font-size:22px}.hi-grid{grid-template-columns:1fr;gap:12px}.hi-card{padding:18px}.hi-card h2{font-size:19px}.hi-selects{grid-template-columns:1fr}.hi-selects label:last-child{grid-column:auto}.hi-filters{padding:15px}.hi-detail>section.hi-quotation{padding:18px}.hi-detail>h2{font-size:27px}.hi-relations>article{padding:16px}.hi-listen{padding-inline:13px}.hi-detail>.hi-link-row{gap:7px 15px}.hi-quotation blockquote{font-size:27px;line-height:2.1}}
@media(max-width:360px){.hadith-index{padding-inline:12px}.hi-header h1{font-size:27px}.hi-card{padding:16px}.hi-counts{gap:9px 12px}.hi-counts>span{flex-direction:column;align-items:start;gap:2px}.hi-counts strong{font-size:24px}.hi-badge{font-size:10px}.hi-detail>section.hi-quotation{padding:15px}.hi-pager{gap:7px}.hi-pager button{padding:8px 10px}.hi-inline-card{padding:14px}.hi-text-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.hadith-index *,.hi-inline *{scroll-behavior:auto!important;transition:none!important}}
.hi-next-step{margin:24px 0 0;padding:18px 20px;background:var(--pale);border:1px solid var(--line);border-radius:12px;font-size:13px}.hi-next-step strong{font-size:14px}.hi-next-step p{color:var(--muted);margin:7px 0}.hi-next-step a{display:inline-flex;align-items:center;min-height:44px;font-weight:650;font-size:13px}.hi-detail>.hi-link-row{position:sticky;top:0;z-index:2;background:var(--bg,#faf8f2);padding-block:7px;border-bottom:1px solid var(--line)}
.hi-match-label{color:var(--muted);font-size:10px;font-weight:600;margin-top:14px}.hi-match-label+.hi-snippet{margin-top:6px}.hi-editorial{font-size:13px;line-height:1.8;color:var(--muted);margin:13px 0 0}.hi-editorial small{display:block;font-size:10px;font-weight:650;color:var(--green);margin-bottom:5px}
.hi-source-note{margin:15px 0;padding:14px 16px;background:var(--pale);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.9}.hi-source-note p{margin:5px 0;color:var(--muted)}
.hadith-index :is(a,button,summary,input,select,[tabindex]),.hi-inline a{scroll-margin-block-start:120px;scroll-margin-block-end:95px}.hi-header-context{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;max-width:none;margin-bottom:16px}.hi-header-context h1{font-size:27px;line-height:1.4;margin:0}.hi-header-context>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;white-space:nowrap}.hi-verse-view .hi-filters{margin-bottom:9px}.hi-verse-view .hi-context{margin-top:4px;padding-top:5px}
@media(max-width:700px){.hadith-index.hi-verse-view{padding-top:10px}.hi-header-context{gap:8px 12px;margin-bottom:10px;flex-wrap:wrap}.hi-header-context h1{font-size:24px;line-height:1.4}.hi-header-context>a{font-size:11px}.hi-verse-view .hi-filters{padding:12px 14px}.hi-verse-view .hi-filters>label{margin-bottom:6px}.hi-verse-view .hi-result-heading{margin:2px 0 10px}}

/* v131: a narration shelf and one reading surface; apparatus belongs to Researcher. */
.hadith-index{max-width:54rem;padding:4px 0 88px}
.hi-header{max-width:none;margin-bottom:18px}
.hi-title-row{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:9px}
.hi-library-mark,.hi-reading-symbol{display:grid;place-items:center;background:var(--pale);color:var(--green);border:1px solid var(--line);border-radius:13px;inline-size:42px;block-size:42px}
.hi-library-mark:empty,.hi-reading-symbol:empty{visibility:hidden}
.hi-library-mark svg,.hi-reading-symbol svg{inline-size:23px;block-size:23px;stroke-width:2}
.hi-header .hi-eyebrow{font-size:.65rem;line-height:1.5;margin:0 0 3px;letter-spacing:.08em}
.hi-header h1{font-size:clamp(1.45rem,4.2vw,1.9rem);font-weight:780;line-height:1.35;letter-spacing:-.025em;margin:0}
.hi-header>p:last-child{font-size:.9375rem;line-height:1.75;margin:0;color:var(--muted)}
.hadith-index[dir=rtl] .hi-header h1{line-height:1.6;letter-spacing:0}
.hi-header-context{display:block;margin-bottom:13px}
.hi-header-context>nav{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:5px}
.hi-header-context>nav>a{display:inline-flex;align-items:center;min-height:44px;font-size:.8125rem}
.hi-filters,.hi-verse-view .hi-filters{background:transparent;border:0;padding:0;margin:0 0 12px}
.hi-filters>label{font-size:.8125rem;margin-bottom:7px}
.hi-filters>input{min-height:46px;background:var(--panel);font-size:.9375rem;padding:10px 12px}
.hi-filters .hi-topic-choice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 0;font-size:.8125rem;font-weight:650}
.hi-topic-choice select{flex:1;max-inline-size:22rem;min-inline-size:0;min-height:44px;padding:7px 10px;font-size:.875rem;font-weight:500}
.hi-filters .hi-context{margin:7px 0 0;padding:0;border:0;font-size:.75rem}
.hi-research-filters{border-top:1px solid var(--line);padding-top:2px}
.hi-research-filters .hi-selects label:last-child{grid-column:auto}
.hi-result-heading{min-height:29px;margin:0 0 8px;font-size:.8125rem}
.hi-result-heading button{min-height:36px;padding:4px 9px;background:transparent}
.hi-grid{gap:13px}
.hi-card{padding:0;overflow:hidden;border-radius:15px;box-shadow:0 2px 10px #193d2e04}
.hi-card-link{display:flex;flex-direction:column;flex:1;min-width:0;padding:17px 18px;color:var(--ink)!important;text-decoration:none}
.hi-card-link:hover{background:var(--pale)}
.hi-card-link:focus-visible{outline-offset:-3px!important}
.hi-card-top{font-size:.75rem;line-height:1.5;color:var(--green)}
.hi-card-top>span{font-weight:650}
.hi-card h2{font-size:1.0625rem;line-height:1.5;font-weight:750;margin:6px 0 8px;color:var(--ink)}
.hi-card .hi-snippet{font-size:1.4rem;line-height:1.95;margin:9px 0 4px;-webkit-line-clamp:2}
.hi-card .hi-editorial{margin:0 0 4px;font-size:.875rem;line-height:1.7}
.hi-card .hi-editorial small{font-size:.6875rem;margin-bottom:2px}
body:not([data-profile=researcher]) .hi-card-meaning{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hi-card .hi-match-label{font-size:.6875rem;margin-top:5px}
.hi-card .hi-open{font-size:.8125rem;min-height:44px;padding-top:6px;color:var(--green)}
.hi-open>span{display:grid;place-items:center;inline-size:24px;block-size:24px}
.hi-open svg{inline-size:18px;block-size:18px}
.hadith-index[dir=rtl] :is(.hi-open>span,.hi-quran-arrow){transform:rotate(180deg)}
.hi-library-research{border-block-start:1px solid var(--line);margin-top:20px;padding-top:12px}
.hi-library-research .hi-counts{margin-top:10px}
.hi-library-footer{margin-top:8px}
.hadith-index.hi-record-view{max-width:46rem}
.hi-detail{max-width:none}
.hi-detail>.hi-link-row{position:static;margin:0 0 12px;padding:0;background:transparent;border-bottom:1px solid var(--line);gap:0 17px}
.hi-detail>.hi-link-row a{font-size:.8125rem;line-height:1.65;min-height:44px;padding-block:7px}
.hi-detail .hi-origin{border:0;border-radius:0;background:transparent;padding-inline:0}
.hi-reading-heading{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:10px}
.hi-reading-symbol{inline-size:38px;block-size:38px;border-radius:11px;margin-top:2px}
.hi-reading-heading h1{font-size:clamp(1.4rem,4vw,1.9rem);line-height:1.4;letter-spacing:-.02em;font-weight:780;margin:0;text-wrap:pretty}
.hi-reading-heading .hi-eyebrow{font-size:.75rem;line-height:1.5;letter-spacing:0;margin:0 0 4px}
.hadith-index[dir=rtl] .hi-reading-heading h1{line-height:1.65;letter-spacing:0}
.hi-speaker{font-size:.875rem;line-height:1.7;color:var(--muted);margin:9px 0 0}
.hi-record-view .hi-detail>section.hi-quotation{border:0;border-radius:0;background:transparent;padding:0;margin:18px 0 15px}
.hi-record-view .hi-text-label{font-size:.75rem;line-height:1.65;letter-spacing:0;font-weight:550}
.hi-record-view .hi-quotation blockquote{font-size:clamp(1.5rem,4vw,1.9rem);line-height:2;margin:8px 0 0;overflow-wrap:break-word}
.hi-reading-meaning{margin:14px 0 17px}
.hi-reading-meaning h2{font-size:.8125rem;font-weight:650;line-height:1.65;margin:0 0 5px;color:var(--green)}
.hi-reading-meaning p{font-size:1rem;line-height:1.85;margin:0;color:var(--ink)}
.hi-record-view .hi-listen{border:0;border-block:1px solid var(--line);border-radius:0;background:transparent;padding:0;margin:16px 0}
.hi-record-view .hi-listen>summary{min-height:46px;padding:10px 0;font-size:.875rem}
.hi-quran-links{margin:18px 0 12px}
.hi-quran-links>h2{font-size:1rem;line-height:1.6;font-weight:700;margin:0 0 5px}
.hi-quran-link{display:grid;grid-template-columns:28px minmax(0,1fr) 18px;gap:10px;align-items:center;padding:10px 0;min-height:64px;border-bottom:1px solid var(--line);text-decoration:none}
.hi-quran-link strong{display:block;font-size:.875rem;font-weight:700;line-height:1.6}
.hi-quran-link small{display:block;font-size:.75rem;line-height:1.65;color:var(--muted);margin-top:2px}
.hi-quran-mark{display:grid;place-items:center;inline-size:28px;block-size:28px;border-radius:8px;background:var(--pale);color:var(--green)}
.hi-quran-mark svg{inline-size:17px;block-size:17px}
.hi-quran-arrow svg{inline-size:16px;block-size:16px}
.hi-more-ayahs>summary{min-height:44px;padding:10px 0;font-size:.8125rem;font-weight:650;cursor:pointer;color:var(--green)}
.hi-source>summary{min-height:46px;padding:8px 0;font-size:1rem;font-weight:700;cursor:pointer;color:var(--green)}
.hi-detail .hi-source{padding:4px 0 12px;margin:18px 0}
.hi-reading-next{display:inline-flex;align-items:center;min-height:44px;font-size:.8125rem;line-height:1.7;margin:5px 0}
.hi-source-footer{font-size:.75rem;margin-top:12px;padding-top:6px}
.hi-source-footer>a{font-size:.75rem}
.hi-collection-return{margin:12px 0 0}
.hi-collection-return>a{display:inline-flex;align-items:center;min-height:44px;font-size:.8125rem;line-height:1.7;text-decoration:none}
@media(max-width:700px){.hadith-index{padding-inline:0}.hi-grid{grid-template-columns:minmax(0,1fr)}.hadith-index.hi-verse-view{padding-top:4px}.hi-card-link{padding:15px 16px}.hi-header .hi-eyebrow{font-size:.625rem}.hi-verse-view .hi-result-heading{margin-bottom:8px}.hi-reading-heading h1{font-size:1.4rem}.hi-record-view .hi-quotation blockquote{font-size:1.5rem}}
@media(max-width:360px){.hi-title-row{grid-template-columns:36px minmax(0,1fr);gap:9px}.hi-library-mark{inline-size:36px;block-size:36px;border-radius:11px}.hi-header h1{font-size:1.35rem}.hi-card-link{padding:14px}.hi-reading-heading{grid-template-columns:32px minmax(0,1fr);gap:9px}.hi-reading-symbol{inline-size:32px;block-size:32px}.hi-reading-heading h1{font-size:1.3rem}.hi-source-footer{display:block}.hi-source-footer>a{display:flex}}
@media(forced-colors:active){.hi-library-mark,.hi-reading-symbol,.hi-quran-mark{background:Canvas;color:CanvasText;border:1px solid CanvasText}.hi-card-link{color:CanvasText!important}.hi-open{color:LinkText!important}}


/* /print-witnesses.css */
.pw-page{max-inline-size:46rem;margin-inline:auto;padding:.8rem 1rem;color:var(--ink);line-height:1.65}
.pw-page h1{font-size:clamp(1.5rem,4vw,2rem);line-height:1.4;margin:.75rem 0 .3rem}
.pw-page h2{font-size:1.2rem}
.pw-page summary,.pw-page button,.pw-page a{min-block-size:44px;align-content:center}
.pw-link,.pw-refs a,.pw-pages a{display:inline-flex;align-items:center;color:var(--green);text-underline-offset:.18em}
.pw-page form{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap;margin-block:1.3rem}
.pw-page form input{display:block;font:inherit;width:10rem;padding:.4rem .6rem;min-height:44px}
.pw-page form p:empty{display:none}
.pw-page button{padding:.5rem .85rem;border:1px solid var(--line);border-radius:.45rem;background:var(--panel);font:inherit;color:var(--ink)}
.pw-rows,.pw-books{list-style:none;padding:0}
.pw-rows li,.pw-books li{padding:.65rem 0;border-block-start:1px solid var(--line)}
.pw-rows li>div,.pw-books a,.pw-pages,.pw-refs{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}
.pw-rows li>div span,.pw-books span{color:var(--muted);font-size:.92rem}
.pw-books a{justify-content:space-between;color:var(--green)}
.pw-refs a{gap:.35em}
.pw-pages{margin-block:1rem;justify-content:space-between}
.pw-page :focus-visible,.pw-link:focus-visible{outline:2px solid var(--green);outline-offset:2px}


/* /tradition-library.css */
.tr-library{max-width:56rem;margin:0 auto;padding:clamp(1rem,4vw,2.25rem) clamp(.85rem,3vw,2rem) 6rem;color:var(--ink);text-align:start;line-height:1.65;overflow-wrap:anywhere}
.tr-library *{box-sizing:border-box}
.tr-library h1,.tr-library h2,.tr-library h3,.tr-library p{margin:0 0 .65rem}
.tr-library h1{font-size:clamp(1.65rem,5vw,2.5rem);line-height:1.45}
.tr-library h2{font-size:clamp(1.25rem,4vw,1.65rem)}
.tr-library h3{font-size:1.05rem}
.tr-library a,.tr-home-link,.tr-ayah-entry{color:var(--green);text-underline-offset:.2em}
.tr-library :is(a,button,input,select,summary):focus-visible,.tr-ayah-entry:focus-visible,.tr-home-link:focus-visible{outline:3px solid var(--sd-focus,var(--green));outline-offset:2px}
.tr-library .tr-nav,.tr-library .tr-actions,.tr-library .tr-pager{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem 1rem}
.tr-library .tr-nav{margin-block-end:.8rem}
.tr-nav a,.tr-library summary,.tr-actions a,.tr-pager a,.tr-ayah-entry,.tr-home-link{display:inline-flex;align-items:center;min-height:44px}
.tr-library summary{display:list-item;align-content:center;cursor:pointer;padding-block:.45rem}
.tr-library .tr-scope{font-weight:650}
.tr-library .tr-stats,.tr-library small,.tr-citation,.tr-count{color:var(--muted)}
.tr-library .tr-context{margin-block:1rem;padding:.5rem .75rem;border-inline-start:2px solid var(--green)}
.tr-library .tr-search{display:grid;gap:.55rem;margin-block:1.2rem;min-width:0}
.tr-library label{display:grid;gap:.2rem}
.tr-library input,.tr-library select,.tr-library button{color:inherit;font:inherit;line-height:1.4}
.tr-library input,.tr-library select{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:7px;padding:.5rem .65rem;background:var(--panel)}
.tr-library button{min-height:44px;cursor:pointer;border:1px solid var(--line);border-radius:7px;background:var(--panel);padding:.4rem .9rem}
.tr-library [type=submit]{background:var(--green);color:var(--on-accent,#fff);border-color:transparent}
.tr-library .tr-actions{padding-block-start:.25rem}
.tr-library .tr-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.65rem 1rem}
.tr-library [data-tr-form-error]:empty,.tr-library [data-tr-stats]:empty{display:none}
.tr-library .tr-count{font-size:.9rem}
.tr-library .tr-list,.tr-library .tr-links ul{margin:.5rem 0 1rem;padding:0;list-style:none;border-block-start:1px solid var(--line)}
.tr-library .tr-row,.tr-library .tr-links li{display:grid;gap:.15rem;padding:.7rem .1rem;border-block-end:1px solid var(--line);text-decoration:none;color:var(--ink)}
.tr-library .tr-row small{display:block;text-align:start;font-size:.94rem}
.tr-library .tr-row [lang=ar]{font-family:var(--arabic,serif);line-height:1.9}
.tr-library .tr-row .tr-proof{color:var(--green);font-size:.82rem}
.tr-library .tr-row:hover strong{text-decoration:underline}
.tr-library .tr-citation{margin-block:1.25rem;border-block-start:1px solid var(--line)}
.tr-library .tr-report{margin-block-start:1.25rem}
.tr-library .tr-report blockquote,.tr-library .tr-quotation{margin:.65rem 0 1rem;padding:.75rem 1rem;background:var(--panel);border-inline-start:2px solid var(--line);font:normal clamp(1.3rem,4vw,1.65rem)/2 var(--arabic,serif);text-align:start;white-space:pre-line}
.tr-library .tr-report p[lang=en]{white-space:pre-line}
.tr-library .tr-report header{margin-block-end:1.35rem}
.tr-library .tr-links{margin-block-start:1.25rem}
.tr-library .tr-quotation{font-size:1.15rem}
.tr-ayah-entry,.tr-home-link{font:inherit}
.tr-entry-recovery{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .75rem;color:var(--muted);font-size:.94rem;line-height:1.6;text-align:start}
.tr-entry-recovery p{margin:0;flex:1 1 14rem}
.tr-entry-recovery button{min-height:44px;padding:.35rem .75rem;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--green);font:inherit;cursor:pointer}
.tr-entry-recovery button[aria-disabled=true]{cursor:wait}
.tr-entry-recovery :is(button,[tabindex]):focus-visible{outline:3px solid var(--sd-focus,var(--green));outline-offset:2px}
.tr-work-nav{display:flex;align-items:center;flex-wrap:wrap;gap:0 1.15rem;border-block:1px solid var(--line)}
.tr-work-nav a{display:inline-flex;align-items:center;min-height:44px}
.tr-work-nav a[aria-current=page]{color:var(--ink);text-decoration-thickness:2px;font-weight:700}
.tr-library .tr-editions{margin-block-start:1.75rem}
.tr-library .tr-editions .tr-citation{margin:0}
.tr-library .tr-coverage{color:var(--muted);font-size:.92rem}
.tr-selected{margin-block:1rem}
.tr-selected a{display:block;padding-block:.4rem}
.tr-library .tr-positive{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;margin-block-start:.4rem;cursor:pointer}
.tr-library .tr-positive input{width:1.05rem;min-height:0;height:1.05rem;accent-color:var(--green)}
.tr-library .tr-stats{font-size:.94rem}
.tr-stats ul{margin:.1rem 0 .5rem;padding-inline-start:1.4rem}
.tr-stats summary{color:var(--ink)}

.tr-report .tr-quotation-note {color:var(--muted);font-size:.95rem;margin:0 0 .4rem}
.tr-quran-words {background:#fff1b7;color:#302408;border-block-end:2px solid #a37820;border-radius:.2rem;box-decoration-break:clone;-webkit-box-decoration-break:clone}
@media (forced-colors:active){.tr-quran-words{background:Mark;color:MarkText;border-color:MarkText}}
.tr-library .tr-ayah-head {display:block;width:100%;min-width:0;margin-block-end:1rem}
.tr-library .tr-ayah-actions {display:flex;align-items:center;flex-wrap:wrap;gap:0 1.25rem}
.tr-library .tr-ayah-actions a {display:inline-flex;align-items:center;min-height:44px}
.tr-library h1.tr-context-title {font-size:clamp(1.25rem,3.2vw,1.65rem);margin-block:.45rem}
.tr-library .tr-search-fields {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(11rem,1fr);align-items:end;gap:.55rem 1rem}
.tr-library .tr-search-fields label {min-width:0}
.tr-library .tr-choose-work {margin-block:.45rem}
.tr-library .tr-report .tr-grades {margin:.5rem 0;border:0;overflow-wrap:anywhere}
.tr-library .tr-grades summary {font-size:.875rem;line-height:1.6;color:var(--muted);padding-block:.25rem}
.tr-library .tr-grades[open] summary {color:var(--ink)}
.tr-library .tr-editions > summary {font-weight:650}
.tr-library .tr-report header {margin-block-end:.55rem}
@media(max-width:40rem){.tr-library .tr-search-fields{grid-template-columns:minmax(0,1fr)}}
.tr-library .tr-criterion{margin:.35rem 0;font-size:.95rem;color:var(--muted)}
.tr-library .tr-quotation-jump{min-height:44px;padding:.25rem 0;color:var(--green);background:none;border:0;font:inherit;text-align:start;text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
.tr-library .tr-quran-words:focus{outline:2px solid var(--sd-focus,var(--green));outline-offset:2px}
.tr-library .tr-editorial-note{margin-block:.8rem;padding-block:.15rem;padding-inline:.8rem 0;border-inline-start:2px solid var(--green);font-size:1rem}
.tr-library .tr-editorial-note h3{font-size:1rem}
.tr-library .tr-report .tr-editorial-arabic{font-size:1.2rem;line-height:1.9;background:transparent;border-color:var(--green)}
.tr-library .tr-editorial-attribution{font-size:.875rem;color:var(--muted)}
.tr-library .tr-editorial-note nav{display:flex;flex-wrap:wrap;gap:0 1rem}
.tr-library .tr-editorial-note a{display:inline-flex;align-items:center;gap:.3rem;min-height:44px;padding-block:.35rem}
.tr-library .tr-editorial-note details>a{display:block;align-content:center}
.tr-library .tr-published-translation{margin-block:.6rem 1rem;border-block-end:1px solid var(--line)}
.tr-library section.tr-published-translation{padding-block:.3rem .65rem}
.tr-library section.tr-published-translation>p{font-size:1.05rem;line-height:1.85}

/* v116: search first, specialist tools on request, and short catalogue previews. */
.tr-library { max-width: 50rem; }
.tr-library .tr-search-fields { grid-template-columns: minmax(0,1fr); }
.tr-filter-options,.tr-library-info,.tr-record-tools { margin-block: .25rem .6rem; }
.tr-filter-options > summary,.tr-library-info > summary,.tr-record-tools > summary { color: var(--green); font-size: .875rem; }
.tr-filter-options[open] { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.tr-filter-options .tr-grade-filter { max-width: 24rem; }
.tr-library .tr-list { margin-block-start: .25rem; }
.tr-library .tr-row { gap: .25rem; padding: .9rem .15rem; }
.tr-library .tr-row strong { font-size: 1rem; font-weight: 650; }
.tr-library .tr-row > span { color: var(--muted); font-size: .875rem; }
.tr-library .tr-row .tr-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1rem; line-height: 1.7; }
.tr-library .tr-row .tr-preview[lang=ar] { font-size: 1.2rem; line-height: 1.9; }
.tr-library .tr-row .tr-proof { font-size: .8125rem; }
.tr-library[data-tr-record] > h1 { margin-block: .2rem .8rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
.tr-library .tr-report blockquote { background: transparent; border: 0; padding: 0; font-size: clamp(1.35rem,4vw,1.7rem); line-height: 2; }
.tr-library .tr-record-tools { border-block-start: 1px solid var(--line); padding-block-start: .25rem; }
.tr-record-tools .tr-citation { margin-block: .5rem; }
.tr-record-tools .tr-selected,.tr-record-tools .tr-links { margin-block: .5rem; }
.tr-library .tr-published-translation { border-block-end: 0; }
@media print { .tr-library .tr-row .tr-preview { display: block; overflow: visible; } }
.tr-devotion-topics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.6rem}
.tr-devotion-topics a,.tr-devotion-book li a{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.7rem;text-decoration:none;color:var(--ink);min-height:44px}
.tr-devotion-topics a,.tr-devotion-book{border:1px solid var(--line);border-radius:.65rem;background:var(--panel)}
.tr-devotion-book{margin:.5rem 0;padding:0 .75rem}.tr-devotion-book summary{padding:.75rem 0;cursor:pointer;font-weight:650}
.tr-devotion-book ol{margin:0;padding:0;list-style:none}.tr-devotion-book li{border-top:1px solid var(--line)}
.tr-devotion-book small,.tr-devotion-topics small{color:var(--muted);flex-shrink:0}.tr-devotion-book a:focus-visible,.tr-devotion-topics a:focus-visible{outline:2px solid currentColor;outline-offset:-2px}


/* /polish-v28.css */
/* v28: a calm, legible Today page and a predictable mobile header. */
.home-page .today-heading {
  display: block;
  max-width: 680px;
  margin: 4px 0 26px;
}
.home-page .today-heading .eyebrow,
.home-page .home-learning-entry > .eyebrow,
.home-page .continue-label {
  display: block;
  width: auto;
  max-width: none;
  text-align: start;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 750;
  letter-spacing: 1.25px;
  color: var(--gold-text, var(--gold));
}
.home-page .today-heading h1 {
  max-width: 22ch;
  margin: 7px 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.7px;
  text-wrap: balance;
}
.home-page .today-heading > p {
  max-width: 52ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.home-page .studio-home-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 20px;
}
.home-page .continue-card {
  min-height: 0;
  margin: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--green);
  border-radius: 16px;
  background: var(--panel) !important;
  color: var(--ink);
  box-shadow: none;
}
.home-page .continue-copy { width: 100%; max-width: none; }
.home-page .continue-copy h2 {
  margin: 10px 0 5px;
  font-family: var(--font-ui, inherit);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.5px;
  color: var(--ink);
}
.home-page .continue-copy p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.home-page .continue-copy > .btn {
  min-height: 48px;
  max-width: 100%;
  padding: 11px 18px;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  background: var(--green);
  color: var(--on-accent, #fff);
}
.home-page :is(.continue-copy > .btn, .home-workbench > :is(button,a)) > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-page .home-learning-entry {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--pale);
}
.home-page .home-learning-entry h2 {
  margin: 10px 0 8px;
  font-family: var(--font-ui, inherit);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.home-page .home-learning-entry p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.home-page .home-learning-entry .btn {
  min-height: 44px;
  width: auto;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px solid var(--control-line, var(--line));
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.home-page .home-workbench { margin: 8px 0 24px; }
.home-page .home-workbench > :is(button,a) {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: start;
}
.home-page .home-workbench > :is(button,a) > svg { color: var(--green); }
.home-page .home-workbench strong { display: block; font-size: 14px; line-height: 1.5; }
.home-page .home-workbench small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.6; }
.home-page :is(.continue-copy > .btn, .home-learning-entry .btn, .home-workbench > :is(button,a)):focus-visible {
  outline: 3px solid var(--gold-text, var(--gold));
  outline-offset: 3px;
}
html[lang="ar"] .home-page :is(.eyebrow, .continue-label, .today-heading h1, .continue-copy h2) { letter-spacing: 0; }

@media (max-width: 760px) {
  /* Keep all header actions; predictable columns stop controls drifting between rows. */
  body:not(.pages-reading) .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 64px 64px;
    align-items: center;
    gap: 6px 8px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid var(--line);
  }
  body:not(.pages-reading) .topbar > .top-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 44px;
    gap: 8px;
  }
  body:not(.pages-reading) .topbar .top-brand #topTitle {
    font-size: 12px !important;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .2px;
  }
  body:not(.pages-reading) .topbar > .profile-control {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    max-width: 230px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body:not(.pages-reading) .topbar > .profile-control .profile-select-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 44px;
    border-color: var(--line);
    background: var(--pale);
  }
  body:not(.pages-reading) .topbar > .profile-control select {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding-inline: 6px;
    font-size: 12px;
    color: var(--ink);
  }
  body:not(.pages-reading) .topbar .profile-symbol { padding-inline-start: 9px; }
  body:not(.pages-reading) .topbar #languageButton { grid-column: 2; grid-row: 1; }
  body:not(.pages-reading) .topbar #settingsButton { grid-column: 3; grid-row: 1; justify-self: end; }
  body:not(.pages-reading) .topbar .mushaf-beta-badge { grid-column: 2; grid-row: 2; }
  body:not(.pages-reading) .topbar .mushaf-explore-button { grid-column: 3; grid-row: 2; }
  body:not(.pages-reading) .topbar :is(#languageButton, #settingsButton, .mushaf-beta-badge, .mushaf-explore-button) {
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px;
    margin: 0;
  }
  body:not(.pages-reading) .topbar :is(#languageButton, .mushaf-beta-badge, .mushaf-explore-button) {
    width: 64px;
    max-width: 64px;
    padding-inline: 5px;
    justify-content: center;
  }
  body:not(.pages-reading) .topbar .mushaf-beta-badge { gap: 4px; }
  body:not(.pages-reading) .topbar .mushaf-explore-button span { font-size: 11px; }
  body.home-page .layout { padding: 24px 18px 100px; }
  .home-page .today-heading { margin: 0 0 22px; }
  .home-page .today-heading h1 { font-size: 30px; }
  .home-page .studio-home-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-page :is(.continue-card, .home-learning-entry) { padding: 21px; border-radius: 14px; }
  .home-page .continue-copy > .btn { width: 100%; }
  .home-page .continue-copy h2 { font-size: 28px; }
  .home-page .home-learning-entry h2 { font-size: 21px; }
  .home-page .home-workbench { display: block; }
  .home-page .home-workbench > :is(button,a) { width: 100%; min-height: 76px; padding: 14px 4px; border-radius: 0; background: transparent; border: 0; }
  .home-page .home-workbench > :is(button,a) + button { border-top: 1px solid var(--line); }
  html[lang="ar"] body:not(.pages-reading) .topbar .top-brand #topTitle { font-size: 15px !important; letter-spacing: 0; }
}
@media (max-width: 359px) {
  body:not(.pages-reading) .topbar { grid-template-columns: minmax(0, 1fr) 58px 58px; padding-inline: 12px !important; gap: 6px !important; }
  body:not(.pages-reading) .topbar :is(#languageButton, .mushaf-beta-badge, .mushaf-explore-button) { width: 58px; max-width: 58px; }
  body:not(.pages-reading) .topbar .top-brand img { width: 27px; height: 27px; }
  body:not(.pages-reading) .topbar .top-brand #topTitle { font-size: 11px !important; }
  body.home-page .layout { padding-inline: 14px; }
  .home-page .today-heading h1 { font-size: 27px; }
  .home-page :is(.continue-card, .home-learning-entry) { padding: 18px; }
}


/* /arabic-typography-v29.css */
/* Local, unmodified Amiri distribution. License: fonts/Amiri-OFL.txt.
   Edition-native KFGQPC text continues to use its matching verified font. */
@font-face{font-family:Amiri;src:url('/fonts/Amiri-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Amiri;src:url('/fonts/Amiri-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}

/* Never letter-space cursive scripture or synthesize bold/italic Arabic.
   Normal OpenType shaping retains required ligatures and mark positioning. */
.verse-ar,.mushaf-page-text,.edition-quran,.workbench-quran,
.verse-ar .reader-word,.mushaf-page-text .reader-word,
.taj-word-nav .taj-selected-word,.taj-context,
.grammar-word>span,.grammar-selected-word>span,.grammar-root-lemma>div>span,
.weg-whole-word,.el-sentence{
 font-weight:400;font-style:normal;font-synthesis:none;
 font-variant:normal;font-feature-settings:normal;font-variant-ligatures:normal;
 font-kerning:normal;letter-spacing:normal;word-spacing:normal;
 text-transform:none;word-break:normal;overflow-wrap:normal;
}
.verse-ar .reader-word,.mushaf-page-text .reader-word{white-space:nowrap;overflow:visible;transform:none}
.taj-word-nav .taj-selected-word,.grammar-selected-word>span{overflow:visible;line-height:2.1}

/* A text's encoding and its font travel together, including fallback states. */
[data-quran-font="amiri"]{--quran-word-font:Amiri,serif}
[data-quran-font="hafs"]{--quran-word-font:'QatrahEdition-hafs',Amiri,serif}
[data-quran-font="hafs-smart"]{--quran-word-font:'QatrahEdition-hafs-smart',Amiri,serif}
[data-quran-font="warsh"]{--quran-word-font:'QatrahEdition-warsh',Amiri,serif}
[data-quran-font="qalun"]{--quran-word-font:'QatrahEdition-qalun',Amiri,serif}
[data-quran-font="shubah"]{--quran-word-font:'QatrahEdition-shubah',Amiri,serif}
[data-quran-font="duri"]{--quran-word-font:'QatrahEdition-duri',Amiri,serif}
[data-quran-font="susi"]{--quran-word-font:'QatrahEdition-susi',Amiri,serif}
[data-quran-font="bazzi"]{--quran-word-font:'QatrahEdition-bazzi',Amiri,serif}
[data-quran-font="qunbul"]{--quran-word-font:'QatrahEdition-qunbul',Amiri,serif}
:is(.reader-word,.taj-selected-word,.taj-context)[data-quran-font]{font-family:var(--quran-word-font)}

/* Whole-word cues keep the joining run intact. All rules remain in the sheet. */
.reader-word[data-taj-family="madd"],.taj-selected-word[data-taj-family="madd"]{color:var(--taj-madd)}
.reader-word[data-taj-family="nasal"],.taj-selected-word[data-taj-family="nasal"]{color:var(--taj-nasal)}
.reader-word[data-taj-family="merge"],.taj-selected-word[data-taj-family="merge"]{color:var(--taj-merge)}
.reader-word[data-taj-family="echo"],.taj-selected-word[data-taj-family="echo"]{color:var(--taj-echo)}
.reader-word[data-taj-family="join"],.taj-selected-word[data-taj-family="join"]{color:var(--taj-join)}
.taj-color-note{font-size:12px;line-height:1.65;color:var(--muted,#465d70);margin:2px 0 10px}


/* /tafsir-navigation-v31.css */
/* Source study stays one action away from the Quran. */
.reader-view-actions{flex-wrap:wrap;gap:8px}
.reader-tafsir-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 13px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-size:13px;font-weight:700}
.reader-tafsir-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.reader-tafsir-button:hover{border-color:var(--green);background:var(--pale)}
.reader-companion{width:min(760px,calc(100vw - 40px))}
.companion-header{padding-block:18px 12px}
.companion-eyebrow{display:none}
.companion-title h2{margin:0 0 4px}
.companion-controls{padding-block:0 12px}
.sidebar .nav button:nth-child(5){margin-top:0}
.sidebar .nav button:nth-child(6){margin-top:18px}
.sidebar .nav button:nth-child(5){color:inherit}
.sidebar .nav button[data-page=priority].active{color:#f1e6c6}
.sidebar{overflow-y:auto}
.mushaf-page-selection>div{flex-wrap:wrap}
@media(max-width:700px){
 .reader-companion{width:100%;max-width:100%;margin:0;inset:auto 0 0;border-radius:20px 20px 0 0;max-height:94dvh}
 .companion-header{padding:15px 16px 10px}
 .companion-controls{padding:0 16px 10px}
 .reader-view-bar{gap:10px;flex-wrap:wrap}
 .reader-view-actions{margin-inline-start:auto}
 .reader-tafsir-button{padding-inline:10px;font-size:12px}
 .reader-view-switch button{min-height:44px}
 .mushaf-page-selection{align-items:flex-start}
}
@media(max-width:380px){.reader-view-actions{width:100%;justify-content:flex-end}}

/* Keep the tafsir canvas quiet inside either the verse companion or library. */
.reader-companion .tafsir-inline,.study-sheet .tafsir-inline{padding-top:2px}
.reader-companion .tafsir-reading-options{margin-bottom:14px}
.study-sheet .study-top{gap:16px;padding-bottom:14px}
.study-sheet .study-top h2{line-height:1.5;margin-bottom:0}
@media(max-width:440px){.reader-companion .tafsir-inline .tafsir-priority-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.reader-companion .tafsir-inline .tafsir-priority-text{margin-inline:0}}

/* Short source names stay readable at phone width and at enlarged text sizes. */
@media(max-width:440px){
  :is(.reader-companion,.reader-inline-tafsir) .tafsir-inline .tafsir-priority-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.35rem;
  }
  :is(.reader-companion,.reader-inline-tafsir) .tafsir-priority-tabs button{
    padding:.45rem .6rem;
    line-height:1.5;
    overflow-wrap:anywhere;
  }
}


/* /tafsir-helper.css */
/* v32: Source-Grounded Tafsir Study & AI Helper.
   Mounted strictly AFTER original Arabic source text; visually separates
   verbatim source quotations, attributed scholarship, and helper synthesis. */
.th-shell {
  margin: 14px 0 6px;
  border: 1px solid var(--tf-line, var(--line, #dce6df));
  border-radius: 14px;
  background: var(--panel, #fffdf8);
  color: var(--tf-ink, var(--ink, #173d36));
  overflow: hidden;
}
.th-shell > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 15px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--pale, #eaf0e9) 55%, var(--panel, #fffdf8));
}
.th-shell > details > summary::-webkit-details-marker {
  display: none;
}
.th-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.th-spark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--green, #245b48);
  color: #fff;
  font-size: 13px;
  flex: none;
}
.th-mode-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--tf-line, var(--line, #dce6df));
  background: var(--panel, #fffdf8);
  color: var(--tf-muted, var(--muted, #5c6f68));
  white-space: nowrap;
}
.th-body {
  padding: 14px 15px 16px;
  border-top: 1px solid var(--tf-line, var(--line, #dce6df));
  display: grid;
  gap: 12px;
}
.th-epistemic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}
.th-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.th-badge-quote {
  background: #e7f2ec;
  color: #18533e;
  border: 1px solid #bcd8c8;
}
.th-badge-scholar {
  background: #f6efde;
  color: #6d5319;
  border: 1px solid #e1cfa3;
}
.th-badge-helper {
  background: #eaf0f6;
  color: #2b4d66;
  border: 1px solid #c3d4e3;
}
.th-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.th-depth-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--tf-line, var(--line, #dce6df));
  border-radius: 10px;
  background: var(--bg, #f6f8f5);
}
.th-depth-group button {
  min-height: 36px;
  padding: 4px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tf-muted, var(--muted, #5c6f68));
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.th-depth-group button[aria-pressed="true"] {
  background: var(--panel, #fffdf8);
  color: var(--tf-ink, var(--ink, #173d36));
  box-shadow: 0 1px 4px #0001;
}
.th-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.th-prompt-chip {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--tf-line, var(--line, #dce6df));
  border-radius: 9px;
  background: var(--bg, #f6f8f5);
  color: var(--tf-ink, var(--ink, #173d36));
  font-size: 12px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.th-prompt-chip[aria-pressed="true"],
.th-prompt-chip:hover {
  border-color: var(--green, #245b48);
  background: var(--pale, #eaf0e9);
}
.th-ask-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.th-ask-form input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--tf-line, var(--line, #dce6df));
  border-radius: 10px;
  background: var(--bg, #f6f8f5);
  color: var(--tf-ink, var(--ink, #173d36));
  font-size: 13px;
}
.th-ask-btn,
.th-ai-btn {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.th-ask-btn {
  border: 0;
  background: var(--green, #245b48);
  color: #fff;
}
.th-ai-btn {
  border: 1px solid var(--tf-line, var(--line, #dce6df));
  background: var(--panel, #fffdf8);
  color: var(--green, #245b48);
}
.th-ai-btn:disabled {
  opacity: .55;
  cursor: default;
}
.th-answer {
  display: grid;
  gap: 10px;
}
.th-card {
  padding: 12px 13px;
  border: 1px solid var(--tf-line, var(--line, #dce6df));
  border-radius: 11px;
  background: var(--bg, #f6f8f5);
  font-size: 13px;
  line-height: 1.75;
}
.th-card p {
  margin: 7px 0 0;
}
.th-quote-ar {
  margin: 8px 0 6px;
  padding: 9px 12px;
  border-inline-start: 3px solid var(--tf-gold, #a88122);
  border-radius: 4px 9px 9px 4px;
  background: var(--panel, #fffdf8);
  font-family: Amiri, 'Noto Naskh Arabic', serif;
  font-size: 21px;
  line-height: 1.95;
  direction: rtl;
  text-align: right;
}
.th-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
}
.th-citations a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 4px;
  color: var(--green, #245b48);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.th-honesty-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--tf-muted, var(--muted, #5c6f68));
}
.th-ai-status {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--tf-line, var(--line, #dce6df));
  font-size: 12px;
  line-height: 1.65;
  color: var(--tf-muted, var(--muted, #5c6f68));
}
body.dark .th-shell,
html[data-theme="dark"] .th-shell {
  background: var(--panel, #1b252b);
  border-color: var(--line, #38454a);
}
body.dark .th-card,
html[data-theme="dark"] .th-card {
  background: var(--bg, #11171d);
}
body.dark .th-badge-quote,
html[data-theme="dark"] .th-badge-quote {
  background: #1d3b2e;
  color: #cbe7d7;
  border-color: #365d4b;
}
body.dark .th-badge-scholar,
html[data-theme="dark"] .th-badge-scholar {
  background: #3b331e;
  color: #ebd6a3;
  border-color: #615330;
}
body.dark .th-badge-helper,
html[data-theme="dark"] .th-badge-helper {
  background: #1d303f;
  color: #c7dcef;
  border-color: #355066;
}


/* /balagha-studio.css */
/* Balāgha & Eloquence Studio + Interactive Visual/Audio Deep-Dive Walkthroughs */
.balagha-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0 26px;
  color: var(--ink, #193c32);
}
.balagha-root * {
  box-sizing: border-box;
}
.balagha-hero {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line, #d7e2d9);
  border-radius: 18px;
  background: linear-gradient(150deg, var(--panel, #fffdf8) 0%, var(--pale, #eef4ea) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.balagha-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #8c6d2d);
}
[dir="rtl"] .balagha-eyebrow {
  letter-spacing: 0 !important;
  font-size: 12px;
}
.balagha-hero h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  color: var(--ink, #193c32);
}
.balagha-hero-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted, #556e62);
  max-width: 72ch;
}
.balagha-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel, #fffdf8);
  border: 1px solid var(--line, #d7e2d9);
  font-size: 12px;
  font-weight: 600;
  color: var(--green, #245b48);
}

/* Orthogonal Audience & Level Controls */
.balagha-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #d7e2d9);
}
.balagha-dim-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.balagha-dim-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #556e62);
}
.balagha-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.balagha-pill {
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--panel, #fffdf8);
  color: var(--ink, #193c32);
  font: 600 12px/1.4 inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.balagha-pill[aria-pressed="true"] {
  background: var(--green, #245b48);
  border-color: var(--green, #245b48);
  color: #fffdf8;
}

/* Mode Switch: Interactive Lessons vs Visual/Audio Walkthroughs */
.balagha-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: var(--pale, #eef4ea);
  border: 1px solid var(--line, #d7e2d9);
}
.balagha-mode-tab {
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted, #556e62);
  font: 700 13px/1.4 inherit;
  cursor: pointer;
}
.balagha-mode-tab[aria-pressed="true"] {
  background: var(--panel, #fffdf8);
  border-color: var(--line, #d7e2d9);
  color: var(--ink, #193c32);
  box-shadow: 0 2px 8px rgba(18, 44, 34, 0.07);
}

/* Lesson Selector Cards */
.balagha-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
}
.balagha-lesson-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 5px;
  min-height: 88px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--panel, #fffdf8);
  color: var(--ink, #193c32);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.balagha-lesson-card:hover {
  border-color: var(--green, #245b48);
}
.balagha-lesson-card[aria-pressed="true"] {
  border: 2px solid var(--green, #245b48);
  background: var(--pale, #eef4ea);
}
.balagha-branch-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold, #8c6d2d);
  text-transform: uppercase;
}
[dir="rtl"] .balagha-branch-tag {
  letter-spacing: 0 !important;
  font-size: 11px;
}
.balagha-lesson-card strong {
  font-size: 14px;
  line-height: 1.45;
}
.balagha-lesson-card small {
  font-size: 12px;
  color: var(--muted, #556e62);
}
.balagha-mastered-badge {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--green, #245b48);
}

/* Active Lesson Workspace */
.balagha-stage {
  padding: clamp(16px, 2.5vw, 26px);
  border-radius: 18px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--panel, #fffdf8);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.balagha-stage-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, #d7e2d9);
}
.balagha-stage-head h2 {
  margin: 4px 0 0;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
}

/* Canonical Quranic Verse Box (Sacred Text First) */
.balagha-canon-box {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line, #d7e2d9);
  border-inline-start: 4px solid var(--green, #245b48);
  background: var(--bg, #fbfaf5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.balagha-canon-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green, #245b48);
}
.balagha-ayah {
  margin: 0;
  font: 400 clamp(23px, 3vw, 29px)/2.05 Amiri, 'Noto Naskh Arabic', serif;
  color: var(--ink, #193c32);
  text-align: right;
  direction: rtl;
}
.balagha-canon-meaning {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted, #556e62);
}
.balagha-canon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.balagha-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--panel, #fffdf8);
  color: var(--ink, #193c32);
  font: 600 12px/1.4 inherit;
  text-decoration: none;
  cursor: pointer;
}
.balagha-action-btn.is-playing {
  background: var(--green, #245b48);
  border-color: var(--green, #245b48);
  color: #fffdf8;
}

/* Tailored Depth Explanation & Contrastive Rhetoric Lab */
.balagha-teaching-card,
.balagha-contrast-lab,
.balagha-imami-anchor,
.balagha-practice-card {
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--bg, #fbfaf5);
}
.balagha-teaching-card h3,
.balagha-contrast-lab h3,
.balagha-imami-anchor h3,
.balagha-practice-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}
.balagha-teaching-card p,
.balagha-imami-anchor p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
}
.balagha-teaching-card p:last-child,
.balagha-imami-anchor p:last-child {
  margin-bottom: 0;
}
.balagha-contrast-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.balagha-contrast-pane {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--panel, #fffdf8);
  border: 1px solid var(--line, #d7e2d9);
}
.balagha-contrast-pane.is-baseline {
  border-style: dashed;
  border-color: var(--gold, #a3823c);
}
.balagha-contrast-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.balagha-contrast-badge.canon {
  background: #e4efe8;
  color: #1f5541;
}
.balagha-contrast-badge.baseline {
  background: #f6ecd7;
  color: #7c5b1a;
}
.balagha-contrast-ar {
  margin: 0 0 8px;
  font: 400 22px/1.9 Amiri, 'Noto Naskh Arabic', serif;
  direction: rtl;
  text-align: right;
}
.balagha-contrast-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink, #193c32);
}
.balagha-source-cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green, #245b48);
}

/* Interactive Mastery Checks */
.balagha-q-block {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line, #d7e2d9);
}
.balagha-q-block:first-of-type {
  padding-top: 0;
  margin-top: 4px;
  border-top: 0;
}
.balagha-q-prompt {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}
.balagha-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balagha-option {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--panel, #fffdf8);
  color: var(--ink, #193c32);
  text-align: start;
  font: 500 13px/1.55 inherit;
  cursor: pointer;
}
.balagha-option.is-correct {
  border-color: #2c6e49;
  background: #e6f2ea;
  color: #17442c;
  font-weight: 650;
}
.balagha-option.is-wrong {
  border-color: #a44a3f;
  background: #faecea;
  color: #6e2920;
}
.balagha-feedback {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  background: var(--pale, #eef4ea);
}

/* NotebookLM-Style Interactive Visual & Audio Deep-Dive Walkthroughs */
.balagha-wt-shell {
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: 18px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--panel, #fffdf8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.balagha-wt-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.balagha-wt-visual {
  border-radius: 16px;
  border: 1px solid var(--line, #d7e2d9);
  background: linear-gradient(160deg, #16372d 0%, #214e3f 100%);
  color: #f8f5ec;
  padding: clamp(16px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.balagha-wt-visual-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #dfca96;
}
.balagha-wt-svg-wrap {
  width: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
}
.balagha-wt-svg-wrap svg {
  width: 100%;
  max-width: 560px;
  height: auto;
}
.balagha-memory-diagram { margin: 0; width: 100%; min-width: 0; text-align: center; }
.balagha-memory-diagram figcaption { display: grid; gap: 12px; padding: 8px 4px; }
.balagha-memory-primary { margin: 0; color: #fffdf6; font-family: var(--arabic); font-size: clamp(22px, 2.8vw, 30px); line-height: 2; letter-spacing: 0; overflow-wrap: anywhere; }
.balagha-memory-secondary { margin: 0; color: #f0dcae; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.balagha-wt-caption {
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(11, 27, 22, 0.58);
  border: 1px solid rgba(223, 202, 150, 0.28);
  font-size: 14px;
  line-height: 1.75;
}
.balagha-wt-speaker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #dfca96;
  margin-inline-end: 8px;
}
.balagha-wt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.balagha-wt-controls select {
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--bg, #fbfaf5);
  color: var(--ink, #193c32);
  font: 600 12px/1.4 inherit;
}
.balagha-wt-disclosure {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--pale, #eef4ea);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted, #556e62);
}
.balagha-wt-transcript {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balagha-wt-turn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 4px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line, #d7e2d9);
  background: var(--bg, #fbfaf5);
  color: var(--ink, #193c32);
  cursor: pointer;
}
.balagha-wt-turn[aria-current="step"] {
  border: 2px solid var(--green, #245b48);
  background: var(--pale, #eef4ea);
}
.balagha-wt-turn small {
  font-size: 11px;
  font-weight: 750;
  color: var(--green, #245b48);
}
.balagha-wt-turn span {
  font-size: 13px;
  line-height: 1.7;
}

/* Dark Mode Support */
body.dark .balagha-hero {
  background: linear-gradient(150deg, #172722 0%, #12201c 100%);
}
body.dark .balagha-contrast-badge.canon {
  background: #234133;
  color: #cce3d5;
}
body.dark .balagha-contrast-badge.baseline {
  background: #3d331d;
  color: #ecd49b;
}
body.dark .balagha-option.is-correct {
  background: #1f3a2c;
  border-color: #4f9d73;
  color: #d7f0e1;
}
body.dark .balagha-option.is-wrong {
  background: #3d2420;
  border-color: #b8655a;
  color: #f4cdc7;
}
body.dark .balagha-eyebrow,
body.dark .balagha-branch-tag {
  color: #dfc27d;
}
body.dark .balagha-scope-pill,
body.dark .balagha-canon-meta,
body.dark .balagha-source-cite,
body.dark .balagha-wt-turn small,
body.dark .balagha-mastered-badge {
  color: #cde0b4;
}
@media (max-width: 600px) {
  .balagha-mode-tabs {
    grid-template-columns: 1fr;
  }
}

/* v32 contrast prediction prompt, passage reader, walkthrough checkpoint & confidence reflection */
.balagha-pill,
.balagha-action-btn,
.balagha-wt-controls select {
  min-height: 44px;
}
[data-balagha-passage-reader] {
  margin-top: 10px;
}
.balagha-predict-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px dashed var(--gold, #a3823c);
  background: var(--panel, #fffdf8);
}
.balagha-predict-prompt p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink, #193c32);
  flex: 1 1 240px;
}
.balagha-wt-checkpoint {
  margin-top: 4px;
}
.balagha-confidence-card {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #d7e2d9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balagha-confidence-card > strong {
  font-size: 13px;
  color: var(--ink, #193c32);
}


/* /passage-reader.css */
/* Mobile-first styling for MushafPassageReader (non-Quran text-passage listener).
 * Respects 44x44px minimum touch targets, dark mode, RTL/LTR, and prefers-reduced-motion. */

.mpr-shell {
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid var(--line, #d8e2db);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel, #fffdf8) 92%, var(--pale, #eef4e8));
  color: var(--ink, #17332a);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mpr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mpr-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--green, #1f5a46) 38%, var(--line, #d8e2db));
  border-radius: 999px;
  background: var(--pale, #eaf2ec);
  color: var(--green, #1f5a46);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.2, 0, 0, 1), background-color 150ms ease, border-color 150ms ease;
}

.mpr-play-btn:hover:not(:disabled) {
  border-color: var(--green, #1f5a46);
  background: color-mix(in srgb, var(--green, #1f5a46) 14%, var(--panel, #fffdf8));
}

.mpr-play-btn[aria-pressed="true"] {
  background: var(--green, #1f5a46);
  border-color: var(--green, #1f5a46);
  color: var(--on-accent, #fff);
}

.mpr-play-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.mpr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 90px;
  min-width: 0;
}

.mpr-kind-pill,
.mpr-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.mpr-kind-pill {
  background: var(--bg, #f7f4ec);
  border: 1px solid var(--line, #d8e2db);
  color: var(--ink, #17332a);
}

.mpr-mode-pill.is-synthetic {
  background: color-mix(in srgb, var(--gold, #a88122) 15%, var(--panel, #fffdf8));
  border: 1px solid color-mix(in srgb, var(--gold, #a88122) 38%, var(--line, #d8e2db));
  color: var(--gold-text, #7b5c12);
}

.mpr-mode-pill.is-human {
  background: color-mix(in srgb, var(--green, #1f5a46) 14%, var(--panel, #fffdf8));
  border: 1px solid color-mix(in srgb, var(--green, #1f5a46) 38%, var(--line, #d8e2db));
  color: var(--green, #1f5a46);
}

.mpr-source-name {
  font-size: 12px;
  color: var(--muted, #5c7368);
  overflow-wrap: anywhere;
}

.mpr-transport {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mpr-transport[hidden] {
  display: none !important;
}

.mpr-step-btn,
.mpr-stop-btn,
.mpr-gear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  padding: 0;
  flex: none;
  border: 1px solid var(--line, #d8e2db);
  border-radius: 10px;
  background: var(--panel, #fffdf8);
  color: var(--ink, #17332a);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.mpr-gear-btn {
  margin-inline-start: auto;
  border-radius: 999px;
  font-size: 15px;
}

.mpr-icon { display: inline-flex; align-items: center; justify-content: center; }
.mpr-shell button:focus-visible { outline: 3px solid var(--green, #1f5a46); outline-offset: 3px; }
.mpr-sr,
body:not([data-profile="researcher"]) .mpr-status[data-passive="true"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mpr-step-btn:hover:not(:disabled),
.mpr-stop-btn:hover:not(:disabled),
.mpr-gear-btn:hover {
  border-color: var(--green, #1f5a46);
  background: var(--pale, #eaf2ec);
}

.mpr-step-btn:disabled,
.mpr-stop-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.mpr-counter {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #5c7368);
  padding-inline: 4px;
}

.mpr-recorded-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mpr-recorded-wrap audio {
  width: 100%;
  max-height: 42px;
}

.mpr-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #d8e2db);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mpr-drawer[hidden] {
  display: none !important;
}

.mpr-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}

.mpr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink, #17332a);
}

.mpr-field[hidden] {
  display: none !important;
}

.mpr-field select {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line, #d8e2db);
  border-radius: 10px;
  background: var(--bg, #f7f4ec);
  color: var(--ink, #17332a);
  font-size: .875rem;
}

.mpr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .875rem;
  color: var(--ink, #17332a);
  cursor: pointer;
}

.mpr-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green, #1f5a46);
}

.mpr-hint,
.mpr-honesty,
.mpr-attrib {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted, #5c7368);
}

.mpr-live-excerpt {
  margin: 8px 0 0;
  padding: 8px 11px;
  border-radius: 10px;
  border-inline-start: 3px solid var(--gold, #a88122);
  background: var(--bg, #f7f4ec);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink, #17332a);
}

.mpr-live-excerpt[lang="ar"] {
  font-family: Amiri, 'Noto Naskh Arabic', serif;
  font-size: 19px;
  line-height: 1.9;
}

.mpr-live-excerpt mark {
  background: var(--pale, #eaf2ec);
  color: inherit;
  border-radius: 3px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mpr-status {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--green, #1f5a46);
}

.mpr-status:empty,
.mpr-status[hidden],
.mpr-live-excerpt[hidden] {
  display: none !important;
}

/* Active spoken paragraph highlight across Tafsir, Source Library & Study cards */
[data-passage-active="true"] {
  background: color-mix(in srgb, var(--gold, #c99d3b) 15%, transparent);
  outline: 2px solid color-mix(in srgb, var(--gold, #a88122) 55%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
  scroll-margin-block: 104px 110px;
  transition: background-color 180ms ease;
}

/* Dark theme adjustments */
body.dark .mpr-shell,
.dark .mpr-shell {
  background: color-mix(in srgb, var(--panel, #162420) 90%, #0d1714);
  border-color: var(--line, #2a3f37);
  color: var(--ink, #e8f4ed);
}

body.dark .mpr-mode-pill.is-synthetic,
.dark .mpr-mode-pill.is-synthetic {
  background: rgba(223, 194, 125, 0.14);
  border-color: rgba(223, 194, 125, 0.36);
  color: #edd596;
}

body.dark .mpr-mode-pill.is-human,
.dark .mpr-mode-pill.is-human,
body.dark .mpr-status,
.dark .mpr-status {
  color: #a9dec4;
}

body.dark [data-passage-active="true"],
.dark [data-passage-active="true"] {
  background: rgba(223, 194, 125, 0.14);
  outline-color: #dfc27d;
}

@media (max-width: 520px) {
  .mpr-shell {
    padding: 8px;
  }
  .mpr-play-btn {
    flex: 0 0 44px;
  }
  .mpr-transport {
    gap: 0;
    justify-content: space-between;
  }
  .mpr-counter { padding-inline: 2px; font-size: .75rem; }
  body:not([data-profile="researcher"]) .mpr-shell[data-mpr-active="true"] .mpr-meta { flex-basis: 100%; order: -1; }
  .mpr-bar { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .mpr-shell,
  .mpr-play-btn,
  .mpr-step-btn,
  .mpr-stop-btn,
  .mpr-gear-btn,
  [data-passage-active="true"] {
    transition: none !important;
  }
}

:is([data-tafsir-passage-reader], [data-pr-passage-reader], [data-wb-passage-reader])[hidden],
.mpr-shell .mpr-bar[hidden] { display: none; }


/* /polish-v32.css */
/* v32: source-first visual hierarchy, header deduplication, dark-sheet contrast,
   and WebKit/iPadOS-safe Arabic cursive & lam-alif shaping. */

/* 1. Deduplicate brand header when persistent sidebar already shows emblem + title */
@media (min-width: 761px) {
  body:not(.reader-focus) .topbar > .top-brand {
    display: none;
  }
  body:not(.reader-focus) .topbar {
    height: 58px;
    padding-inline: clamp(20px, 3.8%, 48px);
  }
  body:not(.reader-focus) .topbar > .profile-control {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}

/* 2. Today page: prominent Classical Imami Sources strip & Balagha CTA */
.home-page .home-learn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.home-page .home-learn-actions .btn {
  margin-top: 0;
}
.home-page .home-learn-actions .home-balagha-cta {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: var(--panel);
  color: var(--green);
}
.home-page .home-learn-actions .home-balagha-cta:hover {
  background: var(--pale);
}
.home-page .home-sources-strip {
  margin: 0 0 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold, #a88122);
  border-radius: 16px;
  background: var(--panel);
}
.home-page .home-sources-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.home-page .home-sources-head .eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: var(--gold-text, var(--gold));
}
.home-page .home-sources-head h2 {
  margin: 0;
  font-family: var(--font-ui, inherit);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.home-page .home-workbench-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--pale);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.home-page .home-workbench-link:hover {
  border-color: var(--green);
}
.home-page .home-sources-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-page .home-source-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  text-align: start;
  transition: border-color .16s, background-color .16s;
}
.home-page .home-source-pill.home-source-primary {
  background: var(--pale);
  border-color: color-mix(in srgb, var(--green) 32%, var(--line));
}
.home-page .home-source-pill:hover {
  border-color: var(--green);
  background: var(--pale);
}
.home-page .home-source-pill strong {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.home-page .home-source-pill small {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 860px) {
  .home-page .home-sources-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .home-page .home-sources-strip {
    padding: 16px;
  }
  .home-page .home-sources-pills {
    grid-template-columns: 1fr;
  }
  .home-page .home-learn-actions .btn {
    flex: 1 1 100%;
  }
}

/* 3. Learn 5-segment navigation: responsive without clipping */
.study-segments {
  flex-wrap: wrap;
}
.study-segments button {
  min-width: max-content;
  min-height: 44px;
  padding-inline: 12px;
}
@media (max-width: 680px) {
  .study-segments {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    gap: 6px;
    padding-bottom: 2px;
  }
  .study-segments::-webkit-scrollbar {
    display: none;
  }
  .study-segments button {
    flex: 0 0 auto;
    min-height: 44px;
    font-size: 12.5px;
    scroll-snap-align: center;
  }
}

/* 4. Source Library (#/priority): bring Arabic tafsir text above the desktop fold */
.priority-reader {
  padding: clamp(14px, 2.2vw, 24px);
}
.priority-reader .pr-hero {
  padding-bottom: 10px;
  margin-bottom: 10px;
  gap: 4px 16px;
}
.priority-reader .pr-hero h1 {
  font-size: clamp(21px, 2.6vw, 27px);
  margin: 2px 0;
}
.priority-reader .pr-hero > p:not(.pr-eyebrow) {
  font-size: 13px;
  line-height: 1.55;
}
.priority-reader .pr-library-nav {
  margin-top: 2px;
}
.priority-reader .pr-book-primary {
  margin-bottom: 6px;
}
.priority-reader .pr-book-primary button {
  min-height: 52px;
  padding: 9px 11px;
  gap: 2px;
}
.priority-reader .pr-more-books {
  margin: 0 0 8px;
}
.priority-reader .pr-more-books > summary,
.priority-reader .pr-search-tools > summary,
.priority-reader .pr-availability summary {
  min-height: 44px;
  padding-block: 7px;
}
.priority-reader .pr-reading-head {
  padding-top: 10px;
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
}
.priority-reader .pr-reading-head h2 {
  font-size: 18px;
  margin: 0;
}
.priority-reader .pr-toolbar {
  margin: 8px 0;
  padding: 8px 12px;
  align-items: center;
}
.priority-reader .pr-toolbar label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  max-width: 520px;
}
.priority-reader .pr-toolbar select {
  min-height: 44px;
  padding: 7px 10px;
  flex: 1;
}
.priority-reader .pr-section-title {
  margin: 10px 0 6px;
}
.priority-reader .pr-paragraph {
  padding: 15px 4px;
}
@media (max-width: 620px) {
  .priority-reader .pr-toolbar label {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
}

/* 5. Verse Companion & Inline Tafsir: compact chrome so Arabic source leads */
.reader-companion .companion-handle {
  margin-top: 6px;
}
.reader-companion .companion-header {
  padding: 10px 20px 8px;
}
.reader-companion .companion-header h2 {
  font-size: 20px;
  margin: 0 0 2px;
}
.reader-companion .companion-controls {
  padding: 0 18px 8px;
}
.companion-step {
  display: inline-flex;
  gap: 6px;
  margin-inline-start: auto;
}
.companion-step button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}
.companion-step button:disabled {
  opacity: .35;
  cursor: default;
}
.tafsir-inline .tafsir-source-navigation {
  margin: 8px 0;
}
.tafsir-inline .tafsir-source-label {
  margin: 0 0 4px;
  font-size: 11px;
}
.tafsir-inline .tafsir-priority-tabs button {
  min-height: 44px;
  padding: 6px 5px;
  line-height: 1.3;
}
.tafsir-inline .tafsir-view-tabs {
  margin: 0 0 10px;
}
.tafsir-inline .tafsir-priority-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 0 8px;
}
.tafsir-inline .tafsir-priority-heading h3 {
  font-size: 17px;
  margin: 0;
}
.tafsir-inline .tafsir-source-toolbar {
  margin: 0 0 9px;
}
@media (max-width: 700px) {
  .reader-companion .companion-header {
    padding: 9px 14px 7px;
  }
  .reader-companion .companion-controls {
    padding: 0 14px 8px;
  }
  .reader-companion .companion-scroll {
    padding-inline: 14px;
  }
}

/* 6. Study-sheet dark mode readability */
body.dark .study-sheet {
  background: var(--panel, #172622);
  color: var(--ink, #e8f4ed);
  box-shadow: -15px 0 50px #0009;
}
body.dark .study-top {
  border-bottom-color: var(--line, #2b4038);
}
body.dark .study-top h2 {
  color: var(--ink, #e8f4ed);
}
body.dark .study-top p,
body.dark .study-heading span,
body.dark .study-footnote {
  color: var(--muted, #9fb4aa);
}
body.dark .study-kicker,
body.dark .study-top h2 span {
  color: #dfc27d;
}
body.dark .study-close {
  background: var(--bg, #101c19);
  border-color: var(--line, #2b4038);
  color: var(--ink, #e8f4ed);
}
body.dark .study-source {
  background: var(--bg, #101c19);
  border-color: var(--line, #2b4038);
  color: var(--ink, #e8f4ed);
}
body.dark .study-source span span {
  color: var(--muted, #9fb4aa);
}
body.dark .study-insight {
  background: #223429;
  border-color: #4b5739;
  color: var(--ink, #e8f4ed);
}
body.dark .study-insight a,
body.dark .study-english {
  color: #cde0b4;
}

/* 7. Unbroken Arabic shaping & RTL typography across all surfaces (WebKit/iPadOS safe) */
.ce-word,
.ce-question-word,
.tafsir-priority-text,
.tafsir-original,
.tafsir-classical-text,
.pr-paragraph > p,
.balagha-ayah,
.th-quote-ar {
  font-family: Amiri, 'Noto Naskh Arabic', serif;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  font-variant-ligatures: normal;
  font-feature-settings: normal;
  letter-spacing: 0 !important;
  word-spacing: normal;
}
.ce-question-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pale, #eaf0e9);
  color: var(--green, #245b48);
  font-family: Amiri, 'Noto Naskh Arabic', serif;
  font-size: 18px;
  line-height: 1.5;
}
html[lang="ar"],
[dir="rtl"],
[dir="rtl"] :is(h1, h2, h3, h4, p, span, small, strong, b, button, a, label, summary, th, td) {
  letter-spacing: 0 !important;
}
[dir="rtl"] :is(.today-heading h1, .page-heading h1, .reader-surah-select h1, .companion-header h2, .mushaf-command h2, .study-top h2) {
  font-family: 'Noto Sans Arabic', Amiri, sans-serif;
  font-synthesis: none;
}

/* 8. Grammar 3-step chain: Word -> Grammatical State -> Ending Sign */
.grammar-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #dce8df);
  border-radius: 12px;
  background: var(--pale, #eef4e8);
}
.grammar-chain-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--panel, #fffdf8);
  border: 1px solid var(--line, #dce8df);
}
.grammar-chain-step small {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted, #60786c);
  line-height: 1.3;
}
.grammar-chain-step strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #193c32);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.grammar-chain-step strong[lang="ar"] {
  font: 400 20px/1.55 Amiri, 'Noto Naskh Arabic', serif;
}
.grammar-chain-arrow {
  align-self: center;
  color: var(--gold, #9b7d3b);
  font-weight: 800;
  font-size: 15px;
  padding-inline: 1px;
}
.weg-build-badge {
  font-weight: 600;
  color: var(--green, #245b48);
}
body.dark .weg-build-badge {
  color: #cde0b4;
}
@media (max-width: 560px) {
  .grammar-chain {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .grammar-chain-arrow {
    display: none;
  }
}

/* 9. Mobile-First Touch Targets (44x44px), Input Auto-Zoom Prevention (>=16px),
      Safe-Area Insets, 100dvh Sheet Bounds & Non-Overlapping Audio Bar */
.circle-btn,
body.pages-reading .topbar button,
.topbar .language-button,
.topbar .mushaf-explore-button,
.topbar .mushaf-beta-badge,
.verse-top .icon-button,
.verse-top .verse-ref,
.verse-action,
.reader-view-bar button,
.reader-edition-compact button,
.audio-player .tool,
.audio-player select,
.tafsir-size-menu summary,
.dua-font-controls button,
.cal-place summary {
  min-width: 44px;
  min-height: 44px;
}
.verse-top .icon-button {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}
.topbar {
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(58px + env(safe-area-inset-top, 0px));
}
.dua-reader-head {
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.cal-reminder-dialog,
.mushaf-command,
.reader-companion {
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px);
}
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: max(16px, 1em);
  }
  .mobile-nav {
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    height: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-nav button {
    min-height: 48px;
  }
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  body:not(.reader-focus) .audio-player:not([data-minimized=true]) {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-audio {
    padding-bottom: calc(158px + env(safe-area-inset-bottom, 0px));
  }
  #readerDock {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  body.has-audio #readerDock {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 480px) {
  .setting-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .setting-row select,
  .setting-row .tool {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}

/* 10. First-Run Welcome Card, Calendar Return Pill, Focus Exit Pill & Companion Observance Chip */
.welcome-v32-card {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--green);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow, 0 6px 22px rgba(24, 68, 52, .04));
}
.welcome-v32-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.welcome-v32-head strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  margin: 2px 0 4px;
}
.welcome-v32-head small {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.welcome-v32-dismiss {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.welcome-v32-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}
.welcome-v32-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.welcome-v32-group button {
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.welcome-v32-group button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}
.welcome-v32-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

.calendar-return-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 8px 6px 12px;
  border: 1px solid color-mix(in srgb, var(--gold, #b28b43) 45%, var(--line));
  border-radius: 12px;
  background: var(--pale);
}
.calendar-return-pill {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
  min-height: 40px;
  padding: 4px 6px;
  text-align: start;
}
.calendar-return-dismiss {
  flex: none;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.reader-focus-exit {
  position: fixed;
  z-index: 38;
  inset-inline-end: 16px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--panel);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(15, 55, 42, .18);
}
.reader-focus-exit[hidden] {
  display: none !important;
}
.reader-focus-exit svg {
  width: 17px;
  height: 17px;
}

.companion-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.companion-observance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold, #b28b43) 45%, var(--line));
  background: var(--pale);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}
.companion-observance-chip[hidden] {
  display: none !important;
}

/* 11. Bidirectional Tafsir <-> Hijri Calendar & Quranic Duas Panel */
.tafsir-calendar-context {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  padding: 0 14px;
}
.tafsir-calendar-context > summary {
  list-style: none;
  cursor: pointer;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.tafsir-calendar-context > summary::-webkit-details-marker {
  display: none;
}
.tafsir-cal-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}
.tafsir-cal-list {
  display: grid;
  gap: 10px;
  padding: 4px 0 14px;
  border-top: 1px solid var(--line);
}
.tafsir-cal-card {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
}
.tafsir-cal-card.is-revelation {
  border-inline-start: 3px solid var(--gold, #b28b43);
}
.tafsir-cal-card.is-devotional,
.tafsir-cal-card.is-dua {
  border-inline-start: 3px solid var(--green);
}
.tafsir-cal-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 750;
  color: var(--gold, #9a7632);
  margin-bottom: 4px;
}
.tafsir-cal-card h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
}
.tafsir-cal-card p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.tafsir-cal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
}
.tafsir-cal-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.tafsir-cal-disclaimer {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* /visual-system-v36.css */
/* v36: consistent UI hierarchy. Quran/source fonts and tajweed colours are
   deliberately not selected here; their encoding-specific shaping stays intact. */
body:not(.dark):not([data-profile]),
body[data-profile="adult"]:not(.dark) {
  --bg:#f7f7f2;
  --panel:#fffefa;
  --ink:#1e3030;
  --muted:#53665f;
  --green:#245b50;
  --dark:#183f36;
  --pale:#eaf1ec;
  --light:#f0f4ef;
  --line:#d3ded6;
  --control-line:#788e83;
  --gold-text:#78591d;
  --on-accent:#ffffff;
  --reading-paper:#fffefa;
  --reading-hint:#eaf1ec;
  --focus-ring:#78591d;
}
body.dark:not([data-profile]),
body[data-profile="adult"].dark {
  --bg:#101c1b;
  --panel:#172724;
  --ink:#edf4ef;
  --muted:#b7c9c1;
  --green:#b5dccb;
  --dark:#d7e9df;
  --pale:#243b32;
  --light:#20362f;
  --line:#3a554b;
  --control-line:#8ba69a;
  --gold-text:#e6ca83;
  --on-accent:#173d33;
  --reading-paper:#172724;
  --reading-hint:#243b32;
  --focus-ring:#e6ca83;
}

/* Keep the established fonts. Explicit local/system fallbacks also work when
   the optional Google-hosted UI fonts have not loaded. */
:root { --font-ui:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
html[lang="ar"] { --font-ui:'Noto Sans Arabic',Tahoma,Arial,sans-serif; }
body { font-size:15px; }
body :is(.page-heading h1,.today-heading h1,.reader-header h1,
  .home-learning-entry h2,.home-sources-head h2,.workbench-heading h1) {
  font-family:var(--font-ui);
  font-weight:700;
  line-height:1.4;
}
html[lang="ar"] :is(.page-heading h1,.today-heading h1,.reader-header h1,
  .home-learning-entry h2,.home-sources-head h2,.workbench-heading h1) {
  line-height:1.65;
  letter-spacing:normal;
}

/* Quiet supporting information must still be readable. These are interface
   labels only, not script text, word glosses or grammar diagrams. */
body :is(.footer-note,.verse-source,.reader-surah-select small,
  .reader-mode-note,.study-context p,.home-workbench small,
  .surah-info small,.source-tile small,.workbench-edition,
  .workbench-numbering,.workbench-scope) {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
}
body :is(.study-segments button,.reader-view-switch button,
  .reader-view-actions button,.reader-edition-compact button,
  .reader-library-links button,.reader-options .tool) {
  font-size:13px;
  font-weight:600;
  line-height:1.5;
  min-height:44px;
}
body .study-segments button { padding-inline:10px; }
body .study-segments button[aria-pressed="true"],
body .study-segments button.active {
  color:var(--green);
  border-bottom-color:var(--green);
}
html[lang="ar"] :is(.study-segments button,.reader-view-switch button,
  .reader-options .tool,.reader-edition-compact button) {
  font-size:14px;
  line-height:1.75;
}

/* Paired accent tokens retain contrast in every learning profile/night mode. */
body :is(.btn-green,.continue-copy>.btn,.home-learn-actions>.btn-green) {
  color:var(--on-accent,#fff);
  background:var(--green);
}
body :is(.btn-outline,.reader-appearance,.language-button,.reader-options input,
  .reader-options select,.verse-jump input) {
  border-color:var(--control-line);
}
body :is(.text-link,.footer-note a,.quiet-footer a) {
  text-underline-offset:3px;
}
body :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--focus-ring);
  outline-offset:3px;
}

/* One stroke language for navigation; icons always keep their text label. */
body :is(.nav,.mobile-nav,.reader-view-bar,.home-workbench) svg {
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}
body :is(.nav,.mobile-nav) svg { width:21px;height:21px; }
body .sidebar .nav button { font-size:14px; }
body .sidebar .nav button.active { font-weight:700; }
body .mobile-nav button span { font-size:.8125rem;line-height:1.35; }
html[lang="ar"] body .mobile-nav button span { font-size:.8125rem; }

@media(max-width:359px) {
  body .reader-view-switch button { font-size:12px; }
  html[lang="ar"] body .reader-view-switch button { font-size:13px; }
  body .study-segments button { font-size:12px;padding-inline:6px; }
  html[lang="ar"] body .study-segments button { font-size:13px; }
  body .mobile-nav button span,html[lang="ar"] body .mobile-nav button span { font-size:.75rem; }
}

@media(forced-colors:active) {
  body :is(.nav,.mobile-nav) button.active,
  body .reader-view-switch button[aria-pressed="true"] {
    border:2px solid Highlight;
  }
}


/* /typography-v37.css */
/* Interface typography only. Quran, source quotations, verse examples and
   encoding-specific word fonts keep their existing dedicated rules. */
body :is(.page-title,.page-heading h1,.pr-hero h1,.et-hero h1,
  .dua-heading h1,.cal-heading h1,.cal-toolbar h1,.mem-heading h1,
  .workbench-heading h1,.course-heading h1) {
  font-family:var(--font-ui);
  font-size:clamp(27px,3.1vw,34px);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.025em;
  text-wrap:balance;
}
body :is(.companion-header h2,.et-heading h2,.mem-complete h2,
  .cal-selection h2,.dua-reader-head h2) {
  font-family:var(--font-ui);
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.015em;
}
html[lang="ar"] body :is(.page-title,.page-heading h1,.pr-hero h1,
  .et-hero h1,.dua-heading h1,.cal-heading h1,.cal-toolbar h1,
  .mem-heading h1,.workbench-heading h1,.course-heading h1,
  .companion-header h2,.et-heading h2,.mem-complete h2,
  .cal-selection h2,.dua-reader-head h2) {
  font-family:var(--font-ui);
  line-height:1.65;
  letter-spacing:normal;
}

/* One interface voice for the wordmark, controls and section labels.
   The emblem and calligraphic Quran/surah titles remain unchanged. */
body .sidebar .brand strong,
body .topbar .top-brand #topTitle {
  font-family:var(--font-ui)!important;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.015em!important;
}
html[lang="ar"] body .sidebar .brand strong,
html[lang="ar"] body .topbar .top-brand #topTitle {
  line-height:1.6;
  letter-spacing:normal!important;
}
body :is(.mem-kicker,.workbench-kicker,.pr-eyebrow,.et-eyebrow,
  .course-eyebrow,.home-learning-entry .eyebrow) {
  font-family:var(--font-ui);
  font-size:12px;
  font-weight:600;
  line-height:1.6;
  letter-spacing:.055em;
}
html[lang="ar"] body :is(.mem-kicker,.workbench-kicker,.pr-eyebrow,
  .et-eyebrow,.course-eyebrow,.home-learning-entry .eyebrow) {
  letter-spacing:normal;
  line-height:1.8;
}
body :is(.sidebar .nav button,.cal-dua-links>button,
  .mushaf-page-paging button,.mushaf-page-selection button) {
  font-family:var(--font-ui);
  font-weight:600;
  line-height:1.5;
}

/* Supporting information is quiet, but not microscopic. */
body :is(.mushaf-page-meta,.mushaf-page-hint,.mushaf-page-source,
  .mushaf-page-selection>span small,.mem-pass-heading,
  .course-lesson-meta,.workbench-pane>header>span) {
  font-family:var(--font-ui);
  font-size:12px;
  line-height:1.7;
}
body :is(.mushaf-page-meta,.hifdh-count,.mem-session-counts,
  .course-session-header small,.course-lesson-meta) {
  font-variant-numeric:tabular-nums;
}
body :is(.page-heading>p,.pr-hero>p:not(.pr-eyebrow),
  .et-hero>p,.mem-heading>p:not(.mem-kicker),.workbench-heading>p) {
  max-width:68ch;
  line-height:1.8;
}
body :is(.mushaf-page-jump input,.hifdh-options input) {
  font-family:var(--font-ui);
  font-size:16px;
  font-variant-numeric:tabular-nums;
}

@media(max-width:540px) {
  body :is(.page-title,.page-heading h1,.pr-hero h1,.et-hero h1,
    .dua-heading h1,.cal-heading h1,.cal-toolbar h1,.mem-heading h1,
    .workbench-heading h1,.course-heading h1) {
    font-size:26px;
  }
  body :is(.mushaf-page-paging button,.mushaf-page-selection button) {
    font-size:13px;
  }
}


/* /learning-navigation.css */
/* Claude's four visible route groups, bound to existing destinations. */
.calendar-route-return{margin:0 0 14px}
.calendar-route-return a{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;color:var(--green);background:var(--panel);font-size:13px;font-weight:650;line-height:1.6;text-decoration:underline;text-underline-offset:4px}
.calendar-route-return a:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}
body.pages-reading.reader-focus .calendar-route-return{display:none}
/* Keep section names whole; narrow screens can scroll this compact row. */
.learn-section-rail{display:grid;grid-template-columns:repeat(4,minmax(max-content,1fr));min-width:0;overflow-x:auto;gap:4px;margin:0 0 10px;border-bottom:1px solid var(--line);background:var(--panel);position:sticky;top:var(--learn-appbar-height,0px);z-index:30}
.learn-section-rail a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 5px;border-bottom:3px solid transparent;color:var(--muted);font-size:14px;font-weight:650;text-align:center;text-decoration:none;line-height:1.5;min-width:0;white-space:nowrap;overflow-wrap:normal}
.learn-section-rail a[aria-current=page]{border-bottom-color:var(--green);color:var(--ink);font-weight:800}
.learn-section-links{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.learn-section-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;color:var(--muted);border-radius:8px;text-underline-offset:5px;font-size:13px}
.learn-section-links a[aria-current=page]{background:var(--pale);color:var(--ink);font-weight:750;text-decoration-thickness:2px}
.learn-section-rail a:focus-visible,.learn-section-links a:focus-visible,.learn-reading-actions button:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.learn-reading-entrance{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;margin:0 0 20px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.learn-reading-entrance>div:first-child{display:grid;gap:5px;max-width:490px;line-height:1.6}
.learn-reading-entrance span,.learn-reading-actions small{font-size:12px;color:var(--muted)}
.learn-reading-actions{display:flex;gap:8px;flex-wrap:wrap}
.learn-reading-actions button{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:10px 14px;font:inherit;font-size:13px;cursor:pointer}
.learn-reading-actions button:first-child{background:var(--green);color:white;border-color:var(--green)}
body.learn-page .course-track-choice{display:flex;gap:6px;margin-block:12px 16px;flex-wrap:wrap}
body.learn-page .course-track-choice button{flex:1;min-width:95px;min-height:48px;padding:9px;font-size:12px;line-height:1.5}
body.learn-page .course-track-choice small{display:none}
.course-step-explain .course-reviewed-media{margin-block:22px;border-block:1px solid var(--line);padding-block:16px}
@media(max-width:700px){.learn-reading-entrance{display:block;padding:14px}.learn-reading-actions{margin-top:12px}.learn-reading-actions button{flex:1;min-width:100px}.learn-section-rail a{font-size:13px}.learn-section-links{margin-bottom:14px}}
@media(max-width:350px){.learn-section-rail a{min-height:44px}}

/* Learn keeps the existing header controls and measures their real height. */
body.learn-page .topbar{position:sticky;top:0;z-index:40}
body.learn-page .course-studio{--course-scroll-offset:calc(var(--learn-appbar-height,0px) + var(--learn-rail-height,0px) + var(--learn-ayah-nav-height,0px) + 12px)}
body.learn-page #course-reviewed-media h2{scroll-margin-top:calc(var(--learn-appbar-height,0px) + var(--learn-rail-height,0px) + 12px)}

/* A lesson always names the passage its primary return opens. */
.li-ayah-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;margin:0 0 18px;border:1px solid var(--green);border-inline-start-width:4px;border-radius:12px;background:var(--panel);box-shadow:0 3px 10px #14201c0a;line-height:1.5}
.li-ayah-navigation a{min-height:44px;border-radius:7px;text-underline-offset:4px}
.li-ayah-navigation .li-current-ayah{display:flex;align-items:center;gap:10px;min-width:0;padding:4px 8px;color:var(--green);text-decoration:none}
.li-ayah-navigation .li-current-ayah>span{display:grid;gap:1px;min-width:0}
.li-ayah-navigation .li-current-ayah strong{font-size:15px;font-weight:750;text-decoration:underline;text-decoration-thickness:1.5px}
.li-ayah-navigation .li-current-ayah small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.li-ayah-navigation .li-lesson-symbol{flex:none;width:23px;height:23px}
.li-ayah-navigation .li-current-overview{display:flex;align-items:center;justify-content:center;flex:none;max-width:35%;padding:6px 9px;border:1px solid var(--line);color:var(--ink);font-size:13px;text-align:center}
.li-ayah-navigation a:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}
.li-detour-ref{white-space:nowrap;font-size:.875em;font-weight:500}
body.learn-page :is(.ye-current-navigation,.li-ayah-sticky){position:sticky;top:calc(var(--learn-appbar-height,0px) + var(--learn-rail-height,0px));z-index:25}
body.learn-page .ye-current-navigation{background:var(--bg);padding-block:4px 1px;margin-bottom:14px}
body.learn-page .ye-current-navigation .li-ayah-navigation{margin-bottom:0}
body.learn-page .ye-course :is([data-ye-verse],[data-ye-steps],[data-ye-language],[data-ye-cited-works],[data-ye-quiz]){scroll-margin-top:calc(var(--learn-appbar-height,110px) + var(--learn-rail-height,45px) + var(--learn-ayah-nav-height,88px) + 16px)}
body.learn-page .cave-lesson :is(.cave-main-point,.cave-passage,.rs-comparison,.cave-sources,.rs-practice,.cave-exercise){scroll-margin-top:calc(var(--learn-appbar-height,110px) + var(--learn-rail-height,45px) + var(--learn-ayah-nav-height,88px) + 16px)}
@media(max-width:400px){.li-ayah-navigation{gap:6px;padding:6px}.li-ayah-navigation .li-current-ayah{gap:7px;padding-inline:4px}.li-ayah-navigation .li-current-ayah strong{font-size:14px}.li-ayah-navigation .li-current-overview{font-size:12px;padding:5px 7px}.li-ayah-navigation .li-lesson-symbol{width:20px;height:20px}}

/* Claude visual system mapped to the existing learning components.
 * Map Claude's component geometry and exact palette to real content.
 * Measured sticky offsets and focus are handled by the navigation helpers.
 * No route, media, progress, hidden-content or Quran font changes. */
/* Local semantic aliases: profiles cannot accidentally mix a different ink
 * with this surface. No :root or body-wide palette/font overrides. */
body.learn-page #content,
body.reader-page :is(.hifdh-reader-tools,.hifdh-reading-surface) {
  --bg:#F4EFE4;--panel:#FFFDF7;--light:#EAE3D3;
  --ink:#14201C;--muted:#45534D;--line:#D6CCB8;--control-line:#857F6B;
  --green:#0B5D4B;--on-accent:#FFFFFF;--pale:#DCEBE3;
  --gold-text:#7A4E06;--learn-amber-tint:#F6E7C8;
  --learn-ok:#1E6B3C;--learn-ok-tint:#DDEEDF;
  --learn-retry:#8A3B12;--learn-retry-tint:#F7E3D6;--focus-ring:#1B4FD8;
}
body.learn-page.dark #content,
body.reader-page.dark :is(.hifdh-reader-tools,.hifdh-reading-surface) {
  --bg:#0F1614;--panel:#17211E;--light:#0B110F;
  --ink:#ECE6D8;--muted:#A8B3AC;--line:#2B3833;--control-line:#72807A;
  --green:#58C2A3;--on-accent:#06231B;--pale:#15352C;
  --gold-text:#E3B15A;--learn-amber-tint:#3A2C10;
  --learn-ok:#7FD39A;--learn-ok-tint:#143021;
  --learn-retry:#F0A77C;--learn-retry-tint:#3B2114;--focus-ring:#9CB8FF;
}
body.learn-page #content { background:var(--bg);color:var(--ink); }
body.learn-page .course-studio,
body.learn-page.dark .course-studio {
  --course-green:var(--green);
  --course-on-green:var(--on-accent);
  --course-tint:var(--pale);
  --course-gold:var(--gold-text);
  --course-gold-tint:var(--learn-amber-tint);
  --course-error:var(--learn-retry);
  --course-error-tint:var(--learn-retry-tint);
  --course-focus:var(--focus-ring);
}

/* Four visible links: preserve the native anchors and measured sticky rules. */
body.learn-page .learn-section-rail { gap:0;padding-inline:8px;margin-bottom:12px;background:var(--bg); }
body.learn-page .learn-section-rail a { min-height:48px;padding:6px 4px 5px;font-size:15px;font-weight:500;line-height:1.5; }
body.learn-page .learn-section-rail a[aria-current="page"] { font-weight:700; }
body.learn-page .learn-section-links { gap:8px;margin-bottom:16px; }
body.learn-page .learn-section-links a { padding:6px 12px;font-size:14px;border-radius:12px; }
body.learn-page :is(.learn-section-rail a,.learn-section-links a,.learn-reading-actions button):focus-visible { outline-color:var(--focus-ring);outline-offset:3px; }
body.learn-page .learn-section-rail a:focus-visible { outline-offset:-3px; }

/* Real reading doorway: amber distinguishes the existing child + adult entry. */
body.learn-page .learn-reading-entrance { gap:16px;padding:16px;margin-bottom:16px;border-radius:18px; }
body.learn-page .learn-reading-entrance>div:first-child { gap:8px; }
body.learn-page .learn-reading-entrance strong { font-size:18px;font-weight:700; }
body.learn-page :is(.learn-reading-entrance span,.learn-reading-actions small) { font-size:14px;line-height:1.6; }
body.learn-page .learn-reading-actions button { min-height:48px;padding:10px 16px;border:1.5px solid var(--control-line);border-radius:12px;font-size:15px;font-weight:600; }
body.learn-page .learn-reading-actions button:first-child { background:var(--panel);border-color:var(--control-line);color:var(--ink); }
body.learn-page .learn-reading-actions [data-start-reading="child"] {
  min-height:64px;text-align:start;align-items:flex-start;padding:10px 14px;
  border-color:var(--gold-text);border-radius:24px;border-end-start-radius:6px;
  background:var(--learn-amber-tint);color:var(--ink);
}
body.learn-page .learn-reading-actions [data-start-reading="child"] small { color:var(--muted); }

/* The existing course dashboard retains its data and real review counts. */
body.learn-page .course-studio { padding-top:16px; }
body.learn-page .course-heading { margin-bottom:16px; }
body.learn-page .course-path-heading h1 { font-size:28px;line-height:1.35;margin:8px 0; }
body.learn-page .course-path-heading p { font-size:14px;line-height:1.65; }
body.learn-page .course-dashboard { gap:16px;margin-bottom:24px; }
body.learn-page .course-next { padding:12px 14px 14px;border-inline-start:5px solid var(--green);border-radius:18px;background:var(--panel); }
body.learn-page .course-next::before { content:none; }
body.learn-page .course-next h2 { font-size:18px;line-height:1.45;margin:8px 0; }
body.learn-page .course-next p { font-size:15px;line-height:1.65;margin-bottom:12px; }
body.learn-page .course-next small { font-size:13px;line-height:1.6;margin-bottom:12px; }
body.learn-page :is(.course-primary,.course-secondary,.course-review-button) { border-radius:12px; }
body.learn-page .course-secondary { border:1.5px solid var(--control-line); }
body.learn-page .course-progress-card { padding:16px;border-radius:18px; }
body.learn-page .course-progress-card>p:not(.course-review-note) { font-size:13px; }
body.learn-page .course-review-note { font-size:13px!important; }
body.learn-page :is(.course-eyebrow,.course-lesson-meta,.course-unit>header p,.course-lesson small,.course-session-header small,.course-footnote) { font-size:13px; }
body.learn-page .course-eyebrow { letter-spacing:.03em;color:var(--muted); }

/* Map real units/lessons to Claude's framed stages and separate lesson rows. */
body.learn-page .course-path { gap:16px; }
body.learn-page .course-unit { padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel); }
body.learn-page .course-unit>header { gap:10px;margin-bottom:12px; }
body.learn-page .course-unit>header h2 { font-size:18px;line-height:1.5;margin:0 0 4px; }
body.learn-page .course-unit-number { width:32px;height:32px;border:1.5px solid var(--control-line);color:var(--ink);font-size:14px; }
body.learn-page .course-lesson-list { display:grid;gap:8px;border:0;border-radius:0;overflow:visible;background:transparent; }
body.learn-page .course-lesson { min-height:56px;padding:8px 10px;gap:10px;border:1.5px solid var(--control-line);border-radius:12px;background:var(--bg); }
body.learn-page .course-lesson+.course-lesson { border-top:1.5px solid var(--control-line); }
body.learn-page .course-lesson strong { font-size:15px;line-height:1.55;font-weight:600; }
body.learn-page .course-lesson.is-complete { border-color:var(--green); }
body.learn-page .course-lesson-mark { width:32px;height:32px;font-size:13px; }

/* Same four real stages, now with the prototype's connected-dot hierarchy. */
body.learn-page .course-session-header { font-size:14px;gap:8px; }
body.learn-page .course-session-header>span { white-space:normal;overflow:visible;text-overflow:clip;line-height:1.6; }
body.learn-page .course-phases { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0; }
body.learn-page .course-phases li { position:relative;display:grid;justify-items:center;align-items:start;gap:4px;font-size:13px;line-height:1.5;text-align:center;white-space:normal; }
body.learn-page .course-phases li::before { content:"";position:absolute;top:14px;inset-inline:-50% 50%;height:2px;background:var(--control-line); }
body.learn-page .course-phases li:first-child::before { display:none; }
body.learn-page .course-phases li>span { position:relative;width:28px;height:28px;border-width:2px;border-color:var(--control-line);background:var(--bg);font-size:13px; }
body.learn-page .course-phases .is-active>span { background:var(--green);border-color:var(--green);color:var(--on-accent); }
body.learn-page .course-phases .is-done>span { background:var(--pale);border-color:var(--green);color:var(--green); }
body.learn-page .course-phases :is(.is-active,.is-done)::before { background:var(--green); }
body.learn-page .course-step { padding:16px;border-radius:18px; }
body.learn-page .course-step :is(h1,h2) { font-size:22px;line-height:1.45; }
body.learn-page .course-step p { line-height:1.8; }
body.learn-page .course-step .course-example { padding:12px 14px;margin-block:16px;border-radius:18px;background:var(--light); }
body.learn-page .course-choices button { min-height:64px;border:1.5px solid var(--control-line);padding:10px 14px;border-radius:12px; }
body.learn-page .course-choices button[aria-pressed="true"] { border-color:var(--green);box-shadow:inset 0 0 0 1.5px var(--green); }
body.learn-page .course-feedback { padding:12px 14px;border-radius:12px; }
body.learn-page .course-feedback.is-correct { border-width:1.5px;border-color:var(--learn-ok);background:var(--learn-ok-tint);color:var(--learn-ok); }
body.learn-page .course-feedback.is-retry { border-width:2px;border-style:dashed; }
body.learn-page .course-step-explain .course-reviewed-media { margin-block:16px;padding:12px;border:1.5px solid var(--control-line);border-radius:18px;background:var(--light); }
body.learn-page .course-reviewed-media h2 { font-size:18px; }
body.learn-page .course-media-links small { font-size:13px; }

/* Apply the same compact cards to the actual bilingual foundation lesson. */
body.learn-page .learning-root :is(h1,h2,h3) { font-family:var(--font-ui);letter-spacing:normal; }
body.learn-page .learning-root .learning-session-body { padding:16px;border-radius:18px; }
body.learn-page .learning-root :is(.learning-intro,.learning-teaching,.learning-question,.learning-result) h1 { font-size:22px;line-height:1.5; }
body.learn-page .learning-root :is(.learning-eyebrow,.learning-level,.learning-source,.learning-next-preview small,.learning-options small) { font-size:13px!important; }
body.learn-page .learning-root .learning-options button { border-radius:12px; }
body.learn-page .learning-root .learning-options button:not(.learning-option-short) { min-height:64px; }
body.learn-page .learning-root .learning-options button:not(.learning-correct):not(.learning-incorrect) { border-width:1.5px;border-color:var(--control-line); }
body.learn-page .learning-root .learning-options button.learning-correct { border-color:var(--learn-ok);background:var(--learn-ok-tint);color:var(--learn-ok); }
body.learn-page .learning-root .learning-options button.learning-incorrect { border-style:dashed;border-color:var(--learn-retry);background:var(--learn-retry-tint);color:var(--learn-retry); }
body.learn-page .learning-root .learning-feedback.is-correct { border-color:var(--learn-ok);background:var(--learn-ok-tint);color:var(--learn-ok); }
body.learn-page .learning-root .learning-feedback.is-incorrect { border-color:var(--learn-retry);background:var(--learn-retry-tint);color:var(--learn-retry); }
body.learn-page .learning-root .learning-primary { background:var(--green);color:var(--on-accent);border-color:var(--green);border-radius:12px; }
body.learn-page[data-profile="kids"] :is(.learn-reading-actions button,.learning-root .learning-button) { min-height:56px; }
body.learn-page[data-profile="kids"] .learning-root .learning-session-body { border-radius:24px; }
html[lang="ar"] body.learn-page :is(.course-eyebrow,.course-path-heading h1,.course-unit>header h2,.course-step h1,.course-step h2) { letter-spacing:normal;line-height:1.65; }
@media(max-width:760px) {
  body.learn-page .course-path-heading h1 { font-size:22px; }
  body.learn-page .course-dashboard { grid-template-columns:1fr; }
  body.learn-page .course-next .course-primary { width:100%; }
  body.learn-page .course-choices { grid-template-columns:1fr; }
  body.learn-page .learn-reading-actions { display:grid;grid-template-columns:1fr;width:100%; }
  body.learn-page .course-progress-card { gap:4px 12px; }
  body.learn-page .course-review-button { font-size:13px!important; }
}

/* Primary Path hierarchy uses real progress: Continue, Children, Stages. */
body.learn-page .course-next-secondary { margin-top:10px; }
body.learn-page .learn-reading-start { min-height:44px;text-align:start;padding:8px 0; }
body.learn-page .learn-child-doorway { background:var(--learn-amber-tint);border-color:var(--gold-text);border-radius:24px;border-end-start-radius:6px; }
body.learn-page .learn-child-doorway .learn-reading-actions button { background:var(--panel);border-radius:12px;min-height:48px; }
body.learn-page .course-stages-heading { display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-block:24px 8px; }
body.learn-page .course-stages-heading h2 { margin:0;font-size:20px;line-height:1.5; }
body.learn-page .course-stage-links { margin:0; }
body.learn-page .course-stage-links a { border:1px solid var(--control-line);background:var(--panel);min-height:44px; }
body.learn-page .course-path-options { margin-block:20px;padding:12px;border-block:1px solid var(--line); }
body.learn-page .course-path-options>summary { min-height:44px;cursor:pointer;font-weight:600;line-height:1.6; }
body.learn-page .course-path-options[open]>summary { margin-bottom:12px; }
body.learn-page .course-practice-link button { min-height:44px;text-align:start; }
/* The existing profile control is still available in the Settings header.
 * These rules affect Learn only; other headers retain every existing action. */
body.learn-page .topbar { height:auto;min-height:64px;padding-block:8px;gap:12px;flex-wrap:nowrap; }
body.learn-page .topbar :is(#profileControl,.mushaf-beta-badge,.reader-top-options,.top-brand small) { display:none!important; }
body.learn-page .topbar .top-brand { min-width:0;gap:8px; }
body.learn-page .topbar #topTitle { font-size:18px;letter-spacing:normal; }
body.learn-page .topbar .top-right { flex:0 0 auto;gap:8px; }
body.learn-page .topbar :is(#languageButton,#settingsButton) { min-width:44px;min-height:44px; }

/* The real title is inside Start/Continue; full progress stays after the units. */
body.learn-page .course-dashboard { grid-template-columns:minmax(0,1fr);margin-bottom:16px; }
body.learn-page .course-next .course-path-title { margin:0 0 8px;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:normal;color:var(--muted); }
body.learn-page .course-path-options .course-progress-card { margin-block:0 16px; }

/* Compact course summary and a single whole-card Children action. */
body.learn-page .course-next.course-next-compact { padding:12px 14px; }
body.learn-page .course-next-compact .course-path-title { margin:0 0 6px; }
body.learn-page .course-next-compact h2 { margin:0 0 10px;font-size:18px;line-height:1.45; }
body.learn-page .course-next-compact .course-primary { min-height:48px;padding-block:10px; }
body.learn-page .course-next-compact .course-next-secondary { margin-top:2px; }
body.learn-page .course-next-compact .learn-reading-start { min-height:44px;padding-block:6px;font-size:13px;line-height:1.5; }
body.learn-page button.learn-child-doorway { display:grid;grid-template-columns:32px minmax(0,1fr) 16px;align-items:center;gap:12px;width:100%;min-width:0;min-height:68px;margin:0;padding:10px 14px;text-align:start;font:inherit;color:var(--ink);background:var(--learn-amber-tint);border:1px solid var(--gold-text);border-radius:24px;border-end-start-radius:6px;cursor:pointer; }
body.learn-page .learn-child-doorway .learn-child-icon { display:grid;place-items:center;width:32px;height:36px;border-radius:50%;background:var(--gold-text);color:var(--learn-amber-tint); }
body.learn-page .learn-child-icon svg { width:20px;height:20px; }
body.learn-page .learn-child-doorway .learn-child-copy { display:grid;gap:2px;min-width:0; }
body.learn-page .learn-child-copy strong { font-size:18px;line-height:1.4; }
body.learn-page .learn-child-copy small { font-size:14px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere; }
body.learn-page .learn-child-doorway .learn-child-arrow { font-size:20px;color:var(--gold-text); }
body.learn-page button.learn-child-doorway:focus-visible { outline:3px solid var(--focus-ring);outline-offset:3px; }
body.learn-page .course-stages-heading { margin-block:16px 8px; }

/* Named child entrance and direct return, without a profile menu dependency. */
body.learn-page .learn-child-context { display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-block:0 16px;padding:12px 14px;border:1px solid var(--gold-text);border-radius:18px;background:var(--learn-amber-tint); }
body.learn-page .learn-child-identity { display:flex;align-items:center;gap:10px;min-width:0; }
body.learn-page .learn-child-identity strong { font-size:16px;line-height:1.5;overflow-wrap:anywhere; }
body.learn-page .learn-child-context .learn-child-icon { display:grid;place-items:center;flex:none;width:30px;height:34px;color:var(--gold-text); }
body.learn-page .learn-child-context button { min-height:44px;text-align:start;padding:8px 0;text-decoration:underline;text-underline-offset:3px; }
body.learn-page .learn-child-context button:focus-visible { outline:3px solid var(--focus-ring);outline-offset:3px; }

/* User-directed playful colour, limited to the Bara’im entry and context. */
body.learn-page :is(button.learn-child-doorway,.learn-child-context) { background:linear-gradient(115deg,#fff0ca,#ffe6ed 65%,#eee5ff);border-color:#8a4268;color:#243d37; }
body.learn-page button.learn-child-doorway { grid-template-columns:40px minmax(0,1fr) 16px; }
body.learn-page :is(.learn-child-doorway,.learn-child-context) .learn-child-icon { width:40px;height:44px;border-radius:50% 50% 44% 44%;background:#e5dfff;color:#176e59; }
body.learn-page .learn-child-icon svg { width:27px;height:27px; }
body.learn-page .baraim-bud-stem { stroke:#176e59; }
body.learn-page .baraim-bud-leaves { fill:#62cba1;stroke:#176e59; }
body.learn-page .baraim-bud-bloom { fill:#f66c90;stroke:#702c53; }
body.learn-page .baraim-bud-heart { fill:#ffd350;stroke:none; }
body.learn-page :is(.learn-child-copy strong,.learn-child-identity strong) { color:#243d37; }
body.learn-page .learn-child-copy small { color:#39544d; }
body.learn-page :is(.learn-child-arrow,.learn-child-context button) { color:#663455; }
body.learn-page.dark :is(button.learn-child-doorway,.learn-child-context) { background:linear-gradient(115deg,#2b273d,#382536 65%,#243d36);border-color:#ef9fc0;color:#f7f2e8; }
body.learn-page.dark :is(.learn-child-copy strong,.learn-child-identity strong) { color:#f7f2e8; }
body.learn-page.dark .learn-child-copy small { color:#ddd4df; }
body.learn-page.dark :is(.learn-child-arrow,.learn-child-context button) { color:#ffc0db; }

/* Keep the current-ayah return unobstructed on narrow lesson screens. */
@media(max-width:760px){
 body.learn-page .topbar{display:flex!important;flex-wrap:nowrap!important;min-height:58px!important;height:58px!important;padding-block:5px!important;gap:8px}
 body.learn-page .topbar .top-brand{flex:1;min-width:0}
 body.learn-page .topbar .top-right{width:auto!important;flex:none;flex-wrap:nowrap}
 body.learn-page .topbar .pwa-install-trigger,body.learn-page .topbar .app-tour-trigger,body.learn-page .topbar .mushaf-beta-badge{display:none!important}
}

/* A short, guided route through the existing explanation. */
.ye-step-position{display:block;margin-block-end:6px;color:var(--muted);font-size:13px;font-weight:700;line-height:1.5}
.ye-step-travel{display:flex;align-items:stretch;justify-content:space-between;gap:10px;margin-block:12px 20px}
.ye-step-travel button,.ye-review-explanation{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font:inherit;font-weight:700;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.ye-step-travel button:last-child{border-color:var(--gold-text);background:var(--learn-amber-tint);color:var(--ink)}
.ye-step-travel button:disabled{opacity:.45;cursor:default}
.ye-step-travel button:focus-visible,.ye-review-explanation:focus-visible,#ye-observation:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}
.ye-review-explanation{margin-block-start:12px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:420px){.ye-step-travel button{flex:1;min-width:0;padding-inline:10px}}


/* /learn-typography.css */
/* Claude handoff typography: local, unmodified Readex Pro for bilingual UI.
 * Load after learning-navigation.css (including the compact card rules).
 * Arabic teaching examples, canonical Quran/source faces and size settings
 * retain their existing explicit fonts; no --arabic or scripture selector edits. */
@font-face {
  font-family:"Readex Pro";
  src:url('/fonts/ReadexPro-Variable.ttf') format('truetype');
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
}
body.learn-page {
  --font-ui:"Readex Pro","Segoe UI","Noto Sans Arabic",system-ui,sans-serif;
  font-family:var(--font-ui);
}
/* Hifdh changes are limited to its interface controls and explanatory labels. */
body.reader-page :is(.hifdh-reader-tools,.hifdh-verse-study,.hifdh-listen-first-row,
  .hifdh-ayah-toggle,.hifdh-reciter,.hifdh-audio-status,.hifdh-ayah .verse-top) {
  --font-ui:"Readex Pro","Segoe UI","Noto Sans Arabic",system-ui,sans-serif;
  font-family:var(--font-ui);
}
/* Handoff: headings 700, lesson rows/actions 600, navigation 500/700. */
body.learn-page :is(.course-next h2,.course-unit>header h2,.course-stages-heading h2,
  .course-step-explain h2,.course-session-header>span,.learn-reading-entrance strong) {
  font-weight:700;
}
body.learn-page :is(.course-primary,.course-secondary,.course-review-button,.course-back) {
  font-weight:600!important; /* Existing course controls declare weight !important. */
}
body.learn-page .course-eyebrow { font-weight:600;letter-spacing:normal; }
body.learn-page .course-lesson strong { font-weight:600; }
body.learn-page .course-step:not(.course-step-explain) [data-course-focus]>h1 { font-weight:600; }
body.learn-page .course-choices button { font-weight:500; }
body.learn-page .course-phases li { font-weight:500; }
body.learn-page .course-phases .is-active,
body.learn-page .course-phases li>span { font-weight:700; }
body.learn-page .learn-section-rail a { font-weight:500; }
body.learn-page .learn-section-rail a[aria-current=page] { font-weight:700; }
body.reader-page :is(.hifdh-session-actions button,.hifdh-verse-study button,
  .hifdh-listen-first-row button,.hifdh-ayah-toggle>span:last-child) { font-weight:600; }
body.reader-page .hifdh-session-head strong { font-weight:700; }


/* /cave-lesson.css */
.cave-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1rem;
  margin-block: .5rem 1rem;
  border-inline-start: 3px solid var(--green, #23705b);
  border-radius: 0 .7rem .7rem 0;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.55;
}
.cave-entry:dir(rtl) { border-radius: .7rem 0 0 .7rem; }
.cave-entry small, .cave-entry strong { display: block; }
.cave-entry small, .cave-reference { color: var(--muted); }
.cave-entry:hover strong, .cave-entry:focus-visible strong { text-decoration: underline; }
.cave-lesson { max-width: 45rem; margin-inline: auto; color: var(--ink); }
.cave-lesson p { margin-block: .65rem; line-height: 1.8; overflow-wrap: anywhere; }
.cave-lesson:lang(ar) p { line-height: 1.95; }
.cave-lesson header { margin-block: 1.15rem .8rem; }
.cave-lesson h1 { margin-block: .2rem; font: 650 clamp(1.5rem, 5vw, 2.35rem)/1.4 var(--font-ui, system-ui, sans-serif); }
.cave-lesson .cave-reference { margin-block-end: .15rem; font-size: .9rem; }
.cave-back, .cave-passage a, .cave-sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green, #23705b); }
.cave-passage { padding: .75rem 1rem .3rem; border-block: 1px solid var(--line); background: var(--panel); }
.cave-passage p[lang=ar] { font: 1.55rem/2.1 var(--arabic, serif); text-align: right; }
.cave-exercise { margin: 1.15rem 0; padding: 0; border: 0; min-width: 0; }
.cave-exercise legend { margin-block-end: .45rem; font-weight: 650; line-height: 1.65; }
.cave-exercise button {
  display: block; min-height: 44px; width: 100%; margin-block: .3rem; padding: .5rem .85rem;
  border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); color: inherit; font: inherit;
  line-height: 1.65; text-align: start; cursor: pointer;
}
.cave-exercise button[aria-pressed=true] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.cave-exercise [data-cave-feedback]:empty { margin: 0; }
.cave-lesson details { padding-block: .25rem; border-block-start: 1px solid var(--line); }
.cave-lesson summary { min-height: 44px; align-content: center; padding-block: .55rem; cursor: pointer; font-weight: 600; }
.cave-sources a { display: flex; }
.cave-levels nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.cave-levels a { display: inline-grid; align-items: center; min-height: 44px; color: inherit; padding-inline: .45rem; }
.cave-levels [aria-current=page] { font-weight: 700; }
.cave-people {
  margin-block: 1.1rem;
  padding-block: .75rem;
  border-block: 1px solid var(--line);
}
.cave-people h2 { font-size: 1.14rem; line-height: 1.6; margin: 0 0 .6rem; }
.cave-portrait { margin: 0; }
.cave-portrait img {
  display: block;
  inline-size: 100%;
  max-inline-size: 28rem;
  block-size: auto;
  border-radius: .6rem;
}
.cave-portrait figcaption { font-size: .85rem; line-height: 1.65; margin-block-start: .35rem; }
.cave-portrait figcaption strong { display: block; }
.cave-people p { overflow-wrap: normal; }
.cave-history-links { display: flex; flex-direction: column; align-items: start; }
.cave-history-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green, #23705b); }
@media (min-width: 44rem) {
  .cave-people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: .3rem 1.1rem; align-items: start; }
  .cave-people h2 { grid-column: 1 / -1; }
  .cave-portrait { grid-row: 2 / 4; }
  .cave-people > p { margin-block-start: 0; }
  .cave-people > details { grid-column: 2; }
}

.youth-film-scene {max-inline-size:36rem;margin-inline:auto}
.youth-film-scene .film-frame-link {display:block;overflow:hidden;border-radius:.85rem;background:#352c24;aspect-ratio:2.45;position:relative}
.ye-art .youth-film-scene .film-frame-link img {position:absolute;top:50%;transform:translateY(-50%);width:100%;max-width:100%;max-height:none;height:auto;border-radius:0}
.youth-film-scene .film-frame-link:focus-visible,.youth-film-scene summary:focus-visible {outline:3px solid var(--ye-teal,#12655b);outline-offset:3px}
.youth-film-scene figcaption {padding-block:.3rem}.youth-film-scene figcaption>strong {font-size:1rem}
.youth-film-scene figcaption p {margin:.25rem 0}.youth-film-scene .film-scene-link,.youth-film-scene summary {display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.youth-film-scene summary {cursor:pointer;display:list-item;align-content:center}

.cave-follow{padding-block:.65rem;border-block-start:1px solid var(--line)}
.cave-follow h2{margin:.15rem 0;font-size:1.1rem}
.cave-follow nav{display:flex;flex-wrap:wrap;gap:.1rem 1.2rem}
.cave-follow a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-underline-offset:.18em}
.cave-context .cave-people{margin-block:0;border-block:0}
.cave-passage .cave-quran { font-family: 'QatrahEdition-hafs','Amiri Quran',Amiri,serif; text-wrap: pretty; }
.cave-meaning strong { display: block; font-size: .88em; color: var(--muted); }

/* The verse, teaching point and reusable reading skill form the main path. */
.cave-lesson { font-size:1rem; max-width:50rem; }
.cave-lesson h1 { font-size:clamp(1.4rem,4vw,1.9rem); }
.cave-reference { display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem 1rem; }
.cave-reference>span { margin-inline-start:auto;font-size:.875rem; }
.cave-passage { border:1px solid var(--line);border-radius:.8rem;padding:1rem 1.15rem; }
.cave-passage .cave-quran { font-size:clamp(1.85rem,5vw,2.2rem);line-height:2.15;overflow-wrap:normal;word-break:normal; }
.cave-main-point { border-inline-start:3px solid var(--green);padding:.8rem 1rem;margin-block:1.25rem;background:color-mix(in srgb,var(--green) 6%,var(--panel));border-radius:.4rem; }
.cave-main-point h2 { font-size:.875rem;color:var(--green);margin:0 0 .35rem;font-weight:750; }
.cave-main-point p { margin:0;max-width:64ch; }
.cave-reading-note>p,.cave-sources>p { max-width:66ch; }
.cave-follow nav { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.5rem; }
.cave-follow a { padding:.55rem .7rem;border:1px solid var(--line);border-radius:.5rem;font-size:.95rem;line-height:1.55;text-decoration:none;background:var(--panel); }
.cave-follow a:first-child { border-color:var(--green);font-weight:700; }
.cave-lesson :is(a,button,summary):focus-visible { outline:3px solid var(--focus-ring,var(--ink));outline-offset:3px; }
.cave-lesson .cave-family-note { display:block; }
.cave-levels a { border-radius:.35rem;padding-inline:.65rem;font-size:.875rem; }
.cave-levels [aria-current=page] { background:var(--pale);color:var(--green); }
.cave-source-history { margin-block-start:.5rem; }
@media(max-width:420px){.cave-passage{padding:.75rem}.cave-main-point{padding:.75rem}.cave-follow nav{grid-template-columns:1fr}}

/* v97: the same visible overview and section tiles used by the study lessons. */
.cave-local-nav{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin:.7rem 0;padding:.75rem;border:1px solid var(--line);border-inline-start:4px solid var(--green);border-radius:.75rem;background:color-mix(in srgb,var(--green) 6%,var(--panel))}.cave-local-nav a{min-height:44px;font-size:1rem;line-height:1.6;text-underline-offset:.2em}.cave-overview{display:inline-flex;align-items:center;padding:.5rem .75rem;border:1px solid var(--green);border-radius:.55rem;background:var(--panel);color:var(--green);font-weight:750}.cave-section-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem;margin:.8rem 0 1rem}.cave-section-tiles button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;min-height:68px;padding:.55rem .3rem;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);color:var(--green);font:inherit;font-size:.875rem;line-height:1.5;cursor:pointer}.cave-section-tiles button:first-child{border-color:var(--green);background:color-mix(in srgb,var(--green) 7%,var(--panel))}.cave-section-tiles svg{width:1.35rem;height:1.35rem;flex:none}.cave-section-tiles strong{font-weight:750}.cave-lesson :is(.cave-main-point,.cave-passage,.rs-comparison,.cave-sources,.rs-practice,.cave-exercise){scroll-margin-top:calc(var(--learn-appbar-height,110px) + var(--learn-rail-height,45px) + 16px)}
@media(max-width:460px){.cave-section-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.cave-overview{width:100%;justify-content:center}.cave-section-tiles button{min-height:64px}}
@media(prefers-reduced-motion:reduce){.cave-lesson *{scroll-behavior:auto!important}}

.cave-passage .cave-focus-label{margin:.1rem 0;color:var(--green);font-size:.875rem;font-weight:750}.cave-passage .cave-focus{margin:.35rem 0 .5rem;font-size:clamp(1.8rem,5vw,2.15rem);line-height:2.1}.cave-full-ayah{margin-top:.5rem}.cave-full-ayah>summary{font-size:1rem;font-weight:750;color:var(--green)}


/* /reading-skills.css */
.reading-skills{display:block;min-inline-size:0;margin-block:1.1rem;color:var(--ink);font:inherit;font-size:1rem;line-height:1.65;text-align:start;overflow-wrap:anywhere}
.reading-skills *{box-sizing:border-box}
.reading-skills .rs-header{margin-block-end:.75rem}
.reading-skills .rs-lenses{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:0 .85rem;padding:0 0 .65rem;border-block-end:1px solid var(--line)}
.reading-skills .rs-lenses button{flex:1 1 11rem;min-inline-size:0;min-block-size:44px;padding:.5rem .7rem;border:1px solid var(--line);border-radius:.5rem;background:var(--panel);color:var(--ink);font:inherit;font-size:1rem;line-height:1.5;text-align:center;cursor:pointer}
.reading-skills .rs-lenses button[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:var(--pale);font-weight:700}
.reading-skills .rs-kicker{margin:0;color:var(--muted);font-size:.875rem;font-weight:650}
.reading-skills .rs-title{margin:.2rem 0 .35rem;font-size:1.18rem;line-height:1.5}
.reading-skills p{margin:.35rem 0}
.reading-skills .rs-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.reading-skills .rs-clue{display:flex;flex-direction:column;gap:.5rem;min-inline-size:0;min-block-size:44px;margin:0;padding:.75rem;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);color:inherit;font:inherit;line-height:1.6;text-align:start;cursor:pointer}
.reading-skills .rs-clue[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:var(--pale)}
.reading-skills .rs-clue-heading{display:flex;align-items:start;gap:.45rem;min-inline-size:0;font-size:.875rem}
.reading-skills .rs-clue-heading strong{font-weight:650}
.reading-skills .rs-step-number{display:inline-grid;place-items:center;flex:0 0 1.45rem;min-block-size:1.45rem;border:1px solid var(--line);border-radius:50%;font-size:.875rem;font-variant-numeric:tabular-nums}
.reading-skills .rs-clue[aria-pressed=true] .rs-step-number{background:var(--green);color:var(--on-accent,#fff);border-color:transparent}
.reading-skills .rs-quote{display:block;font-family:var(--quran-font,'QatrahEdition-hafs',Amiri,serif);font-size:clamp(1.25rem,3.8vw,1.55rem);font-weight:400;line-height:2;letter-spacing:normal;word-spacing:normal;text-align:start;overflow-wrap:normal;word-break:normal}
.reading-skills .rs-quote::before,.reading-skills .rs-quote::after{content:none}
.reading-skills .rs-gloss{display:block;font-size:1rem;line-height:1.6}
.reading-skills .rs-reference{display:block;margin-block-start:auto;color:var(--muted);font-size:.875rem}
.reading-skills .rs-reference bdi{white-space:nowrap}
.reading-skills .rs-observation{margin-block:.65rem .8rem;padding:.65rem .85rem;border-inline-start:3px solid var(--green);background:var(--pale);border-radius:.25rem}
.reading-skills .rs-observation-title{font-weight:650}
.reading-skills details{border-block-start:1px solid var(--line);padding-block:.1rem}
.reading-skills summary{min-block-size:44px;padding-block:.6rem;cursor:pointer;color:var(--green);font-size:1rem;line-height:1.5;font-weight:600}
.reading-skills .rs-practice>summary{font-weight:700}
.reading-skills fieldset{min-inline-size:0;margin:0;padding:.1rem 0 .6rem;border:0}
.reading-skills legend{max-inline-size:100%;margin-block:.25rem .5rem;font-size:1rem;font-weight:650;line-height:1.65}
.reading-skills .rs-choice{display:block;inline-size:100%;min-block-size:44px;margin-block:.35rem;padding:.55rem .75rem;border:1px solid var(--line);border-radius:.45rem;background:var(--panel);color:inherit;font:inherit;font-size:1rem;line-height:1.65;text-align:start;cursor:pointer}
.reading-skills .rs-choice[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.reading-skills .rs-feedback:empty{display:none}
.reading-skills .rs-feedback:not(:empty){padding:.6rem .75rem;border-inline-start:3px solid var(--focus-ring,var(--green));background:var(--panel);margin-block:.6rem .25rem}
.reading-skills .rs-feedback[data-result=correct]{border-color:var(--green);background:var(--pale)}
.reading-skills .rs-transfer ul{list-style:none;margin:.15rem 0 .6rem;padding:0}
.reading-skills .rs-transfer li{padding-block:.65rem}
.reading-skills .rs-transfer li+li{border-block-start:1px solid var(--line)}
.reading-skills .rs-transfer-title{margin:0 0 .35rem;font-size:1rem;line-height:1.6}
.reading-skills a{display:inline-flex;align-items:center;gap:.35rem;min-block-size:44px;max-inline-size:100%;color:var(--green);font-size:1rem;line-height:1.6;text-underline-offset:.18em}
.reading-skills .rs-sources a{display:flex;font-size:.875rem;padding-block:.35rem}
.reading-skills :is(button,a,summary,[tabindex]):focus-visible{outline:3px solid var(--focus-ring,var(--ink));outline-offset:3px}
@media(max-width:40rem){.reading-skills .rs-comparison{grid-template-columns:minmax(0,1fr)}.reading-skills .rs-clue{gap:.25rem;padding:.6rem .75rem}.reading-skills .rs-reference{margin-block-start:0}.reading-skills .rs-quote{font-size:1.45rem;line-height:1.9}}
@media(forced-colors:active){.reading-skills .rs-clue[aria-pressed=true],.reading-skills .rs-choice[aria-pressed=true],.reading-skills .rs-lenses button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}.reading-skills .rs-step-number{border:1px solid currentColor}}


/* /faith-maps.css */
.faith-maps,.fm-entry{--fm-ink:#173d39;--fm-tint:#e7f2ec;--fm-strong:#33786b;--fm-gold:#c58d3f;--fm-paper:#fffbf0;--fm-line:#aec8b8;color:var(--fm-ink)}
body.dark :is(.faith-maps,.fm-entry){--fm-ink:#e7f2db;--fm-tint:#29443c;--fm-strong:#97c9aa;--fm-gold:#e9ae60;--fm-paper:#35463c;--fm-line:#738e79}
.faith-maps{width:min(100%,47rem);margin-inline:auto;padding-block:.25rem 2rem;font-family:var(--font-ui,system-ui);line-height:1.65}
.faith-maps *,.fm-entry{box-sizing:border-box}
.faith-maps h1{font-size:clamp(1.5rem,4vw,2.35rem);line-height:1.34;margin:.35rem 0 .7rem;text-wrap:balance}
.faith-maps[lang=ar] h1{line-height:1.6}
.faith-maps h2{font-size:1.12rem;margin:.8rem 0 .3rem}
.fm-breadcrumb{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.fm-back,.fm-read,.fm-sources a{color:var(--fm-ink);font-weight:650;text-underline-offset:.2em;display:inline-flex;align-items:center;gap:.35rem;min-block-size:2.75rem}
.fm-intro{margin:.25rem 0 1rem;max-width:52ch}
.fm-library{display:grid;gap:.35rem}
.fm-topic,.fm-entry{display:grid;grid-template-columns:clamp(3.4rem,13vw,5.5rem) minmax(0,1fr) auto;align-items:center;gap:clamp(.45rem,2vw,1rem);text-decoration:none;color:var(--fm-ink);padding:.45rem .65rem;border-radius:1rem}
.fm-topic{border-bottom:1px solid var(--fm-line);border-radius:0}
.fm-topic:hover,.fm-topic:focus-visible,.fm-entry{background:var(--fm-tint)}
.fm-topic strong,.fm-topic small,.fm-entry strong,.fm-entry small{display:block;line-height:1.55;word-break:normal;overflow-wrap:break-word}
.fm-topic strong,.fm-entry strong{font-size:1.03rem}
.fm-entry{border-inline-start:3px solid var(--fm-strong);margin-block:.6rem}
.fm-art{display:block;width:100%;height:auto;max-height:5.1rem}
.fm-line,.fm-edge{fill:none;stroke:var(--fm-strong);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fm-edge{stroke:var(--fm-ink)}
.fm-fill,.fm-paper,.fm-gold{stroke:var(--fm-ink);stroke-linejoin:round;stroke-width:1.65}
.fm-fill{fill:var(--fm-strong)}.fm-paper{fill:var(--fm-paper)}.fm-gold{fill:var(--fm-gold)}
body:not(.dark) .faith-maps .fm-dialogue{--fm-tint:#e9f1f6;--fm-strong:#49778a}
body:not(.dark) .faith-maps .fm-wilayah{--fm-tint:#f3ecdb;--fm-strong:#8b6c35}
body:not(.dark) .faith-maps .fm-baraah{--fm-tint:#f2eaf2;--fm-strong:#816a88}
.fm-header small,.fm-diagram figcaption{font-weight:650}
.fm-diagram{background:var(--fm-tint);border-radius:1.1rem;margin:.6rem 0 1rem;padding:clamp(.65rem,3vw,1.25rem)}
.fm-sequence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:.5rem 0 .75rem}
.fm-node{position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:.1rem;min-width:0;cursor:pointer;font:inherit;font-size:.9rem;font-weight:600;color:var(--fm-ink);background:transparent;border:0;border-block-end:3px solid transparent;border-radius:.5rem .5rem 0 0;padding:.35rem .2rem;line-height:1.55;white-space:normal;overflow-wrap:normal;word-break:normal}
.fm-node:not(:last-child)::after{content:"";position:absolute;inset-inline-end:-.55rem;top:2.65rem;inline-size:.6rem;border-block-start:2px dotted var(--fm-strong)}
.fm-node .fm-art{max-width:6rem}
.fm-node[aria-pressed=true]{background:var(--fm-paper);border-block-end-color:var(--fm-strong)}
.fm-observation{font-size:1rem;max-width:62ch}
.fm-passage{border-inline-start:3px solid var(--fm-line);padding-inline-start:.8rem;margin:.65rem 0 1rem}
.fm-ayah{font-family:Amiri,serif;font-size:clamp(1.25rem,4vw,1.75rem);font-weight:400!important;line-height:1.95;margin:.15rem 0;letter-spacing:normal}
.fm-passage p:not(.fm-ayah){margin:.25rem 0}.fm-passage .fm-source-ref{display:inline-block;margin-inline-start:.35rem}
.fm-angle{max-width:65ch}
.fm-question{border:0;border-block-start:1px solid var(--fm-line);padding:.6rem 0;margin:1rem 0 0;min-width:0}
.fm-question legend{font-size:1.05rem;font-weight:650;line-height:1.65;padding-inline-end:.65rem}
.fm-question button{display:block;text-align:start;cursor:pointer;font:inherit;line-height:1.6;color:var(--fm-ink);background:transparent;border:1px solid var(--fm-line);padding:.55rem .8rem;width:100%;min-height:2.8rem;margin:.35rem 0;border-radius:.6rem;white-space:normal}
.fm-question button[aria-pressed=true]{border-color:var(--fm-strong);background:var(--fm-tint)}
.fm-question p:empty{display:none}.fm-question p{border-inline-start:3px solid var(--fm-gold);padding-inline-start:.6rem}.fm-question p[data-status=correct]{border-color:var(--fm-strong)}
.fm-sources summary{cursor:pointer;padding:.4rem 0;min-height:2.75rem}
.fm-bottom{margin-block-start:.8rem}
@media(max-width:26rem){.fm-sequence{display:flex;flex-direction:column;gap:.15rem}.fm-node{display:grid;grid-template-columns:3.5rem minmax(0,1fr);align-items:center;text-align:start;gap:.5rem;border-block-end:0;border-inline-start:3px solid transparent;border-radius:.5rem;padding:.1rem .35rem}.fm-node[aria-pressed=true]{border-inline-start-color:var(--fm-strong)}.fm-node:not(:last-child)::after{display:none}.fm-node .fm-art{max-height:2.8rem}}
.fm-casebook{margin-block:.8rem 1.2rem;padding:clamp(.7rem,3vw,1.25rem);border-block:2px solid var(--fm-strong);background:var(--fm-paper);border-radius:1.5rem .5rem;color:var(--fm-ink)}
.fm-casebook>h2{margin:0;font-size:1.4rem;line-height:1.55}.fm-casebook p{margin:.4rem 0 .75rem}
.fm-case-picker{display:flex;flex-wrap:wrap;gap:.4rem;margin-block:.8rem;border-block-end:1px solid var(--fm-line);padding-block-end:.65rem}
.fm-case-picker button{display:block;max-inline-size:100%;min-height:2.75rem;font:inherit;font-weight:650;line-height:1.6;white-space:normal;color:var(--fm-ink);border:1px solid var(--fm-line);border-radius:1rem .35rem;background:transparent;padding:.35rem .8rem;cursor:pointer}
.fm-case-picker button[aria-pressed=true]{background:var(--fm-tint);border-color:var(--fm-strong);box-shadow:inset 0 -2px var(--fm-strong)}
.fm-case-scene{display:flex;gap:.8rem;align-items:center}.fm-case-scene .fm-art{flex:0 0 clamp(3.2rem,13vw,5rem);width:clamp(3.2rem,13vw,5rem);height:auto}.fm-case-scene h3{margin:0;line-height:1.6;font-size:1.14rem;min-inline-size:0}
.fm-case-question{margin-block:.65rem .2rem}.fm-case-question legend{max-inline-size:100%}
.fm-case-result:not(:empty){margin:.65rem 0;padding:.5rem .8rem;border-inline-start:3px solid var(--fm-gold)}
.fm-case-result[data-status=correct]{border-color:var(--fm-strong);background:var(--fm-tint)}
.fm-case-result p{border:0;padding:0;margin:0}.fm-case-result strong{display:block;margin-top:.3rem}
.fm-case-source{display:inline-block;max-inline-size:100%;min-height:2.75rem;padding-block:.55rem;font-size:.93rem;color:var(--fm-ink);text-underline-offset:.2em}
.fm-teaching ol{padding-inline-start:1.4rem}.fm-teaching li+li{margin-block-start:.7rem}.fm-teaching a{display:inline;overflow-wrap:break-word}.fm-teaching p{margin:.25rem 0}

.fm-verse-links{display:flex;align-items:center;flex-wrap:wrap;gap:.1rem 1.1rem}.fm-verse-links :is(a,button){display:inline-flex;align-items:center;min-height:44px;color:inherit;text-underline-offset:.18em}

.fm-verse-links button{padding:0;border:0;background:transparent;font:inherit;text-decoration:underline;cursor:pointer}

/* Give the verse the full reading measure in either direction and at text zoom. */
.faith-maps{display:block;inline-size:min(100%,47rem);min-inline-size:0}
.faith-maps .fm-header{display:block;padding:0;background:transparent}
.faith-maps .fm-header h1{font-size:clamp(1.2rem,2.8vw,1.65rem);margin-block:.25rem .55rem}
.faith-maps .fm-verses{display:block;background:var(--fm-paper);border:1px solid var(--fm-line);border-radius:.85rem;padding:clamp(.85rem,3vw,1.45rem);min-inline-size:0}
.faith-maps .fm-passage{margin:0;padding:0;border:0;max-inline-size:100%}
.faith-maps .fm-citation{color:var(--fm-strong);font-size:.9rem;font-weight:650}
.faith-maps .fm-passage .fm-ayah{font-family:var(--quran-font,Amiri,serif);font-size:clamp(1.55rem,4vw,2rem);line-height:2.05;letter-spacing:normal;word-spacing:normal;text-align:start;overflow-wrap:normal;word-break:normal;margin:.35rem 0 .65rem}
.faith-maps .fm-meaning{line-height:1.7}
.faith-maps .fm-verse-links{line-height:1.45;font-size:.925rem}
.faith-maps .fm-compare{margin-block:.55rem 0;border-block-start:1px solid var(--fm-line)}
.faith-maps .fm-compare .fm-passage{margin-block:.5rem .95rem}
.faith-maps .fm-disclosure>summary,.faith-maps .fm-sources>summary{font-size:1rem;line-height:1.6;cursor:pointer;padding-block:.6rem;min-block-size:2.75rem}
.faith-maps .fm-evidence,.faith-maps .fm-diagram{display:block;min-inline-size:0;margin:1.15rem 0 0;padding:0;background:transparent;border:0}
.faith-maps .fm-evidence h2,.faith-maps .fm-diagram figcaption{font-size:1.13rem;font-weight:650;line-height:1.5}
.faith-maps .fm-evidence>p,.faith-maps .fm-evidence h2{margin-block:.35rem}
.faith-maps .fm-evidence blockquote{font-size:1.15rem;border-inline-start:2px solid var(--fm-line);padding-inline:.75rem;margin:.6rem 0 .15rem}
.faith-maps .fm-evidence .fm-gloss{font-size:.94rem;margin:0}
.faith-maps .fm-links{display:flex;flex-wrap:wrap;gap:0 1rem}
.faith-maps .fm-sequence{grid-template-columns:repeat(3,minmax(0,1fr));margin:.45rem 0}
.faith-maps .fm-node[aria-pressed=true]{background:var(--fm-tint);color:var(--fm-ink)}
.faith-maps .fm-observation{padding:.6rem .8rem;background:var(--fm-tint);border-radius:.5rem}
.faith-maps .fm-casebook,.faith-maps .fm-practice{display:block;margin:.75rem 0 .25rem;padding:0;border:0;border-block-start:1px solid var(--fm-line);border-radius:0;background:transparent}
.faith-maps .fm-casebook .fm-case-evidence{padding-inline-start:.65rem;border-inline-start:2px solid var(--fm-line)}
.faith-maps .fm-case-scene .fm-art{flex-basis:3rem;inline-size:3rem}
.faith-maps .fm-teaching ul{padding-inline-start:1.4rem}
.faith-maps .fm-related{display:block;width:fit-content;max-width:100%;min-height:2.75rem;margin-top:.5rem;line-height:1.6;padding-block:.4rem;color:var(--fm-ink);text-underline-offset:.2em}
.faith-maps :is(summary,button,a):focus-visible{outline:2px solid var(--fm-strong);outline-offset:3px}
@media(max-width:26rem){.faith-maps .fm-sequence{display:grid;gap:.25rem}.faith-maps .fm-node{display:flex;flex-direction:column;justify-content:flex-start;text-align:center;border:0;border-block-end:2px solid transparent;padding:.4rem .15rem;font-size:.9rem}.faith-maps .fm-node[aria-pressed=true]{border-block-end-color:var(--fm-strong)}.faith-maps .fm-node .fm-art{inline-size:2.7rem}}
@media(max-width:19rem){.faith-maps .fm-sequence{grid-template-columns:1fr}.faith-maps .fm-node{flex-direction:row;gap:.6rem;text-align:start;align-items:center}}


/* /youth-evidence.css */
/* A verse-first notebook for Mahdawi Youth. */
.ye-course,.ye-entry,.ye-verse-links{--ye-teal:#12655b;--ye-edge:#b8cec7;--ye-soft:#edf6f0;--ye-paper:#fffdf8;--ye-ink:#183632;--ye-muted:#48615c;--ye-gold:#a86e27}
body.dark :is(.ye-course,.ye-entry,.ye-verse-links){--ye-teal:#97d6c7;--ye-edge:#45635c;--ye-soft:#213c35;--ye-paper:#192e2b;--ye-ink:#edf5ed;--ye-muted:#b4ccc3;--ye-gold:#e3bb81}
.ye-course{max-width:50rem;margin-inline:auto;color:var(--ye-ink);padding-block:.6rem 2rem;min-inline-size:0}
.ye-course *,.ye-entry *,.ye-verse-links *{box-sizing:border-box;min-inline-size:0}
.ye-course :is(p,strong,small,a,button,label,h1,h2,summary,select),.ye-entry :is(strong,small){letter-spacing:normal;word-break:normal;overflow-wrap:break-word;white-space:normal;line-height:1.6}
.ye-course :is(button,select,input),.ye-entry{font:inherit;touch-action:manipulation}
.ye-course :is(button,select,input){color:var(--ye-ink);background:var(--ye-paper);border:1px solid var(--ye-edge);border-radius:.65rem;padding:.48rem .74rem;min-height:2.75rem}
.ye-course :is(button,select,summary){cursor:pointer}
.ye-course :focus-visible,.ye-entry:focus-visible,.ye-verse-links a:focus-visible{outline:3px solid var(--ye-teal);outline-offset:3px}
.ye-course h1{font-size:clamp(1.55rem,4vw,2.4rem);margin:.55rem 0 .2rem;line-height:1.34;text-wrap:balance}
.ye-course h2{font-size:1.15rem;line-height:1.6;margin:0 0 .65rem}
.ye-question{font-size:1.05rem;color:var(--ye-muted);margin:.3rem 0 .95rem}
.ye-course a,.ye-verse-links a{color:var(--ye-teal);text-decoration-thickness:.08em;text-underline-offset:.15em}
.ye-back,.ye-next,.ye-resume{display:inline-flex;align-items:center;min-height:44px;font-weight:650;margin-inline-end:.9rem}
.ye-overview-nav{margin:.4rem 0 1.1rem;padding:.7rem .85rem;border:1px solid var(--ye-edge);border-inline-start:4px solid var(--ye-teal);background:var(--ye-soft);border-radius:.4rem .9rem .9rem}
.ye-overview-actions{display:flex;gap:.4rem .85rem;align-items:center;flex-wrap:wrap}
.ye-overview-actions :is(a,.li-return){display:inline-flex;align-items:center;gap:.45rem;min-height:44px;margin:0;font-size:.94rem;font-weight:650;text-underline-offset:.18em;text-decoration:underline}
.ye-overview-actions :is(.ye-overview-link,.li-return){border:1px solid var(--ye-teal);padding:.35rem .7rem;border-radius:.6rem;background:var(--ye-paper);font-weight:750}
.ye-overview-link svg{width:1.5rem;height:1.5rem;flex:none}
.ye-overview-nav p{margin:.4rem 0 0;color:var(--ye-muted);font-size:.84rem;line-height:1.6}
.ye-focus-caption{display:flex;align-items:center;gap:.4rem;margin:.25rem 0 .6rem;font-size:.85rem;font-weight:650;color:var(--ye-muted)}
.ye-course .ye-focus-preview{display:block;font:clamp(1.5rem,4vw,2rem)/1.9 'QatrahEdition-hafs',Amiri,serif;text-align:right;margin:.35rem 0;overflow-wrap:normal}
.ye-full-ayah{margin-block:.5rem .75rem;border-block:1px solid var(--ye-edge)}.ye-full-ayah summary{min-height:44px;align-content:center;cursor:pointer;font-weight:700;color:var(--ye-teal);padding-block:.55rem}
.ye-ayah-preview{display:block;padding-block:.35rem .1rem;color:var(--ye-ink)}.ye-ayah-preview .ye-book-note{display:block;font-weight:500}
.ye-full-ayah[open] .ye-ayah-preview,.ye-full-ayah[open] .ye-ayah-read-label,.ye-full-ayah:not([open]) .ye-ayah-focus-label{display:none}
.ye-full-ayah[open] summary{font-size:.9rem;border-block-end:1px solid var(--ye-edge)}
.ye-resume{padding:.25rem .7rem;border-inline-start:3px solid var(--ye-gold);background:var(--ye-soft);border-radius:.2rem}
.ye-nav,.ye-audio,.ye-reference,.ye-art-nav,.ye-sources p,.ye-passages{display:flex;align-items:center;gap:.5rem .8rem;flex-wrap:wrap}
.ye-filters{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:.6rem;padding-block:.6rem}
.ye-filters label{font-weight:650;display:grid;gap:.3rem}.ye-filters input,.ye-filters select{width:100%}
.ye-count,.ye-reference small,.ye-book-note{font-size:.875rem;color:var(--ye-muted)}
.ye-entry,.ye-list a,.ye-topic-list button{display:flex;align-items:center;gap:.8rem;text-decoration:none;color:var(--ye-ink);border:1px solid var(--ye-edge);background:var(--ye-paper);border-radius:.9rem;padding:.75rem .95rem;text-align:start}
.ye-entry{border-inline-start:4px solid var(--ye-teal,#12655b);margin:.6rem 0 1rem}
.ye-entry svg,.ye-list svg,.ye-topic-list svg{color:var(--ye-teal);width:2.25rem;height:2.25rem;flex:none}
.ye-entry span,.ye-list a>span,.ye-topic-list span{flex:1}
.ye-entry strong,.ye-entry small,.ye-list strong,.ye-list small,.ye-topic-list strong,.ye-topic-list small{display:block}
.ye-entry small,.ye-list small,.ye-topic-list small{font-size:.88rem;color:var(--ye-muted)}
.ye-list,.ye-topic-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.ye-list a:hover,.ye-entry:hover,.ye-topic-list button:hover{border-color:var(--ye-teal);background:var(--ye-soft)}
.ye-list a>.ye-tick{flex:none;color:var(--ye-teal)}.ye-topic-list{margin-block:.4rem 1rem}
.ye-verse{border-block-start:3px solid var(--ye-gold);border-radius:.35rem 1.15rem .65rem .65rem;padding:clamp(.8rem,3vw,1.4rem);background:var(--ye-paper);box-shadow:0 3px 16px #183d3010;color:var(--ye-ink)}
.ye-reference{justify-content:space-between}.ye-reference strong small{font-weight:500}.ye-reference label{font-size:.85rem;color:var(--ye-muted)}.ye-reference select{max-inline-size:100%}
.ye-course p.ye-quran{font-family:'QatrahEdition-hafs','Amiri Quran',Amiri,'Noto Naskh Arabic',serif;direction:rtl;text-align:right;font-size:clamp(1.7rem,4.8vw,2.35rem);line-height:2.05;font-weight:400;word-spacing:normal;letter-spacing:normal;margin:.5rem 0 .65rem;overflow-wrap:normal}
.ye-meaning{line-height:1.75;margin:0 0 .9rem}.ye-audio button,.ye-course .ye-next{background:var(--ye-teal);color:var(--ye-paper);font-weight:700}.ye-next{border-radius:.65rem;padding:.4rem .8rem;text-decoration:none}
.ye-audio small{color:var(--ye-muted)}.ye-audio a{margin-inline-start:auto;display:inline-flex;min-height:44px;align-items:center}
.ye-sr-status{display:block;color:var(--ye-muted);font-size:.88rem}.ye-sr-status:not(:empty){margin-top:.35rem}
.ye-art:not(:empty){margin-block:.85rem}.ye-art figure{margin:0}.ye-art figure img{display:block;max-height:16rem;width:100%;object-fit:cover;object-position:center 34%;border-radius:.9rem}
.ye-art figcaption{color:var(--ye-muted);font-size:.875rem;line-height:1.7;margin:.3rem 0}
.ye-art-nav button,.ye-map button,.ye-choices button{line-height:1.65}.ye-art-nav [aria-pressed=true],.ye-map [aria-pressed=true],.ye-choices [aria-pressed=true]{background:var(--ye-soft);border-color:var(--ye-teal);color:var(--ye-ink)}
.ye-storyboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem;max-width:34rem;margin-inline:auto}
.ye-course .ye-storyboard button{overflow:hidden;padding:0;align-self:start;background:var(--ye-paper);border:2px solid transparent;border-radius:.7rem}
.ye-course .ye-storyboard button[aria-pressed=true]{border-color:var(--ye-teal)}.ye-storyboard img{display:block;width:100%;aspect-ratio:1/1.65;object-fit:cover}.ye-storyboard span{display:block;padding:.35rem .2rem;font-size:.88rem}
.ye-reasoning,.ye-quiz,.ye-sources{margin-block:1rem}
.ye-map,.ye-choices{display:flex;flex-wrap:wrap;gap:.45rem}.ye-map button{display:flex;align-items:center;gap:.4rem;text-align:start;max-width:100%}.ye-step-num{display:inline-grid;place-items:center;border:1px solid var(--ye-edge);border-radius:50%;min-width:1.5rem;height:1.5rem;font-size:.85rem}
.ye-observation,.ye-answer{background:var(--ye-soft);border-inline-start:3px solid var(--ye-teal);padding:.7rem .95rem;margin-block:.65rem;border-radius:.25rem .8rem .8rem .25rem}
.ye-observation p,.ye-answer p{margin:.2rem 0;line-height:1.75}.ye-choices button{flex:1 1 12rem;text-align:start}
.ye-answer:not(.correct){border-inline-start-color:var(--ye-gold)}.ye-sources{border-block:1px solid var(--ye-edge);padding-block:.5rem}
.ye-sources summary{min-height:44px;align-content:center;font-weight:650}.ye-sources p{margin:.4rem 0}.ye-sources small{font-weight:600;color:var(--ye-muted)}
.ye-verse-links{border-inline-start:3px solid var(--ye-teal);padding:.65rem .9rem;background:var(--ye-soft);margin-block:.7rem}
.ye-verse-links strong,.ye-verse-links a{display:block;line-height:1.7}.ye-verse-links a{padding-block:.35rem}
@media(max-width:580px){.ye-filters,.ye-list{grid-template-columns:minmax(0,1fr)}.ye-topic-list{grid-template-columns:minmax(0,1fr)}.ye-reference{align-items:flex-start}.ye-map button{flex:1 1 9rem}.ye-audio a{margin-inline-start:0}}
.ye-diagram:not(:empty){padding:1rem;margin-block:1rem;border-radius:.95rem;background:var(--ye-soft);color:var(--ye-ink)}
.ye-diagram-nodes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
.ye-diagram-nodes button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.3rem;border:1px solid var(--ye-edge);font-size:.9rem;padding:.5rem .28rem}
.ye-diagram-nodes svg{width:1.85rem;height:1.85rem;color:var(--ye-teal)}.ye-diagram-nodes b{font-family:Amiri,'Noto Naskh Arabic',serif;font-size:1.15rem;font-weight:550;line-height:1.8}
.ye-diagram-nodes [aria-pressed=true]{border:2px solid var(--ye-teal)}.ye-diagram p{margin:.7rem 0 0;line-height:1.75}
@media(max-width:360px){.ye-diagram{padding:.65rem}.ye-diagram-nodes{grid-template-columns:minmax(0,1fr)}.ye-diagram-nodes button{flex-direction:row;text-align:start;gap:.5rem;flex-wrap:wrap}}
.ye-list .ye-matched-ref{color:var(--ye-teal);font-weight:650;margin-block-start:.35rem}
.ye-language{margin-block:1rem;padding:clamp(.8rem,3vw,1.25rem);border-inline-start:4px solid var(--ye-teal);border-radius:.3rem 1rem 1rem .3rem;background:var(--ye-paper);box-shadow:0 2px 10px #173d3210}
.ye-language:empty{display:none}.ye-language summary,.ye-connections summary{min-height:44px;align-content:center;cursor:pointer;font-weight:650}
.ye-phrase,.ye-passage-tools,.ye-language-tabs,.ye-lang-sources{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .65rem}
.ye-passage-tools{margin-top:.65rem;padding-top:.55rem;border-block-start:1px solid var(--ye-edge)}.ye-passage-tools a{display:inline-flex;align-items:center;min-height:44px}.ye-passage-tools button:disabled{opacity:.45;cursor:default}
.ye-phrase{justify-content:space-between;margin-block:.35rem .8rem}.ye-phrase b{font-family:'QatrahEdition-hafs',Amiri,serif;font-size:clamp(1.4rem,4.6vw,2rem);line-height:2}
.ye-phrase button{font-size:.85rem}.ye-language-tabs button{display:flex;gap:.4rem;align-items:center;flex:1 1 8rem;text-align:start}.ye-language-tabs svg,.ye-connections svg{height:1.5rem;width:1.5rem;flex:none;color:var(--ye-teal)}
.ye-language-tabs [aria-pressed=true]{border-color:var(--ye-teal);background:var(--ye-soft);font-weight:650}.ye-language details p,.ye-long-reading li{line-height:1.85}.ye-language details details{padding-inline-start:1rem}
.ye-connections{margin-block:.7rem 1rem}.ye-connections nav{display:grid;gap:.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr))}.ye-connections a{display:flex;align-items:center;gap:.45rem;min-height:44px}.ye-long-reading li+li{margin-top:.6rem}.ye-recall-box{margin-top:.7rem;padding:.75rem .9rem;background:var(--ye-soft);border-radius:.8rem}.ye-recall-box p{margin:0 0 .5rem}.ye-course [hidden]{display:none!important}.ye-verse{scroll-margin-block-start:6rem}
.ye-course .ye-study-toggle{margin-top:.55rem;border-color:var(--ye-teal);font-weight:650}.ye-selected-note{margin:.7rem 0 0;padding:.75rem .9rem;background:var(--ye-soft);border-radius:.75rem}.ye-selected-note b{display:block;font:1.55rem/1.85 'QatrahEdition-hafs',Amiri,serif;text-align:right}.ye-selected-note dt{font-weight:700}.ye-selected-note dd{margin:0 0 .55rem;line-height:1.8}
.ye-art .youth-film img,.ye-art img[src*="/youth/ayah-lessons/"]{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:clamp(12rem,32vh,18rem);margin-inline:auto}.ye-art .youth-film figcaption{max-width:42rem;margin-inline:auto}
.ye-trails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.55rem,2vw,1rem);margin:.25rem 0 1rem}
.ye-course .ye-trail{display:flex;flex-direction:column;border:1px solid var(--ye-edge);border-radius:1.35rem .5rem .8rem .8rem;overflow:hidden;background:var(--ye-paper);color:var(--ye-ink);text-decoration:none;transition:border-color .15s}.ye-trail:hover{border-color:var(--ye-teal)}
.ye-trail img{width:100%;height:clamp(5rem,13vw,8rem);object-fit:cover;display:block}.ye-trail span{display:block;padding:.55rem .75rem .75rem}.ye-trail strong,.ye-trail small{display:block}.ye-trail strong{font-size:1.03rem}.ye-trail small{font-size:.88rem;line-height:1.55;color:var(--ye-muted)}
.ye-all-topics summary,.ye-track-contents summary{padding:.55rem 0;min-height:44px;align-content:center;font-weight:650;cursor:pointer}.ye-track-contents{margin:1rem 0;border-block:1px solid var(--ye-edge)}.ye-track-contents small{margin-inline-start:.75rem;color:var(--ye-muted)}.ye-track-contents li a{display:inline-flex;min-height:44px;align-items:center}.ye-track-contents [aria-current=step]{font-weight:750}
.ye-jumps{display:flex;flex-wrap:wrap;gap:.25rem .6rem;margin:.3rem 0 .65rem}.ye-course .ye-jumps button{border-color:transparent;border-block-end:2px solid var(--ye-edge);border-radius:0;background:transparent;padding:.3rem .25rem;color:var(--ye-teal);font-weight:650}.ye-course .ye-jumps button:focus-visible,.ye-course .ye-jumps button:hover{border-block-end-color:var(--ye-teal)}
.ye-course .ye-jumps [data-ye-jump=reason]{background:var(--ye-soft);border:1px solid var(--ye-teal);border-radius:.5rem;padding-inline:.75rem;font-weight:750}
.ye-course :is([data-ye-language],[data-ye-quiz],[data-ye-steps],[data-ye-cited-works]){scroll-margin-block-start:5rem}
.ye-workshop{border:1px solid var(--ye-edge);background:var(--ye-paper);border-radius:.75rem 1.5rem .75rem .75rem;margin:1rem 0;padding:clamp(.75rem,3vw,1.2rem)}
.ye-lab-stops{display:flex;gap:.5rem;flex-wrap:wrap;border-block-end:1px solid var(--ye-edge);padding-block-end:.6rem}.ye-lab-stops button{border-radius:.4rem;border-color:transparent}.ye-lab-stops [aria-pressed=true],.ye-lab-choices [aria-pressed=true]{background:var(--ye-soft);color:var(--ye-ink);border-color:var(--ye-teal)}
.ye-specimen{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.3rem .7rem;padding:.65rem .85rem;margin-top:.7rem;background:var(--ye-soft);border-inline-start:3px solid var(--ye-gold);border-radius:.45rem}
.ye-specimen b{font:clamp(1.45rem,4vw,1.9rem)/1.9 'QatrahEdition-hafs',Amiri,serif}.ye-specimen a{padding:.3rem;min-height:44px;align-content:center}.ye-workshop p{margin:.65rem 0}.ye-lab-choices{display:flex;gap:.4rem;flex-wrap:wrap}.ye-lab-choices button{flex:1 1 8.5rem}.ye-lab-answer:not(:empty){margin:.6rem 0;line-height:1.75}.ye-lab-related{display:inline-flex;align-items:center;min-height:44px;margin-inline-start:.4rem}
@media(max-width:680px){.ye-trails{grid-template-columns:repeat(2,minmax(0,1fr))}.ye-trail span{padding:.45rem .55rem .6rem}.ye-trail small{line-height:1.5}.ye-trail strong{line-height:1.55}}
@media(max-width:340px){.ye-trails{grid-template-columns:minmax(0,1fr)}.ye-course .ye-trail{flex-direction:row}.ye-trail img{width:32%;height:auto;min-height:6rem}}

.ye-source-desk,.ye-verse-note{margin:.7rem 0;padding:.8rem 1rem;border-inline-start:3px solid var(--ye-teal,#12655b);border-radius:.25rem .8rem .8rem .25rem;background:var(--ye-soft,var(--panel,#edf6f0));color:var(--ye-ink,var(--ink,#183632))}
.ye-source-desk p,.ye-verse-note p{margin:.35rem 0;line-height:1.8}.ye-source-desk nav,.ye-audience-switch nav{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .85rem}
.ye-source-desk nav a,.ye-audience-switch nav a,.ye-verse-note a{display:inline-flex;align-items:center;min-height:44px}.ye-source-desk .ye-witness{margin:.4rem 0 0}.ye-witness span{font-weight:650}
.ye-audience-switch{margin:.45rem 0}.ye-audience-switch summary{min-height:44px;align-content:center;cursor:pointer;color:var(--ye-muted)}
.ye-verse-note a{color:var(--accent,var(--ye-teal,#12655b));font-weight:650}.home-learn-actions .ye-entry{display:flex;max-inline-size:100%;margin:.4rem 0;text-align:start}
.ye-more-trails summary{min-height:44px;align-content:center;cursor:pointer;font-weight:700;color:var(--ye-teal)}.ye-more-trails{margin-block:.3rem .7rem}.ye-track-contents{margin:.5rem 0}.ye-lab-stops button{position:relative;flex:1 1 6.2rem;padding-block-end:.65rem}.ye-lab-stops button::after{content:"";position:absolute;bottom:0.1rem;inset-inline:15%;height:2px;background:var(--ye-edge)}.ye-lab-stops button[aria-pressed=true]::after{height:3px;background:var(--ye-teal)}
.ye-trails:first-child{grid-template-columns:repeat(2,minmax(0,1fr))}.ye-all-topics{border-block-start:1px solid var(--ye-edge)}.ye-more-trails[open] summary{margin-bottom:.35rem}
@media(max-width:340px){.ye-trails:first-child{grid-template-columns:minmax(0,1fr)}}
.ye-report-shelf{margin-block:1rem;padding:.85rem 1rem;background:var(--ye-paper);border-inline-start:3px solid var(--ye-gold);border-radius:.3rem 1rem 1rem .3rem}
.ye-report-shelf h3{font-size:1.04rem;margin:.45rem 0 .1rem}.ye-report-shelf p{margin:.35rem 0;line-height:1.75}.ye-report-speaker{color:var(--ye-muted)}.ye-report-shelf blockquote{margin:.6rem 0;padding:.45rem .8rem;background:var(--ye-soft);border:0;text-align:right;font:1.26rem/1.85 Amiri,'Noto Naskh Arabic',serif}.ye-report-shelf summary,.ye-report-list summary{min-height:44px;align-content:center;cursor:pointer;font-weight:650}.ye-report-list a{display:block;padding:.36rem 0}

.ye-track-index{list-style:none;margin:.45rem 0 1rem;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));column-gap:1.5rem}
.ye-track-index li{display:flex;align-items:baseline;gap:.75rem;border-block-end:1px solid var(--ye-edge);padding-block:.45rem}
.ye-track-index li a{flex:1;padding-block:.35rem}.ye-track-index li small{color:var(--ye-muted);white-space:nowrap}
.ye-edition-tools,.ye-text-references{display:flex;gap:.4rem 1rem;align-items:center;flex-wrap:wrap;margin-block:.75rem}
.ye-edition-tools a,.ye-edition-tools button{padding-block:.4rem;min-height:2.75rem;align-content:center}
.ye-editorial,.ye-commentary-notes,.ye-text-note{line-height:1.85}
.ye-editorial p,.ye-commentary-notes li,.ye-text-note dd{max-width:70ch}
.ye-commentary-notes,.ye-philology,.ye-practice-fold{border-block-start:1px solid var(--ye-edge);padding-block:.25rem}
.ye-philology summary,.ye-practice-fold summary{padding-block:.65rem;cursor:pointer;font-weight:650}
.ye-commentary-notes>h2{margin:.65rem 0;font-size:1.15rem;line-height:1.6}.ye-commentary-notes ol{padding-inline-start:1.6rem}.ye-ref-button{font-variant-numeric:tabular-nums}
.ye-commentary-notes li{padding-inline-start:.25rem;padding-block:.25rem .6rem}.ye-commentary-notes li::marker{color:var(--ye-teal);font-weight:750}.ye-commentary-notes li+li{border-block-start:1px solid var(--ye-edge);padding-block-start:.85rem}
.ye-commentary-notes li h3{margin:.1rem 0 .3rem;font-size:1.02rem;line-height:1.65;color:var(--ye-teal)}.ye-commentary-notes li p{margin:.25rem 0 .6rem}
.ye-step-sources{display:flex;flex-wrap:wrap;gap:.2rem .85rem;margin-block:.6rem;max-inline-size:100%;font-size:.9rem;line-height:1.6}
.ye-step-sources a{display:inline-flex;align-items:center;gap:.35rem;min-block-size:44px;max-inline-size:100%;color:var(--ye-teal);text-decoration:underline;text-underline-offset:.18em;overflow-wrap:anywhere}
.ye-step-sources svg{inline-size:1.15rem;block-size:1.15rem;flex:none}.ye-step-sources span{min-inline-size:0}
.ye-text-note dt{font-weight:650}.ye-text-note dd{margin:0 0 .8rem}
.ye-text-note>b{font-size:1.4rem}.ye-text-references{font-size:.9rem}

/* v97: visible destinations keep the same order and shape at each study depth. */
.ye-jumps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem;margin:.7rem 0 1rem}.ye-course .ye-jumps button{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:68px;gap:.4rem;padding:.55rem .3rem;border:1px solid var(--ye-edge);border-radius:.6rem;background:var(--ye-paper);color:var(--ye-teal);font-size:.875rem;line-height:1.5}.ye-course .ye-jumps button svg{width:1.35rem;height:1.35rem;flex:none}.ye-course .ye-jumps [data-ye-jump=reason]{background:var(--ye-soft);border-color:var(--ye-teal);padding-inline:.3rem}.ye-jumps strong{font-weight:750}.ye-overview-nav{padding:.75rem;border-inline-start-width:4px}.ye-overview-actions .ye-overview-link{font-size:1rem;font-weight:750}.ye-overview-nav p{font-size:.875rem}
.ye-course .ye-report-link{--ye-report-accent:var(--learn-source,#665080);--ye-report-tint:var(--learn-source-tint,#f1ebf8);display:flex;align-items:center;gap:.7rem;min-height:56px;margin:.85rem 0 .2rem;padding:.55rem .7rem;border:1px solid color-mix(in srgb,var(--ye-report-accent) 35%,var(--ye-edge));border-radius:.8rem;background:var(--ye-report-tint);color:var(--ye-report-accent);text-decoration:none;box-shadow:0 1px 2px #18363208}.ye-report-link[hidden]{display:none}.ye-report-link:hover{border-color:var(--ye-report-accent)}
.ye-report-icon{display:grid;place-items:center;inline-size:2.4rem;block-size:2.4rem;border:1px solid var(--ye-edge);border-radius:.55rem;background:var(--ye-paper);flex:none}.ye-report-link svg{inline-size:1.55rem;block-size:1.55rem;flex:none}.ye-report-text{flex:1}.ye-report-link strong{display:block;font-size:.98rem;font-weight:750;text-decoration:none}.ye-report-link small{display:block;font-size:.82rem;line-height:1.5;color:var(--ye-muted)}
.ye-report-count{display:inline-flex;align-items:center;justify-content:center;min-inline-size:2rem;min-block-size:2rem;padding:.1rem .55rem;border-radius:1rem;background:var(--ye-report-accent);color:var(--ye-report-tint);font-size:.9rem;font-weight:750;flex:none;font-variant-numeric:tabular-nums}.ye-report-count:empty{display:none}
.ye-report-heading{display:flex;align-items:flex-start;gap:.7rem 1rem;border-block-end:1px solid var(--ye-edge);padding-block:.1rem .7rem;margin-block-end:.8rem}.ye-report-heading>div{flex:1}.ye-report-heading h2{margin:0}.ye-report-heading p{color:var(--ye-muted);font-size:.9rem;max-inline-size:52ch}.ye-report-total{font-size:.85rem;font-weight:650;color:var(--learn-source,var(--ye-teal));padding:.2rem .5rem;background:var(--learn-source-tint,var(--ye-soft));border-radius:.45rem;white-space:nowrap}
.ye-course .ye-report-return{margin-block-start:.65rem;color:var(--ye-teal);background:var(--ye-soft);font-size:.9rem}.ye-report-status{color:var(--ye-muted);font-size:.9rem}
.ye-course :is([data-ye-verse],[data-ye-steps],[data-ye-language],[data-ye-cited-works],[data-ye-quiz],[data-ye-reports],[data-ye-report-target]){scroll-margin-top:calc(var(--learn-appbar-height,110px) + var(--learn-rail-height,45px) + var(--learn-ayah-nav-height,0px) + 16px)}
@media(max-width:460px){.ye-jumps{grid-template-columns:repeat(3,minmax(0,1fr))}.ye-overview-actions{align-items:stretch}.ye-overview-actions>.ye-overview-link{width:100%;justify-content:center}.ye-course .ye-jumps button{min-height:64px}.ye-report-link{padding:.65rem}}
@media(prefers-reduced-motion:reduce){.ye-course *{scroll-behavior:auto!important}}

/* Each letter opening stays visible, with a native link to its exact passage. */
.ye-openings{margin-block:1.1rem 1.4rem;scroll-margin-block-start:calc(var(--learn-appbar-height,110px) + var(--learn-rail-height,45px) + var(--learn-ayah-nav-height,0px) + 16px)}
.ye-openings>header{padding-block:.4rem .7rem;border-block-end:1px solid var(--ye-edge)}
.ye-openings h2{font-size:1.18rem;margin:.25rem 0;line-height:1.6}.ye-openings>header p{margin:.25rem 0;color:var(--ye-muted);line-height:1.7}
.ye-opening-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.25rem}
.ye-opening{min-inline-size:0;padding-block:.8rem;border-block-end:1px solid var(--ye-edge)}
.ye-opening h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem .85rem;margin:0;line-height:1.65}
.ye-opening h3>b{font:1.85rem/1.8 Amiri,'Noto Naskh Arabic',serif;color:var(--ye-teal);letter-spacing:0}
.ye-opening h3>span{font-size:.94rem;font-weight:600}.ye-opening>p{margin:.2rem 0 .55rem;line-height:1.75;font-size:.95rem}
.ye-opening nav{display:flex;flex-wrap:wrap;gap:.3rem .45rem}.ye-opening nav a{display:flex;align-items:center;gap:.25rem .5rem;flex-wrap:wrap;max-inline-size:100%;min-block-size:44px;padding:.3rem .55rem;border:1px solid var(--ye-edge);border-radius:.5rem;background:var(--ye-paper);color:var(--ye-teal);font-size:.83rem;text-decoration:none}
.ye-opening nav a>span{font-weight:650}.ye-opening nav a small{color:var(--ye-muted);font-size:.78rem}.ye-opening nav a:hover,.ye-opening nav a[aria-current=location]{border-color:var(--ye-teal);background:var(--ye-soft)}
.ye-opening nav a:focus-visible{outline:2px solid var(--ye-teal);outline-offset:3px}
@media(max-width:680px){.ye-opening-grid{grid-template-columns:minmax(0,1fr)}.ye-opening h3>b{font-size:1.7rem}}
.ye-scriptures{margin-block:1.1rem 1.4rem}.ye-scriptures>header{margin-block-end:.75rem}.ye-scriptures h2{font-size:1.18rem;margin:.25rem 0;line-height:1.6}.ye-scriptures>header p{margin:.25rem 0;color:var(--ye-muted);line-height:1.7}
.ye-scripture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.ye-scripture{min-inline-size:0;padding:.8rem;border:1px solid var(--ye-edge);border-block-start:3px solid var(--ye-gold);border-radius:.6rem;background:var(--ye-paper)}
.ye-scripture h3{display:flex;align-items:center;gap:.4rem;margin:0;font-size:1.04rem;line-height:1.6}.ye-scripture h3 svg{inline-size:1.5rem;block-size:1.5rem;flex:none;color:var(--ye-teal)}.ye-scripture p{margin:.4rem 0;line-height:1.75;font-size:.92rem}.ye-scripture .ye-scripture-recipient{font-weight:650;color:var(--ye-teal);margin:.2rem 0}
.ye-scripture nav{display:flex;flex-wrap:wrap;gap:.3rem .55rem}.ye-scripture nav a{display:flex;align-items:center;gap:.3rem;flex-wrap:wrap;min-block-size:44px;padding:.2rem .35rem;text-underline-offset:.18em;font-size:.86rem;border-radius:.35rem}.ye-scripture nav a[aria-current=location]{background:var(--ye-soft);box-shadow:inset 0 0 0 1px var(--ye-teal)}.ye-scripture nav a small{color:var(--ye-muted)}
@media(max-width:760px){.ye-scripture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.ye-scripture-grid{grid-template-columns:minmax(0,1fr)}}

/* v114: one reading path, one authored explanation at a time. */
.ye-jumps,body:not([data-profile="kids"]) .ye-course nav.ye-jumps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.3rem;margin:.65rem 0 1rem}
.ye-course .ye-jumps button{flex-direction:row;justify-content:flex-start;min-height:44px;gap:.4rem;padding:.35rem .5rem;border-radius:.45rem;font-size:.88rem;background:transparent}
.ye-course .ye-jumps [data-ye-jump=reason]{background:transparent;border-color:var(--ye-edge);padding-inline:.5rem}
body:not([data-profile="kids"]) .ye-course nav.ye-jumps [data-ye-jump="reason"]{border-block-end-color:transparent}
.ye-rail-number,.ye-section-number{display:inline-grid;place-items:center;flex:none;inline-size:1.4rem;block-size:1.4rem;border-radius:50%;background:var(--ye-soft);color:var(--ye-teal);font-size:.8rem;font-weight:700}
.ye-section-number{margin-inline-end:.5rem;vertical-align:middle}
.ye-course .ye-report-link{min-height:48px;padding:.35rem .6rem;margin-block:.7rem .1rem}
.ye-report-icon{inline-size:2rem;block-size:2rem;border:0;background:transparent}.ye-report-link svg{inline-size:1.35rem;block-size:1.35rem}
.ye-report-shelf{padding:.6rem 0;margin-block:1rem;border:0;border-radius:0;background:transparent}
.ye-report-heading{padding-block:.15rem .6rem;margin-block-end:.65rem}.ye-report-heading h2{font-size:1.13rem}
.ye-commentary-notes{margin-block:1.35rem}.ye-commentary-notes>h2{font-size:1.13rem;margin:0 0 .55rem}
.ye-course .ye-map{gap:.3rem;margin:.3rem 0 .45rem}.ye-course .ye-map button{flex:0 0 44px;justify-content:center;min-block-size:44px;inline-size:44px;padding:.25rem;border-radius:.45rem}
.ye-map .ye-step-num{border:0;inline-size:auto;min-width:0;height:auto;font-size:.9rem}.ye-map [aria-pressed=true]{box-shadow:inset 0 -3px 0 var(--ye-teal)}
.ye-observation{padding:.8rem 1rem;margin-block:.4rem .65rem}.ye-observation h3{margin:.15rem 0 .6rem;font-size:1.08rem;color:var(--ye-teal)}
.ye-step-position{display:block;color:var(--ye-muted);font-size:.8rem}.ye-observation .ye-step-body{max-inline-size:65ch;margin-block:.65rem .2rem;line-height:1.8}
.ye-step-verse{margin-block:.55rem}.ye-step-verse>p{font-size:1.45rem;line-height:1.9}.ye-step-verse>button{font-size:.85rem}
.ye-step-travel{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-block:.5rem .7rem}
.ye-step-travel button{font-size:.9rem}.ye-course .ye-step-travel button:last-child{background:var(--ye-teal);border-color:var(--ye-teal);color:var(--ye-paper)}
.ye-step-travel button:disabled{opacity:.48}.ye-step-sources{margin:.3rem 0 0;font-size:.84rem;gap:.1rem .75rem}
.ye-read-more{border-block-start:1px solid var(--ye-edge);margin-block:.65rem}.ye-read-more summary{min-block-size:44px;align-content:center;color:var(--ye-teal);font-size:.9rem;font-weight:650;cursor:pointer}.ye-read-more p{font-size:.95rem;margin:.25rem 0 .6rem}
.ye-philology,.ye-sources{font-size:.92rem}.ye-practice-fold>summary{display:list-item;min-height:44px;align-content:center;font-weight:700}
#ye-observation,.ye-course .ye-map{scroll-margin-top:calc(var(--learn-appbar-height,110px) + var(--learn-rail-height,45px) + var(--learn-ayah-nav-height,0px) + 16px)}
@media(max-width:400px){.ye-jumps,body:not([data-profile="kids"]) .ye-course nav.ye-jumps{grid-template-columns:repeat(2,minmax(0,1fr))}.ye-observation{padding:.65rem .75rem}.ye-step-travel button{padding-inline:.6rem;font-size:.84rem}}
.ye-youth-session[data-guide-swipe],.ye-workshop[data-guide-swipe]{touch-action:pan-y pinch-zoom}
.ye-youth-wording{margin-block:.8rem}.ye-youth-wording summary{min-height:44px;cursor:pointer;padding:.5rem .25rem;font-weight:650}
.ye-notebook-prompt{display:flex;gap:.7rem;align-items:center;padding-block:.55rem;margin-block:.4rem .65rem}
.ye-notebook-prompt img{inline-size:3.3rem;block-size:3.8rem;object-fit:cover;object-position:center 18%;border-radius:1rem;background:var(--pale);flex:none}
.ye-notebook-prompt>div{padding:.55rem .8rem;border:1px solid var(--line);border-radius:.8rem}.ye-notebook-prompt small{color:var(--muted);font-weight:650}
.ye-notebook-prompt .ye-question{margin:0;background:transparent;padding:0;border:0}

/* Use the reader palette for every surface of the youth lesson. */
html body .ye-course[data-study-level=youth],
html body[data-profile=youth] :is(.ye-entry,.ye-verse-links){
 --ye-paper:var(--panel,#fffdf8);--ye-ink:var(--ink,#1c302c);--ye-muted:var(--muted,#53675e);
 --ye-teal:var(--green,#155548);--ye-soft:var(--pale,#e6f0e9);--ye-edge:var(--line,#cedbd0);
 --ye-gold:var(--gold-text,#805b24);--ye-action-ink:var(--on-accent,#fff);
}
.ye-course[data-study-level=youth] .ye-library-title h1{margin-block:.25rem .4rem;font-size:clamp(1.55rem,4vw,2.15rem);line-height:1.45}
.ye-course[data-study-level=youth] :is(.ye-find-lesson,.ye-more-trails,.ye-all-topics){border:0;border-block-end:1px solid var(--ye-edge);border-radius:0;background:none;padding:0}
.ye-course[data-study-level=youth] :is(.ye-find-lesson,.ye-more-trails,.ye-all-topics)>summary{min-block-size:44px;align-content:center;font-weight:650;color:var(--ye-teal);cursor:pointer;padding-block:.45rem}
.ye-course[data-study-level=youth] :is(.ye-filters input,.ye-filters select,.ye-choices button,.ye-lab-choices button){border-color:var(--control-line,var(--ye-teal))}
.ye-course[data-study-level=youth] .ye-count:empty{display:none}
.ye-reading-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(.7rem,3vw,2.2rem);padding:clamp(1rem,3vw,2rem);margin-block:.85rem 1.1rem;background:var(--ye-soft);color:var(--ye-ink);border-radius:.85rem}
.ye-reading-preview>div{min-inline-size:0}
.ye-reading-preview>img{inline-size:clamp(4.1rem,19vw,10.5rem);block-size:auto;aspect-ratio:4/5;object-fit:cover;border-radius:.55rem}
.ye-reading-preview h2{color:var(--ye-ink);font-size:clamp(1.15rem,3.4vw,1.6rem);line-height:1.4;margin:.25rem 0}
.ye-course .ye-reading-preview small,.ye-course .ye-reading-preview p{color:var(--ye-muted)}
.ye-course .ye-reading-preview p{margin:.35rem 0 .65rem;line-height:1.65}
.ye-course[data-study-level=youth] .ye-reading-preview a{display:inline-flex;align-items:center;min-block-size:44px;padding:.3rem .9rem;border-radius:.5rem;text-decoration:none;background:var(--ye-teal);color:var(--ye-action-ink);font-weight:700}
.ye-course[data-study-level=youth] .ye-trails-heading{font-size:1.15rem;color:var(--ye-ink);margin:.8rem 0 .3rem}
.ye-course[data-study-level=youth] .ye-trail-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(15rem,40%);grid-template-columns:none;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;padding:.25rem .15rem .65rem;scroll-padding-inline:.15rem;gap:.7rem}
.ye-course[data-study-level=youth] .ye-trail{display:flex;flex-direction:row;align-items:start;gap:.65rem;padding:.65rem;scroll-snap-align:start;border:1px solid var(--ye-edge);border-radius:.6rem;background:var(--ye-paper);color:var(--ye-ink);text-decoration:none}
.ye-course[data-study-level=youth] .ye-trail img{inline-size:3.5rem;block-size:4.5rem;min-block-size:0;object-fit:cover;border-radius:.3rem}
.ye-course[data-study-level=youth] .ye-trail>span{display:block;padding:0}
.ye-course[data-study-level=youth] .ye-trail strong{color:var(--ye-ink);line-height:1.45}
.ye-course[data-study-level=youth] .ye-trail small{display:block;color:var(--ye-muted);margin-block-start:.22rem;font-size:.85rem;line-height:1.55}
.ye-course[data-study-level=youth] .ye-more-trails .ye-trails{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.ye-course[data-study-level=youth] .ye-notebook-prompt{gap:.55rem;padding:.3rem 0 .6rem;margin:0;align-items:center}
.ye-course[data-study-level=youth] .ye-notebook-prompt img{inline-size:2.75rem;block-size:3rem;border-radius:.5rem;object-fit:cover;background:var(--ye-soft);user-select:none;-webkit-user-drag:none}
.ye-course[data-study-level=youth] .ye-notebook-prompt>div{border:0;padding:0}
.ye-course[data-study-level=youth] .ye-notebook-prompt small{color:var(--ye-teal);font-size:.8rem}
.ye-course[data-study-level=youth] .ye-notebook-prompt .ye-question{color:var(--ye-ink);margin:.1rem 0;line-height:1.6}
.ye-course[data-study-level=youth] :is(.ye-verse,.ye-workshop,.ye-quiz){box-shadow:none}
html body .ye-course[data-study-level=youth] nav.ye-jumps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:0;border-block-end:1px solid var(--ye-edge);padding:0;border-radius:0;background:var(--ye-paper);margin-block:.55rem .65rem}
html body .ye-course[data-study-level=youth] nav.ye-jumps button{display:flex;align-items:center;justify-content:center;min-block-size:44px;min-inline-size:0;border:0;border-block-end:3px solid transparent;border-radius:0;background:transparent;color:var(--ye-muted);padding:.3rem .12rem;line-height:1.35}
html body .ye-course[data-study-level=youth] nav.ye-jumps button[aria-pressed=true]{background:var(--ye-soft);border-block-end-color:var(--ye-teal);color:var(--ye-teal)}
.ye-course[data-study-level=youth] :is(.ye-step-travel button:last-child,.ye-next,.ye-audio button){background:var(--ye-teal);color:var(--ye-action-ink);border-color:var(--ye-teal)}
.ye-course[data-study-level=youth] :is(.ye-choices,.ye-lab-choices){display:grid;grid-template-columns:1fr;gap:.4rem}
.ye-course[data-study-level=youth] :is(.ye-choices,.ye-lab-choices) button{text-align:start;padding:.55rem .8rem;min-block-size:44px}
.ye-course[data-study-level=youth] .ye-choices button[aria-pressed=true]{color:var(--ye-ink);background:var(--ye-soft);border-color:var(--ye-teal)}
.ye-course[data-study-level=youth] :is(.ye-reading-next,.ye-lesson-next){display:flex;margin-block:.8rem .3rem}
.ye-course[data-study-level=youth] :is(.ye-reading-next button,.ye-lesson-next .ye-next){display:flex;align-items:center;justify-content:space-between;gap:.75rem;inline-size:100%;min-block-size:48px;padding:.65rem .9rem;margin:0;border:1px solid var(--ye-teal);border-radius:.65rem;background:var(--ye-teal);color:var(--ye-action-ink);font-weight:700;text-align:start;text-decoration:none}
.ye-course[data-study-level=youth] .ye-reading-next button span{flex:none;font-size:1.2em}
@media(max-width:34rem){.ye-course[data-study-level=youth] .ye-trail-rail{grid-auto-columns:minmax(0,84%)}}
@media(max-width:23rem){.ye-reading-preview{grid-template-columns:minmax(0,1fr) 4.2rem}.ye-reading-preview:has(>div:only-child){grid-template-columns:1fr}}


/* /fadak-sermon.css */
/* A small source-connected argument map, shared by youth, adult and research views. */
.fadak-sermon{margin-block:1rem 1.4rem;padding:clamp(.85rem,3vw,1.4rem);border:1px solid var(--ye-edge,#b8cec7);border-block-start:4px solid var(--ye-teal,#12655b);border-radius:.4rem 1.2rem 1.2rem;background:var(--ye-paper,#fffdf8);color:var(--ye-ink,#183632);min-inline-size:0}
.fadak-sermon :is(h2,h3,p,blockquote){margin-block:.45rem .75rem}
.fadak-sermon :is(p,li,summary,a,button){line-height:1.7;overflow-wrap:break-word;white-space:normal}
.fadak-sermon h2{font-size:clamp(1.15rem,3.4vw,1.45rem)}
.fadak-sermon h3{font-size:1.05rem;display:flex;gap:.45rem;align-items:center}
.fs-kicker{display:flex;align-items:center;gap:.45rem;font-size:.86rem;font-weight:700;color:var(--ye-teal)}
.fs-point{font-size:1.08rem;max-width:65ch}.fs-point strong{font-weight:720}
.fs-lead{display:grid;grid-template-columns:minmax(0,1fr) 7.5rem;gap:1rem;align-items:start}.fs-lead figure{margin:.3rem 0 0}.fs-lead img{width:100%;height:11rem;object-fit:cover;display:block;border-radius:.65rem}.fs-lead figcaption{font-size:.8rem;color:var(--ye-muted);line-height:1.5;margin-top:.3rem}
.fs-overview{margin-block:1rem;border-block:1px solid var(--ye-edge);padding-block:.7rem}
.fs-overview ol{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;padding:0;margin:0}
.fs-overview a{display:flex;gap:.45rem;align-items:center;min-height:48px;border:1px solid var(--ye-edge);padding:.45rem .55rem;border-radius:.6rem;font-size:.91rem}
.fs-overview a[aria-current=step]{border:2px solid var(--ye-teal);background:var(--ye-soft);font-weight:750}
.fs-overview a>span{display:inline-grid;place-items:center;flex:none;width:1.5rem;height:1.5rem;border:1px solid currentColor;border-radius:50%;font-size:.8rem}
.fs-overview>p,.fs-caption,.fs-status{font-size:.86rem;color:var(--ye-muted);margin-bottom:0}
.fs-sermon{margin-block:1rem;padding:.9rem 1rem;border-inline-start:4px solid var(--ye-gold,#a86e27);background:var(--ye-soft);border-radius:.3rem .85rem .85rem}
.fs-sermon blockquote{font:clamp(1.45rem,4.4vw,1.9rem)/1.9 Amiri,'Noto Naskh Arabic',serif;text-align:right;padding:0;border:0;background:none}
.fs-translation small{display:block;font-size:.82rem;color:var(--ye-muted)}
.fs-source-link,.fs-source-links a,.fs-pair a,.fs-transmission>a{display:inline-flex;min-height:44px;align-items:center;font-weight:650}
.fs-citations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.ye-course .fs-citations button{display:grid;grid-template-columns:1.35rem minmax(0,1fr) auto;align-items:start;text-align:start;gap:.45rem;min-height:56px;padding:.65rem}
.fs-citations button small{color:var(--ye-muted);font-weight:650}.fs-citations button strong{font-size:.91rem;font-weight:650}.fs-citations button bdi{font-size:.86rem;font-variant-numeric:tabular-nums}
.ye-course .fs-citations button[aria-pressed=true]{border:2px solid var(--ye-teal);background:var(--ye-soft)}
.fs-passage-note{min-height:3rem;border-inline-start:3px solid var(--ye-teal);padding-inline-start:.65rem}
.fadak-sermon .learning-ayah{margin-block:.6rem}.fs-pair{margin-block:0}
.fs-arguments,.fs-story,.fs-transmission{border-block-start:1px solid var(--ye-edge);margin-block:.6rem 0}
.fadak-sermon summary{cursor:pointer;min-height:48px;align-content:center;font-weight:700;padding-block:.6rem}
.fadak-sermon summary .le-icon{vertical-align:middle;margin-inline-end:.45rem}
.fs-story-body{margin-block:.4rem .8rem;max-width:70ch}
.fs-source-links{display:flex;flex-wrap:wrap;gap:.3rem .8rem}.fs-transmission p{font-size:.94rem;max-width:70ch}
.fadak-sermon a{text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:.08em}.fadak-sermon :focus-visible{outline:3px solid var(--ye-teal);outline-offset:3px}
@media(max-width:520px){.fs-lead{grid-template-columns:minmax(0,1fr) 5.4rem;gap:.65rem}.fs-lead img{height:9rem}.fs-overview ol{grid-template-columns:repeat(2,minmax(0,1fr))}.fs-citations{grid-template-columns:minmax(0,1fr)}.fs-sermon{padding:.7rem .75rem}.fs-passage-note{min-height:0}}
@media(max-width:360px){.fs-lead{grid-template-columns:minmax(0,1fr)}.fs-lead figure{display:flex;align-items:center;gap:.7rem}.fs-lead img{width:4rem;height:5rem}.fs-lead figcaption{margin:0}}
@media(prefers-reduced-motion:reduce){.fadak-sermon *{scroll-behavior:auto!important}}


/* /study-atlas.css */
.ye-course[data-study-level]{max-width:54rem}
.ye-course .ye-verse{background:var(--ye-paper);border:1px solid var(--ye-edge);border-block-start:3px solid var(--ye-teal);border-radius:.45rem .45rem 1.1rem 1.1rem;padding:clamp(.9rem,3vw,1.6rem);margin-block:.7rem 1rem;scroll-margin-block-start:5rem}
.ye-course .ye-verse>.ye-quran,.ye-course .pa-verse .ye-quran{font-size:clamp(1.8rem,4.9vw,2.75rem);line-height:2.08;letter-spacing:normal;word-spacing:normal;text-align:start;margin:.5rem 0 .85rem;overflow-wrap:normal;word-break:normal}
.ye-course .ye-verse .ye-meaning{max-width:66ch;font-size:1.05rem;border-inline-start:2px solid var(--ye-edge);padding-inline-start:.85rem;line-height:1.65}
.ye-course .ye-verse .ye-reference{font-weight:600;font-size:.95rem;justify-content:space-between}
.ye-course .ye-reasoning{margin-block:.65rem 1.15rem}
.ye-course .ye-jumps{margin-block:.5rem}
.ye-course[data-study-level="adult"] .ye-storyboard img,.ye-course[data-study-level="researcher"] .ye-storyboard img{aspect-ratio:4/3;object-fit:cover}
.pa-entry{display:grid;grid-template-columns:minmax(4.7rem,8rem) 1fr;align-items:center;gap:1rem;background:var(--ye-soft);border:1px solid var(--ye-edge);border-radius:.85rem;overflow:hidden;text-decoration:none;margin-block:.3rem .9rem}
.pa-entry img{width:100%;height:6rem;object-fit:cover}.pa-entry strong,.pa-entry small{display:block;padding-inline-end:.7rem}.pa-entry strong{font-size:1.15rem}.pa-entry small{font-size:.9rem;color:var(--ye-muted)}
.pa-names{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10.5rem),1fr));gap:.5rem}.pa-names a{display:grid;align-content:center;padding:.55rem .8rem;border:1px solid var(--ye-edge);border-radius:.5rem;text-decoration:none}.pa-names span{font-size:1.05rem;font-weight:650}.pa-names small{color:var(--ye-muted)}
.pa-rel{border-block-end:1px solid var(--ye-edge);margin:.75rem 0;padding:.35rem 0}.pa-rel summary{font-weight:650;padding:.55rem .15rem}.pa-rel a{display:block;padding:.4rem 0}.pa-rel b[lang=ar]{font-size:1.4rem}
.pa-actions,.pa-turn{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}.pa-actions a,.pa-turn a,.pa-reader-back{display:inline-flex;align-items:center;min-height:44px}
.pa-actions a{font-size:.95rem}.pa-turn{justify-content:space-between;margin-bottom:1rem}.pa-episode p{max-width:68ch}.pa-reader-back{font-weight:650;color:var(--teal,#286759)}
.ye-course .ye-art:empty,.ye-course .ye-diagram:empty{display:none}
@media(max-width:480px){.ye-course .ye-reference{align-items:start}.ye-course .ye-reference label{max-width:100%}.ye-course .ye-jumps button{flex:1 1 auto}.pa-entry{gap:.65rem}}

.ye-step-verse{border-inline-start:.19rem solid var(--ye-teal);padding:.25rem .85rem;margin:.65rem 0 .4rem;background:var(--ye-paper)}
.ye-step-verse p[lang=ar]{font-family:var(--quran-font,"Amiri"),serif;font-size:1.5rem;line-height:1.95;margin:.25rem 0}.ye-step-verse small,.ye-step-verse button{font-size:.87rem}.ye-course .ye-step-verse button{border:0;background:transparent;text-decoration:underline;text-underline-offset:.18em;padding:.2rem 0}

.pa-cue{display:flex;align-items:center;gap:.9rem;margin:1rem 0;color:var(--ye-muted)}.pa-cue img{width:min(40%,10.5rem);height:6.5rem;object-fit:cover;border-radius:.35rem}.pa-cue figcaption{line-height:1.55;font-size:.93rem}


/* /hifdh-palace.css */
.hp-entry,.hp-shell a,.hp-shell button{touch-action:manipulation}
.hp-entry{display:inline-flex;align-items:center;min-height:44px;padding:.35rem .85rem;color:var(--teal,#12645a);font-weight:650;text-underline-offset:.22em}
.hp-shell{--hp-ink:#183f39;--hp-muted:#4a615a;--hp-line:#cad8cc;--hp-ground:#f6f6ee;max-width:780px;margin-inline:auto;color:var(--hp-ink);line-height:1.55;min-width:0}
.hp-shell *{box-sizing:border-box}
.hp-shell header,.hp-reference,.hp-verse-slot,.hp-quiz,.hp-station,.hp-shell>.hp-actions,.hp-nav,.hp-phases,.hp-itinerary{margin-block:.7rem}
.hp-shell h1,.hp-shell h2,.hp-shell h3,.hp-shell p{margin:0;overflow-wrap:break-word;word-break:normal}
.hp-shell h1{font-size:clamp(1.45rem,4.3vw,2rem);line-height:1.35}
.hp-shell h2{font-size:clamp(1.2rem,3.8vw,1.6rem)}
.hp-shell h3{font-size:1.04rem}
.hp-shell[dir=rtl] h1,.hp-shell[dir=rtl] h2,.hp-shell[dir=rtl] h3{line-height:1.75}
.hp-shell a{color:var(--hp-ink);text-underline-offset:.23em;font-weight:650}
.hp-top,.hp-reference,.hp-actions,.hp-nav{display:flex;gap:.45rem .85rem;align-items:center;flex-wrap:wrap}
.hp-top,.hp-nav{justify-content:space-between}
.hp-top>a,.hp-actions>a,.hp-itinerary summary{display:inline-flex;align-items:center;min-height:44px}
.hp-top strong,.hp-reference small{color:var(--hp-muted);font-size:.85rem}
.hp-reference{padding-block:.5rem;border-block-end:1px solid var(--hp-line)}
.hp-reference small{margin-inline-start:auto}
.hp-quran{font-family:'QatrahEdition-hafs','KFGQPC Hafs Uthmanic Script','Amiri Quran','Amiri',serif;font-size:clamp(1.7rem,5.2vw,2.3rem);line-height:2.15;text-align:start}
.hp-verse-slot,.hp-quiz{border-inline-start:4px solid #9c7844;border-radius:0 .7rem .7rem 0;background:var(--hp-ground);padding:.75rem clamp(.7rem,3vw,1.3rem)}
[dir=rtl] .hp-verse-slot,[dir=rtl] .hp-quiz{border-radius:.7rem 0 0 .7rem}
.hp-actions,.hp-phases,.hp-nav,.hp-choices{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.hp-btn,.hp-phases button,.hp-itinerary button{min-height:44px;line-height:1.35;font:inherit;color:var(--hp-ink);background:transparent;border:1px solid var(--hp-line);border-radius:.65rem;padding:.45rem .78rem;cursor:pointer}
.hp-btn.hp-main,.hp-phases button[aria-pressed=true]{background:var(--hp-ink);color:#fff;border-color:var(--hp-ink)}
.hp-btn:disabled{opacity:.46;cursor:default}
.hp-btn[aria-pressed=true]:not(.hp-main){border-color:#4c756b;box-shadow:inset 0 0 0 1px #4c756b}
.hp-choices{flex-direction:column;align-items:stretch}.hp-choices button{text-align:start}
.hp-station{display:grid;grid-template-columns:minmax(108px,.7fr) minmax(0,1.3fr);align-items:center;gap:clamp(.7rem,3vw,1.4rem);padding-block:.55rem;border-block:1px solid var(--hp-line)}
.hp-station p,.hp-recall-prompt,.hp-feedback{font-size:.98rem;line-height:1.65}
.hp-plan{width:100%;height:auto;display:block;max-height:133px}.hp-paper{fill:#f5eddf}.hp-walls{stroke:#988c79;stroke-width:1.7;fill:none}.hp-walk{fill:none;stroke:#51766c;stroke-width:2;stroke-dasharray:3 4}
.hp-plan g circle{fill:#fbfaf4;stroke:#4e6d64;stroke-width:1.4}.hp-plan .hp-walls circle{fill:none;stroke:#988c79}
.hp-plan .hp-active circle{fill:#24594a;stroke:#fff;stroke-width:2.5}.hp-plan text{fill:#1f4c40;text-anchor:middle;font:700 10px system-ui}.hp-plan .hp-active text{fill:#fff}
.hp-itinerary summary,.hp-quiz summary{cursor:pointer;font-weight:600}.hp-quiz summary{padding-block:.6rem}
.hp-itinerary select{display:block;min-height:44px;max-width:100%;font:inherit}
.hp-itinerary ol{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;padding:0}
.hp-itinerary button[aria-current]{border-color:var(--hp-ink);font-weight:bold}
.hp-shell :focus-visible,.hp-entry:focus-visible{outline:3px solid #ab7535;outline-offset:2px}
@media(max-width:410px){.hp-station{grid-template-columns:98px minmax(0,1fr)}.hp-reference small{margin-inline-start:0}.hp-top,.hp-actions,.hp-nav{row-gap:.3rem}}
:is(body.dark,html[data-theme=dark],body[data-theme=dark]) .hp-shell{--hp-ink:#e1eee6;--hp-muted:#c3d0c8;--hp-line:#63766b;--hp-ground:#25382f}
:is(body.dark,html[data-theme=dark],body[data-theme=dark]) .hp-shell :is(.hp-btn.hp-main,.hp-phases button[aria-pressed=true]){background:#315b49;color:#f7fff9;border-color:#70907c}


/* /hadith-stories.css */
.hh-stories,.hh-entry{--hh-action:var(--green,#245b4b);--hh-paper:var(--panel,#faf8ef);--hh-line:var(--line,#b6c6b4);color:var(--ink,#253a34);font-family:var(--font-ui,system-ui,sans-serif);line-height:1.65}
.hh-stories{width:min(100%,48rem);margin-inline:auto;padding-block-end:1.2rem}
.hh-stories :is(h1,h2,h3,p,figure,fieldset),.hh-entry p{margin:0}
.hh-stories h1{font-size:clamp(1.55rem,4.5vw,2.2rem);line-height:1.4;margin:.35rem 0 .4rem}
.hh-stories h2{font-size:clamp(1.15rem,3.4vw,1.5rem);line-height:1.5}
.hh-stories :is(h1,h2,strong){text-wrap:balance}
.hh-stories p,.hh-entry small,.hh-tile span{overflow-wrap:break-word;word-break:normal}
.hh-stories :is(a,button,summary):focus-visible,.hh-entry:focus-visible{outline:3px solid currentColor;outline-offset:2px}
.hh-stories a:not(.hh-tile),.hh-entry{color:var(--hh-action);text-underline-offset:.2em}
.hh-back,.hh-source a{display:inline-flex;min-height:2.75rem;align-items:center;gap:.35rem;font-weight:650}
.hh-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12.2rem),1fr));gap:1rem;margin-block-start:1rem}
.hh-tile,.hh-entry{text-decoration:none}
.hh-tile{display:flex;flex-direction:column;color:inherit;min-width:0;border-radius:1rem;background:var(--hh-paper);border:1px solid var(--hh-line);overflow:hidden}
.hh-tile img,.hh-entry img,.hh-page img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.hh-tile div{padding:.55rem .8rem .8rem}
.hh-tile strong,.hh-entry strong,.hh-entry small,.hh-tile span{display:block}
.hh-tile span,.hh-entry small{font-size:.9rem}
.hh-entry{display:grid;grid-template-columns:clamp(3.5rem,13vw,6rem) minmax(0,1fr) auto;gap:.75rem;align-items:center;padding:.55rem .7rem;background:var(--hh-paper);border-block-end:1px solid var(--hh-line);margin-block:.35rem}
.hh-entry img{border-radius:.5rem}
.hh-page{display:grid;gap:.6rem;margin-block:.6rem}
.hh-page figure{min-width:0}
.hh-page img{border-radius:.85rem;max-block-size:min(40svh,20rem);object-fit:contain;background:var(--hh-paper)}
.hh-counter{color:var(--hh-action);font-size:.85rem;font-weight:700}
.hh-copy>p:last-child{line-height:1.75;margin-block:.3rem}
.hh-controls{display:flex;justify-content:space-between;gap:.55rem;flex-wrap:wrap;margin-block:.8rem}
.hh-control{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.35rem .9rem;border:1px solid var(--hh-line);border-radius:.7rem;font-weight:650;text-decoration:none;text-align:center}
.hh-control.hh-next{border-color:var(--hh-action);margin-inline-start:auto;background:var(--hh-action);color:var(--panel,#fff)}
.hh-quiz{padding-block:.45rem}
.hh-quiz fieldset{border:0;padding:0;min-width:0}
.hh-quiz legend{padding:0;margin:.22rem 0 .45rem}
.hh-quiz button{display:block;width:100%;min-block-size:2.75rem;text-align:start;font:inherit;color:inherit;background:var(--hh-paper);border:1px solid var(--hh-line);border-radius:.6rem;margin-block:.32rem;padding:.4rem .75rem;cursor:pointer}
.hh-quiz [aria-pressed=true]{border-color:var(--hh-action);box-shadow:inset 0 0 0 1px var(--hh-action)}
.hh-quiz [role=status]:not(:empty){padding-block:.35rem;font-weight:600}
.hh-source{border-block:1px solid var(--hh-line);margin-block:.8rem;padding:.2rem .15rem}
.hh-source summary{min-height:2.75rem;align-content:center;padding:.35rem .15rem;font-weight:650;cursor:pointer}
.hh-source p{margin:.25rem 0 .65rem}
.hh-source small{display:block;margin-block-end:.6rem}
.hh-source h3{font-size:1.03rem;margin-block:.8rem .2rem}
.hh-source .hh-ayah{font-family:var(--arabic,serif);font-size:1.28rem;line-height:2;text-align:start}
.hh-source q{font-family:var(--arabic,serif);font-size:1.1rem}
@media(max-width:32rem){.hh-shelf{grid-template-columns:1fr;gap:.6rem}.hh-tile{display:grid;grid-template-columns:minmax(5rem,30%) minmax(0,1fr);align-items:center}.hh-tile img{height:100%;max-height:8rem}.hh-tile div{padding:.55rem .65rem}}
@media(min-width:44rem){.hh-page{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:center;gap:1.3rem}.hh-controls{margin-block:1rem}}

.hh-reading {margin-block:1.2rem .6rem;padding-block:.7rem;border-block-start:1px solid var(--line)}
.hh-reading h3 {font-size:1rem;margin-block:0 .4rem}
.hh-reading .hh-ayah {font:1.5rem/2 var(--arabic,serif);text-align:right}
.hh-reading small {display:block;color:var(--muted)}
.hh-reading-links {display:flex;align-items:center;flex-wrap:wrap;gap:.1rem 1.1rem}
.hh-reading-links a {display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-underline-offset:.18em}

.hh-open-ayah {margin-block:.7rem;border-block-end:1px solid var(--line,#d4dcd6)}
.hh-open-ayah>summary {min-height:44px;padding:.65rem .2rem;font-weight:650;cursor:pointer}


/* /verse-hadith.css */
.vh-shelf,.vh-inline,.vh-entry,.vh-context {
  --vh-ink: #203e37;
  --vh-sub: #4b6259;
  --vh-link: #1d604d;
  --vh-rule: #b8cbbf;
  --vh-fill: #ecf4ec;
  --vh-paper: #fcfcf7;
  color: var(--vh-ink);
}
body.dark :is(.vh-shelf,.vh-inline,.vh-entry,.vh-context) {
  --vh-ink: #edf5e9;
  --vh-sub: #bed0c0;
  --vh-link: #a3dac0;
  --vh-rule: #567064;
  --vh-fill: #253e33;
  --vh-paper: #27352f;
}
.vh-shelf { max-inline-size: 47rem; margin-inline: auto; line-height: 1.65; }
.vh-shelf h1 { margin: .65rem 0 .4rem; font-size: clamp(1.55rem,5vw,2.35rem); line-height: 1.35; text-wrap: balance; }
.vh-shelf[lang=ar] h1 { line-height: 1.65; }
.vh-intro { margin: 0 0 1rem; max-inline-size: 65ch; }
.vh-nav,.vh-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; }
.vh-nav a,.vh-source-link,.vh-inline-link,.vh-count button { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.vh-nav a { gap: .25em; }
.vh-shelf a,.vh-inline a,.vh-count button { color: var(--vh-link); text-decoration: underline; text-underline-offset: .16em; }
.vh-entry { border-inline-start: 3px solid var(--vh-link); }
.vh-filters,.vh-assessment-filter>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem .85rem; }
.vh-filters label,.vh-assessment-filter label { display: block; font-weight: 600; min-inline-size: 0; }
.vh-filters .vh-search,.vh-filters .vh-ref-filter { grid-column: 1 / -1; }
.vh-assessment-filter { margin-block-start: .65rem; }
.vh-assessment-filter>summary { width: fit-content; padding-block: .45rem; cursor: pointer; color: var(--vh-link); }
.vh-filters :is(input[type=search],select),.vh-assessment-filter select { display: block; width: 100%; min-block-size: 2.8rem; border: 1px solid var(--vh-rule); border-radius: .55rem; background: var(--vh-paper); color: var(--vh-ink); font: inherit; font-weight: 400; padding: .28rem .48rem; }
.vh-ref-filter { padding-block: .4rem; }
.vh-shelf input[type=checkbox] { accent-color: var(--vh-link); }
.vh-count { margin: .4rem 0; color: var(--vh-sub); }
.vh-count p { margin: 0; }
.vh-count button { border: 0; background: transparent; font: inherit; padding: .3rem; }
.vh-inline,.vh-coverage { border-block-start: 1px solid var(--vh-rule); padding-block: .2rem; margin-block: .8rem; }
.vh-coverage>summary { padding: .62rem .25rem; cursor: pointer; line-height: 1.65; }
.vh-coverage>summary { font-weight: 700; }
.vh-inline>div { padding-inline-start: .25rem; }
.vh-report { border-block-end: 1px solid var(--vh-rule); color: var(--vh-ink); }
.vh-report-relation,.vh-caption { color: var(--vh-sub); font-size: .9rem; }
.vh-report-body { padding: .15rem .1rem .85rem .1rem; line-height: 1.7; }
.vh-report-body h3 { font: inherit; font-weight: 700; color: var(--vh-ink); margin: .8rem 0 .2rem; }
.vh-report-body p { margin: .25rem 0; }
.vh-report-body .vh-teaching { border-inline-start: 3px solid var(--vh-link); padding: .3rem .8rem .5rem; margin-block: .55rem .9rem; background: var(--vh-fill); border-radius: .3rem; }
.vh-report-body .vh-teaching h3 { margin-block: .15rem .3rem; font-size: .86rem; color: var(--vh-link); }
.vh-report-body .vh-teaching p { font-size: 1.06em; font-weight: 500; }
.vh-report [data-vh-excerpt]:focus-visible { outline: 2px solid var(--vh-link); outline-offset: .3rem; }
.vh-report-body .vh-ref { font-size: .93rem; margin-block: 0 .75rem; }
.vh-report-body blockquote { margin: .4rem 0 1rem; border-inline-start: 3px solid var(--vh-link); padding: .45rem .8rem; background: var(--vh-fill); color: var(--vh-ink); font: 400 clamp(1.12rem,4vw,1.4rem)/1.95 Amiri,serif; }
.vh-witnesses { list-style: none; padding: 0; margin: 0; }
.vh-witnesses li { padding: .6rem .75rem; margin-block: .4rem; border-inline-start: 2px solid var(--vh-rule); }
.vh-witnesses :is(.vh-caption,.vh-book),.vh-witnesses .vh-source-link { display: block; }
.vh-witnesses .vh-source-link { width: fit-content; padding-block: .3rem; min-block-size: 2.55rem; }
.vh-muted { color: var(--vh-sub); font-size: .92rem; }
.vh-coverage dt { font-weight: 700; margin-top: .65rem; }
.vh-coverage dd { margin-inline-start: 0; }
.vh-shelf :focus-visible,.vh-inline :focus-visible { outline: 2px solid var(--vh-link); outline-offset: 2px; }
@media(max-width: 26rem) { .vh-filters,.vh-assessment-filter>div { grid-template-columns: minmax(0,1fr); } }

.vh-filters .vh-numbering { grid-column: 1 / -1; }
.vh-shelf [hidden] { display: none; }
.vh-assessments { border-block-start: 1px solid var(--vh-rule); margin-block-start: .75rem; }
.vh-assessments > summary { padding-block: .65rem; cursor: pointer; font-weight: 650; }
.vh-report [data-vh-excerpt] { user-select: all; }
.vh-citation { display:block; overflow-wrap:anywhere; }
.vh-report-body .vh-relation { margin-block:.7rem; }
.vh-other-ayahs > summary { padding-block: .65rem; cursor: pointer; }

.vh-report-links { display:flex; flex-wrap:wrap; gap:.25rem 1rem; margin-block:.6rem; }
.vh-report-links a,.vh-passage-record { display:inline-block; padding-block:.35rem; text-underline-offset:.18em; }
.vh-passage-record { color:var(--pr-link,currentColor); font-weight:600; }
/* Keep the source words, their optional annotation and the evidence in one flow. */
.vh-report-body .vh-reading-block { margin-block: 1rem .2rem; min-inline-size: 0; }
.vh-report-body .vh-excerpt-label { margin: 0; color: var(--vh-link); font-size: .85rem; font-weight: 700; }
.vh-report-body .vh-speaker { margin-block: .1rem .25rem; color: var(--vh-sub); font-size: .9rem; }
.vh-report-body .vh-reading-block blockquote { margin-block: .3rem .4rem; }
.vh-report-body .vh-reading-block .vh-reading-note { margin-block: .4rem .65rem; }
.vh-report-body .vh-assessments { margin-block: .35rem .8rem; border-block: 1px solid var(--vh-rule); }
.vh-assessments > summary { min-block-size: 2.75rem; padding: .65rem .25rem; }
.vh-source-brief { display: flex; flex-wrap: wrap; gap: .15rem .55rem; color: var(--vh-sub); font-size: .875rem; font-weight: 400; line-height: 1.55; overflow-wrap: anywhere; }
.vh-source-grade { color: var(--vh-sub); font-weight: 400; }
.vh-report .vh-reading-note > summary:focus-visible,.vh-assessments > summary:focus-visible { outline: 2px solid var(--vh-link); outline-offset: 3px; }
@media (forced-colors: active) { .vh-source-grade { color: CanvasText; } }

/* v105: keep the explanation, source words and optional research at distinct weights. */
.vh-report-body .vh-teaching {
  margin-block: .5rem .9rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.vh-report-body .vh-teaching h3 { color: var(--vh-sub); font-weight: 600; }
.vh-report-body .vh-teaching p { font-size: 1.06em; font-weight: 600; line-height: 1.75; }
.vh-report-body .vh-relation h3 { color: var(--vh-sub); font-size: .9rem; font-weight: 600; }
.vh-report-body .vh-relation p { font-size: .96em; }
.vh-report-body blockquote { background: transparent; border-inline-start-color: var(--vh-rule); }
.vh-report-body .vh-reading-block { margin-block: 1.2rem .25rem; }
.vh-report-body .vh-reading-block blockquote { padding-block: .2rem; }
.vh-report-body .vh-assessments { border-block-end: 0; }
.vh-related-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .2rem;
  margin-block: .4rem;
  min-block-size: 2.75rem;
  border-block-start: 1px solid var(--vh-rule);
  color: var(--vh-link);
  text-decoration: none;
}
.vh-related-entry>span { display: grid; gap: .2rem; min-inline-size: 0; }
.vh-related-entry strong { font-size: .98rem; text-decoration: underline; text-underline-offset: .2em; }
.vh-related-entry :is(span>span,small) { color: var(--vh-sub); font-size: .88rem; line-height: 1.65; }
.vh-related-entry>svg { flex: 0 0 auto; inline-size: 1.15rem; block-size: 1.15rem; }
.vh-related-entry:focus-visible { outline: 2px solid var(--vh-link); outline-offset: 3px; }
.vh-related-entry:hover strong { text-decoration-thickness: 2px; }
.vh-scope-note { margin: 0; color: var(--vh-sub); font-size: .92rem; line-height: 1.7; }
@media (forced-colors: active) {
 .vh-related-entry { border-color: CanvasText; }
 .vh-related-entry strong { color: LinkText; }
}

/* v107: narration is always visible; detailed provenance stays secondary. */
.vh-report { padding-block: .8rem .35rem; }
.vh-report-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.vh-report .vh-report-title { margin: 0; font-size: 1.12rem; font-weight: 650; line-height: 1.55; text-wrap: balance; }
.vh-report-title:focus-visible { outline: 2px solid var(--vh-link); outline-offset: 3px; }
.vh-group-title { margin: .4rem 0; font-size: 1.08rem; font-weight: 650; line-height: 1.65; }
.vh-report-body .vh-reading-block { margin-block: .5rem .4rem; }
.vh-report-body .vh-teaching { margin-block: .4rem .45rem; }
.vh-report-body .vh-teaching p { font-size: 1em; font-weight: 500; }
.vh-report-body .vh-relation { margin-block: .4rem .6rem; }
.vh-relation-label { color: var(--vh-sub); font-size: .9em; }
.vh-report-body .vh-assessments { margin-block: .1rem .35rem; border: 0; }
.vh-assessments > summary { width: fit-content; padding: .3rem .1rem; min-block-size: 2.25rem; color: var(--vh-link); font-size: .875rem; font-weight: 500; }
.vh-witnesses li { padding: .4rem .55rem; margin-block: .2rem; font-size: .9rem; }
.vh-report-links { margin-block: .25rem; gap: .1rem .85rem; font-size: .9rem; }
.vh-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-block: 1rem; }
.vh-pagination button { min-block-size: 2.75rem; padding: .4rem .8rem; border: 1px solid var(--vh-rule); border-radius: .4rem; background: var(--vh-paper); color: var(--vh-link); font: inherit; cursor: pointer; }
.vh-pagination button:disabled { opacity: .55; cursor: default; }
.vh-pagination span { color: var(--vh-sub); font-size: .9rem; }

.vh-full-report{margin-block:1.25rem;padding-block-start:1rem;border-top:1px solid var(--line,#dce7dd)}
.vh-full-report h3{font-size:1rem;margin:0 0 .75rem}
.vh-full-report blockquote{white-space:pre-line;overflow-wrap:anywhere;max-width:100%}

/* Lesson annotations are part of the reading, with no extra disclosure. */
.vh-report[data-vh-surface="lesson"] { padding-block: 1rem .7rem; }
.vh-report[data-vh-surface="lesson"] .vh-report-relation {
  color: var(--learn-source,var(--vh-link));
  font-size: .8rem;
  background: var(--learn-source-tint,var(--vh-fill));
  border-radius: .35rem;
  padding: .1rem .4rem;
}
.vh-report[data-vh-surface="lesson"] .vh-reading-block blockquote {
  border-inline-start: 3px solid var(--vh-rule);
  background: var(--vh-paper);
  padding: .5rem .8rem;
  border-radius: .35rem;
}
.vh-report-body .vh-lesson-note { margin-block: .6rem .75rem; }
.vh-report-body .vh-lesson-note h4 {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  color: var(--learning-pencil);
  font: inherit;
  font-weight: 650;
  margin: 0 0 .2rem;
  line-height: 1.65;
}
.vh-lesson-note h4 .le-icon { align-self: center; margin: 0; }
.vh-report-body .vh-lesson-note p { margin: .2rem 0; font-size: .97em; }
@media (forced-colors: active) {
  .vh-report[data-vh-surface="lesson"] .vh-report-relation { color: CanvasText; background: Canvas; border: 1px solid CanvasText; }
  .vh-report-body .vh-lesson-note h4 { color: CanvasText; }
}

/* v114: one reading flow, one primary report action, optional study context. */
.vh-report .vh-report-links { display: inline-flex; vertical-align: middle; margin: .35rem .7rem .35rem 0; }
[dir="rtl"] .vh-report .vh-report-links { margin-inline: 0 .7rem; }
.vh-report-links > a { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding: .35rem .65rem; border: 1px solid var(--vh-rule); border-radius: .4rem; color: var(--vh-link); font-weight: 650; }
.vh-report .vh-assessments:not([open]) { display: inline-block; vertical-align: middle; }
.vh-report .vh-assessments > summary { min-block-size: 2.75rem; padding-block: .55rem; }
.vh-report .vh-assessments[open] { display: block; }
.vh-editorial-context { padding-block: .15rem .35rem; }
.vh-report-body .vh-editorial-context .vh-teaching { padding: 0; margin-block: .35rem; border: 0; background: none; }
.vh-report-body .vh-editorial-context .vh-teaching p { font-size: .95em; font-weight: 400; }
.vh-study-links { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-block: .4rem; }
.vh-study-links > a { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding-block: .35rem; font-size: .9rem; }
.vh-report-links > a:focus-visible,.vh-study-links > a:focus-visible { outline: 2px solid var(--vh-link); outline-offset: 3px; }
@media (forced-colors: active) { .vh-report-links > a { color: LinkText; border-color: ButtonText; } }

/* v116: browsing is a quiet preview; the narration and learning tools remain one tap away. */
.vh-report-compact { padding-block: .85rem .55rem; }
.vh-report-compact .vh-report-header { display: block; }
.vh-report-compact .vh-report-relation { display: block; margin-block-start: .1rem; font-size: .875rem; }
.vh-report-compact .vh-reading-block { margin-block: .5rem .3rem; }
.vh-report-compact .vh-excerpt-label { font-size: .8125rem; font-weight: 400; color: var(--vh-sub); }
.vh-report-compact .vh-reading-block blockquote { border: 0; padding: 0; font-size: 1.2rem; line-height: 1.9; }
.vh-report-compact .vh-reading-block blockquote,
.vh-report-compact .vh-excerpt-meaning,
.vh-report-compact .vh-report-body > .vh-teaching p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vh-report-compact .vh-excerpt-meaning { font-size: 1rem; line-height: 1.65; }
.vh-report-compact .vh-report-body > .vh-teaching p { font-size: 1rem; font-weight: 400; color: var(--vh-sub); }
.vh-report-compact .vh-source-brief { margin-block: .4rem .2rem; font-size: .8125rem; gap: 0 .5rem; }
.vh-report-compact .vh-report-links { font-size: .875rem; margin-block: .2rem; }
.vh-report-compact .vh-report-links > a { padding-inline: 0; border: 0; font-weight: 650; }
.vh-report-compact .vh-assessments > summary { font-size: .875rem; color: var(--vh-sub); }
.vh-report-compact .vh-assessments[open] { margin-block-start: .5rem; padding: .65rem .85rem; border-radius: .65rem; background: var(--vh-fill); }
.vh-report-compact:has(.vh-assessments[open]) .vh-reading-block blockquote,
.vh-report-compact:has(.vh-assessments[open]) .vh-excerpt-meaning,
.vh-report-compact:has(.vh-assessments[open]) .vh-report-body > .vh-teaching p { display: block; overflow: visible; }
.vh-report-compact .vh-assessments .narration-transliteration { margin-block: .25rem .6rem; }
@media print { .vh-report-compact .vh-reading-block blockquote,.vh-report-compact .vh-excerpt-meaning,.vh-report-compact .vh-report-body > .vh-teaching p { display: block; overflow: visible; } }

/* v129 · One teaching, a clear speaker, then its Quranic connection. */
.vh-ayah-context{margin:10px 0 16px;border:1px solid var(--vh-rule);border-radius:12px;background:var(--vh-fill);overflow:hidden}
.vh-ayah-context>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-block-size:48px;padding:10px 14px;color:var(--vh-link);font-size:.9rem;font-weight:700;list-style:none;cursor:pointer}
.vh-ayah-context>summary::-webkit-details-marker{display:none}
.vh-ayah-context>summary>span:last-child{display:grid;place-items:center;inline-size:24px;block-size:24px;flex-shrink:0;border:1px solid var(--vh-rule);border-radius:50%;font-size:18px;line-height:1;transition:transform .15s}
.vh-ayah-context[open]>summary>span:last-child{transform:rotate(45deg)}
.vh-ayah-context [data-vh-quran]{padding:0 12px 12px}
@media(prefers-reduced-motion:reduce){.vh-ayah-context>summary>span:last-child{transition:none}}
.vh-report{margin:18px 0;padding:18px 20px;border:1px solid var(--vh-rule);border-radius:18px;background:var(--vh-paper);box-shadow:0 3px 12px #193d2e05}
.vh-report-header{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:10px;align-items:start;margin-bottom:12px}
.vh-report-symbol{display:grid;place-items:center;grid-row:1 / 3;width:38px;height:38px;border-radius:12px;background:var(--vh-fill);color:var(--vh-link)}
.vh-report-symbol:empty{display:none}
.vh-report-symbol svg{stroke-width:2}
.vh-report-header .vh-report-title{margin:0!important;font-size:1.15rem!important;font-weight:780;line-height:1.45;letter-spacing:-.01em}
.vh-report-relation{grid-column:2;font-size:.75rem;line-height:1.5;margin-top:4px;color:var(--vh-link);font-weight:650}
.vh-reading-block{margin-top:3px}
.vh-report .vh-excerpt-label{font-size:.75rem;line-height:1.65;color:var(--vh-sub);margin-bottom:8px}
.vh-report .vh-speaker{font-size:.9375rem;font-weight:700;line-height:1.6;margin-bottom:9px}
.vh-report [data-vh-excerpt]{border:0;padding:0;font-size:1.65rem;line-height:2;max-width:100%;margin:8px 0 13px;text-wrap:pretty}
.vh-report .vh-excerpt-meaning{font-size:1rem;line-height:1.85;color:var(--vh-ink);padding:0 0 6px;margin:0}
.vh-reading-context{margin:8px 0 0;padding-top:6px;border-top:1px solid var(--vh-rule)}
.vh-reading-context>summary{cursor:pointer;font-size:.875rem;font-weight:650;min-height:40px;display:flex;align-items:center;color:var(--vh-link)}
.vh-reading-context>summary::after{content:'+';margin-inline-start:auto;padding-inline-start:12px;font-size:1.2rem}
.vh-reading-context[open]>summary::after{content:'−'}
.vh-reading-context .vh-relation{font-size:.9375rem;line-height:1.8}
.vh-practice-actions{display:flex;gap:12px;margin-top:3px}
.vh-practice-actions>a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-weight:700;font-size:.875rem;text-decoration:none}
.vh-practice-source{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:0 12px;border-top:1px solid var(--vh-rule);margin-top:8px;padding-top:5px;font-size:.75rem;line-height:1.7;color:var(--vh-sub)}
.vh-practice-source>a{display:inline-flex;align-items:center;min-height:36px;font-size:.75rem;font-weight:550}
.vh-shelf .vh-subject-filter{grid-column:1/-1;max-width:18rem}
.vh-reading-context summary:focus-visible{outline:3px solid var(--vh-link);outline-offset:3px}
@media(max-width:560px){.vh-report{padding:15px 14px;border-radius:15px;margin-block:14px}.vh-report-header{grid-template-columns:34px minmax(0,1fr);gap:2px 9px}.vh-report-symbol{width:34px;height:34px;border-radius:10px}.vh-report-header .vh-report-title{font-size:1.0625rem!important}.vh-report [data-vh-excerpt]{font-size:1.5rem;line-height:2}.vh-report .vh-excerpt-meaning{font-size:.9375rem}.vh-practice-source{align-items:flex-start;flex-direction:column;gap:0}}

/* v131: the selected narration owns the page title and first reading position. */
.vh-shelf[data-vh-view=record]{max-inline-size:46rem}
.vh-record-kicker{font-size:.75rem;line-height:1.6;color:var(--vh-sub);margin:4px 0 2px}
.vh-shelf[data-vh-view=record] .vh-nav{font-size:.8125rem;gap:0 15px;border-block-end:1px solid var(--vh-rule);margin-bottom:10px}
.vh-shelf[data-vh-view=record] .vh-report{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;margin:8px 0 16px}
.vh-shelf[data-vh-view=record] .vh-report-header{grid-template-columns:38px minmax(0,1fr);gap:3px 10px;margin-bottom:12px}
.vh-shelf[data-vh-view=record] .vh-report-title{font-size:clamp(1.35rem,4vw,1.85rem)!important;line-height:1.45;font-weight:780;letter-spacing:-.02em}
.vh-shelf[data-vh-view=record][lang=ar] .vh-report-title{letter-spacing:0;line-height:1.65}
.vh-shelf[data-vh-view=record] .vh-report-body{padding:0}
.vh-shelf[data-vh-view=record] .vh-excerpt-label{margin:0 0 4px;font-size:.75rem;font-weight:500}
.vh-shelf[data-vh-view=record] .vh-speaker{margin:0 0 9px;font-size:.875rem;font-weight:600}
.vh-shelf[data-vh-view=record] [data-vh-excerpt]{font-size:clamp(1.5rem,4vw,1.9rem);line-height:2;margin:8px 0 13px;user-select:text}
.vh-shelf[data-vh-view=record] .vh-teaching{margin:10px 0 14px}
.vh-shelf[data-vh-view=record] .vh-teaching p{font-size:1rem;line-height:1.85;font-weight:400}
.vh-shelf[data-vh-view=record] .vh-teaching .vh-meaning-label{font-size:.75rem;line-height:1.65;font-weight:650;color:var(--vh-link);margin-bottom:5px}
.vh-shelf[data-vh-view=record] .vh-excerpt-meaning{font-size:1rem;line-height:1.85;padding-bottom:8px}
.vh-shelf[data-vh-view=record] [data-vh-pronunciation]{margin-top:12px}
.vh-shelf[data-vh-view=record] .narration-transliteration{font-size:.875rem;line-height:1.8}
.vh-reading-ayahs{margin:17px 0 8px}
.vh-reading-ayahs>a{display:flex;align-items:center;gap:10px;min-height:52px;padding:9px 12px;border:1px solid var(--vh-rule);border-radius:11px;background:var(--vh-fill);font-size:.875rem;font-weight:700;text-decoration:none}
.vh-reading-ayahs>a>span{flex:1;min-width:0}
.vh-reading-ayahs svg{flex:none}
.vh-shelf[dir=rtl] .vh-reading-ayahs>a>svg:last-child{transform:rotate(180deg)}
.vh-shelf[data-vh-view=record] .vh-ayah-context{margin-top:10px}
.vh-shelf[data-vh-view=record] .vh-practice-source{margin-top:15px}
@media(max-width:360px){.vh-shelf[data-vh-view=record] .vh-report-header{grid-template-columns:32px minmax(0,1fr);gap:3px 9px}.vh-shelf[data-vh-view=record] .vh-report-symbol{width:32px;height:32px}.vh-shelf[data-vh-view=record] .vh-report-title{font-size:1.3rem!important}}

/* Verse-linked lists begin with reports; optional tools retain their live nodes. */
.vh-shelf[data-vh-view=ayah-list]>h1{margin:8px 0 2px;font-size:clamp(1.5rem,4vw,2rem);line-height:1.4}
.vh-ayah-place{margin:0 0 8px;font-size:.875rem;line-height:1.6;color:var(--vh-sub)}
.vh-shelf[data-vh-view=ayah-list]>.vh-ayah-context{margin:8px 0}
.vh-shelf[data-vh-view=ayah-list] .vh-ayah-context>summary{box-sizing:border-box;min-block-size:48px;padding:9px 12px;font-size:.875rem}
.vh-find-reports{margin:0 0 8px;border:1px solid var(--vh-rule);border-radius:12px;background:var(--vh-paper)}
.vh-find-reports>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;min-block-size:48px;padding:9px 12px;color:var(--vh-link);font-size:.875rem;font-weight:700;list-style:none;cursor:pointer}
.vh-find-reports>summary::-webkit-details-marker{display:none}
.vh-find-reports>summary>span:last-child{display:grid;place-items:center;inline-size:24px;block-size:24px;flex:none;border:1px solid var(--vh-rule);border-radius:50%;font-size:18px;line-height:1}
.vh-find-reports[open]>summary>span:last-child{transform:rotate(45deg)}
.vh-find-reports [data-vh-filter-status]{display:block;font-size:.75rem;line-height:1.5;font-weight:500;color:var(--vh-sub)}
.vh-find-reports [data-vh-filter-status]:empty{display:none}
.vh-find-body{padding:2px 12px 10px}
.vh-find-body [data-vh-reset]{display:inline-flex;align-items:center;min-block-size:44px;border:0;background:none;padding:4px 0;color:var(--vh-link);font:inherit;font-size:.875rem;text-decoration:underline;text-underline-offset:.16em}
.vh-shelf[data-vh-view=ayah-list] .vh-count{margin:8px 0 0;font-size:.8125rem}
.vh-list-return{margin-top:18px;border-top:1px solid var(--vh-rule);font-size:.8125rem;gap:0 16px}


/* /learning-ayah.css */
.learning-ayah {
  min-inline-size:0;
  margin-block:.55rem 1.25rem;
  padding:clamp(.95rem,3.2vw,1.8rem);
  background:var(--panel);
  color:var(--ink);
  border-block:1px solid var(--line);
  border-inline-start:3px solid var(--green);
}
.learning-ayah.la-inline {margin:0;padding:0;background:transparent;border:0}
.learning-ayah .la-ref {display:flex;align-items:baseline;gap:.3rem .8rem;flex-wrap:wrap;margin:0 0 .4rem;color:var(--green);font:inherit;font-size:.96rem;line-height:1.65}
.learning-ayah .la-ref span {color:var(--muted)}
.learning-ayah blockquote.la-text {
  margin:0;padding:0;border:0;background:transparent;color:var(--ink);text-align:start;
  font-family:'QatrahEdition-hafs','Amiri',serif;font-weight:400;font-style:normal;
  font-size:clamp(1.65rem,4.7vw,2.3rem);line-height:2.15;letter-spacing:normal;word-spacing:normal;
  white-space:normal;overflow-wrap:normal;word-break:normal;
}
.learning-ayah .la-meaning {margin:.6rem 0 0;font:inherit;font-size:1rem;line-height:1.65;color:var(--muted)}
.learning-ayah .la-meaning cite {font-size:.875rem}
.la-loading {font:inherit;line-height:1.65;color:var(--muted)}
.la-loading button,.la-loading a{min-height:44px;color:var(--green)}
.lesson-index .li-ayah-group {display:block;min-inline-size:0;padding:0;margin-block:.8rem 1.35rem}
.lesson-index .li-ayah-group h2 {margin:0;border-block-end:1px solid var(--line);padding:0;line-height:1.5}
.lesson-index .li-ayah-group .li-verse {font:inherit;font-size:1.03rem;gap:.4em;align-items:baseline;display:inline-block;padding-block:.65rem}
.lesson-index .li-ayah-group li {border:0;padding:.25rem .1rem}
.lesson-index .li-ayah-group li+li {border-block-start:1px solid var(--line)}


/* /learning-emphasis.css */
/* Words use a warm marker; actions keep a persistent, recognisable underline. */
:root{--learning-mark:#f7e6ad;--learning-mark-ink:#352b14;--learning-pencil:#76551c;--learning-paper:#fffaf0}
[data-theme=dark],.dark{--learning-mark:#5a4821;--learning-mark-ink:#fff1c2;--learning-pencil:#e6c787;--learning-paper:#29271e}
.le-key{background:var(--learning-mark);color:var(--learning-mark-ink);font:inherit;padding:0 .025em;border-radius:.12em;text-decoration:underline dotted;text-decoration-color:var(--learning-pencil);text-decoration-thickness:1.5px;text-underline-offset:.22em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.le-term{font:inherit;font-weight:750;color:inherit;background:linear-gradient(transparent 72%,var(--learning-mark) 72%);text-decoration:underline;text-decoration-color:var(--learning-pencil);text-decoration-thickness:1.5px;text-underline-offset:.2em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.le-icon{display:inline-block;inline-size:1.1em;block-size:1.1em;flex:0 0 1.1em;vertical-align:-.15em;pointer-events:none;margin-inline-end:.4em}
.le-caption{display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .45rem;margin:.65rem 0 0;color:var(--muted);font:inherit;font-size:.9rem;line-height:1.65}
.le-caption strong{color:var(--learning-pencil);font-weight:650}
.le-caption .le-icon{margin:0;align-self:center;color:var(--learning-pencil)}
.verse-discovery .le-annotation{margin:.7rem 0 1rem;border:1px solid var(--line);border-inline-start:3px solid var(--learning-pencil);border-radius:.65rem .3rem .6rem .3rem;background:var(--learning-paper);color:var(--ink);min-inline-size:0}
.verse-discovery .le-annotation>summary{min-block-size:44px;padding:.65rem .85rem;color:var(--learning-pencil);font:inherit;font-weight:650;line-height:1.6;cursor:pointer}
.verse-discovery .le-annotation[open]>summary{border-block-end:1px dashed var(--line)}
.le-annotation-body{padding:.15rem .85rem .65rem}
.le-annotation-body>p{margin:.55rem 0;font:inherit;line-height:1.8}
.le-annotation-actions{display:flex;flex-wrap:wrap;gap:.35rem 1rem;align-items:center}
.verse-discovery .le-annotation-actions :is(button,a){min-block-size:44px;padding:.35rem .15rem;border:0;background:transparent;color:var(--green);font:inherit;font-size:.95rem;line-height:1.6;text-align:start;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer}
.verse-discovery .vd-section-nav .le-icon{color:var(--green);margin-inline-end:.35em}
.verse-discovery .vd-main-point h5 .le-icon{color:var(--green)}
.verse-discovery .vd-compare .vd-connection-question{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.verse-discovery .vd-compare a:hover .vd-connection-question{text-decoration-thickness:2px}
.verse-discovery .vd-keyword bdi{line-height:2}
:is(.verse-discovery,.reading-skills,.learning-ayah,.vh-context,.verse-hadith) a{text-underline-offset:.2em;text-decoration-thickness:1px}
.reading-skills .rs-passage-action{display:flex;align-items:center;gap:.4rem;margin-block:.15rem .65rem}
.reading-skills .rs-passage-action a{font-size:.95rem;text-decoration:underline}
.reading-skills .rs-passage-action .le-icon{color:var(--green)}
.learning-ayah .la-action{display:inline-flex;align-items:center;min-block-size:44px;margin-block:.3rem 0;color:var(--green);font:inherit;font-size:.95rem;line-height:1.6;text-decoration:underline}
.learning-ayah .la-ref a{color:var(--green);text-decoration:underline}
.verse-discovery .le-annotation :is(summary,button,a):focus-visible,.learning-ayah a:focus-visible{outline:3px solid var(--focus-ring,var(--ink));outline-offset:3px}
@media(forced-colors:active){.le-key{background:Mark;color:MarkText;text-decoration:underline;text-decoration-color:currentColor}.verse-discovery .le-annotation{background:Canvas;color:CanvasText;border-color:CanvasText}.verse-discovery .le-annotation>summary,.le-caption strong{color:CanvasText}}
/* The same three signals identify an explanation, a connected lesson and a source. */
:root{--learn-guide:#815811;--learn-guide-tint:#fff3d5;--learn-lesson:#175d50;--learn-lesson-tint:#e5f3ed;--learn-source:#665080;--learn-source-tint:#f1ebf8}
.dark,[data-theme=dark]{--learn-guide:#f3d38e;--learn-guide-tint:#3c321d;--learn-lesson:#a6dec8;--learn-lesson-tint:#203b31;--learn-source:#d3bdf1;--learn-source-tint:#332b40}
[data-lesson-kind],[data-sp-kind]{--lesson-accent:var(--learn-lesson);--lesson-tint:var(--learn-lesson-tint)}
[data-lesson-kind=guide],[data-sp-kind=meaning]{--lesson-accent:var(--learn-guide);--lesson-tint:var(--learn-guide-tint)}
[data-lesson-kind=hadith],[data-lesson-kind=picture],[data-sp-kind=evidence]{--lesson-accent:var(--learn-source);--lesson-tint:var(--learn-source-tint)}
.learning-ayah .la-compact-passage>summary{display:grid;gap:.25rem;cursor:pointer;min-height:44px;padding:.5rem 0}
.learning-ayah .la-compact-passage>summary>span[lang=ar]{font:normal 1.8rem/1.9 var(--quran-font,Amiri,serif);color:var(--ink)}
.learning-ayah .la-compact-label{font-size:.94rem;color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:.2em}
.learning-ayah .la-compact-passage[open]>summary>span[lang=ar]{display:none}
.learning-ayah .la-compact-passage>summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.vh-reading-note{margin:1rem 0;padding:.75rem 1rem;border-inline-start:3px solid var(--learning-pencil);border-radius:.2rem .7rem .7rem .2rem;background:var(--learning-paper);color:var(--ink)}
.vh-reading-note>summary{cursor:pointer;min-block-size:44px;display:flex;align-items:center;gap:.35rem;color:var(--learning-pencil);font-size:1rem;font-weight:750}
.vh-reading-note p{margin:.5rem 0 .25rem;line-height:1.8}
.vh-reading-note .vh-note-phrase{display:block;margin-top:.15rem;font:normal 1.4rem/1.9 var(--quran-font,Amiri,serif);color:var(--ink);text-decoration:underline wavy;text-decoration-thickness:1px;text-decoration-color:var(--learning-pencil);text-underline-offset:.25em}
.vh-reading-note summary::after{content:'+';margin-inline-start:auto;font-size:1.25rem;font-weight:400}
.vh-reading-note[open] summary::after{content:'−'}
@media(forced-colors:active){.le-term{text-decoration:underline;background:none}.vh-reading-note{border-color:CanvasText;background:Canvas}.vh-reading-note>summary{color:CanvasText}}


/* /children-home.css */
.children-home{max-width:1020px;margin:auto;color:var(--ink)}
.children-home .today-heading h1{max-width:680px;font-size:clamp(28px,4.6vw,42px);line-height:1.25;text-wrap:balance}
.children-home .today-heading p{font-size:16px;line-height:1.8}
.children-welcome{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:16px 28px;align-items:center;padding:28px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(120deg,#edf6ed,#fff4e5);margin:20px 0}
.children-welcome-label{color:#725317;font-size:11px;font-weight:800;letter-spacing:.07em;line-height:1.6}
.children-welcome h2{font-size:clamp(24px,3.4vw,32px);line-height:1.3;margin:10px 0;color:#204b37}
.children-welcome p{font-size:16px;line-height:1.85;color:#405e50;margin:0;max-width:560px}
.children-welcome img{width:180px;height:160px;object-fit:contain;max-width:100%}
.children-start{grid-column:1/-1;justify-content:center;min-height:54px;font-size:16px;text-decoration:none;gap:10px}
.children-home svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.children-start svg{width:22px;height:22px}
.children-home-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 28px}
.children-home-options>a,.children-home-options>button{display:flex;align-items:center;gap:15px;min-width:0;text-align:start;text-decoration:none;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--ink);padding:20px;min-height:102px;font:inherit}
.children-home-options svg{height:29px;width:29px;flex-shrink:0;color:var(--green)}
.children-home-options strong,.children-home-options small{display:block}
.children-home-options strong{font-size:17px;line-height:1.5}
.children-home-options small{font-size:13px;line-height:1.8;color:var(--muted);margin-top:4px}
.children-grownups{padding:0 20px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.children-grownups summary{font-size:14px;font-weight:700;min-height:54px;align-content:center;cursor:pointer}
.children-grownups p{font-size:14px;line-height:1.9;color:var(--muted)}
.children-grownups>div{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:20px}
.children-grownups .btn{min-height:44px}
.dark .children-welcome{background:linear-gradient(120deg,#213d32,#3c3422)}
.dark .children-welcome h2{color:#eff7df}.dark .children-welcome p{color:#d0ddca}.dark .children-welcome-label{color:#edd18f}
[dir=rtl] .children-welcome-label{letter-spacing:0}
[dir=rtl] .children-home .today-heading h1{line-height:1.65}
@media(max-width:600px){.children-welcome{grid-template-columns:minmax(0,1fr) 110px;padding:20px;gap:14px}.children-welcome img{width:110px;height:130px}.children-welcome h2{font-size:25px}.children-welcome p{grid-column:1/-1;font-size:15px;line-height:1.9}.children-welcome-label{font-size:12px}.children-home-options{grid-template-columns:1fr;gap:10px}.children-home-options>a,.children-home-options>button{padding:16px;min-height:88px}.children-home-options strong{font-size:16px}.children-home .today-heading p{font-size:15px}}
@media(max-width:360px){.children-welcome{grid-template-columns:minmax(0,1fr) 84px;padding:16px;gap:12px}.children-welcome img{width:84px;height:115px}.children-welcome h2{font-size:22px}.children-welcome p{font-size:15px}.children-start{font-size:14px}}
/* v54: one picture, one path. Secondary and grown-up actions stay separate. */
body[data-profile="kids"]:not(.dark){--bg:#fff8e9;--panel:#fffefa;--ink:#203649;--muted:#4b6068;--green:#176453;--line:#d8dfd4;--pale:#eaf3eb;--light:#f5f1e6;--reading-paper:#fffefa;--reading-hint:#edf4e9;}
body[data-profile="kids"] .mobile-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-top:2px solid var(--line);}
body[data-profile="kids"] .mobile-nav button{min-height:60px;border-radius:16px;padding:8px 3px;}
body[data-profile="kids"] .mobile-nav button.active{background:var(--green);color:var(--on-accent,#fff);}
body[data-profile="kids"] .mobile-nav button span{font-size:12px;font-weight:750;line-height:1.45;}
.children-home .children-welcome-v54{border:0;border-radius:0;background:transparent;box-shadow:none;margin:0 0 22px;padding:6px 2px 0;grid-template-columns:minmax(0,1fr) 150px;gap:18px;}
.children-welcome-v54 h1{font:800 clamp(30px,4vw,46px)/1.15 var(--font-ui);letter-spacing:-.035em;margin:10px 0 12px;color:var(--ink);max-width:620px;text-wrap:balance;}
.children-welcome-v54 .children-welcome-label{display:inline-block;border-radius:30px;background:var(--panel);border:1px solid var(--line);padding:5px 11px;color:var(--green);font-size:12px;letter-spacing:.06em;}
.children-welcome-v54 p{font-size:17px;line-height:1.7;color:var(--muted);}
.children-welcome-v54 img{width:150px;height:145px;object-fit:contain;}
.children-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.children-path{--path-accent:#a14b35;--path-paper:#fff0dc;position:relative;display:flex;flex-direction:column;overflow:hidden;min-width:0;text-decoration:none;color:var(--ink);background:var(--panel);border:2px solid var(--path-accent);border-radius:26px;box-shadow:0 6px 0 color-mix(in srgb,var(--path-accent) 24%,transparent);transition:transform .16s,box-shadow .16s;}
.children-path[data-child-path="quran"]{--path-accent:#16755e;--path-paper:#e7f5e9;}
.children-path[data-child-path="stories"]{--path-accent:#6850a0;--path-paper:#f1eafd;}
.children-path>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:var(--path-paper);}
.children-path-copy{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px 8px;padding:20px 18px 24px;min-width:0;}
.children-path-step{display:grid;place-items:center;align-self:start;min-width:27px;min-height:27px;border-radius:50%;background:var(--path-paper);color:var(--path-accent);font-size:13px;font-weight:800;line-height:1;}
.children-path-copy strong{font-size:22px;line-height:1.3;font-weight:800;letter-spacing:-.02em;}
.children-path-copy small{grid-column:2;color:var(--muted);font-size:14px;line-height:1.6;}
.children-path-arrow{display:grid;place-items:center;align-self:flex-end;margin:auto 18px 18px;width:40px;height:40px;border-radius:50%;background:var(--path-accent);color:#fff;font-size:24px;font-weight:700;}
.children-path:hover{transform:translateY(-3px);box-shadow:0 9px 0 color-mix(in srgb,var(--path-accent) 24%,transparent);}
.children-home-secondary{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:24px 0 30px;}
.children-home-secondary>a,.children-home-secondary>button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:10px 15px;color:var(--green);font:700 14px/1.5 var(--font-ui);text-decoration:none;}
.children-home-secondary svg{width:21px;height:21px;flex:none;}
.children-home-secondary bdi{font-size:13px;}
.children-home .children-grownups{margin-top:16px;border:1px dashed var(--control-line);border-radius:16px;background:transparent;}
.children-home .children-grownups summary{font-size:14px;min-height:54px;color:var(--muted);}
.children-home :is(a,button,summary):focus-visible{outline:3px solid var(--focus-ring,#805400);outline-offset:4px;}
.dark .children-path{--path-paper:#382b27;--path-accent:#f0b197;}
.dark .children-path[data-child-path="quran"]{--path-paper:#203d31;--path-accent:#9dddbe;}
.dark .children-path[data-child-path="stories"]{--path-paper:#332b43;--path-accent:#d1b8f4;}
.dark .children-path-arrow{color:#203649;}
[dir="rtl"] .children-welcome-v54 h1,[dir="rtl"] .children-path-copy strong{letter-spacing:0;line-height:1.6;}
[dir="rtl"] .children-welcome-v54 .children-welcome-label{letter-spacing:0;}
@media(max-width:700px){
 .children-home .children-welcome-v54{grid-template-columns:minmax(0,1fr) 108px;margin-bottom:18px;gap:10px;padding:0;}
 .children-welcome-v54 h1{font-size:30px;margin:9px 0 8px;}
 .children-welcome-v54 img{width:108px;height:132px;}
 .children-welcome-v54 p{font-size:15px;}
 .children-paths{grid-template-columns:minmax(0,1fr);gap:16px;}
 .children-path{display:grid;grid-template-columns:132px minmax(0,1fr) 28px;gap:0;align-items:center;min-height:154px;border-radius:22px;}
 .children-path>img{width:132px;height:100%;min-height:150px;aspect-ratio:auto;object-fit:contain;}
 .children-path-copy{grid-template-columns:minmax(0,1fr);padding:14px 11px;gap:5px;}
 .children-path-step{display:none;}
 .children-path-copy strong{font-size:21px;}
 .children-path-copy small{grid-column:1;font-size:14px;line-height:1.5;}
 .children-path-arrow{width:28px;height:28px;align-self:center;margin:0 7px 0 0;font-size:20px;transform:translateX(-5px);}
 [dir="rtl"] .children-path-arrow{margin:0 0 0 7px;transform:translateX(5px);}
 .children-home-secondary{gap:8px;margin:23px 0;}
 .children-home-secondary>a,.children-home-secondary>button{flex:1 1 150px;font-size:13px;padding-inline:10px;}
}
@media(max-width:370px){
 .children-home .children-welcome-v54{grid-template-columns:minmax(0,1fr) 82px;}
 .children-welcome-v54 img{width:82px;height:112px;}
 .children-welcome-v54 h1{font-size:27px;}
 .children-path{grid-template-columns:100px minmax(0,1fr) 26px;min-height:145px;}
 .children-path>img{width:100px;min-height:141px;}
 .children-path-copy{padding-inline:9px;}
 .children-path-copy strong{font-size:19px;}
 .children-path-copy small{font-size:13px;}
}
@media(prefers-reduced-motion:reduce){.children-path{transition:none;}.children-path:hover{transform:none;}}
/* Child header: two stable rows. Extra adult tools remain under Grown-ups. */
body[data-profile="kids"] .topbar .mushaf-beta-badge,body[data-profile="kids"] .topbar .mushaf-explore-button{display:none!important}
@media(max-width:700px){body[data-profile="kids"] .topbar{min-height:112px!important;grid-template-rows:44px 48px!important}body[data-profile="kids"] .topbar .start-here-trigger{grid-column:2/-1!important;grid-row:2!important;min-height:48px!important;width:100%;margin:0!important}body[data-profile="kids"] .topbar .profile-control{grid-column:1!important;grid-row:2!important;max-width:none!important;width:100%!important}body[data-profile="kids"] .topbar .reader-top-options{display:none!important}}
/* A tablet's sidebar leaves too little room for three picture cards. */
.children-path-copy strong,.children-path-copy small{min-width:0;overflow-wrap:break-word;word-break:normal;}
@media(min-width:701px) and (max-width:1000px){
 .children-paths{grid-template-columns:minmax(0,1fr);gap:18px;}
 .children-path{display:grid;grid-template-columns:160px minmax(0,1fr) 44px;align-items:center;min-height:164px;}
 .children-path>img{width:160px;height:100%;min-height:160px;aspect-ratio:auto;object-fit:contain;}
 .children-path-copy{grid-template-columns:27px minmax(0,1fr);padding:20px 14px;gap:7px 9px;}
 .children-path-copy strong{font-size:22px;}
 .children-path-copy small{font-size:15px;line-height:1.65;}
 .children-path-arrow{width:32px;height:32px;align-self:center;margin:0;font-size:22px;}
}
/* Little Rafidi keeps a rounded bilingual interface; scripture keeps its own font. */
body[data-profile="kids"]{--font-ui:"Readex Pro","Noto Sans Arabic",system-ui,sans-serif;font-family:var(--font-ui)}
.children-home .children-wave{border:0;padding:0;background:transparent;color:var(--green);font:600 13px/1.65 var(--font-ui);display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;cursor:pointer;border-radius:24px}
.children-home .children-wave img{width:180px;height:180px;object-fit:contain;border-radius:50%;mix-blend-mode:multiply;transform-origin:50% 85%}
.children-wave>span{display:block;border:1px solid var(--line);padding:6px 14px;min-height:38px;border-radius:30px;background:var(--panel)}
.children-wave>small{display:block;color:var(--muted);font-size:12px;line-height:1.7;max-width:23ch;margin-top:8px}
.children-wave>small:empty{display:none}
.children-wave.is-waving img{animation:little-hello .85s ease-in-out 1}
@keyframes little-hello{0%,100%{transform:rotate(0) translateY(0)}25%{transform:rotate(-7deg) translateY(-6px)}55%{transform:rotate(7deg) translateY(-3px)}75%{transform:rotate(-3deg)}}
.children-home .children-friend-action{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 12px;border-radius:13px;background:var(--panel);border:1px solid var(--line);color:var(--green);font-size:13px;font-weight:650;text-decoration:none;margin-top:14px;text-align:center}
.children-home .children-friend-action:hover{background:var(--pale)}
.reader-library-links .reader-faqih-link{display:flex;align-items:center;text-decoration:none;font-size:12px;line-height:1.7;min-height:44px;text-align:start}
@media(max-width:700px){.children-home .children-wave img{width:108px;height:108px}.children-wave>small{font-size:11px}.children-wave>span{font-size:12px;padding-inline:10px}}
@media(max-width:370px){.children-home .children-wave img{width:84px;height:84px}.children-wave>span{font-size:11px;padding-inline:8px}.children-wave>small{max-width:13ch}}
@media(prefers-reduced-motion:reduce){.children-wave.is-waving img{animation:none!important;transform:none!important}}

/* Keep the first choices visible together on a phone. The cards keep their
   illustrations on wider screens, without a second portrait beside each title. */
.child-learning-home.children-home .child-start {
  grid-template-columns: minmax(0, 1fr) clamp(92px, 14vw, 152px);
  padding: clamp(16px, 3vw, 30px);
  gap: 16px;
}
.child-learning-home .child-start h1 { margin: 0 0 6px; }
.child-learning-home .child-start .children-wave img {
  width: min(100%, 130px);
  height: auto;
  aspect-ratio: 1;
}
.child-learning-home .child-start-copy .children-hero-start { margin-top: 12px; }
.child-learning-home.children-home-v56 .children-path-copy {
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
}
.child-learning-home .children-path-copy small { grid-column: 1; }
.child-learning-home .children-path-arrow { margin-inline-end: 14px; }
.child-learning-home .children-friends { margin-block: 12px; }
.child-learning-home .child-more .children-home-secondary {
  justify-content: start;
  margin: 0;
  padding: 0 16px 16px;
}
.child-learning-home .children-paths { gap: 12px; }
.child-learning-home .children-path:focus-visible { outline-offset: 2px; }
@media (max-width: 1000px) {
  .child-learning-home.children-home-v56 .children-path {
    grid-template-columns: clamp(64px, 16vw, 118px) minmax(0, 1fr) 34px;
    min-height: 90px;
    border-radius: 18px;
  }
  .child-learning-home.children-home-v56 .children-path > img {
    width: 100%;
    height: 100%;
    min-height: 88px;
    object-fit: cover;
  }
  .child-learning-home.children-home-v56 .children-path-copy { padding: 12px; }
  .child-learning-home .children-path-copy strong { font-size: 18px; }
  .child-learning-home .children-path-copy small { font-size: 13px; }
  .child-learning-home.children-home-v56 .children-path-arrow { margin: 0; transform: none; }
}
@media (max-width: 480px) {
  .child-learning-home.children-home .child-start {
    grid-template-columns: minmax(0,1fr) clamp(64px, 19vw, 86px);
    gap: 8px;
    padding: 16px;
    margin-bottom: 14px;
  }
  .child-learning-home .child-start h1 { font-size: clamp(23px, 6.2vw, 28px); }
  .child-learning-home .child-start .children-wave > span { min-height: 32px; }
  .child-learning-home .children-paths { gap: 9px; }
}

/* Use the child's available reading column, including tablet split view. */
.child-learning-home{container:child-home / inline-size}
.child-picture-shelves{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:clamp(7px,2vw,16px);margin:18px 0 24px}
.child-picture-shelves a{min-width:0;display:flex;flex-direction:column;text-decoration:none;color:inherit;background:var(--card,#fff);border:1px solid color-mix(in srgb,currentColor 15%,transparent);border-radius:18px;overflow:hidden}
.child-picture-shelves img{width:100%;height:clamp(76px,20vw,150px);object-fit:cover}
.child-picture-shelves span{display:grid;gap:3px;padding:9px}
.child-picture-shelves strong{font-size:clamp(.94rem,3.3vw,1.17rem);line-height:1.5}
.child-picture-shelves small{font-size:.78rem;line-height:1.55;color:inherit}
.child-picture-shelves a:focus-visible{outline:3px solid #ad7942;outline-offset:3px}
@container child-home (max-width:35rem){
  .child-picture-shelves{grid-template-columns:minmax(0,1fr);gap:.5rem}
  .child-picture-shelves a{display:grid;grid-template-columns:clamp(52px,22%,96px) minmax(0,1fr);align-items:center}
  .child-picture-shelves img{height:100%;min-height:4.25rem;max-height:6rem}
  .child-picture-shelves span{padding:.4rem clamp(9px,3%,16px)}
}

.child-books>nav{margin:.15rem .75rem .75rem}
.child-learning-home .child-more>.child-friend-list{margin:.4rem .9rem .9rem}
.child-friend-list>summary{cursor:pointer;min-height:44px;padding:.55rem 0}
@container child-home (max-width:35rem){
  .child-learning-home .children-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}
  .child-learning-home.children-home-v56 .children-path{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;min-width:0;padding:0;overflow:hidden}
  .child-learning-home.children-home-v56 .children-path>img{min-height:0;width:100%;height:clamp(3.6rem,15vw,5.8rem);object-fit:cover;border-radius:0}
  .child-learning-home.children-home-v56 .children-path-copy{padding:.35rem .25rem;text-align:center}
  .child-learning-home .children-path-copy strong{font-size:clamp(.85rem,3.7vw,1rem);line-height:1.3}
  .child-learning-home .children-path-arrow{display:none}
}

.child-opening-picture{inline-size:100%;block-size:auto;aspect-ratio:1;object-fit:cover;border-radius:18%}
.child-books>summary:focus-visible,.child-friend-list>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.child-learning-home.children-home-v56 .children-paths {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));
  gap:.25rem 1rem; margin-block:.45rem 1rem;
}
.child-learning-home.children-home-v56 .children-path {
  display:flex; flex-direction:row; align-items:center; justify-content:flex-start;
  min-block-size:3.5rem; min-height:3.5rem; padding:.35rem .25rem; gap:.75rem;
  border:0; border-block-end:1px solid var(--line); border-radius:0;
  background:transparent; box-shadow:none; color:var(--ink); text-decoration:none;
}
.child-learning-home.children-home-v56 .children-path:hover {background:var(--pale); box-shadow:none}
.child-learning-home.children-home-v56 .children-path-copy {display:block; min-inline-size:0; text-align:start; padding:0}
.child-learning-home .child-task-mark {display:grid; place-items:center; color:var(--path-accent,var(--green)); flex:none}
.child-learning-home .child-task-mark svg {inline-size:1.8rem; block-size:1.8rem}
.child-learning-home .children-friend small {display:block; font-size:1rem; color:var(--muted)}
@container child-home (max-width:35rem){
  .child-learning-home.children-home-v56 .children-paths{grid-template-columns:1fr}
}
.child-learning-home .child-picture-shelves {margin:.25rem 0}
.child-learning-home .child-picture-shelves a {display:flex;flex-direction:row;align-items:center;min-height:3rem;gap:.6rem;border:0;border-block-end:1px solid var(--line);border-radius:0;background:transparent}
.child-learning-home .child-picture-shelves .child-task-mark {display:inline-flex;padding:.4rem;color:var(--green)}
.child-learning-home .child-picture-shelves .child-task-mark svg {inline-size:1.5rem;block-size:1.5rem}
.child-learning-home .child-picture-shelves a>span:last-child {padding:.4rem .1rem;min-inline-size:0}

.child-session-record { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; color:inherit; font-size:.875rem; }
.child-session-record progress { inline-size:3.5rem; block-size:.35rem; accent-color:currentColor; }

.child-learning-home .children-path .child-guide-face {width:3.1rem;height:3.1rem;display:block;flex:none}
.child-guide-face img {display:block;width:100%;height:100%;object-fit:contain}
.child-learning-home .children-path .children-path-copy {display:grid;gap:.05rem}
.child-learning-home .children-path .children-path-copy small {font-size:.86rem;color:var(--muted,#506a62)}

.child-full-reader {display:flex;align-items:center;gap:.55rem;min-block-size:44px;padding:.35rem .6rem;color:var(--green,#185e4a);font-weight:680}
.child-full-reader svg {flex:none;width:1.35rem;height:1.35rem}
.child-library-drawer>summary{cursor:pointer;font-weight:650;padding:.7rem .5rem;min-height:44px;border-block-end:1px solid var(--line)}
.children-home mushaf-step-guide[data-choice-deck][data-ready] .children-paths {display:flex;flex-flow:row nowrap;margin:0}
.children-home mushaf-step-guide[data-choice-deck] .children-paths .children-path {display:flex;align-items:center;gap:1rem;text-decoration:none;min-height:6rem;padding:.55rem 1rem;border:1px solid var(--line,#cbdacb);border-radius:.9rem;background:var(--panel,#fff)}
.children-home .children-path .child-guide-face {width:4.5rem;height:4.5rem}
.children-home .child-start.lf-cover {min-height:0}
.children-home .lf-path-title {font-size:1.15rem;margin:.7rem 0 .45rem}
.child-library-drawer .children-friends {margin:.25rem 0}

/* The reading invitation shares the shelf's paper and ink. */
.children-home.child-learning-home .children-welcome.child-start.lf-cover {
  background: #fbf2dd; color: #244934; border: 1px solid #e7dcc7;
  grid-template-columns: minmax(0,1fr) minmax(5.5rem,33%); min-block-size: 0;
  margin: 0; padding: 0; gap: 0; border-radius: 1.1rem;
}
.children-home .child-start.lf-cover .lf-cover-copy {padding: clamp(.9rem,3.5vw,1.9rem);align-self:center}
.children-home .child-start.lf-cover .lf-cover-copy .lf-byline {color:#6c5943}
.children-home .child-start.lf-cover .child-start-copy h1 {color:#2b422d}
.children-home .child-start.lf-cover .child-start-copy>p {color:#5c533f}
.children-home .child-start.lf-cover .lf-portrait {background:transparent}
.children-home .child-start.lf-cover .lf-portrait::before {display:none}
.children-home .child-start.lf-cover .lf-portrait img {inset:0;inline-size:100%;block-size:100%;object-fit:contain;object-position:center;border-radius:50%;background:transparent;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse 67% 61% at center,#000 55%,transparent 84%)}
.children-home .child-start.lf-cover .children-hero-start {align-items:center;background:#275d43;color:#fff;margin-block-start:.7rem;min-height:44px;border-radius:.7rem}
.children-home .child-start.lf-cover .children-hero-start:hover {background:#1d4a34;color:#fff}
.children-home .child-start.lf-cover .children-hero-start:focus-visible {outline:3px solid #235a3d;outline-offset:3px}
.dark .children-home.child-learning-home .children-welcome.child-start.lf-cover {background:#322f27;border-color:#585242}
.dark .children-home .child-start.lf-cover .child-start-copy h1 {color:#ffefd2}
.dark .children-home .child-start.lf-cover .lf-cover-copy .lf-byline,.dark .children-home .child-start.lf-cover .child-start-copy>p {color:#e2d2b8}
.dark .children-home .child-start.lf-cover .lf-portrait img {mix-blend-mode:normal}
.dark .children-home .child-start.lf-cover .children-hero-start {background:#b3dbb1;color:#203c2a}

/* The reading invitation and four visible activities form a compact child home. */
.child-home184.children-home.child-learning-home .children-welcome.child-start.lf-cover {
  grid-template-columns:minmax(0,1fr) minmax(5rem,36%);
  grid-template-areas:"intro scene" "action scene";align-items:center;
  background:var(--panel);border-color:var(--line);color:var(--ink);
}
.child-home184.children-home .child-start.lf-cover .lf-cover-copy {grid-area:intro;align-self:end;padding:1rem 1rem .25rem}
.child-home184.children-home .child-start.lf-cover .child-start-copy h1 {
  color:var(--ink);font-size:clamp(1.4rem,4.2vw,2.15rem);line-height:1.35;letter-spacing:normal;
}
.child-home184.children-home .child-start.lf-cover .lf-cover-copy .lf-byline,
.child-home184.children-home .child-start.lf-cover .child-start-copy>p {color:var(--muted);font-size:.9rem;line-height:1.6}
.child-home184 .child-reading-scene {
  grid-area:scene;min-inline-size:0;align-self:center;margin:.55rem;
  aspect-ratio:3 / 2;overflow:hidden;border-radius:.75rem;background:#f4e6c9;
}
.child-home184 .child-reading-scene img {
  display:block;inline-size:100%;block-size:100%;max-inline-size:none;object-fit:contain;
}
.child-home184 .child-reading-invite {
  grid-area:action;display:flex;align-self:start;align-items:start;flex-direction:column;
  gap:.4rem;padding:.25rem 1rem 1rem;
}
.child-home184.children-home .child-start.lf-cover .children-hero-start {margin:0;min-block-size:46px;font-size:1rem;line-height:1.4;padding:.55rem .8rem}
.child-home184.children-home .child-start.lf-cover .child-reading-cue {margin:0;color:var(--muted);font-size:.875rem;line-height:1.6}
.child-home184 .child-reading-links {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;
  margin-block:.6rem 1rem;
}
.child-home184 .child-reading-links .child-challenges-link {
  color:var(--dark);background:var(--pale);border-radius:.65rem;
}
body.dark .child-home184 .child-reading-links .child-challenges-link {color:var(--ink)}
.child-home184 .child-reading-links a {justify-content:center;text-align:center;line-height:1.4}
.child-home184 .child-reading-links a span {min-inline-size:0;overflow-wrap:anywhere}
.child-home184 .children-grownups .btn svg {inline-size:1.2rem;block-size:1.2rem}
.child-home184 .child-reading-links a {display:flex;align-items:center;gap:.45rem;min-block-size:44px;padding:.35rem .35rem;color:var(--green);font-weight:650;font-size:.9rem;text-decoration:none}
.child-home184 .child-reading-links a:hover {text-decoration:underline;text-underline-offset:.2em}
.child-home184 .child-reading-links svg {flex:none;inline-size:1.25rem;block-size:1.25rem}
.child-home184.children-home.child-learning-home .children-paths {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:.3rem 0 1rem}
.child-home184.children-home.child-learning-home .children-path {
  display:flex;flex-direction:column;align-items:stretch;gap:0;min-inline-size:0;min-block-size:0;min-height:0;
  padding:0;border:1px solid var(--line);border-radius:.85rem;background:var(--panel);box-shadow:none;overflow:hidden;transform:none;
}
.child-home184 .child-path-scene {display:block;inline-size:100%;aspect-ratio:3 / 2;overflow:hidden;background:var(--light)}
.child-home184 .child-path-scene img {display:block;inline-size:100%;block-size:100%;object-fit:contain;object-position:center}
.child-home184.children-home.child-learning-home .children-path .children-path-copy {display:grid;gap:.15rem;padding:.55rem .6rem;text-align:start}
.child-home184.children-home .children-path-copy strong {font-size:1rem;line-height:1.45;letter-spacing:normal}
.child-home184.children-home .children-path-copy small {font-size:.875rem;line-height:1.5}
.child-home184 .young-practice-drawer {margin-block:.7rem 1rem}
.child-home184.children-home .children-grownups p {font-size:.95rem;line-height:1.75}
@media(min-width:58rem){
 .child-home184.children-home.child-learning-home .children-paths {grid-template-columns:repeat(4,minmax(0,1fr))}
 .child-home184.children-home.child-learning-home .children-welcome.child-start.lf-cover {
   grid-template-columns:minmax(0,1fr) minmax(12rem,18rem);
 }
 .child-home184 .child-reading-scene {margin:1rem}
 .child-home184 .child-reading-links {grid-template-columns:repeat(3,max-content);justify-content:start;gap:.7rem}
 .child-home184 .child-reading-links a {padding-inline:.8rem}
}
@media(max-width:340px){
 .child-home184.children-home .child-start.lf-cover .lf-cover-copy {padding:.7rem .65rem .2rem}
 .child-home184 .child-reading-invite {padding:.5rem .65rem .7rem}
 .child-home184.children-home .children-path .children-path-copy {padding:.45rem .5rem}
}

@media(max-width:38rem){
 .child-home184 .child-reading-links a {flex-direction:column;gap:.18rem;min-block-size:48px}
 .child-home184.children-home .child-start.lf-cover .child-reading-cue {display:none}
}
@media(max-width:22rem){
 .child-home184 .child-reading-scene {margin:.35rem}
 .child-home184 .child-reading-links a {font-size:.85rem}
}
@media(prefers-reduced-motion:reduce){
 .child-home184 .children-path,.child-home184 .children-hero-start {transition:none}
}

/* The garden uses the app’s green ink and the companions’ illustrated palette. */
.children-home.garden-home {
  --gd-ink:#193d2e; --gd-muted:#49624e; --gd-line:#c4d9ba; --gd-paper:#fffef7;
  --gd-sky:#eaf4cd; --gd-hill:#b9db94; --gd-bank:#86bd7c; --gd-leaf:#4d9962;
  --gd-cta:#227a44; --gd-edge:#14522c; --gd-cta-ink:#fff;
  container-type:inline-size; max-width:54rem; color:var(--gd-ink); padding-bottom:1rem;
}
.dark .children-home.garden-home {
  --gd-ink:#f0f5de; --gd-muted:#c1d5bb; --gd-line:#4d6d56; --gd-paper:#253c31;
  --gd-sky:#293f37; --gd-hill:#44674e; --gd-bank:#4f795b; --gd-leaf:#75a67d;
  --gd-cta:#a8d893; --gd-edge:#628c67; --gd-cta-ink:#183825;
}
.garden-home :is(h1,h2,p) {margin:0}
.garden-home :is(button,a,summary) {-webkit-tap-highlight-color:transparent; touch-action:manipulation}
.garden-home .garden-welcome {margin:0 0 1.15rem}
.garden-home .garden-salam {color:var(--gd-muted);font-weight:650;line-height:1.5;margin-bottom:.15rem}
.garden-home .garden-welcome h1 {color:var(--gd-ink);font-family:var(--font-ui,inherit);font-size:clamp(1.75rem,5.2cqi,2.75rem);line-height:1.22;letter-spacing:-.045em;font-weight:750}
.garden-home .garden-next {isolation:isolate;overflow:hidden;position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);min-height:13.8rem;background:var(--gd-sky);border:1.5px solid var(--gd-line);border-radius:1.65rem}
.garden-home .garden-next-copy {z-index:1;align-self:center;min-width:0;padding:clamp(1rem,4.8cqi,2.75rem);padding-inline-end:0}
.garden-home .garden-step-caption {display:flex;align-items:center;gap:.35rem;color:var(--gd-muted);font-weight:700;font-size:.85rem;line-height:1.45}
.garden-home .garden-glyph{display:inline-flex;align-items:center;justify-content:center;flex:none}
.garden-home .garden-glyph svg {width:1.35rem;height:1.35rem}
.garden-home .garden-step-caption svg {width:1.1rem;height:1.1rem}
.garden-home .garden-next h2 {color:var(--gd-ink);font:750 clamp(1.4rem,4.3cqi,2.35rem)/1.18 var(--font-ui, sans-serif);letter-spacing:-.035em;text-wrap:balance;margin:.42rem 0}
.garden-home .garden-unit {font-size:clamp(.84rem,2.1cqi,1rem);color:var(--gd-muted);line-height:1.5}
.garden-home .garden-go {display:inline-flex;align-items:center;justify-content:center;gap:.7rem;min-height:48px;margin:1.05rem 0 .25rem;padding:.58rem 1.15rem;background:var(--gd-cta);color:var(--gd-cta-ink);border:0;border-radius:.9rem;box-shadow:0 4px 0 var(--gd-edge);text-decoration:none;font:700 1rem/1.4 var(--font-ui, sans-serif);transition:transform .12s,box-shadow .12s}
.garden-home .garden-go:active {transform:translateY(3px);box-shadow:0 1px 0 var(--gd-edge)}
.garden-home .garden-arrow {display:inline-block;width:.48rem;height:.48rem;border-block-start:2px solid currentColor;border-inline-end:2px solid currentColor;transform:rotate(45deg);flex:none}
.garden-home[dir=rtl] .garden-arrow {transform:rotate(-45deg)}
.garden-home[dir=rtl] :is(.garden-next h2,.garden-welcome h1) {letter-spacing:normal;line-height:1.55}
.garden-home .garden-clearing {position:relative;min-width:0;display:grid;place-items:center;isolation:isolate;align-self:stretch}
.garden-home .garden-scenery {position:absolute;inset:0;z-index:-1;pointer-events:none}
.garden-home .garden-scenery i {display:block;position:absolute}
.garden-home .garden-cloud {width:25%;height:5%;top:18%;inset-inline-start:6%;border-radius:2rem;background:#fffff1;opacity:.85}
.garden-home .garden-cloud:before,.garden-home .garden-cloud:after {content:"";position:absolute;bottom:0;left:16%;width:38%;aspect-ratio:1;background:inherit;border-radius:50%}
.garden-home .garden-cloud:after {left:45%;width:28%}
.garden-home .garden-sun {width:12%;aspect-ratio:1;top:12%;inset-inline-end:14%;background:#f4cd69;border-radius:50%;box-shadow:0 0 0 .32rem #f4cd6938}
.garden-home .garden-hill-far {width:140%;height:50%;inset-inline-end:-31%;bottom:-10%;background:var(--gd-hill);border-radius:76% 77% 0 0 / 100% 100% 0 0}
.garden-home .garden-hill-near {width:119%;height:33%;inset-inline-end:-10%;bottom:-14%;background:var(--gd-bank);border-radius:90% 80% 0 0 / 100% 100% 0 0}
.garden-home .garden-leaf {width:5%;aspect-ratio:1/1.6;bottom:9%;inset-inline-end:10%;border-radius:0 80% 0 90%;background:var(--gd-leaf);transform:rotate(-9deg)}
.garden-home .garden-leaf:after {content:"";position:absolute;width:73%;height:84%;bottom:0;left:83%;background:inherit;border-radius:80% 0 80% 0;transform:rotate(20deg)}
.garden-home .garden-leaf-left {inset-inline-end:83%;bottom:5%;width:3.8%;opacity:.85}
.garden-home .garden-flower {width:.65rem;height:.65rem;border-radius:50%;inset-inline-end:19%;bottom:12%;background:#f2b743;box-shadow:0 -.32rem #fff3d1,.31rem -.08rem #fff3d1,.2rem .27rem #fff3d1,-.2rem .27rem #fff3d1,-.31rem -.08rem #fff3d1}
.garden-home .garden-hello {position:relative;display:grid;justify-items:center;align-content:center;gap:.1rem;border:none;background:transparent;color:var(--gd-ink);font:inherit;cursor:pointer;min-width:44px;min-height:44px;padding:.65rem .2rem}
.garden-home .garden-hero-pal {display:block;width:clamp(6rem,27cqi,13.5rem);filter:drop-shadow(0 .28rem .1rem #27533522)}
.garden-home .garden-hero-pal :is(svg,img),.garden-home .garden-mini-pal :is(svg,img) {display:block;width:100%;height:auto;fill:initial;stroke:none}
.garden-home .garden-hello-label {display:inline-block;background:var(--gd-paper);color:var(--gd-ink);padding:.24rem .68rem;border:1px solid var(--gd-line);border-radius:1rem;font-size:.78rem;line-height:1.4;font-weight:650;max-width:100%;text-align:center}
.garden-home .garden-hello.is-waving .garden-hero-pal {transform-origin:50% 80%;animation:garden-salam-wave .7s ease-in-out 1}
@keyframes garden-salam-wave {20%,65%{transform:rotate(-6deg) translateY(-2%)}45%,85%{transform:rotate(5deg)}}
.garden-home .garden-destinations {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.45rem,1.7cqi,1rem);margin:1rem 0}
.garden-home .garden-destination {position:relative;display:flex;flex-flow:column;align-items:center;justify-content:center;min-width:0;min-height:6.5rem;gap:.28rem;padding:.55rem .25rem;text-decoration:none;text-align:center;border:1.5px solid var(--gd-tile-line);border-bottom-width:3px;border-radius:1.12rem;background:var(--gd-tile);color:var(--gd-tile-ink);transition:transform .15s}
.garden-home .garden-destination strong {font-size:clamp(.86rem,2.2cqi,1.07rem);line-height:1.35}
.garden-home .garden-destination small {font-size:.8rem;line-height:1.15}
.garden-home .garden-destination progress {height:.35rem;max-width:55%;accent-color:#428850}
.garden-path-card {--gd-tile:#eff7e8;--gd-tile-line:#bedab0;--gd-tile-ink:#294c35}
.garden-play-card {--gd-tile:#fff3d7;--gd-tile-line:#e2c997;--gd-tile-ink:#654922}
.garden-pals-card {--gd-tile:#f3eefe;--gd-tile-line:#d7c8e8;--gd-tile-ink:#554365}
.dark .garden-path-card {--gd-tile:#2b4030;--gd-tile-line:#546e52;--gd-tile-ink:#e4f5ce}
.dark .garden-play-card {--gd-tile:#453b28;--gd-tile-line:#776442;--gd-tile-ink:#ffebbe}
.dark .garden-pals-card {--gd-tile:#393344;--gd-tile-line:#6e607e;--gd-tile-ink:#f0e2fd}
.garden-home .garden-tile-art {position:relative;display:block;width:3.75rem;height:3rem;flex:none}
.garden-home .garden-mini-pal {width:3.5rem}
.garden-home .garden-mini-pal :is(svg,img) {position:absolute;inset:0;margin:auto;height:100%;width:100%;object-fit:contain}
.garden-home .garden-stepping {position:absolute;width:1.1rem;height:.48rem;left:.48rem;bottom:.12rem;border-radius:50%;background:#70a071;box-shadow:.95rem -.59rem 0 -.04rem #88aa7a,.31rem -1.07rem 0 -.09rem #a0bd85}
.garden-home .garden-seedling {position:absolute;height:1.1rem;width:.2rem;background:#387c4c;right:1.1rem;top:.69rem;border-radius:1rem}
.garden-home .garden-seedling:before,.garden-home .garden-seedling:after {content:"";position:absolute;top:0;right:0;width:.76rem;height:.56rem;background:#57a85c;border-radius:0 80% 0 80%;transform:rotate(15deg)}
.garden-home .garden-seedling:after {left:.05rem;top:-.34rem;background:#82ba70;border-radius:80% 0 80% 0;transform:rotate(-18deg)}
.garden-home .garden-game-block {position:absolute;display:grid;place-items:center;left:.2rem;top:.34rem;width:1.76rem;height:1.76rem;border-radius:.4rem;background:#e8a63e;box-shadow:0 3px #bb7d31;transform:rotate(-12deg);color:#fff3b6;font:normal 1.25rem/1 sans-serif}
.garden-home .garden-game-block+i {left:1.72rem;top:.83rem;transform:rotate(11deg);background:#6ba493;box-shadow:0 3px #4a8176;color:#dcf1c7}
.garden-home .garden-records {display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:.6rem 0}
.garden-home .garden-records a,.garden-home .garden-resume {display:flex;align-items:center;gap:.6rem;min-height:44px;text-decoration:none;color:var(--gd-ink);font-weight:650}
.garden-home .garden-records a {padding:.35rem .6rem}
.garden-home .garden-resume {border:1px solid var(--gd-line);border-radius:1rem;padding:.75rem 1rem;background:var(--gd-paper)}
.garden-home .garden-resume :is(small,strong),.garden-home .garden-library-links strong,.garden-home .garden-library-links small {display:block;line-height:1.5}
.garden-home .garden-resume small,.garden-home .garden-library small {color:var(--gd-muted);font-size:.82rem;font-weight:550}
.garden-home .garden-resume .garden-arrow,.garden-home .garden-library-links .garden-arrow {margin-inline-start:auto}
.garden-home .garden-library {margin:.55rem 0;border:1px solid var(--gd-line);border-radius:1rem;background:var(--gd-paper);overflow:hidden}
.garden-home .garden-library>summary {list-style:none;display:flex;align-items:center;gap:.65rem;min-height:48px;padding:.65rem 1rem;border:0;font-weight:650;color:var(--gd-ink)}
.garden-home .garden-library>summary::-webkit-details-marker {display:none}
.garden-home .garden-library>summary:before {content:"";width:.54rem;height:.54rem;border-inline-end:2px solid;border-block-end:2px solid;transform:rotate(45deg);margin-inline-end:.22rem}
.garden-home .garden-library[open]>summary:before {transform:rotate(225deg)}
.garden-home .garden-library-grid,.garden-home .garden-library-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:.7rem}
.garden-home .garden-library-grid a,.garden-home .garden-library-links :is(a,button) {display:flex;align-items:center;gap:.62rem;text-decoration:none;color:var(--gd-ink);background:transparent;border:1px solid var(--gd-line);border-radius:.7rem;min-height:44px;padding:.38rem;text-align:start;font:inherit}
.garden-home .garden-library-grid img {width:4.3rem;height:3rem;object-fit:cover;border-radius:.45rem}
.garden-home .garden-library-grid :is(strong,small){display:block}
.garden-home .garden-library-links :is(a,button){padding:.45rem .65rem}
.garden-home .garden-library-links strong,.garden-home .garden-library-grid strong{font-size:.94rem;font-weight:650}
.garden-home .young-practice-drawer,.garden-home .children-grownups {margin:.55rem 0}
@container(min-width:38rem) {
  .garden-home .garden-destination {flex-direction:row;gap:.7rem;flex-wrap:wrap;min-height:5rem}
  .garden-home .garden-destination progress {flex-basis:72%;max-width:72%}
}
@container(max-width:25rem) {
  .garden-home .garden-next {min-height:11.7rem;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
  .garden-home .garden-go {padding:.5rem .75rem;font-size:.9rem}
  .garden-home .garden-next-copy {padding-block:1rem}
  .garden-home .garden-library-grid,.garden-home .garden-library-links {grid-template-columns:1fr}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .garden-home .garden-destination:hover {transform:translateY(-2px)}
}
@media(prefers-reduced-motion:reduce) {
  .garden-home .garden-hello.is-waving .garden-hero-pal {animation:none}
  .garden-home .garden-go,.garden-home .garden-destination {transition:none}
}

.garden-home .garden-hero-pal .garden-pal-art,.garden-home .garden-mini-pal .garden-pal-art {display:block;width:100%;height:auto}
.garden-home .garden-story-friends {margin:.55rem .75rem}
.garden-home .garden-story-friends summary {display:list-item;min-height:44px;padding-block:.65rem;cursor:pointer;font-weight:650}
.garden-home .garden-resume + .garden-resume {margin-top:.5rem}
@container(max-width:28rem) {
  .garden-home .garden-library-grid,.garden-home .garden-library-links {grid-template-columns:1fr}
}

.garden-home .garden-next h2 {margin:.3rem 0 .35rem;color:var(--gd-ink);font:750 clamp(1.39rem,4.2cqi,2.15rem)/1.22 var(--font-ui, sans-serif);letter-spacing:-.035em;overflow-wrap:break-word}
.garden-home .garden-unit {color:var(--gd-muted);font-weight:550;font-size:.95rem;line-height:1.55}
.garden-home[dir=rtl] .garden-next h2 {line-height:1.55;letter-spacing:normal}

/* Living garden: shared source cast, a visible reading road, one next action. */
body[data-profile="kids"]:not(.dark) {--bg:#f2f8ee;--panel:#fff;--ink:#17352b;--muted:#47635a;--line:#d2e5ce}
.children-home.garden-home {--gd-paper:#fff;--gd-sky:#e5f4cf;--gd-line:#cde2c1;--gd-cta:#128749;--gd-edge:#0a6337;max-width:50rem}
.garden-home .garden-toolbar {margin-bottom:.4rem}
.garden-home .garden-toolbar a {gap:.4rem}
.garden-home .garden-toolbar a svg {width:1.15rem;height:1.15rem}
.garden-home .garden-welcome {margin:.5rem 0 1.1rem}
.garden-home .garden-welcome h1 {font-weight:800;letter-spacing:-.04em}
.garden-home .garden-invitation {font-size:1rem;line-height:1.6;color:var(--gd-muted);margin-top:.35rem}
.garden-home .garden-salam {font-size:.9rem}
.garden-home .garden-next {min-height:16rem;border:2px solid #cce1bd;box-shadow:0 6px 0 #d0e1c2,0 14px 28px #26452d0a;border-radius:1.65rem}
.garden-home .garden-next-copy {padding:1.5rem;padding-inline-end:.25rem}
.garden-home .garden-next h2 {font-weight:800;font-size:clamp(1.5rem,4.3cqi,2.25rem)}
.garden-home .garden-unit {margin-top:.55rem;max-width:19rem}
.garden-home .garden-hero-pal {width:clamp(7.5rem,29cqi,14rem)}
.garden-home .garden-hello-label {font-size:.875rem;padding:.35rem .7rem;margin-top:.5rem}
.garden-home .garden-reading-road {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:1.4rem 0 1rem}
.garden-home .garden-road-stop {min-height:5.3rem;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.2rem;padding:.45rem .2rem;border-radius:1rem;background:#fff;border:1.5px solid #cde0c8;border-bottom-width:4px;color:#294a35;text-decoration:none}
.garden-home .garden-road-stop span {font:700 1.6rem/1.4 Amiri,serif;color:#176e59;white-space:nowrap}
.garden-home .garden-road-stop strong {font-size:.9rem;line-height:1.4}
.garden-home .garden-road-sounds {background:#edf7ff;border-color:#bfdbed}
.garden-home .garden-road-words {background:#fff4d7;border-color:#e4cf9c}
.garden-home .garden-road-quran {background:#f1edff;border-color:#d7c9ed}
.garden-home .garden-destinations {margin:.5rem 0 1rem}
.garden-home .garden-destination {flex-direction:column;flex-wrap:nowrap;gap:.4rem;min-height:8rem;box-shadow:0 2px 0 var(--gd-tile-line)}
.garden-home .garden-destination progress {flex:none;inline-size:72%;max-inline-size:72%;block-size:.35rem;min-block-size:0;height:.35rem;appearance:none;border:0;border-radius:999px;overflow:hidden;background:var(--gd-line);color:var(--gd-cta)}
.garden-home .garden-destination progress::-webkit-progress-bar {background:var(--gd-line);border-radius:999px}
.garden-home .garden-destination progress::-webkit-progress-value {background:var(--gd-cta);border-radius:999px}
.garden-home .garden-destination progress::-moz-progress-bar {background:var(--gd-cta);border-radius:999px}
.garden-home .garden-mini-pal {width:4rem;height:3.75rem}
.garden-home .garden-destination strong {font-size:.98rem}
.garden-home .garden-records {justify-content:center}
.garden-home .garden-library-pal {flex:none;display:block;width:4rem;height:4rem}
.garden-home .garden-library-pal .garden-pal-art {width:100%;height:100%}
.garden-home .garden-library-grid a {padding:.55rem;background:#f6faef}
.garden-home .garden-library-grid strong {font-size:1rem}
.garden-home .garden-library-grid small {font-size:.875rem}
@media(prefers-reduced-motion:no-preference){
 .garden-home .garden-cloud {animation:garden-cloud-drift 12s ease-in-out infinite alternate}
 .garden-home .garden-leaf {transform-origin:bottom;animation:garden-leaf-sway 4.5s ease-in-out infinite alternate}
 .garden-home .garden-leaf-left {animation-delay:-2s}
 .garden-home .garden-sun {animation:garden-sun-glow 6s ease-in-out infinite}
}
@keyframes garden-cloud-drift {from{transform:translateX(-15%)}to{transform:translateX(40%)}}
@keyframes garden-leaf-sway {from{transform:rotate(-11deg)}to{transform:rotate(9deg)}}
@keyframes garden-sun-glow {50%{transform:scale(1.06);opacity:.78}}
@container(max-width:26rem){
 .garden-home .garden-next {min-height:13.8rem;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
 .garden-home .garden-next-copy {padding:1rem;padding-inline-end:.2rem}
 .garden-home .garden-next h2 {font-size:1.6rem}
 .garden-home .garden-unit {font-size:.9rem}
 .garden-home .garden-go {font-size:.95rem;min-height:48px;margin-top:.8rem}
 .garden-home .garden-hero-pal {width:clamp(6.5rem,31cqi,9rem)}
 .garden-home .garden-road-stop span {font-size:1.4rem}
 .garden-home .garden-road-stop strong {font-size:.85rem}
 .garden-home .garden-destination {min-height:7rem}
 .garden-home .garden-destination strong {font-size:.875rem}
 .garden-home .garden-mini-pal {width:3.5rem;height:3.5rem}
}
.dark .children-home.garden-home {--gd-paper:#253c31;--gd-sky:#293f37;--gd-line:#4d6d56;--gd-cta:#a8d893;--gd-edge:#628c67}
.dark .garden-home .garden-next {border-color:#4a6944;box-shadow:0 5px 0 #233e29}
.dark .garden-home .garden-road-stop,.dark .garden-home .garden-library-grid a {background:#2b4234;color:#e3efd9;border-color:#56704f}
.dark .garden-home .garden-road-stop span {color:#bbdfb1}

.garden-home .garden-destinations {grid-template-columns:repeat(4,minmax(0,1fr))}
.garden-home .garden-trace-card {--gd-tile:#e6f4ef;--gd-tile-line:#bfdbcf;--gd-tile-ink:#214e40}
.dark .garden-home .garden-trace-card {--gd-tile:#274137;--gd-tile-line:#536f61;--gd-tile-ink:#d6f2dd}
@media(max-width:540px){.garden-home .garden-destinations {grid-template-columns:repeat(2,minmax(0,1fr))}}

@container (max-width: 26rem) {
  .garden-home .garden-next {grid-template-columns:minmax(0,1fr) minmax(4.75rem,30%);min-height:11.5rem}
  .garden-home .garden-next-copy {min-width:0}
  .garden-home .garden-next h2 {font-size:clamp(1.2rem,6cqi,1.6rem);overflow-wrap:break-word}
  .garden-home .garden-hero-pal {width:min(100%,6.75rem)}
  .garden-home .garden-hello {min-width:0}
  .garden-home[dir=rtl] .garden-next h2 {line-height:1.45;letter-spacing:normal}
}


/* /children-navigation.css */
/* Only the small return strip stays pinned; the larger app header scrolls away. */
body.children-navigation-active .topbar{position:static!important}
.children-navigation{position:sticky;top:0;z-index:42;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:7px max(16px,4.8%);background:var(--panel,#fffdf8);border-bottom:1px solid var(--line,#dfe9df);box-shadow:0 3px 10px #183e3210}
.children-navigation[hidden]{display:none}
.children-navigation button{display:flex;align-items:center;gap:8px;min-height:44px;border:0;border-radius:12px;padding:8px 10px;font:inherit;font-size:14px;font-weight:650;line-height:1.4;text-align:start;cursor:pointer}
.children-nav-back{color:var(--ink,#163e34);background:transparent;min-width:0;max-width:62%}
.children-nav-back>span:first-child{font-size:22px;flex:none}
.children-nav-home{flex:none;color:var(--dark,#135d4a);background:var(--pale,#eaf5ef)}
.children-nav-home svg{width:19px;height:19px;flex:none}
.children-nav-place{font-size:14px;font-weight:650;line-height:1.4;color:var(--muted,#536b5b)}
.children-navigation button:focus-visible{outline:3px solid var(--focus-ring,#5ca888);outline-offset:2px}
body.children-navigation-active .quest-path-nav{display:none}
/* The strip reuses these existing actions; keep only one visual return control. */
body.children-navigation-active :is(.lr-session-top,.cr-session-top,.ct-session-head)>[data-lr-action="home"],
body.children-navigation-active :is(.lr-session-top,.cr-session-top,.ct-session-head)>[data-cr-action="home"],
body.children-navigation-active :is(.lr-session-top,.cr-session-top,.ct-session-head)>[data-ct-action="home"],
body.children-navigation-active .quests-root>.quest-back{display:none}
body.children-navigation-active :is(.lr-session-top,.cr-session-top,.ct-session-head){justify-content:flex-end}
body.children-navigation-active :is(.lr-session-heading,.cr-session-title,.ct-session-head,.quest-story-copy h2,.quest-question h2){scroll-margin-top:80px}
.quest-resume-saved{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:12px 16px;background:var(--pale);border:1px solid var(--line);border-radius:16px}
.quest-resume-saved p{margin:0;font-size:14px}
@media(max-width:380px){.children-navigation{gap:6px;padding-inline:10px}.children-navigation button{font-size:13px;padding-inline:7px;gap:6px}.children-nav-home svg{width:17px;height:17px}.children-nav-back{max-width:55%}}

/* Ordinary study pages need only one quiet return action. */
.app-return-navigation{position:static;min-height:44px;background:transparent;border:0;box-shadow:none;padding-block:0}
.app-return-navigation .children-nav-back{max-width:100%}
body.reader-focus .app-return-navigation{display:none}

/* A child already inside an activity needs the activity and its return controls first. */
body.children-navigation-active .topbar>.profile-control{display:none!important}
body.children-navigation-active>.aa-launch{display:none}

/* In a picture lesson, Back is inside the activity and Home is in the mobile tab bar. */
@media (max-width:840px) {
  body.simple-shell.children-navigation-active:not(.reader-focus):has(#mobileNav [data-page="home"]):has(.ps-activity-deck) .children-navigation {
    display:none;
  }
  html body.simple-shell.children-navigation-active:not(.reader-focus):has(.ps-activity-deck) header.topbar {
    min-height:48px;min-block-size:48px;padding-block:2px!important;
  }
  html body.simple-shell.children-navigation-active:not(.reader-focus):has(.ps-activity-deck) .layout {
    padding-block-start:.45rem!important;
  }
}


/* /children-picture-stories.css */
.children-picture-stories{--ps-ink:#203e38;--ps-green:#166d59;--ps-cream:#fff9e9;color:var(--ps-ink);font-family:ReadexPro,system-ui,sans-serif;max-width:1040px;margin:0 auto;padding:0 0 2rem;min-width:0}
.children-picture-stories *{box-sizing:border-box}.children-picture-stories button,.children-picture-stories a{touch-action:manipulation}.children-picture-stories button{font:inherit;cursor:pointer}.children-picture-stories button:disabled{cursor:default}.children-picture-stories :focus-visible{outline:3px solid #2e8696;outline-offset:4px}.children-picture-stories h2,.children-picture-stories h3{line-height:1.35;letter-spacing:-.025em}.children-picture-stories p{line-height:1.75}.ps-welcome{display:flex;align-items:center;gap:1.1rem;padding:1.4rem;background:linear-gradient(120deg,#fff5d7,#f5f1ff);border:1px solid #dedfcf;border-radius:26px;margin-bottom:1.1rem}.ps-welcome>:is(img,.garden-pal-art){width:88px;height:88px;flex:none;border-radius:50%}.ps-welcome h2{font-size:clamp(1.35rem,4vw,2rem);margin:.3rem 0}.ps-welcome p{margin:0;font-size:.94rem}.ps-eyebrow{font-size:.75rem;letter-spacing:.08em;font-weight:700;color:#6c6155}.ps-shelf-tabs,.ps-mode-tabs{display:flex;gap:.35rem;padding:.35rem;background:#edeedc;border-radius:17px;margin:.9rem 0 1.25rem}.ps-shelf-tabs button,.ps-mode-tabs button{flex:1;min-height:46px;border:0;border-radius:13px;background:none;color:#315b50;padding:.6rem;font-size:.9rem;font-weight:600}.ps-shelf-tabs button[aria-pressed=true],.ps-mode-tabs button[aria-pressed=true]{background:#fff;box-shadow:0 2px 5px #173d2720;color:#164d40}.ps-shelf-heading h3{margin:0 0 .2rem}.ps-shelf-heading p{font-size:.9rem;color:#5a6d63;margin:.2rem 0 1rem}.ps-shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.ps-surah{position:relative;padding:0;text-align:start;border:1px solid #dae0d3;border-radius:23px;background:#fffef7;overflow:hidden;box-shadow:0 4px 0 #e7e8d6;color:var(--ps-ink);min-width:0;transition:transform .15s}.ps-surah:hover{transform:translateY(-2px)}.ps-cover{position:relative;display:block;overflow:hidden;background:#f5efd9;aspect-ratio:1.35}.ps-cover img{width:100%;height:100%;object-fit:cover;display:block}.ps-cover b{position:absolute;inset-inline-start:.7rem;top:.7rem;display:grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:#fffef4ed;color:#31584a;font-size:.75rem}.ps-cover-copy{display:flex;flex-direction:column;gap:.35rem;padding:1rem 2.6rem 1rem 1rem;min-height:100px}.ps-cover-copy strong{font-size:1.05rem}.ps-cover-copy>span,.ps-cover-copy small{font-size:.75rem;color:#5e6a59}.ps-cover-arrow{position:absolute;inset-inline-end:.8rem;bottom:1.15rem;background:#e2eee0;border-radius:50%;width:27px;height:27px;display:grid;place-items:center}.ps-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.ps-theme{display:flex;flex-direction:column;padding:0 0 1rem;border:1px solid #dddccd;border-radius:22px;background:#fffefa;text-align:start;overflow:hidden;color:var(--ps-ink)}.ps-theme>.ps-cover{width:100%;aspect-ratio:1.5}.ps-theme>strong,.ps-theme>span:not(.ps-cover),.ps-theme>small{padding-inline:1rem;margin-top:.7rem}.ps-theme>strong{font-size:1rem}.ps-theme>span:not(.ps-cover){font-size:.85rem;line-height:1.6}.ps-theme>small{color:#667666;font-size:.75rem}.ps-resume{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-radius:18px;padding:1rem;background:#e4f1e8;margin-bottom:1rem}.ps-resume p{margin:0;font-size:.9rem}.ps-button{min-height:46px;border:1px solid #c8d7c9;border-radius:14px;background:#fffdf7;color:#265948;padding:.7rem 1rem;font-weight:600;line-height:1.5}.ps-primary{background:var(--ps-green);border-color:var(--ps-green);color:#fff}.ps-progress-note,.ps-quiet{font-size:.8rem;color:#687469;line-height:1.7}.ps-parent{font-size:.82rem;border-top:1px solid #dce1d4;margin-top:1.5rem;padding-top:1rem}.ps-parent summary{cursor:pointer;min-height:44px;line-height:1.6;color:#586c5e}.ps-parent a{display:block;padding:.55rem 0;color:#236958;overflow-wrap:anywhere}.ps-parent p{margin:.65rem 0}.ps-session-top{display:flex;gap:.7rem;align-items:center;justify-content:space-between;margin:.5rem 0 1rem;flex-wrap:wrap;font-size:.75rem;color:#617363}.ps-back{border:0;background:transparent;color:#285d50;padding:.5rem 0;text-align:start}.ps-motion{display:flex;align-items:center;gap:.45rem;padding:.5rem .7rem;min-height:44px;border:1px solid #d7dfd1;border-radius:12px;background:#f8fbf2;color:#476653;font-size:.75rem}.ps-session-heading{text-align:center;margin:1rem auto}.ps-session-heading h2{margin:.35rem 0 .8rem;font-size:clamp(1.4rem,4vw,2.1rem)}.ps-mode-tabs{max-width:650px;margin-inline:auto}.ps-picture-card{overflow:hidden;max-width:650px;margin:auto;border:1px solid #d4ddcd;border-radius:25px;background:#fffef6;box-shadow:0 6px 0 #e6e9d8}.ps-picture-window{position:relative;aspect-ratio:1.35;overflow:hidden;background:#eee8cf}.ps-picture-window>img{width:100%;height:100%;object-fit:contain;display:block}.ps-picture-label{position:absolute;inset-inline-start:.7rem;bottom:.7rem;background:#fffdf0e6;padding:.3rem .65rem;border-radius:20px;font-size:.75rem;color:#506550}.ps-flip{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;min-height:59px;padding:1rem 1.2rem;border:0;background:#fff7df;color:#4b5d38;font-weight:600}.ps-flip>span{font-size:1.4rem}.ps-meaning{padding:0 1.2rem 1.2rem}.ps-meaning p{font-size:1rem;line-height:1.85}.ps-meaning[hidden]{display:none}.ps-ayah{max-width:650px;margin:1.8rem auto 1rem;padding:1.2rem 1.4rem;border:1px solid #d8dfd5;background:#fffefa;border-radius:21px}.ps-ayah-heading{display:flex;justify-content:space-between;gap:.7rem;font-size:.75rem;color:#6a7b69}.ps-quran{font-family:Amiri,'Noto Naskh Arabic',serif;font-size:clamp(1.7rem,5vw,2.15rem);line-height:2.05!important;letter-spacing:normal;text-align:center;overflow-wrap:anywhere;margin:1rem 0;word-break:normal;font-feature-settings:normal;font-variant-ligatures:normal}.ps-audio{display:flex;justify-content:center;gap:.5rem}.ps-audio .ps-button{font-size:.8rem;min-height:44px}.ps-audio-status{font-size:.75rem;text-align:center;margin:.4rem 0 0;min-height:0}.ps-audio-status:empty{display:none}.ps-text-loading{font-size:.9rem;text-align:center;padding:1rem}.ps-next-prev{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;max-width:650px;margin:1rem auto}.ps-next-prev .ps-button{font-size:.86rem}.ps-challenge{max-width:650px;margin:1rem auto;padding:1.35rem;border-radius:24px;background:#fff9eb;border:1px solid #e5d9b9}.ps-challenge h3{margin:.1rem 0 1rem;font-size:1.25rem}.ps-choices{display:grid;gap:.7rem}.ps-choice{display:flex;align-items:center;gap:.8rem;width:100%;border:2px solid #e2e5d5;background:#fff;color:#304c40;border-radius:17px;padding:.9rem 1rem;text-align:start;line-height:1.65;min-height:65px}.ps-choice>span{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;background:#f6edd8;font-size:.75rem}.ps-choice.is-chosen{border-color:#6d9c7b;background:#f1f8eb}.ps-choice:disabled{opacity:1}.ps-answer-feedback{text-align:center;margin-top:1rem;padding:1rem;border-radius:20px;background:#fff0d6;color:#59482d}.ps-answer-feedback.is-correct{background:#e4f5df;color:#214e33}.ps-answer-feedback>strong{display:block;font-size:1.3rem;line-height:1.5}.ps-answer-feedback p{font-size:.94rem}.ps-answer-feedback small{display:block;font-size:.75rem}.ps-big-tick{display:block;color:#26814e;font-size:4rem;line-height:1.1;margin:.3rem auto .6rem}.ps-big-tick svg{width:82px;height:82px;display:block;margin:auto}.ps-big-tick circle{fill:#fff}.ps-big-tick path{stroke:#269452;stroke-width:7;fill:none;stroke-linecap:round;stroke-linejoin:round}.ps-reward-stars{display:flex;justify-content:center;gap:.65rem;color:#d79721;font-size:1.9rem}.ps-celebrate .ps-big-tick{animation:ps-pop .6s ease-out both}.ps-celebrate .ps-reward-stars span{animation:ps-star .8s ease-out both}.ps-celebrate .ps-reward-stars span:nth-child(2){animation-delay:.1s}.ps-celebrate .ps-reward-stars span:nth-child(3){animation-delay:.2s}.ps-match{max-width:650px;margin:1rem auto;padding:1.2rem;border-radius:24px;border:1px solid #dbd8e9;background:#f5f2fc}.ps-match h3{margin:0;font-size:1.15rem}.ps-match header p{font-size:.86rem;margin:.4rem 0 1rem}.ps-match-pictures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.ps-match-pictures button{border:3px solid transparent;background:#fff;border-radius:17px;padding:0;position:relative;aspect-ratio:1;overflow:hidden}.ps-match-pictures button[aria-pressed=true]{border-color:#6d5597;box-shadow:0 0 0 3px #c8bce0}.ps-match-pictures button:disabled{border-color:#67a775;opacity:.72}.ps-match-pictures img{width:100%;height:100%;object-fit:cover;display:block}.ps-match-pictures button>span{position:absolute;bottom:.3rem;inset-inline-end:.3rem;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fffef0;color:#345744;font-size:.75rem}.ps-match-meanings{display:grid;gap:.6rem;margin-top:1rem}.ps-match-meanings .ps-button{text-align:start;font-weight:500;font-size:.88rem;background:#fff}.ps-match-meanings .ps-button:disabled{color:#627062;background:#edece8}.ps-match-message{text-align:center;line-height:1.7;min-height:3rem;margin-top:1rem;font-size:.9rem}.ps-match-message strong{display:block;font-size:1.2rem}.ps-match>.ps-button{display:block;margin:auto}.ps-art-fallback{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.7rem;min-height:140px;height:100%;width:100%;background:#f4eed7;color:#756e4b;font-size:.8rem;text-align:center;padding:1rem}.ps-art-fallback svg{width:62px;height:62px;fill:none;stroke:#8a9470;stroke-width:3}.ps-loading{padding:2rem;background:#fff9e9;border-radius:24px}.ps-loading a{display:inline-block;padding:1rem;color:#265f48}.ps-save-warning{font-size:.8rem;padding:.8rem 1rem;background:#fff1d3;border-radius:15px}.ps-motion-on[data-motion=float] .ps-picture-window>img{animation:ps-float 7s ease-in-out 2}.ps-motion-on[data-motion=sway] .ps-picture-window>img{animation:ps-sway 7s ease-in-out 2}.ps-motion-on[data-motion=glow] .ps-picture-window{animation:ps-glow 5s ease-in-out 2}.quest-picture-entry{display:flex;align-items:center;gap:1rem;border:1px solid #dbdbc1;border-radius:23px;background:linear-gradient(110deg,#fff1cb,#f0eafa);padding:1rem;margin:0 0 1.1rem;color:#304c40;text-decoration:none}.quest-picture-entry img{width:72px;height:72px;object-fit:cover;border-radius:18px}.quest-picture-entry strong,.quest-picture-entry small{display:block}.quest-picture-entry strong{font-size:1.05rem}.quest-picture-entry small{font-size:.82rem;line-height:1.6;margin-top:.25rem}.quest-picture-entry>b{margin-inline-start:auto;font-size:1.3rem}.children-navigation-active .ps-session-top>.ps-back{display:none}
@keyframes ps-pop{0%{transform:scale(.65)}60%{transform:scale(1.12)}100%{transform:scale(1)}}@keyframes ps-star{0%{transform:translateY(10px) scale(.5);opacity:.2}100%{transform:none;opacity:1}}@keyframes ps-float{0%,100%{transform:scale(1.025) translateY(0)}50%{transform:scale(1.025) translateY(-1.5%)}}@keyframes ps-sway{0%,100%{transform:scale(1.035) rotate(-.6deg)}50%{transform:scale(1.035) rotate(.6deg)}}@keyframes ps-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.06)}}
@media(max-width:650px){.ps-shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.ps-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.ps-welcome{padding:1rem;gap:.7rem}.ps-welcome>:is(img,.garden-pal-art){width:65px;height:65px}.ps-welcome p{font-size:.8rem}.ps-welcome h2{font-size:1.3rem}.ps-cover-copy{padding:.8rem 1.7rem .8rem .8rem;min-height:96px}.ps-cover-copy strong{font-size:.88rem}.ps-cover-copy>span{font-size:.75rem}.ps-cover-arrow{width:22px;height:22px;inset-inline-end:.5rem;font-size:.75rem}.ps-resume{align-items:stretch;flex-direction:column;gap:.6rem}.ps-resume .ps-button{font-size:.84rem}.ps-mode-tabs button{font-size:.77rem;padding:.55rem .3rem;line-height:1.5}.ps-ayah{padding:1rem}.ps-picture-window{aspect-ratio:1.1}.ps-picture-card{border-radius:20px}.ps-flip{font-size:.85rem;min-height:55px}.ps-meaning p{font-size:.91rem}.ps-session-top{gap:.4rem}.ps-session-top>.ps-motion{margin-inline-start:auto}.ps-session-heading h2{font-size:1.4rem}.ps-challenge{padding:1rem}.ps-challenge h3{font-size:1.1rem}.ps-choice{font-size:.9rem;padding:.7rem}.ps-theme>strong,.ps-theme>span:not(.ps-cover),.ps-theme>small{padding-inline:.7rem}.ps-theme>strong{font-size:.86rem}.ps-theme>span:not(.ps-cover){font-size:.75rem}.ps-match{padding:.85rem}.ps-match-pictures{gap:.4rem}.ps-next-prev .ps-button{font-size:.78rem;padding:.65rem .55rem}.quest-picture-entry{gap:.7rem;padding:.8rem}.quest-picture-entry img{width:60px;height:60px}.quest-picture-entry strong{font-size:.93rem}.quest-picture-entry small{font-size:.75rem}}
@media(max-width:360px){.ps-welcome{align-items:flex-start}.ps-welcome>:is(img,.garden-pal-art){width:48px;height:48px}.ps-welcome h2{font-size:1.15rem}.ps-shelf-tabs button{font-size:.8rem}.ps-mode-tabs{gap:.15rem;padding:.25rem}.ps-mode-tabs button{font-size:.75rem}.ps-cover-copy strong{font-size:.8rem}.ps-shelf-grid,.ps-theme-grid{gap:.5rem}.ps-cover-copy small{font-size:.75rem}.ps-next-prev{gap:.45rem}.ps-quran{font-size:1.65rem}.ps-picture-label{font-size:.75rem}.ps-session-top{font-size:.75rem}.ps-motion{font-size:.75rem}.ps-theme>span:not(.ps-cover){font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.children-picture-stories *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.dark .children-picture-stories{--ps-ink:#e2eedc;--ps-green:#367f67}body.dark .ps-welcome,body.dark .ps-resume,body.dark .ps-picture-card,body.dark .ps-ayah,body.dark .ps-surah,body.dark .ps-theme,body.dark .ps-challenge,body.dark .ps-match,body.dark .ps-flip,body.dark .ps-choice,body.dark .ps-mode-tabs,body.dark .ps-shelf-tabs,body.dark .quest-picture-entry{background:#243d32;color:#e3eedc;border-color:#4a6353}body.dark .ps-button,body.dark .ps-shelf-tabs button[aria-pressed=true],body.dark .ps-mode-tabs button[aria-pressed=true],body.dark .ps-match-meanings .ps-button{background:#355443;color:#e7f4e0;border-color:#597761}body.dark .ps-quiet,body.dark .ps-progress-note,body.dark .ps-eyebrow,body.dark .ps-cover-copy>span,body.dark .ps-cover-copy small,body.dark .ps-parent summary,body.dark .ps-ayah-heading,body.dark .ps-shelf-heading p{color:#b8cdb7}body.dark .ps-parent a{color:#9bd4ba}body.dark .ps-shelf-tabs button,body.dark .ps-mode-tabs button{color:#b9d7c2}body.dark .ps-theme>small{color:#b8cdb7}

/* Full-page story illustrations share the same generated picture language. */
.quest-story-art .quest-story-visual{width:100%;max-width:420px;border-radius:20px;overflow:hidden;background:#f5eedc;aspect-ratio:1;display:grid;place-items:center}.quest-story-visual>img{width:100%;height:100%;object-fit:contain;display:block}.quest-story-visual>img[hidden],.quest-story-visual>[hidden]{display:none}.quest-story-visual>[data-quest-art-fallback]{width:100%;height:100%;align-content:center}.quest-story-visual .quest-scene{margin:auto;max-width:80%}.quest-story{grid-template-columns:minmax(220px,1fr) minmax(0,1.3fr)}
@media(max-width:700px){.quest-story{grid-template-columns:1fr}.quest-story-art{flex-direction:column;gap:.6rem}.quest-story-art .quest-story-visual{max-width:420px;aspect-ratio:1.3}.quest-story-art>span{align-self:flex-end}.quest-story-copy>p:not(.quest-kicker){line-height:1.9}}
/* Juz Amma stays a small, searchable shelf rather than a wall of pictures. */
.ps-search-label{display:block;font-size:.82rem;font-weight:600;margin:.9rem 0 .4rem}.ps-search-row{display:flex;gap:.5rem;align-items:center}.ps-search-row input{flex:1;min-width:0;width:100%;min-height:48px;border:1px solid #becfbf;border-radius:14px;background:#fffef8;color:var(--ps-ink);padding:.75rem 1rem;font:inherit;font-size:1rem}.ps-search-row input::placeholder{color:#607266}.ps-search-row .ps-button{font-size:.8rem}.ps-group-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:1rem 0 .65rem}.ps-group-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-width:0;min-height:68px;border:1px solid #d0dcc8;border-radius:15px;background:#f6f7ec;color:#345944;padding:.65rem .5rem;text-align:center;line-height:1.4}.ps-group-tabs strong{font-size:.86rem;font-weight:600}.ps-group-tabs span{font-size:.75rem;opacity:.9}.ps-group-tabs button[aria-pressed=true]{background:#246d58;border-color:#246d58;color:#fff}.ps-search-status{font-size:.8rem;line-height:1.65;color:#5b6d60;margin:.65rem 0 1rem;min-height:1.7em}.ps-shelf-grid.ps-shelf-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.ps-shelf-compact .ps-surah{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:stretch;border-radius:18px;min-height:106px}.ps-shelf-compact .ps-cover{width:88px;height:100%;aspect-ratio:auto}.ps-shelf-compact .ps-cover img{min-height:106px}.ps-shelf-compact .ps-cover b{top:.4rem;inset-inline-start:.4rem;min-width:29px;height:29px;font-size:.75rem}.ps-shelf-compact .ps-cover-copy{justify-content:center;padding-block:.8rem;padding-inline:.9rem 2.2rem;min-height:0;gap:.25rem}.ps-shelf-compact .ps-cover-copy strong{font-size:1rem;line-height:1.45}.ps-shelf-compact .ps-cover-copy>span,.ps-shelf-compact .ps-cover-copy small{font-size:.75rem;line-height:1.5}.ps-shelf-compact .ps-cover-arrow{top:50%;bottom:auto;transform:translateY(-50%);inset-inline-end:.55rem;width:24px;height:24px}.ps-ayah-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:1rem;max-width:650px;margin:0 auto 1.1rem;padding:.9rem 1rem;border:1px solid #dce2d4;border-radius:16px;background:#f7f9ef}.ps-ayah-picker label{display:flex;flex-direction:column;gap:.35rem;font-size:.8rem;font-weight:600;min-width:0}.ps-ayah-picker select{font:inherit;font-size:.88rem;min-height:44px;max-width:100%;width:100%;border:1px solid #c7d6c7;border-radius:10px;background:#fffef8;color:#264e3e;padding:.5rem .65rem}.ps-question-progress{font-size:.75rem;line-height:1.55;color:#536d5b;padding-bottom:.4rem;min-width:0}.ps-question-progress progress{display:block;width:100%;height:7px;accent-color:#39805c;margin-top:.65rem}
@media(max-width:600px){.ps-shelf-grid.ps-shelf-compact{grid-template-columns:minmax(0,1fr);gap:.7rem}.ps-shelf-compact .ps-surah{grid-template-columns:82px minmax(0,1fr);min-height:96px}.ps-shelf-compact .ps-cover{width:82px}.ps-shelf-compact .ps-cover img{min-height:96px}.ps-shelf-compact .ps-cover-copy{padding-block:.7rem;padding-inline:.9rem 2.1rem}.ps-shelf-compact .ps-cover-copy strong{font-size:.96rem}.ps-group-tabs{gap:.4rem}.ps-group-tabs strong{font-size:.8rem}.ps-group-tabs button{padding:.6rem .3rem}.ps-ayah-picker{gap:.7rem;padding:.8rem}.ps-ayah-picker select{font-size:.8rem}.ps-question-progress{font-size:.75rem}}
body.dark .ps-search-row input,body.dark .ps-ayah-picker select{background:#243d32;color:#e3eedc;border-color:#597761}body.dark .ps-search-row input::placeholder{color:#bed0bc}body.dark .ps-group-tabs button,body.dark .ps-ayah-picker{background:#243d32;color:#e3eedc;border-color:#4a6353}body.dark .ps-group-tabs button[aria-pressed=true]{background:#3e7c61;color:#fff}body.dark .ps-search-status,body.dark .ps-question-progress{color:#bdd3bd}

@media(max-width:650px){.ps-welcome{padding:.75rem;gap:.7rem;margin-bottom:.6rem}.ps-welcome>:is(img,.garden-pal-art){width:52px;height:52px}.ps-welcome h2{font-size:1.15rem;margin:.2rem 0;line-height:1.3}.ps-welcome p{display:none}.ps-shelf-tabs{margin:.6rem 0 .8rem}.ps-resume{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.7rem .8rem;margin-bottom:.8rem}.ps-resume p{font-size:.82rem;line-height:1.5}.ps-resume .ps-button{font-size:.8rem;line-height:1.45;max-width:8rem;padding:.6rem .7rem;min-height:44px}.ps-shelf-heading h3{font-size:1.05rem;line-height:1.4}.ps-shelf-heading p{margin:.2rem 0 .6rem;font-size:.88rem;line-height:1.6}.ps-search-label{margin:.6rem 0 .35rem}.ps-group-tabs{margin:.65rem 0 .4rem}.ps-group-tabs button{min-height:60px;padding:.5rem .3rem}.ps-search-status{margin:.4rem 0 .7rem;line-height:1.5}}

/* A direct bridge from single-ayah pictures to sourced story journeys. */
.ps-story-link{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:48px;padding:.8rem 1rem;margin:0 0 1rem;background:#edf4e8;border:1px solid #d4e0cc;border-radius:16px;text-decoration:none;color:#255540}.ps-story-link strong,.ps-story-link small{display:block}.ps-story-link strong{font-size:.95rem}.ps-story-link small{font-size:.78rem;line-height:1.6;margin-top:.2rem;color:#536d5b}.ps-story-link:focus-visible{outline:3px solid #b77931;outline-offset:3px}body.dark .ps-story-link{background:#243d32;color:#e3eedc;border-color:#597761}body.dark .ps-story-link small{color:#bdd3bd}

.ps-cover-copy .ps-cover-theme{font-size:13px;line-height:1.65;color:var(--ps-ink,#214b3a);overflow-wrap:anywhere}

body.children-navigation-active .ps-session-top :is([data-ps-action="picture"],[data-ps-action="shelf"]){display:none}
.ps-session-heading h2,.ps-mode-tabs button{scroll-margin-block-start:5rem}

.ps-opening{display:grid;grid-template-columns:minmax(0,32%) minmax(0,1fr);gap:1rem;align-items:center}
.ps-opening-art img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:1.2rem}
@media(max-width:32rem){.ps-opening{grid-template-columns:1fr}.ps-opening-art img{max-height:7rem;aspect-ratio:2.6}}

.ps-fatiha-entry{display:grid;grid-template-columns:minmax(76px,24%) minmax(0,1fr);gap:clamp(.7rem,3vw,1.3rem);align-items:center;max-width:45rem;width:100%;text-align:start;margin:0 0 1.1rem;padding:0;background:#e8f4ef;color:#163d34;border:1px solid #aecdc0;border-radius:1.5rem .8rem 1.5rem .8rem;overflow:hidden}
.ps-fatiha-entry img{display:block;width:100%;height:auto;aspect-ratio:510/382;object-fit:contain;border-radius:.65rem}
.ps-fatiha-entry>span{min-width:0;padding-block:.65rem;padding-inline-end:.75rem}
.ps-fatiha-entry strong,.ps-fatiha-entry small{display:block;line-height:1.6;word-break:normal}
.ps-fatiha-entry strong{font-size:clamp(1.05rem,4vw,1.35rem)}.ps-fatiha-entry small{font-size:.875rem}
.ps-fatiha-entry:hover,.ps-fatiha-entry:focus-visible{outline:2px solid #32826b;outline-offset:2px}
body.dark .ps-fatiha-entry{background:#203c36;color:#eaf5e9;border-color:#496e60}

.ps-turnable {min-inline-size:0;max-inline-size:650px;margin-inline:auto}
.ps-turnable .ps-next-prev {margin-block:.7rem 1.05rem}
.ps-turnable .ps-flip {min-block-size:48px;padding:.65rem 1rem;font-size:1rem}
.ps-turnable .ps-next-prev button {min-block-size:44px}

/* Keep the illustration beside the question it helps the child answer. */
.ps-question-cue {display:grid;grid-template-columns:clamp(5rem,24%,9rem) minmax(0,1fr);align-items:center;gap:clamp(.7rem,2vw,1.25rem);margin-block-end:1rem}
.ps-question-cue h3 {margin:0;scroll-margin-block-start:calc(var(--appbar-height,68px) + 16px)}
.ps-question-art {aspect-ratio:1;overflow:hidden;border-radius:.9rem;background:var(--ps-cream)}
.ps-question-art img {display:block;width:100%;height:100%;object-fit:cover}
.ps-question-art .ps-art-fallback {height:100%;min-height:0}
.ps-question-art .ps-art-fallback span {display:none}
.children-picture-stories .ps-challenge .ps-choice {display:block;text-align:start;padding:.8rem 1rem;min-block-size:48px}
.ps-answer-feedback {text-align:start}
.ps-answer-feedback p {margin-block:.5rem}
.ps-answer-feedback .ps-button {margin-block-start:.35rem}

.children-picture-stories .ps-library-title {padding:.65rem 1rem;gap:.8rem}
.ps-library-title img {width:3.2rem;height:3.2rem;object-fit:contain}
.ps-library-title h2 {margin:0}
.ps-search-status:empty,.ps-progress-note:empty {display:none}

.children-picture-stories .ps-deck-heading {margin:.45rem 0 .65rem}
.ps-deck-heading h2 {margin:.4rem 0 0;font-size:clamp(1.25rem,4.4vw,1.7rem)}
.ps-deck-context,.ps-lesson-place,.ps-friend-cue,.ps-tools-nav {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.ps-deck-context {font-size:.9rem}
.ps-deck-context .ps-back {min-block-size:44px}
.ps-activity-deck {border:1px solid var(--line,#ccdad0);border-radius:1.05rem;background:var(--panel,#fff);padding:clamp(.7rem,3vw,1.2rem);color:var(--ink,#183d34)}
.ps-lesson-place {justify-content:space-between;color:var(--green,#17604d);font-weight:700}
.ps-lesson-place span {font-size:.875rem;font-variant-numeric:tabular-nums}
.ps-friend-cue {margin:.4rem 0 .55rem;flex-wrap:nowrap}
.ps-friend-cue :is(img,.garden-pal-art) {width:3.1rem;height:3.1rem;object-fit:contain}
.ps-friend-cue small,.ps-friend-cue strong {display:block}
.ps-friend-cue small {color:var(--muted,#57685d);font-size:.82rem}
.ps-activity-deck .ps-picture-card {border:0;padding:0;background:transparent;box-shadow:none}
.ps-activity-deck .ps-picture-window {height:clamp(6.8rem,21svh,13.6rem);aspect-ratio:auto;border-radius:.7rem}
.ps-activity-deck .ps-picture-window img {object-fit:contain;background:var(--soft,#f3f4e9)}
.ps-activity-deck .ps-deck-ayah,.ps-activity-deck .ps-challenge,.ps-activity-deck .ps-match {padding:.6rem 0 0;margin:0;background:transparent;border:0;box-shadow:none}
.ps-deck-ayah .ps-quran {margin-block:.4rem;font-size:clamp(1.55rem,5.8vw,2.25rem)}
.ps-deck-meaning {display:grid;grid-template-columns:minmax(5rem,28%) minmax(0,1fr);align-items:center;gap:.85rem;margin:1rem 0}
.ps-deck-meaning p {font-size:1.07rem;margin:0}
.ps-activity-deck .ps-next-prev {margin:.9rem 0 0}
.ps-deck-tools,.ps-source-drawer {border-bottom:1px solid var(--line,#cbd9d1);padding:.25rem 0}
.ps-deck-tools>summary,.ps-source-drawer>summary {cursor:pointer;min-block-size:44px;padding:.7rem .25rem;font-weight:650}
.ps-tools-nav {margin:.65rem 0}
.ps-audio-status:empty {display:none}

.ps-activity-deck .ps-deck-heading {margin:0}
.ps-deck-id,.ps-guide-row {display:flex;align-items:center;gap:.5rem;justify-content:space-between}
.ps-deck-id h2 {margin:0;flex:1;min-inline-size:0;text-align:start}
.ps-deck-id>span {font-size:.8rem}
.ps-guide-row {margin-block:.25rem .45rem}
.ps-guide-row .ps-friend-cue {margin:0}
.ps-guide-row .ps-friend-cue :is(img,.garden-pal-art) {width:2.6rem;height:2.6rem}
.ps-guide-row .ps-lesson-place {gap:.35rem;justify-content:end;font-size:.85rem}
.ps-activity-deck .ps-deck-ayah {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.3rem;padding:.45rem 0}
.ps-deck-ayah .ps-quran {margin:0}
.ps-deck-ayah .ps-audio {margin:0}
.ps-play-ayah {display:grid;place-items:center;width:44px;height:44px;background:var(--green,#17604d);color:var(--on-accent,#fff);border:0;border-radius:50%}
.ps-play-ayah svg {display:block;width:1.25rem;height:1.25rem;fill:currentColor}
.ps-play-ayah:disabled {opacity:.55}
.ps-deck-ayah .ps-audio-status {grid-column:1/-1;margin:0}
.ps-reading-help>summary {min-block-size:44px;padding:.65rem .25rem;cursor:pointer;font-weight:650}
body.children-navigation-active .ps-activity-deck .ps-deck-heading .ps-session-top {display:none}
.ps-activity-deck :is(.ps-deck-heading,.ps-guide-row,.ps-picture-window,.ps-deck-meaning,.ps-question-cue,.ps-next-prev),
.cs-story-deck :is(.cs-story-guide,.cs-scene-art),.lr-lesson-deck .lr-picture-scene {-webkit-user-select:none;user-select:none}
@media(max-height:750px){.ps-activity-deck .ps-picture-window{height:clamp(6.4rem,17svh,8.5rem)}.ps-activity-deck .ps-next-prev{margin-block-start:.45rem}}

.ps-deck-heading .ps-session-top .ps-back {min-inline-size:44px;min-block-size:44px;display:inline-grid;place-items:center;padding:0}
.ps-deck-heading .ps-back svg {width:1.35rem;height:1.35rem;stroke:currentColor;stroke-width:2;fill:none;stroke-linejoin:round;stroke-linecap:round}
[dir="rtl"] .ps-deck-heading .ps-back svg {transform:scaleX(-1)}
.ps-deck-heading .ps-session-top .ps-back[hidden] {display:none}
@media(max-width:840px){
 body.simple-shell.children-navigation-active:not(.reader-focus):has(#mobileNav [data-page="home"]):has(.ps-activity-deck) .ps-activity-deck .ps-deck-heading {display:flex;align-items:center;gap:.45rem}
 body.simple-shell.children-navigation-active:not(.reader-focus):has(#mobileNav [data-page="home"]):has(.ps-activity-deck) .ps-activity-deck .ps-deck-heading .ps-session-top {display:flex;flex:none;margin:0;padding:0}
 body.simple-shell.children-navigation-active:not(.reader-focus):has(#mobileNav [data-page="home"]):has(.ps-activity-deck) .ps-activity-deck .ps-deck-heading .ps-back:not([hidden]) {display:inline-grid}
 .ps-deck-id {flex:1;min-inline-size:0}
}

.ps-shelf-search>summary,.ps-other-shelves>summary,.ps-cover-source>summary{display:list-item;cursor:pointer;font-weight:650;padding:.65rem .25rem;min-height:44px}
/* The shelf pairs uncropped source artwork with its title in either direction. */
.children-picture-stories mushaf-step-guide[data-choice-deck] :is(.ps-surah,.ps-theme) {
  display:grid;grid-template-columns:clamp(5rem,28%,11rem) minmax(0,1fr);align-items:center;
  gap:clamp(.6rem,2vw,1.2rem);text-align:start;background:var(--panel,#fff);
  border:1px solid var(--line,#d0dccc);border-radius:.85rem;padding:.65rem;
}
.children-picture-stories mushaf-step-guide[data-choice-deck] .ps-cover {
  display:block;inline-size:100%;block-size:auto;aspect-ratio:1;align-self:center;
  background:var(--light,#f4f6ed);border-radius:.6rem;overflow:hidden;
}
.children-picture-stories mushaf-step-guide[data-choice-deck] .ps-cover img {
  display:block;inline-size:100%;block-size:100%;min-height:0;object-fit:contain;
}
.children-picture-stories mushaf-step-guide[data-choice-deck] .ps-cover-copy {
  display:grid;gap:.25rem;min-height:0;min-width:0;padding:.25rem 0;margin:0;
}
.ps-cover-copy>.ps-shelf-title {display:flex;align-items:baseline;gap:.4rem;flex-wrap:wrap}
.ps-shelf-title bdi {font-size:.8rem;line-height:1.6;color:var(--muted);font-weight:600}
.ps-theme .ps-cover-copy strong {font-size:1rem;line-height:1.5}
.ps-theme .ps-cover-copy>span,.ps-theme .ps-cover-copy>small {font-size:.9rem;line-height:1.6}
.children-picture-stories mushaf-step-guide[data-choice-deck] .ps-cover-arrow{display:none}
.ps-shelf-search .ps-order{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.35rem 0;color:var(--ink);font-weight:650}
.ps-shelf-search .ps-order select{min-height:44px;padding:.35rem .65rem;border:1px solid var(--line);border-radius:.55rem;background:var(--panel);color:inherit;font:inherit}

/* The opening uses the same compact reading card and keeps both actions together. */
.ps-opening-deck .ps-deck-ayah{display:block}
.ps-opening-deck .ps-next-prev .ps-button{display:flex;align-items:center;justify-content:center;gap:.45rem;min-inline-size:0}
.ps-opening-deck .ps-next-prev svg{inline-size:1.2rem;block-size:1.2rem;fill:currentColor;flex:none}
.ps-opening-deck .ps-picture-card{margin-block:.55rem}
.children-picture-stories .ps-deck-ayah .ps-quran{font-size:clamp(1.75rem,6vw,2.25rem);overflow-wrap:normal}
.children-picture-stories[dir="rtl"] .ps-deck-id h2{letter-spacing:0;line-height:1.6}

/* Let a child see the whole illustration, then enlarge details in place. */
.children-picture-stories {container:picture-lesson / inline-size}
.ps-activity-deck .ps-picture-card {
 position:relative;width:100%;max-width:none;margin:.55rem 0;
}
.ps-activity-deck .ps-picture-window {
 height:clamp(8rem,24vh,14rem);height:clamp(8rem,24svh,14rem);
 background:var(--light,#edf4ea);
}
.ps-activity-deck .ps-picture-window img {
 object-fit:contain;background:transparent;
}
.ps-activity-deck .ps-picture-card[data-ps-large="true"] .ps-picture-window {
 height:clamp(15rem,54vh,32rem);height:clamp(15rem,54svh,32rem);
}
.ps-activity-deck .ps-picture-size {
 position:absolute;inset-block-start:.35rem;inset-inline-end:.35rem;
 display:grid;place-items:center;inline-size:2.75rem;block-size:2.75rem;
 padding:0;border:1px solid var(--line);border-radius:.65rem;
 background:var(--panel,#fff);color:var(--green,#246b51);
}
.ps-picture-size svg {inline-size:1.2rem;block-size:1.2rem}
.ps-activity-deck .ps-picture-size[aria-pressed="true"] {
 color:var(--panel,#fff);background:var(--green,#246b51);
}
.ps-activity-deck .ps-question-art img,
.ps-activity-deck .ps-match-pictures img {object-fit:contain}
.ps-activity-deck .ps-lesson-place {display:grid;grid-template-columns:auto auto;gap:.1rem .45rem;align-items:center}
.ps-lesson-place progress {grid-column:1/-1;inline-size:100%;height:.25rem;accent-color:var(--green,#246b51)}
.ps-activity-deck .ps-next-prev .ps-button {font-size:.94rem;line-height:1.5}
.ps-activity-deck .ps-picture-size:focus-visible {outline-offset:-4px}
@container picture-lesson (min-width:38rem) {
 .ps-activity-deck:has(> .ps-picture-card) {
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);
  align-items:center;column-gap:clamp(1rem,3cqi,2rem);
 }
 .ps-activity-deck .ps-deck-heading,.ps-activity-deck .ps-guide-row {grid-column:1 / -1}
 .ps-activity-deck:has(> .ps-picture-card)>.ps-picture-card {grid-column:1;grid-row:span 2}
 .ps-activity-deck:has(> .ps-picture-card)>.ps-deck-ayah,
 .ps-activity-deck:has(> .ps-picture-card)>.ps-next-prev {grid-column:2;margin-inline:0}
 .ps-activity-deck .ps-picture-window {height:clamp(12rem,31cqi,18rem)}
 .ps-activity-deck:has([data-ps-large="true"])>.ps-picture-card,
 .ps-activity-deck:has([data-ps-large="true"])>.ps-deck-ayah,
 .ps-activity-deck:has([data-ps-large="true"])>.ps-next-prev {grid-column:1 / -1;grid-row:auto}
}
@media(prefers-reduced-motion:reduce) {
 .ps-activity-deck .ps-picture-card img,.ps-activity-deck .ps-picture-window {animation:none!important}
}


/* /children-stories.css */
.children-stories{--cs-ink:#244d46;--cs-green:#276653;--cs-pale:#edf4e9;--cs-line:#d5e0cd;color:var(--cs-ink);font-family:ReadexPro,system-ui,sans-serif;max-width:960px;margin:0 auto 24px;line-height:1.65}.children-stories *{box-sizing:border-box}.children-stories [hidden]{display:none!important}.children-stories button,.children-stories input,.children-stories select{font:inherit}.children-stories button,.children-stories a{touch-action:manipulation}.children-stories button{cursor:pointer}.children-stories button:disabled{cursor:default}.children-stories :focus-visible{outline:3px solid #b77b23;outline-offset:4px}.children-stories h2,.children-stories h3{line-height:1.3;margin:0;color:var(--cs-ink)}.cs-eyebrow{display:block;font-size:.75rem;font-weight:750;letter-spacing:.06em;color:#53715d;margin-bottom:7px}.cs-welcome{padding:23px 24px;background:#f6f4e8;border:1px solid var(--cs-line);border-radius:24px;margin-bottom:16px}.cs-welcome h2{font-size:clamp(1.45rem,4vw,2rem)}.cs-welcome p{margin:8px 0 0;font-size:.96rem;max-width:55ch}.cs-button,.cs-home{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid #adc5b4;border-radius:13px;background:#fffef8;color:var(--cs-ink);text-decoration:none;text-align:center;font-weight:650;line-height:1.45;gap:7px}.cs-primary{background:var(--cs-green);color:#fff;border-color:var(--cs-green)}.cs-button:hover,.cs-home:hover{filter:brightness(.96)}.cs-resume{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:0 0 16px;background:var(--cs-pale);border-radius:17px}.cs-resume strong,.cs-resume small{display:block}.cs-resume small{font-size:.81rem}.cs-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}.cs-groups button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;min-height:54px;background:#fffef8;color:var(--cs-ink);border:1px solid var(--cs-line);border-radius:15px;padding:9px 10px;font-size:.89rem;font-weight:650;line-height:1.4}.cs-groups button[aria-pressed=true]{background:var(--cs-green);color:#fff;border-color:var(--cs-green)}.cs-groups small{min-width:22px;border-radius:50%;background:#d6dfd340;padding:1px 4px}.cs-search-label{display:block;font-size:.84rem;font-weight:650;margin-bottom:5px}.cs-search-row{display:flex;gap:8px}.cs-search-row input{width:100%;min-width:0;min-height:46px;border:1px solid #aebfaf;border-radius:13px;background:#fffefb;padding:10px 14px;color:var(--cs-ink)}.cs-search-status{font-size:.82rem;margin:9px 0 14px;color:#54705d}.cs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cs-cover{display:flex;flex-direction:column;min-width:0;text-align:start;padding:0;border:1px solid var(--cs-line);border-radius:20px;background:#fffdf5;overflow:hidden;color:var(--cs-ink);box-shadow:0 4px 0 #dce6d14d}.cs-cover:hover{border-color:#6b947a}.cs-cover-art{display:block;aspect-ratio:1.3;overflow:hidden;background:#f1eddb;width:100%}.cs-cover-art img{width:100%;height:100%;object-fit:cover}.cs-cover-copy{display:flex;flex-direction:column;gap:6px;padding:13px 15px 16px;flex:1}.cs-cover-copy strong{font-size:1.03rem;line-height:1.4}.cs-cover-copy>span{font-size:.84rem;line-height:1.6}.cs-cover-copy>small{font-size:.75rem;color:#5a715d;line-height:1.5}.cs-cover-copy>small:last-child{margin-top:auto;padding-top:4px}.cs-progress-note,.cs-quiet{font-size:.83rem;color:#536d5c}.cs-progress-note{margin:20px 4px 12px}.cs-parent{margin:16px 0;border:1px solid var(--cs-line);border-radius:16px;background:#f8f8ef;padding:0 16px}.cs-parent summary{min-height:48px;padding:12px 0;font-weight:650;font-size:.88rem;cursor:pointer}.cs-parent p{font-size:.87rem;line-height:1.8;margin:10px 0 14px;overflow-wrap:anywhere}.cs-parent a{display:block;width:fit-content;max-width:100%;min-height:44px;padding:9px 0;color:#255a4d;font-size:.87rem;overflow-wrap:anywhere}.cs-session-top{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:18px}.cs-motion{margin-inline-start:auto;min-height:44px;border:0;background:#e9f0e2;border-radius:12px;color:#385d4a;padding:9px 12px;font-size:.8rem!important}.cs-motion[aria-pressed=true]{background:#d3e7c7}.children-navigation-active .cs-session-top>[data-cs-action=shelf],.children-navigation-active .cs-session-top>.cs-home{display:none}.children-navigation-active .cs-session-top{margin-bottom:8px}.cs-session-heading{margin:0 0 16px}.cs-session-heading h2{font-size:clamp(1.5rem,4vw,2rem)}.cs-page-picker{display:flex;gap:10px;align-items:end;justify-content:space-between;margin-bottom:16px}.cs-page-picker label{font-size:.8rem;font-weight:650;flex:1;min-width:0}.cs-page-picker select{display:block;width:100%;min-height:46px;margin-top:5px;border:1px solid #b4c6b1;background:#fffdf6;border-radius:12px;color:var(--cs-ink);padding:8px 12px}.cs-page-picker>span{font-size:.85rem;white-space:nowrap;padding:11px}.cs-scene{background:#fffdf5;border:1px solid var(--cs-line);border-radius:24px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.cs-scene-art{position:relative;overflow:hidden;background:#efe9d3;aspect-ratio:1}.cs-scene-art>img{display:block;width:100%;height:100%;object-fit:contain}.cs-scene-art>span{position:absolute;bottom:12px;inset-inline-start:12px;border-radius:12px;background:#fffef4ed;padding:4px 9px;font-size:.73rem;color:#4b654f}.cs-story-copy{padding:24px}.cs-story-copy>p{font-size:1.08rem;line-height:1.9;margin:0 0 14px;white-space:pre-line}.cs-source-type{display:block;font-size:.75rem;color:#5d715b;line-height:1.5}.cs-ayah{background:#fcfaf1;border:1px solid #dfdec8;border-radius:20px;margin:18px 0;padding:20px}.cs-ayah-heading{display:flex;justify-content:space-between;gap:12px;font-size:.86rem}.cs-ayah-heading bdi{color:#687458}.cs-quran{font-family:'QatrahEdition-hafs',Amiri,'Noto Naskh Arabic',serif!important;font-size:clamp(1.75rem,5vw,2.3rem);line-height:2.3;text-align:center;margin:16px 0 20px;color:#263e36;word-break:normal;overflow-wrap:normal}.cs-audio{display:flex;gap:8px;flex-wrap:wrap}.cs-audio-status{font-size:.8rem;margin:8px 0 0;color:#526c57}.cs-audio-status:empty{display:none}.cs-next-prev{display:flex;justify-content:space-between;gap:12px;margin:18px 0}.cs-next-prev>*{max-width:60%}.cs-activity{background:#edf4e8;border:1px solid #c7d9be;border-radius:22px;padding:23px;margin:20px 0}.cs-activity h3{font-size:1.2rem;margin-bottom:18px}.cs-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cs-choices button{display:flex;align-items:center;gap:10px;text-align:start;padding:16px;border:2px solid #c7d7c0;border-radius:16px;background:#fffef8;color:var(--cs-ink);min-height:72px;line-height:1.6;font-weight:600}.cs-choices button>span{display:grid;place-items:center;background:#edf2e4;border-radius:50%;width:29px;height:29px;flex:none;font-size:.85rem}.cs-choices button.is-chosen{border-color:#547d5b;background:#f7f6de}.cs-feedback{margin-top:20px;text-align:center;padding:18px;border-radius:18px;background:#fffdf1;outline-offset:4px}.cs-feedback>strong{display:block;font-size:1.2rem}.cs-feedback p{line-height:1.8;margin:10px 0}.cs-feedback.is-retry{background:#fcf4df}.cs-feedback small{font-size:.8rem;color:#4f6c53}.cs-big-tick{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 12px;border-radius:50%;background:#d4e8ba;color:#356336;font:700 56px/1 system-ui}.cs-takeaway{font-weight:650}.cs-art-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;height:100%;width:100%;background:#edeedc;color:#58664c}.cs-art-fallback span{font-size:2rem}.cs-art-fallback p{font-size:.83rem;margin:4px 0}.cs-save-warning,.cs-load-error{background:#fff3d7;border:1px solid #dfce9e;border-radius:16px;padding:16px;line-height:1.7}.cs-load-error>a{display:inline-flex;align-items:center;min-height:44px;margin:12px;color:#375d4d}.cs-motion-on[data-motion=float] .cs-scene-art img{animation:cs-float 5s ease-in-out infinite}.cs-motion-on[data-motion=sway] .cs-scene-art img{animation:cs-sway 6s ease-in-out infinite}.cs-motion-on[data-motion=glow] .cs-scene-art img{animation:cs-glow 5s ease-in-out infinite}.cs-celebrate .cs-big-tick{animation:cs-pop .65s ease-out 1}@keyframes cs-float{50%{transform:translateY(-4px)}}@keyframes cs-sway{50%{transform:rotate(.6deg)}}@keyframes cs-glow{50%{filter:brightness(1.045)}}@keyframes cs-pop{0%{transform:scale(.8)}55%{transform:scale(1.06)}100%{transform:scale(1)}}
@media(max-width:720px){.cs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cs-scene{grid-template-columns:1fr}.cs-scene-art{max-height:460px;width:100%}.cs-story-copy{padding:20px}.cs-welcome{padding:18px}.cs-choices{grid-template-columns:1fr}.cs-activity{padding:18px}.cs-ayah{padding:16px}.cs-groups{gap:6px}.cs-groups button{font-size:.81rem;padding:9px 7px}.cs-cover-copy{padding:12px}.cs-cover-copy>span{font-size:.81rem}}
@media(max-width:400px){.cs-welcome{padding:15px}.cs-welcome p{font-size:.86rem}.cs-resume{padding:10px 12px}.cs-resume strong{font-size:.86rem}.cs-resume small{font-size:.75rem}.cs-resume .cs-button{padding:9px 12px}.cs-groups{margin-bottom:12px}.cs-groups button{font-size:.77rem}.cs-grid{grid-template-columns:1fr}.cs-cover{display:grid;grid-template-columns:108px minmax(0,1fr)}.cs-cover-art{height:100%;aspect-ratio:auto;min-height:140px}.cs-cover-copy strong{font-size:.97rem}.cs-cover-copy{gap:4px}.cs-cover-copy>span{font-size:.8rem}.cs-story-copy>p{font-size:1rem}.cs-next-prev .cs-button{font-size:.84rem;padding:10px 12px}.cs-page-picker>span{padding-inline:0}}
@media(prefers-reduced-motion:reduce){.children-stories *, .children-stories *::before,.children-stories *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.cs-picture-books{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.7rem;margin:1rem 0}
.cs-picture-books a{display:grid;grid-template-columns:clamp(4.5rem,23%,6.5rem) minmax(0,1fr);align-items:center;overflow:hidden;min-height:5.4rem;border:1px solid var(--cs-line);border-radius:1.15rem .8rem;background:var(--cs-pale);color:var(--cs-ink);text-decoration:none}
.cs-picture-books img{display:block;width:100%;height:100%;max-height:7rem;object-fit:cover}
.cs-picture-books span{padding:.6rem .8rem;min-width:0}.cs-picture-books strong,.cs-picture-books small{display:block;line-height:1.6}.cs-picture-books a:focus-visible{outline:3px solid var(--cs-green);outline-offset:2px}

.cs-episode-study{display:grid;gap:1rem;max-width:42rem;margin-inline:auto;color:var(--ink,#21382b);font:inherit;text-align:start}
.cs-episode-study h2,.cs-episode-study h3,.cs-episode-study p{margin:0}
.cs-episode-study h2{font-size:clamp(1.4rem,4vw,2rem)}
.cs-episode-study h3{font-size:1.08rem;margin-block-end:.35rem}
.cs-episode-study p,.cs-episode-question summary{line-height:1.75}
.cs-episode-study [lang=ar],.cs-episode-study:lang(ar){letter-spacing:normal}
.cs-episode-question{border-block:1px solid var(--line,#cbd7cb);padding-block:.65rem}
.cs-episode-question summary{cursor:pointer;min-height:44px;font-weight:600}
.cs-episode-study .cs-parent{margin:0}
.cs-episode-links{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}

/* The narration is part of the reading page; only extended adult context folds away. */
.cs-learn-together,.cs-narration{margin-block:14px;padding:16px 18px;border:1px solid var(--cs-line);border-radius:18px;background:#f6f7ed;min-width:0}
.cs-learn-together h3,.cs-narration h3{font-size:1rem;margin:0 0 7px}.cs-learn-together p,.cs-narration p{margin:7px 0;line-height:1.8;overflow-wrap:anywhere}
.cs-narration{background:#fffdf5}.cs-narration .cs-narration-ar{font-family:Amiri,'Noto Naskh Arabic',serif;font-size:1.45rem;line-height:1.9;margin:10px 0;overflow-wrap:normal}
.cs-narration-speaker,.cs-narration-relation{font-size:.82rem;color:#526a58}.cs-narration-source{display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px;font-size:.75rem;color:#536d5c}.cs-narration-source a{display:inline-flex;align-items:center;min-height:44px;color:#255a4d}.cs-narration-source span{min-width:0}.cs-lesson-link{margin-block:10px}
@media(max-width:400px){.cs-learn-together,.cs-narration{padding:13px}.cs-narration .cs-narration-ar{font-size:1.3rem}.cs-narration-source{display:block}.cs-narration-source span{display:block}}

/* Short reading support stays with the visible narration. */
.cs-narration-pronunciation{font-size:.88rem;line-height:1.6;color:var(--text-muted,#52635f);margin-block:.4rem}.cs-care-note{border-inline-start:3px solid #bd9860;padding:.65rem .9rem;background:#faf5e9;border-radius:.4rem;margin-block:1rem}.cs-care-note p{margin:0;font-size:.9rem;line-height:1.65}

.children-stories .cs-shelf-pages{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin:1rem 0}
.children-stories .cs-shelf-pages button,.children-stories .cs-featured>summary{min-block-size:2.85rem;cursor:pointer;padding:.5rem .75rem}
.children-stories .cs-shelf-pages button{border:1px solid var(--line);color:var(--ink);background:var(--panel);border-radius:.6rem}
.children-stories .cs-shelf-pages button:disabled{opacity:.48;cursor:default}
.children-stories .cs-featured{border-block-start:1px solid var(--line);margin-block:.7rem}
.children-stories .cs-featured>summary{font-weight:650}

.cs-recap-pictures {display:flex;gap:.5rem;list-style:none;padding:0;margin:.6rem 0 1rem;overflow-x:auto}
.cs-recap-pictures li {flex:1 1 0;min-width:4.5rem;font-size:.875rem;line-height:1.45;font-weight:650}
.cs-recap-pictures img {display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:.8rem;margin-block-end:.35rem}
.cs-recap-pictures .cs-art-fallback {min-height:4rem}

.cs-story-deck,.cs-recap-deck {padding:clamp(.7rem,3vw,1.1rem);border:1px solid var(--cs-line);border-radius:1rem;background:var(--surface,#fff)}
.cs-story-guide {display:flex;align-items:center;gap:.45rem;margin-block-end:.5rem}
.cs-story-guide :is(img,.garden-pal-art) {inline-size:2.65rem;block-size:2.65rem;object-fit:contain}
.cs-story-guide bdi {margin-inline-start:auto;color:var(--cs-ink);font-size:.9rem;font-weight:700}
.children-stories .cs-story-deck .cs-scene {box-shadow:none;border:0;background:transparent;margin:0}
.cs-story-deck .cs-scene-art {border-radius:.75rem;overflow:hidden}
.cs-story-deck .cs-story-copy {padding:.65rem .1rem}
.cs-story-deck .cs-next-prev {margin:.55rem 0 0}
.cs-read-with>summary,.cs-jump-pages>summary {min-height:44px;cursor:pointer;font-weight:650;padding:.7rem .2rem;border-bottom:1px solid var(--cs-line)}
@media(max-width:720px){.children-stories .cs-story-deck .cs-scene-art{height:clamp(7rem,25svh,15rem);aspect-ratio:auto}.cs-story-deck .cs-scene-art img{object-fit:contain;background:var(--cs-pale)}}


/* /children-theme-explorer.css */
.children-theme-explorer{--te-ink:#173d3a;--te-muted:#49615c;--te-green:#176d59;--te-cream:#fffaf0;--te-line:#d4dfd2;max-width:960px;margin:0 auto;color:var(--te-ink);font-size:1rem;line-height:1.6}.children-theme-explorer *{box-sizing:border-box}.children-theme-explorer h2,.children-theme-explorer h3,.children-theme-explorer p{margin:0}.children-theme-explorer h2{font-size:clamp(1.65rem,5vw,2.35rem);line-height:1.25}.children-theme-explorer h3{font-size:1.25rem;line-height:1.4}.children-theme-explorer a{color:#165c4e;text-underline-offset:3px}.children-theme-explorer button,.children-theme-explorer input{font:inherit}.children-theme-explorer button{cursor:pointer}.children-theme-explorer :focus-visible{outline:3px solid #9c5900;outline-offset:4px}.te-eyebrow{display:block;color:var(--te-muted);font-size:.72rem;font-weight:800;letter-spacing:.08em;margin-bottom:.5rem}.children-theme-explorer[dir=rtl] .te-eyebrow{letter-spacing:0;font-size:.85rem}.te-welcome{padding:1.25rem 0 1rem}.te-welcome p{color:var(--te-muted);max-width:42em;margin-top:.6rem}.te-resume{display:flex;justify-content:space-between;gap:1rem;align-items:center;background:#eaf4eb;border:1px solid var(--te-line);padding:.8rem 1rem;border-radius:16px;margin-bottom:1rem}.te-resume span{display:grid;gap:.15rem}.te-resume small{color:var(--te-muted)}.te-button{border:1px solid #9bb9ad;border-radius:12px;min-height:46px;padding:.65rem 1rem;background:#fff;color:var(--te-ink);font-weight:700;line-height:1.4}.te-primary{background:var(--te-green);border-color:var(--te-green);color:#fff}.te-search-label{display:block;font-weight:700;margin:.6rem 0 .35rem}.te-search-row{display:flex;gap:.5rem;margin-bottom:1rem}.te-search-row input{width:100%;min-width:0;min-height:48px;border:1px solid #9bb9ad;border-radius:12px;background:#fff;color:var(--te-ink);padding:.65rem .8rem}.te-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.te-group{display:grid;grid-template-columns:90px minmax(0,1fr) 20px;gap:.85rem;align-items:center;border:1px solid var(--te-line);border-radius:20px;padding:.6rem;background:var(--te-cream);color:var(--te-ink);text-align:start;min-width:0}.te-group-art{width:90px;height:100px;display:block;border-radius:14px;overflow:hidden}.te-group-art img,.te-tile-art img{display:block;width:100%;height:100%;object-fit:cover}.te-group strong,.te-group small{display:block}.te-group strong{font-size:1.08rem;line-height:1.3;margin-bottom:.4rem}.te-group small{color:var(--te-muted);line-height:1.45;font-size:.82rem}.te-group:hover,.te-tile:hover{border-color:#739d8f;box-shadow:0 5px 16px #173d3a12}.te-shelf-heading{padding:.25rem 0 1rem}.te-shelf-heading h3{margin-top:.8rem}.te-shelf-heading p{margin-top:.3rem;color:var(--te-muted)}.te-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.te-tile{display:flex;flex-direction:column;border:1px solid var(--te-line);border-radius:18px;overflow:hidden;padding:0;background:#fff;color:var(--te-ink);text-align:start;min-width:0}.te-tile-art{display:block;width:100%;aspect-ratio:1;overflow:hidden;background:#f2f4e9}.te-tile-copy{display:grid;gap:.3rem;padding:.65rem .75rem}.te-tile strong{font-size:.98rem;line-height:1.35}.te-tile small{font-size:.75rem;color:var(--te-muted)}.te-parent{border:1px solid var(--te-line);border-radius:14px;background:#f6f7f0;padding:.9rem 1rem;margin:1.1rem 0;color:var(--te-muted);font-size:.9rem}.te-parent summary{cursor:pointer;font-weight:750;color:var(--te-ink);min-height:30px}.te-parent[open] summary{margin-bottom:.75rem}.te-parent p+p{margin-top:.7rem}.te-source-link{display:block;margin-top:.7rem;overflow-wrap:anywhere}.te-imami-note{border-inline-start:3px solid #427d68;padding-inline-start:.75rem}.te-session-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:1rem 0}.te-session-top a{font-weight:700;min-height:44px;display:inline-flex;align-items:center}.te-session-heading{margin:1rem 0}.te-scene-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:1.2rem;align-items:start}.te-scene-art{margin:0;overflow:hidden;border-radius:22px;background:#f3f3e6;border:1px solid var(--te-line)}.te-scene-art img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}.te-scene-art figcaption{text-align:center;padding:.45rem;font-size:.75rem;color:var(--te-muted)}.te-meaning>p{font-size:1.12rem;line-height:1.65}.te-quran-panel{margin:1rem 0;padding:1rem;background:#fffdf5;border:1px solid var(--te-line);border-radius:16px}.te-quran-panel>.te-eyebrow{font-size:.68rem}.te-quran{font-family:var(--quran-font,'Amiri Quran','Amiri',serif);font-size:1.65rem;line-height:2.15;text-align:right;overflow-wrap:anywhere;font-kerning:normal;letter-spacing:0;word-spacing:normal}.te-quran-panel a{display:inline-block;padding-top:.65rem;font-size:.85rem;font-weight:700}.te-quran-panel [role=status]{font-size:.85rem}.te-text-error .te-button{margin-top:.65rem;font-size:.85rem}.te-activity{margin:1.2rem 0;border:1px solid #b9d5bd;background:#f5faef;padding:1.1rem;border-radius:20px}.te-choices{display:grid;gap:.65rem;margin-top:.8rem}.te-choices button{display:flex;gap:.8rem;align-items:center;min-height:54px;border:1px solid #a7c1ae;border-radius:13px;background:#fff;padding:.8rem;color:var(--te-ink);text-align:start;font-weight:650;line-height:1.45}.te-choices b{display:grid;place-items:center;border-radius:50%;width:30px;height:30px;flex:0 0 30px;background:#e5edda}.te-choices button:disabled{cursor:default;opacity:1;color:#4c6057}.te-choices button.is-chosen{border:2px solid var(--te-green);background:#edf5e9}.te-feedback{margin-top:1rem;padding:1rem;border-radius:15px;text-align:center}.te-feedback.is-correct{background:#dcefdc;border:1px solid #a5c7a7}.te-feedback.is-retry{background:#fff4dc;border:1px solid #d8bd7e}.te-feedback strong{font-size:1.1rem}.te-feedback p{margin-top:.45rem}.te-feedback .te-button{margin-top:.75rem}.te-big-tick{display:grid;place-items:center;margin:0 auto .5rem;background:var(--te-green);color:#fff;width:68px;height:68px;border-radius:50%;font-size:2.8rem;font-weight:900;animation:te-tick .35s ease-out}.te-try-together{border-top:1px solid #b8d5b6;padding-top:.65rem}.te-try-together strong{font-size:.85rem}.te-bottom-nav{display:flex;justify-content:space-between;gap:.75rem}.te-bottom-nav .te-button{flex:1;max-width:50%}.te-bottom-nav .te-button:only-child{margin-inline-start:auto}.te-quiet{font-size:.82rem;text-align:center;color:var(--te-muted);padding:1rem}.te-image-fallback{display:grid;place-content:center;gap:.5rem;width:100%;min-height:120px;aspect-ratio:1;text-align:center;padding:1rem;color:#49615c;background:#edf0e4}.te-image-fallback span{font-size:2rem}.te-save-warning,.te-load-error{border:1px solid #d7bb7d;border-radius:12px;background:#fff5df;padding:.8rem;margin:.75rem 0}.te-load-error .te-button{margin:1rem}.te-load-error h2{font-size:1.4rem}@keyframes te-tick{from{transform:scale(.75)}to{transform:scale(1)}}@media(max-width:700px){.te-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.te-group-grid{grid-template-columns:1fr}.te-group{grid-template-columns:84px minmax(0,1fr) 18px}.te-group-art{width:84px;height:84px}.te-scene-grid{grid-template-columns:1fr}.te-scene-art{width:100%;max-width:380px;margin:0 auto}.te-scene-art img{max-height:300px;aspect-ratio:auto;object-fit:contain;background:#fffdf5}.te-session-heading h2{font-size:1.7rem}}@media(max-width:420px){.te-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.te-group{gap:.6rem}.te-resume{gap:.5rem;padding:.75rem}.te-resume .te-button{padding:.6rem .75rem}.te-activity{padding:.85rem}.te-scene-art img{max-height:245px}.te-bottom-nav{gap:.5rem}.te-bottom-nav .te-button{padding:.65rem .55rem}.te-session-top .te-button{font-size:.9rem}.te-quran{font-size:1.5rem}}@media(prefers-reduced-motion:reduce){.children-theme-explorer *{animation:none!important;scroll-behavior:auto!important}}
/* The persistent learning bar owns these returns when the full app shell is present.
   Keep the controls in the DOM for its delegated actions and for standalone use. */
body.children-navigation-active .children-theme-explorer .te-session-top,
body.children-navigation-active .children-theme-explorer .te-shelf-heading > [data-te-action="groups"]{display:none}

.te-question-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-block:1rem}
.te-question-title bdi{color:var(--te-muted);font-variant-numeric:tabular-nums}
.te-practice-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-block:1rem}
.children-theme-explorer :is(h2,h3,[data-te-action="question"]){scroll-margin-block-start:5rem}
.te-gentle-practice{margin-block:1rem;color:var(--te-ink);border-inline-start:3px solid var(--te-green);padding-inline-start:.8rem}
.te-gentle-practice summary{cursor:pointer;font-weight:700;min-height:44px;align-content:center}
.te-gentle-practice p{padding-block:.25rem .65rem}

.te-lesson-meaning>p{font-size:1.12rem;line-height:1.65}
.te-spot-figure .te-art-frame{position:relative;aspect-ratio:3/2;overflow:hidden}
.te-spot-figure .te-art-frame img{display:block;width:100%;height:100%;max-height:none;object-fit:cover}
.te-spot-ring{position:absolute;border:3px solid white;border-radius:50%;box-shadow:0 0 0 2px #204d46,inset 0 0 0 1px #204d46;display:none;pointer-events:none}
.te-spot-figure:has(.te-spot-clue[open]) .te-spot-ring{display:block}
.te-spot-clue,.te-read-on{color:var(--te-ink);text-align:start}
.te-spot-clue{padding:.15rem .85rem;background:#fff9e9}
.te-spot-clue summary,.te-read-on summary{cursor:pointer;min-block-size:44px;align-content:center;font-weight:650;line-height:1.6}
.te-spot-clue p{padding:0 0 .7rem}
.te-read-on{border-block-start:1px solid var(--te-line);margin-block:.5rem .1rem}
.te-read-on[open]{padding-block-end:.5rem;border-block-end:1px solid var(--te-line)}
.te-spot-figure+.te-meaning>.te-quran-panel{margin-block-start:0}
.children-theme-explorer[dir="rtl"] .te-lesson-meaning>p{line-height:1.85}
@media(max-width:700px){
 .te-spot-figure{max-width:min(100%,28rem,61svh)}
 .te-scene-grid:has(.te-spot-figure){gap:.65rem}
}


/* /little-reader.css */
/* A small, readable teaching surface inside the children's home. */
.little-reader-root{--lr-ink:#233b38;--lr-muted:#536e65;--lr-green:#22614b;--lr-line:#d6e4d9;--lr-paper:#fffdf7;--lr-soft:#eff6ed;color:var(--lr-ink);font-family:inherit;font-size:16px;line-height:1.8;background:var(--lr-paper);border:1px solid var(--lr-line);border-radius:28px;padding:26px;scroll-margin-top:100px;overflow-wrap:anywhere}.little-reader-root *{box-sizing:border-box}.little-reader-root h2,.little-reader-root h3{font-family:inherit;font-weight:750;line-height:1.45;letter-spacing:-.02em;color:var(--lr-ink)}.little-reader-root h2{font-size:clamp(26px,3vw,36px);margin:7px 0 14px}.little-reader-root h3{font-size:22px;margin:10px 0 14px}.little-reader-root p{font-size:16px;line-height:1.9;margin:10px 0 18px}.little-reader-root .lr-small{font-size:13px;line-height:1.8;color:var(--lr-muted)}.little-reader-root button{font:inherit;cursor:pointer}.little-reader-root button:disabled{cursor:default;opacity:.55}.little-reader-root :focus-visible{outline:3px solid #a26318;outline-offset:4px}.little-reader-root [tabindex="-1"]:focus{outline:none}.little-reader-root fieldset{border:0;padding:0;margin:24px 0 12px;min-width:0}.little-reader-root legend{font-size:16px;line-height:1.7;font-weight:750;padding-bottom:12px;width:100%}.little-reader-root a{color:var(--lr-green);text-underline-offset:4px}.little-reader-root summary{font-size:15px;font-weight:700;line-height:1.7;min-height:52px;align-content:center;padding-block:10px;cursor:pointer;color:var(--lr-green)}.lr-button{border:1px solid var(--lr-line);border-radius:15px;background:var(--lr-paper);color:var(--lr-ink);min-height:52px;padding:12px 18px;font-size:16px!important;font-weight:650!important;line-height:1.7!important;white-space:normal;text-align:center;max-width:100%;transition:background .15s,border-color .15s}.lr-button:hover:not(:disabled){background:var(--lr-soft);border-color:var(--lr-green)}.little-reader-root .lr-primary{background:var(--lr-green);color:white;border-color:var(--lr-green)}.little-reader-root .lr-primary:hover:not(:disabled){background:#174d3b;color:white}.lr-button[aria-pressed=true],.lr-button.is-picked{border:2px solid var(--lr-green);background:var(--lr-soft)}.lr-eyebrow,.lr-task-kind{display:block;font-size:12px;line-height:1.7;font-weight:800;letter-spacing:.065em;color:var(--lr-green)}
.lr-welcome{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:22px;align-items:center;margin-bottom:20px}.lr-welcome img{width:130px;max-width:100%;height:auto}.lr-welcome p{color:var(--lr-muted);margin-bottom:0}.lr-orientation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.lr-orientation>button{text-align:start}.lr-continue{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--lr-line);border-radius:20px;padding:20px;background:var(--lr-soft);margin:24px 0}.lr-continue small{font-size:12px;color:var(--lr-green);font-weight:800;letter-spacing:.04em}.lr-continue h3{margin:5px 0;font-size:22px}.lr-continue button{flex-shrink:0}.lr-alphabet,.lr-course{margin-top:30px;scroll-margin-top:100px}.lr-section-heading p,.lr-course>p{color:var(--lr-muted);font-size:15px}.lr-letter-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.lr-letter-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #d6dfd1;border-radius:19px;padding:9px 5px;min-height:114px;color:var(--lr-ink);overflow:visible}.lr-letter-tile>span{font-family:Amiri,serif;font-size:43px;line-height:1.45;font-weight:400}.lr-letter-tile small{font-family:inherit;font-size:12px;font-weight:650;line-height:1.6}.lr-letter-tile i{position:absolute;inset-inline-end:5px;top:3px;background:var(--lr-green);color:#fff;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;font-size:11px;font-style:normal;line-height:1}.lr-letter-tile:hover{border:2px solid var(--lr-green);padding:8px 4px}.lr-tone-0{background:#f8e7b5}.lr-tone-1{background:#dceee2}.lr-tone-2{background:#e5e4f3}.lr-tone-3{background:#f8dfce}.lr-tone-4{background:#daedf0}.lr-unit-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.lr-unit-list>button{display:flex;align-items:center;text-align:start;gap:13px;min-height:97px;padding:16px;border:1px solid var(--lr-line);border-radius:17px;background:var(--lr-paper);color:var(--lr-ink)}.lr-unit-list>button:hover{background:var(--lr-soft);border-color:var(--lr-green)}.lr-unit-number{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;flex:none;font-size:16px;font-weight:750}.lr-unit-list>button>span:nth-child(2){flex:1;min-width:0}.lr-unit-list strong,.lr-unit-list small{display:block}.lr-unit-list strong{font-size:17px;line-height:1.6}.lr-unit-list small{font-size:13px;line-height:1.7;font-weight:400;color:var(--lr-muted);margin-top:3px}.lr-practised{font-size:12px;line-height:1.7;color:var(--lr-green)}.little-reader-root .lr-progress-line{border-top:1px solid var(--lr-line);margin-top:25px;padding-top:20px;font-size:14px;color:var(--lr-green);font-weight:700}.lr-sources{margin-top:22px;border-top:1px solid var(--lr-line);padding-top:8px}.lr-sources p{font-size:14px;color:var(--lr-muted)}.lr-sources a{display:block;min-height:48px;align-content:center;padding:7px 0;font-size:14px;line-height:1.8}.lr-warning{border:1px solid #bf8b40;background:#fff0d3;color:#6b481d;border-radius:13px;padding:14px}.lr-warning .lr-button{display:block;margin-top:8px}
.lr-session-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.lr-session-top .lr-button{padding-inline:0;border:0;background:transparent;color:var(--lr-green);text-align:start}.lr-session-top>span{font-size:12px;line-height:1.7;color:var(--lr-muted);white-space:nowrap}.lr-session-heading{margin-bottom:22px}.lr-letter-hero{display:flex;align-items:center;justify-content:center;gap:25px;border-radius:24px;padding:22px;margin-bottom:18px}.lr-big-letter{font-family:Amiri,serif;font-size:112px;line-height:1.5;min-width:110px;text-align:center}.lr-letter-hero h3{font-size:29px;margin:4px 0 8px}.lr-letter-hero p{margin:0;font-size:16px}.lr-sound{display:flex;flex-wrap:wrap;gap:8px}.lr-sound>p{flex-basis:100%;margin:0}.little-reader-root .lr-sound-note{font-size:14px;line-height:1.9;color:var(--lr-muted);border-inline-start:3px solid #c7ae6d;padding-inline-start:14px}.little-reader-root .lr-audio-status{font-size:13px;line-height:1.7;color:var(--lr-muted);min-height:1.7em;margin:7px 0 18px}.lr-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:15px 0}.lr-form-grid>div{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--lr-line);border-radius:16px;background:var(--lr-soft);padding:15px 10px;min-height:150px;text-align:center}.lr-form-label{font-size:12px;line-height:1.7;font-weight:700}.lr-form{font-family:Amiri,serif;font-size:61px;font-weight:400;line-height:1.7;letter-spacing:0}.lr-no-form{font-size:13px;line-height:1.8;color:var(--lr-muted);margin-block:auto}.lr-letter-detail>.lr-primary,.lr-worked>.lr-primary{display:block;width:100%;margin-block:20px 10px}.lr-worked>.lr-button:not(.lr-primary){margin-top:8px}.lr-teaching{background:#f9f0d9;border:1px solid #e4d4a8;border-radius:20px;padding:17px;margin:20px 0;color:#443e2d}.lr-teaching>span{display:block;font-size:12px;line-height:1.7;color:#635f4a}.little-reader-root .lr-arabic{font-family:Amiri,serif;font-size:43px;line-height:2.05;font-weight:400;text-align:center;word-break:normal;overflow-wrap:normal;letter-spacing:0;margin:14px 0}.lr-blend-demo{border-top:1px solid #e4d4a8;padding-top:17px;text-align:center}.lr-pieces{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:12px 0 18px}.lr-pieces>span{display:grid;place-items:center;font-family:Amiri,serif;font-size:36px;line-height:1.8;min-width:65px;padding:4px 12px;border:2px solid transparent;border-radius:14px;background:#fffdf7}.lr-pieces>.is-noticed{border-color:var(--lr-green);background:#dceee2}.lr-blend-demo>.lr-button{width:100%}.lr-task h3{font-size:23px;line-height:1.65;margin:8px 0 20px}.lr-options{display:grid;gap:10px}.lr-options>.lr-button{min-height:65px;text-align:start;padding:16px 20px}.lr-options>.lr-button>span{font-size:21px;line-height:1.9}.lr-task .lr-options>.lr-button:has([dir=auto]){font-family:inherit}.lr-options>.lr-button.is-picked{border-width:2px}.lr-task>.lr-button{margin-top:16px;width:100%}.lr-feedback,.lr-hint{background:var(--lr-soft);border:1px solid var(--lr-line);border-radius:18px;padding:20px;margin:20px 0}.lr-feedback strong{color:var(--lr-green);font-size:18px}.lr-feedback p,.lr-hint p{font-size:16px}.lr-feedback>.lr-button{display:block;width:100%}.lr-order-result{border:2px dashed #b6cabe;border-radius:18px;background:var(--lr-soft);min-height:110px;margin:16px 0}.lr-order-result>p{font-family:Amiri,serif;font-size:43px;line-height:2;text-align:center;margin:10px}.lr-piece-options{display:flex;gap:10px;flex-wrap:wrap}.lr-piece-options>.lr-button{flex:1;min-width:65px;font-family:Amiri,serif!important;font-size:37px!important;line-height:1.9!important;padding:8px 16px}.lr-order-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.lr-order-actions>.lr-primary{flex:1}.lr-return-example{margin-top:18px}.lr-done{text-align:center}.lr-finish-star{width:78px;height:78px;display:grid;place-items:center;font-size:45px;color:#795715;background:#f8e7b5;border-radius:50%;margin:10px auto 18px}.lr-done>.lr-button{display:block;width:100%;margin:10px 0}.lr-transfer{text-align:start;border-top:1px solid var(--lr-line);padding-top:8px;margin-top:26px}.lr-transfer .lr-button{margin:5px 5px 5px 0}.lr-transfer>a{display:block;min-height:48px;align-content:center;font-size:15px;padding-block:8px}.little-reader-root .lr-quran{font-family:'QatrahEdition-hafs',Amiri,serif!important;font-size:30px;font-weight:400;line-height:2.3;word-break:normal;overflow-wrap:normal;padding:15px;border-radius:15px;background:var(--lr-soft);text-align:right}.little-reader-root[dir=rtl] h2,.little-reader-root[dir=rtl] h3,.little-reader-root[dir=rtl] .lr-eyebrow,.little-reader-root[dir=rtl] .lr-task-kind{letter-spacing:0}.little-reader-root[dir=rtl] h2{line-height:1.7}
@media(max-width:650px){.little-reader-root{padding:19px 15px;border-radius:24px}.lr-welcome{grid-template-columns:minmax(0,1fr) 84px;gap:10px}.lr-welcome img{width:84px}.little-reader-root h2{font-size:27px}.lr-welcome p{font-size:15px}.lr-orientation{grid-template-columns:1fr}.lr-orientation>.lr-button{padding:14px 16px}.lr-continue{display:block;padding:18px}.lr-continue>.lr-button{width:100%;margin-top:16px}.lr-letter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.lr-letter-tile{min-height:104px;border-radius:16px}.lr-letter-tile>span{font-size:40px}.lr-letter-tile small{font-size:12px}.lr-unit-list{grid-template-columns:1fr}.lr-unit-list>button{min-height:93px;padding:14px}.lr-letter-hero{gap:17px;padding:17px}.lr-big-letter{font-size:100px;min-width:85px}.lr-letter-hero h3{font-size:25px}.lr-form-grid{grid-template-columns:1fr 1fr}.lr-form-grid>div{min-height:145px}.lr-form{font-size:61px}.lr-teaching{padding:15px 12px}.little-reader-root .lr-arabic{font-size:39px}.lr-options>.lr-button{padding:14px 16px}.lr-options>.lr-button>span{font-size:20px}.lr-feedback,.lr-hint{padding:17px 15px}.lr-order-actions{display:block}.lr-order-actions>.lr-button{width:100%;margin-top:8px}.lr-session-top{gap:10px}.lr-session-top .lr-button{font-size:15px!important}.lr-task h3{font-size:22px}.lr-practised{font-size:12px}.lr-letter-detail>.lr-primary,.lr-worked>.lr-primary{font-size:16px!important}}
@media(max-width:350px){.little-reader-root{padding:16px 12px}.lr-welcome{grid-template-columns:minmax(0,1fr) 66px}.lr-welcome img{width:66px}.little-reader-root h2{font-size:25px}.lr-letter-grid{gap:6px}.lr-letter-tile{min-height:100px}.lr-letter-tile>span{font-size:37px}.lr-big-letter{font-size:88px;min-width:70px}.lr-letter-hero{gap:12px}.lr-letter-hero h3{font-size:23px}.lr-piece-options{gap:7px}.lr-piece-options>.lr-button{min-width:58px;padding:8px 10px}.lr-unit-list strong{font-size:16px}.lr-form-label{font-size:12px}.lr-session-top>span{white-space:normal;max-width:35%;text-align:end}}
@media(prefers-color-scheme:dark){:is(body.dark,html[data-theme=dark]) .little-reader-root{--lr-ink:#e6eee5;--lr-muted:#bdcec1;--lr-green:#9bd3ad;--lr-line:#415a4b;--lr-paper:#17251f;--lr-soft:#23382b}:is(body.dark,html[data-theme=dark]) .little-reader-root .lr-primary{background:#376e50;color:#fff}:is(body.dark,html[data-theme=dark]) .lr-letter-tile,:is(body.dark,html[data-theme=dark]) .lr-letter-hero,:is(body.dark,html[data-theme=dark]) .lr-unit-number{color:#233b38}}
@media(prefers-reduced-motion:reduce){.little-reader-root *{transition:none!important;scroll-behavior:auto!important}}
/* Keep a concrete first step visible; the complete toolbox is always available. */
.little-reader-root .lr-library,.little-reader-root .lr-forms-disclosure{margin-block:18px;border:1px solid var(--border,#dbdfd8);border-radius:18px;padding:0 16px;background:var(--surface,#fffdf6)}
.little-reader-root .lr-library>summary,.little-reader-root .lr-forms-disclosure>summary{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:17px;font-weight:750;cursor:pointer;list-style:none}
.little-reader-root .lr-library>summary::after,.little-reader-root .lr-forms-disclosure>summary::after{content:'+';font-size:24px;font-weight:500}
.little-reader-root .lr-library[open]>summary::after,.little-reader-root .lr-forms-disclosure[open]>summary::after{content:'−'}
.little-reader-root .lr-library[open],.little-reader-root .lr-forms-disclosure[open]{padding-block-end:16px}
.little-reader-root .lr-forms-disclosure{margin-block-start:22px}
.little-reader-root .lr-letter-detail>.lr-primary{width:100%}
/* Short glyph choices stay large and legible after an answer as well as before it. */
.little-reader-root .lr-glyph-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.little-reader-root .lr-glyph-options>.lr-button{padding:8px 5px;min-height:92px;text-align:center}
.little-reader-root .lr-options .lr-glyph{display:block;font-family:Amiri,serif;font-size:46px;line-height:1.9;font-weight:400;letter-spacing:0;word-break:normal;overflow-wrap:normal}
.little-reader-root .lr-options>.lr-button:disabled{opacity:1;color:var(--lr-ink);background:var(--lr-paper)}
.little-reader-root .lr-options>.lr-button.is-picked:disabled{background:var(--lr-soft)}
@media(max-width:360px){.little-reader-root .lr-options .lr-glyph{font-size:42px}.little-reader-root .lr-glyph-options{gap:6px}}
/* Brighter letters and a quieter, single-step learning journey. */
.little-reader-root{--lr-paper:#fffefb;--lr-line:#dce8e7;background:linear-gradient(155deg,#fffefb 40%,#f2fbfa);border-color:#dce8e7;box-shadow:0 12px 32px #163c3210;padding:clamp(18px,3vw,32px)}
.little-reader-root .lr-tone-0{--lr-letter:#b73938;--lr-tile-line:#f6b1a9;background:#ffebe5}
.little-reader-root .lr-tone-1{--lr-letter:#136c76;--lr-tile-line:#9bd7dd;background:#e1f7f7}
.little-reader-root .lr-tone-2{--lr-letter:#6944aa;--lr-tile-line:#c9b6f0;background:#f0e9ff}
.little-reader-root .lr-tone-3{--lr-letter:#996000;--lr-tile-line:#efcf75;background:#fff4cc}
.little-reader-root .lr-tone-4{--lr-letter:#2569b0;--lr-tile-line:#a9cef3;background:#e6f2ff}
.little-reader-root .lr-tone-5{--lr-letter:#a13574;--lr-tile-line:#efb1d3;background:#fde9f4}
.little-reader-root .lr-tone-6{--lr-letter:#2b7450;--lr-tile-line:#a3d5b8;background:#e2f7e9}
.little-reader-root .lr-letter-tile{border:1px solid var(--lr-tile-line);border-bottom-width:4px;border-radius:20px;min-height:126px;padding:10px 5px;transition:transform .15s,box-shadow .15s}
.little-reader-root .lr-letter-tile:hover{border:1px solid var(--lr-tile-line);border-bottom-width:4px;padding:10px 5px;transform:translateY(-3px);box-shadow:0 6px 10px #27473d12}
.little-reader-root .lr-letter-tile>span{color:var(--lr-letter);font-size:54px;line-height:1.5;font-weight:400;letter-spacing:0;font-variant-ligatures:normal}
.little-reader-root .lr-letter-tile small{color:#344a50;font-size:12px}
.little-reader-root .lr-big-letter{color:var(--lr-letter);font-size:132px;font-weight:400;letter-spacing:0}
.little-reader-root .lr-letter-hero{border:1px solid var(--lr-tile-line);color:#233b38}
.little-reader-root .lr-letter-hero h3{color:#233b38}
.lr-welcome img{border-radius:25px;aspect-ratio:1;object-fit:cover}
.little-reader-root .lr-next-adventure{background:#e7f5ee;border:1px solid #b9ddc9;border-radius:22px;margin:20px 0 24px;box-shadow:0 4px 0 #d5eadf;padding:22px}
.little-reader-root .lr-next-adventure h3{font-size:25px;margin:4px 0}
.little-reader-root .lr-next-adventure p{font-size:14px;color:#466457;margin:5px 0 0}
.lr-next-adventure>.lr-primary{min-width:164px;box-shadow:0 3px 0 #154c39;display:flex;align-items:center;justify-content:center;gap:14px}
.lr-preview{margin:22px 0}
.lr-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.little-reader-root .lr-preview-heading h3{font-size:17px;margin:0}
.lr-preview-heading>span{font-size:12px;color:var(--lr-muted)}
.lr-preview-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:600px;gap:12px}
.little-reader-root .lr-preview-tile{min-height:116px}
.little-reader-root .lr-shelf-count{margin-inline-start:auto;font-size:12px;letter-spacing:0;color:var(--lr-muted);font-weight:650;white-space:nowrap}
.little-reader-root .lr-library{background:var(--lr-paper);border-color:var(--lr-line);margin-block:14px}
.little-reader-root .lr-library>summary{font-size:15px;font-weight:700}
.little-reader-root .lr-starting-point>summary{font-size:14px}
.little-reader-root .lr-orientation{margin-top:10px}
.lr-path-choice{display:flex;gap:12px;align-items:center;padding:13px!important}
.lr-path-choice img{width:62px;height:62px;border-radius:16px;object-fit:cover;flex:none}
.lr-path-choice strong,.lr-path-choice small{display:block}
.lr-path-choice strong{font-size:15px;line-height:1.6}
.lr-path-choice small{font-size:12px;color:var(--lr-muted);line-height:1.6;font-weight:400}
.lr-guide{display:flex;align-items:center;gap:17px;padding:15px 18px;background:#eef7fc;border:1px solid #cce5ee;border-radius:20px;margin:16px 0 22px;text-align:start;overflow:hidden}
.lr-guide>img{width:88px;height:88px;border-radius:19px;object-fit:cover;flex:none}
.lr-guide>div{min-width:0}
.lr-guide-name{display:block;font-size:11px;color:#476b7c;font-weight:750;line-height:1.5;margin-bottom:3px}
.lr-guide strong{display:block;color:#244b5c;font-size:17px;line-height:1.6}
.little-reader-root .lr-guide p{font-size:14px;color:#3b5e6f;line-height:1.75;margin:4px 0 0}
.lr-guide-owl{background:#f2edff;border-color:#dcd0f2}.lr-guide-owl strong{color:#58417b}.lr-guide-owl p,.lr-guide-owl .lr-guide-name{color:#65557c}
.lr-guide-fox{background:#fff2e7;border-color:#edd6bd}.lr-guide-fox strong{color:#814e24}.lr-guide-fox p,.lr-guide-fox .lr-guide-name{color:#7b5b3c}
.lr-guide-tortoise{background:#eaf6ee;border-color:#bfdcc9}.lr-guide-tortoise strong{color:#376449}.lr-guide-tortoise p,.lr-guide-tortoise .lr-guide-name{color:#496a56}
.lr-dot-clue{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:20px;background:#fff;color:#36576b;font-size:12px;font-weight:700}
.lr-family-row{display:flex;flex-wrap:wrap;gap:12px;margin:15px 0}
.lr-family-row>div{flex:1;min-width:70px;text-align:center;border:1px solid var(--lr-line);border-radius:16px;padding:9px;background:var(--lr-paper)}
.lr-family-row>div.is-current{border:2px solid #299b82;background:#edf9f4}
.lr-family-row b{display:block;font-family:Amiri,serif;font-size:53px;line-height:1.7;font-weight:400;letter-spacing:0;color:#325d62}
.lr-family-row small{font-size:12px;color:var(--lr-muted)}
.lr-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;margin:0 0 24px;list-style:none}
.lr-stepper li{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-bottom:3px solid #e5ece9;color:var(--lr-muted);font-size:12px;line-height:1.6;padding:6px 2px}
.lr-stepper li>span{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#eef4f1;color:#517162;font-size:11px}
.lr-stepper li[aria-current=step]{border-color:#328a6b;color:#215e48;font-weight:750}
.lr-stepper li[aria-current=step]>span{background:#2f8164;color:white}
.lr-session-heading{margin-bottom:12px}
.lr-feedback-friend{display:block;float:inline-end;width:76px;height:76px;object-fit:cover;border-radius:18px;margin-inline-start:12px;margin-bottom:8px}
.lr-feedback>.lr-button{clear:both}
.lr-finish-friend{display:block;width:132px;height:132px;object-fit:cover;border-radius:30px;margin:8px auto 20px}
.lr-unit-number{color:var(--lr-letter)}
@media(max-width:900px){.lr-path-choice{flex-direction:column;align-items:flex-start}.lr-path-choice img{width:54px;height:54px}}
@media(max-width:650px){.lr-path-choice{flex-direction:row;align-items:center}.lr-path-choice img{width:62px;height:62px}.little-reader-root .lr-next-adventure{padding:18px}.lr-next-adventure>.lr-button{width:100%;margin-top:16px}.lr-preview-grid{gap:8px}.little-reader-root .lr-preview-tile{min-height:108px;border-radius:16px}.little-reader-root .lr-letter-tile>span{font-size:48px}.little-reader-root .lr-letter-tile small{font-size:11px}.lr-guide{padding:13px;gap:12px}.lr-guide>img{width:70px;height:70px;border-radius:16px}.lr-guide strong{font-size:15px}.little-reader-root .lr-guide p{font-size:13px}.little-reader-root .lr-big-letter{font-size:112px}.lr-stepper{gap:6px}.lr-stepper li{gap:5px;font-size:12px}.lr-stepper li>span{width:23px;height:23px}.lr-preview-heading>span{font-size:11px}}
@media(max-width:360px){.little-reader-root .lr-letter-tile>span{font-size:43px}.little-reader-root .lr-letter-tile small{font-size:10px}.lr-guide>img{width:58px;height:58px}.little-reader-root .lr-preview-heading h3{font-size:16px}.lr-guide{gap:10px}.little-reader-root .lr-next-adventure h3{font-size:23px}.lr-stepper li{flex-direction:column;gap:4px}.lr-family-row{gap:8px}}
:is(body.dark,html[data-theme=dark]) .little-reader-root{--lr-ink:#e6eee5;--lr-muted:#bdcec1;--lr-green:#9bd3ad;--lr-line:#415a4b;--lr-paper:#17251f;--lr-soft:#23382b;background:#17251f}
:is(body.dark,html[data-theme=dark]) .lr-next-adventure{background:#233c30;border-color:#40654e;box-shadow:none}:is(body.dark,html[data-theme=dark]) .lr-next-adventure p{color:#b8d3c2}:is(body.dark,html[data-theme=dark]) .lr-next-adventure>.lr-primary{color:#fff}
:is(body.dark,html[data-theme=dark]) .lr-stepper li[aria-current=step]{color:#9bd3ad}:is(body.dark,html[data-theme=dark]) .lr-family-row>div.is-current{background:#23382b}:is(body.dark,html[data-theme=dark]) .lr-family-row b{color:#c2e6d1}

/* Size the full shelf to its available panel, including tablet sidebars. */
.little-reader-root{container-type:inline-size}
.little-reader-root .lr-letter-grid:not(.lr-preview-grid){grid-template-columns:repeat(auto-fit,minmax(min(88px,100%),1fr))}
.little-reader-root .lr-letter-tile{min-width:0}
.little-reader-root .lr-preview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.little-reader-root .lr-preview-tile>span{font-size:clamp(34px,12cqi,54px)}
:is(body.dark,html[data-theme=dark]) .little-reader-root .lr-primary{background:#376e50;border-color:#508360;color:#fff}
:is(body.dark,html[data-theme=dark]) .little-reader-root .lr-primary:hover:not(:disabled){background:#437e5c;color:#fff}
:is(body.dark,html[data-theme=dark]) .little-reader-root .lr-letter-hero .lr-small{color:#536e65}
/* v57: each letter keeps its native glyph beside an original object illustration. */
.little-reader-root .lr-letter-tile{position:relative;display:grid;justify-items:center;align-content:start;gap:0;padding:8px 5px 10px;min-height:166px;}
.little-reader-root .lr-tile-picture{width:76px;max-width:100%;height:66px;object-fit:contain;border-radius:11px;background:#fff9ed;}
.little-reader-root .lr-letter-tile>span{font-size:42px;line-height:1.45;}
.little-reader-root .lr-letter-tile small{font-size:12px;line-height:1.5;}
.little-reader-root .lr-letter-tile i{position:absolute;inset-block-start:6px;inset-inline-end:6px;}
.little-reader-root .lr-preview-tile{min-height:164px;}
.little-reader-root .lr-preview-grid{gap:8px;}
.little-reader-root .lr-picture-hero{display:block;padding:16px 18px 12px;overflow:hidden;}
.little-reader-root .lr-picture-scene{display:grid;grid-template-columns:minmax(70px,1fr) minmax(100px,170px);align-items:center;justify-content:center;gap:0 12px;width:100%;min-height:172px;padding:4px;border:0;border-radius:18px;background:transparent;color:var(--lr-letter,#325d62);}
.little-reader-root .lr-picture-scene:hover{background:rgb(255 255 255 / .2);}
.little-reader-root .lr-picture-scene .lr-big-letter{font-size:118px;line-height:1.35;min-width:0;display:block;transform-origin:center;}
.little-reader-root .lr-object-picture{display:block;width:100%;height:160px;object-fit:contain;border-radius:20px;background:#fff9ed;transform-origin:center;}
.little-reader-root .lr-motion-hint{grid-column:1/-1;font-family:var(--font-ui,inherit);font-size:12px;line-height:1.6;font-weight:600;color:#52665b;margin-top:5px;}
.little-reader-root .lr-picture-caption{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;border-top:1px solid rgb(70 100 70 / .15);padding-top:9px;margin-top:8px;}
.little-reader-root .lr-picture-caption h3{font-size:22px;margin:0;line-height:1.5;}
.little-reader-root .lr-picture-caption p{font-size:14px;line-height:1.65;margin:4px 0;color:#435e51;}
.little-reader-root .lr-picture-word{text-align:center;min-width:0;color:#2c5144;}
.little-reader-root .lr-picture-word>b{display:block;font:400 35px/1.85 Amiri,serif;letter-spacing:0;white-space:nowrap;}
.little-reader-root .lr-picture-word>span{display:block;font-size:14px;line-height:1.5;}
.little-reader-root .lr-picture-clue{font-size:14px;line-height:1.8;color:#405a4e;margin:10px 0 6px;}
.little-reader-root .lr-example-label{display:block;font-size:11px;line-height:1.6;color:#5b695d;}
.little-reader-root .lr-motion-status{font-size:12px;line-height:1.7;color:#405a4e;margin:6px 0 0;}
.little-reader-root .lr-motion-status:empty{display:none;}
.little-reader-root .lr-letter-game>.lr-game-word{font:400 48px/2 Amiri,serif;letter-spacing:0;text-align:center;color:var(--lr-ink);background:var(--lr-soft);border-radius:16px;padding:12px;word-break:normal;overflow-wrap:normal;}
.little-reader-root .lr-game-feedback{margin-top:14px;border-radius:16px;padding:16px;background:var(--lr-soft);border:1px solid var(--lr-line);}
.little-reader-root .lr-game-feedback>strong{font-size:19px;line-height:1.7;color:var(--lr-green);}
.little-reader-root .lr-game-feedback>p{font-size:16px;line-height:1.8;}
.little-reader-root .lr-game-feedback>.lr-button{width:100%;}
.little-reader-root .lr-game-sounds{margin-top:18px;padding-top:15px;border-top:1px solid var(--lr-line);}
.little-reader-root .lr-game-sounds>.lr-button{font-size:14px!important;min-height:48px;}
.little-reader-root .lr-game-sounds>.lr-small{font-size:12px;margin-bottom:0;}
.little-reader-root .lr-skill-picture{width:70px;height:70px;object-fit:contain;border-radius:14px;background:#fff9ed;flex:none;}
.little-reader-root .lr-unit-list>button{grid-template-columns:70px minmax(0,1fr) auto;}
.little-reader-root [hidden]{display:none!important;}
@media(max-width:650px){.little-reader-root .lr-preview-tile{min-height:151px;}.little-reader-root .lr-tile-picture{height:57px;width:64px;}.little-reader-root .lr-letter-tile>span{font-size:38px;}.little-reader-root .lr-picture-scene{grid-template-columns:minmax(60px,1fr) minmax(100px,145px);min-height:152px;}.little-reader-root .lr-object-picture{height:140px;}.little-reader-root .lr-picture-scene .lr-big-letter{font-size:108px;}.little-reader-root .lr-picture-hero{padding:13px;}.little-reader-root .lr-picture-word>b{font-size:33px;}}
@media(max-width:360px){.little-reader-root .lr-preview-grid{gap:5px;}.little-reader-root .lr-tile-picture{height:47px;width:53px;}.little-reader-root .lr-preview-tile{min-height:137px;}.little-reader-root .lr-letter-tile>span{font-size:34px;}.little-reader-root .lr-letter-tile small{font-size:11px;}.little-reader-root .lr-picture-scene{grid-template-columns:minmax(58px,1fr) 112px;gap:7px;min-height:130px;}.little-reader-root .lr-object-picture{height:112px;border-radius:16px;}.little-reader-root .lr-picture-scene .lr-big-letter{font-size:98px;}.little-reader-root .lr-picture-caption{gap:8px;}.little-reader-root .lr-picture-caption h3{font-size:20px;}.little-reader-root .lr-picture-word>b{font-size:29px;}.little-reader-root .lr-unit-list>button{grid-template-columns:58px minmax(0,1fr) auto;}.little-reader-root .lr-skill-picture{width:58px;height:58px;}}
@media(prefers-reduced-motion:reduce){.little-reader-root .lr-picture-scene,.little-reader-root .lr-object-picture,.little-reader-root .lr-picture-scene .lr-big-letter{transition:none;animation:none;}}

/* Tap-led comparisons keep whole Arabic clusters intact and animate only a clue. */
.lr-example-demo{padding:18px;border:1px solid var(--lr-line);border-radius:20px;background:var(--lr-paper);margin-block:18px}
.lr-example-demo>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.lr-example-demo>header p{font-size:15px;line-height:1.7;margin:5px 0}
.lr-example-demo>header .lr-skill-picture{width:64px;height:64px}
.lr-example-picks{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.little-reader-root .lr-example-picks>.lr-button{flex:1 1 68px;min-height:92px;min-width:0;padding:8px 12px;border-radius:16px;text-align:center;background:var(--lr-soft)}
.lr-example-picks>.lr-button>span{font:400 clamp(33px,8cqi,46px)/1.9 Amiri,serif;letter-spacing:0;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.little-reader-root .lr-example-words>.lr-button{flex-basis:120px}
.little-reader-root .lr-example-picks>.lr-button.is-noticed{border:2px solid var(--lr-green);padding:7px 11px;background:var(--lr-paper);box-shadow:0 3px 0 #2f816428}
.little-reader-root .lr-example-note{font-size:17px;line-height:1.85;min-height:3.7em;border-inline-start:3px solid #62a58a;background:var(--lr-soft);border-radius:0 12px 12px 0;margin:16px 0 12px;padding:10px 14px;color:var(--lr-ink)}
.little-reader-root[dir=rtl] .lr-example-note{border-radius:12px 0 0 12px}
.lr-example-demo>.lr-button{width:100%}
.lr-built-example{padding:6px 10px;background:var(--lr-paper);border:1px solid var(--lr-line);border-radius:16px;margin-block:14px;text-align:center}
.little-reader-root .lr-built-example>.lr-arabic{margin:0;min-height:2.1em;line-height:2.1}
.lr-built-example>span{font-size:12px;line-height:1.7;color:var(--lr-muted)}
.lr-blend-demo>.lr-button{width:100%}
@media(max-width:400px){.lr-example-demo{padding:13px}.little-reader-root .lr-example-picks>.lr-button{flex-basis:58px;padding-inline:8px}.little-reader-root .lr-example-picks>.lr-button.is-noticed{padding-inline:7px}.lr-example-picks{gap:7px}.lr-example-demo>header .lr-skill-picture{width:52px;height:52px}.little-reader-root .lr-example-note{font-size:15px}}
@media(max-width:400px){.little-reader-root .lr-example-words>.lr-button{flex-basis:110px}}

/* A clear reward for an answered task; retries invite another look. */
.little-reader-root .lr-feedback{position:relative;padding:22px;border-radius:24px;border:2px solid var(--lr-line)}
.little-reader-root .lr-answer-mark{display:grid;place-items:center;width:76px;height:76px;border-radius:26px;margin:0 0 14px;background:#e0f3df;color:#246647;box-shadow:0 5px 0 #c4dfbd}
.little-reader-root .lr-answer-mark svg{width:54px;height:54px}
.little-reader-root .lr-retry-mark{width:58px;height:58px;border-radius:20px;background:#fff0cf;color:#80591c;box-shadow:none}
.little-reader-root .lr-retry-mark svg{width:39px;height:39px}
.little-reader-root .lr-feedback-correct{background:linear-gradient(135deg,#f0fae9,var(--lr-paper));border-color:#8abb79}
.little-reader-root .lr-feedback-retry{background:var(--lr-paper);border-color:#dfc78f}
.little-reader-root .lr-feedback>strong{display:block;font-size:24px;line-height:1.5;max-width:22ch}
.little-reader-root .lr-feedback>p{font-size:17px;line-height:1.85;max-width:52ch}
.little-reader-root .lr-feedback>.lr-button{display:block;width:100%;margin-top:20px;min-height:56px}
.little-reader-root .lr-done>.lr-answer-mark{margin:0 auto -22px;position:relative;z-index:1;width:68px;height:68px;border:4px solid var(--lr-paper);box-shadow:none}
.little-reader-root .lr-done>.lr-finish-friend{margin-top:0}
@media(max-width:400px){.little-reader-root .lr-feedback{padding:16px}.little-reader-root .lr-feedback>strong{font-size:22px}.little-reader-root .lr-feedback>p{font-size:16px}.little-reader-root .lr-feedback-friend{width:62px;height:62px}.little-reader-root .lr-answer-mark{width:68px;height:68px}.little-reader-root .lr-options{gap:10px}}
:is(body.dark,html[data-theme=dark]) .little-reader-root .lr-feedback-correct{background:#213c29;border-color:#77a46b}
:is(body.dark,html[data-theme=dark]) .little-reader-root .lr-answer-mark{background:#315e3b;color:#d7f5c9;box-shadow:0 5px 0 #172d1d}
:is(body.dark,html[data-theme=dark]) .little-reader-root .lr-retry-mark{background:#4c3e25;color:#f6dca1;box-shadow:none}
@media(prefers-reduced-motion:reduce){.little-reader-root .lr-answer-mark{animation:none;transition:none}}

.little-reader-root .lr-compact-heading{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;margin:0}
.lr-compact-heading img{width:3.1rem;height:3.1rem}
.lr-compact-heading h2{margin:0}
.lr-other-tools>summary{cursor:pointer;padding:.7rem .25rem;font-weight:680;min-height:44px}
.lr-preview mushaf-step-guide[data-choice-deck] .lr-preview-grid {display:flex;flex-direction:row;gap:0}
.lr-preview mushaf-step-guide[data-choice-deck] .lr-preview-tile{display:grid;grid-template-columns:5rem 1fr;grid-template-rows:auto auto;gap:0 .9rem;align-content:center;align-items:center;justify-items:start;text-align:start;padding:.65rem 1rem;border-radius:.75rem;min-height:6rem}
.lr-preview .lr-preview-tile img{grid-row:span 2;width:5rem;height:5rem;object-fit:contain}
.lr-preview .lr-preview-tile>span[lang="ar"]{font-size:2rem;line-height:1.3}

/* Whole word choices need their own width; short letter choices still sit together. */
@media(max-width:480px){
 .little-reader-root .lr-glyph-options{display:flex;flex-wrap:wrap;align-items:stretch}
 .little-reader-root .lr-glyph-options>.lr-button{flex:1 0 auto;min-inline-size:3.25rem;max-inline-size:100%;padding-inline:.65rem}
}
/* The existing reading engine is a step inside the shared Garden. */
.little-reader-root .lr-garden-frame{margin-block:0 1.1rem}
.little-reader-root .lr-garden-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-block-end:.6rem}
.little-reader-root .lr-garden-toolbar>a{display:inline-flex;align-items:center;min-height:44px;color:var(--green,#187b66);font-weight:750;text-decoration:none}
.little-reader-root .lr-garden-toolbar>a:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.little-reader-root .lr-world-pal{display:block;flex:none;width:5rem;height:5rem;object-fit:contain}
.little-reader-root .lr-guide>.lr-world-pal{width:6rem;height:6rem}
.little-reader-root .lr-compact-heading>.lr-world-pal{width:4.25rem;height:4.25rem}
.little-reader-root :is(.lr-world-pal,.lr-feedback-friend,.lr-finish-friend)>.garden-pal-art{display:block;width:100%;height:100%}
.little-reader-root :is(.lr-world-pal,.lr-feedback-friend,.lr-finish-friend) .garden-pal-svg{width:100%;height:100%;overflow:visible}
.little-reader-root .lr-feedback-friend{display:block;width:5rem;height:5rem;object-fit:contain}
.little-reader-root .lr-finish-friend{display:block;width:8rem;height:8rem;margin-inline:auto;object-fit:contain}
.little-reader-root .lr-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(7rem,10rem);align-items:center;gap:1rem;padding:clamp(1.1rem,4vw,2rem);border-radius:1.5rem}
.little-reader-root .lr-entry h2{font-size:clamp(1.5rem,5vw,2rem);margin-block:.35rem .65rem}
.little-reader-root .lr-entry-picture{width:100%;height:auto;max-height:11rem;object-fit:contain;border-radius:1rem}
.little-reader-root .lr-done>a.lr-button{display:inline-flex;text-decoration:none;align-items:center;justify-content:center}
@media(max-width:420px){.little-reader-root .lr-entry{grid-template-columns:minmax(0,1fr) 6.5rem;gap:.65rem}.little-reader-root .lr-garden-toolbar{gap:.35rem}.little-reader-root .lr-guide>.lr-world-pal{width:4.75rem;height:4.75rem}}

.little-reader .lr-trace-link,.lr-trace-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.4rem .8rem;margin-inline-end:.45rem;font-weight:650;text-underline-offset:.18em}


/* /children-trail.css */
.children-trail{border:1px solid var(--quest-line,#cedfd2);border-radius:28px;background:var(--quest-card,#fffefa);padding:24px;margin-bottom:36px;color:var(--quest-ink,#183e31);overflow-wrap:anywhere}.children-trail h2{font-family:inherit;font-size:clamp(24px,3vw,31px);line-height:1.4;letter-spacing:-.4px}.children-trail[dir=rtl] h2{font-family:inherit;letter-spacing:0;line-height:1.7}.ct-welcome{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:20px;margin-bottom:22px}.ct-guide-art{width:150px;height:auto;max-width:100%;object-fit:contain}.ct-welcome .quest-kicker{font-family:inherit;font-size:12px;letter-spacing:.07em}.ct-welcome h2{margin:5px 0 10px}.ct-welcome p:not(.quest-kicker){font-size:15px;line-height:1.85;color:var(--quest-muted,#4f695e);margin:0}.ct-comfort,.ct-question,.ct-self-report{border:0;padding:0;margin:16px 0;min-width:0;display:grid;gap:10px}.ct-comfort{grid-template-columns:1fr 1fr}.ct-comfort legend,.ct-question legend,.ct-self-report legend{font-weight:750;font-size:15px;line-height:1.7;padding:0 0 12px;width:100%}.ct-comfort>button{display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:7px;padding:18px;border-radius:18px;min-width:0}.ct-comfort>button>span{width:36px;height:36px;display:grid;place-items:center;background:#f8df9f;color:#634215;border-radius:11px;font-size:22px}.ct-comfort strong{font-size:15px}.ct-comfort small{font-weight:400;font-size:14px;line-height:1.8;color:var(--quest-muted,#4f695e)}.ct-ready{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--quest-muted);padding-bottom:12px}.ct-ready .quest-secondary{padding:6px 12px;min-height:44px}.ct-continue{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--quest-sky,#e8f4f3);border:1px solid var(--quest-line);border-radius:20px;padding:20px}.ct-continue small{font-size:12px;font-weight:750;color:var(--quest-green);letter-spacing:.05em}.ct-continue h3{font-size:21px;line-height:1.5;margin:7px 0}.ct-continue p{font-size:15px;line-height:1.8;color:var(--quest-muted);margin:0}.ct-continue button{flex-shrink:0}.ct-choose{margin-block:12px}.ct-choose summary,.ct-guide summary,.ct-sources summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;color:var(--quest-green);font-size:13px;font-weight:700;line-height:1.65}.ct-choose>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-block:8px}.ct-guide{border-top:1px solid var(--quest-line);margin-top:18px;padding-top:8px}.ct-guide p,.ct-sources p{font-size:12px;line-height:1.9;color:var(--quest-muted);margin:10px 0}.ct-sources{margin-top:20px}.ct-sources a{display:block;min-height:44px;align-content:center;color:var(--quest-green);font-size:12px;line-height:1.8;padding-block:6px}.ct-session-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--quest-muted)}.ct-session-head>button{background:transparent;border:0;padding-inline:0;font-size:12px;text-align:start}.ct-session-head>span{white-space:nowrap}.ct-stepper{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:0;margin:18px 0 26px}.ct-stepper li{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;font-size:12px;line-height:1.6;color:var(--quest-muted)}.ct-stepper li>span{display:grid;place-items:center;border:1px solid var(--quest-line);border-radius:50%;width:28px;height:28px;font-size:12px;background:var(--quest-paper)}.ct-stepper li[aria-current=step]{color:var(--quest-green);font-weight:800}.ct-stepper li[aria-current=step]>span{background:var(--quest-green);color:var(--quest-card);border-color:var(--quest-green)}.ct-instruction{font-size:16px;line-height:1.9;color:var(--quest-muted);margin:12px 0 18px}.ct-ayah{border:1px solid var(--quest-line);border-radius:20px;padding:18px;background:var(--quest-paper);margin-bottom:20px}.ct-ayah-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--quest-muted);flex-wrap:wrap}.ct-ayah-heading a{color:var(--quest-green);min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:3px}.ct-quran{font-family:'QatrahEdition-hafs',Amiri,serif!important;font-size:clamp(27px,5vw,35px);font-weight:400;line-height:2.2;text-align:right;margin:14px 0 20px;word-break:normal;overflow-wrap:normal}.ct-audio-controls{display:flex;gap:8px;flex-wrap:wrap}.ct-audio-status{font-size:12px;line-height:1.7;color:var(--quest-muted);min-height:1.7em;margin:8px 0 0}.ct-learning-note{padding:18px;border-inline-start:4px solid #dca846;background:var(--quest-sky);border-radius:12px;margin-bottom:20px}.ct-learning-note>span{font-size:12px;letter-spacing:.03em;font-weight:750;color:var(--quest-green)}.ct-learning-note>p{font-size:16px;line-height:1.95;margin:8px 0;color:var(--quest-ink)}.ct-focus-word{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid var(--quest-line);padding-top:12px}.ct-focus-word b{font-family:Amiri,serif;font-size:28px;font-weight:400;line-height:1.8}.ct-focus-word span{font-size:13px;line-height:1.8}.ct-question>button,.ct-self-report>button,.ct-intentions>button{text-align:start;justify-content:flex-start;padding:14px 17px;min-height:54px;font-size:14px}.ct-selected,.ct-self-report>button[aria-pressed=true],.ct-intentions>button[aria-pressed=true]{border:2px solid var(--quest-green);background:var(--quest-sky)}.ct-feedback{padding:18px;background:var(--quest-sky);border-radius:16px;margin:16px 0;line-height:1.9}.ct-feedback>p{font-size:16px}.ct-feedback strong{font-size:15px;color:var(--quest-green)}.ct-feedback>button{width:100%}.ct-covered{padding:20px 10px;text-align:center;min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center}.ct-covered>span{letter-spacing:10px;color:var(--quest-gold);font-size:25px}.ct-covered p{font-size:16px;line-height:1.8;color:var(--quest-muted)}.ct-intentions{display:grid;gap:10px;margin-block:20px}.children-trail>.quest-primary{width:100%;margin-block:5px 10px}.children-trail>.quest-secondary{margin-block:5px}.ct-finished{text-align:center;max-width:630px;margin:auto}.ct-finish-icon{display:grid;place-items:center;width:70px;height:70px;background:#f8df9f;border-radius:50%;color:#805817;font-size:42px;margin:8px auto 18px}.ct-finished>p{font-size:16px;line-height:1.9;color:var(--quest-muted)}.ct-finished dl{text-align:start;border:1px solid var(--quest-line);border-radius:16px;padding:7px 17px;margin:22px 0}.ct-finished dl>div{padding:12px 0;border-bottom:1px solid var(--quest-line)}.ct-finished dl>div:last-child{border:0}.ct-finished dt{font-size:12px;color:var(--quest-muted);margin-bottom:4px}.ct-finished dd{font-size:14px;line-height:1.8;margin:0;font-weight:650}.ct-finished .ct-small{font-size:12px}.ct-finished .ct-sources{text-align:start}.ct-storage{padding:12px;border:1px solid var(--quest-warn);border-radius:10px;color:var(--quest-warn);font-size:12px;line-height:1.7}.children-trail button:disabled{opacity:.55;cursor:default}.quest-more-stories{padding-top:8px}.quest-more-stories h2{font-size:24px;margin-bottom:12px}.quest-more-stories .quest-kicker{display:none}.children-trail[dir=rtl] .quest-kicker,.children-trail[dir=rtl] .ct-continue small{letter-spacing:0}
@media(max-width:600px){.children-trail{padding:18px 15px;border-radius:23px;margin-bottom:25px}.ct-welcome{grid-template-columns:94px minmax(0,1fr);gap:12px;margin-bottom:20px}.ct-guide-art{width:94px}.ct-welcome h2{font-size:23px;margin-bottom:5px}.ct-welcome p:not(.quest-kicker){font-size:15px;line-height:1.8}.ct-welcome .quest-kicker{font-size:12px;margin-bottom:7px}.ct-comfort{grid-template-columns:1fr;gap:9px}.ct-comfort>button{display:grid;grid-template-columns:36px minmax(0,1fr);gap:3px 11px;padding:13px}.ct-comfort>button>span{grid-row:span 2}.ct-comfort small{font-size:14px}.ct-continue{display:block;padding:17px}.ct-continue>.quest-primary{width:100%;margin-top:16px}.ct-choose>div{grid-template-columns:1fr}.ct-ayah{padding:14px 12px}.ct-quran{font-size:30px;line-height:2.25}.ct-stepper{gap:3px}.ct-stepper li{font-size:12px}.ct-learning-note{padding:15px}.ct-audio-controls>.quest-secondary{padding:10px 12px}.ct-session-head>button{max-width:82%}}@media(max-width:350px){.ct-welcome{grid-template-columns:70px minmax(0,1fr);gap:9px}.ct-guide-art{width:70px}.ct-welcome h2{font-size:21px}.ct-welcome p:not(.quest-kicker){font-size:15px}.ct-comfort strong{font-size:14px}.ct-quran{font-size:28px}.ct-ayah-heading{gap:6px 12px}.ct-learning-note>p{font-size:16px}}

/* Keep child controls readable above the shared compact quest button rules. */
.children-trail .quest-primary,.children-trail .quest-secondary{font-size:15px;line-height:1.7;min-height:48px;white-space:normal}.children-trail .ct-stepper li{font-size:12px}.children-trail .ct-focus-word span,.children-trail .ct-finished dd{font-size:15px}.children-trail .ct-guide p,.children-trail .ct-sources p{font-size:14px}.children-trail .ct-choose summary,.children-trail .ct-guide summary,.children-trail .ct-sources summary{font-size:15px}.quests-root [data-quest-more-stories][hidden]{display:none}

.children-trail{scroll-margin-top:var(--ct-sticky-offset,84px)}.ct-link-arrow{width:15px;height:15px;flex:none;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-inline-start:5px}.children-trail[dir=rtl] .ct-link-arrow{transform:rotate(180deg)}


/* /revision-studio.css */
.revision-studio-root{--rev-ink:#163c35;--rev-muted:#4c655f;--rev-accent:#16715f;--rev-paper:#fffdf7;--rev-line:#d8e4dd;max-width:1040px;margin:auto;padding:32px clamp(16px,4vw,44px) 100px;color:var(--rev-ink);line-height:1.65;overflow-wrap:anywhere}.revision-studio-root *{box-sizing:border-box}.revision-studio-root button,.revision-studio-root summary,.revision-studio-root a{touch-action:manipulation}.revision-studio-root button{font:inherit}.revision-studio-root :focus-visible{outline:3px solid var(--rev-accent);outline-offset:4px}.rev-header{max-width:720px;margin-bottom:26px}.rev-back{display:block;border:0;background:none;padding:10px 0;min-height:44px;color:var(--rev-accent);font-weight:650!important;margin-bottom:20px;text-align:start}.rev-kicker{display:block;font-size:11px;font-weight:750;letter-spacing:1.15px;color:var(--rev-muted);line-height:1.7}.rev-header h1{font-size:clamp(30px,5vw,46px);line-height:1.2;letter-spacing:-1px;margin:7px 0 12px}.rev-header p{color:var(--rev-muted);margin:0;font-size:16px}.rev-home-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;align-items:start}.rev-start,.rev-walk-entry,.rev-card{background:var(--rev-paper);border:1px solid var(--rev-line);border-radius:20px;padding:clamp(20px,3vw,32px);min-width:0}.rev-start h2,.rev-walk-entry h2{font-size:24px;line-height:1.3;margin:10px 0}.rev-start p,.rev-walk-entry p{color:var(--rev-muted)}.rev-button{min-height:46px;border:1px solid var(--rev-line);border-radius:10px;padding:10px 16px;background:var(--rev-paper);color:var(--rev-ink);font-weight:650!important;line-height:1.45;margin:6px 7px 6px 0;max-width:100%;white-space:normal}.revision-studio-root[dir=rtl] .rev-button{margin:6px 0 6px 7px}.rev-primary{background:var(--rev-accent);border-color:var(--rev-accent);color:#fff}.rev-secondary{background:transparent}.rev-button:disabled{opacity:.55;cursor:default}.rev-options,.rev-more{margin-top:20px;border-top:1px solid var(--rev-line);padding-top:12px}.rev-options summary,.rev-more summary,.rev-source summary,.rev-small summary{min-height:44px;cursor:pointer;padding:10px 0;font-weight:650}.rev-topic-list{display:flex;gap:8px;flex-wrap:wrap}.rev-topic-list button{min-height:44px;padding:9px 14px;background:#edf4f0;border:1px solid var(--rev-line);border-radius:8px}.rev-map-symbol{display:block;font-size:28px;letter-spacing:4px;color:var(--rev-accent);line-height:1.3}.rev-walk-links{display:grid;gap:9px;margin-top:20px}.rev-walk-links button{display:flex;justify-content:space-between;align-items:center;text-align:start;gap:12px;min-height:62px;padding:12px 15px;border:1px solid var(--rev-line);background:transparent;border-radius:12px;font-weight:650}.rev-walk-links small{font-size:11px;color:var(--rev-muted);white-space:nowrap}.rev-existing{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rev-existing a{display:block;min-height:52px;padding:12px 15px;color:var(--rev-accent);border:1px solid var(--rev-line);border-radius:10px;text-decoration:none}.rev-more p,.rev-small,.rev-privacy{font-size:12px;color:var(--rev-muted);line-height:1.8}.rev-privacy{margin-top:24px}.rev-card{max-width:740px;margin:auto}.rev-position{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--rev-muted)}.rev-card progress{display:block;width:100%;height:5px;accent-color:var(--rev-accent);border:0;margin:15px 0 26px}.rev-card h2{font-size:clamp(24px,4vw,32px);line-height:1.35;margin:8px 0 15px;letter-spacing:-.4px}.rev-prompt{font-size:19px;line-height:1.75;margin:15px 0 22px}.rev-place{display:grid;gap:4px;background:#edf4f0;border-inline-start:3px solid var(--rev-accent);padding:12px 16px;border-radius:0 10px 10px 0;margin-bottom:22px}.rev-place span{font-size:11px;color:var(--rev-muted)}.rev-place strong{font-size:19px}.rev-picture{margin:18px 0}.rev-picture img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain;border-radius:14px;background:#f1f5ef}.rev-picture figcaption{font-size:11px;color:var(--rev-muted);margin-top:7px}.rev-clue,.rev-example{padding:15px 18px;border:1px dashed var(--rev-line);border-radius:12px;margin:16px 0}.rev-clue>span,.rev-example>span,.rev-answer>span,.rev-verse>span{font-size:11px;font-weight:700;color:var(--rev-muted)}.rev-clue p,.rev-example p{margin:6px 0}.rev-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}.rev-answer{margin-top:24px;padding-top:22px;border-top:2px solid var(--rev-accent)}.rev-answer h3{font-size:21px;line-height:1.5;margin:8px 0}.rev-answer p{line-height:1.85}.rev-rating{margin:22px 0}.rev-rating>p{font-size:12px;color:var(--rev-muted)}.rev-source{display:flex;gap:7px 12px;flex-wrap:wrap;align-items:baseline;border-top:1px solid var(--rev-line);padding-top:18px;margin-top:25px;font-size:12px}.rev-source>span{font-weight:700;color:var(--rev-muted)}.rev-source a{color:var(--rev-accent);text-underline-offset:3px}.rev-source details{flex-basis:100%}.rev-source summary{padding:7px 0;min-height:35px}.rev-source details p{margin:0 0 12px}.rev-verse{border:1px solid var(--rev-line);border-radius:12px;padding:16px;margin:18px 0}.rev-quran{font-size:30px!important;line-height:2.2!important;text-align:start!important;letter-spacing:normal!important;word-spacing:normal!important;font-synthesis:none}.rev-verse>a{display:inline-block;padding:10px;color:var(--rev-accent);font-size:12px}.rev-saved{padding:12px;border-radius:10px;background:#edf4f0;font-size:13px}.rev-warning{background:#fff6db;border:1px solid #d9bd72;padding:16px 20px;border-radius:12px;color:#534111}.rev-footer{max-width:740px;margin:16px auto}.rev-check-order{padding-inline-start:24px}.rev-check-order li{padding:12px 0 22px;border-bottom:1px solid var(--rev-line)}.rev-check-order li:last-child{border:0}.rev-check-order p{font-size:14px}.rev-summary{text-align:center}.rev-check{width:62px;height:62px;display:grid;place-items:center;border-radius:50%;background:#e7f2e9;color:var(--rev-accent);font-size:31px;margin:8px auto 25px}.rev-audio-status{font-size:12px}.revision-studio-root[dir=rtl] .rev-kicker{letter-spacing:0}.revision-studio-root[dir=rtl] h1,.revision-studio-root[dir=rtl] h2{letter-spacing:0;line-height:1.7}.revision-studio-root[dir=rtl] .rev-place{border-radius:10px 0 0 10px}body[data-profile=youth] .revision-studio-root{--rev-ink:#12263d;--rev-muted:#536172;--rev-accent:#006f68;--rev-paper:#fffdf7;--rev-line:#dadfdc}body[data-profile=youth] .rev-start{border-top:4px solid #b97918}body[data-profile=youth] .rev-walk-entry{background:#12263d;color:#fff}body[data-profile=youth] .rev-walk-entry p,body[data-profile=youth] .rev-walk-links small{color:#d6e0e5}body[data-profile=youth] .rev-walk-links button{color:#fff;border-color:#496071}body[data-profile=youth] .rev-map-symbol{color:#e9c977}body[data-profile=kids] .rev-start,body[data-profile=kids] .rev-card{border-radius:25px}body[data-profile=kids] .rev-header h1{color:#315c48}body[data-profile=kids] .rev-check{background:#fff0bd;color:#7a5814}@media(max-width:680px){.rev-home-grid,.rev-existing{grid-template-columns:1fr}.revision-studio-root{padding-top:20px}.rev-card{padding:21px 18px}.rev-header{margin-bottom:22px}.rev-prompt{font-size:18px}.rev-quran{font-size:28px!important}.rev-walk-links button{flex-wrap:wrap}.rev-card .rev-actions .rev-button{flex:1 1 130px}.rev-rating .rev-button{width:100%;margin-inline:0}.rev-source a{overflow-wrap:anywhere}}@media(prefers-reduced-motion:reduce){.revision-studio-root *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.rev-mark{width:19px;height:19px;display:inline-block;vertical-align:middle;margin-inline-end:7px;flex:none}.rev-diagram{padding:14px;border:1px solid var(--rev-line);border-radius:12px;margin:18px 0}.rev-diagram>span{font-size:12px;font-weight:700}.rev-diagram-items{padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}.rev-diagram-items li{border:1px solid var(--rev-line);border-radius:8px;padding:9px 12px;background:#edf4f0;flex:1 1 110px;text-align:center;font-size:14px}

.revision-studio-root [data-rev-focus],.revision-studio-root [data-rev-answer-focus],.revision-studio-root [data-rev-action="next"]{scroll-margin-top:110px}

.rev-source-open{background:none;border:0;padding:8px 0;min-height:44px;text-align:start;color:var(--rev-accent);font-weight:650;text-decoration:underline;text-underline-offset:3px}.rev-source-pane{flex-basis:100%;width:100%;min-width:0;border:1px solid var(--rev-line);border-radius:12px;padding:16px;margin-top:10px;background:var(--rev-paper)}.rev-source-pane[hidden]{display:none}.rev-source-pane>header{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:12px}.rev-source-pane h3{font-size:18px;margin:5px 0;scroll-margin-top:110px}.rev-source-language{font-size:12px;color:var(--rev-muted)}.rev-source-scroll{max-height:60vh;overflow:auto;overscroll-behavior:contain;padding:0 10px;scrollbar-gutter:stable}.rev-source-scroll h4{font-size:14px;line-height:1.7}.rev-source-original{white-space:pre-wrap;font-size:16px;line-height:1.9;user-select:text;margin:15px 0}.rev-source-original[lang=ar]{font-family:var(--arabic);font-size:21px;line-height:2}.rev-source-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.rev-source-pages button{min-height:44px;padding:8px;border:1px solid var(--rev-line);border-radius:8px;background:var(--rev-paper);color:var(--rev-accent)}.rev-source-pages button:disabled{opacity:.5}.rev-source-edition{margin-top:14px;font-size:12px}.rev-source-edition a{display:inline-block;padding:8px 0}.rev-source-edition p{color:var(--rev-muted)}

.rev-language-note{border-inline-start:3px solid var(--rev-accent);padding:10px 16px;font-size:13px;background:#edf4f0;color:var(--rev-ink);border-radius:8px}


/* /youth-studio.css */
/* Youth uses the reader's paper, ink and action colours in each theme. */
.youth-studio,.study-landing.ys-study{
  --ys-paper:var(--panel,#fffdf8);--ys-ink:var(--ink,#1c302c);
  --ys-muted:var(--muted,#53675e);--ys-accent:var(--green,#155548);
  --ys-on-accent:var(--on-accent,#fff);--ys-pale:var(--pale,#e6f0e9);
  --ys-line:var(--line,#cedbd0);--ys-control:var(--control-line,#748579);
  inline-size:100%;max-inline-size:55rem;min-inline-size:0;margin-inline:auto;
  color:var(--ys-ink);font-family:var(--font-ui,system-ui,sans-serif);line-height:1.55;text-align:start;
}
.youth-studio *,.ys-study *{box-sizing:border-box}
.youth-studio [hidden],.ys-study [hidden]{display:none!important}
.youth-studio :is(h1,h2,h3,p,figure,blockquote),.ys-study .ys-study-lead :is(h1,p){margin:0}
.youth-studio :is(button,a,summary),.ys-study :is(button,a,summary){font-family:inherit;touch-action:manipulation}
.youth-studio :is(button,summary),.ys-study summary{cursor:pointer}
.youth-studio :is(button,a,summary):focus-visible,.ys-study :is(button,a,summary):focus-visible{outline:3px solid var(--focus-ring,#805b24);outline-offset:3px}
.youth-studio svg,.ys-study svg{flex:none}
.youth-studio :is(.ys-reading-place,.ys-primary,.ys-step-actions button,.ys-step-actions a,.ys-try-again,[data-youth-compare],[data-youth-skill-next]),.ys-study .ys-study-lead .lf-lesson-link{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-block-size:44px;
  padding:.45rem .9rem;border:1px solid var(--ys-accent);border-radius:.65rem;
  background:var(--ys-paper);color:var(--ys-accent);text-decoration:none;font:650 1rem/1.5 var(--font-ui,system-ui,sans-serif);
}
html body .youth-studio .ys-quran-card a.ys-reading-place,.youth-studio .ys-step-actions .ys-next-prompt,.ys-study .ys-study-lead .lf-lesson-link{color:var(--ys-on-accent);background:var(--ys-accent)}
html body .youth-studio .ys-quran-card a.ys-reading-place :is(svg,strong){color:inherit}
.youth-studio .ys-reading-place svg{inline-size:1.14rem;block-size:1.14rem}
.ys-quran-card,.ys-study-lead{position:relative;display:grid;min-inline-size:0;gap:.55rem;padding:clamp(1rem,3vw,2rem);background:var(--ys-paper);border:1px solid var(--ys-line);border-inline-start:4px solid var(--ys-accent);border-radius:.8rem}
.youth-studio .ys-quran-card{border:0;background:var(--ys-pale)}
.ys-quran-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.ys-quran-top h1{min-inline-size:0}.ys-quran-actions{display:flex;align-items:center;gap:.55rem;flex:none}.youth-studio .ys-quran-actions .today-calendar-link{background:var(--ys-paper);border-color:var(--ys-line);color:var(--ys-accent)}
.ys-quran-card h1,.ys-study .ys-study-lead h1{font-size:clamp(1.55rem,4vw,2.45rem);line-height:1.3;color:var(--ys-ink)}
.ys-quran-card .quran-coverage{display:flex;align-items:center;gap:.3rem;color:var(--ys-muted)}
.ys-quran-card .quran-coverage-ring{inline-size:2.25rem;block-size:2.25rem}
.ys-quran-card .quran-coverage-ring strong{font-size:.65rem}
.ys-quran-source,.ys-sample,.ys-byline,.ys-more>summary small,.ys-practice>summary small,.ys-study .ys-study-lead>p{color:var(--ys-muted)}
.ys-quran-card .ys-quran-source{font-weight:650;color:var(--ys-accent);font-size:.98rem}
.ys-quran-card .ys-verse-preview{font-family:var(--arabic,'Noto Naskh Arabic',serif);font-size:clamp(1.45rem,4.4vw,2.2rem);line-height:1.8;text-align:start;color:var(--ys-ink);text-wrap:pretty}
.ys-reading-actions,.ys-byline{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem}
.ys-reading-actions{margin-block-start:.3rem}
.ys-reading-record{--day-rule:var(--ys-line);--day-quran:var(--ys-accent);min-inline-size:0;border-block-start:1px solid var(--ys-line);padding-block-start:.65rem;margin-block-start:.2rem}
.youth-studio .ys-reading-record .daily-reading-record{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit}
.ys-reading-record .folio-quran-record{display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,1.1fr);align-items:center;gap:.85rem 1.5rem;min-inline-size:0}
.ys-reading-record .folio-reading-progress{display:grid;gap:.5rem;min-inline-size:0;color:var(--ys-muted);font-size:.875rem}
.ys-reading-record .folio-reading-progress>span{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.2rem .6rem}
.ys-reading-record .folio-reading-progress a{color:var(--ys-accent);text-underline-offset:.2em}
.ys-reading-record .folio-reading-progress strong{color:var(--ys-ink);font-size:1rem;font-weight:600}
.ys-reading-record .folio-reading-progress progress{display:block;inline-size:100%;block-size:6px;accent-color:var(--ys-accent)}
.ys-reading-record .folio-reading-goal-met{display:flex;align-items:center;gap:.35rem;color:var(--ys-accent);font-size:.875rem}
.ys-reading-record .folio-reading-goal-met svg,.ys-reading-record .folio-quran-day svg{inline-size:1rem;block-size:1rem}
.ys-reading-record .folio-quran-week{min-inline-size:0}
.ys-reading-record .folio-quran-week-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-block-end:.2rem;color:var(--ys-muted);font-size:.875rem}
.ys-reading-record .folio-quran-week-heading>span{display:grid;gap:.02rem}
.ys-reading-record .folio-quran-week-heading small{font:inherit}
.youth-studio .ys-reading-record .folio-quran-tracker-link{display:none}
.ys-reading-record .folio-quran-week ol{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;margin:0;padding:0;list-style:none}
.ys-reading-record .folio-quran-day{display:flex;align-items:center;justify-content:center;flex-direction:column;min-inline-size:0;min-block-size:44px;gap:.15rem;color:var(--ys-muted);text-decoration:none;font-size:.8125rem}
.ys-reading-record .folio-quran-day>b{display:flex;align-items:center;justify-content:center;inline-size:2rem;block-size:2rem;border:1px solid transparent;border-radius:50%;color:var(--ys-muted);font-weight:500}
.ys-reading-record .folio-quran-day.is-read>b{background:var(--ys-accent);color:var(--ys-on-accent)}
.ys-reading-record .folio-quran-day.is-today>b{border-color:var(--ys-accent);font-weight:700}
.ys-reading-record .folio-quran-day:is(:hover,:focus-visible)>b{outline:2px solid var(--ys-accent);outline-offset:1px}
.ys-routine-content{min-inline-size:0;margin-block:.85rem 1rem}
.ys-routine-content>.folio-worship{min-inline-size:0;margin:0;padding:0}
.ys-routine-content .folio-routine[data-routine-visible]{min-inline-size:0;margin:0;padding:.3rem .2rem;border:0;background:transparent;box-shadow:none}
html body .youth-studio .folio-day.ys-routine-shell{
  --day-ink:var(--ys-ink);--day-muted:var(--ys-muted);--day-paper:var(--ys-paper);--day-rule:var(--ys-line);
  --day-quran:var(--ys-accent);--day-on-quran:var(--ys-on-accent);--folio-face:var(--font-ui,system-ui,sans-serif);
  display:block;inline-size:100%;max-inline-size:none;min-inline-size:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;font:inherit;
}
html body .youth-studio .ys-routine-shell>.today-quran-axis{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body .youth-studio .ys-routine-shell .today-quran-axis .folio-worship .folio-routine[data-routine-visible]{margin:0;padding:.35rem .2rem;border:0}
.ys-progress-link {display:flex;align-items:center;gap:.35rem;min-block-size:44px;color:var(--ys-accent);text-decoration:none;font-size:.875rem;font-weight:650;line-height:1.4}
.ys-progress-link>span:last-child {max-inline-size:5rem}
.ys-progress-link:hover>span:last-child {text-decoration:underline;text-underline-offset:.2em}
.ys-reading-intro {display:grid;grid-template-columns:minmax(0,1fr) 5.25rem;gap:.75rem;align-items:center}
.ys-reading-art {display:block;justify-self:end;inline-size:5.25rem;max-inline-size:100%;block-size:auto;aspect-ratio:3/2;object-fit:contain;border-radius:.5rem}
.youth-studio .ys-reading-cue {color:var(--ys-muted);font-size:.9rem;line-height:1.5}
.ys-reading-invitation{display:grid;gap:.5rem;min-inline-size:0}
.ys-reading-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:.45rem;min-inline-size:0}
.ys-reading-sizes .ys-reading-size{display:grid;align-content:center;min-inline-size:0;min-block-size:44px;padding:.45rem .65rem;border:1px solid var(--ys-control);border-radius:.6rem;background:var(--ys-paper);color:var(--ys-ink);font:inherit;text-align:center;line-height:1.4}
.ys-reading-size:only-child{grid-column:1 / -1}
.ys-reading-size strong{font-size:.9375rem;font-weight:650}
.ys-reading-sizes .ys-reading-size[aria-pressed="true"]{border:2px solid var(--ys-accent);padding:calc(.45rem - 1px) calc(.65rem - 1px);box-shadow:inset 0 -3px var(--ys-accent)}
.ys-reading-size[aria-pressed="true"] strong{color:var(--ys-accent)}
.ys-reading-offer{display:grid;gap:.35rem;min-inline-size:0}
.ys-reading-offer .ys-reading-actions{margin:0}
.ys-reading-tools{display:flex;flex-wrap:wrap;gap:.15rem .75rem;min-inline-size:0;border-block-start:1px solid var(--ys-line);padding-block-start:.15rem}
.ys-reading-tools :is(.ys-meaning,.ys-recite,.ys-open-reader){display:inline-flex;flex:1 1 auto;align-items:center;justify-content:center;gap:.4rem;min-block-size:44px;max-inline-size:100%;padding:.15rem .25rem;color:var(--ys-accent);font-size:.875rem;font-weight:600;line-height:1.5;text-decoration:none}
.ys-reading-tools svg{inline-size:1.1rem;block-size:1.1rem}
.ys-reading-tools a:hover span{text-decoration:underline;text-underline-offset:.2em}
@media(max-width:420px){.ys-reading-sizes{gap:.4rem}.ys-reading-tools{column-gap:.5rem}}
@media(forced-colors:active){.ys-reading-sizes .ys-reading-size[aria-pressed="true"]{outline:2px solid Highlight;outline-offset:-4px}}
@media(max-width:360px){.youth-studio .ys-quran-card{padding:.85rem}.ys-quran-top{gap:.5rem}.ys-progress-link{flex-direction:column;gap:0;text-align:center}.ys-reading-intro{gap:.55rem}}
.ys-launch{display:grid;align-items:start;gap:.8rem;min-inline-size:0;padding:clamp(.85rem,2.6vw,1.35rem);margin-block:.7rem;border:1px solid var(--ys-line);border-radius:.8rem;background:var(--ys-paper)}
.ys-launch .ys-byline{align-self:center;color:var(--ys-ink)}
.ys-track-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;min-inline-size:0}
.ys-track-list .ys-track{display:grid;align-content:center;gap:.12rem;min-inline-size:0;min-block-size:3.6rem;padding:.48rem .55rem;border:1px solid var(--ys-line);border-radius:.5rem;text-align:start;color:var(--ys-ink);background:var(--ys-paper);font:inherit;line-height:1.4}
.ys-track-list .ys-track[aria-pressed=true]{border:2px solid var(--ys-accent);padding:calc(.48rem - 1px) calc(.55rem - 1px);color:var(--ys-accent);background:var(--ys-pale)}
.ys-track strong{font-size:.95rem;overflow-wrap:anywhere}
.ys-track bdi{color:var(--ys-muted);font-size:.875rem;font-variant-numeric:tabular-nums}
.ys-track progress{display:block;inline-size:100%;block-size:.3rem;margin-block-start:.12rem;accent-color:var(--ys-accent)}
.ys-mission-preview{display:grid;align-content:start;justify-items:start;gap:.18rem;min-inline-size:0}
.ys-mission-preview .ys-sample{font-size:1rem;line-height:1.55}
.ys-reading-actions .ys-recite,.ys-launch .ys-shared-challenges{display:inline-flex;align-items:center;gap:.45rem;min-block-size:44px;color:var(--ys-accent);text-decoration:none;font-weight:650;font-size:.95rem}
.ys-recite svg,.ys-shared-challenges svg{inline-size:1.15rem;block-size:1.15rem}
.ys-reading-actions .ys-recite{padding:.25rem .4rem}
.ys-launch .ys-shared-challenges{justify-self:stretch;border-block-start:1px solid var(--ys-line);padding-block-start:.35rem}
.ys-recite:hover span,.ys-shared-challenges:hover span{text-decoration:underline;text-underline-offset:.18em}
@media(min-width:700px){.ys-launch{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:clamp(1.1rem,3vw,2rem)}.ys-launch .ys-byline{grid-column:1;grid-row:1}.ys-launch .ys-track-list{grid-column:1;grid-row:2}.ys-launch .ys-mission-preview{align-self:center;grid-column:2;grid-row:1 / span 2;padding-inline-start:clamp(1.1rem,3vw,2rem);border-inline-start:1px solid var(--ys-line)}.ys-launch .ys-shared-challenges{grid-column:1 / -1}}
.ys-byline{min-block-size:36px;gap:.55rem;font-size:.88rem;font-weight:600}
.ys-byline img,.ys-guide-dialog img{display:block;inline-size:2.35rem;block-size:2.35rem;border:1px solid var(--ys-line);object-fit:cover;object-position:center 23%;border-radius:50%;background:var(--ys-pale);user-select:none;-webkit-user-drag:none}
.ys-launch h2,.ys-question h3{color:var(--ys-ink);font-size:clamp(1.15rem,3vw,1.5rem);line-height:1.45}
.ys-sample{max-inline-size:58ch}html body .youth-studio .ys-launch button.ys-primary{margin-block-start:.05rem;padding:.3rem 0;gap:.48rem;border:0;border-radius:0;background:transparent;color:var(--ys-accent);box-shadow:none}
.ys-launch .ys-primary svg{inline-size:1rem;block-size:1rem}
.ys-launch .ys-primary:hover span{text-decoration:underline;text-underline-offset:.2em}
.youth-studio .ys-notebook-progress{color:var(--ys-accent);font-size:.875rem;font-weight:600;line-height:1.5}
.youth-studio .lf-fieldwork{margin-block:1.1rem}
.youth-studio .lf-fieldwork h2,.ys-study-heading h2{font-size:clamp(1.15rem,2.5vw,1.4rem);line-height:1.45;color:var(--ys-ink);margin:0 0 .5rem}
.ys-practice,.ys-more{min-inline-size:0;border-block-end:1px solid var(--ys-line)}
.ys-practice>summary,.ys-more>summary,.ys-study .lf-subject>summary{list-style:none;display:flex;align-items:center;gap:.7rem;min-block-size:48px;padding:.55rem .1rem;color:var(--ys-ink);font-weight:650}
.ys-practice>summary::-webkit-details-marker,.ys-more>summary::-webkit-details-marker,.ys-study .lf-subject>summary::-webkit-details-marker{display:none}
.ys-practice>summary:after,.ys-more>summary:after,.ys-study .lf-subject>summary:after{content:'';flex:none;inline-size:.5rem;block-size:.5rem;border:solid var(--ys-accent);border-width:0 2px 2px 0;transform:rotate(45deg);margin-inline:auto .45rem}
.ys-practice[open]>summary:after,.ys-more[open]>summary:after,.ys-study .lf-subject[open]>summary:after{transform:rotate(225deg)}
.ys-practice>summary img{inline-size:4.5rem;block-size:3.4rem;object-fit:cover;border-radius:.5rem}
.ys-practice>summary small,.ys-more>summary small{display:block;font-size:.87rem;font-weight:450}
.ys-more{margin-block:.28rem}.ys-more[open]{padding-block-end:.6rem}
.youth-studio .lf-field-lesson,.ys-practice-links a,.ys-linked-lesson a,.ys-footer a,.ys-map-feature a,.ys-study a{color:var(--ys-accent);text-underline-offset:.22em}
.youth-studio .lf-field-lesson,.ys-practice-links a,.ys-linked-lesson a,.ys-footer a,.ys-map-feature a{display:inline-flex;align-items:center;gap:.4rem;min-block-size:44px;padding:.2rem .12rem}
.ys-doorways{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(8.6rem,1fr);gap:.55rem;overflow-x:auto;scroll-snap-type:inline proximity;padding:.4rem .22rem .65rem;scroll-padding-inline:.22rem}
.ys-doorways :is(a,button){position:relative;display:grid;grid-template-rows:auto 1fr;justify-items:start;align-content:start;min-inline-size:0;scroll-snap-align:start;gap:.35rem;border:1px solid var(--ys-line);border-radius:.65rem;color:var(--ys-ink);background:var(--ys-paper);font:600 .94rem/1.45 var(--font-ui);padding:.48rem;text-decoration:none;text-align:start}
.ys-doorways img{inline-size:100%;block-size:3.9rem;object-fit:contain}
.ys-map-feature,.ys-footer,.ys-practice-links{display:flex;align-items:center;flex-wrap:wrap;gap:0 1rem}
.ys-practice-source{margin-block:.55rem .1rem;padding-block:.2rem;border-block:1px solid var(--ys-line);font-size:.95rem}
.ys-practice-source a{max-inline-size:100%;flex-wrap:wrap}
.ys-map-feature svg{inline-size:1.4rem;block-size:1.4rem}.ys-footer{border-block-start:1px solid var(--ys-line)}
.ys-practice-body,.ys-focus-panel{min-inline-size:0;max-inline-size:42rem;margin-inline:auto}
.ys-practice-body{padding-block:.6rem}
.ys-situation-tabs,.ys-focus-picker{display:flex;align-items:center;gap:.35rem;max-inline-size:100%;overflow-x:auto;scroll-padding-inline:.3rem;padding:.25rem}
.ys-situation-tabs button,.ys-focus-picker button,.ys-skill-switch>summary,.ys-session-bar>[data-youth-leave]{flex:none;display:inline-flex;align-items:center;gap:.35rem;min-block-size:44px;padding:.35rem .65rem;border:1px solid var(--ys-control);border-radius:.6rem;color:var(--ys-ink);background:var(--ys-paper);font:600 .95rem/1.45 var(--font-ui)}
.ys-situation-tabs button[aria-pressed=true],.ys-focus-picker button[aria-pressed=true]{color:var(--ys-on-accent);background:var(--ys-accent);border-color:var(--ys-accent)}
.ys-situation-title{font-size:1.25rem;padding-block:.6rem}
.ys-situation-scene{display:grid;grid-template-columns:minmax(0,35%) minmax(0,1fr);gap:1rem;align-items:center}
.ys-situation-scene img{inline-size:100%;block-size:auto;aspect-ratio:3/2;object-fit:cover;border-radius:.65rem}
.ys-situation,.ys-deed,.ys-reflection p{font-size:1rem;line-height:1.7}
.ys-picture-pair figure,.ys-picture-ayah{text-align:center}
.ys-picture-pair img{inline-size:100%;block-size:clamp(9rem,32vw,15rem);object-fit:contain}
.ys-picture-pair figcaption,.ys-picture-ayah small{display:block;color:var(--ys-muted);font-size:.9rem}
.ys-picture-ayah span,.ys-example [lang=ar]{font:1.65rem/1.9 var(--arabic,serif)}
.ys-evidence{min-inline-size:0;border:0;border-block-start:1px solid var(--ys-line);margin:1rem 0 .3rem;padding:.6rem 0 .15rem}
.ys-evidence legend{padding:0;font-size:1.05rem;font-weight:650;color:var(--ys-ink)}
.ys-answer-options,.ys-evidence-options{display:grid;gap:.4rem}
.ys-answer-options button,.ys-evidence-options button{min-block-size:46px;min-inline-size:0;width:100%;padding:.55rem .8rem;border:1px solid var(--ys-control);border-radius:.6rem;background:var(--ys-paper);color:var(--ys-ink);font:500 1rem/1.55 var(--font-ui);text-align:start}
.ys-answer-options button[aria-pressed=true],.ys-evidence-options button[aria-pressed=true]{background:var(--ys-pale);border:2px solid var(--ys-accent);color:var(--ys-ink);padding:calc(.55rem - 1px) calc(.8rem - 1px)}
.ys-answer-options button:disabled{cursor:default;opacity:1}
.ys-evidence-feedback:not(:empty),.ys-reflection{margin-block:.6rem;padding:.65rem .8rem;background:var(--ys-pale);color:var(--ys-ink);border-inline-start:3px solid var(--ys-accent)}
.ys-apply summary,.ys-linked-lesson summary{min-block-size:44px;padding-block:.55rem;color:var(--ys-accent);font-weight:600}
.ys-linked-lesson small{display:block;color:var(--ys-muted)}
.youth-studio:has(>.ys-focus:not([hidden]))>:not(.ys-focus),.daily-youth-home:has(.ys-focus:not([hidden]))>:not(.youth-studio){display:none}
.ys-focus{padding:clamp(.5rem,2vw,1.2rem) 0;scroll-margin-block-start:var(--appbar-height,72px)}
.ys-focus-panel,.ys-practice-body{touch-action:pan-y pinch-zoom}
.ys-session-bar{position:relative;display:grid;grid-template-columns:auto minmax(4rem,1fr) auto;align-items:center;gap:.7rem}
.ys-session-bar>[data-youth-leave]{justify-content:center;min-inline-size:44px;font-size:1.3rem}
.ys-skill-switch>summary{cursor:pointer;color:var(--ys-accent)}
.ys-skill-switch>summary:after{content:'▾';font-size:.75rem}
.ys-skill-switch>summary::-webkit-details-marker{display:none}
.ys-skill-switch .ys-focus-picker{position:absolute;z-index:3;inset-inline:0;inset-block-start:100%;background:var(--ys-paper);padding:.45rem;border:1px solid var(--ys-line);border-radius:.6rem}
.ys-focus-picker svg{inline-size:1rem;block-size:1rem}
.ys-checkpoint-progress{display:flex;align-items:center;gap:.4rem;color:var(--ys-muted)}
.ys-checkpoint-progress progress{flex:1;inline-size:0;min-inline-size:1rem;block-size:.5rem;accent-color:var(--ys-accent)}
.ys-checkpoint-progress small{white-space:nowrap}
.ys-checkpoint-progress small,.ys-question-position{font-size:.875rem;line-height:1.45}
.ys-question-position{display:block;color:var(--ys-muted);margin-block-start:.15rem}
.ys-guide-dialog{display:flex;align-items:center;gap:.7rem;margin:.85rem 0}
.ys-guide-dialog img{flex:none}.ys-guide-dialog p{color:var(--ys-muted);line-height:1.55}
.ys-guide-dialog,.ys-question,.ys-session-bar{user-select:none;-webkit-user-select:none}
.ys-example{padding:.5rem .65rem;margin:.45rem 0;background:var(--ys-pale);border-radius:.45rem;text-align:center;color:var(--ys-ink)}
.ys-example small{color:var(--ys-muted)}
.ys-question{margin-block:.65rem}.ys-question h3{font-size:clamp(1.12rem,3vw,1.4rem)}
.ys-reveal{display:flex;align-items:center;gap:.6rem;min-block-size:44px;padding:.35rem 0;color:var(--ys-accent);font:600 .95rem/1.5 var(--font-ui);border:0;background:transparent}
.ys-step-actions{display:flex;gap:.5rem;justify-content:space-between}
.ys-step-actions :is(button,a){min-inline-size:44px}
.ys-step-actions button:disabled{opacity:.52;cursor:default}
.ys-set-finished{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;font-weight:650}
.ys-panel-footer{margin-block-start:1rem}.ys-reflection :is([data-youth-compare],button){margin-block-start:.45rem}
.ys-study-lead{justify-items:start}.ys-study-lead p{max-inline-size:55ch}.ys-study-lead .lf-lesson-link{margin-block:.3rem 0}
.ys-study-heading{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.ys-study-heading a{display:inline-flex;align-items:center;min-block-size:44px}
.ys-study .lf-subject{border-block-end:1px solid var(--ys-line)}
.ys-study .lf-subject[open]{background:var(--ys-paper)}
.ys-study .lf-subject>summary{gap:.65rem}
.ys-study .lf-subject>summary .lf-glyph{display:block;inline-size:3rem;block-size:2.7rem;background:var(--ys-pale);border-radius:.4rem}
.ys-study .lf-glyph img{display:block;inline-size:100%;block-size:100%;object-fit:contain}
.ys-study .lf-subject-links{padding:.2rem .65rem .55rem;padding-inline-start:3.8rem}
.ys-study .lf-subject-links a{display:flex;align-items:center;min-block-size:44px}
.ys-study .sp-ayah{color:var(--ys-ink);background:var(--ys-paper);border:1px solid var(--ys-line);border-radius:.7rem}
.ys-study .sp-ayah .sp-primary{color:var(--ys-on-accent);background:var(--ys-accent)}
@media(max-width:700px){
  .ys-quran-card{gap:.4rem}.ys-quran-top .quran-coverage>span{display:none}
  .ys-reading-record .folio-quran-record{grid-template-columns:minmax(0,1fr);gap:.6rem}
  .ys-situation-scene{grid-template-columns:1fr;gap:.5rem}
  .ys-situation-scene img{max-block-size:12rem}
  .ys-focus:not([hidden]){padding-block-end:calc(var(--ys-nav-inset,4.5rem) + 5rem)}
  .ys-focus-panel .ys-panel-footer{position:fixed;inset-inline:0;inset-block-end:var(--ys-nav-inset,calc(4.5rem + env(safe-area-inset-bottom)));z-index:32;margin:0;padding:.3rem max(.75rem,env(safe-area-inset-left));background:var(--ys-paper);border-block-start:1px solid var(--ys-line)}
  .ys-step-actions{display:grid;grid-template-columns:44px minmax(0,1fr);max-width:37rem;margin:auto}
  .ys-focus-panel :is(.ys-answer-options,.ys-reflection,.ys-linked-lesson){scroll-margin-block-end:calc(var(--ys-nav-inset,4.5rem) + 4rem)}
}
@media(forced-colors:active){.ys-reading-record .folio-quran-day.is-read>b{border-color:Highlight}}

/* The garden path becomes a quiet, source-led question in the youth notebook. */
.ys-garden {margin-block:.65rem;border:1px solid var(--ys-line);border-radius:.85rem;background:var(--ys-paper)}
.ys-garden>summary {padding:.55rem .85rem;line-height:1.4}
.ys-garden-mark {display:inline-grid;flex:none;place-items:center;width:2.2rem;height:2.2rem;border-radius:.6rem;color:var(--ys-accent);background:var(--ys-pale)}
.ys-garden-mark svg {width:1.25rem;height:1.25rem}
.ys-garden-body {display:grid;gap:.5rem;padding:.25rem .85rem .5rem}
.ys-garden-choices {display:flex;flex-wrap:wrap;gap:.3rem}
.ys-garden-choices button {min-block-size:44px;padding:.35rem .7rem;border:1px solid var(--ys-line);border-radius:.6rem;color:var(--ys-ink);background:var(--ys-paper);font:inherit}
.ys-garden-choices button[aria-pressed="true"] {color:var(--ys-accent);background:var(--ys-pale);border-color:var(--ys-accent);box-shadow:inset 0 -2px var(--ys-accent);font-weight:650}
.ys-garden .ys-garden-last {justify-self:start;min-block-size:44px;padding:.15rem .1rem;text-align:start;background:transparent;border:0;color:var(--ys-accent);font:inherit;text-decoration:underline;text-underline-offset:.18em}
.ys-garden-origin {color:var(--ys-muted);font-size:.9rem}
.ys-garden-origin:empty {display:none}
.ys-garden-inquiry {display:grid;justify-items:start;gap:.6rem;border-inline-start:3px solid var(--ys-accent);padding:.7rem .9rem;color:var(--ys-ink);background:var(--ys-pale);border-radius:.2rem .6rem .6rem}
.ys-garden-inquiry h3 {max-inline-size:52ch;font-size:clamp(1.05rem,2vw,1.2rem);line-height:1.5}
html body .youth-studio .ys-garden-action {display:inline-flex;align-items:center;min-block-size:44px;gap:.45rem;padding:.45rem .7rem;line-height:1.4;border-radius:.55rem;background:var(--ys-accent);color:var(--ys-on-accent);text-decoration:none;font-weight:650}
.ys-garden-action svg {width:1.1rem;height:1.1rem}

/* The academy shares the reader's themes. Field illustrations distinguish its activities. */
.youth-studio .ys-launch {display:block;padding:clamp(.8rem,3vw,1.5rem)}
.ys-academy-name,.ya-breadcrumb,.ya-title-row,.ya-actions,.ya-score-line {display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1rem}
.youth-studio .ys-academy-name h2,.ya-title-row h1 {font-family:var(--font-heading,var(--font-ui));line-height:1.25;letter-spacing:-.015em}
.youth-studio .ys-academy-name h2 {font-size:clamp(1.45rem,4vw,2rem)}
.ys-academy-name a,.ya-back,.ya-link {display:inline-flex;align-items:center;gap:.4rem;min-block-size:44px;color:var(--ys-accent);text-decoration:underline;text-underline-offset:.2em;font-weight:600}
.ys-academy-name a svg,.ya-back svg {width:1.15rem;height:1.15rem}
.ys-academy-doors {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.45rem,2vw,.85rem);margin:.5rem 0 1rem}
.ys-academy-doors a {display:grid;overflow:hidden;border:1px solid var(--ys-line);border-radius:.75rem;text-decoration:none;color:var(--ys-ink);background:var(--ys-paper);min-width:0}
.ys-academy-doors img {display:block;width:100%;height:clamp(4.8rem,17vw,9rem);object-fit:cover;object-position:50% 36%}
.ys-academy-doors a>span {display:grid;gap:.16rem;padding:.55rem .65rem}
.ys-academy-doors strong {font-size:clamp(1rem,2.8vw,1.22rem);line-height:1.35}
.ys-academy-doors small,.ya-muted {color:var(--ys-muted);font-size:.9rem;line-height:1.5}
.ys-notebook-launch {display:grid;gap:.55rem;padding:.85rem;border-radius:.7rem;background:var(--ys-pale)}
.ys-notebook-launch .ys-track-list .ys-track:not([aria-pressed=true]) {background:var(--ys-paper)}
.ys-launch .ys-shared-challenges {display:flex;margin-block-start:.65rem}
.ya-screen {padding:0 clamp(.25rem,1.5vw,.75rem) 2rem}
.ya-screen [data-academy-view] {display:grid;gap:1rem}
.ya-head {display:grid;min-width:0;grid-template-columns:minmax(0,1.3fr) minmax(5.5rem,.7fr);align-items:stretch;background:var(--ys-pale);border-radius:.85rem;overflow:hidden}
.ya-title-row {padding:clamp(.85rem,3vw,1.5rem);align-content:center}
.ya-title-row h1 {font-size:clamp(1.55rem,5vw,2.45rem);color:var(--ys-ink)}
.ya-head img {width:100%;height:100%;max-height:10rem;min-height:6.5rem;object-fit:cover;object-position:50% 32%}
.ya-tabs,.ya-choice-row {display:flex;flex-wrap:wrap;gap:.35rem}
.ya-tabs {border-block-end:1px solid var(--ys-line);padding-block-end:.45rem}
.ya-tabs a,.ya-choice-row button,.ya-button,.ya-card-link {display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-block-size:44px;padding:.5rem .7rem;border:1px solid var(--ys-line);border-radius:.6rem;color:var(--ys-ink);background:var(--ys-paper);font:600 1rem/1.45 var(--font-ui,system-ui,sans-serif);text-decoration:none;text-align:start;overflow-wrap:anywhere}
.ya-tabs a[aria-current=page],.ya-choice-row [aria-pressed=true],.ya-screen .ya-primary {border-color:var(--ys-accent);color:var(--ys-on-accent);background:var(--ys-accent)}
.ya-panel {display:grid;gap:.85rem;min-width:0;padding:clamp(.8rem,3vw,1.5rem);border:1px solid var(--ys-line);border-radius:.85rem;background:var(--ys-paper)}
.ya-panel h2 {font-size:clamp(1.2rem,3vw,1.65rem);line-height:1.4}
.ya-panel p {max-width:62ch;line-height:1.65}
.ya-block {display:grid;gap:.45rem;min-width:0}
.ya-grid {display:grid;gap:.55rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.ya-card-link {justify-content:flex-start;padding:.7rem .85rem}
.ya-panel .ya-select {display:grid;gap:.3rem;font-size:.9rem;color:var(--ys-muted)}
.ya-select select {width:100%;max-width:100%;min-width:0;min-height:44px;padding:.45rem;border:1px solid var(--ys-control);border-radius:.45rem;color:var(--ys-ink);background:var(--ys-paper);font:inherit}
.ya-verseline {font:clamp(1.4rem,4.5vw,2.05rem)/1.95 var(--arabic,serif);color:var(--ys-ink);border-inline-start:3px solid var(--ys-accent);padding-inline:.65rem}
.ya-choices {display:grid;gap:.45rem}
.ya-choices button {text-align:start;justify-content:flex-start}
.ya-choices button[aria-pressed=true] {border:2px solid var(--ys-accent);padding:calc(.5rem - 1px) calc(.7rem - 1px);color:var(--ys-accent);background:var(--ys-pale)}
.ya-note {padding:.65rem .85rem;border-inline-start:3px solid var(--ys-accent);border-radius:.35rem;background:var(--ys-pale)}
.ya-score-line progress {height:.65rem;flex:1;min-width:3rem;accent-color:var(--ys-accent)}
.ya-records {display:grid;gap:.25rem;padding:0;margin:0;list-style:none}
.ya-records li {display:flex;justify-content:space-between;gap:.6rem;align-items:baseline;padding:.6rem 0;border-block-end:1px solid var(--ys-line)}
.ya-panel a:hover,.ys-academy-doors a:hover strong {text-decoration:underline;text-underline-offset:.18em}
.ya-actions {justify-content:flex-start}
.ya-screen :is(button,a):active,.ys-academy-doors a:active {transform:translateY(1px)}
@media(min-width:700px){.ys-notebook-launch {grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:.45rem 1.25rem}}
@media(max-width:400px){.ya-tabs {gap:.25rem}.ya-tabs a {font-size:.94rem;padding:.42rem .55rem}.ys-notebook-launch {padding:.6rem}.ys-academy-doors a>span {padding:.5rem}}
@media(prefers-reduced-motion:reduce){.ya-screen :is(button,a):active,.ys-academy-doors a:active {transform:none}}
.ys-academy-gateway {margin-block:1rem;padding:clamp(.75rem,2.5vw,1.2rem);border:1px solid var(--ys-line);border-radius:.85rem;background:var(--ys-paper)}
.ys-academy-gateway .ys-academy-doors {margin-block-end:0}

/* Fityan journeys use the paper, ink and focus colours of the selected Mushaf. */
.youth-studio .ys-academy-gateway {display:grid;gap:.62rem;background:var(--ys-paper)}
.ys-next-quest,.yq-feature,.yq-mission-head {display:grid;grid-template-columns:minmax(0,37%) minmax(0,1fr);align-items:stretch;min-inline-size:0;background:var(--ys-pale);border-radius:.65rem;overflow:hidden}
.ys-next-quest img,.yq-feature>img,.yq-mission-head>img {inline-size:100%;block-size:100%;min-block-size:0;max-block-size:12rem;object-fit:cover}
.ys-next-quest>div,.yq-feature>div,.yq-mission-head>div {align-self:center;display:grid;justify-items:start;gap:.35rem;padding:clamp(.75rem,2.7vw,1.6rem)}
.ys-next-quest h3,.yq-feature h2,.yq-mission-head h1 {font:650 clamp(1.25rem,4.1vw,2rem)/1.26 var(--font-heading,var(--font-ui));color:var(--ys-ink);text-wrap:balance}
.ys-quest-surah,.yq-feature>div>span,.yq-mission-head small,.yq-index-title small {color:var(--ys-accent);font-weight:650;font-size:.9rem}
.ys-quest-continue,.youth-studio .yq-primary {display:inline-flex;align-items:center;justify-content:center;min-block-size:44px;padding:.38rem .8rem;border:1px solid var(--ys-accent);border-radius:.55rem;background:var(--ys-accent);color:var(--ys-on-accent);font:650 .97rem/1.4 var(--font-ui);text-decoration:none}
.ys-academy-doors.ys-academy-shortcuts {grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem;margin:0}
.ys-academy-shortcuts a {display:flex;align-items:center;justify-content:center;gap:.35rem;min-width:0;min-height:48px;padding:.3rem .25rem;border:0;border-radius:.45rem;background:transparent;text-align:center;color:var(--ys-accent);font-weight:650}
.ys-academy-shortcuts a>span {display:block;padding:0}
.ys-academy-shortcuts :is(svg,small) {width:1.15rem;height:1.15rem;flex:none}
.ys-academy-shortcuts small {width:auto;height:auto;font-size:.78rem;color:var(--ys-muted)}
.ya-screen {max-inline-size:54rem}
.ya-back {font-size:.94rem}
.yq-index-title,.yq-section>header,.yq-source>div {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem}
.yq-index-title h1 {color:var(--ys-ink);font:650 clamp(1.7rem,5vw,2.55rem)/1.24 var(--font-heading,var(--font-ui));letter-spacing:-.025em}
.yq-index-title .yq-utility {border:0;padding:.35rem .15rem;color:var(--ys-accent)}
.yq-feature {grid-template-columns:minmax(0,46%) 1fr}
.yq-feature>img {height:clamp(8rem,27vw,13.5rem);max-height:13.5rem}
.yq-section {display:grid;gap:.5rem;min-width:0}
.yq-section>header h2 {font-size:clamp(1.14rem,3.4vw,1.4rem);line-height:1.4}
.yq-section>header>span {color:var(--ys-muted);font-size:.9rem;font-variant-numeric:tabular-nums}
.yq-journeys {display:grid;border-block-start:1px solid var(--ys-line)}
.yq-journey-row {min-width:0;min-height:4rem;display:grid;grid-template-columns:3.8rem minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.45rem .12rem;border-block-end:1px solid var(--ys-line);color:var(--ys-ink);text-decoration:none}
.yq-journey-row img {display:block;inline-size:100%;block-size:3rem;object-fit:cover;border-radius:.4rem}
.yq-journey-row>span:nth-child(2),.yq-game-grid a>span,.yq-arena-menu a>span {display:grid;min-width:0}
.yq-journey-row strong,.yq-game-grid strong,.yq-arena-menu strong {font:650 1.025rem/1.4 var(--font-ui)}
.yq-journey-row small,.yq-game-grid small,.yq-arena-menu small {font-size:.875rem;line-height:1.45;color:var(--ys-muted)}
.yq-step-summary {display:grid;grid-template-columns:repeat(2,.6rem);justify-content:end;gap:.18rem}
.yq-step-summary i {display:block;width:.6rem;height:.3rem;border-radius:1rem;background:var(--ys-line)}
.yq-step-summary i.earned {background:var(--ys-accent)}
.yq-step-summary small {grid-column:1/-1;justify-self:end;white-space:nowrap}
.yq-tool-grid,.yq-game-grid,.yq-arena-menu {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}
.yq-utility,.yq-game-grid a,.yq-arena-menu a {display:flex;align-items:center;gap:.6rem;min-height:48px;min-width:0;padding:.55rem .65rem;border:1px solid var(--ys-line);border-radius:.55rem;background:var(--ys-paper);color:var(--ys-ink);text-decoration:none;font-weight:600}
.yq-utility svg,.yq-game-grid svg,.yq-arena-menu svg,.yq-source svg {flex:none;inline-size:1.25rem;block-size:1.25rem;color:var(--ys-accent)}
.yq-game-grid a,.yq-arena-menu a {padding:.7rem;background:var(--ys-pale);border-color:transparent}
.yq-arena-menu {grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.yq-arena-menu a {min-height:4rem}
.yq-mission-head {grid-template-columns: minmax(0,32%) minmax(0,1fr)}
.yq-mission-head>img {height:clamp(6.5rem,17vw,9rem)}
.yq-waypoints {display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.yq-waypoints span {display:flex;gap:.35rem;align-items:center;border-block-start:3px solid var(--ys-line);padding:.35rem 0;font-size:.9rem;line-height:1.35;color:var(--ys-muted)}
.yq-waypoints span[data-earned=true],.yq-waypoints span[aria-current=step] {border-color:var(--ys-accent);color:var(--ys-accent)}
.yq-waypoints i {font:inherit;font-weight:700}
.yq-activity .yq-context {font-size:1rem;line-height:1.65}
.yq-source {border-block:1px solid var(--ys-line);padding:.28rem 0 .55rem}
.yq-source>div {justify-content:flex-start}
.yq-source blockquote {margin:0;color:var(--ys-ink);font:clamp(1.5rem,4.4vw,1.95rem)/1.95 var(--arabic,serif);text-align:start}
.yq-hint {background:transparent;border:0;color:var(--ys-accent);min-height:44px;font:600 .95rem var(--font-ui);padding:.2rem;text-decoration:underline;text-underline-offset:.18em}
@media(min-width:640px){.yq-tool-grid {grid-template-columns:repeat(4,minmax(0,1fr))}.yq-game-grid {grid-template-columns:repeat(4,minmax(0,1fr))}.yq-mission-head {max-width:100%}}
@media(max-width:480px){.ys-academy-shortcuts a {flex-direction:column;gap:.15rem;font-size:.9rem}.ys-academy-shortcuts small {display:none}.yq-tool-grid {gap:.28rem}.yq-tool-grid a {padding:.4rem}.yq-game-grid a {align-items:start;flex-direction:column;gap:.3rem}.ya-screen .yq-activity {padding:.85rem}}
@media(hover:hover){.ys-academy-shortcuts a:hover,.yq-journey-row:hover,.yq-utility:hover {background:var(--ys-pale)}.yq-game-grid a:hover strong,.yq-arena-menu a:hover strong,.ys-academy-shortcuts a:hover span {text-decoration:underline;text-underline-offset:.2em}}
.yq-story-list {display:grid;gap:.42rem}
.yq-story-choice,.yq-story-stage>header {display:flex;align-items:center;gap:.8rem;text-align:start}
.yq-story-choice {min-height:3.6rem;padding:.3rem .5rem;background:var(--ys-pale);color:var(--ys-ink);border:1px solid var(--ys-line);border-radius:.55rem;font:650 1rem var(--font-ui)}
.yq-story-choice img,.yq-story-stage>header img {display:block;width:clamp(4rem,15vw,7rem);height:clamp(3.1rem,11vw,5.2rem);object-fit:cover;border-radius:.4rem}
.yq-story-stage>header small {color:var(--ys-muted);font-size:.9rem}
.yq-story-stage>details>summary {display:flex;align-items:center;min-height:44px;color:var(--ys-accent);text-decoration:underline;text-underline-offset:.2rem}
.yq-story-copy {font-size:1.08rem}
.ya-panel>h1,.yq-story-stage>header h1 {margin:0;font:650 clamp(1.4rem,4vw,1.85rem)/1.35 var(--font-heading,var(--font-ui));color:var(--ys-ink)}
.ya-arena-return {border-block-start:1px solid var(--ys-line)}


/* /meaning-reader.css */
.meaning-reading-bar{margin:0 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;}
.meaning-reading-label{display:grid;gap:3px;font-size:13px;line-height:1.6;}
.meaning-reading-label strong{font-size:14px;font-weight:650;}
.meaning-reading-label small{font-size:12px;color:var(--muted);}
.meaning-reading-options{display:flex;gap:4px;padding:3px;border-radius:10px;background:var(--light);}
.meaning-reading-options button,.meaning-pages-entry{min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;font:600 13px/1.5 var(--font-ui);color:var(--muted);}
.meaning-reading-options button[aria-pressed=true]{background:var(--panel);color:var(--green);box-shadow:0 1px 5px #102d2414;}
.meaning-pages-entry{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);color:var(--green);margin:0 0 16px;background:var(--panel);}
body.reader-page.meaning-focused .verses-reading-surface:not(.hifdh-reading-surface) .verse-card.has-meaning .verse-ar,
body.reader-page.meaning-focused .verses-reading-surface:not(.hifdh-reading-surface) .verse-card.has-meaning .verse-transliteration{display:none;}
body.reader-page.meaning-focused .verses-reading-surface:not(.hifdh-reading-surface) .verse-en{font-family:var(--font-ui);font-size:clamp(18px,2.1vw,23px)!important;font-weight:400;line-height:1.85;color:var(--ink);max-width:66ch;margin:20px 0 12px;}
body.reader-page.meaning-focused .verse-en small{font-size:12px;line-height:1.7;color:var(--muted);}
.meaning-reader-dialog{width:min(650px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--ink);box-shadow:0 22px 70px #001c2444;overflow:auto;}
.meaning-reader-dialog::backdrop{background:#081d22a6;}
.meaning-reader-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);z-index:1;}
.meaning-reader-header span{font-size:11px;letter-spacing:.1em;color:var(--green);font-weight:700;}
.meaning-reader-header h2{font:650 21px/1.5 var(--font-ui);margin:4px 0 0;}
.meaning-reader-header button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--light);font-size:25px;color:var(--ink);}
.meaning-reader-body{padding:20px 22px;}
.meaning-reader-credit{margin:0;font-size:14px;font-weight:650;line-height:1.7;color:var(--green);}
.meaning-reader-source-ref{font-size:12px;color:var(--muted);margin:4px 0 16px;}
.meaning-reader-text{margin:0 0 18px;padding:0;font:400 clamp(18px,2vw,22px)/1.85 var(--font-ui);overflow-wrap:break-word;}
.meaning-reader-note{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 12px;}
.meaning-reader-dialog .mpr-shell{margin-inline:0;}
.meaning-repeat-link{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:48px;padding:14px 0;margin-top:10px;color:var(--green);font-size:14px;line-height:1.6;text-decoration:none;border-top:1px solid var(--line);}
.meaning-repeat-link:hover{text-decoration:underline;}
.meaning-reading-bar button:focus-visible,.meaning-pages-entry:focus-visible,.meaning-reader-dialog :is(button,a):focus-visible{outline:3px solid var(--focus-ring,#88d5b5);outline-offset:3px;}
@media(max-width:540px){.meaning-reading-bar{padding:12px;}.meaning-reading-options{width:100%;}.meaning-reading-options button{flex:1;padding-inline:7px;font-size:13px;}.meaning-reader-dialog{border-radius:16px;}.meaning-reader-header,.meaning-reader-body{padding:16px;}.meaning-reader-header h2{font-size:19px;}}
@media(min-width:900px) and (orientation:landscape){body.reader-page.meaning-focused .layout{max-width:980px;}body.reader-page.meaning-focused .verses-reading-surface{padding-inline:38px;}}
/* The extra meaning action must not squeeze the existing four-control phone row. */
@media(max-width:600px){body.reader-page .verse-card .verse-actions:has([data-reader-meaning]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.reader-page .verse-card .verse-actions:has([data-reader-meaning]) .verse-action{font-size:13px;line-height:1.5;min-height:44px;padding:9px 8px;white-space:normal;min-width:0;justify-content:center}body.reader-page .verse-card .verse-actions [data-reader-meaning]{grid-column:1/-1}}


/* /reading-duas.css */
.reading-duas-dialog{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:22px;border:1px solid var(--line,#d7e2d7);border-radius:22px;background:var(--panel,#fffdf8);color:var(--ink,#153a31);box-shadow:0 25px 80px #10261f55;font:14px/1.7 var(--font-ui,system-ui)}.reading-duas-dialog::backdrop{background:#092820aa;backdrop-filter:blur(3px)}.reading-duas-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.reading-duas-heading span{font-size:10px;letter-spacing:1px;font-weight:750;color:var(--muted,#526b5d)}.reading-duas-heading h2{margin:4px 0 0;font-size:25px;line-height:1.45}.reading-duas-close{flex-shrink:0;width:44px;min-height:44px;border:1px solid var(--line,#d7e2d7);background:var(--pale,#e9f2e9);color:var(--ink,#153a31);border-radius:50%;font-size:24px;cursor:pointer}.reading-duas-dialog>p{font-size:13px;margin:13px 0}.reading-duas-choices{display:grid;gap:10px;margin:20px 0}.reading-duas-choices>button{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 13px;min-height:76px;border:1px solid var(--line,#d7e2d7);border-radius:14px;text-align:start;background:var(--panel,#fffdf8);color:var(--ink,#153a31);font:inherit;cursor:pointer}.reading-duas-choices>button:hover{background:var(--pale,#e9f2e9)}.reading-duas-choices strong,.reading-duas-choices small{display:block}.reading-duas-choices strong{font-size:14px}.reading-duas-choices small{font-size:12px;color:var(--muted,#526b5d);margin-top:4px;line-height:1.5}.reading-dua-symbol{display:grid;place-items:center;width:36px;height:40px;border-radius:11px;background:var(--pale,#e9f2e9);font-size:24px;color:var(--green,#176c56)}.reading-duas-choices b{color:var(--green,#176c56)}.reading-duas-dialog button:focus-visible{outline:3px solid var(--focus-ring,#b7974c);outline-offset:3px}.reading-duas-dialog .reading-duas-note{font-size:12px;border-top:1px solid var(--line,#d7e2d7);padding-top:13px;color:var(--muted,#526b5d)}.reading-duas-status:empty{display:none}.dua-editorial-translation{margin-block:15px;padding:12px 14px;background:var(--pale,#e9f2e9);border:1px solid var(--line,#d7e2d7);border-radius:12px}.dua-editorial-translation summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;font-size:13px}.dua-editorial-translation p{font-size:14px;line-height:1.8}.dua-editorial-translation .dua-translation-notice{font-size:12px;color:var(--muted,#526b5d)}
@media(max-width:360px){.reading-duas-dialog{padding:17px}.reading-duas-choices>button{grid-template-columns:29px minmax(0,1fr) auto;gap:9px;padding:13px 10px}.reading-dua-symbol{width:29px;height:35px}.reading-duas-heading h2{font-size:22px}}


/* /choice-controls.css */
:is(.choice-trigger,.choice-inline)[hidden]{display:none!important}
select.choice-source{display:none!important}
.choice-inline{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0}
.choice-inline button{border:1px solid var(--control-line,var(--line));border-radius:12px;background:var(--panel);color:var(--ink);min-height:46px;padding:10px 14px;font:600 14px/1.5 var(--font-ui);flex:1 1 auto}
.choice-inline button[aria-pressed="true"]{background:var(--pale);border-color:var(--green);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.choice-trigger{display:flex;align-items:center;gap:10px;width:100%;max-width:100%;min-width:0;min-height:46px;border:1px solid var(--control-line,var(--line));border-radius:12px;padding:9px 12px;background:var(--panel);color:var(--ink);text-align:start;font:600 14px/1.5 var(--font-ui)}
.choice-trigger svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.choice-trigger:not(.choice-ayah)::after{content:'';flex:none;width:.48rem;height:.48rem;margin-inline:.25rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-.1rem) rotate(45deg)}
/* The open sheet lists each full option. Its compact trigger keeps one readable line. */
.choice-current{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.choice-trigger:disabled,.choice-inline button:disabled,.choice-option:disabled{opacity:.55;cursor:not-allowed}
.choice-sheet{color:var(--ink);background:var(--panel);border:1px solid var(--control-line,var(--line));border-radius:24px;padding:0;width:min(520px,calc(100vw - 24px));max-height:85dvh;box-shadow:0 24px 100px #0005;overflow:hidden;font-family:var(--font-ui)}
.choice-sheet::backdrop{background:#10251ecc;backdrop-filter:blur(4px)}
.choice-sheet>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}
.choice-sheet h2{margin:0;font-size:21px;line-height:1.5;flex:1 1 12ch;min-width:0;overflow-wrap:break-word}
.choice-close{flex:none;min-width:62px;min-height:44px;padding:8px 12px;border:1px solid var(--control-line,var(--line));border-radius:12px;background:var(--light);color:var(--ink);font:600 14px/1.4 var(--font-ui)}
.choice-sheet-body{padding:16px 20px 24px;overflow-y:auto;max-height:calc(85dvh - 86px);overscroll-behavior:contain}
.choice-search{display:block;width:100%;min-height:48px;padding:10px 13px;border:1px solid var(--control-line,var(--line));border-radius:12px;background:var(--panel);color:var(--ink);font:400 16px/1.5 var(--font-ui);box-sizing:border-box}
.choice-result-count{font-size:13px;color:var(--muted);margin:12px 0}
.choice-list{display:grid;gap:8px}
.choice-option{display:flex;gap:14px;align-items:center;justify-content:space-between;text-align:start;min-height:58px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);font-family:var(--font-ui)}
.choice-option strong{font-size:15px;font-weight:600;line-height:1.7;display:block;overflow-wrap:break-word}
.choice-option>span:first-child{min-inline-size:0}
.choice-option small{font-size:12px;line-height:1.5;color:var(--muted);display:block}
.choice-option[aria-selected="true"]{border-color:var(--green);background:var(--pale);box-shadow:inset 0 0 0 1px var(--green)}
.choice-check{color:var(--green);font-size:20px;font-weight:700;flex:none}
.choice-sheet :is(button,input):focus-visible,.choice-trigger:focus-visible,.choice-inline button:focus-visible{outline:3px solid var(--focus-ring,var(--gold-text));outline-offset:3px}
.setting-row>.choice-inline,.setting-row>.choice-trigger{max-width:340px;flex:1 1 240px}
.player-repeat .choice-trigger{font-size:12px;min-height:44px;padding:7px;gap:6px}.player-repeat .choice-trigger svg{width:17px}
@media(max-width:600px){.choice-sheet{margin:auto 0 0;width:100%;max-width:100%;border-radius:24px 24px 0 0;max-height:85dvh}.choice-sheet-body{padding:14px 16px max(24px,env(safe-area-inset-bottom))}.choice-sheet>header{padding:14px 16px}.setting-row{flex-wrap:wrap}.setting-row>.choice-inline,.setting-row>.choice-trigger{flex-basis:100%;max-width:none}}
@media(prefers-reduced-motion:reduce){.choice-sheet,.choice-trigger,.choice-option{animation:none;transition:none;scroll-behavior:auto}}


/* /children-reading-path.css */
/* Original child-reading garden; readable controls share the quest palette. */
.children-reading-path{container:children-reading / inline-size;--cr-green:var(--quest-green,#215e46);--cr-ink:var(--quest-ink,#173e30);--cr-muted:var(--quest-muted,#50695e);--cr-line:var(--quest-line,#d4e1d5);--cr-paper:var(--quest-card,#fffefa);--cr-soft:var(--quest-sky,#edf5ed);color:var(--cr-ink);background:var(--cr-paper);border:1px solid var(--cr-line);border-radius:28px;padding:26px;margin-bottom:28px;scroll-margin-top:var(--cr-header,88px);font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.children-reading-path *{box-sizing:border-box}.children-reading-path h2,.children-reading-path h3{font-family:inherit;color:var(--cr-ink);line-height:1.4;letter-spacing:-.025em}.children-reading-path h2{font-size:clamp(25px,3vw,34px);margin:8px 0 12px}.children-reading-path h3{font-size:21px;margin:8px 0 14px}.children-reading-path p{font-size:16px;line-height:1.85;margin:10px 0 16px}.children-reading-path small,.children-reading-path .cr-muted{font-size:13px;line-height:1.75;color:var(--cr-muted)}.children-reading-path button,.children-reading-path input{font:inherit}.children-reading-path button{cursor:pointer}.children-reading-path button:disabled{opacity:.55;cursor:default}.children-reading-path :focus-visible{outline:3px solid #b07924;outline-offset:4px}.children-reading-path [tabindex="-1"]:focus{outline:none}.children-reading-path fieldset{border:0;min-width:0;padding:0;margin:20px 0}.children-reading-path legend{font-weight:750;font-size:16px;line-height:1.75;padding:0 0 12px;width:100%}.children-reading-path summary{cursor:pointer;min-height:48px;align-content:center;font-size:15px;line-height:1.7;font-weight:750;color:var(--cr-green);padding-block:10px}.children-reading-path a{color:var(--cr-green);text-underline-offset:4px}
.cr-button,.cr-support-card,.cr-starter,.cr-surah-list>button,.cr-topic-list>button,.cr-daily-goal button{border:1px solid var(--cr-line);background:var(--cr-paper);color:var(--cr-ink);border-radius:14px;padding:12px 16px;min-height:48px;font-size:15px;font-weight:650;line-height:1.7;text-align:center;white-space:normal;max-width:100%;transition:background .15s,border-color .15s}.cr-button:hover:not(:disabled),.cr-starter:hover,.cr-support-card:hover,.cr-surah-list>button:hover,.cr-topic-list>button:hover{background:var(--cr-soft);border-color:var(--cr-green)}.children-reading-path .cr-primary{background:var(--cr-green);border-color:var(--cr-green);color:#fff;font-weight:750}.children-reading-path .cr-primary:hover:not(:disabled){background:var(--quest-green-strong,#174e39);color:#fff}.children-reading-path>.cr-primary,.cr-notice>.cr-primary{display:block;width:100%;margin-block:18px 10px}.cr-button[aria-pressed=true],.cr-support-card[aria-pressed=true],.cr-daily-goal button[aria-pressed=true]{background:var(--cr-soft);border:2px solid var(--cr-green)}
.cr-welcome{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:center;margin-bottom:26px}.cr-garden{position:relative;overflow:hidden;border-radius:22px;background:#efe7ce;line-height:0}.cr-garden img{display:block;width:100%;height:240px;object-fit:cover}.cr-garden>span{position:absolute;bottom:12px;inset-inline-start:12px;padding:7px 12px;border-radius:20px;background:#fff9e7e8;color:#345344;font-size:12px;font-weight:850;letter-spacing:.05em;line-height:1.5}.cr-eyebrow{font-size:12px;font-weight:800;letter-spacing:.07em;color:var(--cr-green);line-height:1.7}.cr-welcome-copy p{color:var(--cr-muted)}.cr-support{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cr-support legend{grid-column:1/-1}.cr-support-card{text-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px}.cr-support-card>span{font-size:25px;display:grid;place-items:center;border-radius:12px;background:#f7e3ad;color:#705019;width:42px;height:42px}.cr-support-card strong{font-size:17px;line-height:1.6}.cr-support-card small{font-size:14px;font-weight:400}.cr-preferences{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--cr-muted);font-size:14px;margin-bottom:14px}.cr-preferences .cr-button{padding:8px 12px}.cr-daily-goal{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0 20px;font-size:15px}.cr-daily-goal>div{display:flex;gap:7px}.cr-daily-goal button{padding:8px 13px;min-width:65px}.cr-resume{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px;border-radius:20px;background:var(--cr-soft);border:1px solid var(--cr-line);margin:12px 0 24px}.cr-resume small{font-weight:750;font-size:12px;letter-spacing:.04em;color:var(--cr-green)}.cr-resume h3{font-size:23px;margin:5px 0 8px}.cr-resume p{margin:0;color:var(--cr-muted);font-size:15px}.cr-resume>.cr-button{flex-shrink:0}.cr-starters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:14px 0 24px}.cr-starter{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:start;padding:18px}.cr-starter-art{display:block;width:82px;height:70px;color:var(--cr-green)}.cr-starter-art svg{width:100%;height:100%}.cr-starter strong{font-size:17px;line-height:1.6}.cr-starter small{font-size:14px;font-weight:400}.cr-library{border-top:1px solid var(--cr-line);border-bottom:1px solid var(--cr-line);padding:8px 0;margin:12px 0 24px}.cr-search-label{display:block;font-size:14px;font-weight:650;margin:14px 0 5px}.cr-search-label input{display:block;width:100%;min-width:0;min-height:50px;border:1px solid var(--cr-line);background:var(--cr-paper);color:var(--cr-ink);border-radius:12px;padding:10px 14px;margin-top:8px;font-size:16px}.children-reading-path .cr-results-count{font-size:12px;color:var(--cr-muted);margin:6px 0 12px}.cr-surah-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.cr-surah-list>button{display:flex;align-items:center;gap:12px;text-align:start;padding:12px}.cr-surah-list>button>span:nth-child(2){flex:1;min-width:0}.cr-surah-list strong,.cr-surah-list small{display:block}.cr-surah-list small{font-weight:400;font-size:12px}.cr-surah-number{width:36px;height:36px;display:grid;place-items:center;background:var(--cr-soft);border-radius:11px;font-size:13px;flex-shrink:0}.cr-arrow{width:17px;height:17px;display:inline-block;vertical-align:middle;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-inline-start:5px}.cr-topics{margin:28px 0}.cr-topics>div>p{color:var(--cr-muted);font-size:15px}.cr-topic-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-block:8px 15px}.cr-topic-list>button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:start}.cr-topic-list small{white-space:nowrap}.cr-coverage{border-top:1px solid var(--cr-line);padding-top:20px}.cr-coverage>span{display:block;font-weight:750;font-size:14px;color:var(--cr-green)}.children-reading-path .cr-coverage p{font-size:13px;color:var(--cr-muted);line-height:1.9}.cr-coverage details p{font-size:15px}.cr-storage{border:1px solid #b57e36;background:#fff2dc;color:#6c461b;border-radius:12px;padding:14px}.cr-storage .cr-button{display:block;margin-top:10px}
.cr-session-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.cr-session-top .cr-button{border:0;background:transparent;padding-inline:0;text-align:start;color:var(--cr-green)}.cr-session-top>span{font-size:12px;color:var(--cr-muted);white-space:nowrap}.cr-session-title h2{margin-bottom:18px}.cr-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0;list-style:none;margin:18px 0 25px}.cr-stepper li{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;color:var(--cr-muted);font-size:12px;line-height:1.6}.cr-stepper li>span{display:grid;place-items:center;width:31px;height:31px;background:var(--cr-soft);border:1px solid var(--cr-line);border-radius:50%;font-size:13px}.cr-stepper li[aria-current=step]{color:var(--cr-green);font-weight:800}.cr-stepper li[aria-current=step]>span{background:var(--cr-green);border-color:var(--cr-green);color:white}.children-reading-path .cr-quran{font-family:'QatrahEdition-hafs',Amiri,serif!important;font-weight:400;font-size:clamp(29px,4vw,36px);line-height:2.25;text-align:right;word-break:normal;overflow-wrap:normal;margin:16px 0 22px;padding:18px;background:var(--quest-paper,#f8f7ee);border:1px solid var(--cr-line);border-radius:18px}.cr-full-ayah{margin-block:14px}.cr-audio{display:flex;gap:9px;flex-wrap:wrap}.cr-audio .cr-button:first-child{flex:1}.children-reading-path .cr-audio-status{font-size:12px;line-height:1.7;min-height:1.7em;color:var(--cr-muted);margin:7px 0 16px}.children-reading-path .cr-long-ayah{border-inline-start:3px solid #d4b367;padding-inline-start:14px;font-size:14px;line-height:1.8;color:var(--cr-muted)}.cr-picture{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:20px;border-radius:18px;background:var(--cr-soft);padding:18px;margin:18px 0}.cr-picture>span svg{width:120px;height:105px}.cr-picture strong{font-size:18px}.cr-picture p{font-family:Amiri,serif;font-size:28px;margin:5px 0;line-height:1.8}.cr-picture small{display:block;font-size:12px}.cr-instruction{margin:20px 0}.cr-notice{margin-top:22px}.children-reading-path .cr-word-range{font-size:12px;color:var(--cr-muted);line-height:1.8;margin-bottom:10px}.cr-word-strip{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;padding:14px;background:var(--quest-paper,#f8f7ee);border:1px solid var(--cr-line);border-radius:16px;margin-bottom:22px}.cr-word-strip>span{font-family:Amiri,serif;font-size:27px;line-height:1.8;text-align:center;min-width:40px;padding:5px 8px;border-radius:10px;border:2px solid transparent}.cr-word-strip small{display:block;font-family:inherit;font-size:12px;line-height:1.3;color:var(--cr-muted)}.cr-word-strip .cr-anchor-word{border-color:#ad8835;background:#f5e9c1;color:#493a16}.cr-word-strip .cr-answer-word{border-color:var(--cr-green);background:var(--cr-soft)}.cr-word-question>div{display:flex;flex-wrap:wrap;gap:9px}.cr-word-question .cr-button{font-family:Amiri,serif;font-size:28px;line-height:1.9;min-width:72px;flex:1;padding:9px 12px}.children-reading-path .cr-question-word,.children-reading-path .cr-answer-pair{font-family:Amiri,serif;font-size:31px;line-height:2;word-break:normal;overflow-wrap:normal;text-align:center}.cr-question-word{border:1px solid #ddc78b;background:#f5e9c1;color:#493a16;border-radius:14px;padding:8px}.cr-feedback{background:var(--cr-soft);border:1px solid var(--cr-line);border-radius:16px;margin:18px 0;padding:18px}.cr-feedback strong{color:var(--cr-green);font-size:16px}.cr-feedback .cr-button{width:100%}.cr-reflection-prompt,.cr-authored-topic{background:var(--cr-soft);border-radius:18px;padding:20px;margin-top:22px}.cr-authored-topic fieldset,.cr-reflection-choice{display:grid;gap:10px}.cr-authored-topic .cr-button,.cr-reflection-choice .cr-button{text-align:start}.cr-topic-context{border-top:1px solid var(--cr-line);margin-top:15px;padding-top:15px}.children-reading-path .cr-context-label{font-size:13px;color:var(--cr-muted);margin-bottom:0}.children-reading-path .cr-topic-context .cr-quran{margin-top:6px}.cr-try-today{border-top:1px solid var(--cr-line);padding-top:14px}.cr-try-today strong{display:block}.cr-topic-sources a,.cr-sources a,.cr-notebook-link{display:block;min-height:48px;align-content:center;padding:9px 0;font-size:14px;line-height:1.8}.cr-topic-sources a{font-size:13px}.cr-notebook-link{margin-bottom:8px}.cr-sources{border-top:1px solid var(--cr-line);margin-top:25px;padding-top:5px}.children-reading-path .cr-sources p{font-size:13px;color:var(--cr-muted)}.cr-done{padding:18px 0;text-align:center;max-width:650px;margin:auto}.cr-done>span{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 18px;background:#f8df9f;color:#805817;border-radius:50%;font-size:40px}.cr-done>.cr-button{display:block;width:100%;margin-top:12px}
.children-reading-path[dir=rtl] h2,.children-reading-path[dir=rtl] h3,.children-reading-path[dir=rtl] .cr-eyebrow,.children-reading-path[dir=rtl] .cr-garden>span,.children-reading-path[dir=rtl] .cr-resume small{letter-spacing:0}.children-reading-path[dir=rtl] h2{line-height:1.65}.children-reading-path[dir=rtl] .cr-arrow{transform:rotate(180deg)}
@media(max-width:650px){.children-reading-path{padding:18px 15px;border-radius:24px}.cr-welcome{grid-template-columns:1fr;gap:18px}.cr-garden img{height:190px}.cr-welcome-copy h2{font-size:27px}.cr-welcome-copy p{margin-bottom:2px}.cr-support{grid-template-columns:1fr;gap:9px}.cr-support-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:4px 12px;padding:14px}.cr-support-card>span{grid-row:span 2}.cr-support-card strong{font-size:17px}.cr-support-card small{font-size:14px}.cr-daily-goal{display:block}.cr-daily-goal>span{display:block;margin-bottom:10px}.cr-daily-goal>div{display:grid;grid-template-columns:repeat(3,1fr)}.cr-resume{display:block;padding:19px}.cr-resume>.cr-button{width:100%;margin-top:17px}.cr-starters{grid-template-columns:1fr;gap:9px}.cr-starter{display:grid;grid-template-columns:65px minmax(0,1fr);gap:4px 12px;padding:14px}.cr-starter-art{grid-row:span 2;width:65px;height:62px}.cr-starter strong{align-self:end;font-size:17px}.cr-surah-list,.cr-topic-list{grid-template-columns:1fr}.cr-picture{grid-template-columns:90px minmax(0,1fr);gap:13px;padding:14px}.cr-picture>span svg{width:90px;height:90px}.children-reading-path .cr-quran{font-size:30px;padding:14px 10px;line-height:2.3}.cr-reflection-prompt,.cr-authored-topic{padding:17px 14px}.cr-topic-context .cr-quran{padding-inline:8px}.cr-stepper{gap:5px}.cr-session-top{gap:8px}.cr-session-top .cr-button{font-size:15px}.cr-feedback{padding:15px}.cr-word-strip{padding:10px;gap:4px}.cr-word-strip>span{padding:4px 6px}.cr-topic-list>button{padding:13px}.children-reading-path .cr-primary{font-size:16px}.cr-preferences{align-items:center;flex-wrap:wrap}.cr-preferences .cr-button{font-size:14px}}
@media(max-width:350px){.children-reading-path{padding:16px 12px}.cr-garden img{height:170px}.cr-welcome-copy h2{font-size:25px}.cr-picture{grid-template-columns:76px minmax(0,1fr);gap:10px}.cr-picture>span svg{width:76px;height:80px}.children-reading-path .cr-quran{font-size:29px}.cr-word-question .cr-button{font-size:26px;min-width:60px;padding:8px}.cr-session-top>span{font-size:12px}.cr-support-card{padding:12px}.cr-stepper li{font-size:12px}}
@media(prefers-reduced-motion:reduce){.children-reading-path *{transition:none!important;scroll-behavior:auto!important}}
/* Match the source cue's sand-and-ink drawing treatment outside its original card. */
.cr-starter-art svg,.cr-picture>span svg{fill:#e2bf68;stroke:var(--cr-green);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.cr-starter-art .vd-art-lines,.cr-picture .vd-art-lines{fill:none;stroke:currentColor}
/* One clear continuation with a quieter, learner-controlled revisit. */
.cr-resume-actions{display:grid;gap:8px;min-width:200px;max-width:310px;flex-shrink:0}.cr-resume-actions .cr-button{width:100%}.cr-resume-actions .cr-button:not(.cr-primary){font-size:14px;background:transparent;border-color:transparent;color:var(--cr-green)}
@media(max-width:650px){.cr-resume-actions{width:100%;max-width:none;min-width:0;margin-top:17px}}
/* Focused Quran shelf and separate meaning lessons. Illustrations are navigation cues. */
.children-reading-path{background:linear-gradient(145deg,#fffaf0 0%,#f3f8ec 70%,#e9f4ed 100%)}
.cr-atlas-heading{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px;padding:22px;border:1px solid #b8d8c2;background:linear-gradient(125deg,#d9ecdb,#f8e8bc);border-radius:22px}
.cr-atlas-heading-icon{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:16px;background:#225b45;color:#fff1b6;font-size:30px;line-height:1}
.cr-atlas-heading h2{margin:4px 0 8px;font-size:clamp(24px,3vw,32px)}
.cr-atlas-heading p{margin:0;color:#355743;font-size:15px}.cr-meanings-heading{background:linear-gradient(125deg,#e4e1f1,#f8e7bc);border-color:#cfc8df}.cr-meanings-heading .cr-atlas-heading-icon{background:#63517e;color:#fff0c2}
.cr-practice-settings{padding:5px 16px;border:1px solid #c7d7bd;background:#f1f5e4;border-radius:16px;margin:15px 0}.cr-practice-settings>.cr-support{margin-top:10px}.cr-practice-settings>.cr-muted{margin-bottom:8px}
.cr-atlas-library{border:none;padding:0;margin-top:24px}.cr-atlas-library>summary{font-size:20px;line-height:1.6}
.cr-atlas-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cr-atlas-grid>.cr-atlas-card{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;overflow:hidden;border-radius:19px;background:#fffdf4;border-color:#c8d6bb;box-shadow:0 3px 0 #d7dfc8;text-align:start;min-width:0}
.cr-atlas-grid>.cr-atlas-card:hover{background:#fff9e5;transform:translateY(-1px)}
.cr-atlas-image{position:relative;display:block;width:100%;height:auto;aspect-ratio:1.4;background:#e1edd7;overflow:hidden}.cr-atlas-image img{display:block;width:100%;height:100%;object-fit:cover}.cr-atlas-image>span{display:grid;place-items:center;width:100%;height:100%;font-size:44px;color:#4e7058}.cr-atlas-image b{position:absolute;inset-inline-start:8px;bottom:8px;min-width:30px;min-height:30px;border-radius:10px;padding:2px 8px;background:#fff9e9f2;color:#234d3b;font-size:13px;line-height:26px;text-align:center;box-shadow:0 1px 3px #1538261a}
.cr-atlas-grid>.cr-atlas-card>.cr-atlas-name{display:block;flex:1;min-width:0;padding:11px 12px 13px}.cr-atlas-name strong{font-size:16px;line-height:1.55}.cr-atlas-name small{display:block;font-size:12px;line-height:1.65;margin-top:4px}.cr-atlas-card>.cr-arrow{position:absolute;inset-inline-end:10px;top:10px;border-radius:50%;background:#fff8e7d9;padding:3px;width:23px;height:23px;margin:0;color:#375b42}
.cr-surah-picture{border:1px solid #c9d9bb;background:#edf3dc;border-radius:17px;overflow:hidden;margin:12px 0 18px}.cr-surah-picture>summary{display:flex;align-items:center;gap:12px;padding:9px;min-height:87px;list-style:none}.cr-surah-picture>summary::-webkit-details-marker{display:none}.cr-surah-picture>summary::after{content:'+';font-size:22px;font-weight:400;margin-inline-start:auto;padding:8px;color:#3c6548}.cr-surah-picture[open]>summary::after{content:'−'}.cr-surah-picture>summary>img{display:block;flex:none;width:76px;height:76px;object-fit:cover;border-radius:11px;background:#d9e8d1}.cr-surah-picture>summary>span{display:block;min-width:0}.cr-surah-picture strong,.cr-surah-picture small,.cr-surah-picture em{display:block}.cr-surah-picture strong{font-size:17px;line-height:1.5}.cr-surah-picture small{font-size:11px;line-height:1.6;font-weight:500;color:#476044}.cr-surah-picture em{font-size:12px;line-height:1.5;font-style:normal;font-weight:500;margin-top:3px;color:#385a40}.cr-picture-explanation{border-top:1px solid #cad8bb;padding:5px 17px 15px}.cr-picture-explanation>p{font-size:14px;line-height:1.9}.cr-picture-explanation>.cr-picture-word{font-family:Amiri,serif;font-size:30px;text-align:start;margin-bottom:2px}.cr-picture-explanation>.cr-quran{font-size:28px}.cr-picture-explanation>a{display:block;min-height:48px;align-content:center;font-size:14px}.cr-picture-explanation>small{display:block}
.cr-meaning-choices{grid-template-columns:1fr 1fr;gap:12px}.cr-meaning-choices>button{padding:18px;border-radius:18px;background:#faf1d6;border-color:#d9c99d;box-shadow:0 3px 0 #e6dabb}.cr-meaning-choices>button:nth-child(3n+2){background:#e2efe7;border-color:#b7d4c2;box-shadow:0 3px 0 #c9dfd0}.cr-meaning-choices>button:nth-child(3n){background:#e9e4f1;border-color:#cec5df;box-shadow:0 3px 0 #d9d0e6}.cr-meaning-choices strong,.cr-meaning-choices small{display:block}.cr-meaning-choices strong{font-size:18px;line-height:1.7}.cr-meaning-choices small{font-size:13px;margin-top:5px;font-weight:400;white-space:normal}
@media(max-width:850px){.cr-atlas-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.cr-atlas-heading{gap:11px;padding:16px 13px;border-radius:18px}.cr-atlas-heading-icon{width:38px;height:38px;font-size:24px;border-radius:12px}.cr-atlas-heading h2{font-size:24px}.cr-atlas-heading p{font-size:14px}.cr-atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.cr-atlas-name strong{font-size:16px}.cr-atlas-grid>.cr-atlas-card>.cr-atlas-name{padding:10px}.cr-atlas-library>summary{font-size:18px}.cr-practice-settings{padding-inline:11px}.cr-meaning-choices{grid-template-columns:1fr}.cr-surah-picture>summary{gap:9px;padding:8px}.cr-surah-picture>summary>img{width:66px;height:66px}.cr-surah-picture strong{font-size:16px}.cr-surah-picture>summary::after{padding:4px}.cr-picture-explanation{padding-inline:12px}}
@media(max-width:350px){.cr-atlas-heading-icon{display:none}.cr-atlas-grid{gap:9px}.cr-atlas-grid>.cr-atlas-card>.cr-atlas-name{padding:9px 8px}.cr-atlas-name strong{font-size:15px}.cr-atlas-name small{font-size:11px}.cr-surah-picture>summary>img{width:56px;height:56px}.cr-surah-picture small{font-size:10px}.cr-surah-picture em{font-size:11px}.cr-surah-picture strong{font-size:15px}}
/* Companion cues stay beside the activity, never inside Quran text. */
.children-reading-path{background:linear-gradient(150deg,#fffefb 45%,#f2f9f5);box-shadow:0 10px 30px #1a45320b}
.cr-guide-portrait{width:82px;height:82px;flex:none;border-radius:22px;object-fit:contain;background:#fffaf0;align-self:center}
.cr-atlas-heading{background:#e7f5ee;border-color:#c2dfce;box-shadow:none;align-items:center}
.cr-meanings-heading{background:#f1edfb;border-color:#d8ceeb}
.cr-support-card>img{width:64px;height:64px;object-fit:contain;border-radius:17px;background:#fffaf0;flex:none}
.cr-support-card{background:#fffefb;box-shadow:0 3px 0 #dce8df}
.cr-support-card[aria-pressed=true]{box-shadow:0 3px 0 #b0cfbc}
.cr-friend-tip{display:flex;align-items:center;gap:15px;background:#eef7fc;border:1px solid #d4e9f2;border-radius:18px;padding:14px;margin:20px 0}
.cr-friend-tip>:is(img,.cr-inline-pal){width:70px;height:70px;object-fit:contain;border-radius:17px;flex:none}
.cr-friend-tip strong{display:block;font-size:15px;color:#335767;line-height:1.7}
.children-reading-path .cr-friend-tip .cr-instruction{margin:4px 0 0;font-size:14px;line-height:1.8;color:#476575}
.cr-notice-guide{display:flex;align-items:center;gap:12px;margin-bottom:8px;font-size:13px;font-weight:700;color:#685489}
.cr-notice-guide>:is(img,.cr-inline-pal){width:58px;height:58px;object-fit:contain;border-radius:16px}
.cr-celebrate-friend{display:block;width:120px;height:120px;object-fit:contain;border-radius:28px;margin:8px auto 20px}
.children-reading-path .cr-stepper li[aria-current=step]>span{box-shadow:0 3px 0 #154c3924}
@media(max-width:650px){.cr-guide-portrait{width:64px;height:64px;border-radius:18px}.cr-support-card{grid-template-columns:58px minmax(0,1fr);gap:3px 12px}.cr-support-card>img{grid-row:span 2;width:58px;height:58px;border-radius:15px}.cr-friend-tip{gap:12px;padding:13px}.cr-friend-tip>:is(img,.cr-inline-pal){width:60px;height:60px}.cr-friend-tip strong{font-size:14px}.children-reading-path .cr-friend-tip .cr-instruction{font-size:13px}.cr-atlas-heading h2{font-size:23px}.cr-atlas-heading p{font-size:13px}}
@media(max-width:350px){.cr-guide-portrait{width:50px;height:50px;border-radius:14px}.cr-friend-tip>:is(img,.cr-inline-pal){width:50px;height:50px}.cr-atlas-heading{gap:10px}.cr-atlas-heading h2{font-size:22px}}
:is(body.dark,html[data-theme=dark]) .children-reading-path{background:var(--quest-paper,#18271f)}
:is(body.dark,html[data-theme=dark]) .cr-atlas-heading,:is(body.dark,html[data-theme=dark]) .cr-support-card{background:#213c30;border-color:#40634e;box-shadow:none}:is(body.dark,html[data-theme=dark]) .cr-meanings-heading{background:#332b44;border-color:#574a69}:is(body.dark,html[data-theme=dark]) .cr-atlas-heading p{color:#c0d4c7}
/* A picture and its current source ayah form one readable spread. */
.cr-verse-spread{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start;margin:18px 0 24px}
.cr-verse-spread>.cr-surah-picture{margin:0;min-width:0;background:#f7eed8;border-color:#d9cfae;border-radius:24px}
.cr-verse-spread .cr-surah-picture>summary{display:block;position:relative;padding:0;min-height:0}
.cr-verse-spread .cr-surah-picture>summary>img{display:block;width:100%;height:auto;max-height:300px;aspect-ratio:1.5;object-fit:contain;border-radius:23px 23px 0 0;background:#f7efdb}
.cr-verse-spread .cr-surah-picture>summary>span{padding:16px 20px 18px}
.cr-verse-spread .cr-surah-picture>summary::after{position:absolute;inset-inline-end:14px;top:14px;display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;background:#fffdf3;color:#27583d;border:1px solid #d8caa4}
.cr-verse-spread .cr-surah-picture strong{font-size:21px}.cr-verse-spread .cr-surah-picture small{font-size:12px}.cr-verse-spread .cr-surah-picture em{font-size:14px;margin-top:10px}
.cr-picture-reference,.cr-picture-context{display:block;font-size:13px;line-height:1.75;margin-top:7px;color:#4c604c}.cr-picture-context{padding:8px 10px;border-radius:10px;background:#fffdf5;border:1px solid #ded6bd}
.cr-ayah-panel{min-width:0;border-radius:24px;padding:22px 20px;background:#fffefa;border:1px solid #d4e2d6;box-shadow:0 5px 0 #e0ebe0}
.cr-ayah-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;font-weight:700;letter-spacing:.04em;color:#38634a}.cr-ayah-panel-heading bdi{font-size:14px;padding:3px 10px;border-radius:20px;background:#edf4e8;letter-spacing:0}
.children-reading-path .cr-ayah-panel .cr-quran{background:transparent;padding:22px 0;margin:5px 0;border:0;font-size:clamp(30px,3.5vw,40px);line-height:2.25}
.cr-ayah-panel .cr-audio{display:flex;flex-wrap:wrap;gap:9px}.cr-audio .cr-button{min-inline-size:5rem;overflow-wrap:normal;word-break:normal}.cr-audio .cr-button:first-child{flex:1 1 11rem}.cr-ayah-panel .cr-audio-status{font-size:13px}.cr-ayah-panel .cr-full-ayah{margin-top:15px}
.cr-verse-spread-compact{grid-template-columns:minmax(0,1fr)}.cr-verse-spread-compact .cr-surah-picture>summary>img{height:155px;aspect-ratio:auto;object-fit:contain}.cr-verse-spread-compact .cr-surah-picture strong{font-size:17px}
.cr-anchor-label{font-size:13px;font-weight:700;color:#426049;border-top:1px solid #d7dfcc;padding-top:16px}.cr-picture-activity{border:1px solid #d2dfd3;border-radius:18px;background:#fffdf7;padding:15px;margin:16px 0}.cr-picture-activity-title{display:flex;align-items:center;gap:11px;margin-bottom:12px}.cr-picture-activity-title :is(img,.cr-inline-pal){flex:none;width:54px;height:54px;object-fit:contain}.cr-picture-activity-title strong{font-size:16px;line-height:1.5}.cr-picture-activity-title p{margin:3px 0 0;font-size:13px;line-height:1.75}.cr-picture-activity>.cr-button{width:100%;min-height:48px;font-size:14px}
#cr-picture-hunt[hidden]{display:none}.cr-picture-activity .cr-picture-word{font-family:var(--font-quran,Amiri,serif);font-size:34px;text-align:center;line-height:2.1;color:#24573b;margin:14px 0 4px}.cr-picture-question{border:0;padding:0;margin:14px 0 0;min-width:0}.cr-picture-question legend{font-size:14px;font-weight:700;line-height:1.8;margin-bottom:10px}.cr-picture-question>div{display:flex;flex-wrap:wrap;gap:8px}.cr-picture-question .cr-button{font-family:var(--font-quran,Amiri,serif);font-size:27px;min-width:62px;min-height:52px;line-height:1.8;padding:5px 12px;background:#f5f0df}.cr-picture-feedback{margin-top:14px;border:1px solid #bbd7c4;border-radius:14px;padding:13px;background:#edf7ef;outline-offset:4px}.cr-picture-feedback strong{font-size:15px}.cr-picture-feedback p{font-size:13px;line-height:1.8}.cr-picture-feedback p>span{display:inline-block;font-family:var(--font-quran,Amiri,serif);font-size:25px}.cr-picture-feedback .cr-button{min-height:48px;font-size:14px}
.children-reading-path[dir=rtl] .cr-ayah-panel-heading{letter-spacing:0}
@media(max-width:760px){.cr-verse-spread,.cr-verse-spread-compact{grid-template-columns:minmax(0,1fr);gap:14px}.cr-verse-spread .cr-surah-picture>summary>img{aspect-ratio:1.5;max-height:270px}.cr-verse-spread .cr-surah-picture>summary>span{padding:13px 17px 16px}.cr-ayah-panel{padding:18px 16px}.cr-verse-spread-compact .cr-surah-picture>summary{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:center}.cr-verse-spread-compact .cr-surah-picture>summary>img{width:108px;height:130px;border-radius:20px;object-fit:contain}.cr-verse-spread-compact .cr-surah-picture>summary>span{padding:12px}.cr-verse-spread-compact .cr-surah-picture>summary::after{display:none}.cr-verse-spread-compact .cr-picture-context{font-size:12px;padding:6px}.children-reading-path .cr-ayah-panel .cr-quran{font-size:32px;line-height:2.35}.cr-picture-question .cr-button{font-size:27px}}
@media(max-width:350px){.cr-verse-spread .cr-surah-picture>summary>img{aspect-ratio:1.3}.cr-verse-spread-compact .cr-surah-picture>summary{grid-template-columns:82px minmax(0,1fr)}.cr-verse-spread-compact .cr-surah-picture>summary>img{width:82px;height:112px}.cr-ayah-panel{padding:16px 12px}.children-reading-path .cr-ayah-panel .cr-quran{font-size:30px}.cr-picture-activity{padding:12px}.cr-picture-question .cr-button{font-size:25px;min-width:58px}}
:is(body.dark,html[data-theme=dark]) .cr-ayah-panel,:is(body.dark,html[data-theme=dark]) .cr-picture-activity{background:#20352a;border-color:#45634c;box-shadow:none}:is(body.dark,html[data-theme=dark]) .cr-verse-spread>.cr-surah-picture{background:#303c2b;border-color:#5e674d}:is(body.dark,html[data-theme=dark]) .cr-picture-context{background:#263c2e;border-color:#60704e}:is(body.dark,html[data-theme=dark]) :is(.cr-picture-reference,.cr-picture-context,.cr-ayah-panel-heading,.cr-anchor-label,.cr-picture-word){color:#d0e4c9}:is(body.dark,html[data-theme=dark]) .cr-ayah-panel-heading bdi{background:#35513c}:is(body.dark,html[data-theme=dark]) .cr-picture-question .cr-button{background:#334a38;color:#f0f6e8}:is(body.dark,html[data-theme=dark]) .cr-picture-feedback{background:#293f30;border-color:#53765d}
/* Short, source-labelled observation stories. The learner controls every page. */
.cr-story{margin:20px 0;border:1px solid #d7c9e5;border-radius:21px;background:#faf6ff;overflow:hidden}.cr-story-top{display:flex;align-items:center;gap:13px;padding:16px 19px;background:#eee7f7;border-bottom:1px solid #d9cfe5}.cr-story-top :is(img,.cr-inline-pal){flex:none;width:58px;height:58px;object-fit:contain}.cr-story-top strong,.cr-story-top span{display:block}.cr-story-top strong{font-size:17px}.cr-story-top span{font-size:13px;color:#695779;line-height:1.8}
.cr-story-scene{padding:18px 21px}.children-reading-path .cr-story-scene h3{margin-top:0;font-size:23px;color:#503e68;outline-offset:5px}.cr-story-scene>p{font-size:16px;line-height:1.95}.cr-story-prompt{padding:14px;border-inline-start:4px solid #9979b7;border-radius:0 14px 14px 0;background:#f0e9f8}.cr-story-prompt strong{display:block;font-size:13px;margin-bottom:4px;color:#604c78}.children-reading-path[dir=rtl] .cr-story-prompt{border-radius:14px 0 0 14px}.cr-story-ayah{margin-top:18px;border:1px solid #dcd2e6;border-radius:14px;padding:0 14px;background:#fffefa}.cr-story-ayah>summary{min-height:52px;padding:12px 0;font-size:14px;line-height:1.9;font-weight:700}.cr-story-ayah>a{display:block;min-height:48px;padding:12px 0;font-size:14px}.cr-story-navigation{display:flex;justify-content:space-between;gap:10px;padding:0 20px 20px}.cr-story-navigation>.cr-button{min-height:50px;flex:1;font-size:15px}.cr-story-scene>.cr-muted{font-size:12px}.cr-topic-question legend:focus-visible,.cr-story-scene h3:focus-visible{outline:3px solid #8566a7;outline-offset:5px}
@media(max-width:650px){.cr-story-top{padding:14px;gap:10px}.cr-story-top :is(img,.cr-inline-pal){width:48px;height:48px}.cr-story-scene{padding:17px 15px}.children-reading-path .cr-story-scene h3{font-size:21px}.cr-story-scene>p{font-size:15px}.cr-story-navigation{padding:0 14px 16px;gap:8px}.cr-story-navigation>.cr-button{padding:9px;font-size:14px}.cr-story-ayah{padding-inline:11px}.children-reading-path .cr-story-ayah .cr-quran{padding-inline:0}}
:is(body.dark,html[data-theme=dark]) .cr-story{background:#2d2838;border-color:#65546f}:is(body.dark,html[data-theme=dark]) .cr-story-top{background:#3d304c;border-color:#65546f}:is(body.dark,html[data-theme=dark]) .cr-story-top span,:is(body.dark,html[data-theme=dark]) .cr-story-scene h3,:is(body.dark,html[data-theme=dark]) .cr-story-prompt strong{color:#ead8fa}:is(body.dark,html[data-theme=dark]) .cr-story-prompt{background:#3c3149}:is(body.dark,html[data-theme=dark]) .cr-story-ayah{background:#25362c;border-color:#52604c}
.cr-full-surah-link{display:block;font-size:13px;line-height:1.8;min-height:48px;padding:.4rem .6rem;border:1px solid var(--line);border-radius:.6rem;color:var(--cr-green);text-decoration:none}.cr-full-surah-link>small{display:block;font-size:11px;line-height:1.8;color:var(--cr-muted);text-decoration:none}
/* A different ayah's picture stays secondary until the child chooses to explore it. */
.cr-verse-spread-unmatched{grid-template-columns:minmax(0,1fr);gap:13px}.cr-verse-spread-unmatched>.cr-ayah-panel{grid-row:1}
.cr-verse-spread-unmatched .cr-surah-picture:not([open])>summary{display:flex;align-items:center;gap:12px;padding:12px;min-height:88px}
.cr-verse-spread-unmatched .cr-surah-picture:not([open])>summary>img{width:64px;height:64px;max-height:64px;aspect-ratio:1;flex:none;object-fit:contain;border-radius:13px}
.cr-verse-spread-unmatched .cr-surah-picture:not([open])>summary>span{padding:0;padding-inline-end:28px}.cr-verse-spread-unmatched .cr-surah-picture:not([open]) strong{font-size:17px}.cr-verse-spread-unmatched .cr-surah-picture:not([open]) small{font-size:11px}
.cr-verse-spread-unmatched .cr-surah-picture:not([open]) .cr-picture-reference{font-size:12px;margin-top:2px}.cr-verse-spread-unmatched .cr-surah-picture:not([open]) .cr-picture-context{background:transparent;border:0;padding:0;margin-top:3px;font-size:11px}.cr-verse-spread-unmatched .cr-surah-picture:not([open]) em{font-size:12px;margin-top:5px}
.cr-verse-spread-unmatched .cr-surah-picture:not([open])>summary::after{display:grid;top:12px;inset-inline-end:10px;width:28px;height:28px;font-size:19px}
.cr-verse-spread-unmatched .cr-surah-picture[open]>summary>img{width:100%;height:auto;max-height:320px;aspect-ratio:1.5;object-fit:contain}.cr-verse-spread-unmatched .cr-surah-picture[open]>summary{display:block}
.cr-story-parent{margin-top:17px;border-top:1px solid #ded4e9;padding-top:4px}.cr-story-parent>summary{font-size:12px;line-height:1.8;min-height:44px;padding:10px 0}.cr-story-parent>p{font-size:12px;line-height:1.85}
@media(max-width:350px){.cr-verse-spread-unmatched .cr-surah-picture:not([open])>summary{gap:9px;padding:10px}.cr-verse-spread-unmatched .cr-surah-picture:not([open])>summary>img{width:52px;height:52px}.cr-verse-spread-unmatched .cr-surah-picture:not([open])>summary>span{padding-inline-end:22px}.cr-verse-spread-unmatched .cr-surah-picture:not([open]) strong{font-size:16px}}

/* A tablet sidebar reduces the reading width: only use a spread when this component has room. Older browsers safely keep the stacked layout. */
@container children-reading (min-width:720px){.cr-verse-spread:not(.cr-verse-spread-unmatched){grid-template-columns:minmax(240px,.9fr) minmax(360px,1.35fr);gap:20px}.cr-verse-spread-compact:not(.cr-verse-spread-unmatched){grid-template-columns:minmax(200px,.7fr) minmax(380px,1.6fr)}.cr-verse-spread:not(.cr-verse-spread-unmatched) .cr-surah-picture>summary>img{max-height:none;aspect-ratio:1.2}.cr-verse-spread-compact:not(.cr-verse-spread-unmatched) .cr-surah-picture>summary>img{height:155px;aspect-ratio:auto}}

/* Exact-ayah illustrations for the first short-surah picture collection. */
.cr-ayah-illustration{margin:0;min-width:0;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--panel)}
.cr-ayah-art{overflow:hidden;max-height:320px;background:#fbf4e7;aspect-ratio:1.2;display:grid;place-items:center}
.cr-ayah-art img{width:100%;height:100%;max-height:320px;object-fit:contain;display:block}
.cr-ayah-illustration figcaption{padding:18px}.cr-ayah-illustration small{font-weight:800;font-size:12px;letter-spacing:.05em;color:var(--green)}
.cr-ayah-illustration h3{margin:7px 0;font-size:21px;line-height:1.5}.cr-ayah-illustration p{font-size:16px;line-height:1.8;margin:8px 0}
.cr-ayah-picture-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}.cr-ayah-picture-actions button{flex:1 1 150px;min-height:48px}
.cr-picture-parent{margin-top:12px;font-size:13px}.cr-picture-parent summary{padding:10px 0;cursor:pointer;font-weight:650}.cr-picture-parent p{font-size:14px}
.cr-ayah-art.is-moving img{animation:cr-picture-breathe 7s ease-in-out infinite}
@keyframes cr-picture-breathe{50%{transform:scale(1.035) translateY(-3px)}}
@media(max-width:650px){.cr-illustrated-spread{display:flex;flex-direction:column}.cr-ayah-art,.cr-ayah-art img{max-height:240px}.cr-ayah-illustration figcaption{padding:15px}.cr-ayah-illustration h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){.cr-ayah-art.is-moving img{animation:none}}
[dir=rtl] .cr-ayah-illustration small{letter-spacing:0}

.cr-art-unavailable{display:grid;place-content:center;gap:14px;min-height:180px;padding:24px;color:var(--cr-muted,#526461);font-size:16px;line-height:1.6}.cr-ayah-art.motion-sway img{animation:cr-scene-sway 8s ease-in-out infinite}.cr-ayah-art.motion-glow img{animation:cr-scene-glow 7s ease-in-out infinite}@keyframes cr-scene-sway{50%{transform:rotate(1deg) scale(1.015)}}@keyframes cr-scene-glow{50%{filter:brightness(1.06)}}@media(prefers-reduced-motion:reduce){.cr-ayah-art.is-moving img{animation:none!important}}

:is(body.dark,html[data-theme=dark]) .cr-ayah-illustration{background:#20352a;border-color:#45634c;color:#e7f3e1}:is(body.dark,html[data-theme=dark]) .cr-ayah-illustration small{color:#bfd6ac}:is(body.dark,html[data-theme=dark]) .cr-picture-parent a{color:#9bd4ba}

/* Source-linked cover captions remain readable without expanding the controls. */
.cr-atlas-name .cr-cover-theme{display:block;font-size:13px;line-height:1.6;color:#315b46;margin-top:4px;overflow-wrap:anywhere}.cr-atlas-name .cr-cover-ref{display:block;font-size:11px;color:#526752;line-height:1.7}.cr-cover-note{font-size:13px;line-height:1.7;color:#526752;margin:4px 0 12px}

.cr-atlas-image img.cr-ant-crop{transform:scale(2.2);transform-origin:59% 114%}

/* My Quran: reading first, optional word practice second. */
.children-reading-path[data-entry="quran"] .cr-atlas-heading{gap:14px;margin-bottom:18px}
.children-reading-path[data-entry="quran"] .cr-guide-portrait{width:52px;height:52px}
.children-reading-path[data-entry="quran"] .cr-atlas-heading h2{font-size:clamp(1.3rem,4vw,1.8rem);margin:4px 0 6px}
.children-reading-path[data-entry="quran"] .cr-atlas-heading p{margin:0}
.children-reading-path[data-entry="quran"] .cr-resume{padding:16px 18px;gap:14px;margin:0 0 18px}
.children-reading-path[data-entry="quran"] .cr-resume h3{font-size:1.2rem;margin:4px 0}
.children-reading-path[data-entry="quran"] .cr-resume p{font-size:.88rem;margin:4px 0}
.children-reading-path[data-entry="quran"] .cr-practice-settings{margin-top:20px}
.cr-shelf-filters{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.cr-shelf-filters button{border:1px solid #d4ded4;border-radius:999px;padding:9px 14px;background:#fff;color:#254c3d;font:inherit;font-size:.86rem;min-height:42px;cursor:pointer}
.cr-shelf-filters button[aria-pressed="true"]{background:#235647;color:#fff;border-color:#235647}
.cr-shelf-filters button:focus-visible,.cr-ayah-jump select:focus-visible{outline:3px solid #b58035;outline-offset:3px}
.children-reading-path[data-entry="quran"] .cr-session-title{margin:6px 0 14px}
.children-reading-path[data-entry="quran"] .cr-session-title h2{font-size:clamp(1.4rem,5vw,2rem);margin:4px 0}
.cr-reading-nav{position:sticky;top:var(--cr-nav-top,0px);z-index:12;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1fr) minmax(0,1fr);align-items:center;gap:10px;padding:10px;background:#f7f8ee;border:1px solid #d8e2d6;border-radius:16px;box-shadow:0 3px 12px #1d45340a;margin:0 0 16px}
.cr-reading-nav .cr-button{width:100%;min-width:0;min-height:46px;margin:0;justify-content:center;padding:10px 12px;white-space:normal}
.cr-ayah-jump{display:flex;align-items:center;justify-content:center;gap:6px;font-size:.82rem;font-weight:700;min-width:0;color:#315543}
.cr-ayah-jump select{font:inherit;font-size:.94rem;min-width:0;width:100%;max-width:116px;min-height:46px;border:1px solid #cbd8cd;border-radius:10px;background:#fff;color:#214d3c;padding:6px 8px;cursor:pointer}
.children-reading-path[data-entry="quran"] .cr-verse-spread{margin-top:0}
.children-reading-path[data-entry="quran"] .cr-verse-spread>.cr-ayah-panel{order:-1}
.children-reading-path[data-entry="quran"] .cr-ayah-panel{padding:18px 20px}
.children-reading-path[data-entry="quran"] .cr-quran{font-size:clamp(1.65rem,4vw,2.15rem);line-height:2.2;overflow-wrap:normal;margin:18px 0 4px}
.children-reading-path[data-entry="quran"] .cr-ayah-art,.children-reading-path[data-entry="quran"] .cr-ayah-art img{max-height:230px;object-fit:contain}
.children-reading-path[data-entry="quran"] .cr-ayah-illustration{margin:0;width:100%}
.children-reading-path[data-entry="quran"] .cr-ayah-illustration figcaption{padding:14px 18px}
.cr-listening-more{font-size:.82rem;margin:8px 0 0;color:#4b6659}
.cr-listening-more summary{cursor:pointer;padding:7px 0}
.cr-listening-more .cr-full-surah-link{margin:8px 0}
.children-reading-path[data-entry="quran"] .cr-audio-status:empty{display:none}
.cr-optional-practice{margin:20px 0;border:1px solid #d6dfd0;border-radius:16px;background:#fcfcf5;overflow:hidden}
.cr-optional-practice>summary{cursor:pointer;padding:16px 18px;list-style:disclosure-closed;font-weight:700;color:#294f3f}
.cr-optional-practice[open]>summary{list-style:disclosure-open;border-bottom:1px solid #e0e7da}
.cr-optional-practice>summary small{font-size:.78rem;font-weight:400;margin-inline-start:10px;color:#657362}
.cr-practice-body{padding:18px}
.cr-practice-progress{margin:0 0 14px;font-size:.8rem;color:#647361}
.cr-practice-body .cr-stepper{margin-top:0}
body.children-navigation-active .children-reading-path[data-entry="quran"] .cr-session-top{display:none}
@container children-reading (min-width:720px){
 .children-reading-path[data-entry="quran"] .cr-illustrated-spread{grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr);align-items:start}
 .children-reading-path[data-entry="quran"] .cr-verse-spread>.cr-ayah-panel{grid-column:1}
}
@media(max-width:480px){
 .children-reading-path[data-entry="quran"]{padding:14px;border-radius:20px}
 .children-reading-path[data-entry="quran"] .cr-atlas-heading{gap:9px}
 .children-reading-path[data-entry="quran"] .cr-guide-portrait{width:40px;height:40px}
 .children-reading-path[data-entry="quran"] .cr-resume{padding:13px;flex-direction:column;align-items:stretch}
 .children-reading-path[data-entry="quran"] .cr-resume-actions{display:flex;flex-wrap:wrap;gap:8px}
 .children-reading-path[data-entry="quran"] .cr-resume .cr-button{margin:0}
 .cr-reading-nav{gap:6px;padding:7px;border-radius:12px;margin-bottom:12px}
 .cr-reading-nav .cr-button{padding:8px 6px;font-size:.86rem}
 .cr-ayah-jump{flex-direction:column;gap:0;font-size:.75rem}
 .cr-ayah-jump select{min-height:44px;font-size:.875rem;padding:4px;max-width:100px}
 .children-reading-path[data-entry="quran"] .cr-ayah-panel{padding:12px}
 .children-reading-path[data-entry="quran"] .cr-quran{line-height:2.05;margin-top:14px}
 .children-reading-path[data-entry="quran"] .cr-ayah-art,.children-reading-path[data-entry="quran"] .cr-ayah-art img{max-height:180px}
 .children-reading-path[data-entry="quran"] .cr-ayah-illustration figcaption{padding:12px}
 .cr-practice-body{padding:12px}
 .cr-optional-practice>summary{padding:14px 12px}
}

:is(body.dark,html[data-theme=dark]) :is(.cr-reading-nav,.cr-optional-practice){background:#21392c;border-color:#496651}
:is(body.dark,html[data-theme=dark]) :is(.cr-shelf-filters button,.cr-ayah-jump select){background:#2a4534;border-color:#56715a;color:#eef5e9}
:is(body.dark,html[data-theme=dark]) .cr-shelf-filters button[aria-pressed="true"]{background:#a7cfad;color:#163625}
:is(body.dark,html[data-theme=dark]) :is(.cr-ayah-jump,.cr-listening-more,.cr-optional-practice>summary){color:#d6e8cc}
:is(body.dark,html[data-theme=dark]) :is(.cr-practice-progress,.cr-optional-practice>summary small){color:#bdd0b6}
/* The site's searchable choice control replaces the native ayah select. */
.cr-ayah-jump>span{flex:none;white-space:nowrap;overflow-wrap:normal}
.cr-ayah-jump .choice-trigger{flex:1 1 auto;width:auto;min-width:0;max-width:116px;min-height:46px;padding:6px 8px;gap:0;justify-content:center}
.cr-ayah-jump .choice-trigger :is(svg,small){display:none}
.cr-ayah-jump .choice-current{font-size:.9rem;text-align:center;white-space:nowrap;overflow-wrap:normal}
@media(max-width:480px){.cr-ayah-jump .choice-trigger{flex:none;width:100%;min-height:44px;max-width:100px;padding:5px}.cr-ayah-jump .choice-current{font-size:.875rem}}
.cr-ayah-jump :is(select,.choice-current){direction:ltr;unicode-bidi:isolate}

/* Small shared reading choices, kept beside the child's current ayah. */
.children-reading-path .cr-quran,.children-reading-path .cr-ayah-panel .cr-quran,.children-reading-path[data-entry="quran"] .cr-quran{font-size:var(--cr-arabic-size,30px)}
.cr-reader-options{border-top:1px solid var(--cr-line);margin-top:14px;color:var(--cr-ink)}
.cr-reader-options>summary{padding:12px 0;cursor:pointer;font-size:14px;font-weight:700}
.cr-reader-options-body{display:grid;gap:15px;padding:4px 0 12px;min-width:0}
.cr-reader-options-body>label{display:grid;gap:7px;font-size:13px;min-width:0}
.cr-reader-options-body>label>span{display:flex;justify-content:space-between;gap:12px}
.cr-reader-options select{min-height:44px;width:100%;max-width:100%;min-width:0;padding:9px;border:1px solid var(--cr-line);border-radius:10px;background:var(--cr-soft);color:inherit;font:inherit}
.cr-reader-options input[type="range"]{width:100%;min-height:30px;margin:0;accent-color:var(--cr-green)}
.cr-reader-links{display:flex;flex-wrap:wrap;gap:5px 18px;border-top:1px solid var(--cr-line);padding-top:7px}
.cr-reader-links>a{display:flex;align-items:center;min-height:44px;font-size:13px;line-height:1.65}

.cr-word-listening{border-top:1px solid var(--cr-line);margin-top:4px;padding-top:2px}
.cr-word-listening>summary{padding:12px 0;cursor:pointer;font-size:14px;font-weight:700}
.cr-word-listening [data-cr-word-player]{margin-bottom:12px}

.child-verse-opening{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 12px;padding:6px 0 9px;margin:0 auto 6px;border-block-end:1px solid color-mix(in srgb,currentColor 16%,transparent);color:inherit}
.child-verse-opening small{font:inherit;font-size:.75rem}
.child-verse-opening span{font-family:var(--quran-font,'Amiri',serif);font-size:1.16rem;line-height:1.85;white-space:normal}
.children-reading-path[data-entry="quran"] .cr-session-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 8px;margin-block:8px}
.children-reading-path .cr-session-title .cr-eyebrow{grid-column:1}
.children-reading-path .cr-session-title h2{grid-column:1}
.children-reading-path .cr-session-title [data-cr-action="hifdh-open"]{grid-area:1/2/span 2/3;margin:0;min-height:44px;max-width:150px;font-size:.88rem;line-height:1.55}
.children-reading-path .cr-illustrated-spread{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.cr-illustrated-verse,.cr-illustrated-tools{min-width:0}
.cr-illustrated-verse .cr-audio{justify-content:center;margin:6px auto 0}
.children-reading-path .cr-illustrated-verse .cr-quran{text-align:center;margin:6px 0;line-height:1.95}
.children-reading-path[data-entry] .cr-illustrated-spread .cr-ayah-art{width:100%;height:clamp(150px,30svh,290px);max-height:none;aspect-ratio:auto}
.children-reading-path[data-entry] .cr-illustrated-spread .cr-ayah-art img{height:100%;width:100%;max-height:100%;object-fit:contain}
@media(min-width:720px){
 .children-reading-path[data-entry] .cr-illustrated-spread{grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);grid-template-rows:auto 1fr;align-items:start;column-gap:24px}
 .cr-illustrated-spread .cr-illustrated-verse,.cr-illustrated-spread .cr-illustrated-tools{grid-column:1}
 .cr-illustrated-spread .cr-ayah-illustration{grid-column:2;grid-row:1/3}
}
.cr-trail-header{display:flex;align-items:center;gap:12px;margin:10px 0}
.cr-trail-header img{width:58px;height:58px;object-fit:contain}
.cr-trail-header small{font-size:.9rem;font-weight:700}
.cr-trail-header h2{margin:2px 0;line-height:1.5}
.cr-memory-trail{max-width:48rem;margin:0 auto;color:var(--cr-ink)}
.cr-memory-trail>p{text-align:center;line-height:1.65}
.cr-trail-progress{display:grid;gap:5px;justify-items:center;font-size:.87rem}
.cr-trail-progress progress{width:min(14rem,90%);height:8px;accent-color:var(--cr-green)}
.cr-memory-words{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 .4em;min-height:100px;margin:12px 0;padding:12px;border-radius:22px;background:var(--cr-soft);font-family:var(--quran-font,'Amiri',serif);font-size:var(--cr-arabic-size,30px);line-height:2.1}
.cr-memory-words>span{white-space:nowrap}
.cr-memory-words i{letter-spacing:.14em;color:var(--cr-green);font-size:.85em}
.cr-memory-words .cr-quran{margin:0}
.cr-trail-main,.cr-trail-extra{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:8px 0}
.cr-trail-main .cr-button,.cr-trail-extra .cr-button{margin:0;min-height:46px}
.cr-trail-main .cr-primary{min-width:min(12em,60%)}
.cr-trail-extra .cr-button{border-color:transparent;background:transparent}
.cr-trail-progress:focus-visible{outline:3px solid var(--cr-green);outline-offset:4px}
.cr-surah-illustration .cr-ant-crop{transform:scale(2.2);transform-origin:59% 114%}
.cr-trail-extra [hidden]{display:none}

/* Give the surah name the full measure even when the Hifdh control is long. */
@container children-reading (max-width:30rem){
 .children-reading-path[data-entry="quran"] .cr-session-title h2{grid-area:2/1/3/-1}
 .children-reading-path[data-entry="quran"] .cr-session-title [data-cr-action="hifdh-open"]{grid-area:1/2/2/3}
}

.cr-memory-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:.75rem}
.cr-memory-tile,.cr-pack-entry{display:flex;align-items:center;gap:.85rem;min-width:0;padding:.75rem;border:1px solid #b8d4c6;border-radius:1rem;background:#f4faf4;color:#214639;text-align:start;text-decoration:none}
.cr-memory-tile{font:inherit;cursor:pointer}
.cr-memory-tile:hover,.cr-pack-entry:hover{background:#e8f4eb}
.cr-memory-tile:focus-visible,.cr-pack-entry:focus-visible{outline:3px solid #207453;outline-offset:2px}
.cr-memory-tile img{width:clamp(3.5rem,16vw,5rem);height:auto;aspect-ratio:1;object-fit:cover;border-radius:.7rem;flex:none}
.cr-memory-tile span{min-width:0}
.cr-memory-tile strong,.cr-memory-tile small{display:block;line-height:1.5;word-break:normal;overflow-wrap:break-word}
.cr-memory-tile small{margin-block-start:.25em}
.cr-pack-source,.cr-pack-meaning small{color:#496051}
.cr-pack-entry{margin-block:.75rem 1rem}
.cr-pack-entry img{object-fit:contain}
.cr-learning-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.5rem;margin-block:.75rem 1rem}
.cr-learning-shortcuts .cr-pack-entry{min-block-size:3rem;margin:0;padding:.65rem .8rem;gap:.6rem;border-color:var(--cr-line);background:var(--cr-paper);color:var(--cr-green);font:700 .9375rem/1.5 var(--font-ui,system-ui,sans-serif)}
.cr-learning-shortcuts .cr-pack-entry:hover{background:var(--cr-soft)}
.cr-learning-shortcuts .cr-pack-entry>svg{inline-size:1.5rem;block-size:1.5rem;flex:none}
.cr-learning-shortcuts .cr-pack-entry>strong{font:inherit}
.cr-pack-meaning{padding-inline:.9rem;border-inline-start:3px solid #77a78c;margin-block:1rem;line-height:1.65}
.cr-pack-meaning p{margin:0}
.cr-pack-nav{display:flex;align-items:center;justify-content:space-between;gap:.4rem;flex-wrap:wrap}
.cr-memory-words span{display:inline-block;white-space:nowrap;word-break:normal}
.cr-pack-meaning details{margin-block-start:.5rem}
.cr-pack-meaning summary{cursor:pointer}
.cr-pack-meaning details a{display:block;margin-block:.35rem;line-height:1.6}

.cr-game-modes{display:flex;flex-wrap:wrap;gap:.25rem;padding:.25rem;border-radius:.95rem;background:#e6f1e9;margin-block:.75rem}
.cr-game-modes .cr-button{flex:1 1 8rem;margin:0;border:0;min-height:44px;border-radius:.7rem;color:#315544;background:transparent}
.cr-game-modes .cr-button[aria-pressed=true]{color:#fff;background:#255744}
.cr-word-game{display:grid;gap:.8rem;min-width:0;padding:clamp(.85rem,3vw,1.35rem);border:1px solid #b9d3bd;border-radius:1rem;background:#f8fbf5;color:#244635;text-align:start}
.cr-word-game header,.cr-game-nav{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.cr-word-game header small,.cr-game-reciter,.cr-game-status{color:#3b604d}
.cr-word-game > progress{width:100%;height:.4rem;accent-color:#397251}
.cr-word-game p,.cr-word-game .cr-button{margin:0}
.cr-game-words,.cr-game-choices{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.45rem;margin:.4rem 0}
.cr-game-token,.cr-game-choices button,.cr-game-pair{font-family:var(--font-quran,"Mushaf Quran","Amiri",serif);font-size:clamp(1.45rem,5.5vw,2.1rem);line-height:1.95;word-break:normal}
.cr-game-token,.cr-game-choices button{display:inline-block;max-width:100%;padding:.08em .55em;border-radius:.7rem;white-space:nowrap;color:#214839;background:#fff;border:1px solid #b2cdbc}
.cr-game-token:is(button),.cr-game-cue,.cr-game-choices button{cursor:pointer;min-height:46px}
.cr-game-token[aria-pressed=true]{background:#def0d4;border-color:#427350}
.cr-game-choices button[aria-pressed=true]{border:2px dashed #88653a;background:#fff8eb}
.cr-game-question{min-width:0;margin:0;padding:.6rem;border:1px solid #bfd6c1;border-radius:.85rem}
.cr-game-pair{text-align:center}
.cr-game-pair b{color:#2c663f;text-decoration:underline;text-decoration-thickness:.08em}
.cr-game-cue{display:block;margin:.25rem auto;border:0;border-radius:.55rem;background:transparent;color:#295b43;text-decoration:underline;font:inherit}
.cr-game-feedback{background:#eef5e6;border-radius:.7rem;padding:.65rem .8rem}
.cr-game-status:empty{display:none}
.cr-word-game :is(button, [tabindex]):focus-visible{outline:3px solid #28647b;outline-offset:2px}

/* v131: keep the child's listening action beside the ayah, before optional help. */
.children-reading-path .cr-audio{display:flex;gap:8px;margin:6px 0 12px;align-items:stretch}
.children-reading-path .cr-audio .cr-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;margin:0;font-size:1rem;font-weight:750;line-height:1.4;padding:10px 15px}
.children-reading-path .cr-audio [data-cr-action="listen"]{flex:1 1 auto}
.children-reading-path .cr-audio [data-cr-action="stop"]{flex:0 0 auto;min-inline-size:4.5rem}
.children-reading-path .cr-audio svg{width:23px;height:23px;flex:none}
.children-reading-path .cr-audio .cr-primary svg{color:inherit}
.children-reading-path .cr-audio-status:empty{display:none}
@media(max-width:350px){.children-reading-path .cr-audio .cr-button{padding:10px;gap:6px}.children-reading-path .cr-audio svg{width:21px;height:21px}}

@media(max-width:480px){.children-reading-path .cr-reading-nav{grid-template-columns:minmax(0,1fr) minmax(80px,.9fr) minmax(0,1fr);gap:6px;padding:8px}.children-reading-path .cr-reading-nav .cr-button{font-size:.875rem;white-space:nowrap;overflow-wrap:normal;word-break:normal;padding-inline:4px}}

:is(body.dark,html[data-theme=dark]) .children-reading-path .cr-button.cr-primary{background:#a8d9ae;border-color:#a8d9ae;color:#143b28}

.cr-shelf-pages {display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-block:1rem;flex-wrap:wrap}
.cr-shelf-pages button {min-block-size:2.85rem}
.cr-shelf-pages span {font-variant-numeric:tabular-nums;color:var(--muted)}
.cr-shelf-pages button:disabled {opacity:.48;cursor:default}

.cr-compact-heading{display:flex;align-items:center;gap:.65rem;padding:.5rem .6rem;margin:0}
.cr-compact-heading .cr-guide-portrait{height:3.3rem;width:3.3rem}
.cr-compact-heading h2,.cr-quick-surahs h3 {margin:.35rem 0}
.cr-quick-surahs h3{font-size:1.12rem}
.cr-quick-surahs button[data-cr-quick]{display:flex;gap:1rem;align-items:center;text-align:start;padding:.6rem;border:1px solid var(--cr-line,#c7d9cc);border-radius:.8rem;background:var(--cr-paper,#fff);font:inherit;color:inherit}
.cr-quick-picture{width:34%;max-width:8.5rem;flex:none}
.cr-quick-picture img{display:block;width:100%;height:5.6rem;object-fit:cover;border-radius:.55rem}
.cr-quick-surahs button small,.cr-quick-surahs button strong{display:block}
.cr-quick-surahs button strong{font-size:1.1rem}
.cr-more-choices>summary,.cr-atlas-library>summary{min-height:44px;padding:.65rem .25rem;font-weight:670;cursor:pointer}

:is(body.dark,html[data-theme=dark]) .cr-atlas-grid>.cr-atlas-card{background:var(--cr-paper);border-color:var(--cr-line);box-shadow:none}
:is(body.dark,html[data-theme=dark]) .cr-atlas-grid>.cr-atlas-card:hover{background:var(--cr-soft)}
:is(body.dark,html[data-theme=dark]) .cr-atlas-name .cr-cover-theme{color:var(--cr-ink)}
:is(body.dark,html[data-theme=dark]) :is(.cr-atlas-name .cr-cover-ref,.cr-cover-note){color:var(--cr-muted)}
/* Keep the canonical reader inside the same Garden as its earlier lessons. */
.children-reading-path .cr-garden-frame{margin-block:0 1rem}
.children-reading-path .cr-garden-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-block-end:.6rem}
.children-reading-path .cr-garden-toolbar>a{display:inline-flex;align-items:center;min-height:44px;font-weight:750;color:var(--green,#187b66);text-decoration:none}
.children-reading-path .cr-garden-toolbar>a:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.children-reading-path .cr-guide-portrait{display:block;flex:none;width:4.5rem;height:4.5rem;object-fit:contain}
.children-reading-path :is(.cr-guide-portrait,.cr-celebrate-friend,.cr-inline-pal)>.garden-pal-art{display:block;width:100%;height:100%}
.children-reading-path :is(.cr-guide-portrait,.cr-celebrate-friend,.cr-inline-pal) .garden-pal-svg{width:100%;height:100%;overflow:visible}
.children-reading-path .cr-celebrate-friend{display:block;width:7.5rem;height:7.5rem;margin-inline:auto}
.children-reading-path .cr-support-card>.cr-guide-portrait{margin-inline:auto;width:4rem;height:4rem}
.children-reading-path .cr-start-entry{padding:clamp(1.1rem,4vw,2rem);background:var(--panel,#fff);border:1px solid var(--line,#dce9df);border-radius:1.5rem}
.children-reading-path .cr-start-entry>header{display:flex;align-items:center;gap:1rem;margin-block-end:1rem}
.children-reading-path .cr-start-entry h2{font-size:clamp(1.5rem,5vw,2rem);margin-block:.2rem}
.children-reading-path .cr-start-entry>p{max-width:42rem;line-height:1.65}
.children-reading-path .cr-start-entry>a{display:inline-flex;align-items:center;min-height:44px;margin-block-start:.75rem;color:var(--green,#187b66)}
@media(max-width:420px){.children-reading-path .cr-garden-toolbar{gap:.35rem}.children-reading-path .cr-start-entry>header{gap:.7rem}}

@media (max-width: 34rem) {
  .children-reading-path :is(.cr-inline-pal,.cr-guide-portrait) {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    flex: none;
  }
  .children-reading-path .cr-friend-tip { align-items: start; }
  .children-reading-path .cr-illustrated-spread > *, .children-reading-path .cr-verse-spread > * { min-inline-size: 0; }
  .children-reading-path .cr-ayah-art img,
  .children-reading-path .cr-verse-spread .cr-surah-picture[open] > summary > img {
    max-block-size: min(13rem, 30svh);
    object-fit: contain;
  }
  .children-reading-path .cr-verse-spread:not(.cr-verse-spread-unmatched) .cr-surah-picture:not([open]) > summary {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    padding-inline-end: 3rem;
  }
  .children-reading-path .cr-verse-spread:not(.cr-verse-spread-unmatched) .cr-surah-picture:not([open]) > summary > img {
    inline-size: 3.5rem;
    block-size: 3.5rem;
    border-radius: .65rem;
  }
  .children-reading-path .cr-verse-spread:not(.cr-verse-spread-unmatched) .cr-surah-picture:not([open]) > summary > span { padding: 0; }
}


/* /quran-reading-help.css */
/* Reading help is a secondary pronunciation aid beside the original Arabic. */
.quran-reading-help{--qrh-ink:#31594a;--qrh-line:#cfded4;--qrh-paper:#f1f6f1;--qrh-muted:#4d665b;margin:14px 0 18px;border:1px solid var(--qrh-line);border-radius:14px;background:var(--qrh-paper);color:var(--qrh-ink);font-family:var(--font-ui,inherit);min-width:0;max-width:100%;overflow-wrap:anywhere;text-align:start}
.quran-reading-help[hidden]{display:none!important}
.quran-reading-help .qrh-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:11px 14px;border:0;border-radius:13px;background:transparent;color:inherit;text-align:start;font:inherit;font-size:14px;font-weight:750;line-height:1.5;cursor:pointer}
.quran-reading-help .qrh-toggle:hover{background:#e7f0e8}
.quran-reading-help .qrh-toggle:focus-visible,.quran-reading-help .qrh-retry:focus-visible,.quran-reading-help a:focus-visible,.quran-reading-help summary:focus-visible{outline:3px solid #ad791d;outline-offset:3px}
.quran-reading-help .qrh-symbol{display:grid;place-items:center;flex:none;min-width:29px;height:29px;border:1px solid var(--qrh-line);border-radius:8px;background:#fffaf0;font:700 15px/1.2 Georgia,serif;direction:ltr;unicode-bidi:isolate;color:#69552c}
.quran-reading-help .qrh-disclosure{margin-inline-start:auto;margin-inline-end:.25rem;inline-size:.48rem;block-size:.48rem;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.quran-reading-help .qrh-toggle[aria-expanded="true"] .qrh-disclosure{transform:rotate(225deg)}
.quran-reading-help .qrh-body{padding:0 15px 14px}
.quran-reading-help .qrh-latin{margin:2px 0 12px;font-family:Arial,"Helvetica Neue",sans-serif;font-size:clamp(17px,var(--english-size,17px),24px);font-weight:500;line-height:1.85;letter-spacing:.015em;direction:ltr;unicode-bidi:isolate;text-align:left;overflow-wrap:anywhere;word-break:normal;color:var(--qrh-ink)}
.quran-reading-help .qrh-note,.quran-reading-help .qrh-status,.quran-reading-help .qrh-source p{margin:8px 0 0;font:inherit;font-size:12px;line-height:1.7;letter-spacing:normal;color:var(--qrh-muted)}
.quran-reading-help .qrh-source{margin:8px 0 0;border-top:1px solid var(--qrh-line)}
.quran-reading-help .qrh-source summary{padding:8px 0;min-height:40px;cursor:pointer;font:inherit;font-size:12px;font-weight:650;line-height:1.6}
.quran-reading-help .qrh-source a{display:inline-block;margin-top:8px;color:inherit;font-size:12px;line-height:1.8;text-decoration:underline;text-underline-offset:3px}
.quran-reading-help .qrh-retry{margin:10px 0 0;border:1px solid var(--qrh-line);border-radius:10px;min-height:44px;padding:9px 12px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.quran-reading-help .qrh-label{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px;font-size:12px;line-height:1.5}
.quran-reading-help .qrh-label bdi{margin-inline-start:auto;font-variant-numeric:tabular-nums}
.quran-reading-help.qrh-inline{border-inline-start:3px solid #91b6a1;border-radius:0 12px 12px 0;margin-block:8px 18px}
.quran-reading-help.qrh-inline[dir=rtl]{border-radius:12px 0 0 12px}
.quran-reading-help.qrh-inline .qrh-symbol{min-width:24px;height:24px;font-size:13px}
.quran-reading-help.qrh-inline .qrh-latin{font-size:clamp(17px,var(--english-size,17px),24px);margin-bottom:0}
@media(max-width:480px){.quran-reading-help .qrh-body{padding-inline:12px}.quran-reading-help .qrh-toggle{padding-inline:12px}.quran-reading-help .qrh-latin{font-size:clamp(17px,var(--english-size,17px),24px);line-height:1.9}}
:is(body.dark,html[data-theme=dark]) .quran-reading-help{--qrh-ink:#d7ecdf;--qrh-line:#496652;--qrh-paper:#21382b;--qrh-muted:#bdd1c0}
:is(body.dark,html[data-theme=dark]) .quran-reading-help .qrh-symbol{background:#3b3b27;color:#ecd9ab}
:is(body.dark,html[data-theme=dark]) .quran-reading-help .qrh-toggle:hover{background:#2c4735}
@media(forced-colors:active){.quran-reading-help,.quran-reading-help .qrh-symbol{border-color:CanvasText}.quran-reading-help .qrh-toggle:focus-visible{outline-color:Highlight}}

/* A reviewed short report excerpt may carry its own Latin pronunciation. */
.narration-transliteration{border-inline-start:3px solid #91b6a1;padding:8px 12px;margin:10px 0 14px;font:400 1rem/1.85 var(--font-ui,inherit);overflow-wrap:anywhere;color:inherit;text-align:left;direction:ltr;unicode-bidi:isolate}
.narration-transliteration>span{display:block;font-size:.8125rem;font-weight:700;color:var(--green,#187b66);margin-bottom:4px}


/* /start-here.css */
.start-here-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line,#d6e1d9);border-radius:12px;background:var(--panel,#fff);color:var(--ink,#183e31);font-family:var(--font-ui,system-ui,sans-serif);font-size:13px;font-weight:700;line-height:1.4;cursor:pointer;white-space:normal;flex-shrink:0}.start-here-trigger svg{width:19px;height:19px;flex:none}.start-here-trigger [data-start-here-label]{display:inline!important}.start-here-trigger:focus-visible{outline:3px solid #b08b3e;outline-offset:3px}
.start-here-dialog{--sh-paper:var(--panel,#fffefa);--sh-ink:var(--ink,#183e31);--sh-muted:#4f695e;--sh-line:#d2dfd6;--sh-green:#176345;--sh-pale:#edf5ef;width:min(700px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--sh-line);border-radius:24px;background:var(--sh-paper);color:var(--sh-ink);font-family:var(--font-ui,system-ui,sans-serif);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #09251d40}.dark .start-here-dialog{--sh-paper:#162d24;--sh-ink:#edf5e5;--sh-muted:#c3d3c4;--sh-line:#456452;--sh-green:#b2dfbd;--sh-pale:#213c30}.start-here-dialog::backdrop{background:#091a15a3;backdrop-filter:blur(3px)}.sh-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:2;padding:20px 24px 16px;background:var(--sh-paper);border-bottom:1px solid var(--sh-line)}.sh-header p{margin:0 0 4px;font-size:12px;font-weight:750;letter-spacing:.06em;color:var(--sh-green)}.sh-header h1{font-size:28px;line-height:1.3;margin:0;outline:none}.sh-close{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;border:1px solid var(--sh-line);border-radius:50%;background:var(--sh-pale);color:var(--sh-ink);font-size:26px;line-height:1;cursor:pointer}.sh-body{padding:20px 24px 24px}.sh-intro{font-size:16px;line-height:1.8;margin:0 0 20px;color:var(--sh-muted)}.sh-tasks{display:grid;gap:12px}.sh-task{border:1px solid var(--sh-line);border-radius:17px;overflow:clip}.sh-task>summary{display:flex;align-items:center;gap:13px;min-height:76px;padding:15px;list-style:none;cursor:pointer}.sh-task>summary::-webkit-details-marker{display:none}.sh-task>summary:after{content:'+';font-size:24px;line-height:1;margin-inline-start:auto;flex:none;color:var(--sh-green)}.sh-task[open]>summary:after{content:'−'}.sh-task>summary>svg{width:26px;height:26px;flex:none;color:var(--sh-green)}.sh-task>summary strong{display:block;font-size:16px;line-height:1.5}.sh-task>summary small{display:block;font-size:13px;line-height:1.7;color:var(--sh-muted);margin-top:3px}.sh-task[open]>summary{background:var(--sh-pale);border-bottom:1px solid var(--sh-line)}.sh-task-body{padding:16px}.sh-task ol{margin:0;padding-inline-start:22px;font-size:14px;line-height:1.9;color:var(--sh-muted)}.sh-task li+li{margin-top:10px}.sh-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.sh-action{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;border:1px solid var(--sh-line);border-radius:11px;background:var(--sh-paper);color:var(--sh-green);font-family:inherit;font-size:14px;font-weight:700;line-height:1.6;cursor:pointer;text-align:center;white-space:normal}.sh-action.is-primary{background:#176345;color:#fff;border-color:#176345}.dark .sh-action.is-primary{background:#b2dfbd;color:#173a2a;border-color:#b2dfbd}.sh-accessibility{margin-top:22px;padding:0 16px;background:var(--sh-pale);border:1px solid var(--sh-line);border-radius:16px}.sh-accessibility>summary,.sh-transcript>summary{min-height:48px;align-content:center;padding:12px 0;font-size:14px;line-height:1.7;font-weight:700;cursor:pointer}.sh-accessibility p{font-size:14px;line-height:1.9;margin:0 0 13px;color:var(--sh-muted)}.sh-accessibility>div{padding-bottom:16px}.sh-footer{padding-top:20px}.sh-footer>p{font-size:14px;line-height:1.8;color:var(--sh-muted);margin:0 0 8px}.sh-status:empty,.sh-media-status:empty{display:none}.sh-status,.sh-media-status{font-size:14px;line-height:1.8;color:var(--sh-ink);margin:12px 0 0}.sh-tour{margin:0 0 22px;padding:16px;border:1px solid var(--sh-line);border-radius:17px}.sh-tour h2{font-size:18px;line-height:1.5;margin:0 0 6px}.sh-tour>p{font-size:14px;line-height:1.7;color:var(--sh-muted);margin:0 0 12px}.sh-tour video{display:block;width:100%;max-height:48svh;background:#10251d;border-radius:10px;object-fit:contain}.sh-transcript>div{white-space:pre-wrap;font-size:14px;line-height:1.9;color:var(--sh-muted);padding:0 0 10px}.start-here-dialog :is(button,summary,video):focus-visible{outline:3px solid #b08b3e;outline-offset:3px}.start-here-dialog[dir=rtl] .sh-header p{letter-spacing:0}.start-here-dialog[dir=rtl] :is(h1,h2,strong){line-height:1.7}
@media(max-width:400px){.start-here-trigger{font-size:12px;padding:8px;gap:5px}.sh-header{padding:16px}.sh-header h1{font-size:25px}.sh-body{padding:16px}.sh-task>summary{gap:9px;padding:12px}.sh-task-body{padding:14px}.sh-actions{display:grid;grid-template-columns:1fr}.sh-action{width:100%}.sh-tour{padding:12px}.sh-task>summary small{font-size:13px}}
@media(prefers-reduced-motion:reduce){.start-here-dialog{scroll-behavior:auto}}

.sh-apple-links{display:flex;flex-wrap:wrap;gap:8px 18px}.sh-apple-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--sh-green);text-underline-offset:3px}

.sh-fallback-backdrop{position:fixed;inset:0;background:#091a15c9;z-index:2147483645}.start-here-dialog.sh-dialog-fallback{display:block;position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;z-index:2147483646;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.sh-tour-player>summary{min-height:48px;padding:4px 0;font-size:16px;font-weight:750;line-height:1.7;align-content:center;cursor:pointer}.sh-tour-player>p{font-size:14px;line-height:1.8;color:var(--sh-muted);margin:8px 0 12px}.sh-video-larger{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:44px;margin-top:8px;color:var(--sh-green);font-size:14px;font-weight:700;line-height:1.7;text-underline-offset:3px}.sh-link-note{font-size:12px;font-weight:500}.start-here-dialog a:focus-visible{outline:3px solid #b08b3e;outline-offset:3px}


/* /app-tour.css */
.app-tour-trigger {
 display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.45rem .75rem;
 border:1px solid var(--line,#c7d8cf);border-radius:10px;background:var(--panel,#fffefa);color:var(--ink,#193d32);
 font:650 .875rem/1.35 var(--font-ui,system-ui,sans-serif);white-space:nowrap;
}
.app-tour-trigger svg { width:18px;height:18px;flex:none }
.app-tour-dialog[open],.app-tour-resume {
 position:fixed;inset:auto;inset-inline-end:max(14px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:160;
 box-sizing:border-box;color:var(--ink,#193d32);background:var(--panel,#fffefa);
 border:1px solid var(--line,#c7d8cf);box-shadow:0 12px 46px #082c2433,0 2px 7px #082c2414;
 text-align:start;font:450 1rem/1.5 var(--font-ui,system-ui,sans-serif);margin:0;
}
.app-tour-dialog[open] {
 display:flex;flex-direction:column;width:min(24rem,calc(100vw - 28px));max-width:none;
 max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border-radius:18px;overflow:hidden;
}
.app-tour-dialog[open][data-placement=top] {top:max(12px,env(safe-area-inset-top));bottom:auto}
.app-tour-dialog *,.app-tour-resume * { box-sizing:border-box }
.app-tour-dialog button,.app-tour-resume button,.app-tour-dialog summary {cursor:pointer;color:inherit}
.app-tour-dialog .at-header {display:flex;align-items:center;gap:.75rem;padding:.3rem .55rem .25rem 1rem;flex:none}
.app-tour-dialog[dir=rtl] .at-header {padding:.3rem 1rem .25rem .55rem}
.app-tour-dialog .at-brand {display:inline-flex;align-items:center;gap:.55rem;font-size:.875rem;font-weight:700}
.app-tour-dialog .at-brand svg {width:1.2rem;height:1.2rem;color:var(--green,#196447)}
.app-tour-dialog .at-count {margin-inline-start:auto;color:var(--muted,#52685d);font-size:.875rem;font-variant-numeric:tabular-nums}
.app-tour-dialog .at-close,.app-tour-resume [data-at-dismiss] {display:grid;place-items:center;width:44px;height:44px;border:0;background:none;border-radius:9px;font:500 1.5rem/1 sans-serif}
.app-tour-dialog progress {display:block;appearance:none;width:100%;height:3px;flex:none;border:0;border-radius:0;accent-color:var(--green,#196447);background:var(--line,#dce5df)}
.app-tour-dialog progress::-webkit-progress-bar {background:var(--line,#dce5df)}
.app-tour-dialog progress::-webkit-progress-value {background:var(--green,#196447)}
.app-tour-dialog progress::-moz-progress-bar {background:var(--green,#196447)}
.app-tour-dialog .at-content {padding:.8rem 1rem 0;overflow:auto;overscroll-behavior:contain;min-height:0}
.app-tour-dialog h2 {font:700 1.35rem/1.35 var(--font-ui,system-ui,sans-serif);margin:0;color:inherit}
.app-tour-dialog #app-tour-instruction {margin:.35rem 0 .2rem;line-height:1.5;font-size:1rem}
.app-tour-dialog[dir=rtl] :is(h2,#app-tour-instruction) {line-height:1.65;letter-spacing:normal}
.app-tour-dialog .at-actions {display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .8rem}
.app-tour-dialog :is(.at-try,.at-restart),.app-tour-dialog .at-details a {border:0;padding:.55rem 0;min-height:44px;background:none;color:var(--green,#196447);font:650 .9rem/1.4 var(--font-ui,system-ui,sans-serif);text-decoration:underline;text-underline-offset:.2em}
.app-tour-dialog .at-details {border-block-start:1px solid var(--line,#dce5df);font-size:.875rem}
.app-tour-dialog .at-details summary {min-height:44px;padding:.65rem 0;line-height:1.4;font-weight:600}
.app-tour-dialog .at-details ol {padding-inline-start:1.25rem;margin:.25rem 0 .6rem;line-height:1.65}
.app-tour-dialog .at-details li+li {margin-block-start:.3rem}
.app-tour-dialog .at-details nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem;padding:.5rem 0}
.app-tour-dialog .at-details nav button {text-align:start;min-height:44px;border:1px solid var(--line,#d1dfd6);border-radius:7px;background:transparent;padding:.35rem .5rem;font:500 .875rem/1.4 var(--font-ui,system-ui,sans-serif)}
.app-tour-dialog .at-details [aria-current=step] {border-color:var(--green,#196447);font-weight:700}
.app-tour-dialog .at-status {font-size:.9rem;margin:.4rem 0}
.app-tour-dialog .at-status:empty {display:none}
.app-tour-dialog .at-footer {display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.45rem 1rem .75rem;flex:none}
.app-tour-dialog .at-footer button {min-width:5rem;min-height:44px;background:transparent;border:1px solid var(--line,#b9cbc0);border-radius:.6rem;padding:.45rem .9rem;font:650 .95rem/1.4 var(--font-ui,system-ui,sans-serif)}
.app-tour-dialog .at-footer button:disabled {opacity:.5;cursor:default}
.app-tour-dialog .at-footer .at-next {background:var(--green,#196447);border-color:transparent;color:var(--on-green,#fff)}
.app-tour-dialog :is(button,summary,a):focus-visible,.app-tour-resume button:focus-visible,.app-tour-trigger:focus-visible {outline:3px solid #b47a25;outline-offset:2px}
.app-tour-dialog [tabindex="-1"]:focus {outline:0}
.mushaf-tour-target {outline:3px solid #c18b3b!important;outline-offset:3px;box-shadow:0 0 0 6px var(--panel,#fffefa)}
.app-tour-resume {display:flex;align-items:center;border-radius:1rem;padding-inline-start:.4rem;z-index:70}
.app-tour-resume [data-at-continue] {min-height:44px;background:none;color:var(--green,#196447);border:0;padding:.4rem .65rem;font:650 .875rem/1.4 var(--font-ui,system-ui,sans-serif)}
.at-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.dark .app-tour-dialog .at-next,html[data-theme=dark] .app-tour-dialog .at-next {color:#102d23}
@media(max-width:700px) {
 .app-tour-dialog[open],.app-tour-resume {inset-inline-end:max(9px,env(safe-area-inset-right));bottom:calc(70px + env(safe-area-inset-bottom))}
 .app-tour-dialog[open] {width:min(24rem,calc(100vw - 18px));max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px)}
 .app-tour-dialog[open][data-placement=top] {top:max(8px,env(safe-area-inset-top));bottom:auto}
}
@media(max-height:470px) {
 .app-tour-dialog[open] {bottom:6px;max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px)}
}
@media print {.app-tour-dialog[open],.app-tour-resume,.app-tour-trigger {display:none!important}.mushaf-tour-target {outline:none!important;box-shadow:none}}


/* /welcome.css */
.mw-dialog {
  --mw-ink: #153e33;
  --mw-muted: #4c685d;
  --mw-green: #185b48;
  --mw-line: #d6dfd2;
  --mw-paper: #fffdf7;
  --mw-ui: "Inter","Readex Pro",system-ui,sans-serif;
  box-sizing: border-box;
  width: min(43rem,calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 1.8rem;
  background: var(--mw-paper);
  color: var(--mw-ink);
  box-shadow: 0 1rem 5rem #14372c24;
  text-align: start;
  font: 400 1rem/1.55 var(--mw-ui);
  overflow: hidden;
}
.mw-dialog:not([open]) { display: none }
.mw-dialog[lang=ar] { --mw-ui: "Readex Pro","Noto Sans Arabic",Tahoma,sans-serif; line-height: 1.8 }
.mw-dialog *, .mw-dialog *::before, .mw-dialog *::after { box-sizing: border-box }
.mw-dialog::backdrop, .mw-backdrop { background: #eaf0e8f5 }
.mw-dialog .mw-content { min-height: 0; padding: .5rem clamp(1.2rem,6vw,2.25rem) 1.1rem; overflow-y: auto; overscroll-behavior: contain }
.mw-topline, .mw-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex: none;
  padding: .65rem clamp(1.2rem,6vw,2.25rem);
}
.mw-wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .84rem }
.mw-wordmark svg { width: 1.65rem; height: 1.65rem; color: var(--mw-green) }
.mw-dialog button, .mw-dialog summary { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation }
.mw-dialog button { min-height: 44px; min-width: 44px; text-align: start; border: 0; background: none }
.mw-dialog .mw-skip, .mw-dialog .mw-secondary { padding: .4rem .3rem; color: var(--mw-muted); font-size: .82rem; text-underline-offset: .23em }
.mw-dialog .mw-skip:hover, .mw-dialog .mw-secondary:hover { text-decoration: underline }
.mw-heading { position: relative; display: grid; grid-template-columns: minmax(0,1fr) clamp(4.5rem,16vw,9.5rem); align-items: center; gap: 1rem; padding: .3rem 0 1.25rem }
.mw-heading h1 { margin: .2rem 0 .4rem; max-width: 25ch; font: 660 clamp(1.5rem,4.3vw,2.2rem)/1.18 var(--mw-ui); color: var(--mw-ink); text-wrap: balance }
.mw-dialog[lang=ar] .mw-heading h1 { line-height: 1.45 }
.mw-heading p { margin: 0; color: var(--mw-muted); font-size: .91rem }
.mw-heading .mw-eyebrow { font-weight: 650; font-size: .78rem; color: var(--mw-green) }
.mw-heading img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 47% 53% / 49% 44% 56% 51% }
.mw-options { display: grid; gap: 1rem }
.mw-options fieldset { min-width: 0; border: 0; padding: 0; margin: 0 }
.mw-options legend { margin: 0 0 .4rem; padding: 0; font-weight: 650; font-size: .94rem }
.mw-languages, .mw-modes { display: inline-flex; align-items: center; gap: .2rem; max-width: 100%; padding: 3px; background: #eef2e9; border-radius: 2rem }
.mw-languages button, .mw-modes button { text-align: center; padding: .4rem 1.15rem; border-radius: 2rem; font-size: .88rem; font-weight: 550 }
.mw-languages button[lang=ar] { font-family: "Readex Pro","Noto Sans Arabic",Tahoma,sans-serif }
.mw-languages button[aria-pressed=true], .mw-modes button[aria-pressed=true] { background: var(--mw-green); color: white }
.mw-ages, .mw-introduction { display: grid }
.mw-ages button, .mw-introduction .mw-activity {
  width: 100%; display: flex; align-items: center; gap: .75rem; padding: .6rem .35rem;
  border-radius: 0; border-block-end: 1px solid var(--mw-line); line-height: 1.45;
}
.mw-dialog[lang=ar] :is(.mw-ages,.mw-introduction) button { line-height: 1.75 }
.mw-choice-icon,.mw-intro-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--mw-green) }
.mw-choice-icon svg { width: 1.4rem; height: 1.4rem }
.mw-age-name { font-weight: 650; font-size: .96rem }
.mw-ages small { color: var(--mw-muted); font-size: .8rem }
.mw-check { margin-inline-start: auto; width: 1.12rem; height: 1.12rem; border-radius: 50%; border: 1px solid #84988c; flex: none }
.mw-ages button[aria-pressed=true] .mw-check { background: var(--mw-green); border: 0; display: grid; place-items: center }
.mw-ages button[aria-pressed=true] .mw-check::after { content: ""; width: .38rem; height: .62rem; transform: translateY(-1px) rotate(45deg); border: solid white; border-width: 0 2px 2px 0 }
.mw-defaults { font-size: .85rem; color: var(--mw-muted) }
.mw-defaults summary { min-height: 44px; align-content: center; padding: .6rem 0; font-weight: 550 }
.mw-defaults fieldset { margin: .3rem 0 .6rem }
.mw-research { display: flex; min-height: 44px; align-items: center; gap: .65rem; font-size: .85rem }
.mw-research input { width: 1.22rem; height: 1.22rem; flex: none; margin: 0; accent-color: var(--mw-green) }
.mw-intro-icon { width: 2.35rem; height: 2.35rem; background: #eaf0e4; border-radius: 50% }
.mw-intro-icon svg { width: 1.28rem; height: 1.28rem }
.mw-introduction .mw-activity { padding-block: .8rem }
.mw-activity strong, .mw-activity small { display: block }
.mw-activity strong { font-size: 1rem }
.mw-activity small { margin-top: .17rem; color: var(--mw-muted); font-size: .82rem }
.mw-arrow { margin-inline-start: auto; font-size: 1.2rem; flex: none; color: var(--mw-green) }
.mw-dialog button:is(.mw-activity,[data-mw-age]):hover { background: #eef3e9 }
.mw-footer { padding-block: .8rem; background: var(--mw-paper); border-block-start: 1px solid var(--mw-line) }
.mw-stage-count { flex: none; color: var(--mw-muted); font-size: .76rem }
.mw-footer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .6rem }
.mw-footer .mw-primary { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; background: var(--mw-green); color: white; border-radius: 2rem; padding: .65rem 1.28rem; font-size: .88rem; font-weight: 650; text-align: center }
.mw-footer .mw-primary:hover { background: #104534 }
.mw-status { margin: .75rem 0 0; font-size: .84rem; color: #882d23 }
.mw-status:empty { display: none }
.mw-dialog [tabindex="-1"]:focus { outline: none }
.mw-dialog :is(button,input,summary):focus-visible { outline: 3px solid #996e24; outline-offset: 1px }
.mw-dialog :is(button,input):disabled { opacity: .6; cursor: wait }
.mw-backdrop { position: fixed; inset: 0; z-index: 3999 }
.mw-dialog.mw-fallback { position: fixed; inset: 0; z-index: 4000; height: fit-content }
@media (max-width: 600px) {
  .mw-dialog { width: 100%; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border-radius: 0 }
  .mw-dialog.mw-fallback { height: 100dvh }
  .mw-content { flex: 1 }
  .mw-topline { padding-top: max(.45rem,env(safe-area-inset-top)) }
  .mw-footer { padding-bottom: max(.8rem,env(safe-area-inset-bottom)) }
  .mw-heading { grid-template-columns: minmax(0,1fr) 4.5rem; gap: .6rem; padding: .3rem 0 1rem }
  .mw-dialog .mw-skip { font-size: .78rem }
}
@media (max-width: 370px) {
  .mw-heading { grid-template-columns: minmax(0,1fr) 3.5rem }
  .mw-footer { gap: .25rem }
  .mw-footer-actions { gap: .32rem }
  .mw-footer .mw-primary { gap: .35rem; padding-inline: .8rem }
}
@media print { .mw-dialog,.mw-backdrop { display: none!important } }

.mw-dialog .mw-heading { grid-template-columns:minmax(0,1fr); }
.mw-dialog [data-mw-age] { position:relative; min-inline-size:0; }
.mw-ages button .mw-age-name { min-inline-size:0; }
.mw-ages button small { white-space:nowrap; }
.mw-dialog .mw-footer-actions { margin-inline-start:auto; }
body.dark .mw-dialog {
 --mw-paper:var(--panel,#25302c); --mw-green:#9bd4b6; --mw-ink:var(--ink,#edf7ef);
 --mw-muted:var(--muted,#c3d4c6); --mw-line:var(--line,#44564c);
}
body.dark .mw-dialog :is(.mw-languages,.mw-modes) { background:#35453d; }
body.dark .mw-dialog :is(.mw-primary,.mw-languages button[aria-pressed=true],.mw-modes button[aria-pressed=true]) { color:#14291e; background:var(--mw-green); }
body.dark .mw-ages button[aria-pressed=true] .mw-check::after { border-color:#14291e; }
body.dark .mw-intro-icon { background:#33483b; }
body.dark .mw-dialog button:is(.mw-activity,[data-mw-age]):hover { background:#394a40; }


/* /calm-dashboard.css */
/* A quiet home: two clear actions, with secondary material available on demand. */
.calm-dashboard{max-width:1020px;margin-inline:auto}
.calm-dashboard .today-heading{margin-bottom:26px}
.calm-dashboard .today-heading h1{font-size:clamp(29px,3.3vw,42px);letter-spacing:-.035em;margin-block:10px}
.calm-dashboard .today-heading p{font-size:16px;max-width:48ch;color:var(--muted)}
.calm-dashboard .studio-home-grid{gap:20px;margin-bottom:28px}
.calm-dashboard .continue-card,.calm-dashboard .home-learning-entry{border-radius:24px;padding:28px;box-shadow:none;min-height:245px}
.calm-dashboard .continue-card{border:1px solid var(--line);background:var(--panel)}
.calm-dashboard .home-learning-entry{background:color-mix(in srgb,var(--green) 7%,var(--panel));border:1px solid var(--line)}
.calm-dashboard .home-learning-entry h2{font-size:25px;line-height:1.4}
.calm-dashboard .home-learn-actions{display:flex;align-items:flex-start;flex-direction:column;gap:13px}
.home-kids-link{appearance:none;border:0;background:transparent;padding:8px 0;color:var(--green);font:600 14px/1.5 var(--font-ui);text-align:start;cursor:pointer;min-height:44px}
.home-disclosure{border:1px solid var(--line);border-radius:18px;background:var(--panel);margin-block:12px;overflow:hidden}
.home-disclosure>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:none;padding:19px 23px;min-height:80px}
.home-disclosure>summary::-webkit-details-marker{display:none}
.home-disclosure-copy{display:grid;gap:4px;min-width:0}
.home-disclosure-copy strong{font-size:16px;line-height:1.5;font-weight:700;color:var(--ink)}
.home-disclosure-copy small{font-size:13px;line-height:1.65;color:var(--muted)}
.home-disclosure-chevron{display:grid;place-items:center;border-radius:50%;width:30px;height:30px;flex:none;background:var(--pale);font-size:24px;line-height:1;color:var(--green);transition:transform .15s}
.home-disclosure[open]>summary{border-bottom:1px solid var(--line)}
.home-disclosure[open] .home-disclosure-chevron{transform:rotate(180deg)}
.home-disclosure-body{padding:20px 23px}
.home-disclosure-body .home-sources-strip{border:0;padding:0;margin:0;background:none;box-shadow:none}
.home-disclosure-body .home-workbench{margin:0;border:0}
.home-extra-learning{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.home-disclosure-body .journey-home{margin:0}
.home-disclosure-body .home-sources-head{gap:16px;flex-wrap:wrap}
.home-install-slot .pwa-home-card{margin-top:26px;padding:14px 18px;background:transparent;box-shadow:none;border:0;border-top:1px solid var(--line);border-radius:0}
.home-install-slot .pwa-home-card h2{font-size:14px}
.home-install-slot .pwa-home-card p{font-size:12px}
.calm-dashboard .quiet-footer{margin-top:18px}
.calm-dashboard :is(a,button,summary):focus-visible{outline:3px solid var(--focus-ring,#805400);outline-offset:3px}
[dir=rtl] .calm-dashboard .today-heading h1{letter-spacing:0;line-height:1.55}
/* Animal guides accompany choices; they never replace real Arabic letterforms. */
.children-home-v56 .children-welcome-v54{background:linear-gradient(115deg,#f3f8e8,#fff4df);border:1px solid #e3e7cf;border-radius:28px;padding:24px 30px;grid-template-columns:minmax(0,1fr) 190px;margin-bottom:24px}
.children-home-v56 .children-welcome-v54 h1{font-size:clamp(30px,3.7vw,42px);max-width:560px}
.children-home-v56 .children-welcome-v54>img{width:190px;height:190px;border-radius:50%;mix-blend-mode:multiply}
.children-hero-start{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:14px 22px;margin-top:18px;background:#176453;color:#fff;border-radius:16px;box-shadow:0 4px 0 #0d493d;text-decoration:none;font-size:16px;font-weight:750;min-height:52px}
.children-home-v56 .children-path{border-width:1px;box-shadow:0 4px 0 color-mix(in srgb,var(--path-accent) 18%,transparent)}
.children-home-v56 .children-path>img{aspect-ratio:2/1;object-fit:cover}
.children-home-v56 .children-path-copy{grid-template-columns:44px minmax(0,1fr);padding:16px 17px 12px;gap:4px 10px}
.children-home-v56 .children-path-step{width:44px;height:44px;grid-row:1/3;background:var(--path-paper);overflow:hidden}
.children-path-step img{display:block;width:100%;height:100%;object-fit:cover}
.children-home-v56 .children-path-copy strong{font-size:20px}
.children-home-v56 .children-path-copy small{font-size:13px}
.children-home-v56 .children-path-arrow{width:32px;height:32px;font-size:21px;margin-bottom:14px}
.children-friends{border:1px solid var(--line);border-radius:18px;background:var(--panel);margin:22px 0 14px}
.children-friends>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font:700 15px/1.6 var(--font-ui);list-style:none;padding:17px 20px;min-height:58px}
.children-friends>summary::-webkit-details-marker{display:none}
.children-friends>summary>span:last-child{color:var(--green);font-size:23px}
.children-friends[open]>summary>span:last-child{transform:rotate(45deg)}
.children-friends-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 20px 20px}
.children-friend{min-width:0;text-align:center;border-radius:18px;background:#f8f4ed;padding:12px}
.children-friend img{display:block;max-width:100%;width:120px;height:120px;object-fit:contain;margin:auto;border-radius:50%;mix-blend-mode:multiply}
.children-friend strong{display:block;margin-top:8px;font-size:17px;color:#243d40}
.children-friend p{font-size:13px;line-height:1.65;color:#4b6068;margin:5px 0}
.children-home-v56 .children-grownups [data-home-install]{display:block;padding:0}
.children-grownups .pwa-home-card{margin:0 0 16px;box-shadow:none}
.dark .children-home-v56 .children-welcome-v54{background:linear-gradient(115deg,#25392d,#3c3428);border-color:var(--line)}
.dark .children-home-v56 .children-welcome-v54>img{mix-blend-mode:normal}
.dark .children-friend{background:#f4ede2}
@media(max-width:1000px){.children-home-v56 .children-path>img{aspect-ratio:auto;object-fit:cover}.children-home-v56 .children-path-copy{grid-template-columns:44px minmax(0,1fr)}.children-home-v56 .children-path-arrow{margin:0}}
@media(max-width:700px){
 .calm-dashboard .today-heading{margin-bottom:20px}.calm-dashboard .today-heading h1{font-size:30px}
 .calm-dashboard .studio-home-grid{gap:14px;margin-bottom:22px}
 .calm-dashboard .continue-card,.calm-dashboard .home-learning-entry{padding:22px;min-height:0;border-radius:20px}
 .home-disclosure>summary{padding:16px;min-height:77px}.home-disclosure-body{padding:16px}.home-disclosure-copy small{font-size:12px}
 .home-disclosure-body .home-workbench{display:grid;grid-template-columns:1fr}
 .children-home-v56 .children-welcome-v54{grid-template-columns:minmax(0,1fr) 100px;gap:8px;padding:20px;border-radius:23px}
 .children-home-v56 .children-welcome-v54 h1{font-size:28px}.children-home-v56 .children-welcome-v54>img{width:100px;height:124px;object-fit:contain;border-radius:24px}
 .children-home-v56 .children-welcome-v54 p{font-size:14px;line-height:1.7}
 .children-hero-start{font-size:14px;gap:10px;padding:12px 15px;margin-top:14px;min-height:48px}
 .children-home-v56 .children-path{min-height:130px;grid-template-columns:108px minmax(0,1fr) 32px}
 .children-home-v56 .children-path>img{width:108px;min-height:130px}
 .children-home-v56 .children-path-copy{grid-template-columns:minmax(0,1fr);padding:13px 10px;gap:5px}
 .children-home-v56 .children-path-step{display:none}.children-home-v56 .children-path-copy small{grid-column:1;font-size:13px}
 .children-home-v56 .children-path-copy strong{font-size:19px}.children-home-v56 .children-path-arrow{width:26px;height:26px}
 .children-friends-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 14px}.children-friend img{width:95px;height:95px}
}
@media(max-width:370px){.children-home-v56 .children-welcome-v54{padding:16px;grid-template-columns:minmax(0,1fr) 76px}.children-home-v56 .children-welcome-v54>img{width:76px}.children-home-v56 .children-welcome-v54 h1{font-size:25px}.children-hero-start{font-size:13px;padding:12px}.children-home-v56 .children-path{grid-template-columns:92px minmax(0,1fr) 27px}.children-home-v56 .children-path>img{width:92px}.children-home-v56 .children-path-copy strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.home-disclosure-chevron{transition:none}}
.home-workbench>a{text-decoration:none}
.home-workbench>a:hover strong,.home-workbench>a:focus-visible strong{text-decoration:underline}

/* A single daily action, then free exploration. */
.daily-home-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 24px}
.daily-home-links a{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);text-decoration:none;font-size:14px;font-weight:650}
.daily-home-links a:hover{border-color:var(--green);background:var(--pale)}
.daily-home-links svg{width:18px;height:18px;stroke:currentColor;fill:none;flex:none}
.daily-youth-home .today-heading{margin-bottom:18px}
.daily-youth-home .home-disclosure .ys-heading{display:none}
.daily-youth-home .home-disclosure .youth-studio{max-width:none;margin:0}
.children-home-v56 .daily-practice{margin-block:20px 25px}
#content>.daily-settings-fields{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:22px;margin-top:22px}
@media(max-width:600px){.daily-home-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.daily-home-links a{flex-direction:column;text-align:center;padding:11px 5px;font-size:14px;line-height:1.4}.daily-home-links svg{width:20px;height:20px}.daily-youth-home .today-heading h1{font-size:28px}.daily-youth-home .today-heading p{font-size:16px}}


/* /adult-fonts.css */
/* Local copies of the existing adult interface fonts. See fonts/adult-fonts-source.json and included OFL licenses. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/Inter-400.ttf") format("truetype")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/Inter-500.ttf") format("truetype")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/Inter-600.ttf") format("truetype")}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/Inter-700.ttf") format("truetype")}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/NotoSansArabic-400.ttf") format("truetype")}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/NotoSansArabic-500.ttf") format("truetype")}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/NotoSansArabic-600.ttf") format("truetype")}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/NotoSansArabic-700.ttf") format("truetype")}


/* /adult-typography.css */
/* Adult interface typography. Load after component styles.
 * Inter and Readex Pro serve English and Arabic interface text.
 * The bundled Noto Sans Arabic face provides fallback coverage.
 * Quran, source passages, Arabic teaching words and reader size/font variables
 * are intentionally outside these rules. No font shorthand resets their sizes.
 */
@font-face {
  font-family:"Readex Pro";
  src:url('/fonts/ReadexPro-Variable.ttf') format('truetype');
  font-style:normal;
  font-weight:160 700;
  font-display:swap;
}

body:not([data-profile="kids"]) {
  --adult-ui-en:"Inter","Readex Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --adult-ui-ar:"Readex Pro","Noto Sans Arabic",Tahoma,Arial,sans-serif;
  --font-ui:var(--adult-ui-en);
  --font-arabic-ui:var(--adult-ui-ar);
  --sans:var(--font-ui);
  font-family:var(--font-ui);
  font-weight:400;
}
html[lang="ar"] body:not([data-profile="kids"]) {
  --font-ui:var(--adult-ui-ar);
}

/* Earlier learning/Hifdh components create their own local font tokens.
 * Resolve those UI-only islands to the same adult language-specific token. */
body:not([data-profile="kids"]) :is(
  .hifdh-reader-tools,.hifdh-verse-study,.hifdh-listen-first-row,
  .hifdh-ayah-toggle,.hifdh-reciter,.hifdh-audio-status,.hifdh-ayah .verse-top
) {
  --font-ui:inherit;
  font-family:var(--font-ui);
}

/* Ordinary interface containers with older serif/Manrope/DM Sans overrides.
 * Their original Arabic passages already have dedicated explicit font rules. */
html body:not([data-profile="kids"]) :is(
  .english-tafsir,.journey-page,.journey-home,.journey-reader-timer,
  .reading-planner,.rp-dialog,.rp-reader-save,.learn-library,.lesson-dialog,
  .foundation-path,.study-overlay,.tafsir-inline,.reciters-library,
  .studio-root,.scripture-root,.workstation,.offline-library,.mushaf-beta
) {
  font-family:var(--font-ui);
}

/* Named interface headings only: no generic h1/button/p descendant sweep. */
html body:not([data-profile="kids"]) :is(
  .page-title,.today-heading h1,.page-heading h1,.reader-header h1,
  .reader-surah-select h1,.companion-header h2,.mushaf-command h2,
  .continue-copy h2,.continue-card h2,.home-learning-entry h2,
  .home-learn-prompt h2,.home-welcome h1,.sanctuary-copy h2,
  .home-sources-head h2,.study-path h2,.section-head h2,.library-section h2,
  .home-surahs h2,.daily-panel h2,.page-browser h2,.options-title strong,
  .pr-hero h1,.et-hero h1,.et-heading h2,.of-heading h1,
  .offline-library h2,.dua-heading h1,.dua-reader-head h2,
  .qd-heading h1,.qd-card-title,.cal-heading h1,.cal-toolbar h1,.cal-selection h2,
  .mem-heading h1,.mem-complete h2,.workbench-heading h1,
  .toolkit-heading h1,.edition-heading h1,.discovery-header h1,
  .discovery-card h2,.discovery-event h2,.academy-header h1,
  .learning-root h1,.learning-root h2,.learning-root h3,.sp-result h2,
  .studio-heading h1,.studio-case h2,.studio-case h3,.scripture-heading h1,
  .study-top h2,.tafsir-book-heading h3,.study-source-title h3,.study-source-title h4,
  .reciters-library h1,.reciters-library h2,.journey-today-copy h2,.journey-card h2,
  .learn-feature h2,.learn-audiobook-feature h2,.lecture-card-text strong,
  .lesson-top h2,.grammar-heading h3,.beta-hero h1,.beta-showcase h2,
  .beta-card h3,.beta-persona-window h4,.beta-modal h2
):not(:where(
  .quests-root *,.children-home *,.children-reading-path *,
  .children-trail *,.little-reader-root *,.baraim-activity *
)) {
  font-family:var(--font-ui);
  font-weight:700;
  letter-spacing:-.015em;
}
html[lang="ar"] body:not([data-profile="kids"]) :is(
  .page-title,.today-heading h1,.page-heading h1,.reader-header h1,
  .reader-surah-select h1,.companion-header h2,.mushaf-command h2,
  .continue-copy h2,.continue-card h2,.home-learning-entry h2,
  .home-learn-prompt h2,.home-welcome h1,.sanctuary-copy h2,
  .home-sources-head h2,.study-path h2,.section-head h2,.library-section h2,
  .home-surahs h2,.daily-panel h2,.page-browser h2,.options-title strong,
  .pr-hero h1,.et-hero h1,.et-heading h2,.of-heading h1,
  .offline-library h2,.dua-heading h1,.dua-reader-head h2,
  .qd-heading h1,.qd-card-title,.cal-heading h1,.cal-toolbar h1,.cal-selection h2,
  .mem-heading h1,.mem-complete h2,.workbench-heading h1,
  .toolkit-heading h1,.edition-heading h1,.discovery-header h1,
  .discovery-card h2,.discovery-event h2,.academy-header h1,
  .learning-root h1,.learning-root h2,.learning-root h3,.sp-result h2,
  .studio-heading h1,.studio-case h2,.studio-case h3,.scripture-heading h1,
  .study-top h2,.tafsir-book-heading h3,.study-source-title h3,.study-source-title h4,
  .reciters-library h1,.reciters-library h2,.journey-today-copy h2,.journey-card h2,
  .learn-feature h2,.learn-audiobook-feature h2,.lecture-card-text strong,
  .lesson-top h2,.grammar-heading h3,.beta-hero h1,.beta-showcase h2,
  .beta-card h3,.beta-persona-window h4,.beta-modal h2
):not(:where(
  .quests-root *,.children-home *,.children-reading-path *,
  .children-trail *,.little-reader-root *,.baraim-activity *
)) {
  letter-spacing:normal;
}

/* Explicit navigation/actions: Arabic word buttons and source quotations are
 * not selected. Existing touch sizes, reader sizes and component heights stay. */
html body:not([data-profile="kids"]) :is(
  .top-brand,.top-brand span,.side-note strong,.study-tab,
  .reader-top-options,.journey-button,.journey-text-button,
  .tafsir-priority-tabs button,.tafsir-source-tab>span,.tafsir-more-select select,
  .cal-dua-links>button,.studio-copy-fallback textarea,.studio-original summary bdi,
  .studio-progress b,.studio-method-label,.scripture-eyebrow,.rc-badge,
  .mem-kicker,.workbench-kicker,.pr-eyebrow,.et-eyebrow,.course-eyebrow,
  .source-tile .source-tile-open,.integrated-footer>span,
  .lecture-number,.learning-completed strong,.learning-intro-counts b,
  .learning-prompt:not([lang="ar"]),.practice-card strong,.library-book strong,
  .daily-count strong,.juz-grid strong,.beta-english-lockup,.beta-stats strong
):not(:where(
  .quests-root *,.children-home *,.children-reading-path *,
  .children-trail *,.little-reader-root *,.baraim-activity *
)) {
  font-family:var(--font-ui);
  font-weight:600;
}
/* This one legacy component hard-codes its entire font with !important.
 * Override only the two affected properties, rather than resetting its size. */
body:not([data-profile="kids"]) .studio-root .studio-kicker {
  font-family:var(--font-ui)!important;
  font-weight:600!important;
}
html[lang="ar"] body:not([data-profile="kids"]) :is(
  .studio-kicker,.studio-method-label,.scripture-eyebrow,.rc-badge,
  .mem-kicker,.workbench-kicker,.pr-eyebrow,.et-eyebrow,.course-eyebrow
) {
  letter-spacing:normal;
}

/* Standalone workbench: the root owns interface type; .wb-quran and
 * .wb-arabic-source keep their edition/Amiri faces, sizes and line heights. */
html body:not([data-profile="kids"]) .wb-shell {
  --fontui:var(--font-ui);
  font-family:var(--font-ui);
  font-weight:400;
}
html body:not([data-profile="kids"]) .wb-shell :is(
  .wb-heading h1,.wb-source-header h2,.wb-topbar,.wb-source-choice,
  .wb-catalogue-choice,.wb-jump summary,.wb-passage-label,.wb-collection-link,
  .wb-expand-passage,.wb-match-guide button
) {
  font-family:var(--font-ui);
}
html body:not([data-profile="kids"]) .wb-shell :is(.wb-heading h1,.wb-source-header h2) {
  font-weight:700;
}

/* Standalone Bayan inserts its component stylesheet after the document head.
 * Root/class specificity wins without overriding its Arabic word controls. */
html body:not([data-profile="kids"]) .bayan-app {
  font-family:var(--font-ui);
  font-weight:400;
}
/* React roots also carry the locale; honour it before/without the effect that
 * updates the document language (and if either studio is embedded later). */
html body:not([data-profile="kids"]) :is(.wb-shell[lang="ar"],.bayan-app[lang="ar"]) {
  --font-ui:var(--adult-ui-ar);
}
html body:not([data-profile="kids"]) .bayan-app :is(
  .bayan-header h1,.bayan-header h1 span,.bayan-header h2,.verse-heading h2,
  .rhetoric-grid h3,.quiz-panel h2,.live-check h3,.reading-aid p,
  .small-button,.language-toggle,.text-button,.lesson-button,.inspector-tabs button,
  .quiz-options button,.source-panel summary,.bayan-footer
) {
  font-family:var(--font-ui);
}
html body:not([data-profile="kids"]) .bayan-app :is(
  .bayan-header h1,.bayan-header h2,.verse-heading h2,.rhetoric-grid h3,
  .quiz-panel h2,.live-check h3
) {
  font-weight:700;
}
html body:not([data-profile="kids"]) .bayan-app[lang="ar"] :is(
  .bayan-header h1,.bayan-header h2,.verse-heading h2,.rhetoric-grid h3,
  .quiz-panel h2,.live-check h3
) {
  letter-spacing:normal;
}
html body:not([data-profile="kids"]) .wb-shell[lang="ar"] :is(.wb-heading h1,.wb-source-header h2) {
  letter-spacing:normal;
}

/* Preservation guard only: a child activity can be opened from an adult route.
 * Keep its existing rounded Readex interface instead of inheriting adult Inter.
 * Dedicated letter/Quran fonts in those activities still win on their elements. */
body:not([data-profile="kids"]) :is(
  .quests-root,.children-home,.children-reading-path,
  .children-trail,.little-reader-root,.baraim-activity
) {
  --font-ui:"Readex Pro","Noto Sans Arabic",system-ui,sans-serif;
  font-family:var(--font-ui);
}


/* /development.css */
/* Scoped, mobile-first development evidence and feedback. */
.development-hub{--dev-ink:#18392e;--dev-muted:#52665d;--dev-paper:#f8f7f0;--dev-card:#fffefa;--dev-line:#cdd9d1;--dev-green:#176345;--dev-pale:#eaf2e8;--dev-gold:#7b5c18;--dev-warm:#f7efd9;--dev-error:#9b2e37;color:var(--dev-ink);font-family:var(--font-ui,"Readex Pro",system-ui,sans-serif);font-size:15px;line-height:1.75;max-width:1080px;margin:0 auto;padding:20px 0 48px;min-width:0;overflow-wrap:anywhere}
body.dark .development-hub,body[data-theme="dark"] .development-hub{--dev-ink:#eff5e9;--dev-muted:#c0cec4;--dev-paper:#12271f;--dev-card:#193229;--dev-line:#476152;--dev-green:#b3dfb9;--dev-pale:#244235;--dev-gold:#edcd80;--dev-warm:#393424;--dev-error:#ffb5b8}
.development-hub *{box-sizing:border-box}.development-hub [hidden]{display:none!important}.development-hub :is(h1,h2,h3,h4,p){margin:0}.development-hub h1{font-size:clamp(27px,4vw,38px);line-height:1.3;font-weight:750;letter-spacing:-.025em;margin:6px 0 12px}.development-hub h2{font-size:21px;line-height:1.5;font-weight:750}.development-hub h3{font-size:16px;line-height:1.6}.development-hub h4{font-size:14px;line-height:1.7;margin:16px 0 5px}.development-hub[dir=rtl] :is(h1,h2,h3){letter-spacing:0;line-height:1.65}.development-hub a{color:var(--dev-green);text-underline-offset:3px}.development-hub :is(button,select,textarea){font:inherit;color:var(--dev-ink)}.development-hub :is(a,button,summary,select,textarea):focus-visible{outline:3px solid var(--dev-gold);outline-offset:4px}.development-hub :is(h1,h2):focus{outline:none}.development-hub .dev-icon{width:21px;height:21px;flex:none;vertical-align:middle}.dev-header{padding:0 3px 25px}.dev-eyebrow{font-size:11px;font-weight:750;letter-spacing:.11em;color:var(--dev-gold)}[dir=rtl] .dev-eyebrow{letter-spacing:0}.dev-header>p{max-width:65ch;color:var(--dev-muted);font-size:16px}.dev-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.dev-jump a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 13px;border:1px solid var(--dev-line);border-radius:999px;font-size:13px;font-weight:650;text-decoration:none;background:var(--dev-card)}.dev-jump a:hover{background:var(--dev-pale)}.dev-card{padding:24px;border:1px solid var(--dev-line);border-radius:20px;background:var(--dev-card)}.dev-release{background:linear-gradient(130deg,var(--dev-pale),var(--dev-card));border-top:4px solid var(--dev-green);scroll-margin-top:24px}.dev-section-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}.dev-section-title>.dev-icon{color:var(--dev-green);width:24px;height:24px}.dev-version{margin-inline-start:auto;padding:4px 10px;border:1px solid var(--dev-line);border-radius:8px;font-size:12px;font-weight:700;background:var(--dev-card)}.dev-release-summary{font-size:16px;max-width:75ch}.dev-highlights{list-style:none;margin:18px 0;padding:0;display:grid;gap:11px}.dev-highlights li{display:flex;align-items:flex-start;gap:10px}.dev-highlights .dev-icon{color:var(--dev-green);width:18px;height:18px;margin-top:4px}.dev-small{font-size:13px;line-height:1.75;color:var(--dev-muted)}.dev-technical{margin-top:12px}.dev-technical summary{font-size:13px;min-height:44px;align-content:center;cursor:pointer;color:var(--dev-muted)}.dev-technical code{display:block;font-size:12px;overflow-wrap:anywhere;padding:8px 10px;background:var(--dev-paper);border-radius:8px}.dev-section{margin-top:32px;scroll-margin-top:24px}.dev-section-note{color:var(--dev-muted);max-width:80ch;margin:6px 0 18px!important}.dev-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}.dev-metric{padding:18px;border:1px solid var(--dev-line);border-radius:16px;background:var(--dev-card)}.dev-metric h3{color:var(--dev-muted);font-size:13px;font-weight:650}.dev-measure{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:6px 0 10px!important}.dev-measure strong{font-size:29px;line-height:1.35;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.dev-measure span{font-size:12px;color:var(--dev-muted)}.dev-metric progress{display:block;width:100%;height:7px;border:0;border-radius:99px;overflow:hidden;accent-color:var(--dev-green);background:var(--dev-pale);margin:12px 0}.dev-metric progress::-webkit-progress-bar{background:var(--dev-pale);border-radius:99px}.dev-metric progress::-webkit-progress-value{background:var(--dev-green);border-radius:99px}.dev-metric progress::-moz-progress-bar{background:var(--dev-green);border-radius:99px}.dev-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 8px}.dev-filters label,.dev-feedback form>label{display:block;font-size:13px;font-weight:700}.development-hub select,.development-hub textarea{display:block;width:100%;min-width:0;border:1px solid var(--dev-line);border-radius:10px;background:var(--dev-card);font-size:16px;padding:10px 12px;min-height:46px;margin-top:6px}.dev-components{display:grid;gap:10px;margin-top:12px}.dev-component{border:1px solid var(--dev-line);border-radius:16px;background:var(--dev-card);overflow:hidden}.dev-component>summary{display:flex;align-items:center;gap:10px;min-height:72px;padding:16px;cursor:pointer;list-style:none}.dev-component>summary::-webkit-details-marker,.dev-task>summary::-webkit-details-marker{display:none}.dev-component-name{font-size:16px;font-weight:750;flex:1;min-width:0}.dev-badge{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:3px 9px;border:1px solid var(--dev-line);border-radius:99px;background:var(--dev-paper);font-size:11px;line-height:1.7;font-weight:700;white-space:normal;color:var(--dev-muted)}.dev-status-available{background:var(--dev-pale);color:var(--dev-green)}.dev-status-partial,.dev-status-setup{background:var(--dev-warm);color:var(--dev-gold)}.dev-chevron{font-size:22px;flex:none;color:var(--dev-green)}.dev-component[open]>summary{border-bottom:1px solid var(--dev-line);background:var(--dev-pale)}.dev-component[open] .dev-chevron{transform:rotate(180deg)}.dev-component-body{padding:18px}.dev-component-body>p{color:var(--dev-muted)}.dev-inline-metrics{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.dev-inline-metrics>span{border:1px solid var(--dev-line);border-radius:8px;padding:6px 9px;font-size:12px}.dev-inline-metrics strong{color:var(--dev-green)}.dev-tasks{display:grid;gap:9px;margin-top:18px}.dev-task{border:1px solid var(--dev-line);border-radius:10px}.dev-task>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:52px;padding:12px;font-size:14px;font-weight:650;cursor:pointer}.dev-task>summary:before{content:'+';color:var(--dev-green);font-size:20px;flex:none}.dev-task>summary>span:first-child{flex:1;min-width:0}.dev-task[open]>summary:before{content:'−'}.dev-task-body{border-top:1px solid var(--dev-line);padding:14px}.dev-task-body>p{color:var(--dev-muted);font-size:14px}.dev-task-body .dev-button{margin-top:16px}.dev-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 14px;border:1px solid var(--dev-line);border-radius:10px;background:var(--dev-card);color:var(--dev-green)!important;font-size:14px!important;font-weight:700!important;line-height:1.6;text-decoration:none;cursor:pointer;text-align:center}.dev-button:hover{background:var(--dev-pale)}.dev-primary{background:var(--dev-green);color:var(--dev-card)!important;border-color:var(--dev-green)}.dev-primary:hover{filter:brightness(.93);background:var(--dev-green)}.dev-button:disabled{background:var(--dev-paper);color:var(--dev-muted)!important;border-color:var(--dev-line);cursor:not-allowed;filter:none}.dev-text-button{border:0;background:none;color:var(--dev-green)!important;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:6px 0;cursor:pointer;font-size:14px!important}.dev-audio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dev-source-card{border:1px solid var(--dev-line);border-radius:16px;padding:18px;background:var(--dev-card)}.dev-source-card h3{display:flex;align-items:center;gap:9px;margin-bottom:8px}.dev-source-card h3 .dev-icon{color:var(--dev-green)}.dev-source-card>p{font-size:14px;color:var(--dev-muted)}.dev-source-card dl{margin:16px 0 10px}.dev-source-card dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-top:1px solid var(--dev-line);font-size:13px}.dev-source-card dt{color:var(--dev-muted)}.dev-source-card dd{margin:0;font-weight:700;text-align:end;max-width:55%;font-variant-numeric:tabular-nums}.dev-sources{margin:25px 0;border-top:1px solid var(--dev-line);border-bottom:1px solid var(--dev-line)}.dev-sources>summary{display:flex;align-items:center;gap:9px;min-height:52px;padding:12px 2px;cursor:pointer;font-size:14px;font-weight:650}.dev-sources ul{margin:0 0 18px;padding-inline-start:24px;font-size:13px;line-height:1.8}.dev-sources li+li{margin-top:14px}.dev-sources li p{color:var(--dev-muted);margin-top:3px}.dev-feedback{margin-top:32px;scroll-margin-top:24px}.dev-feedback>p{color:var(--dev-muted)}.dev-service-state{border:1px solid var(--dev-line);border-radius:12px;background:var(--dev-paper);padding:14px;margin:18px 0;font-size:14px;color:var(--dev-muted)}.dev-service-state .dev-button{margin-top:12px}.dev-service-ready{display:flex;align-items:center;gap:8px;background:var(--dev-pale);color:var(--dev-green)}.dev-feedback form>label{margin-top:16px}.dev-feedback textarea{line-height:1.8;resize:vertical;min-height:160px}.dev-feedback #dev-privacy{margin-top:9px}.dev-feedback form>.dev-small{margin-top:7px}.dev-form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.dev-form-status,.dev-download-status{font-size:14px;line-height:1.8;margin-top:12px!important;color:var(--dev-green)}.dev-form-status[data-kind=error]{color:var(--dev-error)}.dev-form-status:empty,.dev-download-status:empty{display:none}.dev-loading{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.dev-empty{padding:18px;border:1px dashed var(--dev-line);border-radius:12px;color:var(--dev-muted)}
@media(max-width:600px){.development-hub{padding-top:12px;font-size:14px}.dev-card{padding:18px;border-radius:16px}.dev-header{padding-bottom:20px}.dev-header>p{font-size:15px}.development-hub h2{font-size:19px}.dev-audio-grid{grid-template-columns:1fr}.dev-component>summary{flex-wrap:wrap;gap:7px;padding:14px}.dev-component-name{flex-basis:calc(100% - 30px)}.dev-component>summary>.dev-badge{order:3}.dev-component>summary>.dev-chevron{margin-inline-start:auto}.dev-component-body{padding:14px}.dev-task>summary{flex-wrap:wrap;gap:8px}.dev-task>summary>.dev-badge{margin-inline-start:22px}.dev-task>summary>span:first-child{flex-basis:calc(100% - 40px)}.dev-section{margin-top:26px}.dev-jump{gap:7px}.dev-jump a{font-size:12px;padding:8px 10px}.dev-jump .dev-icon{width:18px;height:18px}.dev-filters{gap:9px}.dev-form-actions .dev-primary{width:100%}.dev-form-actions .dev-button:not(.dev-primary){flex:1;min-width:110px}.dev-version{margin-inline-start:34px}.dev-source-card{padding:16px}}
.development-hub :is(input,fieldset,legend){font:inherit}.dev-filters{display:block}.dev-filters fieldset,.dev-categories{min-width:0;border:0;margin:0;padding:0}.dev-filters fieldset+fieldset{margin-top:15px}.dev-filters legend,.dev-categories legend{font-size:13px;font-weight:700;margin-bottom:8px;padding:0}.dev-filter-list{display:flex;flex-wrap:wrap;gap:7px}.dev-filter-list button{min-height:44px;border:1px solid var(--dev-line);border-radius:9px;background:var(--dev-card);color:var(--dev-muted);font-size:12px;line-height:1.6;padding:8px 11px;cursor:pointer}.dev-filter-list button[aria-pressed=true]{background:var(--dev-green);color:var(--dev-card);border-color:var(--dev-green);font-weight:700}.dev-categories{margin-top:20px}.dev-categories>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dev-categories label{display:flex;align-items:center;gap:9px;min-height:50px;padding:10px 12px;border:1px solid var(--dev-line);border-radius:10px;background:var(--dev-card);font-size:13px;line-height:1.6;cursor:pointer}.dev-categories label:has(input:checked){border-color:var(--dev-green);background:var(--dev-pale);color:var(--dev-green)}.dev-categories input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--dev-green)}.dev-categories label:focus-within{outline:3px solid var(--dev-gold);outline-offset:2px}.dev-source-card>.dev-button{margin-top:12px}.development-hub input:focus-visible{outline:2px solid var(--dev-gold);outline-offset:3px}
@media(max-width:400px){.dev-categories>div{grid-template-columns:1fr}.dev-filter-list button{flex-grow:1;text-align:center}.dev-categories label{min-height:46px}}
@media(prefers-reduced-motion:reduce){.development-hub *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(forced-colors:active){.dev-badge,.dev-card,.dev-component,.dev-task,.dev-button{border-color:CanvasText}.dev-primary{color:ButtonText!important;background:ButtonFace}}

.development-entry{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:22px 0;padding:20px}.development-entry>div{flex:1 1 240px}.development-entry p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.8}.development-entry>a{display:inline-flex;gap:9px;align-items:center;min-height:48px;text-decoration:none}.development-entry svg{width:20px;height:20px}.dev-percent{display:block;font-size:12px;color:var(--dev-muted);text-align:end;font-variant-numeric:tabular-nums;margin-top:5px}.dev-previous{margin-top:16px;border-top:1px solid var(--dev-line);padding-top:8px}.dev-previous summary{min-height:44px;align-content:center;font-size:14px;cursor:pointer}.dev-previous li{font-size:14px;line-height:1.8;margin-top:8px}

/* Status pie: proportions count tracked tasks, never estimated total app completion. */
.dev-chart-layout{display:grid;grid-template-columns:minmax(160px,230px) minmax(0,1fr);align-items:center;gap:28px;margin:20px 0 16px}.dev-pie-figure{margin:0;text-align:center;min-width:0}.dev-pie{display:block;width:100%;max-width:220px;margin:0 auto;height:auto;overflow:visible}.dev-pie path,.dev-pie circle{stroke:var(--dev-card);stroke-width:2;stroke-linejoin:round}.dev-pie-figure figcaption{margin-top:8px;color:var(--dev-muted);font-size:13px}.dev-pie-figure figcaption strong{font-size:23px;color:var(--dev-ink);font-variant-numeric:tabular-nums}.dev-pie-available{fill:#24745c;background:#24745c}.dev-pie-partial{fill:#d2a44b;background:#d2a44b}.dev-pie-planned{fill:#6786ad;background:#6786ad}.dev-pie-setup{fill:#aa6c43;background:#aa6c43}.dev-pie-review{fill:#8d75a4;background:#8d75a4}.dev-chart-legend{display:grid;gap:6px;margin:0;padding:0;list-style:none;min-width:0}.dev-chart-legend button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--dev-line);border-radius:10px;background:var(--dev-card);font-size:13px;line-height:1.6;text-align:start;cursor:pointer}.dev-chart-legend button:hover,.dev-chart-legend button[aria-pressed=true]{background:var(--dev-pale);border-color:var(--dev-green)}.dev-chart-swatch{display:block;width:14px;height:14px;border-radius:4px;flex:none;border:1px solid var(--dev-line)}.dev-chart-name{flex:1;min-width:0;font-weight:650}.dev-chart-count{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.dev-chart-count>span{font-weight:400;color:var(--dev-muted)}
@media(max-width:600px){.dev-chart-layout{grid-template-columns:1fr;gap:18px}.dev-pie{max-width:190px}.dev-chart-legend button{padding:10px}.dev-status-chart{padding:18px}.dev-chart-count{font-size:12px}}
@media(forced-colors:active){.dev-pie path,.dev-pie circle{fill:Canvas;stroke:CanvasText}.dev-chart-swatch{background:Canvas!important;border:1px solid CanvasText}.dev-chart-legend button[aria-pressed=true]{outline:2px solid Highlight}}

.development-hub .dev-tutorial {margin-block:1rem}.development-hub .dev-tutorial>summary{display:flex;align-items:center;gap:.7rem;min-height:48px;cursor:pointer;font-weight:700}.development-hub .dev-tutorial video{display:block;max-width:100%;width:360px;max-height:75vh;margin:1rem auto;background:#142f29;border-radius:16px}.development-hub .dev-tutorial ol{padding-inline-start:1.6rem;line-height:1.8}.development-hub .dev-tutorial li{margin-block:.6rem}


/* /development-inbox.css */
/* Private review sits beneath the public development hub. */
.dev-inbox{margin-top:28px;min-width:0;scroll-margin-top:20px}.dev-inbox *{box-sizing:border-box}.dev-inbox-shell{border:1px solid var(--dev-line,#cdd9d1);border-radius:16px;background:var(--dev-card,#fffefa)}.dev-inbox-shell>summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:56px;cursor:pointer;padding:14px 18px;font-weight:650;list-style:none}.dev-inbox-shell>summary::-webkit-details-marker{display:none}.dev-inbox-shell>summary:after{content:'+';margin-inline-start:auto;font-size:24px;line-height:1}.dev-inbox-shell[open]>summary:after{content:'−'}.dev-inbox-shell>summary small{font-size:12px;color:var(--dev-muted,#52665d);font-weight:400}.dev-inbox-lock{width:21px;height:21px;flex:none;color:var(--dev-muted,#52665d)}.dev-inbox-body{padding:0 18px 20px}.dev-inbox-body>p{margin:10px 0!important}.dev-inbox-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}.dev-inbox-filters{display:flex;flex-wrap:wrap;gap:7px}.dev-inbox-filters button{min-height:44px;border:1px solid var(--dev-line,#cdd9d1);border-radius:10px;padding:8px 11px;background:var(--dev-card,#fffefa);font:inherit;font-size:13px;color:var(--dev-ink,#18392e);cursor:pointer}.dev-inbox-filters button[aria-pressed=true]{background:var(--dev-pale,#eaf2e8);border-color:var(--dev-green,#176345);font-weight:750}.dev-inbox-filters button span{font-variant-numeric:tabular-nums;font-size:12px}.dev-inbox-list{display:grid;gap:12px}.dev-inbox-item{border:1px solid var(--dev-line,#cdd9d1);border-radius:12px;min-width:0;overflow:hidden}.dev-inbox-item>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:14px;cursor:pointer}.dev-inbox-item>summary>span:first-child{min-width:0}.dev-inbox-meta{display:block;font-size:12px;color:var(--dev-muted,#52665d);font-weight:400}.dev-inbox-badge{display:inline-flex;white-space:nowrap;font-size:12px;font-weight:650;padding:4px 9px;border:1px solid var(--dev-line,#cdd9d1);border-radius:99px;background:var(--dev-paper,#f8f7f0)}.dev-inbox-badge[data-status=new]{background:var(--dev-warm,#f7efd9)}.dev-inbox-badge[data-status=resolved]{background:var(--dev-pale,#eaf2e8)}.dev-inbox-item-body{padding:0 14px 16px}.dev-inbox-context{font-size:12px;color:var(--dev-muted,#52665d)}.dev-inbox blockquote{margin:10px 0 18px;border-inline-start:3px solid var(--dev-green,#176345);padding:12px;background:var(--dev-paper,#f8f7f0);border-radius:0 8px 8px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.dev-inbox fieldset{border:0;margin:0;padding:0;min-width:0}.dev-inbox legend{font-size:13px;font-weight:700;padding:0;margin-bottom:8px}.dev-inbox-choices{display:flex;flex-wrap:wrap;gap:7px}.dev-inbox-choices label{display:flex;align-items:center;gap:7px;min-height:44px;border:1px solid var(--dev-line,#cdd9d1);border-radius:9px;padding:8px 10px;font-size:13px;cursor:pointer}.dev-inbox-choices label:has(input:checked){background:var(--dev-pale,#eaf2e8);border-color:var(--dev-green,#176345)}.dev-inbox-choices input{margin:0;accent-color:var(--dev-green,#176345);width:17px;height:17px}.dev-inbox-note-label{display:block;margin:16px 0 5px;font-size:13px;font-weight:700}.dev-inbox textarea{line-height:1.7;resize:vertical}.dev-inbox .dev-small{margin:7px 0 12px!important}.dev-inbox button:disabled{opacity:.6;cursor:wait}.dev-inbox-message,.dev-inbox-row-status{font-size:13px;line-height:1.8;color:var(--dev-green,#176345);margin:10px 0!important}.dev-inbox-message:empty,.dev-inbox-row-status:empty{display:none}.dev-inbox [data-error=true]{color:var(--dev-error,#9b2e37)}.dev-inbox-conflict{padding:12px;border:1px solid var(--dev-gold,#7b5c18);border-radius:10px;background:var(--dev-warm,#f7efd9);margin:12px 0;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}.dev-inbox-conflict p+p{margin-top:7px!important}.dev-inbox-conflict button{margin-top:12px}.dev-inbox-empty{padding:18px;border:1px dashed var(--dev-line,#cdd9d1);border-radius:10px;color:var(--dev-muted,#52665d)}.dev-inbox [data-inbox-more]{margin-top:16px}.dev-inbox :is(button,a,input,summary,textarea):focus-visible{outline:3px solid var(--dev-gold,#7b5c18);outline-offset:3px}.dev-inbox [hidden]{display:none!important}@media(max-width:400px){.dev-inbox-body{padding-inline:12px}.dev-inbox-item>summary{flex-wrap:wrap;gap:7px}.dev-inbox-shell>summary{padding-inline:14px}.dev-inbox-choices{display:grid;grid-template-columns:1fr 1fr}.dev-inbox-choices label{font-size:12px}.dev-inbox-filters button{flex-grow:1}.dev-inbox-item-body{padding-inline:12px}}@media(forced-colors:active){.dev-inbox :is(details,button,label,blockquote,.dev-inbox-badge){border-color:CanvasText}}@media(prefers-reduced-motion:reduce){.dev-inbox *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* /site-support.css */
/* Shared attribution and support at the end of the landing pages. */
[data-site-support]{display:none;min-width:0;width:100%;padding:0 20px 24px;box-sizing:border-box}
body:is(.home-page,.devotion-page,.settings-page) [data-site-support],body:not(:has(.main)) [data-site-support]{display:block}
.main>[data-site-support]{max-width:1480px;margin-inline:auto;padding-inline:4.8%}
.site-support{position:static;box-sizing:border-box;max-width:1120px;margin:0 auto;padding:0;border:0;border-radius:0;background:transparent;color:#294d42;text-align:start;font:400 14px/1.5 var(--font-ui,system-ui,sans-serif);letter-spacing:normal;overflow-wrap:anywhere}
.site-support *{box-sizing:border-box}.site-support-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px}.site-support a{color:#245a49;text-decoration:none}.site-support a:hover{text-decoration:underline;text-underline-offset:3px}.site-support-brand{display:inline-flex;align-items:center;gap:10px;min-height:53px;max-width:100%;min-width:0}.site-support-brand img{display:block;flex:none;width:52px;height:53px;object-fit:contain;background:#fff;border-radius:5px}.site-support-brand strong,.site-support-brand>span>span{display:block}.site-support-brand strong{font-size:14px;font-weight:700}.site-support-brand>span>span{font-size:12px}.site-support-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;max-width:100%}.site-support-audience{font-size:12px}.site-support-donate{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid #c4d8cd;border-radius:9px;font-weight:600;text-align:center}.site-support-note{margin:0}.site-support-note summary{display:flex;align-items:center;gap:7px;min-height:44px;width:fit-content;max-width:100%;cursor:pointer;font-size:.875rem;list-style:none}.site-support-note summary::-webkit-details-marker{display:none}.site-support-note summary::before{content:'+';font-size:17px;line-height:1}.site-support-note[open] summary::before{content:'−'}.site-support-note p{max-width:850px;margin:0 0 3px;font-size:13px;line-height:1.65}.site-support :is(a,summary):focus-visible{outline:3px solid #a16b20;outline-offset:3px}.site-support-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.dark .site-support,html[data-theme=dark] .site-support,[data-support-theme=dark] .site-support{background:#14251f;color:#d2e3da;border-color:#385247}body.dark .site-support a,html[data-theme=dark] .site-support a,[data-support-theme=dark] .site-support a{color:#b6e5d0}body.dark .site-support-donate,html[data-theme=dark] .site-support-donate,[data-support-theme=dark] .site-support-donate{border-color:#527765}
@media(max-width:600px){[data-site-support]{padding-inline:14px}.site-support{padding:0}.site-support-row{gap:8px 14px}.site-support-actions{width:100%}.site-support-donate{max-width:100%;font-size:13px}.main>[data-site-support]{padding-bottom:calc(90px + env(safe-area-inset-bottom))}}
@media print{[data-site-support]{display:none}}

.site-support-hawza{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #c4d8cd;border-radius:9px;font-size:13px;font-weight:650;max-width:100%}.site-support-hawza svg{width:23px;height:23px;flex:none}.site-support-hawza>span:first-of-type{min-width:0}.dark .site-support-hawza{border-color:#527765}

.site-support-row{border-block-start:1px solid var(--line,#c4d8cd);padding-block:1rem .35rem}.site-support-actions{row-gap:.35rem}

.site-support-note>.site-support-row{border:0;padding-block:.25rem .75rem}
.site-support-note>.site-support-audience{margin-block:.25rem 0;font-weight:700}
.site-support-note:only-child>summary{color:inherit;font-weight:550}


/* /experience-polish.css */
/* Shared interface finishing layer. Canonical Quran, Arabic word examples,
   source passages and reader font/size preferences keep their own rules. */
body{
 --experience-heading:"Inter","Readex Pro",system-ui,sans-serif;
 --experience-title-leading:1.28;
 --experience-focus:#93600d;
}
body[data-profile="youth"]{--experience-heading:"Readex Pro","Inter",system-ui,sans-serif}
body[data-profile="kids"]{--experience-heading:"Readex Pro","Noto Sans Arabic",system-ui,sans-serif}
body.dark{--experience-focus:#efd073}
html[lang="ar"] body{
 --experience-heading:"Noto Sans Arabic","Readex Pro",Tahoma,sans-serif;
 --experience-title-leading:1.6;
}
html[lang="ar"] body[data-profile="kids"]{--experience-heading:"Readex Pro","Noto Sans Arabic",Tahoma,sans-serif}
/* These two modules formerly requested an unregistered ReadexPro family. */
body :is(.children-stories,.children-picture-stories,.children-theme-explorer){
 font-family:"Readex Pro","Noto Sans Arabic",system-ui,sans-serif;
}
body :is(.children-stories,.children-picture-stories,.children-theme-explorer,
 .youth-studio,.revision-studio-root)[lang="ar"]{
 --experience-heading:"Noto Sans Arabic","Readex Pro",Tahoma,sans-serif;
 --experience-title-leading:1.6;
}
body :is(.children-stories,.children-picture-stories,.children-theme-explorer)[lang="ar"]{
 --experience-heading:"Readex Pro","Noto Sans Arabic",Tahoma,sans-serif;
}
/* Explicit interface titles only. A surah title or an Arabic study example
   is not part of this list. We use weights supplied by the bundled fonts. */
body :is(.ys-heading h1,.ys-focus-heading h2,.ys-focus-panel h3,
 .rev-header h1,.rev-start h2,.rev-walk-entry h2,.rev-card>h2,
 .cs-welcome h2,.cs-session-heading h2,.cs-activity h3,
 .ps-welcome h2,.ps-challenge h3,.te-welcome h2,.te-session-heading h2,
 .te-shelf-heading h3,.te-activity h3,.course-path-heading h1,
 .course-next h2,.course-unit>header h2,.journey-heading .page-title){
 font-family:var(--experience-heading);
 font-weight:700;
 line-height:var(--experience-title-leading);
 text-wrap:balance;
 overflow-wrap:break-word;
}
body .ys-heading h1{letter-spacing:-.025em}
body :is(.cs-welcome h2,.te-welcome h2){font-size:clamp(1.6rem,3.7vw,2.1rem)}
body :is(.ys-focus-panel h3,.rev-card>h2){margin-block-end:1rem}
body :is(.cs-activity h3,.te-activity h3,.ps-challenge h3){line-height:1.5}
/* Main teaching copy gets a comfortable line length and a consistent step
   above notes. Explicit child labels stay rounded in every audience view. */
body :is(.ys-intro,.ys-reflection>p,.ys-heading>p,
 .rev-header>p,.rev-start>p,.rev-walk-entry>p,.rev-answer>p,
 .cs-welcome>p,.cs-story-copy>p,.ps-welcome p,.ps-meaning>p,
 .te-welcome>p,.te-meaning>p,.course-path-heading>p,.course-next>p){
 font-size:1rem;
 line-height:1.8;
 max-inline-size:64ch;
 text-wrap:pretty;
}
body :is(.cs-story-copy>p,.te-meaning>p){font-size:1.0625rem}
body :is(.cs-story-copy>p,.ps-meaning>p,.te-meaning>p){max-inline-size:48ch}
body :is(.ys-question p,.ys-answer-options button,.te-choices button,
 .cs-choices button,.ps-choice){font-size:1rem;line-height:1.65}
body :is(.ys-panel-footer small,.ys-example small,.ys-challenge-count,
 .rev-kicker,.rev-position,.rev-picture figcaption,.rev-language-note,
 .cs-search-status,.cs-cover-copy>small,.ps-cover-copy>small,
 .ps-cover-copy>span,.te-tile small){font-size:.8125rem;line-height:1.65}
body :is(.cs-parent,.ps-parent,.te-parent,.rev-small,.rev-more>p,
 .rev-privacy,.ys-footer p){font-size:.875rem;line-height:1.8}
body :is(.cs-parent>p,.cs-parent>a){font-size:.875rem}
body :is(.te-group strong,.cs-cover-copy strong,.ps-cover-copy strong){
 font-weight:700;line-height:1.5;
}
body .te-group small{font-size:.875rem;line-height:1.6}
/* Arabic instructions need room above and below dots and vowel marks.
   Never track or transform Arabic text to make it fit. */
html[lang="ar"] body :is(.ys-heading h1,.ys-focus-heading h2,
 .ys-focus-panel h3,.rev-header h1,.rev-start h2,.rev-walk-entry h2,
 .rev-card>h2,.cs-welcome h2,.cs-session-heading h2,.cs-activity h3,
 .ps-welcome h2,.ps-challenge h3,.te-welcome h2,.te-session-heading h2,
 .te-shelf-heading h3,.te-activity h3,.course-path-heading h1,
 .course-next h2,.course-unit>header h2,.journey-heading .page-title){
 letter-spacing:normal;
}
body :is(.children-stories,.children-picture-stories,.children-theme-explorer,
 .youth-studio,.revision-studio-root)[dir="rtl"] :is(
 .ys-heading h1,.ys-focus-panel h3,.cs-welcome h2,.cs-session-heading h2,
 .ps-welcome h2,.ps-session-heading h2,.ps-shelf-heading h3,.ps-match h3,
 .ps-challenge h3,.ps-eyebrow,.cs-eyebrow,.te-eyebrow,.rev-kicker){
 letter-spacing:normal;
}
html[lang="ar"] body :is(.ys-intro,.ys-reflection>p,.ys-heading>p,
 .ys-question p,.rev-header>p,.rev-start>p,.rev-walk-entry>p,
 .rev-answer>p,.cs-welcome>p,.cs-story-copy>p,.ps-welcome p,
 .ps-meaning>p,.te-welcome>p,.te-meaning>p,.course-path-heading>p,
 .course-next>p){line-height:1.95}
body :is(.children-stories,.children-picture-stories,.children-theme-explorer,
 .youth-studio,.revision-studio-root)[dir="rtl"] :is(
 .ys-intro,.ys-reflection>p,.ys-heading>p,.ys-question p,.rev-header>p,
 .rev-start>p,.rev-walk-entry>p,.rev-answer>p,.cs-welcome>p,.cs-story-copy>p,
 .ps-welcome p,.ps-meaning>p,.te-welcome>p,.te-meaning>p){line-height:1.95}
body :is(.cs-parent summary,.ps-parent summary,.te-parent summary,
 .rev-source summary){min-block-size:44px;padding-block:9px;line-height:1.65}
body :is(.ps-parent>a,.te-parent>a){min-block-size:44px;align-content:center}
body :is(.cs-search-row input,.cs-page-picker select,.ps-search-row input,
 .ps-ayah-picker select,.te-search-row input){font-size:1rem;min-block-size:48px}
body :is(.cs-button,.ps-button,.te-button,.rev-button,.ys-next-prompt,
 .ys-try-again,.ps-shelf-tabs button,.ps-mode-tabs button){
 min-block-size:46px;
 white-space:normal;
 overflow-wrap:break-word;
}
body :is(.cs-button,.cs-home,.cs-cover,.cs-groups button,.cs-motion,
 .ps-button,.ps-surah,.ps-theme,.ps-mode-tabs button,.ps-shelf-tabs button,
 .te-button,.te-group,.te-tile,.rev-button,.rev-source-open,
 .ys-focus-picker button,.ys-answer-options button,.ys-next-prompt,
 .ys-try-again,.cs-parent summary,.ps-parent summary,.te-parent summary,
 .cs-search-row input,.ps-search-row input,.te-search-row input):focus-visible{
 outline:3px solid var(--experience-focus);
 outline-offset:4px;
}
body :is(.cs-activity,.ps-challenge,.te-activity){margin-block:1.5rem}
body :is(.cs-choices,.ps-choices,.te-choices,.ys-answer-options){gap:.75rem}
@media(max-width:600px){
 body .ys-heading h1{font-size:clamp(1.75rem,6.6vw,2.2rem)}
 body :is(.ys-heading,.rev-header){margin-block-end:1.25rem}
 body :is(.ys-focus-panel,.rev-card){padding:1.25rem 1rem}
 body :is(.cs-story-copy,.te-activity,.ps-challenge){padding:1.1rem 1rem}
 body :is(.cs-groups button,.ps-mode-tabs button,.ps-shelf-tabs button,
 .ps-next-prev .ps-button,.cs-next-prev .cs-button){font-size:.875rem;line-height:1.6}
 body :is(.ps-welcome p,.cs-welcome p){font-size:.9375rem}
 body :is(.te-group,.cs-cover,.ps-surah){scroll-margin-block:8rem}
 body .te-group{grid-template-columns:76px minmax(0,1fr) 18px}
 body .te-group-art{width:76px;height:88px}
 body .te-group strong{font-size:1rem}
 body .te-group small{font-size:.8125rem}
 body .ps-cover-copy strong{font-size:1rem}
 body .rev-walk-links small{font-size:.8125rem;white-space:normal}
}
@media(forced-colors:active){
 body :is(.te-group,.te-tile,.cs-cover,.ps-surah,.ys-focus-picker button,
 .ys-answer-options button,.rev-button){border-color:ButtonText}
}
/* The course shell has a more specific compact-mode rule. Keep its original
   rows, but give the actual introductory teaching copy the same readable size. */
body.learn-page :is(.course-path-heading>p,.course-next>p){font-size:1rem;line-height:1.8}
html[lang="ar"] body.learn-page :is(.course-path-heading>p,.course-next>p){line-height:1.95}

/* The sidebar leaves a narrow reading column on tablets. Let complete header
   groups wrap, with their actions still visible and keyboard reachable. */
@media(min-width:761px) and (max-width:1100px){
 html body:not(.reader-focus) .topbar{display:flex; height:auto;min-height:68px;flex-wrap:wrap;gap:8px 12px;padding-block:8px;}
 html body:not(.reader-focus) .topbar>.profile-control{flex:0 1 auto;min-width:0;max-width:100%;}
 html body:not(.reader-focus) .topbar>.top-right{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;min-width:0;max-width:100%;margin-inline-start:auto;}
}

/* A stable phone header: navigation on the first row, profile and install on
   the second. Tour and release details remain in Guide, Settings and Tools.
   Excluding reader-focus leaves the full-page reader's hidden chrome alone. */
@media(max-width:760px){html body:not(.reader-focus) .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) 52px 72px 44px!important;grid-template-rows:auto auto!important;align-items:center;gap:6px 4px!important;min-height:0!important;height:auto!important;padding:8px 12px!important;}html body:not(.reader-focus) .topbar>.top-right{display:contents!important}html body:not(.reader-focus) .topbar>.top-brand{grid-column:1!important;grid-row:1!important;min-width:0;min-height:44px;gap:6px;}html body:not(.reader-focus) .topbar>.top-brand>span{min-width:0}html body:not(.reader-focus) .topbar .top-brand img{width:28px;height:28px;flex:none}html body:not(.reader-focus) .topbar .top-brand small{display:none!important}html body:not(.reader-focus) .topbar .top-brand #topTitle{white-space:normal}html body:not(.reader-focus) .topbar>.profile-control{grid-column:1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-width:0;margin:0;padding:0!important;border:0;}html body:not(.reader-focus) .topbar .profile-trigger{min-height:44px}html body:not(.reader-focus) .topbar .mushaf-explore-button{grid-column:2!important;grid-row:1!important;flex-direction:column;justify-content:center;gap:1px;padding:2px!important;min-width:44px!important;width:52px!important;max-width:52px!important;min-height:44px!important;height:auto!important;font-size:.9375rem;line-height:1.2;}html body:not(.reader-focus):not([data-profile="kids"]) .topbar .mushaf-explore-button{display:flex!important}html body:not(.reader-focus) .topbar .mushaf-explore-button span{display:block!important;font-size:.6875rem;line-height:1.4}html body:not(.reader-focus) .topbar .mushaf-explore-button svg{width:16px;height:16px;flex:none}html body:not(.reader-focus) .topbar #languageButton{grid-column:3!important;grid-row:1!important;min-width:44px!important;width:72px;max-width:72px;min-height:44px!important;height:auto;margin:0;padding-inline:4px;}html body:not(.reader-focus) .topbar #settingsButton{grid-column:4!important;grid-row:1!important;min-width:44px!important;width:44px;max-width:44px;min-height:44px!important;height:44px;margin:0;padding:0;justify-self:end;}html body:not(.reader-focus) .topbar .top-right .pwa-install-trigger{grid-column:2/-1!important;grid-row:2!important;width:100%;max-width:none;min-width:0;min-height:44px;white-space:normal;padding:7px 8px;line-height:1.5;}html body:not(.reader-focus) .topbar :is(.app-tour-trigger,.mushaf-beta-badge){display:none!important}html body[data-profile="kids"]:not(.reader-focus) .topbar>.top-brand{grid-column:1/3!important}html body:is(.reader-page,.learn-page):not(.reader-focus) .topbar{grid-template-rows:auto!important;min-height:58px!important;padding-block:6px!important;}html body:is(.reader-page,.learn-page):not(.reader-focus) .topbar :is(.profile-control,.pwa-install-trigger){display:none!important}}


/* /children-imami-notes.css */
.imami-layer{margin-block:1rem;border:1px solid #c9d9ca;border-inline-start:4px solid #b38a35;border-radius:16px;background:#f4f8ed;color:#173f38;overflow:hidden;text-align:start}
.imami-layer>summary{cursor:pointer;min-height:54px;padding:14px 18px;list-style-position:inside;font-family:inherit;line-height:1.6}
.imami-layer-label{font-size:.78rem;font-weight:600;display:block;color:#516b49}
.imami-layer>summary strong{font-size:1rem;font-weight:700}
.imami-layer-body{padding:0 18px 18px;font-size:.95rem;line-height:1.85;max-width:70ch}
.imami-layer-body p{margin-block:.65rem}
.imami-layer-summary{font-weight:600}
.imami-layer-sources{border-block-start:1px solid #d3dec9;margin-block-start:16px;padding-block-start:6px}
.imami-layer-sources h4{font-size:.85rem;margin-block:.6rem}
.imami-layer-sources a{display:block;min-height:44px;padding-block:8px;color:#17634d;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.imami-layer-lesson-link{display:inline-flex;align-items:center;min-height:44px;color:#17634d;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.imami-layer-scope{font-size:.8rem;color:#56664f}
.imami-layer[dir=rtl] .imami-layer-body{line-height:2}
.imami-layer summary:focus-visible,.imami-layer a:focus-visible{outline:3px solid #ad7c22;outline-offset:3px}
body.dark .imami-layer{background:#1d332b;border-color:#45624e;color:#e4f0dc}
body.dark .imami-layer-label,body.dark .imami-layer-scope{color:#b9cdb0}
body.dark .imami-layer-sources a,body.dark .imami-layer-lesson-link{color:#bedfba}
@media(max-width:600px){.imami-layer>summary{padding:12px 14px}.imami-layer-body{padding-inline:14px;font-size:.9375rem}}

/* Outlines preserve the full, joined invocation at any zoom level. */
.devotional-blessing{position:relative;display:inline-block;inline-size:1.95em;block-size:1.48em;vertical-align:-.3em;margin-inline:.04em;color:inherit;line-height:1;white-space:nowrap}
.devotional-blessing>svg{display:block;width:100%;height:100%;fill:currentColor}
.devotional-blessing>bdi{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.imami-layer-close{display:inline-block;margin-block-start:.45rem;min-block-size:44px;padding:.35rem .75rem;border:1px solid currentColor;border-radius:.6rem;background:transparent;color:inherit;font:inherit;line-height:1.65;cursor:pointer}
.imami-layer-close:focus-visible{outline:3px solid var(--sd-focus,#755b21);outline-offset:2px}
.devotional-blessing.devotional-majesty{inline-size:1.12em;block-size:1.06em;vertical-align:-.15em;margin-inline:.1em;user-select:none}


/* /studio-icons.css */
/* Shared decorative glyphs. Size comes from the safe helper's width/height. */
.mushaf-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.16em;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.mushaf-icon .mushaf-icon-accent {
  stroke: var(--mushaf-icon-accent, currentColor);
}
.mushaf-icon .mushaf-icon-wash {
  fill: var(--mushaf-icon-accent, currentColor);
  fill-opacity: .12;
  stroke: none;
}
.mushaf-icon--directional:dir(rtl) { transform: scaleX(-1); }
@media (forced-colors: active) {
  .mushaf-icon .mushaf-icon-accent { stroke: currentColor; }
  .mushaf-icon .mushaf-icon-wash { fill: none; }
}


/* /research-access.css */
/* Devotional source records carry their reading identity and return link. */
.research-footer{display:flex;flex-wrap:wrap;align-items:center;gap:0 .4rem;margin:1rem 0 0;padding-top:.45rem;border-top:1px solid var(--line);color:var(--muted);font-size:.8125rem;line-height:1.6}
.research-footer a{display:inline-flex;align-items:center;gap:.35rem;min-height:36px;color:var(--green);font-weight:600;text-underline-offset:3px}
.research-footer svg{width:15px;height:15px;flex:none}
.research-footer a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
body:not([data-profile="researcher"]) [data-research-only]{display:none!important}
body[data-profile="researcher"] [data-practice-only]{display:none!important}

.devotion-citation-link{display:inline-flex;align-items:center;gap:.4em;min-height:44px;color:var(--green);font-weight:600;text-decoration:none}
.devotion-citation-link svg{width:1.12em;height:1.12em;flex:none}
.dua-source-footer>a.devotion-citation-link,.research-footer>a.devotion-citation-link{min-height:44px;text-decoration:none}
.devotion-citation-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.devotion-source-record{max-inline-size:48rem;margin-inline:auto;overflow-wrap:anywhere}
.devotion-source-record h1{margin-block:.3rem .4rem}
.devotion-source-record h2{margin-block:0 1.15rem;font-size:1.25rem}
.devotion-source-record h3,.devotion-source-record h4{margin-block:1.25rem .4rem}
.devotion-source-record p,.devotion-source-record li{line-height:1.65}
.devotion-source-record ul{padding-inline-start:1.25rem}
.devotion-source-record li+li{margin-block-start:.4rem}
.devotion-source-record a:not(.devotion-citation-link){text-underline-offset:.16em}
body:not([data-profile="researcher"]) .devotion-source-record [data-research-only]{display:revert!important}


/* /studio-design-v70.css */
/* Shared interface roles. The Quran, source typography, instructional colour
   annotations, flags and illustrated scenes retain their own rendering. */
/* Jade marks a selected destination or a recorded action. Saffron marks the
   primary invitation on a dark reading surface. Instructional colours and
   user-selected Quran text styles are managed by their respective readers. */
body:not(.dark),body[data-profile]:not(.dark) {
  --sd-page:#f2f6f3;--sd-paper:#ffffff;--sd-reading:#fffefa;
  --sd-ink:#142e2a;--sd-muted:#4d625d;--sd-line:#cbd8d0;
  --sd-control:#6f857a;--sd-accent:#11664f;--sd-strong:#0d473c;
  --sd-on-accent:#ffffff;--sd-tint:#deefe6;--sd-gold:#755018;
  --sd-ornament:#b17925;--sd-focus:#925b08;--sd-warm:#fff0cf;
  --sd-shadow:0 5px 20px #153c2d08;
}
body.dark,body[data-profile].dark {
  --sd-page:#101b1a;--sd-paper:#192925;--sd-reading:#202b23;
  --sd-ink:#f1f6ed;--sd-muted:#adc0b9;--sd-line:#354b43;
  --sd-control:#859d91;--sd-accent:#86ddb1;--sd-strong:#bcedcf;
  --sd-on-accent:#113929;--sd-tint:#243e32;--sd-gold:#f3cb80;
  --sd-ornament:#e2bb71;--sd-focus:#ffd684;--sd-warm:#3b3225;
  --sd-shadow:none;
}
body[data-profile="researcher"]:not(.dark) {
  --sd-accent:#742f3f;--sd-strong:#542534;--sd-tint:#f4e9e8;
}
body[data-profile="researcher"].dark {
  --sd-accent:#e1b1b6;--sd-strong:#edd1d3;--sd-tint:#3a262b;
  --sd-on-accent:#391b23;
}
body[data-profile="kids"]:not(.dark) {
  --sd-page:#fff7e8;--sd-accent:#1d6c59;--sd-strong:#214d3e;
  --sd-tint:#eaf3e7;
}
body[data-profile="kids"].dark {
  --sd-accent:#99dac5;--sd-strong:#c5eadc;--sd-tint:#263d32;
  --sd-on-accent:#163c30;
}
body[data-profile="youth"]:not(.dark) {
  --sd-accent:#205d72;--sd-strong:#203149;--sd-tint:#e9f2f2;--sd-gold:#795222;
}
body[data-profile="youth"].dark {
  --sd-accent:#a6dfe1;--sd-strong:#e0eefa;--sd-tint:#263c4d;--sd-gold:#f3ce91;
  --sd-on-accent:#18363a;
}

/* Rebind the older component roles, including the local learning surfaces. */
body:not(.dark),body[data-profile]:not(.dark),
body.dark,body[data-profile].dark,
body.learn-page #content,body.learn-page.dark #content,
body.reader-page :is(.hifdh-reader-tools,.hifdh-reading-surface),
body.reader-page.dark :is(.hifdh-reader-tools,.hifdh-reading-surface) {
  --bg:var(--sd-page);--panel:var(--sd-paper);--ink:var(--sd-ink);
  --muted:var(--sd-muted);--line:var(--sd-line);--control-line:var(--sd-control);
  --green:var(--sd-accent);--dark:var(--sd-strong);--on-accent:var(--sd-on-accent);
  --pale:var(--sd-tint);--light:var(--sd-tint);--gold:var(--sd-ornament);
  --gold-text:var(--sd-gold);--reading-paper:var(--sd-reading);
  --reading-hint:var(--sd-tint);--focus-ring:var(--sd-focus);--shadow:var(--sd-shadow);
  --sd-control-radius:6px;--sd-card-radius:12px;--sd-dialog-radius:18px;
}
body,body[data-profile] {background:var(--bg);color:var(--ink)}
/* Learning uses its established green pair for correct-answer feedback as well
   as controls. Preserve that meaning when the research profile is selected. */
body.learn-page:not(.dark) #content,
body.reader-page:not(.dark) :is(.hifdh-reader-tools,.hifdh-reading-surface) {
  --green:#0b5d4b;--on-accent:#ffffff;--pale:#dcebe3;
}
body.learn-page.dark #content,
body.reader-page.dark :is(.hifdh-reader-tools,.hifdh-reading-surface) {
  --green:#58c2a3;--on-accent:#06231b;--pale:#15352c;
}

/* Local palettes use the same paper, ink and dividing lines. Semantic feedback
   variables remain local to each learning exercise and development status. */
body .reciters-library,body.dark .reciters-library {
  --rc-muted:var(--muted);--rc-border:var(--line);--rc-soft:var(--pale);
  --rc-accent:var(--green);--rc-active:var(--pale);
}
body .priority-reader,body.dark .priority-reader {
  --pr-paper:var(--panel);--pr-ink:var(--ink);--pr-muted:var(--muted);
  --pr-line:var(--line);--pr-accent:var(--green);
}
body .tafsir-inline,body.dark .tafsir-inline {
  --tf-ink:var(--ink);--tf-muted:var(--muted);--tf-line:var(--line);
  --tf-gold:var(--gold-text);--tf-canvas:var(--reading-paper);--tf-soft:var(--pale);
}
body .verse-research,body.dark .verse-research {
  --vr-ink:var(--ink);--vr-muted:var(--muted);--vr-line:var(--line);
  --vr-paper:var(--reading-paper);--vr-tint:var(--pale);
}
body .start-here-dialog,body.dark .start-here-dialog {
  --sh-paper:var(--panel);--sh-ink:var(--ink);--sh-muted:var(--muted);
  --sh-line:var(--line);--sh-green:var(--green);--sh-pale:var(--pale);
}
body .development-hub,body.dark .development-hub {
  --dev-ink:var(--ink);--dev-muted:var(--muted);--dev-paper:var(--bg);
  --dev-card:var(--panel);--dev-line:var(--line);
}
body .mushaf-academy,body.dark .mushaf-academy {
  --academy-accent:var(--green);--academy-accent-ink:var(--on-accent);
  --academy-tint:var(--pale);
}

/* Navigation has one quiet, high-contrast frame in every audience view. */
body {
  --hero-start:#103c36;--hero-end:#166357;--hero-text:#fafff7;
  --hero-support:#d0e9dc;--hero-action:#f6d58e;--hero-action-ink:#21382b;
  --hero-action-hover:#ffe6b3;--hero-progress:#b7f7cd;--hero-track:#618a7c;
}
body.dark {
  --hero-start:#102e2c;--hero-end:#164c43;
  --hero-progress:#a3ebc2;--hero-track:#577c6f;
}
body .sidebar,body.dark .sidebar {background:#123c33;color:#edf7f0}
body .sidebar .nav button {color:#d0dbcc;border-radius:var(--sd-control-radius)}
body .sidebar .nav button.active,body.dark .sidebar .nav button.active {
  background:#235648;color:#fffdf7;box-shadow:none;
  border-inline-start:3px solid #dfc584;
}
body .sidebar .nav-label {color:#b8c4b4}
body .sidebar .brand small,body .sidebar .side-note p {color:#c2cebd}
body .sidebar .side-note {border-color:#69816b}
body .sidebar .side-note strong {color:#dfc584}
body .sidebar :is(a,button):focus-visible {outline-color:#dfc584}
body :is(.topbar,.mobile-nav) {border-color:var(--line)}
body .mobile-nav button.active,body[data-profile] .mobile-nav button.active {
  color:var(--green);background:var(--pale);
}
body:not([data-profile="kids"]) .mobile-nav button {
  min-block-size:48px;border-radius:12px;
}
body:not([data-profile="kids"]) .mobile-nav button[aria-current="page"]::before {
  background:currentColor;inset-block-start:2px;block-size:3px;inline-size:1rem;
}
body .mobile-nav button[aria-current="page"] svg {stroke-width:2.25}
body .mobile-nav button:focus-visible {outline:3px solid var(--focus-ring);outline-offset:-3px}

/* Browsing and study entry points reuse the application control colours. */
body .quran-search-entry {
  background:var(--panel);border-color:var(--control-line);border-radius:14px;
}
body .quran-search-entry svg,body.dark .quran-search-entry svg {
  color:var(--green);stroke:currentColor;
}
body .browse-tabs button[aria-pressed=true] {
  background:var(--green);color:var(--on-accent);box-shadow:none;
}
body.learn-page .course-next.course-next-compact {
  background:linear-gradient(135deg,var(--pale),var(--panel) 85%);
  border-color:var(--line);border-inline-start:4px solid var(--green);
}
body.learn-page .course-next .course-primary {
  background:var(--green);color:var(--on-accent);border-color:var(--green);
}

/* A bounded set of UI controls, not the Arabic words inside reading exercises. */
body :is(.btn,.tool,.language-button,.profile-trigger,.start-here-trigger,
  .mushaf-explore-button,.study-library-nav button,.reader-view-switch button,
  .reader-view-actions button,.reader-library-links button,.reader-appearance,
  .mushaf-page-toolbar button,.mushaf-page-jump button,.mushaf-page-tools button,
  .priority-reader button,.tafsir-priority-tabs button,.tafsir-source-tab,
  .verse-research button,.rc-filters button,.course-primary,.course-secondary,
  .course-review-button,.learning-button,.cal-view-switch button,
  .cal-cycle-nav button,.setting-row button,.sh-action,.dev-button,
  .dev-filter-list button,.cr-button,.te-button,.cs-button,.ps-button,
  .quest-primary,.quest-secondary,.quest-back) {
  border-radius:var(--sd-control-radius);min-height:44px;
}
/* Visible input edges are deliberately stronger than decorative card borders. */
body :is(.reader-options input:not([type=checkbox]):not([type=range]),
  .reader-options select,.verse-jump input,.mushaf-page-jump input,
  .mushaf-page-tools select,.priority-reader input,.priority-reader select,
  .tafsir-more-select select,.vr-verse-nav input,.vr-search-row input,
  .vr-passage-nav select,.reciters-library select,.reciters-library input[type=search],
  .cal-settings select,.setting-row select,.setting-row input:not([type=range]),
  .mushaf-command input,.development-hub select,.development-hub textarea,
  .te-search-row input) {
  border-color:var(--control-line);border-radius:var(--sd-control-radius);
  min-height:44px;background:var(--panel);color:var(--ink);
}
body :is(.btn-outline,.reader-appearance,.language-button,.profile-trigger,
  .start-here-trigger,.mushaf-explore-button,.rc-filters button,.course-secondary,
  .sh-action,.cr-button,.te-button,.cs-button,.ps-button) {
  border-color:var(--control-line);
}
body .topbar :is(.circle-btn,.language-button,.mushaf-explore-button) {
  min-width:44px;min-height:44px;height:auto;
}
body[data-profile] .profile-trigger {border-radius:var(--sd-control-radius)}
body :is(.btn-green,.home-learning-entry .btn,.continue-copy>.btn,
  .rc-filters button[aria-pressed=true],.sh-action.is-primary) {
  color:var(--on-accent);background:var(--green);border-color:var(--green);
}
/* The source reader already uses !important for its primary action. */
body .priority-reader .pr-read-source {color:var(--on-accent)!important}
body :is(.qd-intro,.qd-read,.qd-filters button[aria-pressed=true],
  .dua-filters button[aria-pressed=true],.rec-hifz-btn[aria-pressed=true],
  .tafsir-view-tabs [aria-selected=true],.studio-verse-actions button:first-child,
  .studio-choice-row button[aria-pressed=true]),
body.dark :is(.tafsir-view-tabs [aria-selected=true],
  .studio-verse-actions button:first-child,.studio-choice-row button[aria-pressed=true]) {
  color:var(--on-accent);
}
body .et-primary {color:var(--on-accent)!important}

/* Cards and disclosures share a measured outline. Illustrated paths retain
   their individual green, terracotta and purple theme accents. */
body:not(.dark) :is(.continue-card,.home-learning-entry,.home-source-pill,
  .settings-card,.reader-options,.reader-option-section,.mushaf-page-jump-panel,
  .mushaf-page-tools,.priority-reader,.pr-reading-body,.pr-provenance,.pr-volumes,
  .vr-paper,.vr-verse-card,.rc-spotlight,.rc-voice-tile,.rc-recording-tile,
  .rc-all-voices,.rc-provenance,.rc-player,.rc-archive-grid a,
  .course-next,.course-progress-card,.course-lesson-list,.course-step,
  .cal-month-panel,.cal-day-detail,.cal-history-card,.cal-cycle,
  .dev-card,.dev-source-card,.dev-component,.dev-metric,.sh-task,.sh-tour,
  .profile-choice,.profile-child-invitation,.children-path,.te-group,.te-tile,
  .te-scene-art,.te-parent,.cs-cover,.ps-surah,.cr-atlas-card),
body.dark :is(.continue-card,.home-learning-entry,.home-source-pill,
  .settings-card,.reader-options,.reader-option-section,.mushaf-page-jump-panel,
  .mushaf-page-tools,.priority-reader,.pr-reading-body,.pr-provenance,.pr-volumes,
  .vr-paper,.vr-verse-card,.rc-spotlight,.rc-voice-tile,.rc-recording-tile,
  .rc-all-voices,.rc-provenance,.rc-player,.rc-archive-grid a,
  .course-next,.course-progress-card,.course-lesson-list,.course-step,
  .cal-month-panel,.cal-day-detail,.cal-history-card,.cal-cycle,
  .dev-card,.dev-source-card,.dev-component,.dev-metric,.sh-task,.sh-tour,
  .profile-choice,.profile-child-invitation,.children-path,.te-group,.te-tile,
  .te-scene-art,.te-parent,.cs-cover,.ps-surah,.cr-atlas-card) {
  border-radius:var(--sd-card-radius);
}
body :is(.profile-dialog,.start-here-dialog,.mushaf-command) {
  border-radius:var(--sd-dialog-radius);border-color:var(--control-line);
}
body :is(.home-learning-entry,.settings-card,.rc-voice-tile,.rc-recording-tile,
  .cal-month-panel,.dev-card,.vr-paper) {box-shadow:var(--shadow)}
body .children-path {box-shadow:0 4px 0 color-mix(in srgb,var(--path-accent) 18%,transparent)}
body .children-path:hover {box-shadow:0 6px 0 color-mix(in srgb,var(--path-accent) 22%,transparent)}
body .vr-book-group button[aria-pressed=true] {
  border-color:var(--green);box-shadow:none;border-inline-start:3px solid var(--green);
}
body .pr-book-primary button[aria-pressed=true] {
  border-color:var(--green);box-shadow:inset 0 -2px var(--green);
}
body .home-learning-entry {border-inline-start:3px solid var(--sd-ornament)}

/* Command results keep the icon beside both lines of text, including RTL. */
body .mushaf-command-results button {
  display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;row-gap:3px;
  border-radius:var(--sd-control-radius);align-items:start;
}
body .mushaf-command-results button>.mushaf-module-symbol {
  grid-column:1;grid-row:1 / span 2;color:var(--green);align-self:center;
}
body .mushaf-command-results button>strong,
body .mushaf-command-results button>span:not(.mushaf-module-symbol) {
  grid-column:2;min-width:0;overflow-wrap:anywhere;margin:0;
}
body .learn-section-rail a {gap:7px}
body .learn-section-rail a>span {min-width:0}
body .learn-section-rail .mushaf-icon {width:20px;height:20px}

/* Decoration occupies its own column. It never sits behind reading text. */
body .home-source-motif {display:none;pointer-events:none}
@media(min-width:1200px) {
  body.home-page .continue-card {
    display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:18px;align-items:center;
  }
  body.home-page .continue-card .continue-copy {grid-column:1;grid-row:1;min-width:0}
  body.home-page .home-source-motif {
    display:block;grid-column:2;grid-row:1;width:100%;height:auto;opacity:.72;
  }
}
@media(max-width:600px) {
  body.learn-page .learn-section-rail a {gap:5px;font-size:13px}
  body :is(.profile-dialog,.start-here-dialog,.mushaf-command) {
    border-radius:var(--sd-dialog-radius);
  }
}

/* Contexts with their own focus rules are explicitly included. */
body :is(button,a,input,select,textarea,summary):focus-visible,
body :is(.start-here-dialog,.priority-reader,.tafsir-inline,.verse-research,
  .reciters-library,.development-hub,.profile-dialog) :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--focus-ring);outline-offset:3px;
}
body .sidebar :is(a,button):focus-visible {outline-color:#dfc584}
@media(forced-colors:active) {
  body :is(.nav button.active,.mobile-nav button.active,
    .vr-book-group button[aria-pressed=true],.pr-book-primary button[aria-pressed=true]) {
    border:2px solid Highlight;
  }
  body .home-source-motif {display:none}
}


/* /reader-spacing.css */
/* Give interface labels room for Arabic ascenders, dots and vowel marks. */
html[lang="ar"] :is(.reader-header h1,.page-title,.options-title strong,.section-head h2,.study-source-title h3,.app-tour-title,.tafsir-book-heading h3){
  letter-spacing:normal;line-height:1.58;overflow-wrap:break-word;text-wrap:pretty;
}
html[lang="ar"] :is(.topbar,.mobile-nav,.reader-edition-compact,.reader-view-bar,.tafsir-inline,.options-title) :is(button,summary){
  letter-spacing:normal;line-height:1.58;min-block-size:2.65rem;height:auto;white-space:normal;
}
html[lang="ar"] .mobile-nav button span{overflow:visible;text-overflow:clip}

/* A long activity title can claim a new row in the youth reading column. */
.ys-focus-heading{flex-wrap:wrap}
.ys-focus-heading>div{flex:1 1 15rem;min-inline-size:0}
.ys-focus-picker{display:flex;flex-wrap:wrap}
.ys-focus-picker button{flex:1 1 max-content;min-inline-size:min(100%,6.5rem);max-inline-size:100%;white-space:normal;overflow-wrap:normal;word-break:normal}
.ys-resume h2{overflow-wrap:break-word}

@media(max-width:760px){
 body[data-profile] .topbar .profile-trigger{
   gap:.35rem;padding-inline:.4rem;min-inline-size:0;
 }
 body[data-profile] .topbar .profile-trigger .profile-icon{display:none}
 body[data-profile] .topbar .profile-trigger-copy strong{
   line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
}


/* /ayah-assistant.css */
.aa-launch{position:fixed;z-index:38;inset-inline-end:max(16px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.6rem .95rem;border:1px solid #86ae9d;border-radius:2rem;background:#174f44;color:#fff;font:600 .9rem/1.25 var(--font-ui,system-ui);box-shadow:0 3px 12px #132f3128}
.aa-launch:focus-visible,#ayah-assistant-dialog :focus-visible{outline:3px solid #b67d27;outline-offset:2px}
body.has-audio .aa-launch{bottom:calc(105px + env(safe-area-inset-bottom))}
body:has([aria-modal=true]:not([hidden])) .aa-launch,body:has(dialog[open]) .aa-launch{visibility:hidden}
#ayah-assistant-dialog{position:fixed;inset:auto max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) auto;width:min(28rem,calc(100vw - 2rem));margin:0;padding:0;border:1px solid var(--line,#ced9d1);border-radius:1rem;background:var(--panel,#fff);color:var(--ink,#173c34);box-shadow:0 18px 66px #1129254a;max-height:84vh;max-height:min(46rem,84dvh);overflow:auto;overscroll-behavior:contain;text-align:start;font:400 1rem/1.5 var(--font-ui,system-ui)}
#ayah-assistant-dialog::backdrop{background:#1229234d}
#ayah-assistant-dialog[dir=rtl]{inset-inline-start:auto;inset-inline-end:1rem}
#ayah-assistant-dialog [hidden]{display:none!important}
.aa-inner{padding:1.25rem;display:grid;gap:1rem}
.aa-inner header,.aa-actions,.aa-inner nav{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.aa-inner header{flex-wrap:nowrap;justify-content:space-between;gap:.45rem}.aa-inner h2{margin:0;font:650 1.2rem/1.35 var(--font-ui,system-ui)}.aa-inner h3{margin:0;font:650 1rem/1.4 var(--font-ui,system-ui)}.aa-inner p{margin:0}.aa-inner small{font-size:.85rem}
.aa-inner .aa-dismiss{padding:0;border:0;border-radius:50%;background:transparent;color:inherit;width:44px;height:44px;font-size:1.65rem;line-height:1;flex:none}
.aa-verse{padding:.8rem .95rem;border-inline-start:3px solid var(--green,#355f4f);background:var(--pale,#eff4ee);border-radius:.35rem}.aa-verse small{display:block}.aa-verse p,.aa-result blockquote{font:400 1.35rem/1.95 var(--arabic,serif);text-align:start}.aa-verse p{margin-top:.35rem;max-height:7.5rem;overflow:auto}
.aa-inner label,.aa-result small{display:block}.aa-inner label{font-weight:600;margin-bottom:.3rem}
.aa-inner textarea{display:block;width:100%;padding:.6rem .7rem;font:inherit;line-height:1.45;color:inherit;background:var(--panel,#fff);border:1px solid var(--muted,#63746c);border-radius:.5rem;resize:vertical}
.aa-actions{margin-top:.6rem}.aa-actions button,.aa-actions a,.aa-light{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.5rem .75rem;min-height:44px;background:var(--pale,#eaf2ed);color:var(--ink,#173c34);border:1px solid var(--line,#cbd7ce);border-radius:.55rem;font:600 .9rem/1.35 var(--font-ui,system-ui);text-decoration:none}
.aa-actions [data-aa-search],.aa-actions [data-aa-noor]{background:#18594b;color:#fff;border-color:#18594b}.aa-actions button:disabled{opacity:.6}.aa-inner [data-aa-status],.aa-noor p{font-size:.925rem}.aa-inner :is([data-aa-status],[data-aa-results],[data-aa-copy-status]):empty{display:none}
.aa-result,.aa-noor{display:grid;gap:.45rem;padding:1rem 0;border-top:1px solid var(--line,#dce5dd)}.aa-result{padding-bottom:.5rem}.aa-result h3{overflow-wrap:anywhere}.aa-result blockquote{margin:.6rem 0}.aa-result a,.aa-inner nav a{color:var(--ink,#173c34);text-underline-offset:.2em}.aa-inner nav a,.aa-result summary,.aa-additional>summary{padding-block:.5rem;min-height:44px}.aa-inner nav{justify-content:space-between;border-top:1px solid var(--line,#dce5dd);font-size:.9rem}
@media(max-width:750px){.aa-launch{bottom:calc(84px + env(safe-area-inset-bottom));padding:0;width:44px;height:44px}.aa-launch span{display:none}.has-reader-dock .aa-launch{bottom:calc(148px + env(safe-area-inset-bottom))}body.has-audio .aa-launch{bottom:calc(214px + env(safe-area-inset-bottom))}#ayah-assistant-dialog,#ayah-assistant-dialog[dir=rtl]{inset:auto .5rem max(.5rem,env(safe-area-inset-bottom)) .5rem;width:calc(100% - 1rem);max-height:88dvh}.aa-inner{padding:1rem}}
@media print{.aa-launch,#ayah-assistant-dialog{display:none!important}}

/* Keep the narration column and its reading controls unobstructed. */
body:has(.hi-detail,.hd-detail,.vh-shelf)>.aa-launch{display:none}


/* /catalogue-view.css */
.catalogue-view-controls{display:inline-flex;align-items:center;gap:.15rem;flex:none}
.catalogue-view-controls button,.catalogue-help button{display:inline-grid;place-items:center;inline-size:44px;block-size:44px;border:0;border-radius:.7rem;background:transparent;color:var(--folio-quran,var(--green));line-height:1;cursor:pointer}
.catalogue-view-controls button:focus-visible,.catalogue-help :is(button,a):focus-visible{outline:3px solid var(--focus-ring,#975511);outline-offset:1px}
.catalogue-view-controls button:hover,.catalogue-help button:hover{background:var(--pale)}
.catalogue-view-controls svg,.catalogue-help svg{inline-size:1.35rem;block-size:1.35rem;flex:none}
.catalogue-help{box-sizing:border-box;width:min(27rem,calc(100% - 1.5rem));max-height:calc(100dvh - 1.5rem);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:1.1rem;background:var(--panel,#fff);color:var(--ink);padding:1.25rem 1.4rem;font:inherit}
.catalogue-help::backdrop{background:rgb(13 28 28 / .48)}
.catalogue-help header{display:flex;justify-content:space-between;align-items:center;gap:.8rem}
.catalogue-help h2{font:600 1.4rem/1.45 var(--folio-face,system-ui);margin:0}
.catalogue-help dl{margin:.8rem 0 1rem}.catalogue-help dl>div+div{margin-block-start:1rem}
.catalogue-help dt,.catalogue-help a{display:flex;gap:.6rem;align-items:center;font-weight:600}
.catalogue-help dd{margin:.25rem 0 0;margin-inline-start:1.95rem;color:var(--muted);line-height:1.5}
.catalogue-help a{min-block-size:44px;color:var(--green);text-decoration:underline;text-underline-offset:.2em}
.catalogue-help dl>div{display:grid;grid-template-columns:minmax(0,1fr) clamp(3.25rem,16vw,4.25rem);column-gap:.65rem;align-content:center;min-block-size:3.5rem}
.catalogue-help dl img{grid-column:2;grid-row:1/span 2;width:100%;height:auto;align-self:center;border-radius:.6rem}
.catalogue-help dt,.catalogue-help dd{grid-column:1}.catalogue-help dt{grid-row:1}.catalogue-help dd{grid-row:2}


/* /arabic-read-aloud.css */
.arabic-read-aloud{font:400 1rem/1.5 var(--font-ui,system-ui,sans-serif);margin:.55rem 0;color:inherit}
.ara-actions{display:flex;align-items:flex-start;gap:.35rem;flex-wrap:wrap}
.ara-play,.ara-options>summary{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:44px;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:1rem;background:color-mix(in srgb,var(--green,#176d5d) 7%,var(--panel,#fff));color:var(--ink,#24483e);padding:.4rem .85rem;font:600 .94rem/1.3 var(--font-ui,system-ui,sans-serif);cursor:pointer;box-shadow:0 3px 0 color-mix(in srgb,currentColor 13%,transparent);transition:transform .14s ease,box-shadow .14s ease}
.ara-play svg{width:20px;height:20px;flex:none}
.ara-play:active,.ara-options>summary:active{transform:translateY(3px);box-shadow:0 0 0 transparent}
.ara-play:focus-visible,.ara-options>summary:focus-visible,.ara-settings select:focus-visible{outline:3px solid var(--green,#176d5d);outline-offset:3px}
.ara-options{position:relative;max-width:100%}.ara-options>summary{list-style:none;min-width:44px;padding:.3rem .65rem;font-weight:800}.ara-options>summary::-webkit-details-marker{display:none}
.ara-options[open]{flex:1 1 16rem}.ara-options[open]>summary{width:44px}
.ara-settings{color:var(--ink,#24483e);display:flex;flex-wrap:wrap;gap:.8rem;padding:1rem;margin-top:.6rem;background:var(--panel,#fff);border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:1rem;max-width:36rem}
.ara-settings label{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem;flex:1 1 9rem;min-width:0}.ara-settings label:first-child{flex-basis:100%}.ara-settings select{min-height:44px;width:100%;max-width:100%;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:.65rem;background:var(--panel,#fff);color:inherit;padding:.4rem .6rem;font:inherit}.ara-settings .ara-online{flex-direction:row;align-items:center;flex-basis:100%}.ara-online input{min-width:20px;min-height:20px;accent-color:var(--green,#176d5d)}
.ara-settings p{font-size:.875rem;line-height:1.5;margin:0;flex-basis:100%;opacity:.84}.ara-status{font-size:.875rem;line-height:1.5;margin:.5rem 0 0;max-width:42rem}.ara-status[hidden]{display:none}.is-speaking .ara-play{background:var(--green,#176d5d);color:var(--on-accent,#fff)}
.ara-sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.ara-play,.ara-options>summary{transition:none;transform:none}}
html[data-garden-motion="paused"] .ara-play,html[data-garden-motion="paused"] .ara-options>summary{transition:none;transform:none}

.ara-tap{position:relative;display:block;width:100%;border:0;border-radius:1rem;padding:.35rem 2.2rem;background:transparent;color:inherit;text-align:inherit;cursor:pointer;transition:background .15s ease,transform .15s ease}.ara-tap>span[lang="ar"]{display:block;margin:0}.ara-tap-symbol{position:absolute;inset-inline-end:.4rem;top:50%;transform:translateY(-50%);opacity:.55}.ara-tap-symbol svg{width:18px;height:18px}.ara-tap:hover{background:color-mix(in srgb,currentColor 5%,transparent)}.ara-tap:active{transform:scale(.985)}.ara-tap:focus-visible{outline:3px solid var(--green,#176d5d);outline-offset:3px}@media(prefers-reduced-motion:reduce){.ara-tap{transition:none;transform:none}}html[data-garden-motion="paused"] .ara-tap{transition:none;transform:none}


/* /garden-pals.css */
.garden-pal-art {
  display: inline-block;
  width: 5rem;
  height: 5rem;
  vertical-align: middle;
}
.garden-pal-svg { display: block; width: 100%; height: 100%; }
.garden-pal-art .gp-eye,
.garden-pal-art .gp-wing,
.garden-pal-art .gp-crest { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .garden-pal-art[data-pose="idle"] .gp-eye { animation: gp-blink 4.6s ease-in-out infinite; }
  .garden-pal-art[data-pose="wave"] .garden-pal-svg { animation: gp-wave .65s ease-in-out 1; transform-origin: center 85%; }
  .garden-pal-art[data-pose="wave"] .gp-wing { animation: gp-wing .32s ease-in-out 2; }
  .garden-pal-art[data-pose="wave"] .gp-crest { animation: gp-wave .32s ease-in-out 2; }
  .garden-pal-art[data-pose="cheer"] .garden-pal-svg { animation: gp-hop .75s ease-out 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .garden-pal-art[data-pose="idle"] .garden-pal-svg {animation:gp-idle 3.8s ease-in-out infinite;transform-origin:center 85%}
  .garden-pal-art[data-pose="idle"] .gp-wing {animation:gp-breathe-wing 2.4s ease-in-out infinite}
  .garden-pal-art[data-pal="rabi"][data-pose="idle"] .garden-pal-svg {animation:gp-stroll 6s ease-in-out infinite}
  .garden-pal-art[data-pal="nahla"][data-pose="idle"] .garden-pal-svg {animation:gp-flight 2.9s ease-in-out infinite}
  .garden-pal-art[data-pal="nahla"][data-pose="idle"] .gp-wing {animation:gp-bee-wing .16s ease-in-out infinite alternate}
  .garden-pal-art[data-pal="najma"][data-pose="idle"] .garden-pal-svg {animation:gp-twinkle 4.2s ease-in-out infinite}
  .garden-pal-art[data-pal="hudhud"][data-pose="idle"] .gp-crest {transform-origin:center bottom;animation:gp-crest-fan 3.4s ease-in-out infinite}
  .garden-pal-art[data-pal="hudhud"][data-pose="idle"] .gp-tail {transform-box:fill-box;transform-origin:center top;animation:gp-tail-flick 4.1s ease-in-out infinite}
  .garden-pal-art:is([data-pal="hudhud"],[data-pal="buma"]) .gp-wing {transform-origin:70% 12%}
  .garden-pal-art[data-pal="buma"][data-pose="idle"] .garden-pal-svg {animation:gp-sway 4s ease-in-out infinite}
}
@keyframes gp-idle {0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6%) rotate(2deg)}}
@keyframes gp-breathe-wing {0%,100%{transform:rotate(0)}50%{transform:rotate(-12deg)}}
@keyframes gp-stroll {0%,100%{transform:translateX(-4%) rotate(-1deg)}50%{transform:translateX(4%) rotate(1deg)}}
@keyframes gp-flight {0%,100%{transform:translate(-3%,0) rotate(-4deg)}50%{transform:translate(3%,-8%) rotate(4deg)}}
@keyframes gp-bee-wing {from{transform:scaleY(.72) rotate(-8deg)}to{transform:scaleY(1) rotate(8deg)}}
@keyframes gp-twinkle {0%,100%{transform:rotate(-5deg) scale(.97)}50%{transform:rotate(5deg) scale(1.04)}}
@keyframes gp-sway {0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes gp-blink { 0%, 65%, 72%, 100% { transform: scaleY(1); } 69% { transform: scaleY(.15); } }
@keyframes gp-wave { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-8deg); } 65% { transform: rotate(5deg); } }
@keyframes gp-wing { 50% { transform: rotate(-18deg); } }
@keyframes gp-crest-fan {0%,66%,100%{transform:scaleX(1)}78%{transform:scaleX(1.16) rotate(-4deg)}87%{transform:scaleX(1.05) rotate(2deg)}}
@keyframes gp-tail-flick {0%,72%,100%{transform:rotate(0)}82%{transform:rotate(-9deg)}90%{transform:rotate(4deg)}}
@keyframes gp-hop {0%,52%,100%{transform:translateY(0)}27%{transform:translateY(-9%) rotate(2deg)}74%{transform:translateY(-4%) rotate(-1deg)}}

[data-garden-pals] {
  --gp-ink: #173e33;
  --gp-green: #21674b;
  --gp-faint: #d7e4d7;
  --gp-paper: #fffef8;
  color: var(--gp-ink);
  background: var(--gp-paper);
  border: 1px solid var(--gp-faint);
  border-radius: 1.5rem;
  max-width: 51rem;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
  text-align: start;
  color-scheme: light;
}
[data-garden-pals] *, [data-garden-pals] *::before, [data-garden-pals] *::after { box-sizing: border-box; }
[data-garden-pals] .gp-back {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px;
  color: var(--gp-green); font-weight: 650; text-underline-offset: .2em;
}
[data-garden-pals] .gp-back > span { font-size: 1.4em; line-height: 1; }
[data-garden-pals] h1 {
  color: var(--gp-ink); margin: .4rem 0 1.15rem;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.03em;
}
[data-garden-pals] [data-gp-stage] {
  display: grid; grid-template-columns: minmax(9rem, .85fr) minmax(0, 1.25fr);
  background: #f1f6e9; border: 1px solid #ccdbbf; border-radius: 1.35rem; overflow: hidden;
}
[data-garden-pals] .gp-portrait {
  isolation: isolate; position: relative; overflow: hidden; padding: 1.25rem .65rem;
  display: grid; place-items: center;
  background: radial-gradient(circle at 24% 23%, #fff9c9 0 11%, transparent 11.5%), #e1efd6;
}
[data-garden-pals] .gp-portrait::before, [data-garden-pals] .gp-portrait::after {
  content: ""; position: absolute; z-index: -1; width: 115%; height: 66%; border-radius: 50% 50% 0 0;
}
[data-garden-pals] .gp-portrait::before { background: #c5dfae; inset-inline-start: 12%; bottom: -25%; }
[data-garden-pals] .gp-portrait::after { background: #adcf97; inset-inline-end: 28%; bottom: -33%; }
[data-garden-pals] .gp-greet {
  border: 0; background: transparent; box-shadow: none; color: var(--gp-ink); cursor: pointer;
  display: grid; place-items: center; gap: .3rem; padding: .4rem;
  border-radius: .9rem; font: inherit; font-weight: 700;
}
[data-garden-pals] .gp-greet .garden-pal-art {
  width: clamp(7.5rem, 21vw, 10.75rem); height: auto; aspect-ratio: 1;
}
[data-garden-pals] .gp-greet > span:last-child {
  background: var(--gp-paper); border: 1px solid #b0c69f;
  border-radius: 100vmax; padding: .2em .85em; font-size: .88em;
}
[data-garden-pals] .gp-bio {
  padding: clamp(1.1rem, 4vw, 2rem); align-self: center; min-width: 0;
}
[data-garden-pals] .gp-bio h2 { color: var(--gp-ink); font-size: 1.9em; line-height: 1.2; margin: 0; }
[data-garden-pals] .gp-topic { color: #3f6151; font-size: .92em; font-weight: 650; }
[data-garden-pals] .gp-bio p { font-size: 1.1em; line-height: 1.35; margin: .8em 0 1em; color: var(--gp-ink); }
[data-garden-pals] .gp-action {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .55em .95em;
  border-radius: .85rem; background: var(--gp-green); color: white; text-decoration: none; font-weight: 700;
}
[data-garden-pals] .gp-pick-heading { margin: 1.6rem 0 .75rem; font-size: 1.25rem; color: var(--gp-ink); }
[data-garden-pals] .gp-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
[data-garden-pals] .gp-choice {
  display: grid; place-items: center; gap: .1rem; padding: .45rem .2rem; border: 1px solid var(--gp-faint);
  border-radius: 1rem; background: #fff; color: var(--gp-ink); position: relative;
  font: inherit; font-weight: 650; cursor: pointer;
}
[data-garden-pals] .gp-choice .garden-pal-art { width: clamp(2.8rem, 8vw, 4rem); height: auto; aspect-ratio: 1; }
[data-garden-pals] .gp-choice[aria-pressed="true"] { background: #edf5e7; border-color: var(--gp-green); box-shadow: inset 0 0 0 1px var(--gp-green); }
[data-garden-pals] .gp-choice[aria-pressed="true"]::after {
  content: ""; position: absolute; inset-block-start: .55rem; inset-inline-end: .6rem;
  height: .65rem; width: .35rem; border: solid var(--gp-green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
[data-garden-pals] :is(button, a):focus-visible { outline: 3px solid #9c4600; outline-offset: 3px; }
[data-garden-pals][dir="rtl"] h1 { letter-spacing: normal; }
[data-garden-pals][dir="rtl"] :is(.gp-arrow, .gp-back > span) { display: inline-block; transform: scaleX(-1); }
@media (max-width: 36rem) {
  [data-garden-pals] [data-gp-stage] { grid-template-columns: 1fr; }
  [data-garden-pals] .gp-portrait { padding: .55rem; }
  [data-garden-pals] .gp-greet .garden-pal-art { width: 6.8rem; }
  [data-garden-pals] .gp-choices { gap: .4rem; }
}
@media (max-width: 23rem) {
  [data-garden-pals] .gp-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dark [data-garden-pals] {
  --gp-ink: #e7f1df; --gp-green: #abd6ac; --gp-faint: #48614e; --gp-paper: #202e27;
  color-scheme: dark;
}
.dark [data-garden-pals] [data-gp-stage] { background: #293c30; border-color: var(--gp-faint); }
.dark [data-garden-pals] .gp-portrait { background: radial-gradient(circle at 24% 23%, #d5d8ae 0 11%, transparent 11.5%), #3b5753; }
.dark [data-garden-pals] .gp-portrait::before { background: #446740; }
.dark [data-garden-pals] .gp-portrait::after { background: #325333; }
.dark [data-garden-pals] .gp-topic { color: #c1d4c2; }
.dark [data-garden-pals] .gp-action { color: #173925; }
.dark [data-garden-pals] .gp-choice { background: #28372e; }
.dark [data-garden-pals] .gp-choice[aria-pressed="true"] { background: #344e3b; }
.dark [data-garden-pals] :is(button, a):focus-visible { outline-color: #efc077; }

/* One illustrated cast, with space for the large interactive character. */
[data-garden-pals] {background:#f4faee;border:0;max-width:46rem}
[data-garden-pals] [data-gp-stage] {background:#fff;border:2px solid #d2e5ce;box-shadow:0 5px 0 #d5e5cc,0 14px 30px #1c4b2810}
[data-garden-pals] .gp-portrait {min-height:15rem;background:#e6f4d9}
[data-garden-pals] .gp-greet .garden-pal-art {width:clamp(8rem,22vw,12rem)}
[data-garden-pals] .gp-choice {padding:1rem .3rem .7rem;border:2px solid #d2e5ce;box-shadow:0 4px 0 #d2e5ce;min-height:8rem}
[data-garden-pals] .gp-choice .garden-pal-art {width:clamp(3.5rem,8vw,5rem)}
[data-garden-pals] .gp-choice[aria-pressed=true] {border-color:#ba820b;box-shadow:0 4px 0 #ba820b;background:#fff6d9}
[data-garden-pals] .garden-motion-control {float:inline-end}
[data-garden-pals] .gp-choices {gap:.8rem}
@media(max-width:36rem){[data-garden-pals] .gp-portrait{min-height:11rem}[data-garden-pals] .gp-greet .garden-pal-art{width:9rem}[data-garden-pals] .gp-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dark [data-garden-pals] {background:#203429}
.dark [data-garden-pals] [data-gp-stage],.dark [data-garden-pals] .gp-choice {background:#2b4033;border-color:#506b4f;box-shadow:0 4px 0 #405b43}
.dark [data-garden-pals] .gp-choice[aria-pressed=true] {background:#4b4329;border-color:#e5b944}

[data-garden-pals] .gp-name { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .75rem; }
[data-garden-pals] .gp-name-audio { min-height:44px; padding:.4rem .8rem; background:transparent; color:var(--gp-green); border:1px solid currentColor; border-radius:.7rem; font:inherit; cursor:pointer; }
@media(max-width:36rem) {
  [data-garden-pals] [data-gp-stage] {grid-template-columns: minmax(5.5rem, 30%) minmax(0,1fr)}
  [data-garden-pals] .gp-greet {width:100%;padding:.3rem}
  [data-garden-pals] .gp-greet .garden-pal-art {width:min(100%,7rem)}
  [data-garden-pals] .gp-portrait {min-height:0;padding:.2rem}
  [data-garden-pals] .gp-bio {padding:.7rem}
  [data-garden-pals] .gp-choices {gap:.5rem;grid-template-columns:repeat(3,minmax(0,1fr))}
  [data-garden-pals] .gp-choice {min-height:5.75rem;padding:.35rem .15rem}
}
@media(max-width:21rem) {
  [data-garden-pals] [data-gp-stage] {grid-template-columns:1fr}
  [data-garden-pals] .gp-portrait {padding:.35rem}
  [data-garden-pals] .gp-greet {display:flex;align-items:center;justify-content:center;gap:.5rem}
  [data-garden-pals] .gp-greet .garden-pal-art {width:3.25rem}
}


/* /garden-world.css */
/* Shared palette and living background, drawn from the supplied prototypes. */
:is(.garden-home,.garden-path,.garden-play,[data-garden-pals],.little-reader-root,.children-reading-path) {
  --garden-ink:#17352b;--garden-soft:#47635a;--garden-green:#138449;--garden-gold:#efad26;
  --garden-paper:#fff;--garden-line:#d2e5ce;--garden-wash:#edf7e7;
  position:relative;isolation:isolate;
}
.garden-atmosphere {position:absolute;inset:-2rem -4vw 0;overflow:hidden;pointer-events:none;z-index:-1;min-height:100%;border-radius:2rem;background:radial-gradient(ellipse at 92% 2%,#f9ebbe70,transparent 45%),radial-gradient(ellipse at 0 80%,#d4eccc75,transparent 62%)}
.garden-atmosphere.is-compact {inset:0;border-radius:inherit}
.garden-drift {position:absolute;left:var(--drift-left);bottom:0;inline-size:var(--drift-size);block-size:var(--drift-size);opacity:.32;pointer-events:none;animation:garden-drift var(--drift-time) linear infinite;animation-delay:var(--drift-delay)}
.garden-drift .garden-pal-art,.garden-drift .garden-pal-svg {display:block;width:100%;height:100%}
.garden-drift svg {stroke:none;fill:initial}
@keyframes garden-drift {from{transform:translateY(8rem) rotate(-15deg)}to{transform:translateY(-110vh) rotate(160deg)}}
.garden-motion-control {display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.4rem .75rem;border:1px solid var(--garden-line,#c7dac4);border-radius:999px;color:var(--garden-ink,#17352b);background:var(--garden-paper,#fff);font:650 .875rem/1.3 var(--font-ui,system-ui);cursor:pointer;white-space:normal}
.garden-motion-control::before {content:'';display:block;width:.5rem;height:.7rem;border-inline:2px solid currentColor;box-sizing:border-box;flex:none}
.garden-motion-control[aria-pressed=true]::before {width:0;height:0;border:0;border-block:.3rem solid transparent;border-inline-start:.5rem solid currentColor}
.garden-motion-control:disabled {opacity:.8;cursor:default}
.garden-motion-control:focus-visible {outline:3px solid #a06812;outline-offset:3px}
.garden-display-options {position:relative;flex:none;inline-size:44px;margin-inline-start:auto;color:var(--garden-ink,#17352b)}
.garden-display-options>summary {display:grid;place-items:center;inline-size:44px;block-size:44px;min-block-size:44px;padding:0;border:0;border-radius:.7rem;background:transparent;color:inherit;cursor:pointer;list-style:none}
.garden-display-options>summary::-webkit-details-marker {display:none}
.garden-display-options>summary:hover,.garden-display-options[open]>summary {background:var(--garden-wash,#edf5e9)}
.garden-display-options>summary:focus-visible {outline:3px solid #a06812;outline-offset:3px}
.garden-display-options>summary svg {inline-size:20px;block-size:20px;stroke:currentColor;fill:none}
.garden-display-panel {position:absolute;inset-inline-end:0;inset-block-start:calc(100% + .3rem);z-index:30;display:grid;gap:.65rem;inline-size:16rem;max-inline-size:calc(100vw - 2rem);padding:1rem;border:1px solid var(--garden-line,#c7dac4);border-radius:.9rem;background:var(--garden-paper,#fff);box-shadow:0 .4rem 1.4rem #12312422;text-align:start}
.garden-display-panel>strong {font-size:1rem}
.garden-display-panel>small {font-size:.875rem;line-height:1.5;color:var(--garden-soft,#456452)}
.garden-display-panel .garden-motion-control {inline-size:100%;justify-content:flex-start}
.garden-toolbar {display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin:0 0 1rem}
.garden-toolbar a {display:inline-flex;align-items:center;min-height:44px;padding:.35rem .5rem;color:var(--garden-ink);font-size:.9rem;font-weight:650;text-decoration:none}
/* Core illustrations keep their own authored fill and stroke attributes. */
:is(.garden-home,.garden-path,.garden-play,[data-garden-pals],.little-reader-root,.children-reading-path) .garden-pal-svg {stroke:none;fill:initial}
.dark :is(.garden-home,.garden-path,.garden-play,[data-garden-pals],.little-reader-root,.children-reading-path) {--garden-ink:#e8f5df;--garden-soft:#bed3b9;--garden-green:#9bd498;--garden-paper:#22392c;--garden-line:#4c6c52;--garden-wash:#294735}
.dark .garden-atmosphere {background:radial-gradient(ellipse at 90% 4%,#78693533,transparent 48%),radial-gradient(ellipse at 0 80%,#446c402b,transparent 65%)}
/* One switch also pauses learning engines and transient game celebrations. */
[data-garden-motion=paused] :is(.garden-home,.garden-path,.garden-play,[data-garden-pals],.little-reader-root,.children-reading-path,.garden-pal-art) *,
[data-garden-motion=paused] :is(.garden-home,.garden-path,.garden-play,[data-garden-pals],.little-reader-root,.children-reading-path)::before,
[data-garden-motion=paused] :is(.garden-home,.garden-path,.garden-play,[data-garden-pals],.little-reader-root,.children-reading-path)::after {animation-play-state:paused!important;transition:none!important}
@media(prefers-reduced-motion:reduce){
 .garden-atmosphere *,.garden-pal-art *,.garden-home *, .garden-path *, .garden-play *,[data-garden-pals] *,.little-reader-root *,.children-reading-path * {animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .garden-drift {transform:translateY(-12rem);opacity:.15}
}

.garden-atmosphere:not(.is-compact) {position:fixed;inset:0;border-radius:0;min-height:100vh}


/* /companion-ui.css */
/* Reuse the Garden artwork and responsive controls on Mushaf's other entrances. */
.mushaf-surface {
  --companion-paper: #fffdf5;
  --companion-wash: #edf5e9;
  --companion-line: #ccddc8;
  --companion-ink: #214c3d;
  --companion-gold: #f0cc76;
  isolation: isolate;
}
.mushaf-vignette {
  --vignette-size: 4.75rem;
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  inline-size: var(--vignette-size);
  block-size: var(--vignette-size);
  overflow: visible;
  vertical-align: middle;
  border-radius: 32% 42% 34% 42%;
  background: linear-gradient(145deg, #f6f8df, #dbeccf);
  border: 1px solid #d0e1c5;
  box-shadow: inset 0 1px 0 #ffffffb8, 0 3px 0 #c7d9bf55;
}
.mushaf-vignette--sm { --vignette-size: 2.75rem; }
.mushaf-vignette--lg { --vignette-size: 7rem; }
.mushaf-vignette--sand { background: linear-gradient(145deg, #fff8df, #f4dfb6); border-color: #e7d5ae; }
.mushaf-vignette--sky { background: linear-gradient(145deg, #eef6f1, #d9e9e9); border-color: #c9dddd; }
.mushaf-vignette > .garden-pal-art { display: block; inline-size: 92%; block-size: 92%; margin: 0; transform: none; }
.mushaf-vignette .garden-pal-svg { display: block; inline-size: 100%; block-size: 100%; stroke: none; fill: initial; }
.mushaf-vignette-portrait { display: block; inline-size: 88%; block-size: 88%; object-fit: cover; border-radius: 50%; }
.mushaf-vignette[data-ui-profile="youth"] { border-radius: 50%; background: #f3eddb; }
.mushaf-tactile {
  --press-depth: 3px;
  box-shadow: 0 var(--press-depth) 0 color-mix(in srgb, currentColor 16%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mushaf-tactile:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, currentColor 12%, transparent); }
.mushaf-tactile:focus-visible { outline: 3px solid #a87319; outline-offset: 4px; }
.dark .mushaf-surface { --companion-paper: #233b32; --companion-wash: #294735; --companion-line: #506c51; --companion-ink: #e4efda; }
.dark .mushaf-vignette { background: linear-gradient(145deg, #344c32, #284534); border-color: #58724e; box-shadow: inset 0 1px 0 #ffffff15, 0 3px 0 #00000020; }
.dark .mushaf-vignette--sand { background: linear-gradient(145deg, #4a4632, #3b432f); border-color: #74694a; }
.dark .mushaf-vignette--sky { background: linear-gradient(145deg, #304847, #2c4147); border-color: #4b6c6b; }
[data-garden-motion="paused"] .mushaf-tactile { transition: none !important; transform: none !important; }
[data-garden-motion="paused"] .mushaf-vignette *, [data-garden-motion="paused"] .mushaf-vignette { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion:reduce) {
  .mushaf-tactile, .mushaf-vignette, .mushaf-vignette * { animation: none !important; transition: none !important; transform: none !important; }
}
@media (max-width:40rem) { .mushaf-vignette--lg { --vignette-size: 5.5rem; } }

