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

/* /visual.css */
/* Sanctuary: a reading-first Imami visual system. */
:root{--bg:#f5f3eb;--panel:#fffdf8;--ink:#153a31;--muted:#738277;--line:#e5e6da;--green:#176c56;--gold:#b99a58;--pale:#ecf2e8;--light:#f1f4eb;--shadow:0 8px 32px #213b2910}body{background:var(--bg)}.app{grid-template-columns:220px minmax(0,1fr)}.sidebar,.dark .sidebar{background:#0b2c27;border:0;padding:31px 18px 23px;color:#fff}.brand{padding:0 10px 42px;gap:12px}.brand-mark{width:41px;height:46px;border-radius:50% 50% 6px 6px;border:1px solid #b99a5899;background:#174338;box-shadow:none;color:#e1c184}.brand strong{font-size:23px;letter-spacing:-.5px;color:#f3ebd5}.brand small{font-size:8px;letter-spacing:1.4px;color:#9bb6a5;margin-top:4px}.nav-label{color:#648b7a;font-size:9px;letter-spacing:1.6px}.nav{gap:6px}.nav button{color:#9eb9aa;height:48px;font-size:12px;padding:0 13px;border-radius:9px}.nav button:hover{background:#ffffff09}.nav button.active,.dark .nav button.active{background:#244a3b;color:#ecd59f;box-shadow:inset 2px 0 #c6a45d}.nav button svg{width:18px;height:18px}.side-note,.dark .side-note{background:transparent;border:1px solid #42604980;border-radius:80px 80px 10px 10px;text-align:center;padding:27px 14px 21px}.side-note .moon{color:#ceb477;font-size:28px}.side-note strong{font-size:11px;line-height:1.6;color:#d9e4d5}.side-note p{font-size:10px;color:#86a18e}.sidebar-footer{text-align:center;font-size:9px;line-height:2.3;color:#72927c}.sidebar-footer span{font-family:var(--arabic);font-size:20px;color:#bca573}.topbar{height:73px;padding:0 4.2%;background:transparent;border-color:#e2e4d8}.top-title{font-size:13px;color:var(--muted);letter-spacing:0}.top-right{gap:12px}.date{font-size:10px}.circle-btn{width:34px;height:34px;background:transparent;border-color:#d9dfd0;font-size:15px}.install-app{border:1px solid #d6dece;background:#fffdf8;min-height:34px;padding:0 12px;border-radius:7px;color:#3e6653;font-size:10px;font-weight:700}.install-app span{margin-right:6px;font-size:14px}.layout{padding:32px 4.2% 70px;gap:28px;max-width:1600px;grid-template-columns:minmax(0,1fr) 252px}.home-page .layout{display:block}.home-page .rail{display:none}.home-welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.home-welcome .eyebrow{font-size:8px;letter-spacing:2px;margin:0 0 8px;color:#9a8149}.home-welcome h1{font:700 27px Manrope,sans-serif;letter-spacing:-1px;margin:0}.home-date{font-size:11px;color:#869280}.sanctuary-hero{position:relative;overflow:hidden;min-height:390px;border:1px solid #193f31;border-radius:18px;background:#082e25 url('shrine-art.png') center 53%/cover no-repeat;box-shadow:0 12px 30px #13392622;display:flex;align-items:center}.sanctuary-hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,34,27,.45),rgba(3,24,20,.08) 45%,transparent 64%);pointer-events:none}.sanctuary-copy{position:relative;width:45%;padding:35px 0 35px 38px;color:#fff;z-index:1}.sanctuary-copy .hero-label{font-size:8px;letter-spacing:1.8px;color:#d7b975;font-weight:700;display:flex;gap:8px;align-items:center}.sanctuary-copy .hero-label span{font-size:18px}.sanctuary-copy h2{font:600 clamp(25px,3vw,42px)/1.22 Georgia,'Times New Roman',serif;letter-spacing:-.7px;margin:20px 0 14px;color:#f7f1dc}.sanctuary-copy h2 em{color:#d8bd80;font-weight:400}.sanctuary-copy p{font-size:11px;line-height:1.9;color:#bcd0bc;margin:0 0 23px}.btn-gold{background:#dfc182;color:#183d2d;border:1px solid #ecd49f;padding:0 18px;font-size:11px;min-height:40px;border-radius:6px;box-shadow:0 4px 18px #0002}.btn-gold span{margin-left:10px;font-size:17px}.btn-gold:hover{background:#efd49c}.hero-resume{font-size:10px;font-weight:600;color:#c5d5bf;margin-top:15px;display:flex;gap:9px;align-items:center}.hero-resume span{font-weight:400;font-size:9px;color:#8ba88d}.art-caption{position:absolute;right:16px;bottom:12px;color:#d2c9ae;font-size:8px;letter-spacing:.4px;text-shadow:0 1px 4px #000}.practice-section{margin:22px 0 34px}.practice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.practice-card{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:11px;text-align:left;padding:19px 16px;transition:.2s;min-width:0;box-shadow:0 3px 12px #1b392008}.practice-card:hover{border-color:#b7c5ab;transform:translateY(-2px)}.practice-symbol{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;color:#426b51;background:#eff2e8;border-radius:10px;font-size:26px}.practice-symbol svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.5;fill:none}.mic-symbol{background:#f5eddc;color:#a38749}.practice-card strong{display:block;font:800 12px Manrope,sans-serif;margin-bottom:5px}.practice-card small{display:block;color:#849080;font-size:9px;line-height:1.6}.practice-card>b{margin-left:auto;color:#81977d;font-size:16px;font-weight:400}.home-lower{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:25px;align-items:start}.section-head{margin-bottom:16px}.section-head .eyebrow{font-size:8px;letter-spacing:1.5px;color:#aa8d50;margin:0 0 7px}.section-head h2,.library-section h2,.home-surahs h2,.daily-panel h2{font:800 17px Manrope,sans-serif;letter-spacing:-.5px;margin:0;color:var(--ink)}.text-link{font-size:10px;color:#648366;white-space:nowrap}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.library-book{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #d7ddcc;border-radius:10px;background:#edf0e4;min-height:216px;padding:17px 15px;color:#254a36;box-shadow:inset 3px 0 0 #b5c1a477}.library-book:before{content:'';position:absolute;top:28px;right:-20px;border:1px solid #a0b29344;width:90px;height:90px;transform:rotate(45deg)}.book-index{font-size:6.8px;letter-spacing:.8px;font-weight:700;color:#7c9271;z-index:1}.book-ar{font:500 28px/1.75 var(--arabic);color:#507145;align-self:center;text-align:center;margin:22px 0 12px;min-height:48px;width:100%;z-index:1}.library-book strong{font:800 13px Manrope,sans-serif;margin:0 0 6px;z-index:1}.library-book small{font-size:8px;color:#839174;line-height:1.6;z-index:1}.book-open{font-size:8px;margin-top:auto;padding-top:17px;letter-spacing:.1px;color:#607c4e;z-index:1}.library-book.qummi{background:#e6edeb;border-color:#cedcd5;box-shadow:inset 3px 0 0 #8bada777}.qummi .book-ar{color:#376a60}.qummi .book-index,.qummi .book-open{color:#62867d}.library-book.askari{background:#f1ecdf;border-color:#e1d8bd;box-shadow:inset 3px 0 0 #c2ad7677}.askari .book-ar{font-size:24px;color:#947e47}.askari .book-index,.askari .book-open{color:#a28c54}.library-book:hover{transform:translateY(-2px);box-shadow:0 8px 18px #2341240d}.library-note{font-size:9px;line-height:1.7;color:#8b9785;margin:13px 2px 0}.daily-panel{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:21px 18px}.daily-panel .section-head{gap:8px}.daily-panel h2{font-size:15px}.daily-panel .eyebrow{font-size:7px;letter-spacing:1px}.daily-count{display:flex;flex-direction:column;margin:23px 0 13px;gap:7px}.daily-count strong{font:700 31px Manrope,sans-serif;color:#275c44;letter-spacing:-1px}.daily-count strong span{font-size:16px;color:#a9b39d;font-weight:400;letter-spacing:0}.daily-count>span{font-size:9px;color:#9aa18d}.daily-panel p{font-size:10px;color:#86947b;line-height:1.8;margin:17px 0}.daily-panel .bar{height:4px;background:#edf0e3}.daily-panel .bar span{background:#a4b587}.daily-bookmark{padding:12px 0 0;background:none;border:0;border-top:1px solid var(--line);display:flex;align-items:center;gap:7px;width:100%;color:#6d8860;font-size:9px}.daily-bookmark svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.5;fill:none}.daily-bookmark b{margin-left:auto}.home-surahs{margin-top:31px}.home-surah-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.home-surah-grid .surah-row{border:1px solid var(--line);border-radius:10px;padding:15px 13px;gap:11px}.home-surah-grid .surah-ar{font-size:21px}.home-surah-grid .surah-info strong{font-size:11px}.home-surah-grid .surah-info small{font-size:8px}.home-surah-grid .surah-number{width:30px;height:34px;font-size:9px;border-radius:6px}.home-foot{border-top:1px solid #e2e4d6;margin-top:35px;padding:22px 0 0;display:flex;align-items:center;gap:20px;color:#9ba18b}.home-foot>span{font:500 24px var(--arabic);color:#a69b73;white-space:nowrap}.home-foot p{font-size:8px;line-height:1.8;margin:0}.home-foot a{color:inherit}.reader-page .layout{grid-template-columns:minmax(0,850px);justify-content:center}.reader-page .rail{display:none}.reader-page .reader-header{align-items:center}.reader-header h1,.page-title{font-size:28px}.reader-intro{background:#faf9f0;border-color:#dfe3d1;padding:28px;border-radius:14px;box-shadow:none}.reader-intro .arabic-name{font-size:44px;color:#406c45}.reader-intro h2{font-size:13px;color:#6f8565;margin-top:7px}.reader-intro p{font-size:10px}.verse-card{padding:26px 30px;border-radius:13px;box-shadow:none}.verse-ar{margin:26px 0 22px;line-height:2.3}.verse-en{font-size:13px;color:#65785e;line-height:1.9}.verse-en small{font-size:9px}.verse-ref{font-size:10px;background:#f0f3e7;color:#68835a}.icon-button{min-width:34px;min-height:34px}.verse-actions{padding-top:16px}.verse-action{font-size:10px;padding:9px 12px;border-color:#dee5d4;color:#5a7c4e;min-height:38px}.tool{font-size:10px;color:#6d8563;padding:10px}.reader-tools{align-items:center}.footer-note{font-size:10px;line-height:1.8}.notice{font-size:11px;line-height:1.8;border-color:#e3e7d7;background:#f0f3e8;color:#7e8d6e}.settings-card{background:var(--panel)}.setting-row{padding:20px}.setting-row small{max-width:340px}.setting-row select{max-width:180px}.dark{--bg:#10251f;--panel:#172f27;--ink:#e0e9d6;--muted:#99ac95;--line:#2a4335;--green:#99ba80;--pale:#244331;--light:#203b2d}.dark .topbar{background:transparent}.dark .top-title{color:#a6b99d}.dark .install-app{background:#234332;color:#d8e5c4;border-color:#385440}.dark .home-welcome h1,.dark .section-head h2,.dark .daily-panel h2{color:var(--ink)}.dark .sanctuary-hero{border-color:#375a41}.dark .practice-symbol{background:#2b4533;color:#b4c59b}.dark .mic-symbol{background:#4c4731;color:#d3b770}.dark .library-book{background:#2b3d2c;border-color:#3c5038}.dark .library-book.qummi{background:#24413a;border-color:#355449}.dark .library-book.askari{background:#413f2c;border-color:#565139}.dark .library-book strong{color:#e0e6cc}.dark .library-book .book-ar{color:#bacbaa}.dark .library-book small,.dark .library-book .book-open,.dark .library-book .book-index{color:#a7b795}.dark .daily-count strong{color:#cadbb8}.dark .daily-panel .bar{background:#304a35}.dark .home-foot{border-color:#304633}.dark .reader-intro{background:#213b2b;border-color:#38503a}.dark .reader-intro .arabic-name{color:#b8cca1}.dark .verse-en{color:#b0c0a2}.dark .verse-ref{background:#2e4931;color:#c1d2ab}.dark .notice{background:#243b2b;color:#b4c3a7;border-color:#3c5039}.dark .verse-action{color:#b1c69d;border-color:#3d543c}.dark .tool{color:#b7c8a7}.dark .circle-btn{border-color:#3b5038;color:#d0dfb7}
@media(min-width:1600px){.sanctuary-hero{min-height:430px}.sanctuary-copy{padding-left:47px}.sanctuary-copy h2{font-size:47px}}
@media(max-width:1200px){.app{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding-left:14px;padding-right:14px}.layout{padding-left:3.5%;padding-right:3.5%}.sanctuary-copy{padding-left:28px;width:45%}.sanctuary-copy h2{font-size:34px}.home-lower{grid-template-columns:minmax(0,1fr) 215px;gap:16px}.library-book{padding:15px 11px}.book-ar{font-size:25px}.askari .book-ar{font-size:21px}.practice-card{padding:16px 12px;gap:9px}.practice-card strong{font-size:11px}.practice-card small{font-size:8px}.practice-symbol{width:34px;height:36px}.home-surah-grid .surah-ar{display:none}}
@media(max-width:950px){.home-lower{grid-template-columns:1fr}.daily-panel{display:none}.sanctuary-hero{min-height:350px}.sanctuary-copy h2{font-size:29px}.sanctuary-copy p{font-size:10px}.hero-resume{display:block}.hero-resume span{display:block;margin-top:5px}.practice-card{gap:8px;padding:15px 10px}.practice-symbol{width:30px;height:32px}.practice-card>b{display:none}.home-date{display:none}}
@media(max-width:700px){body{padding-bottom:75px}.app{display:block}.topbar{height:61px;padding:0 19px;background:#faf8ef}.top-title{font-size:12px;font-weight:800;letter-spacing:.1px}.top-title:before{color:#a99055;margin-right:4px}.top-right{gap:9px}.install-app{min-height:31px;padding:0 10px;font-size:9px}.circle-btn{width:31px;height:31px}.layout{padding:24px 17px 50px}.home-welcome{margin-bottom:20px}.home-welcome h1{font-size:24px}.home-welcome .eyebrow{font-size:7px;letter-spacing:1.7px}.sanctuary-hero{min-height:350px;border-radius:13px;background-position:57% center;background-size:auto 100%}.sanctuary-hero:before{background:linear-gradient(90deg,rgba(5,35,28,.9),rgba(5,35,28,.78) 35%,rgba(5,35,28,.15) 76%,transparent)}.sanctuary-copy{width:70%;padding:24px 0 29px 22px}.sanctuary-copy h2{font-size:30px;line-height:1.25;letter-spacing:-.5px;margin:18px 0 13px}.sanctuary-copy .hero-label{font-size:6.8px;letter-spacing:1.15px}.sanctuary-copy p{font-size:10px;line-height:1.8;margin-bottom:20px}.btn-gold{font-size:10px;min-height:38px;padding:0 14px}.hero-resume{font-size:9px;margin-top:13px}.hero-resume span{font-size:8px}.art-caption{font-size:6px;bottom:9px;right:10px;max-width:110px;text-align:right}.practice-section{margin:16px 0 29px}.practice-grid{gap:7px}.practice-card{flex-direction:column;align-items:flex-start;padding:14px 10px 13px;min-height:126px;border-radius:9px;gap:10px}.practice-symbol{width:31px;height:32px;border-radius:7px}.practice-symbol svg{width:18px;height:18px}.practice-card strong{font-size:10px;margin-bottom:5px}.practice-card small{font-size:8px;line-height:1.65}.section-head{margin-bottom:14px}.section-head h2,.library-section h2,.home-surahs h2{font-size:16px}.section-head .eyebrow{font-size:6.8px;letter-spacing:1.2px}.text-link{font-size:9px}.library-grid{gap:8px}.library-book{padding:13px 10px;min-height:202px;border-radius:8px}.book-index{font-size:5.3px;letter-spacing:.25px;min-height:16px}.book-ar{font-size:22px;margin:19px 0 12px;line-height:1.6;min-height:50px;align-content:center}.askari .book-ar{font-size:19px}.library-book strong{font-size:10px;letter-spacing:-.1px}.library-book small{font-size:7px;line-height:1.7}.book-open{font-size:6.6px;padding-top:14px}.library-note{font-size:8px}.home-surahs{margin-top:28px}.home-surah-grid{grid-template-columns:1fr;gap:8px}.home-surah-grid .surah-ar{display:block}.home-surah-grid .surah-row{padding:13px 15px;gap:13px}.home-surah-grid .surah-info strong{font-size:12px}.home-surah-grid .surah-info small{font-size:9px}.home-surah-grid .surah-number{width:32px;height:34px}.home-foot{margin-top:26px;padding-top:19px;gap:13px}.home-foot>span{font-size:21px}.home-foot p{font-size:7px}.mobile-nav{height:70px;background:#fffdf8;border-color:#e1e4d7;box-shadow:0 -6px 20px #12391b05}.mobile-nav button{font-size:9px;color:#9da58d}.mobile-nav button.active{color:#597d45}.mobile-nav button.active svg{color:#466b36}.mobile-nav svg{width:20px;height:20px}.dark .topbar,.dark .mobile-nav{background:#163125}.dark .mobile-nav button.active{color:#d1dcb6}.dark .mobile-nav button.active svg{color:#d1dcb6}.reader-header{gap:19px;align-items:flex-start!important}.reader-header h1,.page-title{font-size:25px}.reader-header .eyebrow{font-size:8px}.reader-header .subtle{font-size:11px}.reader-tools{gap:6px}.tool{font-size:9px;padding:10px 8px;min-height:34px}.reader-intro{padding:24px 15px}.reader-intro .arabic-name{font-size:39px}.verse-card{padding:20px 18px}.verse-ar{line-height:2.2}.verse-en{font-size:12px}.verse-actions{gap:7px}.verse-action{font-size:9px;padding:9px;min-height:38px}.setting-row{padding:16px;gap:12px;flex-wrap:wrap}.setting-row strong{font-size:12px}.setting-row small{font-size:10px;max-width:260px}.setting-row select{font-size:11px;max-width:100%}.settings-card{margin-top:16px}.notice{font-size:10px}.footer-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Source reader: the work, its scope, and the passage remain distinct. */
.study-sheet{background:#faf8ef}.study-tabs{display:flex;gap:6px;margin:20px 0 18px;border-bottom:1px solid #e2e5d5;padding-bottom:13px;flex-wrap:wrap}.study-tab{border:1px solid #dce3d3;border-radius:7px;color:#6d865d;background:#f8faf0;padding:9px 12px;font:700 11px 'DM Sans',sans-serif;cursor:pointer}.study-tab.active{background:#264d37;border-color:#264d37;color:#e4d5ad}.study-priority{border:1px solid #e2e5d4;border-radius:12px;background:#fffef8;padding:21px}.study-source-title h3{font:600 31px/1.8 var(--arabic);color:#547348;margin:0 0 7px;text-align:right}.study-source-title h4{font:800 17px Manrope,sans-serif;margin:0 0 7px;color:#284e38;letter-spacing:-.4px}.study-source-title p{font-size:11px;color:#81916f;line-height:1.8;margin:0 0 12px}.study-scope{display:block;border-left:2px solid #c5ad72;background:#f6f1df;padding:10px 12px;color:#8b7b4d;font-size:10px;line-height:1.7;margin:16px 0}.study-arabic{font:500 24px/2.1 var(--arabic);direction:rtl;text-align:right;color:#365d40;margin:15px 0;padding:12px;border-right:2px solid #b7c49b;background:#f4f7eb;border-radius:5px}.study-source-links{display:grid;gap:8px;margin-top:18px}.study-open-source{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f1f5e8;border:1px solid #dce5cc;color:#537547;padding:11px 12px;border-radius:7px;font-size:11px;font-weight:700;text-decoration:none}.study-open-source:hover{background:#e9f0dd}.study-intro,.study-coverage,.study-source-note{font-size:11px;line-height:1.8;color:#819174}.study-secondary{margin-top:23px;border:1px solid #e0e4d4;padding:14px;border-radius:9px}.study-secondary summary{cursor:pointer;font-size:12px;font-weight:700;color:#6a815a}.study-secondary .study-list{margin-top:12px}.study-source-note{margin-top:16px}.dark .study-sheet{background:#152d23;color:#c2d1b1}.dark .study-top{border-color:#38513b}.dark .study-top h2{color:#d8e2c8}.dark .study-top p{color:#92aa86}.dark .study-close{background:#263e2c;border-color:#3c543b;color:#c2d4ad}.dark .study-tabs{border-color:#3c5139}.dark .study-tab{background:#243b28;border-color:#3c5337;color:#acbf9c}.dark .study-tab.active{background:#cbb577;color:#183d24;border-color:#cbb577}.dark .study-priority,.dark .study-source{background:#1d3527;border-color:#3c5036;color:#c4d4b1}.dark .study-source-title h3{color:#c5d5b1}.dark .study-source-title h4{color:#e0e5ce}.dark .study-scope{background:#383d28;color:#c5b779}.dark .study-arabic{background:#2b432d;color:#d4dfbd}.dark .study-open-source{background:#2b432d;border-color:#3a5538;color:#bed1a6}.dark .study-secondary{border-color:#3b5035}.dark .study-secondary summary{color:#bfd2a7}.dark .study-source-icon{background:#30462c}.dark .study-insight{background:#323a27;border-color:#5b5935;color:#c7d1b0}.dark .study-insight a{color:#bfd0a1}@media(max-width:600px){.study-priority{padding:17px}.study-source-title h3{font-size:28px}.study-tab{font-size:10px;padding:9px 10px}.study-tabs{gap:5px}.study-source-title h4{font-size:15px}.study-arabic{font-size:22px}.study-sheet{padding-bottom:calc(40px + env(safe-area-inset-bottom))}}


/* /reader-enhancements.css */
/* Tilāwah: quiet reading, purposeful navigation, generous touch surfaces. */
:root{--muted:#667664}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.btn,.tool,.icon-button,.circle-btn,.text-link,.verse-action,.install-app,.study-tab,.study-close{min-height:44px}.icon-button,.circle-btn,.study-close{min-width:44px}.text-link{display:inline-flex;align-items:center;justify-content:center;white-space:normal;line-height:1.45}.circle-btn{border-radius:12px}.secondary-nav{font-size:20px}.top-right{gap:7px}.topbar{gap:12px}.top-title{font-size:14px}.top-title:before{margin-right:6px}.install-app{font-size:11px}.topbar .date{display:none}.nav button{font-size:13px}.nav button:nth-child(5){margin-top:25px}.nav button:nth-child(n+5){color:#a6bdad}.nav-label{font-size:10px;color:#91ac9a}.sidebar-footer{color:#9fb49e}.sidebar-footer span{color:#d6be84}.side-note p{color:#a5bca7}.brand small{font-size:9px}.layout{padding-top:28px}.home-welcome{margin-bottom:20px}.home-welcome .eyebrow{font-size:10px;color:#92733d;letter-spacing:1.6px}.home-welcome h1{font-size:29px}.home-date{font-size:12px;color:#667664}.sanctuary-hero{min-height:315px;border-radius:20px;background-position:center 52%}.sanctuary-copy{width:48%;padding:30px 0 29px 36px}.sanctuary-copy h2{font-size:clamp(31px,3.1vw,44px);line-height:1.14;margin:14px 0}.sanctuary-copy .hero-label{font-size:9px;color:#e6ca8a;letter-spacing:1.3px}.sanctuary-copy p{font-size:12px;color:#cfddcd;line-height:1.75;margin-bottom:19px}.btn-gold{font-size:12px;min-height:46px;border-radius:9px;padding-inline:19px}.hero-resume{font-size:11px;margin-top:12px;gap:10px;flex-wrap:wrap}.hero-resume span{font-size:10px;color:#bdd0b9}.art-caption{font-size:8px}.practice-section{margin:18px 0 24px}.practice-grid{gap:12px}.practice-card{padding:19px 17px;border-radius:14px;gap:12px}.practice-card strong{font-size:13px;margin-bottom:5px}.practice-card small{font-size:11px;color:#63735e;line-height:1.5}.practice-card>b{display:block}.practice-symbol{height:42px;width:42px}.home-lower{grid-template-columns:1fr;margin-top:28px}.home-lower>.daily-panel{display:none}.section-head h2,.library-section h2,.home-surahs h2{font-size:20px}.section-head .eyebrow{font-size:9px;color:#8e733e;letter-spacing:1.1px}.text-link{font-size:12px;color:#366f53}.library-grid{gap:14px}.library-book{min-height:220px;border-radius:13px;padding:20px;box-shadow:inset 4px 0 0 #b5c1a477}.book-index{font-size:9px;letter-spacing:.7px;color:#657b5b}.book-ar{font-size:32px;line-height:1.8;margin:17px 0 13px;min-height:50px}.library-book.askari .book-ar{font-size:29px}.library-book strong{font-size:15px}.library-book small{font-size:11px;color:#617256}.book-open{font-size:11px;padding-top:15px;color:#45653a}.qummi .book-index,.qummi .book-open{color:#456c61}.askari .book-index,.askari .book-open{color:#7c6938}.library-note{font-size:11px;color:#6e7a63;margin-top:12px}.home-surah-grid .surah-info strong{font-size:13px}.home-surah-grid .surah-info small{font-size:11px;color:#667664}.home-surah-grid .surah-ar{font-size:23px}.home-surah-grid .surah-number{font-size:11px;width:36px;height:40px}.home-learn-prompt{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:28px;padding:25px 27px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(110deg,#eef1e7,#f9f6eb)}.home-learn-prompt .eyebrow{display:block;font-size:9px;color:#8b733e}.home-learn-prompt h2{font:800 20px/1.4 Manrope,sans-serif;letter-spacing:-.5px;margin:5px 0 7px}.home-learn-prompt p{font-size:12px;line-height:1.75;max-width:570px;margin:0;color:#68785e}.home-learn-prompt .btn{white-space:nowrap;border-color:#bccdb3;font-size:12px}.home-foot p{font-size:10px;line-height:1.75;color:#728065}.home-foot>span{font-size:28px;color:#8b7c4f}.learn-page .layout,.progress-page .layout{display:block}.learn-page .rail,.progress-page .rail{display:none}.page-title{font-size:32px;line-height:1.25}.subtle{font-size:14px}.search{min-height:52px}.surah-row{min-height:79px}.surah-info strong{font-size:14px}.surah-info small{font-size:12px}.surah-ar{font-size:25px}.reader-page .layout{max-width:1250px;grid-template-columns:minmax(0,850px);padding-top:27px}.reader-header{margin-bottom:18px;gap:20px}.reader-header h1{font-size:28px}.reader-header .subtle{font-size:12px}.reader-tools{max-width:465px;gap:6px;justify-content:flex-end}.tool{font-size:11px;padding:11px 13px;border-radius:9px;color:#42684a}.tool:disabled{opacity:.4;cursor:default}.reader-navigation{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 13px;padding:12px;border:1px solid var(--line);background:var(--panel);border-radius:12px}.verse-jump{display:flex;gap:7px;align-items:center}.verse-jump label{font-size:11px;color:var(--muted)}.verse-jump input{width:68px;min-height:44px;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:8px;border-radius:7px;text-align:center}.verse-jump .tool{min-width:44px}.reader-intro{padding:24px;margin-bottom:18px;border-radius:16px}.reader-intro .arabic-name{font-size:43px}.reader-intro h2{font-size:14px}.reader-intro p{font-size:11px}.cache-status{color:#54734b;font-size:11px;line-height:1.6;margin:12px 0}.verse-card{padding:27px 30px;margin-bottom:14px;border-radius:15px;scroll-margin-top:22px}.verse-top{gap:5px}.verse-ref{font-size:12px;padding:7px 10px}.verse-top>small{font-size:10px!important}.verse-ar{font-size:var(--arabic-size);line-height:2.2;overflow-wrap:anywhere;margin:24px 0}.verse-en{font-size:14px;color:#4f644b;line-height:1.9}.verse-en small{font-size:10px;color:#748269;margin-top:7px}.icon-button{font-size:21px;border-radius:8px;transition:background .15s}.icon-button:hover{background:var(--pale)}.icon-button.saved{color:#9b7128}.verse-action{font-size:12px;padding:10px 13px;color:#3c6b44}.verse-actions{gap:10px;margin-top:22px}.footer-note{font-size:11px;color:#6f7d64}.notice{font-size:12px;color:#637452}.setting-row strong{font-size:14px}.setting-row small{font-size:12px;max-width:470px;line-height:1.7}.setting-row select{min-height:44px;max-width:215px;font-size:12px}.settings-card{margin-top:25px}.setting-row{padding:22px}.audio-player{position:fixed;z-index:30;bottom:18px;left:240px;right:20px;max-width:1060px;margin:auto;display:flex;align-items:center;gap:20px;background:#173e32;color:#f1f3df;border:1px solid #497556;border-radius:15px;padding:15px 18px;box-shadow:0 10px 40px #10241944}.audio-player[hidden]{display:none}.player-location{border:0;padding:0;background:none;color:inherit;text-align:left;min-height:44px;min-width:185px}.player-location span{display:block;color:#c5b47d;font-size:8px;letter-spacing:1.2px;margin-bottom:5px}.player-location strong{display:block;font-size:13px;font-weight:600;line-height:1.4}.player-location small{display:block;font-size:10px;color:#b2c5a5;margin-top:4px}.player-timeline{flex:1;min-width:70px}.player-timeline input{width:100%;accent-color:#dbbe7d;min-height:30px;cursor:pointer}.player-timeline small{display:block;font-size:10px;color:#c5d3b7;font-variant-numeric:tabular-nums}.player-actions{display:flex;gap:7px;align-items:center}.player-actions .tool{background:#2d5840;border-color:#4a7050;color:#f2efd5;min-width:44px}.player-repeat select{border:1px solid #4a7050;background:#214834;color:#e7ebd2;border-radius:8px;min-height:44px;max-width:125px;padding:7px;font-size:11px}.has-audio{padding-bottom:120px}.has-audio .toast{bottom:130px}.audio-player input:focus-visible,.audio-player select:focus-visible{outline:3px solid #dfc584;outline-offset:3px}.dark{--muted:#a7b99d}.dark .practice-card small,.dark .library-note,.dark .home-date,.dark .home-foot p{color:#a9bb99}.dark .home-learn-prompt{background:linear-gradient(110deg,#263c2b,#2b3b2a);border-color:#41543a}.dark .home-learn-prompt p{color:#aec09e}.dark .section-head .eyebrow,.dark .home-learn-prompt .eyebrow,.dark .home-welcome .eyebrow{color:#c2ab74}.dark .home-learn-prompt .btn{color:#d2dfc0;background:#304b31;border-color:#5b704d}.dark .text-link{color:#b3cd96}.dark .verse-en{color:#c2d1b4}.dark .verse-en small,.dark .footer-note,.dark .cache-status{color:#a7ba95}.dark .icon-button.saved{color:#e5c178}.dark .verse-action{color:#c0d4a8}.dark .tool{color:#c9dab7}.dark .home-surah-grid .surah-info small{color:#a7ba95}.dark .home-foot>span{color:#c7b77d}
@media(min-width:1600px){.sanctuary-hero{min-height:335px}.sanctuary-copy h2{font-size:45px}}
@media(max-width:1200px){.audio-player{left:217px}.home-surah-grid .surah-ar{display:none}.library-book{padding:18px 16px}.library-book.askari .book-ar{font-size:25px}.reader-header{flex-direction:column;align-items:flex-start!important}.reader-tools{max-width:none;justify-content:flex-start}.home-learn-prompt{padding:23px}.practice-card{gap:10px;padding:17px 13px}.practice-card small{font-size:10px}.practice-symbol{height:35px;width:35px}}
@media(max-width:950px){.sanctuary-copy{width:56%;padding-left:27px}.sanctuary-copy h2{font-size:36px}.practice-grid{grid-template-columns:1fr}.practice-card{flex-direction:row;align-items:center;min-height:82px;gap:15px;padding:16px 19px}.practice-card strong{font-size:14px}.practice-card small{font-size:12px}.practice-card>b{display:block}.practice-symbol{width:43px;height:43px}.library-grid{grid-template-columns:1fr}.library-book{min-height:155px;display:grid;grid-template-columns:1fr 1fr;column-gap:15px;padding:19px 23px}.book-index{grid-column:1;grid-row:1;font-size:9px;min-height:0}.book-ar,.library-book.askari .book-ar{grid-column:2;grid-row:1/5;font-size:31px;margin:0;min-height:0;align-self:center}.library-book strong{font-size:16px;margin-top:12px}.library-book small{font-size:12px}.book-open{font-size:11px;padding-top:12px}.home-learn-prompt{align-items:flex-start;flex-direction:column;gap:15px}.home-surah-grid{grid-template-columns:1fr}.home-surah-grid .surah-ar{display:block}.home-surah-grid .surah-row{padding:15px 18px}.section-head{align-items:center}.book-index{line-height:1.5}}
@media(max-width:700px){body{padding-bottom:80px}.layout{padding:24px 17px 40px}.topbar{height:67px;padding:0 15px;gap:10px}.top-title{font-size:13px;white-space:nowrap}.top-right{gap:5px}.top-right .circle-btn{border:0;background:transparent;min-width:36px;width:36px;min-height:44px}.top-right .install-app{font-size:10px;padding:0 8px;min-height:44px;max-width:88px}.top-right .install-app span{display:none}.top-title:before{font-size:21px}.home-welcome h1{font-size:25px}.home-welcome .eyebrow{font-size:9px}.sanctuary-hero{min-height:295px;border-radius:17px;background-position:54% 50%}.sanctuary-copy{width:85%;padding:25px 20px}.sanctuary-copy h2{font-size:35px;line-height:1.12;margin:12px 0 13px}.sanctuary-copy p{font-size:12px;line-height:1.6;margin-bottom:17px}.sanctuary-copy .hero-label{font-size:8px;letter-spacing:1px}.hero-resume{font-size:11px;display:block}.hero-resume span{font-size:10px;margin-top:4px;display:block}.art-caption{display:none}.btn-gold{font-size:12px;min-height:45px}.practice-section{margin:15px 0 23px}.practice-grid{gap:9px}.practice-card{padding:14px 16px;min-height:77px;border-radius:12px}.practice-card strong{font-size:13px}.practice-card small{font-size:11px}.practice-symbol{width:39px;height:39px}.practice-symbol svg{width:20px;height:20px}.practice-card>b{font-size:19px}.section-head h2,.library-section h2,.home-surahs h2{font-size:19px}.section-head .eyebrow{font-size:8px}.section-head{gap:10px}.section-head .text-link{font-size:11px;max-width:125px;flex-shrink:0}.home-lower{margin-top:25px}.library-grid{gap:11px}.library-book{padding:18px;min-height:156px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.book-index{font-size:8px;letter-spacing:.5px}.book-ar,.library-book.askari .book-ar{font-size:28px;line-height:1.75}.library-book strong{font-size:14px}.library-book small{font-size:10px;line-height:1.7}.book-open{font-size:10px}.library-note{font-size:11px;line-height:1.8}.home-learn-prompt{padding:21px;margin-top:24px}.home-learn-prompt h2{font-size:20px}.home-learn-prompt p{font-size:12px}.home-learn-prompt .btn{width:100%}.home-foot p{font-size:9px;line-height:1.8}.home-foot>span{font-size:24px}.home-foot{align-items:flex-start;margin-top:29px}.home-surah-grid .surah-info strong{font-size:14px}.home-surah-grid .surah-info small{font-size:11px}.page-title{font-size:28px}.subtle{font-size:13px}.reader-page .layout{padding-top:24px}.reader-tools .tool{flex:0 0 auto;font-size:11px;padding:10px}.reader-tools .arabic-size{margin-left:auto}.reader-tools{gap:6px;justify-content:flex-start}.reader-header h1{font-size:28px}.reader-header .eyebrow{font-size:9px}.reader-header .subtle{font-size:12px}.reader-navigation{gap:10px;padding:10px;display:grid;grid-template-columns:1fr 1fr}.reader-navigation>button{font-size:10px;padding:9px}.verse-jump{grid-row:2;grid-column:1/-1;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px}.verse-jump label{font-size:12px}.verse-jump input{flex:1;max-width:95px}.verse-jump .tool{font-size:12px}.cache-status{font-size:11px}.reader-intro{padding:22px 15px}.reader-intro .arabic-name{font-size:40px}.verse-card{padding:21px 17px;scroll-margin-top:15px;border-radius:14px}.verse-top{gap:2px;flex-wrap:wrap}.verse-top .verse-ref{font-size:11px}.verse-top>small{font-size:9px!important}.verse-ar{line-height:2.15;font-size:var(--arabic-size);margin:23px 0}.verse-en{font-size:14px;line-height:1.85}.verse-en small{font-size:10px}.verse-actions{gap:8px}.verse-action{font-size:11px;line-height:1.5;padding:9px 8px;min-height:45px}.icon-button{min-width:40px;min-height:44px}.notice{font-size:12px;padding:15px}.footer-note{font-size:11px;line-height:1.8}.setting-row{padding:19px;gap:14px}.setting-row strong{font-size:14px}.setting-row small{font-size:12px;max-width:none}.setting-row select{font-size:12px;max-width:100%}.mobile-nav{height:74px;box-shadow:0 -2px 24px #12391b09}.mobile-nav button{font-size:11px;gap:5px;color:#6c7c61}.mobile-nav button.active{color:#245a40}.mobile-nav button.active:before{content:'';width:23px;height:3px;border-radius:4px;background:#b1975d;position:absolute;top:0}.mobile-nav button.active svg{color:#245a40}.mobile-nav svg{width:22px;height:22px}.dark .mobile-nav button{color:#a7ba95}.dark .mobile-nav button.active{color:#e0e5c8}.dark .mobile-nav button.active svg{color:#e0e5c8}.audio-player{left:10px;right:10px;bottom:84px;padding:12px;gap:10px;border-radius:13px;display:grid;grid-template-columns:minmax(0,1fr) auto}.player-location{min-width:0;grid-column:1;grid-row:1}.player-location span{font-size:7px;letter-spacing:.8px}.player-location strong{font-size:12px}.player-location small{font-size:9px}.player-timeline{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:10px}.player-timeline input{min-width:50px;height:20px;min-height:20px}.player-timeline small{white-space:nowrap;font-size:9px}.player-actions{grid-column:2;grid-row:1;gap:5px}.player-actions .tool{font-size:10px;padding:9px;min-width:40px}.player-repeat select{font-size:10px;max-width:87px;padding:5px}.has-audio{padding-bottom:225px}.has-audio .toast{bottom:220px}.toast{bottom:85px;max-width:90%;width:max-content}.dark .top-right .circle-btn{color:#d4dfc2}}
@media(max-width:370px){.layout{padding-inline:13px}.topbar{padding-inline:11px}.top-right .circle-btn{min-width:32px;width:32px}.top-right{gap:3px}.top-title{font-size:12px}.top-right .install-app{font-size:9px;padding:0 7px}.sanctuary-copy{padding:23px 18px;width:95%}.sanctuary-copy h2{font-size:31px}.library-book{padding:16px;column-gap:10px}.book-ar,.library-book.askari .book-ar{font-size:25px}.book-index{font-size:7px}.library-book strong{font-size:13px}.library-book small,.book-open{font-size:10px}.reader-tools{gap:5px}.reader-tools .tool{font-size:10px;padding:10px 8px}.reader-tools .arabic-size{margin-left:0}.verse-top>small{flex-basis:100%;order:5;margin-top:3px}.verse-ref{margin-right:auto}.player-repeat select{max-width:77px;font-size:9px}.player-actions .tool{min-width:36px;font-size:10px;padding:6px}.player-location strong{font-size:11px}.player-location span{font-size:6px}.home-foot{display:block}.home-foot>span{display:block;margin-bottom:7px}}
/* Preserve full touch targets on compact screens; theme remains in Settings. */
@media(max-width:700px){.top-right #themeButton{display:none}.top-right .circle-btn{width:44px;min-width:44px}.top-right .install-app{min-width:74px}.icon-button,.player-actions .tool{min-width:44px}.player-actions .tool{padding-inline:8px}.audio-player{column-gap:8px}.player-repeat select{max-width:85px}}
@media(max-width:370px){.top-right .circle-btn{width:44px;min-width:44px}.top-right .install-app{font-size:10px;min-width:70px}.player-actions .tool{min-width:44px;padding-inline:7px}.player-repeat select{max-width:70px}.player-location strong{font-size:10px}}
.secondary-nav svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;fill:none}
/* Collapse the optional desktop rail before it can squeeze small-screen pages. */
@media(max-width:1100px){.layout{display:block}.rail{display:none}}
.reader-intro{display:flex;align-items:center;justify-content:center;gap:16px;padding:15px 20px}.reader-intro:before{margin:0;font-size:24px}.reader-intro h2,.reader-intro p{display:none}.reader-intro .arabic-name{font-size:37px}.numbering-note{font-size:11px;color:var(--muted);margin:0 0 14px;line-height:1.8}.numbering-note summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:7px}.numbering-note summary:before{content:'+';font-size:16px;color:var(--gold)}.numbering-note[open] summary:before{content:'−'}.numbering-note p{margin:3px 0 12px;max-width:650px}


/* /lectures.css */
/* An editorial study room: lapis, emerald and warm manuscript ivory. */
.learn-library{max-width:1100px;margin:auto}.learn-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:26px}.learn-heading .eyebrow{color:var(--gold);font-size:10px;letter-spacing:1.6px}.learn-heading h1{font-size:clamp(27px,3.2vw,40px);letter-spacing:-1.3px;margin:9px 0 13px}.learn-heading .subtle{max-width:520px;line-height:1.75}.learn-seal{font-size:64px;color:#b89d60;font-family:var(--arabic);opacity:.75}.learn-feature{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:35px 42px;background:radial-gradient(ellipse at 100% 100%,#285d4c 0,transparent 60%),#123b32;border:1px solid #285a4b;border-radius:17px;color:#f6efd8;overflow:hidden;position:relative;margin-bottom:24px}.learn-feature:after{content:'';position:absolute;inset:12px;border:1px solid #bba36a26;border-radius:9px;pointer-events:none}.learn-feature>div{position:relative;z-index:1}.learn-kicker{font-size:9px;letter-spacing:2px;color:#ceba84;font-weight:700}.learn-feature h2{font:500 44px/1.6 var(--arabic);text-align:start;color:#f4e7be;margin:10px 0 6px}.learn-feature p{font-size:13px;color:#bfd0bd;margin:0 0 24px;line-height:1.75}.learn-feature-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.learn-feature .btn{min-height:44px;font-size:12px}.learn-feature-link{border:0;background:none;color:#cdddc7;padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:5px;font-size:11px}.learn-arch{flex:0 0 190px;align-self:stretch;border:1px solid #bd9f6259;border-radius:110px 110px 8px 8px;text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:210px;box-shadow:0 0 0 9px #bfab6f0b,inset 0 0 0 8px #0b2d2726;background:repeating-conic-gradient(from 45deg,#c6b27608 0% 25%,transparent 0% 50%) 0 0/24px 24px}.learn-arch span{font:500 38px/1.45 var(--arabic);color:#d3b878}.learn-arch small{font-size:6px;letter-spacing:1.5px;margin-top:20px;color:#94b19a}.learn-resume{width:100%;display:flex;align-items:center;gap:16px;padding:18px 22px;border:1px solid var(--line);background:var(--panel);border-radius:11px;text-align:start;margin:0 0 30px;color:var(--ink)}.learn-resume-symbol{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:var(--pale);color:var(--green);border-radius:50%;font-size:24px}.learn-resume small{font-size:8px;letter-spacing:1.3px;color:var(--muted);display:block;margin-bottom:7px}.learn-resume strong{font-size:13px}.learn-resume>span:last-child{margin-inline-start:auto;font-size:11px;color:var(--green)}.learn-browser{margin-top:34px;scroll-margin-top:25px}.learn-browser .section-head h2{font-size:22px;letter-spacing:-.6px}.learn-total{font-size:11px;color:var(--muted)}.learn-filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.learn-filters button{min-height:44px;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:50px;padding:10px 18px;font-size:11px;font-weight:700}.learn-filters button.active{background:#214f3b;color:#f3e9c9;border-color:#214f3b}.learn-search-row{display:flex;align-items:center;gap:22px}.learn-search-row .search{flex:1;min-width:0;margin:0}.learn-search-row input[type=search]{font-size:13px;min-height:48px}.learn-check{display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap;min-height:44px;cursor:pointer;color:var(--muted)}.learn-check input{width:18px;height:18px;accent-color:var(--green)}.learn-status{font-size:11px;color:var(--muted);min-height:18px;margin:15px 2px 17px}.lecture-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lecture-card{position:relative;border:1px solid var(--line);background:var(--panel);border-radius:12px;min-width:0;transition:border-color .2s,transform .2s}.lecture-card:hover{border-color:#a7bc9d;transform:translateY(-2px)}.lecture-open{display:flex;align-items:center;gap:15px;text-align:start;padding:21px 18px;padding-inline-end:46px;background:none;border:0;width:100%;min-height:162px;color:var(--ink)}.lecture-number{align-self:flex-start;display:grid;place-items:center;width:37px;height:42px;flex-shrink:0;background:var(--pale);color:#83936f;border-radius:20px 20px 5px 5px;font:500 17px Georgia,serif}.lecture-card-text{min-width:0;flex:1}.lecture-label{display:block;font-size:8px;letter-spacing:1px;color:#8b7846;margin-bottom:7px;font-weight:700}.lecture-card-text strong{display:block;text-align:start;font:500 23px/1.7 var(--arabic);margin:0 0 7px}.lecture-topic{display:block;font-size:12px;line-height:1.6;color:var(--ink);margin-bottom:9px}.lecture-card-text small{display:block;font-size:10px;color:var(--muted);line-height:1.7}.lecture-play{display:none}.lecture-save{position:absolute;inset-inline-end:4px;top:5px;border:0;background:none;color:#98a28d;min-width:44px;min-height:44px;font-size:24px;border-radius:10px}.lecture-save.is-saved{color:#a48a4c}.lecture-done{border-inline-start:3px solid #8eaf7d}.learn-more{text-align:center;margin:24px 0}.learn-more .tool{min-height:46px;padding:12px 24px;font-size:12px}.learn-more span{color:var(--muted);margin-inline-start:9px}.learn-empty{grid-column:1/-1;text-align:center;padding:44px 20px;border:1px dashed var(--line);border-radius:12px;background:var(--panel);color:var(--muted)}.learn-empty>span{font-size:34px}.learn-empty h3{color:var(--ink);font-size:20px}.learn-empty p{font-size:13px;line-height:1.8}.learn-empty a{display:block;color:var(--green);margin-top:18px;font-size:12px}.learn-empty button{min-height:44px}.learn-provenance{font-size:12px;color:var(--muted);line-height:1.9;margin:35px 0 10px;padding:18px 20px;border:1px solid var(--line);border-radius:10px}.learn-provenance summary{font-weight:700;cursor:pointer;min-height:44px;color:var(--ink)}.learn-provenance a{color:var(--green)}.lesson-is-open{overflow:hidden}.lesson-overlay{position:fixed;inset:0;z-index:1100;background:#071f1acc;display:flex;align-items:center;justify-content:center;padding:25px;backdrop-filter:blur(7px)}.lesson-dialog{background:var(--panel);border:1px solid var(--line);border-radius:16px;width:min(900px,100%);max-height:92vh;overflow:auto;box-shadow:0 24px 100px #0006}.lesson-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 25px;color:var(--ink)}.lesson-top>div{min-width:0}.lesson-top small{font-size:11px;color:var(--muted);line-height:1.7}.lesson-top h2{font:500 27px/1.7 var(--arabic);margin:4px 0 0;text-align:start;overflow-wrap:anywhere}.lesson-close{width:44px;height:44px;flex-shrink:0;font-size:26px;color:var(--ink);border:1px solid var(--line);border-radius:50%;background:var(--pale)}.lesson-video{aspect-ratio:16/9;background:#091b17;position:relative}.lesson-video iframe{border:0;width:100%;height:100%;position:absolute;inset:0}.lesson-body{padding:22px 25px 25px}.lesson-source-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px}.lesson-source-links a{font-size:12px;font-weight:700;color:var(--green);min-height:44px;display:inline-flex;align-items:center}.lesson-source-links span{font-size:11px;color:var(--muted);line-height:1.8}.lesson-body h3{font-size:18px;color:var(--ink)}.lesson-body p{font-size:12px;line-height:1.9;color:var(--muted)}.lesson-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.lesson-actions .tool,.lesson-next .tool{min-height:44px;font-size:12px}.lesson-actions button[aria-pressed=true]{background:var(--pale);color:var(--green);border-color:#92aa7e}.lesson-notes{border-top:1px solid var(--line);padding:15px 0;margin-top:20px}.lesson-notes summary{cursor:pointer;font-weight:700;color:var(--ink);font-size:13px;min-height:44px}.lesson-notes label{display:block;font-size:12px;color:var(--muted);margin:12px 0}.lesson-notes textarea{width:100%;min-height:130px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:15px;font:14px/1.7 inherit;background:var(--bg);color:var(--ink);box-sizing:border-box}.lesson-notes small{display:block;font-size:10px;color:var(--muted);margin-top:8px}.lesson-next{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:20px}.lesson-next>span{font-size:12px;color:var(--muted);align-self:center}.dark .learn-feature{background:radial-gradient(ellipse at 100% 100%,#285d4c 0,transparent 60%),#0c2721}.dark .learn-filters button.active{background:#bfa66c;border-color:#bfa66c;color:#153c2b}.dark .lecture-label{color:#c3ae79}.dark .lecture-number{color:#bbcca9}.dark .learn-resume>span:last-child,.dark .lesson-source-links a,.dark .learn-provenance a{color:#c2d9a9}.dark .lesson-actions button[aria-pressed=true]{color:#d6e0bb}.learn-library button:focus-visible,.lesson-dialog :focus-visible{outline:3px solid #a78d50;outline-offset:3px}
@media(min-width:1100px){body:has(.learn-library) .layout,body:has(.journey-page) .layout{display:block}body:has(.learn-library) .rail,body:has(.journey-page) .rail{display:none}}
@media(max-width:850px){.learn-feature{padding:28px}.learn-arch{flex-basis:150px;min-height:190px}.learn-arch span{font-size:32px}.lecture-list{grid-template-columns:1fr}.lecture-open{min-height:140px}.lecture-play{display:block;font-size:24px;color:#839b73}.learn-feature h2{font-size:36px}.learn-seal{font-size:50px}}
@media(max-width:600px){.learn-heading{margin-bottom:22px}.learn-heading h1{font-size:29px;line-height:1.2}.learn-heading .eyebrow{font-size:8px}.learn-heading .subtle{font-size:12px}.learn-seal{display:none}.learn-feature{padding:27px 23px;border-radius:13px}.learn-arch{display:none}.learn-feature h2{font-size:38px}.learn-feature p{font-size:12px}.learn-feature-actions{gap:8px}.learn-feature-link{font-size:11px}.learn-kicker{font-size:8px;letter-spacing:1.5px}.learn-resume{padding:15px;gap:12px;flex-wrap:wrap}.learn-resume strong{font-size:12px}.learn-resume>span:last-child{margin-inline-start:54px;font-size:11px}.learn-browser{margin-top:28px}.learn-browser .section-head h2{font-size:21px}.learn-filters{gap:6px}.learn-filters button{font-size:11px;padding:10px 13px}.learn-search-row{display:block}.learn-check{margin-top:8px}.learn-status{margin-top:8px}.lecture-open{gap:12px;padding:20px 14px;padding-inline-end:43px}.lecture-number{width:30px;height:38px;font-size:16px}.lecture-card-text strong{font-size:23px}.lecture-play{display:none}.lecture-topic{font-size:12px}.learn-provenance{font-size:11px;padding:15px}.lesson-overlay{padding:8px}.lesson-dialog{max-height:96dvh;border-radius:12px}.lesson-top{padding:16px;gap:12px}.lesson-top h2{font-size:23px}.lesson-top small{font-size:10px}.lesson-body{padding:16px}.lesson-source-links{gap:10px;margin-bottom:13px}.lesson-body h3{font-size:17px}.lesson-next{flex-wrap:wrap}.lesson-next .tool{font-size:11px}.lesson-notes textarea{font-size:16px}}

/* Language follows the interface; original source Arabic keeps its own direction. */
.lecture-card-text strong[lang="en"]{font:700 15px/1.6 Manrope,sans-serif}.lesson-top h2[lang="en"]{font:700 23px/1.5 Manrope,sans-serif}[dir="rtl"] .learn-library :is(.eyebrow,.learn-kicker,.lecture-label,.learn-resume small){letter-spacing:0}[dir="rtl"] .learn-library,[dir="rtl"] .lesson-dialog{font-family:var(--arabic),serif}[dir="rtl"] .learn-heading h1{line-height:1.65;letter-spacing:0}[dir="rtl"] .learn-feature h2{ text-align:start}[dir="rtl"] .learn-filters button,[dir="rtl"] .lesson-actions .tool,[dir="rtl"] .lesson-next .tool{font-family:inherit}[dir="rtl"] .lecture-card-text small{font-size:12px}@media(max-width:600px){.lecture-card-text strong[lang="en"]{font-size:14px}.lesson-top h2[lang="en"]{font-size:18px}}

/* Audiobooks sit with the lectures, using the verified source-hosted player with accessible horizontal overflow. */
.learn-audiobook-feature{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin:0 0 24px;color:var(--ink)}.learn-audiobook-symbol{display:grid;place-items:center;width:48px;height:58px;flex-shrink:0;border-radius:26px 26px 9px 9px;background:var(--pale);color:var(--green);font-size:28px}.learn-audiobook-feature>div{flex:1;min-width:0}.learn-audiobook-feature .learn-kicker{color:var(--green);font-size:9px;letter-spacing:.8px}.learn-audiobook-feature h2{font-size:21px;line-height:1.5;margin:5px 0;color:var(--ink)}.learn-audiobook-feature p{font-size:12px;line-height:1.8;margin:5px 0;color:var(--muted)}.learn-audiobook-feature small{font-size:10px;color:var(--muted)}.learn-audiobook-feature .tool{min-height:44px;flex-shrink:0;font-size:12px}.lesson-audio{padding:20px 25px;background:var(--pale);border-block:1px solid var(--line)}.lesson-audio-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--green);font-size:11px;font-weight:700;margin-bottom:12px}.lesson-audio-window{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;border-radius:8px;background:#141414;direction:ltr}.lesson-audio-window iframe{display:block;width:600px;min-width:600px;max-width:none;height:110px;border:0}.lesson-audio-scroll-hint{display:block;margin-top:9px;font-size:11px;line-height:1.7;color:var(--muted)}.lesson-audio p{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 0}.dark .learn-audiobook-feature .learn-kicker,.dark .lesson-audio-caption{color:#c2d9a9}[dir="rtl"] .learn-audiobook-feature .learn-kicker{letter-spacing:0}[dir="rtl"] .learn-audiobook-feature h2{font-family:var(--arabic);font-size:26px;line-height:1.7}
@media(max-width:600px){.learn-audiobook-feature{padding:18px;gap:12px;flex-wrap:wrap}.learn-audiobook-symbol{width:38px;height:48px;font-size:23px}.learn-audiobook-feature>div{flex-basis:calc(100% - 55px)}.learn-audiobook-feature h2{font-size:18px}.learn-audiobook-feature .tool{width:100%;margin-top:3px}.lesson-audio{padding:16px}.lesson-audio-caption{font-size:10px}.lesson-audio p{font-size:11px}}
/* Readable audiobook detail text in both writing systems. */
.lesson-audio p,.lesson-body>p{font-size:14px;line-height:1.8}.lesson-audio-scroll-hint{font-size:12px}[dir="rtl"] .lesson-audio p,[dir="rtl"] .lesson-body>p{font-size:17px;line-height:1.9}[dir="rtl"] .lesson-audio-scroll-hint{font-size:15px}

/* Language-specific practical videos lead; the Arabic lecture archive remains deliberate. */
.learn-video-note{font-size:13px;line-height:1.8;padding:16px 18px;border-inline-start:3px solid var(--gold);background:var(--pale);border-radius:0 10px 10px 0;color:var(--muted);margin-bottom:22px}.learn-scopes{margin-bottom:14px}.learn-formats,.learn-topics{margin:10px 0}.learn-topics button{font-weight:500}.learn-topics button.active{background:var(--pale);color:var(--ink);border-color:var(--green)}.learn-archive-notice{font-size:14px;line-height:1.8;padding:14px 16px;background:var(--pale);border-radius:10px;color:var(--muted)}.learn-archive-feature{border:1px solid var(--line);border-radius:14px;padding:18px;margin-top:28px}.learn-archive-feature>summary{cursor:pointer;min-height:44px;font-weight:700;line-height:1.8;color:var(--ink)}.learn-archive-feature[open]>summary{margin-bottom:18px}.learn-archive-feature .learn-audiobook-feature{margin-bottom:0}.learn-archive-feature .learn-feature{padding:25px}.lesson-video-short{width:min(360px,100%,39.375dvh);aspect-ratio:9/16;margin:auto}.lesson-original-title{border-top:1px solid var(--line);padding-top:15px;overflow-wrap:anywhere}.lesson-practise{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;gap:8px;padding:10px 16px}.learn-library [hidden]{display:none!important}.learn-library .learn-status{font-size:13px;line-height:1.7}.learn-library .learn-total{font-size:12px}.learn-library .lecture-card-text small{font-size:12px}.learn-library .lecture-label{font-size:10px;line-height:1.5}.learn-library .learn-filters button{font-size:13px}.learn-library .lecture-card-text strong[lang="en"]{font-size:16px;line-height:1.55}[dir="rtl"] .learn-video-note,[dir="rtl"] .learn-archive-notice{font-size:17px;line-height:1.9}[dir="rtl"] .learn-library .learn-filters button{font-size:16px}[dir="rtl"] .learn-library .lecture-label{font-size:13px;letter-spacing:0}[dir="rtl"] .learn-library .lecture-card-text strong{font-size:24px}[dir="rtl"] .learn-library .learn-status{font-size:15px}
@media(max-width:600px){.learn-heading h1{font-size:28px}.learn-heading .subtle{font-size:14px}.learn-archive-feature{padding:14px}.learn-archive-feature .learn-feature{padding:22px 18px}.learn-video-note{font-size:13px;padding:13px 15px}.learn-library .learn-filters button{padding:10px 13px}.learn-library .lecture-card-text strong[lang="en"]{font-size:16px}.learn-library .lecture-open{min-height:155px}.learn-library .lecture-number{display:none}.lesson-video-short{width:min(100%,36dvh);margin-inline:auto}.lesson-top h2[lang="en"]{font-size:20px}}
@media(prefers-reduced-motion:reduce){.lecture-card{transition:none}.lecture-card:hover{transform:none}}

/* A concrete next action connects each video to the reader or learning exercise. */
.lesson-practice-step{padding:16px 18px;margin:18px 0;border:1px solid var(--line);border-radius:12px;background:var(--pale)}.lesson-practice-step h4{font-size:15px;line-height:1.6;margin:0;color:var(--ink)}.lesson-practice-step p{font-size:14px;line-height:1.8;margin:7px 0 13px;color:var(--ink)}.lesson-practice-step .lesson-practise{background:var(--panel);font-size:13px;line-height:1.5;max-width:100%;box-sizing:border-box;white-space:normal}[dir="rtl"] .lesson-practice-step h4{font-size:19px}[dir="rtl"] .lesson-practice-step p{font-size:18px;line-height:1.9}[dir="rtl"] .lesson-practice-step .lesson-practise{font-size:17px}@media(max-width:600px){.lesson-practice-step{padding:14px}.lesson-practice-step .lesson-practise{width:100%;justify-content:center}}


/* /journey.css */
/* Habit views share the reader's quiet ivory and emerald palette. */
.journey-page{max-width:1120px;margin:auto}.journey-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.journey-heading .page-title{margin:7px 0}.journey-heading .subtle{margin:0}.journey-private{font-size:11px;color:var(--muted);border:1px solid var(--line);padding:9px 12px;border-radius:20px;white-space:nowrap}.journey-kicker{font-size:9px;letter-spacing:1.6px;line-height:1.5;color:#9b824d;font-weight:800}.journey-today{display:flex;align-items:center;gap:32px;background:var(--panel);border:1px solid var(--line);padding:30px 34px;border-radius:16px;box-shadow:var(--shadow)}.journey-ring{flex:none;width:154px;height:154px;border-radius:50%;background:conic-gradient(#638467 var(--journey-percent),#e8eddf 0);display:grid;place-items:center;transform:rotate(-5deg)}.journey-ring>div{width:134px;height:134px;background:var(--panel);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(5deg)}.journey-ring strong{font-size:36px;letter-spacing:-1px;line-height:1.3;color:var(--ink)}.journey-ring strong small{font-size:16px;letter-spacing:0;color:var(--muted);font-weight:500}.journey-ring span{font-size:10px;color:var(--muted);margin-top:5px}.journey-today-copy h2{font:600 28px/1.25 Georgia,serif;color:var(--ink);margin:10px 0}.journey-today-copy p{font-size:12px;line-height:1.9;color:var(--muted);max-width:500px;margin:0 0 17px}.journey-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.journey-button{font:700 11px Manrope,sans-serif;min-height:44px;padding:11px 16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;transition:background .15s,border-color .15s}.journey-button:hover{background:var(--pale);border-color:#9cae92}.journey-button.primary{background:#264f3a;border-color:#264f3a;color:#f3ead2}.journey-button.primary:hover{background:#356448}.journey-text-button{min-height:44px;font:700 11px Manrope,sans-serif;color:#648366;background:transparent;border:0;padding:10px 0;cursor:pointer}.journey-button:focus-visible,.journey-text-button:focus-visible,.journey-file-label:focus-within{outline:3px solid #b69b5f;outline-offset:3px}.journey-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0}.journey-stats article{border:1px solid var(--line);border-radius:13px;padding:21px 23px;background:var(--panel);position:relative;min-width:0}.journey-stats article>strong{display:block;font-size:29px;font-weight:700;letter-spacing:-.6px;color:var(--ink);margin:0 0 8px}.journey-stats article>strong small{font-size:12px;letter-spacing:0;font-weight:500;color:var(--muted)}.journey-stats article>span:not(.journey-stat-icon){display:block;font-size:11px;line-height:1.7;color:var(--ink)}.journey-stats p{font-size:10px;line-height:1.8;color:var(--muted);margin:8px 0 0}.journey-stat-icon{position:absolute;inset-inline-end:20px;top:22px;color:#b49c62;font-size:23px}.journey-detail-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.journey-card{border:1px solid var(--line);border-radius:14px;padding:24px;background:var(--panel);min-width:0}.journey-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:21px}.journey-card h2{font:800 17px/1.5 Manrope,sans-serif;color:var(--ink);margin:5px 0 0;letter-spacing:-.4px}.journey-card-head>b{font-size:24px;color:var(--ink);white-space:nowrap}.journey-card-head>b small{font-size:10px;font-weight:400;color:var(--muted)}.journey-caption{font-size:10px;line-height:1.9;color:var(--muted);margin:17px 0 0}.journey-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.journey-calendar-label{text-align:center;font-size:9px;color:var(--muted);padding:0 0 9px}.journey-calendar-day{height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;position:relative;font-size:10px;color:var(--muted)}.journey-calendar-day.has-reading{background:#edf2e5;color:#4c6e3e}.journey-calendar-day.goal-met{background:#355f43;color:#f4f0df}.journey-calendar-day.is-today{outline:1px solid #b39a62;outline-offset:-1px;font-weight:800}.journey-calendar-day.has-reading i{position:absolute;bottom:4px;width:2px;height:2px;border-radius:100%;background:currentColor}.journey-calendar-day.is-future{opacity:.45}.journey-calendar-key{display:flex;gap:6px;align-items:center;font-size:9px;color:var(--muted);white-space:nowrap}.journey-calendar-key i{width:7px;height:7px;background:#355f43;border-radius:2px}.journey-backup{margin-top:20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 25px;align-items:center}.journey-backup p:not(.journey-caption):not(.journey-status){font-size:11px;line-height:1.9;color:var(--muted);max-width:590px;margin:10px 0}.journey-backup .journey-caption{margin:9px 0 0}.journey-backup-controls{display:flex;flex-direction:column;gap:8px}.journey-file-label{position:relative;overflow:hidden}.journey-file-label input{position:absolute;width:1px;height:1px;opacity:0}.journey-import-preview{grid-column:1/-1;padding:17px;background:var(--pale);border:1px solid var(--line);border-radius:10px;margin-top:20px}.journey-import-preview[hidden]{display:none}.journey-import-preview strong{font-size:13px;color:var(--ink)}.journey-import-preview .journey-actions{margin-top:15px}.journey-status{grid-column:1/-1;color:#527348;font-size:11px;line-height:1.8;margin:12px 0 0}.journey-status:empty{display:none}.journey-status.error{color:#b4553e}.journey-footnote{font-size:10px;line-height:1.9;color:var(--muted);margin:20px 2px 0}.journey-home{display:flex;align-items:center;gap:24px;margin:20px 0 28px;padding:20px 25px;border:1px solid var(--line);background:var(--panel);border-radius:12px}.journey-home>div:first-child{flex:none}.journey-home strong{display:block;font-size:25px;color:var(--ink);margin-top:3px}.journey-home strong small{font-size:12px;color:var(--muted);font-weight:500}.journey-home>.journey-text-button{margin-inline-start:auto}.journey-week-dots{display:flex;gap:10px;align-items:center;justify-content:center}.journey-week-dots>span{display:flex;flex-direction:column;align-items:center;gap:6px}.journey-week-dots b{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:var(--light);color:#a5b09b;font-size:13px;font-weight:400}.journey-week-dots .has-reading b{background:#3e664b;color:#f1e8ce;border-color:#3e664b}.journey-week-dots .is-today b{outline:1px solid #b7a06c;outline-offset:3px}.journey-week-dots small{font-size:9px;color:var(--muted)}.journey-reader-timer{display:flex;gap:12px;align-items:center;padding:12px 15px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin:0 0 20px}.journey-timer-icon{font-size:27px;color:#a38d56}.journey-reader-timer strong{font-size:17px;font-variant-numeric:tabular-nums;color:var(--ink);display:block;line-height:1.3}.journey-reader-timer small{font-size:9px;color:var(--muted);display:block;margin-top:3px}.journey-reader-timer .journey-button{margin-inline-start:10px}.journey-reader-timer p{font-size:9px;line-height:1.7;color:var(--muted);margin:0;margin-inline-start:auto}.dark .journey-ring{background:conic-gradient(#91ae7f var(--journey-percent),#2c4734 0)}.dark .journey-button.primary{background:#bdc9a0;color:#183425;border-color:#bdc9a0}.dark .journey-button.primary:hover{background:#d2dabb}.dark .journey-text-button,.dark .journey-status{color:#b0c798}.dark .journey-calendar-day.has-reading{background:#2c4531;color:#bfd4a8}.dark .journey-calendar-day.goal-met{background:#93af7b;color:#10281d}.dark .journey-calendar-key i{background:#93af7b}.dark .journey-status.error{color:#e6a18c}
@media(max-width:1100px){.journey-detail-grid{grid-template-columns:1fr}.journey-today{padding:26px;gap:25px}.journey-today-copy h2{font-size:25px}.journey-stats article{padding:20px 16px}.journey-stats article>strong{font-size:26px}.journey-stat-icon{inset-inline-end:14px;font-size:18px}.journey-calendar{gap:7px}.journey-calendar-day{height:37px}.journey-home{gap:20px;padding:20px}.journey-week-dots{gap:7px}.journey-home .journey-text-button{font-size:10px}}
@media(max-width:700px){.journey-heading{display:block;margin-bottom:23px}.journey-private{display:inline-block;margin-top:13px;font-size:9px;padding:7px 11px}.journey-today{padding:23px 18px;gap:17px;align-items:flex-start}.journey-ring{width:100px;height:100px;margin-top:2px}.journey-ring>div{width:86px;height:86px}.journey-ring strong{font-size:27px}.journey-ring strong small{font-size:11px}.journey-ring span{font-size:8px}.journey-kicker{font-size:8px;letter-spacing:1.1px}.journey-today-copy{min-width:0}.journey-today-copy h2{font-size:21px;line-height:1.35;margin:8px 0}.journey-today-copy p{font-size:10px;line-height:1.8;margin-bottom:13px}.journey-actions{gap:5px 12px}.journey-button{font-size:10px;padding:11px 13px}.journey-text-button{font-size:10px}.journey-stats{gap:8px;margin:13px 0}.journey-stats article{padding:16px 11px}.journey-stats article>strong{font-size:23px;margin-top:22px}.journey-stats article>strong small{font-size:9px}.journey-stats article>span:not(.journey-stat-icon){font-size:9px;line-height:1.7}.journey-stats p{font-size:8px}.journey-stat-icon{top:12px;inset-inline-start:11px;inset-inline-end:auto;font-size:18px}.journey-card{padding:21px 18px}.journey-card-head{gap:10px}.journey-card h2{font-size:15px}.journey-card-head>b{font-size:22px}.journey-detail-grid{gap:13px}.journey-backup{margin-top:13px;grid-template-columns:1fr}.journey-backup-controls{flex-direction:row;flex-wrap:wrap;gap:8px;margin-top:18px}.journey-backup p:not(.journey-caption):not(.journey-status){font-size:10px}.journey-home{display:grid;grid-template-columns:1fr auto;gap:15px;padding:17px;margin:17px 0 25px}.journey-home strong{font-size:24px}.journey-home strong small{font-size:10px}.journey-home .journey-week-dots{grid-column:1/-1;grid-row:2;justify-content:space-between;padding:0 3px}.journey-home>.journey-text-button{font-size:9px}.journey-week-dots b{width:30px;height:30px}.journey-reader-timer{padding:10px 12px;gap:9px;flex-wrap:wrap}.journey-reader-timer .journey-button{margin-inline-start:auto}.journey-reader-timer p{flex-basis:100%;text-align:center;margin:0;font-size:8px}.journey-reader-timer strong{font-size:16px}.journey-reader-timer small{font-size:8px}.journey-footnote{font-size:9px}}
@media(max-width:360px){.journey-today{display:block}.journey-ring{margin:0 auto 19px}.journey-today-copy{text-align:center}.journey-today-copy .journey-actions{justify-content:center}.journey-home{gap:10px}.journey-stats article{padding:14px 9px}.journey-stats article>strong{font-size:20px}.journey-stats article>strong small{font-size:8px}.journey-card-head{flex-wrap:wrap}.journey-private{font-size:9px}}

/* Keep both the daily target and streak visible in the home summary. */
.journey-home{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 24px}.journey-home-metrics{display:flex;align-items:center;gap:30px;min-width:0}.journey-home-metrics>div{min-width:0}.journey-home-caption{display:block;font-size:9px;color:var(--muted);line-height:1.7;margin-top:3px}.journey-home>.journey-week-dots{grid-column:1;grid-row:2;justify-content:flex-start;gap:14px}.journey-home>.journey-text-button{grid-column:2;grid-row:1 / 3;align-self:center}.journey-home-metrics strong{font-size:29px}.journey-home-metrics strong small{font-size:13px}
@media(min-width:1400px){.journey-home{grid-template-columns:minmax(0,1fr) auto auto}.journey-home>.journey-week-dots{grid-column:2;grid-row:1;gap:10px}.journey-home>.journey-text-button{grid-column:3;grid-row:1}}
@media(max-width:700px){.journey-home{gap:16px 12px}.journey-home-metrics{gap:23px;grid-column:1/-1}.journey-home-metrics strong{font-size:28px}.journey-home-metrics strong small{font-size:12px}.journey-home>.journey-week-dots{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:7px}.journey-home>.journey-text-button{grid-column:1/-1;grid-row:3;justify-self:start;margin:0;min-height:44px;padding:8px 0}.journey-home-caption{font-size:9px}}

/* RTL applies to controls, while Quran source direction stays explicit. */
[dir="rtl"] :is(.journey-page,.journey-home,.journey-reader-timer){font-family:var(--arabic),serif}[dir="rtl"] :is(.journey-today-copy h2,.journey-card h2,.journey-button,.journey-text-button){font-family:var(--arabic),serif;letter-spacing:0}[dir="rtl"] .journey-kicker{letter-spacing:0;font-size:11px}[dir="rtl"] .journey-today-copy h2{line-height:1.7}[dir="rtl"] :is(.journey-week-dots small,.journey-calendar-label){font-size:11px}[dir="rtl"] .journey-calendar-key{font-size:11px}.journey-reader-timer [data-journey-time]{direction:ltr;unicode-bidi:isolate}

.journey-review-links{display:flex;flex-wrap:wrap;gap:12px 20px;margin-block:16px}.journey-review-links .journey-text-button{min-height:44px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;line-height:1.7;text-align:start}

/* The same seven targets show the weekly pattern and reopen a marked passage. */
.journey-week-card{--week-accent:#306959;--week-fill:#39816b;--week-track:#e6eeea;--week-selected:#dfede5}
body.dark .journey-week-card{--week-accent:#addcc7;--week-fill:#8ac3a6;--week-track:#293e35;--week-selected:#2d4037}
.journey-today+.journey-detail-grid{margin-block-start:1.15rem}
.journey-week-heading,.journey-week-result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.35rem 1rem}
.journey-week-heading h2{margin:0}.journey-week-heading>span,.journey-week-count,.journey-week-estimate small{font-size:.8125rem;color:var(--muted)}
.journey-week-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(.1rem,1vw,.5rem);margin-block:1.1rem .6rem}
.journey-week-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:.25rem;box-sizing:border-box;min-inline-size:0;padding:.28rem .1rem .4rem;border:1px solid transparent;border-radius:.55rem;font:inherit;line-height:1.4;text-align:center;background:transparent;color:var(--ink)}
button.journey-week-day{cursor:pointer;border-color:var(--line)}.journey-week-day:is(:hover,[aria-pressed=true]):not(.is-empty){background:var(--week-selected)}
.journey-week-day[aria-pressed=true]{border-color:var(--week-accent)}
.journey-week-day:focus-visible,.journey-week-link:focus-visible{outline:2px solid var(--week-accent);outline-offset:2px}
.journey-day-track{display:flex;align-items:flex-end;block-size:2.25rem;inline-size:min(100%,.6rem);overflow:hidden;border-radius:1rem;background:var(--week-track)}
.journey-day-track i{display:block;inline-size:100%;min-block-size:3px;border-radius:inherit;background:var(--week-fill)}
.journey-week-day.is-empty .journey-day-track i{display:none}
.journey-day-value,.journey-day-label{font-size:.8125rem;font-variant-numeric:tabular-nums}
.journey-week-day[aria-current=date] .journey-day-label{font-weight:800;border-block-end:2px solid var(--week-accent)}
.journey-week-details{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.3rem 1rem;border-block-start:1px solid var(--line);padding-block-start:.65rem}
.journey-week-result{flex:1 1 auto}.journey-week-result>span:first-child,.journey-week-estimate{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .5rem}
.journey-week-details p,.journey-week-result strong{margin:0;font-size:.875rem;line-height:1.6;color:var(--ink)}
.journey-week-link{display:inline-flex;align-items:center;gap:.35em;min-block-size:44px;font:inherit;font-weight:650;font-size:.875rem;text-decoration:none;color:var(--week-accent)}
@media(forced-colors:active){.journey-day-track{outline:1px solid GrayText}.journey-day-track i{background:Highlight;forced-color-adjust:none}.journey-week-day[aria-pressed=true]{border-color:Highlight}}

.journey-illustrated-heading,.saved-illustrated-heading{display:flex;align-items:center;gap:1rem;margin-block:.35rem 1rem}
.journey-illustrated-heading img,.saved-illustrated-heading img{width:clamp(3.4rem,13vw,4.5rem);height:auto;aspect-ratio:1;object-fit:contain;border-radius:14px;flex:none}
.journey-illustrated-heading .page-title,.saved-illustrated-heading .page-title{margin:0;min-inline-size:0}
.journey-reader-today bdi{font-variant-numeric:tabular-nums}
.journey-goal-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .75rem}
.journey-goal-actions .journey-resume{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .85rem;color:#fff;background:#225248;border-radius:.65rem;text-decoration:none;font-weight:650}
.journey-goal-actions .reader-preference-action{min-height:44px;align-content:center}

.journey-week-dots>a {display:flex;flex:1;min-inline-size:0;min-block-size:44px;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;color:inherit;text-decoration:none}
.journey-week-dots>a:is(:hover,:focus-visible),.journey-day-record .journey-week-link:focus-visible {outline:2px solid var(--green);outline-offset:1px;border-radius:.3rem}
.journey-week-day.is-empty:is(:hover,[aria-pressed=true]) {background:var(--week-selected)}
.journey-day-record {max-inline-size:48rem;margin-inline:auto}
.journey-day-record>h1 {margin-block:.45rem .85rem}
.journey-day-record h2 {font-size:1.18rem}
.journey-day-record ul {display:flex;flex-wrap:wrap;gap:.2rem 1rem;list-style:none;padding:0}
.journey-day-record a {display:inline-flex;align-items:center;min-block-size:44px}

/* One shared guide accompanies the existing reading record. */
.journey-heading-main {display:flex;align-items:center;gap:1rem;min-inline-size:0}
.journey-heading-main>div {min-inline-size:0}
.journey-companion {display:inline-flex;align-items:center;flex:none}
.journey-companion .mushaf-vignette {--vignette-size:4rem}
.journey-companion .garden-pal-svg {width:100%;height:100%;inline-size:100%;block-size:100%;stroke:none;fill:initial}
.journey-companion .mushaf-vignette-portrait {width:88%;height:88%;inline-size:88%;block-size:88%;object-fit:cover;border-radius:50%}
.journey-week-day {--press-depth:2px;gap:.2rem;padding:.35rem .1rem .3rem;background:var(--panel)}
.journey-day-label {font-size:.75rem;line-height:1.5;white-space:nowrap}
.journey-day-date {font-size:.875rem;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.4}
.journey-day-value {font-size:.75rem;line-height:1.4}
.journey-day-value small {font:inherit;color:var(--muted)}
.journey-day-today {min-block-size:1.3em;font-size:.625rem;font-weight:700;line-height:1.3;color:var(--week-accent,var(--green))}
.journey-week-day[aria-current=date] .journey-day-label {border-block-end:0}
.journey-week-day[aria-current=date] .journey-day-date {color:var(--week-accent)}
.journey-week-dots b {position:relative;font-size:.8rem;font-weight:650;font-variant-numeric:tabular-nums}
.journey-week-dots b i {position:absolute;inset-inline-end:-.2rem;inset-block-end:-.1rem;display:grid;place-items:center;inline-size:.8rem;block-size:.8rem;border:1px solid var(--panel);border-radius:50%;font-size:.55rem;font-style:normal;background:var(--green,#306959);color:#fff}
.journey-week-dots .journey-day-today {font-size:.625rem}
.journey-calendar-label {font-size:.7rem;line-height:1.5;white-space:nowrap}
@media(max-width:700px) {
  .journey-heading-main {gap:.75rem}
  .journey-companion .mushaf-vignette {--vignette-size:3.5rem}
  .journey-week-chart {column-gap:.2rem}
}


/* /reading-planner.css */
/* Progress planner: one next action, quiet local progress, readable on narrow screens. */
.reading-planner{margin:0 0 24px;padding:26px;border:1px solid var(--line,#d8dfd2);border-radius:18px;background:var(--panel,#fffdf7);color:var(--ink,#183b2a);box-shadow:0 8px 28px #173b2510;font:inherit;min-width:0}
.reading-planner *,.rp-dialog *{box-sizing:border-box}.reading-planner h2{font-family:inherit;font-weight:750;font-size:24px;line-height:1.35;margin:7px 0 9px;letter-spacing:-.45px}.reading-planner h3{font-size:19px;line-height:1.5;margin:7px 0}.reading-planner p{line-height:1.7}.rp-eyebrow{font-size:11px;line-height:1.6;font-weight:750;letter-spacing:1.3px;color:var(--muted,#576957)}.rp-empty{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center}.rp-empty p{max-width:540px;font-size:14px;color:var(--muted,#576957);margin:0}.rp-empty>.rp-primary{align-self:center}.rp-header{display:flex;align-items:center;gap:14px;min-width:0}.rp-header>div{min-width:0;flex:1}.rp-header h2{overflow-wrap:anywhere}.rp-header p{font-size:12px;color:var(--muted,#576957);margin:0}.rp-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:var(--pale,#edf3e8);color:var(--green,#315b3c)}.rp-icon svg{width:28px;height:28px}.rp-percent{font-weight:750;font-size:30px;font-variant-numeric:tabular-nums}.rp-percent small{font-size:14px;margin-inline-start:3px;font-weight:500}.reading-planner progress{display:block;width:100%;height:8px;border:0;border-radius:8px;margin:22px 0 10px;overflow:hidden;accent-color:#477651;background:var(--pale,#edf3e8)}.reading-planner progress::-webkit-progress-bar{background:var(--pale,#edf3e8)}.reading-planner progress::-webkit-progress-value{background:#477651;border-radius:8px}.reading-planner progress::-moz-progress-bar{background:#477651;border-radius:8px}.rp-meter-label{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted,#576957)}.rp-next{margin-block:22px;padding:20px;background:var(--pale,#edf3e8);border:1px solid var(--line,#d8dfd2);border-radius:12px}.rp-next p{font-size:13px;color:var(--muted,#576957);margin:7px 0 15px}.rp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.reading-planner button,.rp-dialog button,.rp-reader-save{min-height:44px;padding:11px 16px;border:1px solid var(--line,#d8dfd2);border-radius:9px;background:var(--panel,#fffdf7);color:var(--ink,#183b2a);font:inherit;font-size:13px;font-weight:650;line-height:1.4;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-align:center}.reading-planner .rp-primary,.rp-dialog .rp-primary{background:#264f3a;border-color:#264f3a;color:#fffbed}.rp-primary svg,.rp-reader-save svg{width:20px;height:20px;flex:none}.reading-planner button:hover,.rp-dialog button:hover,.rp-reader-save:hover{filter:brightness(.96)}.reading-planner :is(button,input,summary):focus-visible,.rp-dialog :is(button,input):focus-visible,.rp-reader-save:focus-visible{outline:3px solid #ad8b35;outline-offset:3px}.rp-schedule{border-top:1px solid var(--line,#d8dfd2);padding-top:6px}.rp-schedule summary{padding:14px 0;cursor:pointer;font-size:14px;font-weight:700;min-height:44px;line-height:1.6}.rp-schedule ol{list-style:none;padding:0;margin:14px 0;max-height:340px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.rp-schedule li{display:flex;gap:12px;align-items:center;padding:12px 3px;border-bottom:1px solid var(--line,#d8dfd2);font-size:12px}.rp-schedule li>div{flex:1;min-width:0}.rp-schedule li strong,.rp-schedule li>div>span{display:block}.rp-schedule li>div>span{margin-top:3px;color:var(--muted,#576957)}.rp-day{width:31px;height:31px;flex:none;display:grid;place-items:center;border:1px solid var(--line,#d8dfd2);border-radius:50%;font-variant-numeric:tabular-nums}.rp-done .rp-day{background:var(--pale,#edf3e8);color:var(--green,#315b3c)}.rp-day-state{font-size:11px;color:var(--muted,#576957);text-align:end;max-width:80px}.reading-planner .rp-storage{font-size:11px;color:var(--muted,#576957);margin:18px 0 0}.reading-planner .rp-note,.rp-dialog .rp-note{font-size:12px;color:var(--muted,#576957);line-height:1.75;margin:10px 0}.rp-status{font-size:13px;line-height:1.7;color:var(--ink,#183b2a);margin:12px 0 0}.rp-status:empty,.rp-form-error:empty,.rp-dialog-error:empty{display:none}.rp-form{max-width:620px}.rp-form h3{margin-top:0}.rp-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rp-form label,.rp-dialog label{display:grid;gap:7px;font-size:13px;font-weight:650;margin:15px 0 0;min-width:0}.rp-form input,.rp-dialog input{font:inherit;font-size:16px;min-width:0;width:100%;min-height:46px;border:1px solid var(--line,#d8dfd2);border-radius:8px;background:var(--panel,#fffdf7);color:var(--ink,#183b2a);padding:10px 12px}.rp-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.rp-presets button{font-size:12px;padding:9px 13px}.rp-form-error,.rp-dialog-error{font-size:13px;line-height:1.7;color:#a4382e}.rp-dialog{max-width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 40px);width:100%;overflow:auto;margin:auto;padding:25px;border:1px solid var(--line,#d8dfd2);border-radius:16px;background:var(--panel,#fffdf7);color:var(--ink,#183b2a);font:inherit;box-shadow:0 18px 70px #0005}.rp-dialog::backdrop{background:#0b211cb0}.rp-dialog h2{font-size:22px;line-height:1.4;margin:0 0 12px}.rp-dialog p{font-size:14px;line-height:1.8}.rp-reader-save{font-size:12px;max-width:100%;margin-block:8px}
[dir="rtl"] :is(.reading-planner,.rp-dialog,.rp-reader-save){font-family:var(--font-ui),sans-serif}[dir="rtl"] .rp-eyebrow{letter-spacing:0;font-size:13px}[dir="rtl"] .reading-planner h2{letter-spacing:0;line-height:1.7}[dir="rtl"] .rp-schedule summary{font-size:16px}.dark .reading-planner .rp-primary,.dark .rp-dialog .rp-primary{background:#baca9e;color:#173627;border-color:#baca9e}.dark .reading-planner progress::-webkit-progress-value{background:#baca9e}.dark .reading-planner progress::-moz-progress-bar{background:#baca9e}.dark :is(.rp-form-error,.rp-dialog-error){color:#f6a592}
@media(max-width:700px){.reading-planner{padding:20px 17px;border-radius:14px}.rp-empty{grid-template-columns:1fr;gap:16px}.rp-empty>.rp-primary{justify-self:start}.reading-planner h2{font-size:22px}.rp-empty p{font-size:13px}.rp-header{gap:11px}.rp-icon{width:39px;height:39px;border-radius:11px}.rp-icon svg{width:24px;height:24px}.rp-percent{font-size:24px}.rp-next{padding:16px}.rp-next h3{font-size:18px}.rp-actions>button{flex:1 1 auto}.rp-fields{gap:10px}.rp-dialog{padding:22px 18px}}
@media(max-width:360px){.rp-header{flex-wrap:wrap}.rp-header>div{flex-basis:calc(100% - 52px)}.rp-percent{margin-inline-start:auto;font-size:22px}.rp-fields{grid-template-columns:1fr}.rp-actions{flex-direction:column}.rp-next{padding:14px}.reading-planner button{font-size:13px}.rp-meter-label{font-size:11px}.rp-schedule li{gap:8px}.rp-day-state{max-width:65px}}
.rp-allocation{display:grid;gap:.35rem;margin-block:.6rem 1rem;font-weight:600}
.rp-allocation select{font:inherit;max-width:100%;min-height:44px;color:inherit;background:var(--panel);border:1px solid var(--line);border-radius:.6rem;padding-inline:.65rem}
.rp-next .duration-badge,.rp-schedule .duration-badge{width:fit-content;margin-block:.25rem}
.rp-plan-preview{padding-block:.8rem;margin-block:1rem;border-block:1px solid var(--line);color:var(--ink);font-size:1rem}
.rp-preview-title{display:flex;gap:.7rem;align-items:center}.rp-preview-title img{width:3.35rem;height:3.35rem;object-fit:contain;border-radius:.65rem}
.rp-preview-title small,.rp-plan-preview dt{font-size:.9rem;color:var(--muted)}.rp-preview-title h4{font-size:1.15rem;margin:0}
.rp-plan-preview dl{display:grid;gap:.35rem;margin:.55rem 0 .2rem}.rp-plan-preview dl>div{display:flex;gap:.6rem;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.rp-plan-preview dd{margin:0;text-align:end;font-variant-numeric:tabular-nums}.rp-plan-preview .duration-badge{vertical-align:middle;margin-inline-start:.3rem}
.reading-planner .rp-form :is(label,button){font-size:1rem}.reading-planner .rp-meter-label{font-size:.875rem}
@media(max-width:440px){.rp-form .rp-fields{gap:.65rem}.rp-form .rp-actions>button{flex:1;min-block-size:3rem}.rp-form .rp-actions{flex-direction:row}}
.rp-entry-actions{display:grid;gap:.45rem}.rp-goal-form select{min-height:46px;width:100%;padding:.5rem .65rem;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:.6rem;font:inherit;font-size:1rem}
.rp-goal-form [hidden]{display:none}.rp-goal-form .rp-advanced{margin-block:1rem;padding-block:.4rem;border-block:1px solid var(--line)}
.rp-goal-form summary{min-height:44px;padding-block:.65rem;cursor:pointer;font-weight:650}
.rp-goal-form fieldset{margin:.9rem 0;padding:.6rem .8rem;border:1px solid var(--line);border-radius:.65rem}
.rp-goal-form legend{padding-inline:.3rem}.rp-goal-form .rp-switch{display:flex;align-items:center;gap:.6rem;min-height:42px;margin:0}
.rp-goal-form .rp-switch input{width:1.2rem;height:1.2rem;min-height:0;accent-color:var(--green)}
.rp-goal-preview{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}
.rp-goal-preview strong{display:block;font-size:1.45rem}.rp-goal-preview small{color:var(--muted)}
.reading-planner .rp-session-picker{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:.5rem 0}
.rp-session-picker input{max-width:6rem;min-height:44px;padding:.5rem;font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:.5rem}.rp-session-picker+output{display:block;padding-block:.5rem;font-size:.95rem}

.daily-practice .quran-plan-entry{display:inline-flex;align-items:center;gap:.35rem;margin-inline-start:auto;min-height:44px;padding-inline:.4rem;color:var(--day-quran,var(--green));font:600 .875rem/1.6 var(--font-ui,inherit);text-decoration:none;white-space:nowrap;letter-spacing:normal}
.daily-practice .quran-plan-entry:focus-visible{outline:2px solid currentColor;outline-offset:2px}.daily-practice .daily-quran-focus .daily-eyebrow:has(.quran-plan-entry){width:100%;display:flex;align-items:center;gap:.4rem}


/* /verse-lexicon.css */
.vl-compare{margin-block:.8rem;text-align:start;border-block-start:1px solid var(--line,#cedad1)}
.vl-compare summary{cursor:pointer;min-height:44px;padding-block:.65rem;font-weight:650}
.vl-compare summary bdi{font-family:var(--arabic,serif);color:var(--muted,#57665c);margin-inline-start:.45em;white-space:nowrap}
.vl-compare ul{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}
.vl-compare li{padding-inline-start:.75rem;border-inline-start:2px solid var(--green,#496d58)}
.vl-compare a{color:inherit;font-weight:650;text-underline-offset:.22em}
.vl-compare a [lang=ar]{font:500 1.3rem/1.7 var(--arabic,serif)}
.vl-compare li p{margin:.15rem 0 .4rem;line-height:1.65}
.vl-compare .vl-guide{display:inline-flex;align-items:center;gap:.4em;min-height:44px}


/* /verse-discovery.css */
.verse-discovery{--vd-green:var(--green,#2d6955);--vd-paper:var(--paper,#fffdf8);--vd-ink:var(--ink,#203f37);color:var(--vd-ink);font:inherit;max-width:960px;margin-inline:auto;overflow-wrap:anywhere}.vd-heading{margin-block:8px 20px}.vd-eyebrow{font-size:.71rem;letter-spacing:.09em;font-weight:750;color:var(--vd-green)}[dir=rtl] .vd-eyebrow{letter-spacing:0}.vd-heading h3{font-size:clamp(1.35rem,4vw,1.9rem);line-height:1.4;margin:7px 0}.vd-heading p{font-size:.93rem;line-height:1.75;margin:0;opacity:.83}.vd-verse-card{border:1px solid color-mix(in srgb,var(--vd-green) 23%,transparent);border-radius:22px;overflow:hidden;background:var(--vd-paper);display:grid;grid-template-columns:minmax(0,1fr) minmax(6rem,9rem)}.vd-picture{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px 12px;background:linear-gradient(145deg,#e9efe0,#f6ecda);color:#365d49;text-align:center}.vd-picture svg{width:135px;max-width:100%;fill:#e2bf68;stroke:#365d49;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.vd-art-lines{fill:none;stroke:currentColor}.vd-picture span{font-size:.73rem;font-weight:700}.vd-verse-copy{padding:20px;min-width:0}.vd-reference{display:flex;justify-content:space-between;gap:8px;font-size:.82rem;color:var(--vd-green)}.vd-reference bdi{white-space:nowrap}.vd-quran{font-family:'QatrahEdition-hafs',serif;font-size:clamp(1.7rem,5vw,2.15rem);line-height:2.15;text-align:right;margin:20px 0;overflow-wrap:normal;word-break:normal}.vd-picture-caption{font-size:.8rem;line-height:1.75;margin:0;opacity:.82}.vd-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-block:18px}.vd-steps>button{display:flex;gap:10px;align-items:flex-start;text-align:start;border:1px solid color-mix(in srgb,var(--vd-green) 22%,transparent);border-radius:14px;padding:14px;background:var(--vd-paper);color:inherit;cursor:pointer}.vd-steps svg{height:37px;width:40px;fill:#e2bf68;stroke:var(--vd-green);stroke-width:4;flex-shrink:0}.vd-steps strong{display:block;font:inherit;font-weight:750;font-size:.91rem}.vd-steps small{display:block;font-size:.77rem;line-height:1.6;margin-top:5px;opacity:.82}.verse-discovery button,.verse-discovery input,.verse-discovery select{font:inherit;min-height:44px}.verse-discovery button:focus-visible,.verse-discovery a:focus-visible,.verse-discovery input:focus-visible,.verse-discovery select:focus-visible{outline:3px solid #c99836;outline-offset:3px}.vd-picker{display:grid;grid-template-columns:minmax(0,1fr) 85px auto;gap:9px;margin-block:15px;align-items:end}.vd-picker label{display:flex;flex-direction:column;gap:6px;font-size:.82rem}.vd-picker input,.vd-picker select{border:1px solid #a7b8ad;border-radius:9px;width:100%;padding:9px;background:var(--vd-paper);color:inherit}.vd-picker button,.vd-language,.vd-neighbours button,.vd-trail>button,.vd-verse-copy>button{border:1px solid var(--vd-green);border-radius:10px;background:var(--vd-green);color:white;padding:9px 14px;cursor:pointer}.vd-trail{border:1px solid color-mix(in srgb,var(--vd-green) 24%,transparent);border-radius:18px;padding:18px;margin-block:18px;background:var(--vd-paper)}.vd-trail h4{font-size:1.05rem;margin:0 0 15px}.vd-word-trail{display:flex;flex-wrap:wrap;gap:8px}.vd-word-trail button{display:flex;flex-direction:column;gap:3px;align-items:center;background:transparent;color:inherit;border:1px solid #a7b8ad;border-radius:12px;padding:8px 13px}.vd-word-trail button span,.vd-answers button,.vd-anchor{font-family:'Amiri Quran','Amiri',serif;font-size:1.5rem;line-height:1.7}.vd-word-trail button small{font:11px system-ui;color:var(--vd-green)}.vd-word-trail button[aria-pressed=true]{background:#e8efdf;border-color:var(--vd-green);box-shadow:0 0 0 2px var(--vd-green)}.vd-word-guidance{font-size:.8rem;line-height:1.7}.vd-question{border-block-start:1px solid #c8d4c8;margin-block-start:20px;padding-block-start:15px}.vd-question>p:first-child{font-size:.93rem;line-height:1.7}.vd-anchor{font-size:2rem;text-align:center;background:#f1ecdd;color:#264d3d;padding:7px;border-radius:12px}.vd-answers{display:flex;flex-wrap:wrap;gap:9px}.vd-answers button{border:1px solid #a7b8ad;border-radius:10px;background:transparent;color:inherit;min-width:70px;padding:9px 14px;cursor:pointer}.vd-feedback{background:color-mix(in srgb,var(--vd-green) 9%,var(--vd-paper));padding:14px;border-radius:12px;margin-top:15px;line-height:1.7;font-size:.9rem}.vd-feedback p{margin:6px 0 0}.vd-scope{font-size:.8rem;line-height:1.75;margin-block:18px}.vd-scope summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--vd-green);font-weight:700}.vd-scope a{display:block;color:var(--vd-green);margin-block:8px}.vd-neighbours{display:flex;justify-content:space-between;gap:10px}.vd-neighbours button{background:transparent;color:var(--vd-green)}.verse-discovery button:disabled{opacity:.4;cursor:default}body.dark .verse-discovery,.dark .verse-discovery{--vd-paper:#172c27;--vd-ink:#e5eee8;--vd-green:#9bc9b3}body.dark .vd-picker button,body.dark .vd-language,body.dark .vd-trail>button,body.dark .vd-verse-copy>button{color:#102a21}body.dark .vd-word-trail button[aria-pressed=true]{background:#28493b}@media(max-width:600px){.vd-verse-card{grid-template-columns:1fr}.vd-picture{flex-direction:row;justify-content:flex-start;padding:10px 16px}.vd-picture svg{height:65px;width:75px}.vd-verse-copy{padding:16px}.vd-steps{grid-template-columns:1fr;gap:8px}.vd-steps>button{align-items:center;padding:12px 14px}.vd-steps small{margin-top:2px}.vd-trail{padding:14px}.vd-picker{grid-template-columns:minmax(0,1fr) 78px}.vd-picker button{grid-column:1/-1}.vd-quran{font-size:1.85rem;line-height:2.1}.vd-reference{flex-wrap:wrap}.vd-heading{margin-block-end:15px}}@media(prefers-reduced-motion:reduce){.verse-discovery *{scroll-behavior:auto!important}}

/* The child entry reuses the app's reader and exact current verse. */
.children-verse-entry{padding:22px;border:1px solid var(--line);border-radius:20px;margin:20px 0;background:var(--panel);color:var(--ink)}.children-verse-entry h2{font-size:22px;line-height:1.5;margin:6px 0}.children-verse-entry p{font-size:14px;line-height:1.8;max-width:60ch}.children-verse-entry small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:12px}.children-verse-entry .btn{min-height:44px}@media(max-width:420px){.children-verse-entry{padding:16px}.children-verse-entry h2{font-size:20px}}
.vd-translation{font-size:1rem;line-height:1.8;margin-block:12px}.vd-translation-label{font-size:.75rem;color:var(--vd-green);margin-block:0 16px}
.vd-quran.vd-reader-text{font-family:var(--quran-word-font,Amiri,serif)}

.vd-text-only { display:block; }
.vd-text-only .vd-verse-copy { border-inline-start:4px solid var(--vd-green); }
.vd-text-only .vd-quran { margin-block:12px; }
.vd-guide { margin-block:1.3rem; }
.vd-guide-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.35rem 1rem; }
.vd-guide-head h4 { margin:0; font-size:1.2rem; line-height:1.55; }
.vd-guide-head span { font-size:.875rem; color:var(--vd-green); font-weight:650; }
.vd-guide p,.vd-linked-reports p { line-height:1.75; max-width:70ch; margin:.4rem 0 .7rem; font-size:1rem; }
.vd-guide h5,.vd-linked-reports h5 { font-size:1rem; line-height:1.55; margin:.15rem 0; }
.vd-guide summary,.vd-linked-reports summary { min-height:44px; padding-block:.55rem; cursor:pointer; color:var(--vd-green); font-weight:650; }
.vd-guide summary:focus-visible,.vd-linked-reports summary:focus-visible { outline:3px solid currentColor; outline-offset:2px; }
.vd-phrase { border-block:1px solid var(--line,#bccbc5); }
.vd-phrase bdi { display:inline-block; font:1.6rem/1.8 Amiri,serif; }
.vd-phrase i { margin-inline-start:.4rem; }
.vd-retrieval { padding:.2rem .8rem; margin-block:.9rem; border-inline-start:3px solid var(--vd-green); background:color-mix(in srgb,var(--vd-green) 7%,var(--vd-paper)); border-radius:8px; }
.vd-retrieval p,.vd-retrieval summary { margin-block:0; }
.vd-compare { display:grid; gap:.4rem; }
.vd-compare a { text-decoration:none; min-block-size:44px; box-sizing:border-box; display:flex; align-items:baseline; gap:.7rem; text-align:start; padding:.5rem .7rem; border-radius:9px; border:1px solid var(--line,#bccbc5); color:var(--vd-ink); background:var(--vd-paper); cursor:pointer; }
.vd-ref-pair { display:inline-flex; flex:none; flex-direction:column; }
.vd-ref-pair > span, .vd-ref-pair > small { white-space:nowrap; line-height:1.4; }
.vd-ref-pair > small { font-size:.875rem; }
.vd-compare bdi { color:var(--vd-green); font-weight:700; flex:none; }
.vd-compare span { font-size:.95rem; line-height:1.6; }
.vd-actions { display:flex; gap:.45rem; flex-wrap:wrap; margin:1rem 0; }
.vd-actions .vd-return-tafsir {display:inline-flex;align-items:center;min-height:44px;font-weight:700;text-underline-offset:.2em;}
.vd-actions button,.vd-actions .vd-return-tafsir { border:1px solid var(--vd-green); background:var(--vd-paper); color:var(--vd-green); border-radius:9px; padding:.35rem .8rem; cursor:pointer; }
.vd-actions button[data-vd-tool=tafsir] { font-weight:700; }
.vd-linked-reports { border-block-start:1px solid var(--line,#bccbc5); padding-block:.25rem; }
.vd-linked-reports > h4 { margin:.85rem 0 .7rem; color:var(--vd-green); font-size:1.1rem; line-height:1.6; }
.verse-discovery [data-vd-section-heading]:focus-visible { outline:3px solid var(--focus-ring,var(--vd-green)); outline-offset:3px; }
.vd-linked-reports .vh-report { margin-inline-start:.3rem; }
.vd-compare a:hover .vd-connection-question { text-decoration:underline; }
.vd-linked-reports a { color:var(--vd-green); text-decoration:underline; text-underline-offset:.17em; }
.verse-discovery [data-vd-resources] .ye-verse-links { margin-block:.7rem; }
.vd-phrase button { color:var(--vd-green); border:1px solid currentColor; border-radius:8px; background:transparent; padding:.35rem .75rem; margin-block-end:.6rem; cursor:pointer; }

.vd-adult-guide { margin-block:1.4rem; }
.vd-adult-reading { padding-block:.65rem .25rem; }
.vd-adult-reading .vd-keyword { display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .9rem; }
.vd-adult-reading .vd-keyword bdi { font:400 clamp(1.5rem,3.8vw,2rem)/1.9 var(--arabic,Amiri,serif);color:var(--vd-green); }
.vd-keyword span { font-size:.98rem;font-weight:600; }
.vd-adult-reading .vd-adult-tools { border-block:0; }
.vd-adult-tools summary { width:fit-content;text-decoration:underline;text-underline-offset:.2em; }
.vd-adult-reading>p { max-width:64ch; }
.vd-rule-sequence { margin-block:1.15rem; }
.vd-rule-sequence ol { list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.5rem;padding:0;margin:.4rem 0 0; }
.vd-rule-sequence li { margin:0;min-width:0; }
.vd-rule-sequence li>a,.vd-rule-sequence li[aria-current] { display:grid;align-content:start;gap:.55rem;padding:.8rem .9rem;box-sizing:border-box;border:1px solid var(--line,#b9cabe);border-block-start:3px solid var(--vd-green);background:var(--vd-paper);color:var(--vd-ink);border-radius:.5rem;height:100%;text-decoration:none; }
.vd-rule-sequence li[aria-current] { background:color-mix(in srgb,var(--vd-green) 9%,var(--vd-paper)); }
.vd-rule-title { display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:.1rem .4rem;font-weight:680;font-size:.92rem; }
.vd-rule-title bdi,.vd-rule-sequence a .vd-rule-title { color:var(--vd-green); }
.vd-rule-sequence a .vd-rule-title { text-decoration:underline;text-underline-offset:.18em; }
.vd-rule-sequence [lang=ar] { font:400 1.45rem/1.85 var(--arabic,Amiri,serif);text-align:start; }
.vd-rule-reading { font-size:.9rem;line-height:1.65; }
.vd-lesson-story { display:inline-flex;align-items:center;min-height:44px;color:var(--vd-green);text-underline-offset:.2em; }

.vd-evidence-note { margin:.75rem 0 1rem; padding-block:.2rem .25rem; padding-inline:1rem 0; border-inline-start:2px solid var(--vd-green); }
.vd-evidence-note a,.vd-nearby-text a { color:var(--vd-green); text-underline-offset:.18em; }
.vd-evidence-note p { max-width:64ch; }
.vd-evidence-note a { display:inline-block; padding-block:.3rem; line-height:1.6; }
.vd-nearby-text ul { list-style:none; padding:0; margin:.25rem 0; }
.vd-nearby-text li { padding-block:.55rem; }
.vd-nearby-text li+li { border-block-start:1px solid var(--line,#b9cabe); }
.vd-nearby-text a { display:inline-flex; align-items:center; gap:.6rem; min-height:44px; }
.vd-nearby-text .vd-context-ar { font:400 1.4rem/1.95 var(--arabic,Amiri,serif); }
.vd-nearby-text small { color:var(--muted,var(--vd-ink)); }

.vd-more-guides { margin-block:.6rem; }
.vd-more-guides .vd-compare { margin-block-end:.65rem; }
.vd-young-source a { color:var(--vd-green); text-underline-offset:.18em; }
.vd-report-access { display:block; margin-block-start:.45rem; }
.vd-report-access:empty { display:none; }
.vd-report-access button { min-block-size:2.75rem; max-inline-size:100%; padding:.4rem .7rem; border:1px solid currentColor; border-radius:.5rem; background:transparent; color:var(--vd-green); line-height:1.6; text-align:start; cursor:pointer; }
.vd-reference { align-items:baseline; }
.vd-reference .vd-ref-pair { text-align:end; }

/* Keep the ayah and its main explanation visible; let the reader choose depth. */
.vd-actions { gap:.5rem; margin-block:1rem 1.3rem; }
.vd-actions button,.vd-actions .vd-return-tafsir { font-size:.875rem; line-height:1.5; text-align:start; max-width:100%; box-sizing:border-box; }
.vd-actions .vd-return-tafsir { flex-basis:100%; width:fit-content; border:0; padding-inline:0; }
.vd-guide { border-block-start:1px solid var(--line,#bccbc5); padding-block-start:1.2rem; }
.vd-guide-head h4 { font-size:clamp(1.15rem,3vw,1.35rem); max-width:48ch; }
.vd-main-point { margin-block:.65rem 1.15rem; padding:.9rem 1rem; background:color-mix(in srgb,var(--vd-green) 6%,var(--vd-paper)); border-inline-start:3px solid var(--vd-green); border-radius:0 .6rem .6rem 0; }
[dir=rtl] .vd-main-point { border-radius:.6rem 0 0 .6rem; }
.vd-main-point h5 { color:var(--vd-green); font-size:.875rem; font-weight:750; margin-block:0 .4rem; }
.vd-main-point h4 { font-size:1.1rem; line-height:1.5; margin-block:0 .5rem; }
.vd-main-point p { margin:0; line-height:1.85; max-width:64ch; }
.vd-guide .vd-depth-prompt { margin-block:-.35rem 1rem; max-width:64ch; }
.vd-guide .vd-connection-prompt { max-width:64ch; margin-block:.35rem .8rem; }
.vd-compare .vd-connection-question { font-size:1rem; font-weight:600; }
.vd-compare .vd-connection-reference { display:inline-flex; align-items:baseline; color:var(--vd-green); font-size:.875rem; }
.vd-main-point button,.vd-source-recovery button { background:var(--vd-paper); color:var(--vd-green); border:1px solid currentColor; border-radius:.5rem; padding:.5rem .85rem; margin-block-start:.7rem; cursor:pointer; }
.vd-reading-detail { margin:0; padding:0; border:0; border-block-end:1px solid var(--line,#bccbc5); }
.vd-reading-detail > summary { padding-block:.8rem; font-size:1rem; line-height:1.6; min-height:44px; box-sizing:border-box; }
.vd-reading-detail[open] { padding-block-end:.85rem; }
.vd-reading-detail > :not(summary) { margin-inline:.25rem; }
.vd-reading-detail .vd-keyword { display:flex; flex-wrap:wrap; align-items:baseline; gap:.25rem .85rem; margin-block:.35rem .55rem; }
.vd-reading-detail .vd-keyword bdi { color:var(--vd-green); font:400 clamp(1.5rem,3.8vw,1.8rem)/1.9 var(--arabic,Amiri,serif); }
.vd-reading-detail .vd-keyword span { font-size:1rem; line-height:1.65; }
.vd-reading-detail .vd-evidence-note { margin-block:0; }
.vd-visible-evidence { padding-block:.8rem; }
.vd-visible-evidence > h5 { margin-block:0 .45rem; color:var(--vd-green); font-size:1rem; line-height:1.6; }
.vd-visible-evidence .vd-source-citation { font-size:.875rem; line-height:1.6; }
.vd-connections .vd-rule-sequence { margin-block:.35rem 1rem; }
.vd-connections .vd-compare { margin-block:.5rem; }
.vd-retrieval { margin-block:1.1rem; }
.vd-source-recovery,.vd-source-loading,.vd-source-empty { padding-block:.65rem; font-size:.875rem; line-height:1.7; }
.vd-source-recovery p { margin:0; max-width:65ch; }
.vd-source-recovery button { font-size:.875rem; }
.vd-translation-label,.vd-reference,.vd-picture-caption,.vd-word-guidance,.vd-scope { font-size:.875rem; }
.vd-word-trail button small { font-size:.875rem; }
@media(max-width:400px){
 .vd-main-point { padding:.8rem; }
 .vd-actions button { flex:1 1 8rem; padding:.5rem .6rem; }
 .vd-reading-detail > summary { font-size:.95rem; }
 .vd-compare a { flex-wrap:wrap; gap:.3rem .65rem; }
}

/* Scope shortcuts reveal the existing explanation; they never replace the ayah. */
.vd-section-nav{display:flex;flex-wrap:wrap;gap:.35rem;margin-block:0 .65rem;padding-block:0 .4rem;border-block-end:1px solid var(--line,#bccbc5)}
.vd-section-nav:empty{display:none}
.vd-section-nav button,.vd-guide-head .vd-level{min-block-size:44px;max-inline-size:100%;padding:.4rem .7rem;border:1px solid var(--line,#bccbc5);border-radius:.45rem;background:var(--vd-paper);color:var(--vd-green);font:inherit;font-size:.875rem;font-weight:600;line-height:1.5;text-align:start;cursor:pointer}
.vd-section-nav button[aria-current]{border-color:var(--vd-green);background:color-mix(in srgb,var(--vd-green) 9%,var(--vd-paper));box-shadow:inset 0 -2px var(--vd-green)}
.vd-section-nav button:focus-visible,.vd-guide-head .vd-level:focus-visible{outline:3px solid var(--focus-ring,var(--vd-ink));outline-offset:3px}
.verse-discovery :is([data-vd-keep],.vd-main-point,[data-rs-disclosure]){scroll-margin-block-start:.7rem}
.vd-guide-head .vd-level{font-size:.875rem}
.vd-passage-items{display:flex;gap:.55rem;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scroll-padding-inline:.15rem;padding:.15rem .15rem .65rem}
.vd-passage-items>a{flex:0 0 14rem;max-inline-size:calc(100% - 1.2rem);min-inline-size:0;display:flex;flex-direction:column;align-items:start;justify-content:start;gap:.45rem;scroll-snap-align:start}
.vd-passage-items .vd-current-passage{display:flex;flex-direction:column;align-items:start;justify-content:start;gap:.45rem;flex:0 0 auto;min-inline-size:5.5rem;max-inline-size:8rem;padding:.5rem .7rem;border:1px solid var(--vd-green);border-radius:9px;background:color-mix(in srgb,var(--vd-green) 9%,var(--vd-paper));scroll-snap-align:start}
.vd-current-passage>small{font-size:.875rem;line-height:1.5;font-weight:650;color:var(--vd-green)}
.vd-passage-items>a:hover{border-color:var(--vd-green)}
@media(max-width:400px){.vd-section-nav{gap:.3rem}.vd-section-nav button{padding:.4rem .6rem}.vd-passage-items>a{flex-basis:13rem}}
@media(forced-colors:active){.vd-section-nav button[aria-current],.vd-current-passage{outline:2px solid Highlight;outline-offset:-3px}}
.vd-guide-intro{display:flex;align-items:center;justify-content:space-between;gap:.6rem 1rem;flex-wrap:wrap;padding:.1rem 0 .7rem;border-bottom:1px solid var(--line);margin-bottom:.65rem;}
.vd-guide-intro p{display:grid;gap:.15rem;margin:0;flex:1 1 16rem;line-height:1.55;font-size:1rem;color:var(--ink);}
.vd-guide-intro p>strong{font-size:1.12rem;color:var(--green);}
.vd-guide-intro a{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;font-size:.94rem;font-weight:700;color:var(--green);text-decoration:underline;text-underline-offset:.2em;}
.vd-guide-intro a svg{width:1.15rem;height:1.15rem;}
.vd-guide-intro a:focus-visible{outline:3px solid var(--green);outline-offset:3px;}

/* The enclosing verse tabs already name the guide and expose its tools. */
.vd-panel-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.25rem .8rem;margin-block:0 .75rem;border-block-end:1px solid var(--line,#bccbc5);}
.vd-panel-navigation .vd-section-nav{flex:1 1 20rem;gap:.25rem;margin:0;padding:0;border:0;}
.vd-panel-navigation .vd-lessons-link{display:inline-flex;align-items:center;gap:.35rem;min-block-size:44px;color:var(--vd-green);font-size:.875rem;font-weight:650;text-underline-offset:.2em;}
.vd-panel-navigation .vd-lessons-link svg{inline-size:1rem;block-size:1rem;}
.vd-panel-return{margin-block:.65rem;}
.vd-panel-return a{display:inline-flex;align-items:center;min-block-size:44px;color:var(--vd-green);font-size:.875rem;font-weight:650;text-underline-offset:.2em;}
.vd-word-practice-entry{margin-block:.65rem;}
.vd-word-practice-entry button{padding:.4rem .7rem;border:1px solid var(--line,#bccbc5);border-radius:.5rem;background:var(--vd-paper);color:var(--vd-green);font-size:.95rem;text-align:start;cursor:pointer;}
@media(max-width:480px){.vd-panel-navigation{gap:0 .5rem}.vd-panel-navigation .vd-section-nav{flex-basis:100%}.vd-panel-navigation .vd-lessons-link{font-size:.875rem}}


/* A brief reading insight shares the Tafsir panel; depth stays optional. */
.vd-reader-guide{margin:.6rem 0 1rem;padding:.8rem .9rem;border:1px solid var(--line);border-radius:.75rem;background:var(--pale);color:var(--ink)}
.vd-reader-guide h3{font-size:.875rem;line-height:1.4;color:var(--green);margin:0 0 .35rem}
.vd-reader-guide p{font-size:1rem;line-height:1.75;margin:.25rem 0 .5rem;max-width:68ch}
.vd-reader-guide summary{min-block-size:44px;display:flex;align-items:center;gap:.4rem;cursor:pointer;font-size:.875rem;font-weight:650;color:var(--green);list-style:none}
.vd-reader-guide summary::after{content:'+';margin-inline-start:auto;font-size:1.15rem;font-weight:400}
.vd-reader-guide details[open]>summary::after{content:'−'}
.vd-reader-guide details summary::-webkit-details-marker{display:none}
.vd-reader-guide .vd-compact-reflect{border-block-start:1px solid var(--line);margin-block-start:.4rem}
.vd-reader-guide .vd-compact-reflect>details{padding-inline:.6rem;border-inline-start:2px solid var(--green)}
.vd-compact-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 .65rem;margin-block-start:.15rem}
.vd-compact-links a{display:inline-flex;align-items:center;min-block-size:44px;color:var(--green);font-size:.875rem;line-height:1.5;text-decoration:none}
.vd-compact-links .vd-compact-lessons{gap:.35rem;margin-inline-start:auto;font-weight:650}
.vd-compact-lessons svg{width:18px;height:18px}
.vd-reader-guide :is(summary,a):focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}


/* /tafsir-lesson-links.css */
.tafsir-lesson-links {display:grid;gap:.3rem;margin-block:.7rem .9rem;text-align:start}
.tl-group {display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .4rem}
.tl-group>span {font:600 .84rem/1.4 var(--font-ui,system-ui);color:var(--muted,#58665d);margin-inline-end:.15rem}
.tl-group .tl-tag {display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .65rem;min-height:2.75rem;box-sizing:border-box;border:1px solid var(--line,#cbd7cd);border-radius:.65rem;background:var(--pale,#eef4ed);color:var(--ink,#203d32);font:600 .9rem/1.45 var(--font-ui,system-ui);text-decoration:underline;text-underline-offset:.17em}
.tl-tag bdi {font-size:.8em;white-space:nowrap}
.tl-tag:focus-visible {outline:2px solid currentColor;outline-offset:2px}


/* /install-app.css */
/* One steady install entry in the app header. The browser owns the native confirmation. */
.topbar .top-right .pwa-install-trigger{
  display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
  min-height:44px;white-space:nowrap;border:1px solid #1a6951;border-radius:12px;
  padding:8px 13px;background:#155a46;color:white;cursor:pointer;
  font:700 .875rem/1.35 var(--font-ui,system-ui)
}
.topbar .top-right .pwa-install-trigger:hover{background:#124936}
.pwa-install-trigger svg{width:20px;height:21px;flex:none}
.pwa-install-trigger:focus-visible{outline:3px solid var(--focus-ring,#a57b31);outline-offset:3px}
.pwa-install-trigger:disabled{opacity:.7;cursor:wait}
.pwa-update-dot{display:block;position:relative;margin:12px auto 0;max-width:calc(100% - 36px);border:1px solid #b99c58;background:#174e70;color:#fff;padding:12px 18px;border-radius:12px;box-shadow:0 5px 20px #0002;font:600 .875rem var(--font-ui,system-ui);cursor:pointer}
@media(max-width:1000px){
  .topbar .top-right .pwa-install-trigger{padding:7px 9px;gap:4px;font-size:.8125rem;box-shadow:none}
  .topbar .top-right .pwa-install-trigger svg{width:15px;height:17px}
}
/* Phone placement is shared with the other header controls in experience-polish.css. */
@media(max-width:420px){
  .topbar .top-right .pwa-install-trigger{padding-inline:8px}
}
@media(max-width:365px){.topbar .top-right .pwa-install-trigger svg{display:none}}
@media print{.pwa-install-trigger,.pwa-update-dot{display:none!important}}

/* A real iPhone installation guide. The browser's Share menu owns installation;
   the app never substitutes navigator.share() for Add to Home Screen. */
.pwa-install-guide{
  box-sizing:border-box;inline-size:min(30rem,calc(100vw - 24px));max-inline-size:30rem;
  max-block-size:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;
  margin:auto;padding:20px;border:1px solid var(--line,#cfd9d2);border-radius:24px;
  background:var(--panel,#fff);color:var(--ink,#153a30);font:1rem/1.5 var(--font-ui,system-ui);
  box-shadow:0 20px 70px #102e3650;z-index:11000;text-align:start;
}
.pwa-install-guide::backdrop,.pwa-install-backdrop{background:#102b3370;backdrop-filter:blur(3px)}
.pwa-install-backdrop{position:fixed;inset:0;z-index:10999}
.pwa-guide-heading{display:flex;align-items:center;gap:12px;margin-block-end:16px}
.pwa-guide-heading img{flex:none;inline-size:44px;block-size:44px;border-radius:12px}
.pwa-guide-heading>div{flex:1;min-inline-size:0}
.pwa-guide-heading h2{margin:0;font-size:1.25rem;line-height:1.3;letter-spacing:normal;color:inherit}
.pwa-guide-heading h2:focus{outline:none}
.pwa-guide-heading p{margin:3px 0 0;font-size:.875rem;color:var(--muted,#53655e)}
.pwa-install-guide button{font:inherit;cursor:pointer;touch-action:manipulation}
.pwa-guide-close{display:grid;place-items:center;flex:none;inline-size:44px;block-size:44px;border:1px solid var(--line,#cfd9d2);border-radius:50%;background:var(--pale,#edf6f0);color:inherit;font-size:1.5rem!important;line-height:1}
.pwa-device-options{display:flex;gap:4px;background:var(--pale,#edf6f0);border-radius:12px;padding:4px}
.pwa-device-options button{flex:1;min-inline-size:0;min-block-size:44px;padding:7px 5px;border:0;border-radius:9px;background:transparent;color:inherit;font-size:.875rem;font-weight:650;white-space:nowrap}
.pwa-device-options button[aria-pressed="true"]{background:var(--green,#09654f);color:#fff}
.pwa-guide-intro{margin:16px 0 8px;font-weight:650}
.pwa-install-steps{list-style:none;display:grid;gap:8px;margin:0;padding:0}
.pwa-install-steps li{display:flex;align-items:flex-start;gap:12px;padding:10px 0}
.pwa-step-icon{display:grid;place-items:center;flex:none;inline-size:44px;block-size:44px;border-radius:12px;background:var(--pale,#edf6f0);color:var(--green,#09654f)}
.pwa-step-icon svg{inline-size:25px;block-size:25px}
.pwa-install-steps strong{display:block;font-size:1rem;line-height:1.5}
.pwa-install-steps p{margin:3px 0 0;font-size:.9375rem;line-height:1.55;color:var(--muted,#53655e)}
.pwa-install-help{margin-block:8px 0;border-block-start:1px solid var(--line,#cfd9d2)}
.pwa-install-help summary{min-block-size:44px;display:list-item;padding-block:10px;cursor:pointer;font-size:.9375rem;font-weight:650}
.pwa-install-help p{margin:0 0 8px;font-size:.9375rem;color:var(--muted,#53655e)}
.pwa-install-status{margin:0;font-size:.875rem;overflow-wrap:anywhere}
.pwa-install-status:not(:empty){margin-block:10px}
.pwa-install-status input{box-sizing:border-box;display:block;inline-size:100%;padding:8px;min-block-size:44px;font:inherit;direction:ltr;color:inherit;background:var(--panel,#fff);border:1px solid var(--line,#cfd9d2);border-radius:8px}
.pwa-guide-actions{display:flex;gap:8px;padding-block-start:12px;position:relative}
.pwa-guide-actions button{min-block-size:46px;padding:9px 16px;border:1px solid var(--line,#cfd9d2);border-radius:12px;background:var(--panel,#fff);color:inherit;font-size:.9375rem;font-weight:650}
.pwa-guide-actions .pwa-guide-done{margin-inline-start:auto;min-inline-size:90px;background:var(--green,#09654f);color:#fff;border-color:transparent}
.pwa-apk-download{display:inline-flex;align-items:center;gap:.5rem;min-block-size:44px;box-sizing:border-box;padding:.5rem .8rem;color:var(--ink,#153a30);background:var(--pale,#edf6f0);border:1px solid var(--line,#cfd9d2);border-radius:12px;font-weight:650;text-decoration:none}
.pwa-apk-download svg{flex:none;inline-size:20px;block-size:20px}
.pwa-install-guide :is(button,summary,input,a[href]):focus-visible{outline:3px solid var(--focus-ring,#b18537);outline-offset:2px}
.pwa-home-hint{display:flex;align-items:center;gap:8px;padding:8px 10px;margin-block:0 12px;border:1px solid var(--line,#cfd9d2);border-radius:14px;background:var(--panel,#fff);color:var(--ink,#153a30)}
.pwa-home-hint>span{display:flex;align-items:center;gap:8px;flex:1;min-inline-size:0;font-size:.875rem;line-height:1.4}
.pwa-home-hint svg{inline-size:24px;block-size:24px;flex:none;color:var(--green,#09654f)}
.pwa-home-hint button{min-block-size:44px;border:0;border-radius:10px;font:650 .875rem var(--font-ui,system-ui);cursor:pointer}
.pwa-home-hint [data-install-app]{padding-inline:14px;background:var(--green,#09654f);color:#fff}
.pwa-home-hint [data-pwa-hide-hint]{inline-size:44px;flex:none;color:var(--muted,#53655e);background:transparent;font-size:1.35rem}
@media(max-width:600px){
 .pwa-install-guide{inline-size:100%;max-inline-size:none;max-block-size:95dvh;margin:auto 0 0;border-radius:22px 22px 0 0;padding:16px 16px max(16px,env(safe-area-inset-bottom))}
}
@media print{.pwa-install-guide,.pwa-install-backdrop,.pwa-home-hint{display:none!important}}

.pwa-widget-preview{display:flex;align-items:center;gap:16px;margin-block:18px;padding:18px;border-radius:16px;background:#164c42;color:#fff}
.pwa-widget-mark{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #ffffff65;border-radius:14px}
.pwa-widget-mark svg{width:28px;height:28px}
.pwa-widget-preview small,.pwa-widget-preview strong{display:block}
.pwa-widget-preview small{font-size:.875rem;color:#d6e9e0}
.pwa-widget-preview strong{font-size:1.3rem}
.pwa-widget-steps{padding-inline-start:1.6rem;margin-block:16px}
.pwa-widget-steps li{padding-inline-start:.2rem;margin-block:.45rem}
.pwa-widget-actions{display:flex;flex-wrap:wrap;gap:8px}
.pwa-widget-actions :is(button,a){display:inline-flex;align-items:center;min-height:44px;padding:8px 13px;box-sizing:border-box;border:1px solid var(--line,#cfd9d2);border-radius:12px;font-size:.9375rem;font-weight:650;text-decoration:none;color:inherit}
.pwa-widget-actions button{background:var(--green,#09654f);color:white;border-color:transparent}


/* /mobile-v5.css */
/* The mobile reader is the centre of the experience. */
:root{--gold:#aa8644;--tap:44px}*{scrollbar-width:thin}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b28b43;outline-offset:3px}[hidden]{display:none!important}body{overflow-x:clip}.layout,.home-page .layout,.reader-page .layout{display:block;max-width:1000px;margin-inline:auto;padding:30px 36px 80px}.rail{display:none}.topbar{position:sticky;top:0;z-index:40;background:var(--bg);height:72px;gap:12px}.top-brand{display:flex;align-items:center;gap:10px;border:0;background:none;color:var(--ink);font:800 17px Manrope,sans-serif;padding:0;min-height:44px}.top-brand img{height:38px;width:38px}.top-title:before{content:none}.language-button{border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:0 13px;border-radius:100px;min-height:44px;min-width:44px;font-size:13px;font-family:inherit}.top-right .circle-btn{min-height:44px;min-width:44px;display:grid;place-items:center}.circle-btn svg{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.6}.sidebar .brand{cursor:pointer;text-align:start;background:none;border:0;display:flex;gap:10px;padding:0;color:inherit;width:100%}.brand-logo{width:43px;height:43px;flex:none}.brand-name{font:700 24px Georgia,serif;color:#f1e9cd}.brand-sub{font-size:8px}.sidebar .nav-label{margin-top:40px}.sidebar .nav-item{min-height:48px}.sidebar .side-note{font-size:12px;line-height:1.8}.today-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.today-heading h1{font:700 30px/1.2 Georgia,serif;margin:5px 0;color:var(--ink)}.today-heading .eyebrow{font-size:9px;letter-spacing:1.8px;color:var(--gold)}.today-heading>span{font-size:11px;color:var(--muted)}.continue-card{position:relative;overflow:hidden;background:#113f33;border:1px solid #1b4b3d;border-radius:22px;padding:27px;color:#fff6df;min-height:222px;margin-bottom:20px;box-shadow:0 12px 30px #1a402113}.continue-art{position:absolute;inset:0;background:linear-gradient(90deg,#0c3029f2 0%,#0c3029d9 38%,#0c302917 85%),url('shrine-art.png') center 52%/cover}.continue-copy{position:relative;z-index:1;width:75%}.continue-copy .eyebrow{font-size:9px;letter-spacing:1.7px;color:#d7bd82}.continue-copy h2{font:600 30px/1.3 Georgia,serif;margin:13px 0 8px;letter-spacing:-.5px;color:#fff4d8}.continue-copy p{color:#ccdacb;font-size:12px;margin:0 0 22px;line-height:1.6}.continue-actions{display:flex;gap:10px}.continue-actions .btn-gold{min-height:46px;font-size:12px;border-radius:12px}.continue-recite{background:#ffffff12;border:1px solid #ddce9b66;color:#e9d8a7;border-radius:12px;min-width:46px;display:grid;place-items:center}.continue-recite svg,.reader-dock svg{height:20px;width:20px;stroke:currentColor;fill:none;stroke-width:1.6}.source-section{margin:27px 0}.source-section .section-head{align-items:center;display:flex;justify-content:space-between;gap:12px}.source-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.source-tile{position:relative;overflow:hidden;min-height:157px;background:#e9eee2;border:1px solid #d7dfca;border-radius:14px;text-align:start;padding:18px 15px;color:#244c36;display:flex;flex-direction:column;align-items:flex-start;transition:transform .18s}.source-tile:before{content:'';position:absolute;width:80px;height:120px;inset-inline-end:-17px;top:-20px;border-radius:50% 50% 0 0;border:1px solid #7b9b6f30;transform:rotate(-25deg)}.source-tile:hover{transform:translateY(-2px)}.source-tile.qummi{background:#e5edeb;border-color:#d0dfd9}.source-tile.askari{background:#f1eadb;border-color:#e3d8bd}.source-tile>span{font:400 27px/1.8 var(--arabic);display:block;margin-bottom:12px;align-self:center;color:#446948}.source-tile.askari>span{font-size:23px;color:#8f7441}.source-tile.qummi>span{color:#3e7567}.source-tile strong{font-size:12px;line-height:1.5}.source-tile small{font-size:10px;line-height:1.5;color:#738168;margin-top:5px}.source-tile>b{position:absolute;inset-inline-end:13px;bottom:12px;color:#859879;font-weight:400}.section-head .text-link,.text-link{min-height:44px;display:inline-flex;align-items:center;font-size:11px}.study-path{display:flex;gap:14px;align-items:center;width:100%;background:var(--panel);border:1px solid var(--line);color:var(--ink);border-radius:14px;padding:18px;text-align:start}.study-path>span:first-child{display:grid;place-items:center;width:43px;height:43px;background:var(--pale);border-radius:12px;color:var(--gold);font-size:23px}.study-path strong,.study-path small{display:block}.study-path strong{font-size:13px;margin-bottom:5px}.study-path small{font-size:11px;line-height:1.7;color:var(--muted)}.study-path>b{margin-inline-start:auto}.integrated-footer{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);margin-top:32px;padding-top:23px}.integrated-footer>span{font:23px var(--arabic);color:var(--gold)}.integrated-footer p{font-size:10px;line-height:1.7;color:var(--muted);margin:0}.page-heading h1{font:700 29px/1.3 Georgia,serif;margin:0 0 8px}.page-heading p{color:var(--muted);font-size:13px;line-height:1.8;margin:0 0 20px}.study-segments{display:flex;background:var(--pale);padding:5px;border:1px solid var(--line);border-radius:14px;margin-bottom:23px;gap:5px}.study-segments button{flex:1;border:0;background:none;color:var(--muted);font-family:inherit;font-weight:700;font-size:12px;min-height:44px;border-radius:10px}.study-segments button.active{background:var(--panel);color:var(--ink);box-shadow:0 2px 6px #00000008}.study-context{border:1px solid var(--line);border-radius:15px;padding:19px;background:var(--panel);margin:20px 0}.study-context p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 14px}.study-context button{min-height:44px}.surah-row{min-height:76px}.surah-info{min-width:0}.surah-info strong{font-size:14px}.surah-info small{font-size:11px;line-height:1.6}.surah-number{flex:none}.reader-header{display:flex!important;align-items:center!important;justify-content:space-between;margin-bottom:12px;gap:12px}.reader-surah-select{display:flex;align-items:center;gap:12px;text-align:start;min-height:52px;background:none;border:0;color:var(--ink);padding:0}.reader-surah-number{display:grid;place-items:center;background:var(--pale);color:var(--green);border:1px solid var(--line);width:42px;height:48px;border-radius:24px 24px 10px 10px;font-size:12px}.reader-surah-select h1{font:700 24px/1.3 Georgia,serif;margin:0 0 4px;letter-spacing:-.3px}.reader-surah-select small{font-size:11px;line-height:1.5;color:var(--muted)}.reader-appearance{min-height:44px;min-width:44px;border:1px solid var(--line);background:var(--panel);font-size:15px;border-radius:12px}.reader-context-strip{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:11px}.verse-jump{display:flex;align-items:center;gap:8px;margin:0;padding:0;background:none;border:0}.verse-jump label{font-size:11px;color:var(--muted)}.verse-jump input{width:48px;min-height:40px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:9px;text-align:center;font-size:13px}.verse-jump button{min-height:44px;padding:8px;color:var(--green);font-size:12px}.reading-today{font-size:13px;font-weight:700;color:var(--green);white-space:nowrap}.reading-today small{font-weight:400;color:var(--muted);font-size:10px}.reader-options{background:var(--panel);border:1px solid var(--line);padding:15px;border-radius:13px;margin-top:15px}.reader-tools{display:flex;flex-wrap:wrap;gap:8px}.reader-tools .tool{min-height:44px}.reader-mode-note{font-size:11px;line-height:1.6;color:var(--muted);padding:8px 12px;background:var(--pale);border-radius:9px;margin:12px 0}.reader-surah-ornament{position:relative;text-align:center;color:var(--gold);font:27px/1.5 var(--arabic);margin:18px auto 16px;width:fit-content;padding-inline:40px}.reader-surah-ornament:before,.reader-surah-ornament:after{content:'◇';font:14px Georgia;position:absolute;top:12px;color:#b59c655e}.reader-surah-ornament:before{left:10px}.reader-surah-ornament:after{right:10px}.verse-card{padding:21px 25px;margin-bottom:14px;border:1px solid var(--line);border-radius:16px;scroll-margin-top:95px}.verse-card.selected-verse{border-color:#a6bba0;box-shadow:inset 3px 0 0 #8caa77}.verse-meta{gap:10px}.verse-ref{border:0;min-width:44px;min-height:36px;cursor:pointer;font-size:11px;border-radius:9px}.verse-source{font-size:9px;color:var(--muted)}.verse-ar{margin:19px 0 16px;line-height:2.15;font-size:var(--arabic-size);color:var(--ink)}.ayah-end{font-size:.65em;color:var(--gold);white-space:nowrap;margin-inline-start:7px}.verse-en{font-size:13px;line-height:1.85;margin:0 0 13px}.verse-en small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.verse-actions{display:flex;align-items:center;gap:7px;padding-top:12px}.verse-action{min-height:44px;flex:1;justify-content:center;font-size:11px;padding:8px 7px;border-radius:10px;white-space:nowrap}.verse-action svg{width:17px;height:17px}.verse-action.ai-action{background:var(--pale)}.icon-button{min-width:44px;min-height:44px}.verse-actions>button:only-child{flex:0}.chapter-pagination{display:flex;justify-content:space-between;gap:10px;margin:22px 0}.chapter-pagination .tool{min-height:44px}.reader-dock{position:fixed;bottom:20px;left:calc(50% + 100px);transform:translateX(-50%);z-index:80;display:flex;align-items:center;gap:8px;width:min(560px,calc(100% - 280px));background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:9px 12px;box-shadow:0 8px 40px #102d3020}.reader-dock>span{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-dock>span small{font-size:9px;color:var(--muted);font-weight:400}.reader-dock button{min-height:44px;border:0;border-radius:10px;padding:8px 15px;background:var(--pale);color:var(--green);font-family:inherit;font-weight:700;font-size:12px;display:flex;align-items:center;gap:6px}.reader-dock button:last-child{background:#214e3a;color:#f2e3b9}.reader-companion{padding:0;border:1px solid var(--line);background:var(--bg);color:var(--ink);width:min(600px,calc(100% - 32px));max-height:90dvh;height:min(800px,90dvh);border-radius:24px;overflow:hidden;box-shadow:0 25px 100px #001a1666}.reader-companion::backdrop{background:#08251fc9;backdrop-filter:blur(4px)}.reader-companion[open]{display:flex;flex-direction:column}.companion-open{overflow:hidden}.companion-handle{width:35px;height:4px;border-radius:6px;background:var(--line);margin:10px auto 0;flex:none}.companion-header{padding:16px 25px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none}.companion-eyebrow{font-size:8px;letter-spacing:1.5px;font-weight:700;color:var(--gold)}.companion-header h2{font:700 24px/1.3 Georgia,serif;margin:5px 0;color:var(--ink)}.companion-reference{font-size:11px;color:var(--muted)}.companion-close{width:44px;height:44px;border-radius:50%;background:var(--panel);border:1px solid var(--line);color:var(--ink);font-size:25px;flex:none}.companion-controls{display:flex;align-items:center;gap:8px;padding:0 23px 12px;flex:none;border-bottom:1px solid var(--line)}.companion-controls>button{background:none;border:1px solid var(--line);border-radius:10px;color:var(--ink);min-width:44px;height:44px;font-size:25px}.companion-controls [role=tablist]{display:flex;flex:1;padding:4px;background:var(--pale);border-radius:12px;gap:4px}.companion-controls [role=tab]{flex:1;background:transparent;border:0;min-height:44px;border-radius:9px;color:var(--muted);font-size:12px;font-weight:700;font-family:inherit;line-height:1.4;padding:6px}.companion-controls [aria-selected=true]{background:var(--panel);color:var(--ink);box-shadow:0 2px 6px #0001}.companion-message{font-size:12px;color:var(--gold);margin:0;padding:0 25px;flex:none;line-height:1.7}.companion-message:empty{display:none}.companion-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 25px 30px;flex:1}.companion-basmala{font-size:11px;line-height:1.8;background:var(--pale);padding:12px;border-radius:10px;color:var(--muted)}#companionRecite{padding-top:20px}.companion-controls button:disabled{opacity:.3;cursor:default}.settings-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.settings-shortcuts button{min-height:44px}.setting-row{gap:18px}.setting-row select{min-height:44px}.settings-card{overflow:hidden}.source-access-note{font-size:12px;line-height:1.9;color:var(--muted)}[dir=rtl] .continue-art{transform:scaleX(-1)}[dir=rtl] .reader-dock{direction:rtl}[dir=rtl] .verse-card.selected-verse{box-shadow:inset -3px 0 0 #8caa77}[dir=rtl] .top-brand,[dir=rtl] .today-heading h1,[dir=rtl] .page-heading h1,[dir=rtl] .reader-surah-select h1,[dir=rtl] .companion-header h2{font-family:var(--arabic);letter-spacing:0}[dir=rtl] .continue-copy h2{font-family:var(--arabic);font-size:32px;letter-spacing:0}[dir=rtl] .today-heading .eyebrow,[dir=rtl] .continue-copy .eyebrow,[dir=rtl] .companion-eyebrow{letter-spacing:0;font-size:11px}[dir=rtl] .source-tile strong{font-family:var(--arabic);font-size:19px}.dark .source-tile{background:#283e2b;border-color:#405438;color:#e2e9d6}.dark .source-tile.qummi{background:#254039;border-color:#36554b}.dark .source-tile.askari{background:#3d3d2b;border-color:#545238}.dark .source-tile>span{color:#c4d4ae}.dark .source-tile small{color:#a8b69c}.dark .reader-dock button:last-child{background:#c9b175;color:#1b3a2b}.dark .verse-card.selected-verse{border-color:#71885d}.dark .continue-card{border-color:#3a6048}.dark .reader-companion{background:#142c23}
@media(max-width:1000px){.layout,.home-page .layout,.reader-page .layout{padding:25px 24px 80px}.home-surah-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}.topbar{height:65px;padding:0 18px;background:var(--bg);border-bottom-color:var(--line)}.top-brand{font-size:17px;gap:9px}.top-brand img{width:34px;height:34px}.top-right{gap:7px}.top-right .circle-btn{border:0;background:none}.layout,.home-page .layout,.reader-page .layout{padding:22px 18px 28px}.today-heading{margin-bottom:17px}.today-heading h1{font-size:26px}.today-heading>span{font-size:10px}.continue-card{padding:23px;min-height:222px;border-radius:19px}.continue-copy{width:85%}.continue-copy h2{font-size:29px}.continue-copy p{font-size:11px;margin-bottom:19px}.continue-art{background-position:center 55%}.source-shelf{gap:8px}.source-tile{padding:15px 11px;min-height:155px;border-radius:12px}.source-tile>span{font-size:24px;line-height:1.7;margin-bottom:10px}.source-tile.askari>span{font-size:20px}.source-tile strong{font-size:10px}.source-tile small{font-size:9px;padding-inline-end:8px}.source-section{margin:23px 0}.section-head h2,.home-surahs h2{font-size:17px}.source-section .section-head .text-link{font-size:10px}.study-path{padding:16px;gap:12px}.home-surah-grid{grid-template-columns:1fr}.mobile-nav{position:fixed;inset-inline:0;bottom:0;height:calc(70px + env(safe-area-inset-bottom));padding:0 5px env(safe-area-inset-bottom);display:flex;background:var(--panel);border-top:1px solid var(--line);z-index:90}.mobile-nav button{flex:1;min-width:0;min-height:56px;font-size:10px;color:var(--muted);gap:5px}.mobile-nav button.active{color:var(--ink);position:relative}.mobile-nav button.active:before{content:'';position:absolute;top:4px;width:28px;height:3px;background:var(--gold);border-radius:5px}.mobile-nav button.active svg{color:var(--green)}.mobile-nav svg{width:22px;height:22px}.reader-page .layout{padding:15px 16px 28px}.reader-header{gap:9px;margin-bottom:9px}.reader-surah-select h1{font-size:23px}.reader-surah-select small{font-size:10px}.reader-surah-select{gap:10px}.reader-surah-number{width:37px;height:44px}.reader-surah-ornament{margin:15px auto;font-size:25px}.verse-card{padding:16px 16px 13px;border-radius:14px;margin-bottom:12px}.verse-ar{margin:15px 0;line-height:2.05}.verse-en{font-size:12px;line-height:1.85}.verse-actions{gap:6px;padding-top:10px}.verse-action{font-size:10px;padding:7px 5px;gap:5px;min-height:44px}.verse-source{font-size:8px}.reader-dock{bottom:calc(77px + env(safe-area-inset-bottom));inset-inline:10px;left:10px;transform:none;width:calc(100% - 20px);padding:7px 9px;border-radius:15px;gap:7px}.reader-dock>span{padding-inline-start:4px;font-size:10px}.reader-dock>span small{font-size:9px}.reader-dock button{font-size:11px;padding:8px 13px}.reader-dock svg{width:17px;height:17px}.has-reader-dock{padding-bottom:calc(148px + env(safe-area-inset-bottom))}.reader-companion{width:100%;max-width:100%;margin:auto 0 0;border-radius:22px 22px 0 0;height:88dvh;max-height:88dvh;border-bottom:0;border-inline:0}.companion-header{padding:12px 20px}.companion-header h2{font-size:23px}.companion-controls{padding:0 16px 11px;gap:7px}.companion-controls [role=tab]{font-size:11px}.companion-scroll{padding:0 20px calc(24px + env(safe-area-inset-bottom))}.companion-message{padding:0 20px}.study-segments{margin-bottom:20px}.page-heading h1{font-size:27px}.page-heading p{font-size:12px}.reader-context-strip{gap:7px}.setting-row{padding:16px}.settings-shortcuts{display:grid;grid-template-columns:1fr 1fr}.integrated-footer{gap:12px}.integrated-footer p{font-size:9px}.search-input{min-height:50px}.dark .topbar,.dark .mobile-nav{background:var(--bg)}}
@media(max-width:360px){.layout,.home-page .layout{padding-inline:14px}.topbar{padding-inline:13px}.reader-page .layout{padding-inline:12px}.continue-card{padding:20px}.continue-copy{width:91%}.continue-copy h2{font-size:27px}.source-shelf{gap:6px}.source-tile{padding:13px 8px;min-height:157px}.source-tile>span{font-size:22px}.source-tile.askari>span{font-size:18px}.source-tile strong{font-size:9px}.source-tile small{font-size:8px}.source-section .section-head h2{font-size:15px}.source-section .section-head .text-link{font-size:9px}.verse-card{padding-inline:13px}.verse-action{font-size:9px;gap:4px}.reader-dock button{padding-inline:10px}.reader-dock>span{font-size:9px}.reading-today{font-size:11px}.companion-controls{padding-inline:12px;gap:5px}.companion-controls [role=tab]{font-size:10px}.companion-scroll{padding-inline:16px}.companion-controls>button{min-width:40px}.top-title{font-size:15px}.language-button{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Component typography and actual shared markup. */
.continue-label{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#d8bf87}.continue-mic{display:flex;align-items:center;justify-content:center;gap:7px;background:#ffffff12;border:1px solid #ddce9b66;color:#e9d8a7;border-radius:12px;min-width:60px;min-height:46px;font-family:inherit;font-weight:700;font-size:10px}.continue-mic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}.continue-actions .btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}.home-priority{margin:26px 0}.home-priority .section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.source-tile .source-tile-index{align-self:flex-start;font-family:inherit;font-weight:700;font-size:8px;line-height:1.4;letter-spacing:1px;color:#8b986e;margin:0 0 4px}.source-tile .source-tile-ar{font:400 27px/1.6 var(--arabic);margin:6px 0 11px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}.source-tile.askari .source-tile-ar{font-size:23px}.source-tile .source-tile-open{font:500 9px/1.7 'DM Sans',sans-serif;align-self:flex-start;margin:13px 0 0;color:#607b4e}.study-path{margin:0 0 27px}.study-path h2{font:700 19px/1.4 Manrope,sans-serif;margin:6px 0;color:var(--ink)}.study-path p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.study-path .eyebrow{font-size:8px;color:var(--gold);letter-spacing:1px}.study-path-symbol{display:grid;place-items:center;background:var(--pale);color:var(--gold);width:47px;height:52px;border-radius:25px 25px 9px 9px;flex:none}.study-path-symbol svg{fill:none;stroke:currentColor;stroke-width:1.4;width:24px;height:24px}.home-surah-head{margin:25px 0 14px}.integrated-footer>span{font:600 11px/1.8 'DM Sans',sans-serif;color:var(--muted)}.integrated-footer small{display:block;font-size:9px;font-weight:400}.study-segments button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:0 2px 8px #00000009}.study-source-home>h2{font-size:19px;margin:25px 0 10px}.study-source-home>p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 22px}.source-reader-link{display:flex;width:100%;align-items:center;gap:13px;text-align:start;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:15px;padding:17px;margin:20px 0}.source-reader-link svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4}.source-reader-link span{font-size:13px;font-weight:700}.source-reader-link small{display:block;font-size:11px;line-height:1.8;color:var(--muted);margin-top:4px;font-weight:400}.source-reader-link>b{margin-inline-start:auto}.study-page-heading .subtle{line-height:1.8}.study-page-heading .eyebrow{font-size:9px;letter-spacing:1.2px;color:var(--gold)}.dock-verse{display:flex;flex-direction:column;gap:5px;flex:1;padding-inline-start:3px}.dock-verse>span{font-size:8px;letter-spacing:.8px;color:var(--muted)}.dock-verse bdi{font-size:13px;font-weight:700;color:var(--ink)}.reader-dock .dock-recite small{font-size:8px;border:1px solid #d1c6a24d;border-radius:4px;padding:2px 3px}.verse-listen{flex:0;min-width:44px!important;font-size:17px}.verse-actions .ai-badge{font-size:7px;border:1px solid var(--line);border-radius:3px;padding:2px}.verse-top{display:flex;align-items:center;gap:8px}.verse-top .verse-source{margin-inline-end:auto}.reader-companion .tafsir-source-tabs{margin-top:15px}.dark .source-tile .source-tile-open{color:#b0c09d}[dir=rtl] .continue-label,[dir=rtl] .study-path .eyebrow,[dir=rtl] .study-page-heading .eyebrow,[dir=rtl] .dock-verse>span{letter-spacing:0}[dir=rtl] .study-path h2{font-family:var(--arabic);font-size:25px}[dir=rtl] .source-tile .source-tile-open{font-size:10px}
@media(max-width:700px){.source-tile .source-tile-ar{font-size:23px;min-height:62px;margin:2px 0 8px}.source-tile.askari .source-tile-ar{font-size:20px}.source-tile .source-tile-open{font-size:8px;margin-top:9px}.source-tile{min-height:176px}.study-path h2{font-size:18px}.home-priority .section-head h2{font-size:16px}.home-priority .section-head .eyebrow{font-size:7px}.integrated-footer>span{font-size:10px}.dock-verse>span{font-size:7px;letter-spacing:.2px}.dock-verse bdi{font-size:12px}.reader-dock .dock-recite{gap:5px}}
@media(max-width:360px){.source-tile .source-tile-ar{font-size:21px}.source-tile.askari .source-tile-ar{font-size:18px}.source-tile .source-tile-open{font-size:7px}.source-tile{min-height:176px}.home-priority .section-head h2{font-size:15px}.home-priority .section-head .eyebrow{font-size:6px}.reader-dock .dock-recite small{display:none}.dock-verse>span{font-size:6px}}
.source-tile .source-tile-index{font-family:inherit;font-size:8px;font-weight:700;line-height:1.4}.has-audio .reader-dock{display:none}.today-date{white-space:nowrap}.continue-actions .btn-gold{white-space:nowrap}.has-audio{padding-bottom:230px}.journey-home{margin:17px 0 24px!important}.home-priority .eyebrow{display:block;margin-bottom:7px}.brand-copy{text-align:start}.source-tile{min-height:174px}
@media(max-width:700px){.topbar .install-app{display:none!important}.journey-home{padding:17px!important;gap:13px!important}.journey-home-metrics{gap:15px!important}.journey-home-metrics strong{font-size:24px!important;margin:7px 0!important}.journey-home-metrics>div{gap:3px!important}.journey-home-caption{font-size:9px!important}.journey-home>.journey-week-dots{margin:2px 0!important}.journey-home>.journey-text-button{margin:0!important;padding:8px 0!important;min-height:44px!important}.journey-week-dots b{width:27px!important;height:27px!important}.journey-week-dots small{margin-top:4px!important}.continue-actions .btn-gold{font-size:11px;padding-inline:14px}.source-tile{min-height:170px}.reader-dock .dock-verse{min-width:65px}.companion-controls>button{min-width:44px}.top-brand{flex-shrink:0}}
@media(max-width:700px){.topbar .pwa-install-trigger{display:none!important}.has-reader-dock .pwa-update-dot{bottom:calc(149px + env(safe-area-inset-bottom))}.has-audio .pwa-update-dot{bottom:240px}}
.reader-header{flex-direction:row}.reader-appearance{flex:none}[dir=rtl] .reading-today small{font-size:11px}
.icon-button svg,.verse-action svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.icon-button.saved svg{fill:currentColor}.source-tile-index{display:none!important}[dir=rtl] .companion-controls [role=tab]{font-size:13px;line-height:1.5}[dir=rtl] .reader-dock button{font-size:13px}[dir=rtl] .verse-action{font-size:13px}[dir=rtl] .mobile-nav button{font-size:12px}.reader-companion .companion-controls [role=tab]{font-family:inherit}.continue-copy{width:85%}@media(max-width:700px){.journey-home-metrics>div{display:block!important}.journey-home-metrics strong{display:block!important}.journey-home-caption{display:block}.journey-home{gap:10px!important}.journey-home>.journey-text-button{grid-row:3;grid-column:1/-1;justify-self:start}.source-tile{min-height:160px}.source-tile .source-tile-ar{min-height:59px}.home-priority .section-head h2{line-height:1.5}.today-heading>span{font-size:9px}.today-heading{gap:10px}}@media(max-width:360px){.today-heading h1{font-size:24px}.today-heading>span{max-width:55px;white-space:normal;text-align:end}.continue-copy{width:100%}}
.learn-page .learn-heading{display:none}.study-segments+.learn-library .learn-feature{margin-top:0}[dir=rtl] .source-tile strong{font-size:16px}
.source-tile.askari .source-tile-open{font:500 9px/1.7 'DM Sans',sans-serif}.source-tile.askari .source-tile-ar{font-family:var(--arabic)}@media(max-width:700px){.source-tile.askari .source-tile-open{font-size:8px}}@media(min-width:701px){[dir=rtl] .reader-dock{left:calc(50% - 100px)}}


/* /grammar.css */
/* Word study shares the reader's palette and mobile touch targets. */
.grammar-inline{color:var(--ink,#153f34);font-family:inherit;min-width:0;padding-top:18px}.grammar-inline *{box-sizing:border-box}.grammar-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.grammar-kicker{display:block;font-size:9px;font-weight:750;letter-spacing:1.2px;color:var(--gold,#a28245);line-height:1.5}.grammar-heading h3{font:750 20px/1.4 var(--font-ui,Inter,Arial,sans-serif);margin:5px 0 0;letter-spacing:-.5px;color:var(--ink)}.grammar-source-badge{font-size:9px;white-space:nowrap;border:1px solid var(--line,#dce6dc);border-radius:20px;padding:7px 9px;color:var(--muted,#6a7d70)}.grammar-loading{border:1px solid var(--line);border-radius:14px;padding:25px 18px;background:var(--panel);font-size:13px;line-height:1.8}.grammar-loading small{display:block;color:var(--muted);font-size:11px;margin-top:9px}.grammar-empty{padding:20px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);font-size:13px;line-height:1.8}.grammar-empty button{border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:9px 16px;min-height:44px;border-radius:10px;font-family:inherit;font-weight:600;font-size:12px;line-height:1.5;cursor:pointer}.grammar-basmala{padding:10px 13px;border-radius:10px;background:var(--pale);font-size:11px;line-height:1.8;color:var(--muted)}.grammar-instruction{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;line-height:1.6;margin:13px 0 10px}.grammar-instruction>span{flex:none;font-size:10px;color:var(--gold)}.grammar-words{display:flex;gap:7px;overflow:auto;padding:4px 2px 12px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;max-width:100%;scrollbar-width:thin}.grammar-word{flex:none;scroll-snap-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid var(--line,#dce5d8);border-radius:12px;min-width:57px;min-height:77px;padding:9px 12px;background:var(--panel,#fffdf7);color:var(--ink,#163e31);cursor:pointer;transition:border-color .15s,background .15s}.grammar-word>span{font:400 25px/1.65 var(--arabic,'Amiri',serif);white-space:nowrap}.grammar-word>small{font-family:inherit;font-weight:600;font-size:9px;line-height:1.3;color:var(--muted,#6b7d6a)}.grammar-word.active{background:#e7efdf;border-color:#8aa975;box-shadow:inset 0 -2px 0 #8caa74}.grammar-word.active>small{color:#5b7e4f}.grammar-words-expanded{flex-wrap:wrap;overflow:visible;justify-content:flex-start}.grammar-expand{display:block;margin:2px auto 10px;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:8px 17px;background:none;color:var(--green,#286043);font-family:inherit;font-size:11px;font-weight:650;cursor:pointer}.grammar-selected-word{text-align:center;padding:17px 8px 18px}.grammar-selected-word>span{display:block;font:400 44px/1.9 var(--arabic,'Amiri',serif);overflow-wrap:anywhere;color:var(--ink)}.grammar-selected-word>small{display:block;font-size:10px;line-height:1.8;color:var(--muted)}.grammar-classification{padding:16px;background:var(--pale,#edf2e8);border:1px solid var(--line);border-radius:14px;margin-bottom:13px}.grammar-pos{display:inline-block;padding:5px 10px;background:var(--panel);border:1px solid #bcccb2;border-radius:7px;color:#356246;font-size:12px;font-weight:750;line-height:1.6}.grammar-classification p{font-size:13px;line-height:1.8;color:var(--ink);margin:11px 0 0}.grammar-root-lemma{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px;margin:14px 0 20px}.grammar-root-lemma>div{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:13px 14px;display:flex;flex-direction:column;justify-content:space-between;gap:9px}.grammar-root-lemma>div>small{font-size:10px;color:var(--muted);line-height:1.6}.grammar-root-lemma>div>span:not(.grammar-no-root){font:400 29px/1.65 var(--arabic,'Amiri',serif);text-align:center;overflow-wrap:anywhere;min-height:44px}.grammar-root{display:flex;justify-content:center;align-items:center;gap:10px;min-height:44px;background:none;border:0;border-radius:7px;color:var(--green);padding:0;cursor:pointer}.grammar-root>span{font:400 29px/1.5 var(--arabic,'Amiri',serif)}.grammar-root>b{font-size:13px;font-weight:500;color:var(--gold)}.grammar-no-root{font-size:11px;line-height:1.8;color:var(--muted);min-height:44px;display:flex;align-items:center;justify-content:center}.grammar-detail h4{font-size:13px;line-height:1.5;color:var(--ink);font-weight:750;margin:17px 0 11px}.grammar-segments{display:grid;gap:8px}.grammar-segment{border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:var(--panel)}.grammar-segment-top{display:flex;align-items:center;gap:16px}.grammar-segment-top>span{min-width:58px;text-align:center;font:400 30px/1.7 var(--arabic,'Amiri',serif);color:var(--ink)}.grammar-segment-top>div{display:flex;flex-direction:column;gap:4px;min-width:0}.grammar-segment-top small{font-size:9px;color:var(--gold);line-height:1.6}.grammar-segment-top strong{font-size:12px;color:var(--ink);line-height:1.6}.grammar-features{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px;padding-top:10px;border-top:1px solid var(--line)}.grammar-features span{font-size:10px;padding:5px 8px;border-radius:6px;background:var(--pale);color:var(--muted);line-height:1.6}.grammar-source-link{display:flex;align-items:center;min-height:44px;font-size:12px;line-height:1.7;color:var(--green);font-weight:650;text-decoration:none;margin-top:15px}.grammar-tags,.grammar-about{border-top:1px solid var(--line);padding-top:3px;margin-top:12px}.grammar-tags summary,.grammar-about summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:11px;line-height:1.7;color:var(--muted);font-weight:650;list-style:none}.grammar-tags summary:before,.grammar-about summary:before{content:'+';font-size:18px;color:var(--gold)}.grammar-tags[open] summary:before,.grammar-about[open] summary:before{content:'−'}.grammar-tags pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.7;font-size:10px;border-radius:9px;background:var(--pale);color:var(--muted);padding:12px}.grammar-about p{font-size:11px;line-height:1.9;color:var(--muted);margin:7px 0 13px}.grammar-about a{color:var(--green);text-underline-offset:3px}.grammar-about>a{display:inline-flex;align-items:center;min-height:44px;font-size:11px;font-weight:650}.grammar-related{margin-top:18px;background:var(--pale);border:1px solid var(--line);padding:15px;border-radius:13px}.grammar-related>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.grammar-related h4{margin:0}.grammar-related>div:first-child>button{flex:none;min-width:44px;min-height:44px;border:0;background:var(--panel);color:var(--ink);border-radius:50%;font-size:22px;cursor:pointer}.grammar-related p{font-size:11px;line-height:1.8;color:var(--muted);margin:8px 0 13px}.grammar-related>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.grammar-related>div:last-child>button{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:70px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:8px;cursor:pointer}.grammar-related>div:last-child>button>span{font:400 25px/1.7 var(--arabic,'Amiri',serif);overflow-wrap:anywhere}.grammar-related bdi{font-size:10px;color:var(--muted)}.grammar-inline :focus-visible{outline:3px solid #b9944f;outline-offset:3px}.dark .grammar-word.active{background:#304a32;border-color:#8b9f65;box-shadow:inset 0 -2px 0 #a4b57c}.dark .grammar-word.active>small{color:#b5cb9c}.dark .grammar-pos{background:#233e2d;border-color:#4b6543;color:#c6d8b1}.dark .grammar-root{color:#c7d8ad}[dir=rtl] .grammar-heading h3{font-family:var(--arabic);font-size:25px;letter-spacing:0}[dir=rtl] .grammar-kicker{letter-spacing:0;font-size:11px}[dir=rtl] .grammar-source-badge{font-size:10px}[dir=rtl] .grammar-instruction{font-size:12px}[dir=rtl] .grammar-classification p{font-size:14px}[dir=rtl] .grammar-pos{font-size:14px}[dir=rtl] .grammar-segment-top strong{font-size:14px}[dir=rtl] .grammar-features span{font-size:12px}[dir=rtl] .grammar-about p{font-size:12px}[dir=rtl] .grammar-tags summary,[dir=rtl] .grammar-about summary,[dir=rtl] .grammar-source-link{font-size:12px}
@media(max-width:360px){.grammar-heading{gap:8px}.grammar-heading h3{font-size:18px}.grammar-source-badge{font-size:8px;padding:6px 7px}.grammar-kicker{font-size:8px}.grammar-instruction{font-size:10px}.grammar-word{padding:8px 10px;min-height:74px}.grammar-word>span{font-size:24px}.grammar-selected-word>span{font-size:40px}.grammar-root-lemma>div{padding:11px}.grammar-root-lemma>div>small{font-size:9px}.grammar-root>span,.grammar-root-lemma>div>span:not(.grammar-no-root){font-size:25px}.grammar-classification{padding:14px}.grammar-classification p{font-size:12px}.grammar-segment{padding:12px}.grammar-features{gap:5px}.grammar-features span{font-size:9px}.grammar-about p{font-size:10px}.grammar-root-lemma{gap:7px}}@media(prefers-reduced-motion:reduce){.grammar-word{transition:none}}
/* A quiet default, with the complete annotation available when wanted. */
.grammar-level{display:flex;padding:4px;gap:4px;background:var(--pale,#edf2e8);border:1px solid var(--line);border-radius:13px;margin:3px 0 18px}.grammar-level>button{flex:1;min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-family:inherit;font-weight:650;font-size:12px;line-height:1.5;padding:10px 14px;cursor:pointer}.grammar-level>button[aria-pressed=true]{background:var(--panel,#fffdf7);color:var(--ink);box-shadow:0 1px 4px #173e2810}.grammar-reveal-details{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px 15px;border:1px solid var(--line);border-radius:12px;background:var(--pale);font-family:inherit;font-size:12px;font-weight:650;color:var(--green,#286043);text-align:start;cursor:pointer}.grammar-reveal-details>span{font-size:18px;color:var(--gold)}.grammar-scope-note{font-size:11px;line-height:1.8;color:var(--muted);border-inline-start:2px solid var(--gold);padding:3px 12px;margin:0 0 18px}.grammar-study-link{border-top:1px solid var(--line);margin-top:17px;padding-top:12px}.grammar-study-link>button{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;min-height:44px;font-family:inherit;font-size:12px;font-weight:700;text-align:start;padding:8px 0;background:none;border:0;color:var(--green);cursor:pointer}.grammar-study-link>small{display:block;margin:0 0 8px;font-size:10px;line-height:1.7;color:var(--muted)}[dir=rtl] .grammar-level>button,[dir=rtl] .grammar-reveal-details,[dir=rtl] .grammar-study-link>button{font-size:14px}[dir=rtl] .grammar-scope-note{font-size:12px}.dark .grammar-level>button[aria-pressed=true]{box-shadow:none}.dark .grammar-reveal-details,.dark .grammar-study-link>button{color:#c7d8ad}
.grammar-classical{border:1px solid var(--line);border-radius:12px;padding:13px 15px;background:var(--pale);margin:13px 0}.grammar-classical h4{margin:0 0 8px}.grammar-classical p{font-size:11px;line-height:1.8;margin:0 0 8px;color:var(--muted)}.grammar-classical>div{display:flex;flex-wrap:wrap;gap:7px}.grammar-classical a,.grammar-classical button{display:inline-flex;align-items:center;min-height:44px;padding:8px 11px;background:var(--panel);border:1px solid var(--line);border-radius:9px;font-size:11px;line-height:1.6;color:var(--green);text-decoration:none;font-weight:650}[dir=rtl] .grammar-classical p,[dir=rtl] .grammar-classical a,[dir=rtl] .grammar-classical button{font-size:12px}.dark .grammar-classical a,.dark .grammar-classical button{color:#c7d8ad}

.grammar-classical button{font-family:inherit;text-align:start;cursor:pointer}

/* V9: connected morphology segments, with interpretation kept in context. */
.grammar-word.active,.dark .grammar-word.active{background:var(--pale,#edf1f5);border-color:var(--green,#193e58);box-shadow:inset 0 -2px 0 var(--green,#193e58)}
.grammar-word.active>small,.dark .grammar-word.active>small{color:var(--ink,#17374d)}
.grammar-pos,.dark .grammar-pos{background:var(--panel,#fff);border-color:var(--line,#cdd7df);color:var(--ink,#17374d)}
.grammar-segments{position:relative;padding-inline-start:19px;gap:10px}
.grammar-segments:before{content:'';position:absolute;inset-inline-start:5px;top:22px;bottom:22px;width:1px;background:var(--line,#cdd7df)}
.grammar-segment{position:relative;border-radius:10px}
.grammar-segment:before{content:'';position:absolute;inset-inline-start:-18px;top:21px;width:7px;height:7px;border:2px solid var(--green,#193e58);border-radius:50%;background:var(--panel,#fff)}
.grammar-segment:after{content:'';position:absolute;inset-inline-start:-12px;top:25px;width:12px;height:1px;background:var(--line,#cdd7df)}
.grammar-provenance{font-size:12px;line-height:1.85;color:var(--muted);border-inline-start:2px solid var(--gold,#a28245);padding:3px 13px;margin:19px 0}
.grammar-provenance>strong{display:block;font-size:11px;font-weight:750;color:var(--ink);margin-bottom:5px}
.grammar-bridge{border-top:1px solid var(--line);padding:18px 0 7px;margin-top:13px}
.grammar-bridge h4{font-size:14px;margin:0 0 8px}
.grammar-bridge p{color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 9px}
.grammar-bridge button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;background:var(--green,#193e58);color:var(--panel,#fff);border:1px solid var(--green,#193e58);border-radius:10px;padding:11px 14px;font-weight:650;font-size:12px;line-height:1.6;font-family:inherit;text-align:start;cursor:pointer}
.grammar-bridge button>span{font-size:18px}
.grammar-classical{border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0 8px;background:none;margin-top:16px}
.dark .grammar-root,.dark .grammar-reveal-details,.dark .grammar-study-link>button,.dark .grammar-classical a,.dark .grammar-classical button{color:var(--ink,#dbe8f2)}
[dir=rtl] .grammar-provenance,[dir=rtl] .grammar-bridge p{font-size:13px}
[dir=rtl] .grammar-provenance>strong{font-size:12px}
[dir=rtl] .grammar-bridge button{font-size:14px}
[dir=rtl] .grammar-bridge button>span{transform:scaleX(-1)}

/* V33: meaning first, with optional study depth instead of repeated open cards. */
.grammar-mode-hint{margin:-9px 0 18px;color:var(--muted);font-size:12px;line-height:1.7}
.grammar-section-label{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-bottom:8px}
.grammar-detail-simple>.grammar-classification{background:transparent;border-inline-start:3px solid var(--line);border-block:0;border-inline-end:0;border-radius:0;padding:8px 13px;margin:13px 0 17px}
.grammar-detail-simple>.grammar-classification p{font-size:12px;margin-top:8px}
.grammar-lexical-details,.grammar-practice-details{border:1px solid var(--line);border-radius:12px;padding:0 12px;margin-block:12px}
.grammar-lexical-details>summary,.grammar-practice-details>summary{display:flex;align-items:center;gap:9px;min-height:48px;cursor:pointer;font-size:13px;font-weight:650;line-height:1.6;list-style:none}
.grammar-lexical-details>summary::-webkit-details-marker,.grammar-practice-details>summary::-webkit-details-marker{display:none}
.grammar-lexical-details>summary:before,.grammar-practice-details>summary:before{content:'+';font-size:20px;color:var(--green)}
.grammar-lexical-details[open]>summary:before,.grammar-practice-details[open]>summary:before{content:'−'}
.grammar-lexical-details>.grammar-root-lemma{margin:4px 0 12px}
.grammar-practice-details>.word-learning-links{margin-top:3px}
.grammar-detail>.grammar-section-title{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;font-size:14px}
.grammar-detail-detail>.grammar-scope-note{margin-top:18px}
.grammar-detail-simple>.grammar-reveal-details{margin-top:14px}
.grammar-inline[lang=ar] .grammar-mode-hint,.grammar-inline[lang=ar] .grammar-section-label{font-size:13px}
.grammar-inline[lang=ar] .grammar-detail-simple>.grammar-classification p{font-size:14px}
.grammar-inline[lang=ar] .grammar-lexical-details>summary,.grammar-inline[lang=ar] .grammar-practice-details>summary{font-size:14px}
@media(max-width:360px){.grammar-mode-hint{font-size:12px}.grammar-lexical-details,.grammar-practice-details{padding-inline:10px}.grammar-detail-simple>.grammar-classification p{font-size:12px}}
/* Keep selection clear across later shared theme rules in both reading themes. */
.grammar-inline .grammar-level>button{background:transparent;color:var(--muted);border:1px solid transparent;box-shadow:none}
.grammar-inline .grammar-level>button[aria-pressed=true]{background:var(--green,#174e70);border-color:var(--green,#174e70);color:var(--on-accent,#fff);box-shadow:0 1px 3px #102d3b20;font-weight:750}
.grammar-inline .grammar-level>button[aria-pressed=false]:hover{background:var(--panel);color:var(--ink)}
.grammar-inline .grammar-level>button:focus-visible{outline:3px solid var(--gold,#a28245);outline-offset:2px}


/* /word-meanings.css */
.word-meaning-card{margin:0 0 16px;padding:17px 18px;border:1px solid var(--line,#d6dfd9);border-inline-start:3px solid var(--green,#28735e);border-radius:14px;background:var(--panel,#fffdf8);color:var(--ink,#203b36);text-align:start;overflow-wrap:anywhere;min-width:0}
.word-meaning-label{display:block;font:750 11px/1.5 var(--font-ui,inherit);color:var(--green,#286043);letter-spacing:.2px}.word-meaning-card .word-meaning-gloss{font:650 23px/1.5 var(--font-ui,inherit);margin:8px 0 10px;color:var(--ink,#203b36)}.word-meaning-card[lang=ar] .word-meaning-gloss{font-size:25px;line-height:1.75}.word-meaning-card p{font-size:13px;line-height:1.85;margin:8px 0}.word-meaning-card small{font-size:10px;line-height:1.6;color:var(--muted,#63716c)}.word-meaning-card details{margin-top:5px;font-size:12px}.word-meaning-card summary{min-height:44px;display:flex;align-items:center;gap:7px;cursor:pointer;color:var(--green,#286043);font-weight:650}.word-meaning-card summary:before{content:'+'}.word-meaning-card details[open] summary:before{content:'−'}.word-meaning-sources{display:grid;gap:5px}.word-meaning-card a{color:var(--green,#286043);text-decoration:underline;text-underline-offset:3px;font-size:12px;line-height:1.7;scroll-margin-block:120px 90px}.word-meaning-context{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:12px;margin-top:5px;border-top:1px solid var(--line,#d6dfd9);padding-top:6px}.word-meaning-loading{font-size:12px;line-height:1.6;color:var(--muted);padding:16px;background:var(--pale);border-radius:12px}.word-meaning-card button{border:1px solid var(--line);background:var(--pale);color:var(--ink);min-height:44px;padding:8px 14px;border-radius:9px;cursor:pointer;font:inherit}.word-meaning-card :is(a,button,summary):focus-visible{outline:3px solid var(--gold,#b08b35);outline-offset:3px}.dark .word-meaning-label,.dark .word-meaning-card :is(a,summary){color:#a9d8bd}.word-meaning-empty{border-inline-start-color:var(--gold,#ad8b48)}

.word-meaning-audio{display:flex;align-items:center;min-height:44px;margin-top:10px}

/* Classical evidence stays legible, joined and separate from the teaching gloss. */
.word-meaning-classical-card h4{margin:16px 0 8px;font-size:13px;font-weight:750;color:var(--green,#286043)}
.word-meaning-classical-card .word-meaning-evidence{margin:0;padding:0}
.word-meaning-classical-card blockquote{margin:0;padding:12px 14px;border-inline-start:2px solid var(--gold,#b08b35);border-radius:8px;background:var(--pale,#f0f3ed);font-family:Amiri,serif;font-weight:400;font-synthesis:none;font-size:23px;line-height:1.95;letter-spacing:normal;word-break:normal;overflow-wrap:normal;white-space:pre-line}
.word-meaning-classical-card figcaption{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:3px 0 12px;color:var(--muted,#63716c);font-size:11px;line-height:1.6}
.word-meaning-classical-card figcaption a{min-height:44px;display:inline-flex;align-items:center}
.word-meaning-root{border-top:1px solid var(--line,#d6dfd9);padding-top:6px}
.word-meaning-root summary{flex-wrap:wrap;padding-block:5px;line-height:1.9}
.word-meaning-root-tag{margin-inline-start:auto;color:var(--muted,#63716c);font-size:10px;font-weight:500}
.word-meaning-card .word-meaning-source-note{padding:9px 11px;border-radius:8px;background:var(--pale,#f0f3ed);font-size:12px;color:var(--muted,#63716c)}
.word-meaning-card .word-meaning-root-text p{font-family:Amiri,serif;font-weight:400;font-synthesis:none;font-size:22px;line-height:1.95;letter-spacing:normal;word-break:normal;overflow-wrap:normal;white-space:pre-line}
.word-meaning-root footer{padding-top:8px;border-top:1px solid var(--line,#d6dfd9);font-size:11px;line-height:1.9;color:var(--muted,#63716c)}
.word-meaning-root footer a{display:flex;align-items:center;min-height:44px}
.word-meaning-source-error{border-top:1px solid var(--line,#d6dfd9);padding-top:8px;color:var(--muted,#63716c)}
.word-meaning-source-error button{margin-inline-start:5px}
.dark .word-meaning-classical-card h4{color:#a9d8bd}
@media(max-width:480px){.word-meaning-classical-card{padding:14px}.word-meaning-classical-card blockquote{padding:10px;font-size:22px}.word-meaning-root-tag{margin-inline-start:0}.word-meaning-card .word-meaning-root-text p{font-size:21px}}
.word-meaning-lexicon{margin-top:14px}
.word-meaning-card .word-meaning-root-intro{font-size:12px;color:var(--muted,#63716c);margin:4px 0 6px}


/* /toolkit.css */
/* A quiet, connected study workspace. */
.toolkit{color:var(--ink);min-width:0}.toolkit *{box-sizing:border-box}.toolkit button,.toolkit input,.toolkit select,.toolkit textarea{font-family:inherit}.toolkit-heading>span{color:var(--gold);font-size:10px;font-weight:750;letter-spacing:1.5px}.toolkit-heading h1{font:700 30px/1.3 Georgia,serif;letter-spacing:-.5px;margin:12px 0}.toolkit-heading p{font-size:13px;line-height:1.9;color:var(--muted);max-width:650px;margin:0 0 24px}.toolkit-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;border:1px solid var(--line);border-radius:15px;background:var(--pale);margin-bottom:25px}.toolkit-tabs button{min-height:46px;border:0;border-radius:10px;background:none;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer}.toolkit-tabs button[aria-selected=true]{background:var(--panel);color:var(--ink);box-shadow:0 2px 8px #0b2f1b0b}.toolkit-intro h2{font-size:21px;line-height:1.4;margin:0 0 9px}.toolkit-intro p{font-size:13px;line-height:1.85;color:var(--muted);margin:0 0 22px}.toolkit-search{padding:19px;background:var(--panel);border:1px solid var(--line);border-radius:16px}.toolkit-search>label{display:block;font-size:12px;font-weight:650;margin:0 0 10px;line-height:1.7}.toolkit-search>div{display:flex;gap:8px}.toolkit input,.toolkit select,.verse-notebook input,.verse-notebook textarea{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;font-size:14px;line-height:1.6;padding:11px 12px;min-height:46px;min-width:0}.toolkit-search input{flex:1;width:0}.toolkit-search input::placeholder,.verse-notebook input::placeholder,.verse-notebook textarea::placeholder{color:var(--muted);opacity:.9}.toolkit-search button,.toolkit-notes-actions>button,.toolkit-more,.toolkit-error button,.toolkit-import-preview button,.verse-note-actions>button{border:1px solid #24563f;color:#fff9e9;background:#24563f;min-height:46px;border-radius:10px;padding:10px 16px;font-size:12px;font-weight:700;cursor:pointer;line-height:1.6}.toolkit-search .toolkit-mode-label{font-size:10px;color:var(--muted);font-weight:400;margin:15px 0 6px}.toolkit-search select{font-size:12px;min-width:190px;max-width:100%;padding:8px 10px}.toolkit-examples{display:flex;gap:7px;margin:12px 0 3px;flex-wrap:wrap}.toolkit-examples button{border:1px solid var(--line);color:var(--green);background:var(--panel);border-radius:50px;padding:8px 15px;min-height:44px;font-size:12px;cursor:pointer}.toolkit-status{font-size:12px;line-height:1.9;color:var(--muted);margin:17px 2px}.toolkit-status:empty{display:none}.toolkit-empty{border:1px dashed var(--line);background:var(--panel);padding:30px 22px;text-align:center;border-radius:17px;margin:20px 0}.toolkit-empty>span{display:block;font-size:33px;color:var(--gold);margin-bottom:13px}.toolkit-empty h2,.toolkit-empty h3{font-size:19px;line-height:1.5;margin:0 0 12px}.toolkit-empty p{font-size:13px;line-height:1.9;color:var(--muted);margin:0 auto;max-width:540px}.toolkit-empty button{background:var(--pale);color:var(--green);border:1px solid var(--line);min-height:44px;border-radius:10px;padding:9px 15px;margin-top:17px;font-size:12px;font-weight:650}.toolkit-result{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:19px 21px;margin-bottom:13px}.toolkit-result-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.toolkit-reference{display:flex;align-items:center;gap:9px;min-height:44px;color:var(--ink);background:none;border:0;padding:0;text-align:start}.toolkit-reference bdi{font-size:12px;background:var(--pale);color:var(--green);padding:7px 10px;border-radius:8px}.toolkit-reference span{font-size:12px;font-weight:650;line-height:1.6}.toolkit-result-top>small{font-size:10px;color:var(--gold);line-height:1.5;max-width:100px;text-align:end}.toolkit-arabic{font:400 28px/2.1 var(--arabic);text-align:right;margin:17px 0;color:var(--ink);overflow-wrap:anywhere}.toolkit-english{font-size:13px;line-height:1.9;color:var(--muted);margin:14px 0;text-align:left}.toolkit-transliteration{font-size:12px;line-height:1.8;color:var(--green);margin:13px 0;text-align:left}.toolkit-result-actions{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:11px;margin-top:16px}.toolkit-result-actions button{min-height:44px;border:0;border-radius:9px;background:var(--pale);padding:8px 12px;color:var(--green);font-size:12px;font-weight:700;cursor:pointer}.toolkit-result-actions button:last-child{margin-inline-start:auto;background:none;font-weight:500;padding-inline:4px}.toolkit-more{display:block;width:100%;margin:20px 0;background:var(--pale);border-color:var(--line);color:var(--green)}.toolkit-error{border:1px solid #c6ae7b;border-radius:13px;padding:20px;background:var(--panel);margin:20px 0}.toolkit-error p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 14px}.toolkit-root-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.toolkit-root-grid button{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:123px;padding:13px 8px;background:var(--panel);border:1px solid var(--line);border-radius:13px;color:var(--ink);cursor:pointer}.toolkit-root-grid button:hover{border-color:#a8b88d;background:var(--pale)}.toolkit-root-grid strong{font:400 30px/1.5 var(--arabic);color:var(--green)}.toolkit-root-grid span{font-size:11px;font-weight:650}.toolkit-root-grid small{font-size:10px;color:var(--muted)}.toolkit-root-heading{display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:22px;margin:26px 0 20px}.toolkit-root-heading h3{font:400 38px/1.6 var(--arabic);background:var(--pale);color:var(--green);border-radius:13px;min-width:85px;text-align:center;margin:0;padding:5px 10px}.toolkit-root-heading p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.toolkit-phrases{display:grid;gap:9px}.toolkit-phrases button{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:74px;padding:12px 18px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:13px;cursor:pointer;text-align:start}.toolkit-phrases button>span{font:400 26px/1.8 var(--arabic);min-width:0}.toolkit-phrases small{font-size:11px;line-height:1.6;color:var(--muted);white-space:nowrap}.toolkit-sources{border-top:1px solid var(--line);padding-top:8px;margin-top:30px}.toolkit-sources summary{min-height:44px;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:var(--muted);cursor:pointer;list-style:none}.toolkit-sources summary:before{content:'+';color:var(--gold);font-size:19px}.toolkit-sources[open] summary:before{content:'−'}.toolkit-sources p{font-size:11px;line-height:1.9;color:var(--muted);margin:10px 0}.toolkit-sources a{color:var(--green);text-underline-offset:3px}.toolkit-notes-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolkit-import{position:relative;overflow:hidden;min-height:46px;border:1px solid var(--line);background:var(--panel);color:var(--green);padding:10px 16px;border-radius:10px;font-size:12px;font-weight:650;line-height:1.8;cursor:pointer}.toolkit-import input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.toolkit-import:focus-within{outline:3px solid var(--gold);outline-offset:3px}.toolkit-note-search{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin:20px 0}.toolkit-note-search input{display:block;width:100%;margin-top:8px}.toolkit-note-list{display:grid;gap:12px}.toolkit-note-list article{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:18px}.toolkit-note-list article>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.toolkit-note-list article button{background:none;border:0;color:var(--green);min-height:44px;font-size:12px;font-weight:650;padding:5px 0;text-align:start;cursor:pointer}.toolkit-note-list article>div:first-child small{font-size:10px;color:var(--muted)}.toolkit-note-list article p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;color:var(--ink)}.toolkit-note-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}.toolkit-note-tags span{font-size:10px;color:var(--muted);background:var(--pale);border-radius:20px;padding:5px 9px}.toolkit-import-preview{padding:18px;background:var(--pale);border:1px solid var(--line);border-radius:14px;margin:20px 0}.toolkit-import-preview strong{font-size:14px}.toolkit-import-preview p{font-size:12px;line-height:1.8;color:var(--muted)}.toolkit-import-preview button{margin-inline-end:7px}.toolkit-import-preview button:last-child{background:var(--panel);border-color:var(--line);color:var(--ink)}.verse-notebook{padding-top:20px;color:var(--ink)}.verse-note-heading{display:flex;align-items:center;gap:13px;margin-bottom:18px}.verse-note-heading>span{display:grid;place-items:center;background:var(--pale);color:var(--gold);border-radius:11px;width:43px;height:47px;font-size:26px;flex:none}.verse-note-heading h3{font-size:19px;line-height:1.5;margin:0 0 3px}.verse-note-heading p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.verse-note-ayah{font:400 25px/2 var(--arabic);padding:15px;background:var(--panel);border:1px solid var(--line);border-radius:13px;margin:0 0 19px}.verse-notebook>label{display:block;font-size:12px;line-height:1.6;font-weight:650;margin:17px 0}.verse-notebook textarea,.verse-notebook input{display:block;width:100%;margin-top:8px;font-family:inherit}.verse-notebook textarea{resize:vertical;line-height:1.9;min-height:180px}.verse-note-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.verse-note-actions button:not(:first-child){background:var(--panel);border-color:var(--line);color:var(--muted)}.verse-note-status{font-size:12px;line-height:1.8;color:var(--green);margin:13px 0}.verse-note-status:empty{display:none}.dark .toolkit-search button,.dark .toolkit-notes-actions>button,.dark .verse-note-actions>button:first-child,.dark .toolkit-import-preview button:first-of-type{background:#c7af73;border-color:#c7af73;color:#153e2e}.dark .toolkit-root-grid button:hover{border-color:#829767}.dark .toolkit-error{border-color:#706342}.toolkit :focus-visible,.verse-notebook :focus-visible{outline:3px solid var(--gold);outline-offset:3px}[dir=rtl] .toolkit-heading h1{font-family:var(--arabic);letter-spacing:0;font-size:33px}[dir=rtl] .toolkit-heading>span{letter-spacing:0;font-size:12px}[dir=rtl] .toolkit-search input{direction:rtl}[dir=rtl] .toolkit-tabs button{font-size:14px}[dir=rtl] .toolkit-english,[dir=rtl] .toolkit-transliteration{direction:ltr}[dir=rtl] .toolkit-note-list article p{direction:rtl}
@media(max-width:700px){.toolkit-heading h1{font-size:27px;margin:10px 0}.toolkit-heading p{font-size:12px;margin-bottom:20px}.toolkit-heading>span{font-size:9px}.toolkit-tabs{margin-bottom:22px;gap:3px;padding:4px}.toolkit-tabs button{font-size:12px;min-height:44px}.toolkit-search{padding:15px;border-radius:14px}.toolkit-search>label{font-size:11px}.toolkit-search>div{gap:7px}.toolkit-search button{padding:10px 13px;font-size:11px;flex:none}.toolkit input{font-size:13px;padding:10px}.toolkit-search select{width:100%;min-width:0}.toolkit-result{padding:15px 16px}.toolkit-arabic{font-size:26px;line-height:2.1;margin:14px 0}.toolkit-english{font-size:12px}.toolkit-reference span{font-size:11px}.toolkit-result-actions button{font-size:11px}.toolkit-result-top>small{font-size:9px;max-width:85px}.toolkit-root-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.toolkit-root-grid button{min-height:117px;padding:12px 6px}.toolkit-root-grid strong{font-size:28px}.toolkit-root-grid span{font-size:10px}.toolkit-root-grid small{font-size:9px}.toolkit-root-heading{gap:13px}.toolkit-root-heading p{font-size:11px}.toolkit-phrases button{padding:12px 14px;gap:12px}.toolkit-phrases button>span{font-size:23px}.toolkit-phrases small{font-size:10px}.toolkit-intro h2{font-size:20px}.toolkit-intro p{font-size:12px}.toolkit-note-list article{padding:15px}.toolkit-empty{padding:25px 18px}.toolkit-empty h2,.toolkit-empty h3{font-size:18px}.toolkit-empty p{font-size:12px}.verse-note-actions>button{padding:9px 12px;font-size:11px}.verse-note-ayah{font-size:24px}.verse-note-heading h3{font-size:18px}.verse-notebook textarea{font-size:14px}[dir=rtl] .toolkit-heading h1{font-size:30px}}
@media(max-width:360px){.toolkit-tabs button{font-size:11px}.toolkit-search button{padding-inline:10px}.toolkit-search input{font-size:12px}.toolkit-phrases button{flex-direction:column;align-items:stretch;gap:5px}.toolkit-phrases small{text-align:end}.toolkit-root-heading h3{min-width:65px;font-size:31px}.verse-note-actions{gap:6px}.toolkit-reference{gap:7px}.toolkit-reference span{font-size:10px}.toolkit-result-actions button{font-size:10px}.toolkit-result{padding-inline:13px}}
@media(prefers-reduced-motion:reduce){.toolkit *{scroll-behavior:auto!important}}
/* Keep an explicitly requested English translation distinct from Arabic UI copy. */
.toolkit-translation>small{display:block;color:var(--muted);font-family:var(--font-ui,Inter,Arial,sans-serif);font-size:11px;line-height:1.6;margin-top:12px}
.toolkit-translation>.toolkit-english{margin-top:4px}


/* /calendar.css */
/* A quiet calendar: date, source, and optional plan stay distinct. */
.calendar-page{color:var(--ink);min-width:0}.calendar-page *{box-sizing:border-box}.cal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:2px 0 25px}.cal-eyebrow,.cal-tag{font-size:9px;letter-spacing:1.2px;font-weight:750;color:var(--gold,#aa8644);line-height:1.6}.cal-heading h1{font:700 31px/1.2 Georgia,serif;margin:9px 0 10px;letter-spacing:-.5px}.cal-heading p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}.cal-moon{display:grid;place-items:center;background:var(--pale);border:1px solid var(--line);color:var(--gold);height:67px;width:58px;border-radius:33px 33px 17px 17px;font:40px Georgia;flex:none}.cal-layout{display:grid;grid-template-columns:minmax(275px,.88fr) minmax(0,1.12fr);align-items:start;gap:22px}.cal-month-panel{background:var(--panel);border:1px solid var(--line);border-radius:19px;padding:17px;position:sticky;top:92px}.cal-month-bar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}.cal-month-bar h2{font-size:16px;margin:0;text-align:center;line-height:1.5}.cal-month-bar h2 bdi{font-weight:400;color:var(--muted)}.cal-month-bar>button{background:var(--bg);border:1px solid var(--line);border-radius:11px;color:var(--green);font:26px Georgia;width:44px;height:44px;flex:none;cursor:pointer}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.cal-weekday{font-size:9px;text-align:center;color:var(--muted);padding:7px 0 10px;overflow:hidden}.cal-day{border:1px solid transparent;background:none;color:var(--ink);border-radius:11px;min-width:0;min-height:55px;padding:7px 0 8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;position:relative;font-family:inherit;cursor:pointer}.cal-day b{font-size:14px;line-height:1.2;font-weight:650}.cal-day small{font-size:8px;line-height:1.2;color:var(--muted)}.cal-day i,.cal-grid-key i{height:3px;width:3px;background:var(--gold);border-radius:50%}.cal-day i{position:absolute;bottom:3px}.cal-day:hover{background:var(--pale)}.cal-day.is-today{border-color:#c8b17b}.cal-day.selected{background:#214e3a;color:#fff4d7;border-color:#214e3a}.cal-day.selected small{color:#c6d6bd}.cal-day.selected i{background:#e0c484}.cal-grid-key{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;margin:15px 0 18px;color:var(--muted);font-size:8px;line-height:1.7}.cal-grid-key>span{display:flex;gap:5px;align-items:center}.cal-date-controls{display:flex;gap:8px;align-items:end;border-top:1px solid var(--line);padding-top:16px}.cal-date-controls label{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1;font-size:10px;color:var(--muted)}.cal-date-controls input{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:8px 9px;color:var(--ink);font-family:inherit;font-size:16px;direction:ltr}.cal-secondary,.cal-primary{min-height:44px;border-radius:10px;padding:10px 14px;font-family:inherit;font-size:11px;font-weight:700;line-height:1.6;cursor:pointer}.cal-secondary{border:1px solid var(--line);background:var(--panel);color:var(--green)}.cal-primary{border:1px solid #245b45;background:#245b45;color:#fff4d9;display:flex;align-items:center;justify-content:space-between;gap:18px}.cal-settings{border-top:1px solid var(--line);margin-top:17px;padding-top:5px}.cal-settings>summary,.cal-source>summary,.cal-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;font-size:11px;font-weight:650;line-height:1.7;color:var(--green)}.cal-settings>summary:after,.cal-source>summary:after,.cal-more>summary:after{content:'+';font-size:19px;color:var(--gold);font-weight:400}.cal-settings[open]>summary:after,.cal-source[open]>summary:after,.cal-more[open]>summary:after{content:'−'}.cal-settings p,.cal-source p{font-size:11px;color:var(--muted);line-height:1.85;margin:9px 0 13px}.cal-settings label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.cal-settings select{min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:7px;color:var(--ink);font-family:inherit;font-size:16px;max-width:145px}.cal-selection{margin-bottom:18px}.cal-selection>span{font-size:11px;color:var(--muted);line-height:1.6}.cal-selection h2{font:700 26px/1.4 Georgia,serif;letter-spacing:-.6px;margin:8px 0 15px}.cal-selection>p{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0}.cal-phase{display:flex;gap:5px;background:var(--pale);border:1px solid var(--line);padding:4px;border-radius:13px}.cal-phase button{flex:1;border:0;border-radius:9px;background:none;color:var(--muted);min-height:44px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}.cal-phase button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:0 2px 7px #12391b0b}.cal-recommendations{display:grid;gap:12px}.cal-recommendation,.cal-daily{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:19px}.cal-recommendation h3,.cal-daily h3,.cal-plan h3{font-size:18px;line-height:1.5;margin:6px 0 10px;font-weight:750}.cal-recommendation>p,.cal-daily>p,.cal-plan p{font-size:12px;line-height:1.9;color:var(--muted);margin:9px 0 15px}.cal-readings{display:grid;gap:7px}.cal-surah{display:flex;align-items:center;gap:9px;width:100%;min-height:52px;padding:10px 12px;background:var(--pale);border:1px solid var(--line);border-radius:11px;color:var(--ink);text-align:start;cursor:pointer;font-family:inherit}.cal-surah>span:first-child{font:22px/1.4 var(--arabic);color:var(--green)}.cal-surah>span:nth-child(2){font-size:11px;color:var(--muted)}.cal-surah>b{margin-inline-start:auto;font-weight:400;color:var(--gold)}.cal-source{border-top:1px solid var(--line);margin-top:13px;padding-top:2px}.cal-source a{display:flex;align-items:center;min-height:44px;text-decoration:none;color:var(--green);font-size:11px;line-height:1.8;font-weight:650;overflow-wrap:anywhere}.cal-source small{display:block;font-size:9px;color:var(--muted);line-height:1.8;margin:5px 0}.cal-more{padding-block:6px}.cal-more>summary{font-size:13px}.cal-more[open]{padding-bottom:16px}.cal-empty-note{margin:0;border-inline-start:2px solid var(--gold);padding:10px 14px;color:var(--muted);font-size:12px;line-height:1.9;background:var(--pale);border-radius:0 10px 10px 0}.cal-daily{background:linear-gradient(120deg,var(--panel),var(--pale));border-color:#d5dfc9}.cal-plan{border:1px dashed #b6c7ab;border-radius:16px;padding:20px;margin:22px 0;background:var(--panel)}.cal-plan-actions{display:flex;gap:8px;flex-wrap:wrap}.cal-plan-actions>button{flex:1}.cal-plan small{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-top:15px}.cal-plan a{color:var(--green)}.cal-duas{margin:23px 0}.cal-section-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px}.cal-section-heading h3{font-size:16px;line-height:1.5;margin:0}.cal-text{min-height:44px;border:0;background:none;color:var(--green);font-size:11px;font-family:inherit;cursor:pointer}.cal-dua-links{display:grid;gap:7px}.cal-dua-links>button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;min-height:48px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--ink);font:600 12px/1.6 'DM Sans',sans-serif;text-align:start;cursor:pointer}.cal-dua-links>button>b{color:var(--gold);font-weight:400}.cal-method{font-size:10px;color:var(--muted);line-height:1.9;margin:0 2px}.cal-home{display:flex;align-items:center;gap:13px;width:100%;padding:16px 17px;border-radius:15px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-align:start;margin:18px 0;cursor:pointer;font-family:inherit}.cal-home-moon{display:grid;place-items:center;flex:none;width:39px;height:46px;border:1px solid var(--line);border-radius:23px 23px 10px 10px;background:var(--pale);font:29px Georgia;color:var(--gold)}.cal-home>span:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}.cal-home small{font-size:8px;letter-spacing:1px;color:var(--gold);font-weight:750}.cal-home strong{font-size:15px;line-height:1.4}.cal-home>span:nth-child(2)>span{font-size:10px;line-height:1.6;color:var(--muted)}.cal-home>b{margin-inline-start:auto;color:var(--gold);font-weight:400}.calendar-page :focus-visible,.cal-home:focus-visible{outline:3px solid #b28b43;outline-offset:3px}.dark .cal-day.selected{background:#ceb97e;color:#143725;border-color:#ceb97e}.dark .cal-day.selected small{color:#3e5737}.dark .cal-day.selected i{background:#376147}.dark .cal-daily{border-color:#3e5538}.dark .cal-primary{background:#c5ad72;border-color:#c5ad72;color:#173b29}.dark .cal-plan{border-color:#556f47}[dir=rtl] .cal-heading h1,[dir=rtl] .cal-selection h2{font-family:var(--arabic);letter-spacing:0}[dir=rtl] .cal-eyebrow,[dir=rtl] .cal-tag,[dir=rtl] .cal-home small{letter-spacing:0;font-size:11px}[dir=rtl] .cal-weekday{font-size:11px}[dir=rtl] .cal-empty-note{border-radius:10px 0 0 10px}[dir=rtl] .cal-surah>span:nth-child(2){display:none}[dir=rtl] .cal-dua-links>button{font-family:inherit}[dir=rtl] .cal-month-bar h2{font-size:19px}
@media(max-width:1050px){.cal-layout{grid-template-columns:1fr}.cal-month-panel{position:static;max-width:580px;width:100%;margin-inline:auto}.cal-day-detail{max-width:580px;width:100%;margin-inline:auto}.cal-month-panel{padding:17px 20px}.cal-day{min-height:57px}.cal-day b{font-size:15px}.cal-grid-key{font-size:9px}}
@media(max-width:700px){.cal-heading{margin-bottom:20px;gap:12px}.cal-heading h1{font-size:27px}.cal-heading p{font-size:12px}.cal-moon{width:45px;height:54px;font-size:33px}.cal-month-panel{padding:14px 12px;border-radius:16px}.cal-grid{gap:2px}.cal-day{min-height:51px;border-radius:9px}.cal-day b{font-size:14px}.cal-day small{font-size:8px}.cal-month-bar h2{font-size:16px}.cal-grid-key{font-size:8px}.cal-selection h2{font-size:25px}.cal-recommendation,.cal-daily,.cal-plan{padding:17px}.cal-recommendation h3,.cal-daily h3,.cal-plan h3{font-size:17px}.cal-source>summary,.cal-settings>summary{font-size:11px}.cal-home{padding:14px}.cal-home strong{font-size:14px}.cal-home small{font-size:8px}.cal-date-controls input{font-size:16px}.cal-method{font-size:10px}.cal-settings select{max-width:130px}}
@media(max-width:360px){.cal-heading h1{font-size:25px}.cal-heading p{font-size:11px}.cal-grid{gap:1px}.cal-day{min-height:49px}.cal-weekday{font-size:8px}.cal-month-panel{padding-inline:9px}.cal-selection h2{font-size:23px}.cal-recommendation,.cal-daily,.cal-plan{padding:15px}.cal-secondary,.cal-primary{font-size:11px;padding-inline:11px}.cal-surah{padding:9px}.cal-source a{font-size:10px}.cal-home strong{font-size:13px}}

/* On phones, the reading comes first; the full date chooser is one tap away. */
.cal-mobile-chooser{display:none}.cal-chooser-content{display:block}.cal-chooser-toggle{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--pale);color:var(--green);font-family:inherit;font-size:11px;font-weight:700;line-height:1.5;cursor:pointer;flex:none}.cal-chooser-toggle>span{font-size:17px;font-weight:400;color:var(--gold)}
@media(max-width:1050px){.cal-layout{gap:17px}.cal-mobile-chooser{display:flex;align-items:center;justify-content:space-between;gap:10px}.cal-mobile-chooser>span{display:flex;flex-direction:column;gap:5px;min-width:0}.cal-mobile-chooser small{font-size:8px;font-weight:700;letter-spacing:.8px;color:var(--gold)}.cal-mobile-chooser strong{font-size:13px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}.cal-chooser-content:not(.is-expanded){display:none}.cal-chooser-content.is-expanded{padding-top:17px;margin-top:14px;border-top:1px solid var(--line)}[dir=rtl] .cal-mobile-chooser small{letter-spacing:0;font-size:10px}[dir=rtl] .cal-chooser-toggle{font-size:12px}}

/* Calendar agenda: compact actions and source context without a second hero. */
.cal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 20px}.cal-toolbar h1{margin:5px 0 0;font-size:22px;line-height:1.5}.cal-toolbar .cal-eyebrow{font-size:10px}.cal-toolbar-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.cal-toolbar-actions .cal-secondary{padding:8px 12px;font-size:12px}
.cal-layout{grid-template-columns:minmax(285px,.8fr) minmax(0,1.2fr);grid-template-areas:'calendar detail';gap:18px 24px}.cal-month-panel{grid-area:calendar;position:static}.cal-day-detail{grid-area:detail;min-width:0}.cal-upcoming{grid-area:upcoming;min-width:0;align-self:start;border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--panel)}
.cal-selection{margin-bottom:14px}.cal-selection h2{font-family:inherit;font-size:25px;letter-spacing:normal;margin:6px 0 12px}.cal-selection>span{font-size:12px}.cal-phase button{font-size:13px}.cal-weekday{font-size:10px}.cal-day small{font-size:10px}.cal-grid-key{font-size:10px}.cal-date-controls label{font-size:11px}.cal-source>summary,.cal-settings>summary{font-size:12px}.cal-source p,.cal-settings p{font-size:12px}.cal-source small{font-size:11px}.cal-method{font-size:11px}
.cal-card-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}.cal-card-heading>div{min-width:0}.cal-card-heading h3{margin-top:4px}.cal-remind{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--green);font-family:inherit;font-size:11px;font-weight:600;line-height:1.5;cursor:pointer;flex:none;white-space:nowrap}.cal-remind svg{width:17px;height:17px;flex:none}.cal-remind:hover{background:var(--pale)}.cal-card-tools{display:flex;justify-content:flex-end;margin-top:2px}.cal-tag{font-size:10px;line-height:1.7}.cal-recommendation,.cal-daily{padding:17px}.cal-recommendation>p,.cal-daily>p{font-size:13px}.cal-readings{grid-template-columns:repeat(2,minmax(0,1fr))}.cal-readings>.cal-surah:only-child{grid-column:1/-1}.cal-surah{min-width:0;gap:6px;padding:9px 10px}.cal-surah>span:first-child{font-size:21px}.cal-surah>span:nth-child(2){font-size:11px}.cal-more>summary{font-size:14px}
.cal-phase-hint{display:block;width:100%;margin-top:10px;padding:11px 13px;text-align:start;border:1px solid var(--line);border-radius:11px;background:var(--pale);color:var(--muted);font-family:inherit;font-size:12px;line-height:1.8;cursor:pointer}.cal-phase-hint strong{display:block;color:var(--green);font-weight:650}.cal-empty-note{font-size:12px;padding:10px 12px}.cal-daily .hadith-library-entry{margin-top:8px;font-size:12px}.cal-daily .cal-tag{color:var(--green)}
.cal-history-card{border-color:var(--gold,#b28b43)}.cal-recommendation .cal-certainty{font-size:11px;padding:9px 11px;border-inline-start:2px solid var(--gold);background:var(--pale);border-radius:6px}.cal-lesson{margin:12px 0 15px}.cal-lesson>strong{font-size:12px;color:var(--green)}.cal-lesson p{font-size:13px;line-height:1.9;margin:5px 0;color:var(--ink)}.cal-study-verse{display:flex;align-items:center;min-height:44px;color:var(--green);font-size:12px;font-weight:650;text-decoration:none}.cal-place{margin:10px 0 0}.cal-place img{display:block;width:100%;height:160px;object-fit:cover;border-radius:11px}.cal-place figcaption{font-size:11px;line-height:1.8;color:var(--muted);margin-top:6px}.cal-place summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:var(--green)}.cal-place a{color:var(--green)}
.cal-optional-plan{border:1px solid var(--line);border-radius:13px;padding:0 13px;margin:18px 0;background:var(--panel)}.cal-optional-plan>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;cursor:pointer;font-size:12px;color:var(--muted)}.cal-optional-plan>summary strong{color:var(--green);font-size:12px}.cal-optional-plan .cal-plan{margin:0 0 13px;border:0;border-top:1px solid var(--line);border-radius:0;padding:14px 0 0}.cal-plan p,.cal-plan small{font-size:11px}.cal-duas{margin:18px 0}.cal-dua-links{grid-template-columns:repeat(2,minmax(0,1fr))}.cal-dua-links>button{font-size:12px;line-height:1.65;padding:9px 11px}.cal-dua-links>button:first-child:last-child{grid-column:1/-1}
.cal-upcoming .cal-section-heading{margin-bottom:12px}.cal-upcoming h2{font-size:16px;line-height:1.4;margin:0}.cal-upcoming .cal-section-heading>span{font-size:10px;color:var(--muted)}.cal-upcoming-tabs{display:flex;border:1px solid var(--line);border-radius:10px;padding:3px;gap:3px;background:var(--pale);margin-bottom:10px}.cal-upcoming-tabs button{flex:1;min-height:44px;font-family:inherit;font-size:11px;font-weight:600;line-height:1.6;padding:6px;border:0;border-radius:7px;background:none;color:var(--muted);cursor:pointer}.cal-upcoming-tabs button[aria-pressed=true]{background:var(--panel);color:var(--green)}.cal-upcoming-row{display:flex;align-items:center;gap:7px;border-top:1px solid var(--line);padding:6px 0}.cal-upcoming-row:first-child{border-top:0}.cal-upcoming-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;min-height:64px;text-align:start;padding:7px 0;background:none;border:0;color:var(--ink);font-family:inherit;cursor:pointer}.cal-upcoming-day{width:42px;min-width:42px;text-align:center;display:flex;flex-direction:column;font-size:21px;line-height:1.2;color:var(--green)}.cal-upcoming-day small{font-size:9px;line-height:1.6;margin-top:4px}.cal-upcoming-open>span:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}.cal-upcoming-open strong{font-size:12px;line-height:1.55}.cal-upcoming-open>span:nth-child(2)>small{font-size:10px;line-height:1.5;color:var(--muted)}.cal-upcoming-open>b{font-weight:400;margin-inline-start:auto;color:var(--gold)}.cal-remind.is-compact{padding:7px;min-width:36px;border:0;background:none}.cal-remind.is-compact span{display:none}.cal-upcoming-more>summary{display:flex;align-items:center;min-height:44px;color:var(--green);font-size:12px;cursor:pointer}.cal-upcoming-empty{font-size:12px;color:var(--muted);line-height:1.8}
[dir=rtl] .cal-toolbar h1,[dir=rtl] .cal-selection h2{font-family:inherit;letter-spacing:normal}[dir=rtl] .cal-tag{font-size:11px}[dir=rtl] .cal-upcoming-open strong{font-size:13px}
@media(max-width:1050px){.cal-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:'calendar' 'detail';gap:17px}.cal-upcoming{max-width:580px;width:100%;margin-inline:auto}.cal-month-panel,.cal-day-detail{max-width:580px}}
@media(max-width:700px){.cal-toolbar{margin:0 0 15px;gap:10px}.cal-toolbar h1{font-size:20px}.cal-toolbar .cal-eyebrow{font-size:9px}.cal-toolbar-actions{gap:5px}.cal-toolbar-actions .cal-secondary{font-size:11px;padding:7px 9px}.cal-selection h2{font-size:23px}.cal-month-panel{padding:12px}.cal-mobile-chooser strong{font-size:14px}.cal-mobile-chooser small{font-size:10px}.cal-recommendation,.cal-daily{padding:15px}.cal-remind{font-size:11px;padding-inline:8px}.cal-card-heading h3{font-size:17px}.cal-place img{height:150px}.cal-upcoming{padding:14px}}
@media(max-width:370px){.cal-toolbar{align-items:start}.cal-toolbar-actions{max-width:100px}.cal-readings,.cal-dua-links{grid-template-columns:1fr}.cal-card-heading{flex-wrap:wrap}.cal-card-heading .cal-remind{margin-inline-start:auto}.cal-upcoming-tabs button{font-size:10px}}

/* Both views are available immediately, including on small screens. */
.calendar-page [hidden]{display:none!important}.cal-view-switch{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 18px}.cal-view-switch button{position:relative;min-height:46px;padding:9px 20px;border:0;background:none;color:var(--muted);font-family:inherit;font-size:13px;font-weight:650;cursor:pointer}.cal-view-switch button[aria-pressed=true]{color:var(--green)}.cal-view-switch button[aria-pressed=true]:after{content:'';position:absolute;height:3px;background:var(--gold);inset-inline:15px;bottom:-1px;border-radius:3px}.cal-layout[data-cal-view=upcoming]{grid-template-areas:'calendar upcoming'}.cal-surah{flex-wrap:wrap}.cal-verse-ref{font-size:11px;color:var(--muted);white-space:nowrap}.cal-remind.is-compact{min-width:44px}.cal-toolbar h1{font-size:22px;font-weight:750}.cal-toolbar-actions .cal-secondary{white-space:nowrap}
@media(max-width:1050px){.cal-layout[data-cal-view=upcoming]{grid-template-areas:'upcoming'}.cal-layout[data-cal-view=upcoming] .cal-month-panel{display:none}.cal-view-switch{max-width:580px;margin-inline:auto}}
@media(max-width:700px){.cal-toolbar h1{font-size:22px}.cal-view-switch{margin-bottom:14px}.cal-view-switch button{flex:1}.cal-toolbar{flex-wrap:wrap}.cal-toolbar-actions{margin-inline-start:auto}.cal-upcoming .cal-section-heading{align-items:start;gap:10px}}

.cal-certainty{margin:11px 0 13px;line-height:1.8}.cal-certainty>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:11px;line-height:1.8;color:var(--muted)}.cal-certainty>p{font-size:11px;line-height:1.8;color:var(--muted);margin:7px 0 0}.cal-study-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:4px}.cal-passage-audio{margin-top:8px}.cal-passage-audio:empty{display:none}.cal-source .cal-reflection{color:var(--ink);padding-bottom:9px;border-bottom:1px solid var(--line)}.cal-place details p{font-size:10px;line-height:1.7;margin:5px 0}.cal-place img{height:140px}
@media(max-width:700px){.cal-place img{height:130px}}

/* Annual browsing follows a labelled Rabi-first cycle; stored dates remain conventional AH. */
.cal-layout[data-cal-view=cycle]{grid-template-columns:minmax(0,1fr);grid-template-areas:'cycle'}.cal-layout[data-cal-view=cycle]>.cal-month-panel{display:none}.cal-cycle{grid-area:cycle;min-width:0;width:100%;max-width:820px;margin-inline:auto;border:1px solid var(--line);border-radius:18px;padding:20px;background:var(--panel)}.cal-cycle-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.cal-cycle-header h2{font-family:inherit;font-size:21px;line-height:1.6;margin:5px 0;color:var(--ink)}.cal-cycle-header h2 bdi{white-space:nowrap;color:var(--green)}.cal-cycle-nav{display:flex;gap:6px;flex:none}.cal-cycle-nav button{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--pale);color:var(--green);font:25px/1.2 Georgia,serif;cursor:pointer}.cal-cycle button:disabled{opacity:.45;cursor:default}.cal-cycle-intro{font-size:13px;line-height:1.8;color:var(--muted);margin:12px 0 16px}.cal-cycle-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cal-cycle-months>button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;min-height:92px;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--bg);color:var(--ink);font-family:inherit;text-align:start;line-height:1.6;cursor:pointer}.cal-cycle-months>button:hover:not(:disabled){border-color:var(--green);background:var(--pale)}.cal-cycle-months>button>span{font-weight:700;font-size:15px}.cal-cycle-months>button>small{font-size:12px;color:var(--muted)}.cal-cycle-months>button>strong{font-size:11px;color:var(--green)}.cal-cycle-months>button[aria-current=date]{border:2px solid var(--green);background:var(--pale)}.cal-cycle-months .cal-cycle-rollover{font-weight:500;color:var(--muted)}.cal-cycle-source{border-top:1px solid var(--line);margin-top:18px;padding-top:5px}.cal-cycle-source>summary{min-height:44px;display:flex;align-items:center;color:var(--green);font-size:13px;font-weight:650;cursor:pointer}.cal-cycle-source p{font-size:13px;line-height:1.9;color:var(--muted);margin:7px 0}.cal-cycle-source a{display:flex;align-items:center;min-height:44px;color:var(--green);font-size:12px;line-height:1.8;text-underline-offset:3px}.cal-selection .cal-cycle-context{font-size:12px;margin:-3px 0 13px;line-height:1.75;color:var(--muted)}
@media(max-width:600px){.cal-cycle{padding:16px}.cal-cycle-header{align-items:flex-start}.cal-cycle-header h2{font-size:18px}.cal-cycle-months{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cal-cycle-months>button{padding:12px;min-height:92px}.cal-view-switch button{padding-inline:10px;min-width:0}.cal-cycle-nav{gap:4px}}
@media(max-width:360px){.cal-cycle{padding:13px}.cal-cycle-header{flex-wrap:wrap}.cal-cycle-nav{margin-inline-start:auto}.cal-cycle-months>button>span{font-size:14px}.cal-view-switch button{font-size:12px;padding-inline:7px}}

/* Keep the three devotional destinations readable when their labels exceed the phone width. */
@media(max-width:700px){body .study-segments.devotion-segments{display:flex!important;flex-wrap:nowrap;gap:6px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-padding-inline:8px;padding:0 2px 5px}body .study-segments.devotion-segments>button{flex:0 0 auto;min-width:max-content;min-height:48px;white-space:nowrap;padding:10px 13px;scroll-snap-align:center}body .study-segments.devotion-segments::-webkit-scrollbar{display:block;height:4px}body .study-segments.devotion-segments::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px}}
@media(max-width:480px){.calendar-page .cal-toolbar{align-items:flex-start;gap:10px}.calendar-page .cal-toolbar>div:first-child{width:100%}.calendar-page .cal-toolbar-actions{width:100%;max-width:none;flex-basis:100%;margin-inline-start:0;justify-content:flex-start;flex-wrap:nowrap}.calendar-page .cal-toolbar-actions .cal-secondary{min-height:44px;padding-inline:12px}}

.cal-layout[data-cal-view=amal]{grid-template-columns:minmax(0,1fr);grid-template-areas:'amal'}
.cal-layout[data-cal-view=amal]>.cal-month-panel{display:none}
.cal-amal{grid-area:amal;width:100%;max-width:850px;margin-inline:auto}
.cal-amal h2,.cal-amal p{margin:0}.cal-amal header>p{margin-block:7px 18px;color:var(--muted);line-height:1.65}
.cal-amal-filters,.cal-amal-related{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.cal-amal-filters button,.cal-amal-related button{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;min-height:44px;padding:7px 13px;font:inherit;cursor:pointer}
.cal-amal-filters button[aria-pressed=true]{background:var(--dark);color:var(--on-accent,#fff);border-color:var(--dark)}
.cal-amal-list{margin-block-start:18px;border-block-start:1px solid var(--line)}
.cal-amal-entry{border-block-end:1px solid var(--line)}.cal-amal-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:center;min-height:63px;padding:12px 4px}
.cal-amal-head i{width:38px;height:38px;display:grid;place-items:center;color:var(--green);background:var(--pale);border-radius:12px}
.cal-amal-head h3,.cal-amal-head p{margin:0;display:block;text-wrap:pretty;line-height:1.55;overflow-wrap:break-word}.cal-amal-head p{font-size:.875rem;color:var(--muted)}
.cal-amal-head h3{font-size:1.15rem}.cal-source-brief{margin-block:.3rem .65rem}.cal-source-brief .cal-source-badge{padding:0;border:0;background:none;font-size:.875rem}
.cal-amal-body{padding:0 clamp(6px,3vw,32px) 18px}.cal-amal-body>p{max-width:66ch;margin-block:0 13px;line-height:1.8}
.cal-amal-body .cal-readings{display:flex;gap:8px;flex-wrap:wrap}.cal-amal-body .cal-surah{max-width:100%;align-items:center;line-height:1.65}
.cal-amal-body .cal-surah>strong{flex-basis:100%;text-align:start;line-height:1.65}
.cal-surah .cal-verse-ref{display:flex;flex-wrap:wrap;gap:3px 9px;white-space:normal}.cal-surah .cal-verse-ref span{white-space:nowrap}
.cal-amal-related{margin-block:5px 18px}.cal-amal-related strong{flex-basis:100%}.cal-amal-related button{color:var(--green);display:inline-flex;align-items:center;gap:8px}
@media(max-width:500px){.cal-view-switch{flex-wrap:wrap}.cal-view-switch button{min-width:calc(50% - 5px)}.cal-amal-filters button{padding-inline:10px}.cal-amal-body{padding-inline:2px}.cal-amal-body .cal-surah{min-width:0}.cal-amal-head{gap:9px}}

/* v96: month → occasion → practice → Quran, with source types visible at each depth. */
.calendar-page{--cal-quiet:#536359;--cal-reflection:#73541c}.calendar-page p,.cal-amal-body>p,.cal-recommendation>p,.cal-month-help{font-size:16px;line-height:1.85}.calendar-page .cal-tag,.calendar-page .cal-eyebrow{font-size:12px;letter-spacing:.06em}.calendar-page .cal-source>summary,.calendar-page .cal-source p,.calendar-page .cal-source a,.calendar-page .cal-source small,.calendar-page .cal-settings>summary,.calendar-page .cal-settings p,.calendar-page .cal-certainty,.calendar-page .cal-certainty>summary,.calendar-page .cal-certainty>p{font-size:14px;line-height:1.75}.calendar-page a{color:var(--green);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}.calendar-page .cal-primary,.calendar-page .cal-secondary,.calendar-page .cal-text,.calendar-page .cal-remind{font-size:14px;min-height:44px}.calendar-page .cal-view-switch button{font-size:15px;line-height:1.5}.calendar-page .cal-surah>span:nth-child(2),.calendar-page .cal-verse-ref{font-size:14px}.calendar-page .cal-surah{min-height:52px;padding:12px;gap:8px}.calendar-page .cal-surah>span:first-child{font-size:21px}.calendar-page .cal-method,.calendar-page .cal-plan p,.calendar-page .cal-plan small{font-size:14px}.calendar-page .cal-optional-plan>summary,.calendar-page .cal-optional-plan>summary strong{font-size:14px;line-height:1.6}.calendar-page .cal-dua-links>button,.calendar-page .cal-study-verse,.calendar-page .cal-upcoming-open strong,.calendar-page .cal-upcoming-tabs button{font-size:14px}.calendar-page .cal-upcoming-open>span:nth-child(2)>small{font-size:13px}.calendar-page .cal-source a{min-height:44px;display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}.calendar-page .cal-place figcaption{font-size:13px}.calendar-page .cal-place details p{font-size:13px}.calendar-page .cal-results-count{font-size:14px;color:var(--muted);margin-block:12px 0}.calendar-page .cal-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-block-end:16px;font-size:14px;color:var(--muted)}.cal-breadcrumb button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:6px 0;background:none;border:0;color:var(--green);font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.cal-breadcrumb>span:before{content:'/';margin-inline-end:10px;color:var(--muted)}.cal-source-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;border-radius:7px;padding:5px 9px;background:var(--pale);color:var(--green);font-size:13px;line-height:1.6;font-weight:650}.cal-source-badge.is-report{background:color-mix(in srgb,var(--green) 11%,var(--panel));color:var(--green)}.cal-source-badge.is-reflection{background:color-mix(in srgb,var(--gold) 15%,var(--panel));color:var(--cal-reflection)}.cal-source-badge svg{flex:none}.cal-amal-head{padding:16px 5px;min-height:78px}.cal-amal-head strong{font-size:18px}.cal-amal-head small{font-size:14px;margin-top:4px}.cal-amal-head i{width:44px;height:44px}.cal-amal-body{padding-block-end:24px}.cal-amal-body .cal-amal-lead{margin-block:14px 18px}.cal-amal h2{font-size:26px;line-height:1.5}.cal-amal h4,.cal-reading-set h4{font-size:16px;margin:0 0 10px;line-height:1.6}.cal-amal-month-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px;color:var(--muted);margin-block-start:15px}.cal-amal-month-filter select{min-height:46px;max-width:100%;padding:8px 34px 8px 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--panel);font:inherit;font-size:16px}.cal-practice-steps{padding:17px 20px;margin-block:16px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.cal-practice-steps ol{margin:0;padding-inline-start:24px}.cal-practice-steps li{font-size:16px;line-height:1.85;padding-inline-start:5px;margin-block:7px}.cal-practice-steps li::marker{color:var(--green);font-weight:750}.cal-reading-set{margin-block:20px}.cal-editorial-reflection{padding:16px 18px;margin-block:18px 14px;background:color-mix(in srgb,var(--gold) 7%,var(--panel));border:1px solid color-mix(in srgb,var(--gold) 40%,var(--line));border-inline-start:4px solid var(--gold);border-radius:12px}.cal-reflection-heading{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;color:var(--cal-reflection)}.cal-reflection-heading strong{font-size:16px}.cal-reflection-heading>span{font-size:12px;border:1px solid color-mix(in srgb,var(--gold) 45%,var(--line));border-radius:5px;padding:2px 6px;margin-inline-start:auto;line-height:1.6}.cal-editorial-reflection>p{margin-block:11px 13px}.cal-ayah-preview{border-block:1px solid var(--line);margin-block:18px}.cal-ayah-preview>summary{display:flex;align-items:center;gap:10px;min-height:48px;font-size:15px;font-weight:700;color:var(--green);cursor:pointer}.cal-exact-ayah{font-family:var(--arabic);font-size:clamp(26px,3vw,33px);line-height:2.2;margin:10px 0 16px;padding:12px 15px;background:var(--panel);border-radius:12px;color:var(--ink)}.cal-ayah-loading{color:var(--muted)}.cal-back-month{display:flex;align-items:center;gap:8px;margin-block-start:12px;text-decoration:underline;text-underline-offset:4px}.cal-practice-card .cal-primary{margin-block:3px 7px}.cal-practice-card h3{font-size:20px;line-height:1.6;margin-block:9px 3px}.cal-month-discovery{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:18px;margin-block:2px 20px;border:1px solid var(--green);border-radius:15px;background:var(--pale);color:var(--ink);font:inherit;text-align:start;cursor:pointer}.cal-month-discovery>span:first-child{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--panel);color:var(--green)}.cal-month-discovery>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}.cal-month-discovery small{font-size:12px;color:var(--green);font-weight:750;line-height:1.6}.cal-month-discovery strong{font-size:18px;line-height:1.55}.cal-month-discovery>span:nth-child(2)>span{font-size:14px;line-height:1.6;color:var(--muted)}.cal-layout[data-cal-view=month]{grid-template-columns:minmax(0,1fr);grid-template-areas:'month'}.cal-month-overview{grid-area:month;max-width:900px;width:100%;margin-inline:auto;min-width:0}.cal-month-overview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block-end:22px}.cal-month-overview h2{font-size:30px;line-height:1.6;margin:5px 0 0}.cal-month-overview h2 bdi{font-weight:450;color:var(--muted)}.cal-month-overview h3{font-size:22px;line-height:1.55;margin:14px 0}.cal-month-theme{border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--panel)}.cal-month-theme>p{color:var(--muted)}.cal-month-theme .cal-readings{grid-template-columns:repeat(2,minmax(0,1fr))}.cal-margin-note{margin-block-start:19px;padding:5px 15px;background:color-mix(in srgb,var(--gold) 10%,var(--panel));border-inline-start:3px solid var(--gold);border-radius:8px}.cal-margin-note>summary{display:flex;gap:8px;align-items:center;min-height:44px;cursor:pointer;color:var(--cal-reflection);font-size:15px;font-weight:650}.cal-margin-note>p{font-family:Georgia,serif;font-style:italic;margin:5px 0 13px!important;font-size:18px!important;color:var(--ink)}[dir=rtl] .cal-margin-note>p{font-family:var(--arabic);font-style:normal;font-size:21px!important}.cal-month-overview>.cal-place{margin-block:22px}.cal-month-overview>.cal-place img{height:190px;object-position:center}.cal-month-practices{margin-block:28px}.cal-month-practices .cal-section-heading{margin-block:0 8px;align-items:center}.cal-month-practices .cal-section-heading h3{margin:0}.cal-month-practices .cal-section-heading>span{font-size:14px;color:var(--muted)}.cal-month-help{margin:8px 0 17px;color:var(--muted)}.cal-month-practice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cal-month-practice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--ink);text-align:start;font:inherit;cursor:pointer}.cal-month-practice:hover{border-color:var(--green);background:var(--pale)}.cal-month-practice>span:nth-child(2){display:flex;flex-direction:column;gap:6px;min-width:0}.cal-month-practice-icon{display:grid;place-items:center;width:40px;height:44px;color:var(--green)}.cal-month-practice small{font-size:13px;line-height:1.6;color:var(--muted)}.cal-month-practice strong{font-size:17px;line-height:1.6}.cal-month-practice>svg:last-child{color:var(--green);flex:none}.cal-month-history{padding-block:10px 25px;border-top:1px solid var(--line)}.cal-month-history>.cal-secondary{margin-inline-end:7px;margin-block-end:8px}.cal-cycle-months>button .cal-cycle-theme{font-size:15px;font-weight:500;color:var(--ink);line-height:1.65}.cal-cycle-months>button>span:first-child{font-size:18px}.cal-cycle-months>button{min-height:155px}.cal-cycle-intro,.cal-cycle-source p,.cal-cycle-source>summary{font-size:15px}.cal-cycle-months>button>small,.cal-cycle-months>button>strong{font-size:13px}.dark .calendar-page{--cal-reflection:#e1c68e}.dark .cal-month-discovery{border-color:var(--line)}
@media(max-width:700px){.cal-month-practice-grid{grid-template-columns:1fr}.cal-month-overview-head{flex-wrap:wrap;align-items:flex-start}.cal-month-overview h2{font-size:27px}.cal-month-theme{padding:18px}.cal-month-overview h3{font-size:21px}.cal-month-discovery{padding:15px;gap:9px}.cal-month-discovery strong{font-size:17px}.cal-month-discovery>span:first-child{width:39px;height:44px}.cal-amal-head h3{font-size:1.0625rem}.cal-amal-body{padding-inline:4px}.cal-editorial-reflection{padding:15px 13px}.cal-reflection-heading>span{margin-inline-start:0}.cal-practice-steps{padding:14px}.cal-practice-card .cal-card-heading{flex-wrap:wrap}.cal-practice-card .cal-card-heading>.cal-remind{margin-inline-start:auto}.cal-month-theme .cal-readings{grid-template-columns:1fr}.cal-month-practice{padding:15px 12px}.cal-month-overview>.cal-place img{height:155px}.cal-cycle-months>button{padding:13px;min-height:165px}.calendar-page .cal-view-switch button{font-size:14px}.cal-amal-month-filter{align-items:flex-start;flex-direction:column}.cal-amal-month-filter select{width:100%}}
@media(prefers-reduced-motion:reduce){.calendar-page *{scroll-behavior:auto!important;transition:none!important}}
.cal-daily-guide-links{display:flex;flex-wrap:wrap;gap:9px;margin-block:18px}.cal-daily-guide-links>strong{font-size:15px;flex-basis:100%}.calendar-page .cal-placement-note{font-size:14px;color:var(--cal-reflection);padding:10px 12px;border-inline-start:3px solid var(--gold);background:color-mix(in srgb,var(--gold) 8%,var(--panel));border-radius:7px;margin-block:12px}

/* v97: the agenda leads. Dates, meaning, practice and reading share one visual grammar. */
.cal-layout[data-cal-view=upcoming]{grid-template-columns:minmax(0,1fr);grid-template-areas:'upcoming'}
.cal-layout[data-cal-view=upcoming]>.cal-upcoming{width:100%;max-width:980px;margin-inline:auto;padding:0;border:0;background:none;border-radius:0}
.calendar-page .cal-view-switch{max-width:none}
.cal-agenda-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:8px 24px}
.cal-agenda-heading>div{max-width:65ch}.cal-upcoming .cal-agenda-heading h2{font-size:clamp(30px,3.5vw,40px);font-weight:800;line-height:1.3;margin:8px 0 10px;color:var(--ink)}
.cal-agenda-heading p{margin:0;color:var(--muted);text-wrap:pretty}.cal-agenda-emblem{width:78px;height:78px;display:grid;place-items:center;flex:none;border-radius:23px;color:var(--green);background:var(--pale);border:1px solid var(--line)}
.cal-agenda-anchor{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:17px 20px;background:var(--panel);border:1px solid var(--line);border-inline-start:5px solid var(--green);border-radius:12px}
.cal-agenda-anchor>span{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;font-size:14px;color:var(--muted)}.cal-agenda-anchor strong{font-size:18px;color:var(--ink);font-weight:750}.cal-agenda-anchor small{font-size:14px;white-space:nowrap}
.cal-agenda-settings{max-width:440px;min-width:0}.cal-agenda-settings>summary{display:flex;align-items:center;gap:7px;min-height:44px;margin-block:-8px;cursor:pointer;color:var(--green);font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:4px}
.cal-agenda-settings>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:20px}.cal-agenda-settings label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--ink)}
.cal-agenda-settings input,.cal-agenda-settings select{max-width:100%;min-height:46px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:15px}.cal-agenda-settings p{grid-column:1/-1;margin:0;font-size:13px;line-height:1.8;color:var(--muted)}
.cal-agenda-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-block:22px 12px}.cal-agenda-horizon{display:flex;gap:6px;flex-wrap:wrap}
.cal-agenda-horizon button,.cal-agenda-controls .cal-upcoming-tabs button{min-height:46px;min-width:75px;font:inherit;font-size:14px;font-weight:700;line-height:1.65;padding:8px 13px;cursor:pointer}
.cal-agenda-horizon button{border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted)}.cal-agenda-horizon button[aria-pressed=true]{background:var(--dark);border-color:var(--dark);color:var(--on-accent,#fff)}
.cal-agenda-controls .cal-upcoming-tabs{margin:0;padding:4px;max-width:100%;border-radius:11px}.cal-agenda-controls .cal-upcoming-tabs button{min-width:0;border:1px solid transparent;border-radius:8px}.cal-agenda-controls .cal-upcoming-tabs button[aria-pressed=true]{border-color:var(--green);color:var(--green)}
.cal-agenda-count{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 20px;margin:0 0 24px!important;font-size:14px!important;color:var(--muted)}.cal-agenda-count strong{font-weight:650;color:var(--ink)}.cal-agenda-count>span{font-size:13px}
.cal-agenda-month{margin-block:0 30px}.cal-agenda-month>header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-block-end:12px;border-block-end:2px solid var(--line);padding-block-end:9px}
.cal-agenda-month h3{font-size:23px;line-height:1.5;margin:0;font-weight:800;color:var(--ink)}.cal-agenda-month h3 bdi{font-size:17px;font-weight:500;color:var(--muted);margin-inline-start:5px}.cal-agenda-month>header .cal-text{display:flex;align-items:center;gap:6px;text-decoration:underline;text-underline-offset:4px;white-space:normal}
.cal-agenda-dates{display:grid;gap:18px}.cal-agenda-date{border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden}.cal-agenda-date-head{display:flex;align-items:center;gap:15px;background:color-mix(in srgb,var(--green) 6%,var(--panel));padding:15px 20px;border-block-end:1px solid var(--line)}
.cal-agenda-date-number{display:flex;align-items:center;flex-direction:column;justify-content:center;min-width:64px;min-height:64px;font-size:31px;font-weight:800;line-height:1.15;color:var(--green);border-inline-end:2px solid color-mix(in srgb,var(--green) 24%,var(--line));padding-inline-end:17px}.cal-agenda-date-number small{font-size:11px;font-weight:600;line-height:1.5;margin-top:4px;max-width:82px;text-align:center}
.cal-agenda-date-head>div{display:flex;flex-direction:column;gap:5px;min-width:0}.cal-agenda-date-head strong{font-size:17px;font-weight:750;line-height:1.6;color:var(--ink)}.cal-agenda-date-head time{font-size:14px;color:var(--muted)}.cal-agenda-relative{margin-inline-start:auto;border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700;line-height:1.65;color:var(--green);white-space:nowrap;background:var(--panel)}
.cal-agenda-date.is-evening .cal-agenda-date-head{background:color-mix(in srgb,var(--gold) 9%,var(--panel))}.cal-agenda-date.is-evening .cal-agenda-date-number{color:var(--cal-reflection);border-color:color-mix(in srgb,var(--gold) 50%,var(--line))}
.cal-agenda-item{padding:21px 22px;min-width:0}.cal-agenda-item+.cal-agenda-item{border-block-start:1px solid var(--line)}.cal-agenda-item-head{display:flex;gap:12px;align-items:flex-start}.cal-agenda-item-head>div{min-width:0;flex:1}.cal-agenda-symbol{display:grid;place-items:center;width:40px;min-height:40px;flex:none;background:var(--pale);color:var(--green);border-radius:10px}.cal-agenda-item.is-history .cal-agenda-symbol{background:color-mix(in srgb,var(--gold) 12%,var(--panel));color:var(--cal-reflection)}
.cal-agenda-source-kind{display:block;color:var(--muted);font-size:12px;line-height:1.7;font-weight:600}.cal-agenda-item h4{font-size:20px;font-weight:800;line-height:1.65;margin:3px 0 0;color:var(--ink);text-wrap:pretty}.cal-agenda-item-head .cal-remind.is-compact{min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:10px;padding:9px;background:var(--panel);color:var(--green);flex:none}
.cal-agenda-item .cal-agenda-summary{max-width:74ch;font-size:16px;line-height:1.9;margin:12px 0;color:var(--ink)}.cal-agenda-item .cal-agenda-schedule{font-size:13px;color:var(--muted);display:flex;gap:7px;align-items:flex-start;margin:0 0 13px;line-height:1.7}.cal-agenda-schedule svg{flex:none;margin-top:3px}
.cal-agenda-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px}.cal-agenda-actions button,.cal-agenda-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;min-width:44px;padding:9px 12px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--green);font:inherit;font-size:14px;font-weight:650;line-height:1.65;cursor:pointer;text-align:start;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;max-width:100%;overflow-wrap:break-word}.cal-agenda-actions svg{flex:none}.cal-agenda-actions .cal-agenda-primary{background:var(--dark);border-color:var(--dark);color:var(--on-accent,#fff);text-decoration:none}.cal-agenda-actions .cal-agenda-read{background:var(--pale);border-color:color-mix(in srgb,var(--green) 30%,var(--line))}.cal-agenda-actions .cal-agenda-source{font-size:13px;margin-inline-start:auto}.cal-agenda-read>span{font-weight:750}.cal-agenda-editorial{display:block;font-size:12px;color:var(--cal-reflection);margin-top:10px;line-height:1.7}
.cal-agenda-regular{margin-block:34px;padding-block-start:22px;border-block-start:2px solid var(--line)}.cal-agenda-regular h3,.cal-upcoming-trails h3{font-size:23px;font-weight:800;line-height:1.6;margin:5px 0 8px}.cal-agenda-regular>header>p,.cal-upcoming-trails>p{font-size:14px;color:var(--muted);max-width:75ch;margin:0 0 16px}.cal-agenda-regular-groups{display:grid;gap:12px}.cal-agenda-regular-group{border:1px solid var(--line);border-radius:13px;background:var(--panel);overflow:hidden}
.cal-agenda-regular-group>summary{display:flex;align-items:center;gap:12px;padding:16px;min-height:70px;cursor:pointer;list-style:none}.cal-agenda-regular-group>summary::-webkit-details-marker{display:none}.cal-agenda-regular-group>summary>span:nth-child(2){flex:1;min-width:0}.cal-agenda-regular-group>summary strong,.cal-agenda-regular-group>summary small{display:block;line-height:1.7}.cal-agenda-regular-group>summary strong{font-size:16px;color:var(--ink)}.cal-agenda-regular-group>summary small{font-size:13px;color:var(--muted);margin-top:3px}.cal-regular-symbol{color:var(--green);flex:none}.cal-agenda-regular-group[open]>summary{border-block-end:1px solid var(--line)}.cal-agenda-regular-group[open]>summary>svg:last-child{transform:rotate(180deg)}.cal-agenda-regular-group .cal-agenda-item{padding:18px 22px}.cal-agenda-regular-group .cal-agenda-item h4{font-size:18px}.cal-agenda-regular-group .cal-agenda-symbol{width:34px;min-height:34px}
.cal-agenda-browse{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:20px 22px;background:var(--pale);border:1px solid var(--line);border-radius:14px;margin-block:30px}.cal-agenda-browse>span{display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:4px;min-width:0}.cal-agenda-browse>span>svg{grid-row:1/3;color:var(--green);align-self:center}.cal-agenda-browse strong{font-size:17px;line-height:1.6}.cal-agenda-browse small{font-size:13px;color:var(--muted);line-height:1.7}.cal-agenda-browse .cal-secondary{display:flex;align-items:center;gap:8px;flex:none;max-width:45%;white-space:normal;line-height:1.7}
.cal-upcoming-trails{margin-block:35px}.cal-upcoming-trails .cal-section-heading{align-items:center}.cal-upcoming-trails .cal-section-heading h3{margin:0}.cal-upcoming-trails .cal-text{display:flex;align-items:center;gap:6px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}.cal-upcoming-trail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cal-upcoming-trail{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;min-height:190px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);font:inherit;text-align:start;cursor:pointer}.cal-trail-icon{color:var(--green);margin-bottom:3px}.cal-upcoming-trail>small{font-size:13px;color:var(--muted);line-height:1.7}.cal-upcoming-trail>strong{font-size:18px;font-weight:750;line-height:1.6;text-wrap:pretty}.cal-upcoming-trail>span:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:13px;color:var(--green);margin-top:auto;padding-top:6px}.cal-upcoming-trail:hover{border-color:var(--green);background:var(--pale)}
.cal-agenda-footnote{font-size:13px!important;line-height:1.8!important;color:var(--muted);margin-block:25px 0;border-block-start:1px solid var(--line);padding-top:15px}.cal-upcoming-empty{padding:22px;background:var(--panel);border:1px dashed var(--line);border-radius:14px;margin-block:20px}.cal-upcoming-empty h3{font-size:20px;margin:0 0 6px;color:var(--ink)}.cal-upcoming-empty p{font-size:15px;margin:0 0 15px}
.cal-agenda-return{margin-block-end:10px}.cal-agenda-return button{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:7px 14px;border:1px solid var(--line);border-radius:10px;background:var(--pale);color:var(--green);font:inherit;font-size:15px;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.cal-report-connections{margin-block:20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.cal-report-connections h4{display:flex;align-items:center;gap:8px}.cal-report-connections>p{font-size:14px;line-height:1.8;color:var(--muted);margin:8px 0}.cal-report-connections a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:9px 0;font-size:15px;font-weight:650;line-height:1.7}.cal-report-connections a+a{border-block-start:1px solid var(--line)}
.cal-upcoming :is(button,a,summary,input,select):focus-visible,.cal-agenda-return button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.dark .cal-agenda-horizon button[aria-pressed=true],.dark .cal-agenda-actions .cal-agenda-primary{background:var(--green);border-color:var(--green);color:var(--on-accent,#fff)}
@media(max-width:700px){.cal-agenda-heading{gap:15px;padding-block:5px 19px}.cal-agenda-heading .cal-eyebrow{font-size:11px}.cal-agenda-heading p{font-size:15px}.cal-agenda-emblem{width:55px;height:55px;border-radius:16px}.cal-agenda-emblem svg{width:31px;height:31px}.cal-agenda-anchor{flex-direction:column;padding:14px 16px;gap:12px}.cal-agenda-anchor>span{gap:4px 9px}.cal-agenda-anchor>span>strong{font-size:17px}.cal-agenda-settings{width:100%;max-width:none}.cal-agenda-settings>summary{margin:0;min-height:44px}.cal-agenda-settings>div{padding-top:12px}.cal-agenda-controls{align-items:stretch;gap:11px}.cal-agenda-horizon{width:100%}.cal-agenda-horizon button{flex:1}.cal-agenda-controls .cal-upcoming-tabs{width:100%}.cal-agenda-controls .cal-upcoming-tabs button{padding:7px 8px;font-size:13px}.cal-agenda-count{margin-bottom:20px!important}.cal-agenda-month h3{font-size:21px}.cal-agenda-month>header{align-items:flex-start;gap:8px}.cal-agenda-month>header .cal-text{font-size:13px;max-width:42%;text-align:start;line-height:1.7}.cal-agenda-date-head{padding:13px 14px;gap:10px;flex-wrap:wrap}.cal-agenda-date-number{font-size:28px;min-width:56px;min-height:57px;padding-inline-end:12px}.cal-agenda-date-head>div{flex:1}.cal-agenda-date-head strong{font-size:15px}.cal-agenda-date-head time{font-size:13px}.cal-agenda-relative{font-size:11px;padding:4px 9px}.cal-agenda-item{padding:17px 15px}.cal-agenda-item h4{font-size:18px}.cal-agenda-symbol{width:34px;min-height:36px}.cal-agenda-item-head{gap:9px}.cal-agenda-source-kind{font-size:12px}.cal-agenda-item .cal-agenda-summary{font-size:15px;line-height:1.9}.cal-agenda-actions button,.cal-agenda-actions a{font-size:13px;padding:9px 10px}.cal-agenda-actions .cal-agenda-source{margin-inline-start:0}.cal-agenda-regular h3,.cal-upcoming-trails h3{font-size:21px}.cal-agenda-regular-group>summary{padding:14px}.cal-agenda-regular-group .cal-agenda-item{padding:17px 15px}.cal-agenda-browse{align-items:flex-start;flex-direction:column;padding:18px}.cal-agenda-browse .cal-secondary{max-width:100%}.cal-upcoming-trail-grid{grid-template-columns:1fr}.cal-upcoming-trail{display:grid;grid-template-columns:auto 1fr;gap:5px 13px;min-height:0;padding:16px}.cal-trail-icon{grid-row:1/4;align-self:center}.cal-upcoming-trail>strong{font-size:17px}.cal-upcoming-trail>span:last-child{padding-top:2px}.cal-upcoming-trails .cal-section-heading{align-items:flex-start;flex-wrap:wrap;gap:6px}.cal-upcoming-trails .cal-text{font-size:13px}}
@media(max-width:390px){.cal-agenda-emblem{display:none}.cal-agenda-date-head{gap:9px}.cal-agenda-relative{margin-inline-start:66px}.cal-agenda-settings>div{grid-template-columns:1fr}.cal-agenda-item-head .cal-remind.is-compact{width:44px}.cal-agenda-controls .cal-upcoming-tabs button{font-size:12px;padding-inline:5px}.cal-agenda-actions .cal-agenda-read{flex-wrap:wrap;justify-content:flex-start}.cal-agenda-source-kind{font-size:11px}}

/* Keep a complete first occasion within reach, including when the app shell is present. */
.calendar-page.is-agenda .cal-toolbar{margin-block:0 8px;align-items:center}.calendar-page.is-agenda .cal-toolbar .cal-eyebrow{display:none}.calendar-page.is-agenda .cal-toolbar h1{font-size:28px;margin:0;line-height:1.5}.calendar-page.is-agenda .cal-view-switch{margin-block-end:10px}.calendar-page.is-agenda .cal-agenda-intro{font-size:14px;line-height:1.6;margin:0 0 10px;color:var(--muted)}
.cal-agenda-anchor{align-items:center;padding:10px 14px;gap:10px}.cal-agenda-anchor>span{flex:1;max-width:55%}.cal-agenda-anchor strong{font-size:16px}.cal-agenda-anchor .cal-agenda-horizon{flex:none}.cal-agenda-anchor .cal-agenda-horizon button{min-width:68px;padding:7px 10px;font-size:13px}.cal-agenda-settings{flex:none}.cal-agenda-settings[open]{flex-basis:100%;max-width:none}.cal-agenda-anchor:has(.cal-agenda-settings[open]){flex-wrap:wrap}.cal-agenda-anchor:has(.cal-agenda-settings[open])>span{max-width:none}.cal-agenda-settings>summary{font-size:13px}
.cal-agenda-controls{margin-block:12px 15px;gap:8px}.cal-agenda-controls .cal-upcoming-tabs button{font-size:13px;padding:6px 10px}.cal-agenda-count{margin:0!important;align-items:flex-end;flex-direction:column;gap:0;font-size:13px!important}.cal-agenda-count>span{font-size:12px}.cal-agenda-month>header{padding-block-end:5px;margin-block-end:10px}.cal-agenda-month>header .cal-text{min-height:44px}.cal-agenda-date-head{padding:10px 16px}.cal-agenda-date-number{font-size:28px;min-height:50px;min-width:58px}.cal-agenda-item{padding:16px 18px}.cal-agenda-item .cal-agenda-summary{margin:9px 0}.cal-agenda-item h4{line-height:1.5}.cal-agenda-item .cal-agenda-schedule{margin-bottom:10px}
@media(max-width:700px){.calendar-page.is-agenda .cal-toolbar{flex-wrap:nowrap;gap:10px}.calendar-page.is-agenda .cal-toolbar>div:first-child{width:auto;flex:1}.calendar-page.is-agenda .cal-toolbar-actions{flex:none;width:auto;max-width:none;flex-basis:auto;margin:0}.calendar-page.is-agenda .cal-toolbar h1{font-size:25px}.calendar-page.is-agenda .cal-toolbar-actions .cal-secondary{padding-inline:10px;font-size:13px}.cal-agenda-anchor{display:grid;grid-template-columns:1fr auto;gap:8px 10px;padding:11px 13px}.cal-agenda-anchor>span{max-width:none;grid-column:1/-1}.cal-agenda-anchor .cal-agenda-horizon{width:auto}.cal-agenda-anchor .cal-agenda-horizon button{min-width:0;padding:7px 9px;font-size:12px}.cal-agenda-settings{width:auto}.cal-agenda-settings>summary{font-size:12px}.cal-agenda-settings[open]{grid-column:1/-1;width:100%}.cal-agenda-controls{margin-block:10px 12px}.cal-agenda-controls .cal-upcoming-tabs{width:auto;flex:1}.cal-agenda-controls .cal-upcoming-tabs button{font-size:12px;padding:6px 7px}.cal-agenda-count{flex-basis:100%;flex-direction:row;align-items:baseline;justify-content:space-between;font-size:12px!important;gap:4px}.cal-agenda-count>span{font-size:11px}.cal-agenda-date-head{padding:10px 13px}.cal-agenda-item{padding:15px}.cal-agenda-item .cal-agenda-schedule{font-size:12px}}

/* Keep published citations distinct from the Mushaf's basmala-inclusive display. */
.cal-agenda-actions .cal-agenda-read{text-decoration:none}
.cal-agenda-read .cal-agenda-reading{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.cal-agenda-reading>span{text-decoration:underline;text-underline-offset:4px}
.cal-agenda-reference{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12px;font-weight:500;line-height:1.5;color:var(--muted)}
.cal-agenda-reference>span{white-space:nowrap}

/* v99: one reading purpose at a time; narrative accounts never become dated events. */
.cal-purpose-intro{max-width:62ch;font-size:15px;line-height:1.9;color:var(--muted);margin:8px 0 0}
.cal-purpose-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:23px 0 16px}
.cal-purpose-switch button{display:flex;align-items:center;gap:13px;min-width:0;min-height:90px;padding:17px 18px;text-align:start;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--green);font:inherit;cursor:pointer}
.cal-purpose-switch button>svg{flex:none}.cal-purpose-switch button>span{min-width:0}.cal-purpose-switch strong,.cal-purpose-switch small{display:block;line-height:1.6}.cal-purpose-switch strong{font-size:17px;font-weight:800}.cal-purpose-switch small{font-size:13px;color:var(--muted);margin-top:3px}
.cal-purpose-switch button[aria-pressed=true]{background:var(--dark);border-color:var(--dark);color:var(--on-accent,#fff);box-shadow:0 3px 0 color-mix(in srgb,var(--gold) 75%,transparent)}.cal-purpose-switch button[aria-pressed=true] small{color:inherit;opacity:.87}
.calendar-page .cal-time-switch{width:max-content;max-width:100%;margin-block:18px 26px;background:transparent;padding:0;border:0;gap:6px}.calendar-page .cal-time-switch button{padding:9px 17px;min-height:45px;font-size:14px;border:1px solid var(--line);border-radius:9px}.calendar-page .cal-time-switch button[aria-pressed=true]{background:var(--pale);border-color:var(--green);box-shadow:none;font-weight:800;text-decoration:underline;text-underline-offset:5px}
.cal-agenda-introduction h2{font-size:clamp(27px,4vw,35px);line-height:1.4;font-weight:800;margin:6px 0 8px}.cal-agenda-introduction .cal-agenda-intro{margin-block:0 24px;color:var(--muted)}
.cal-related-commemorations,.cal-optional-reflections{margin-block:28px;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:0 18px;min-width:0}
.cal-related-commemorations>summary,.cal-optional-reflections>summary{display:flex;align-items:center;gap:12px;min-height:64px;cursor:pointer;color:var(--green);font-size:16px;font-weight:750;list-style:none;padding-block:12px}
.cal-related-commemorations>summary>span{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;flex:1;min-width:0}.cal-related-commemorations>summary>span>svg{grid-row:1/3;align-self:center}.cal-related-commemorations>summary strong{font-size:17px}.cal-related-commemorations>summary small{font-size:13px;font-weight:400;color:var(--muted)}.cal-related-commemorations>summary>bdi{font-size:15px;color:var(--muted)}
.cal-related-commemorations>p{font-size:14px;line-height:1.9;max-width:76ch;color:var(--muted);margin:0 0 24px}.cal-related-commemorations .cal-agenda-date{box-shadow:none}.cal-related-commemorations .cal-agenda-item h4{font-size:18px}.cal-related-commemorations .cal-agenda-item .cal-agenda-summary{font-size:15px}.cal-optional-reflections .cal-upcoming-trails{margin-block:5px 24px}
.cal-layout[data-cal-view=events]{display:block}.cal-events{max-width:1120px;margin-inline:auto;min-width:0}.cal-events-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:22px 14px}.cal-events-heading>div{max-width:68ch;min-width:0}.cal-events-heading h2{font-size:clamp(30px,4vw,40px);font-weight:850;line-height:1.4;letter-spacing:-.03em;margin:7px 0 12px}.cal-events-heading p{font-size:17px;line-height:1.9;margin:0;color:var(--ink);text-wrap:pretty}.cal-events-heading>img{width:190px;height:143px;object-fit:cover;border-radius:35% 35% 16px 16px;flex:none;opacity:.92}
.cal-events-date-note{display:flex;align-items:flex-start;gap:10px;border-inline-start:3px solid var(--gold);background:color-mix(in srgb,var(--gold) 7%,var(--panel));padding:13px 16px;border-radius:9px;font-size:14px;line-height:1.85;color:var(--muted);margin:13px 0 24px}.cal-events-date-note svg{flex:none;color:var(--cal-reflection,var(--green));margin-top:4px}
.cal-events-filters{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:16px;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:14px}.cal-events-filters label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:15px;font-weight:750;line-height:1.7}.cal-events-filters input,.cal-events-filters select{min-height:50px;width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);padding:10px 12px;font:inherit;font-size:16px;line-height:1.6}.cal-events-filters input::placeholder{font-size:14px;color:var(--muted);opacity:1}
.cal-events-count{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px 22px;margin:22px 0 16px}.cal-events-count p{font-size:16px;color:var(--ink);margin:0}.cal-events-count strong{font-size:23px;font-weight:850;color:var(--green)}.cal-events-count>span{font-size:13px;color:var(--muted);line-height:1.8}.cal-events-loading{padding:28px;font-size:16px;line-height:1.8;color:var(--muted);text-align:center}
.cal-events-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}.cal-event-card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:17px;overflow:hidden;padding:22px}.cal-event-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:13px;line-height:1.7;color:var(--muted)}.cal-event-kicker>svg{color:var(--green);flex:none}.cal-event-kicker>bdi{margin-inline-start:auto;font-size:13px;color:var(--green);border:1px solid var(--line);border-radius:5px;padding:0 6px;direction:ltr}
.cal-event-card h3{font-size:23px;font-weight:800;line-height:1.6;text-wrap:pretty;margin:12px 0 9px;color:var(--ink)}.cal-event-card>p{font-size:16px;line-height:1.95;color:var(--ink);margin:0 0 20px;text-wrap:pretty}.cal-event-focus{padding-block-start:13px;border-block-start:1px solid var(--line)}.cal-event-focus>span{display:block;font-size:13px;font-weight:700;color:var(--muted);margin-bottom:8px}.cal-event-focus .cal-surah{padding:12px;gap:9px;min-height:62px}.cal-event-focus .cal-surah>strong{font-size:15px;font-weight:800;color:var(--green)}.cal-event-focus .cal-surah>span{font-size:15px;line-height:1.6;color:var(--ink);font-family:inherit}.cal-event-focus .cal-surah>span[lang=ar]{font-family:var(--arabic);font-size:23px;color:var(--green)}.cal-event-focus .cal-surah .cal-verse-ref{margin-inline-start:auto;font-size:11px}.cal-event-focus .cal-surah>b{margin-inline-start:0}
.cal-event-study{display:flex;align-items:center;gap:9px;min-height:49px;color:var(--green);font-size:15px;font-weight:750;line-height:1.7;text-decoration:underline;text-underline-offset:4px;margin-top:9px}.cal-event-study>svg{flex:none}.cal-event-study>svg:last-child{margin-inline-start:auto}.cal-event-evidence{border-block-start:1px solid var(--line);margin-top:9px}.cal-event-evidence>summary{display:flex;align-items:center;gap:9px;min-height:48px;cursor:pointer;font-size:14px;font-weight:650;line-height:1.7;color:var(--green)}.cal-event-evidence>summary>bdi{margin-inline-start:auto}.cal-event-evidence p{font-size:13px;color:var(--muted);line-height:1.9;margin:8px 0}.cal-event-evidence a{display:flex;align-items:center;gap:6px;min-height:44px;font-size:14px;font-weight:650;line-height:1.7;color:var(--green);text-decoration:underline;text-underline-offset:4px}.cal-event-evidence a>bdi{direction:ltr}
.cal-events-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin-block:30px}.cal-events-pagination>button{display:flex;align-items:center;gap:8px;font-size:15px}.cal-events-pagination>button:disabled{opacity:.4;cursor:default}.cal-events-pagination>span{font-size:14px;line-height:1.7;color:var(--muted)}.cal-events-scope{border-block-start:1px solid var(--line);padding-block:8px;margin-top:24px}.cal-events-scope>summary{min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:700;color:var(--green);cursor:pointer;text-decoration:underline;text-underline-offset:4px}.cal-events-scope p{font-size:14px;line-height:1.9;color:var(--muted);max-width:83ch}
.cal-learning-annotation{position:relative;margin:20px 0;padding:18px 20px;background:color-mix(in srgb,var(--gold) 9%,var(--panel));border-inline-start:4px solid var(--gold);border-radius:3px 13px 13px 3px}.cal-learning-annotation>span{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800;color:var(--cal-reflection,var(--green))}.cal-learning-annotation blockquote{margin:12px 0;font:clamp(23px,3vw,29px)/2.1 var(--arabic);color:var(--ink);border:0;padding:0}.cal-learning-annotation mark{color:inherit;background:linear-gradient(transparent 68%,color-mix(in srgb,var(--gold) 28%,transparent) 68%,color-mix(in srgb,var(--gold) 28%,transparent) 93%,transparent 93%);box-decoration-break:clone;-webkit-box-decoration-break:clone;padding-inline:2px}.cal-learning-annotation p{font-size:16px;line-height:1.95;color:var(--ink);margin:9px 0}.cal-learning-annotation small{font-size:12px;color:var(--muted)}
.calendar-page .cal-purpose-switch button:focus-visible,.cal-events button:focus-visible,.cal-events a:focus-visible,.cal-events summary:focus-visible,.cal-events input:focus-visible,.cal-events select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:900px){.cal-purpose-switch button{padding:14px 12px;gap:9px}.cal-purpose-switch strong{font-size:16px}.cal-purpose-switch small{font-size:12px}.cal-event-card{padding:18px}.cal-event-card h3{font-size:21px}.cal-event-focus .cal-surah{flex-wrap:wrap}.cal-event-focus .cal-surah .cal-verse-ref{min-width:82px}}
@media(max-width:700px){.cal-purpose-switch{gap:7px;margin-top:18px}.cal-purpose-switch button{flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;min-height:97px;padding:12px 7px;gap:7px}.cal-purpose-switch strong{font-size:14px;line-height:1.6}.cal-purpose-switch small{display:none}.cal-purpose-switch button>svg{width:21px;height:21px}.calendar-page .cal-time-switch{width:100%;margin-block:17px 22px;gap:5px}.calendar-page .cal-time-switch button{flex:1;min-width:0;font-size:14px;padding:9px 10px}.cal-purpose-intro{font-size:14px}.cal-events-heading{padding-block:14px 9px;gap:13px}.cal-events-heading>img{display:none}.cal-events-heading h2{font-size:30px}.cal-events-heading p{font-size:16px}.cal-events-filters{grid-template-columns:1fr;padding:16px;gap:14px}.cal-events-grid{grid-template-columns:1fr;gap:14px}.cal-event-card{padding:19px}.cal-event-card h3{font-size:23px}.cal-event-card>p{font-size:16px;line-height:1.95}.cal-events-count{margin-block:19px 14px}.cal-events-count>span{font-size:12px}.cal-events-date-note{font-size:13px;padding:11px 13px}.cal-events-pagination{gap:12px;justify-content:space-between}.cal-events-pagination>button{font-size:14px;padding:9px 12px}.cal-related-commemorations,.cal-optional-reflections{padding-inline:13px}.cal-learning-annotation{padding:16px}.cal-learning-annotation p{font-size:15px}.cal-event-focus .cal-surah .cal-verse-ref{font-size:12px}.cal-related-commemorations .cal-agenda-item{padding-inline:14px}}
/* v111: one calm, source-linked occasion on Today, with an explicit evening preview. */
.cal-today{margin:24px 0;padding:20px 22px;border:1px solid var(--line);border-inline-start:3px solid var(--gold,#aa8644);border-radius:16px;background:var(--panel);color:var(--ink);min-width:0;box-sizing:border-box}.cal-today *{box-sizing:border-box}.cal-today a{color:var(--green);text-decoration:none}.cal-today a:hover{text-decoration:underline;text-underline-offset:3px}.cal-today :focus-visible,.cal-ramadan-path :focus-visible{outline:3px solid var(--gold,#aa8644);outline-offset:3px}.cal-today-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.cal-today-head>a{display:inline-flex;align-items:center;gap:5px;font-size:12px;min-height:36px;line-height:1.5}.cal-today .cal-eyebrow{font-size:10px;letter-spacing:1px}.cal-today h2{margin:0 0 8px;font:700 clamp(20px,2.4vw,25px)/1.4 Georgia,serif;letter-spacing:-.3px;color:var(--ink)}.cal-today-main p{font-size:14px;line-height:1.8;margin:0 0 14px;color:var(--muted);max-width:76ch}.cal-today .cal-today-when{color:var(--green);font-size:12px;font-weight:650}.cal-today-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px 18px}.cal-today-actions>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:12px;font-weight:650;line-height:1.55}.cal-today-primary,.cal-ramadan-path .cal-today-primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 14px;border:1px solid var(--green);border-radius:10px;background:var(--green);color:var(--panel);font-size:12px;font-weight:700;line-height:1.6;text-decoration:none;max-width:100%;text-align:start}.cal-today a.cal-today-primary{color:var(--panel)}.cal-today-source{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;margin-top:10px}.cal-today-source>p{flex-basis:100%;font-size:11px;line-height:1.7;margin:0 0 4px;max-width:90ch}.cal-today-source>a{display:inline-flex;align-items:center;gap:5px;min-height:32px;font-size:11px;line-height:1.6}.cal-today-source>small{color:var(--muted);font-size:10px;line-height:1.5}.cal-today-tonight{display:flex;gap:12px;border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.cal-today-tonight>span{color:var(--gold);padding-top:5px}.cal-today-tonight>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}.cal-today-tonight small{color:var(--gold);font-size:10px;font-weight:750;letter-spacing:.5px;line-height:1.6}.cal-today-tonight strong{font-size:15px;line-height:1.5}.cal-today-tonight>div>span{font-size:12px;color:var(--muted);line-height:1.6}.cal-today-tonight a{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:12px;line-height:1.5}.cal-today-ramadan{background:var(--pale);border:1px solid var(--line);border-radius:12px;padding:13px 15px;margin-top:16px}.cal-today-ramadan>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:6px 16px;flex-wrap:wrap}.cal-today-ramadan strong{font-size:14px;line-height:1.6}.cal-today-ramadan a{display:inline-flex;align-items:center;gap:5px;min-height:38px;font-size:12px;line-height:1.5}.cal-today-ramadan p{color:var(--muted);font-size:12px;line-height:1.7;margin:5px 0}.cal-today-ramadan nav{display:flex;flex-wrap:wrap;gap:3px 20px}.cal-today-plan{display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px;border-top:1px solid var(--line);margin-top:7px;padding-top:6px;font-size:11px;color:var(--muted)}.cal-today-plan a{font-weight:700}.cal-today-plan small{font-size:10px}.cal-today-foot{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;border-top:1px solid var(--line);margin-top:16px;padding-top:7px;color:var(--muted)}.cal-today-foot>span{font-size:10px;line-height:1.65}.cal-today-foot button{border:0;background:none;font:inherit;font-size:12px;font-weight:650;line-height:1.6;color:var(--green);min-height:44px;padding:8px 0;cursor:pointer;text-align:start}.cal-today-foot>small{flex-basis:100%;font-size:10px;line-height:1.6;margin-top:-3px}.cal-today-quiet{display:flex;align-items:center;gap:14px;padding-block:14px}.cal-today-symbol{color:var(--gold);flex:none}.cal-today-quiet>div{display:flex;flex-direction:column;gap:4px;min-width:0}.cal-today-quiet strong{font-size:14px;line-height:1.5}.cal-today-quiet>div>span{font-size:12px;color:var(--muted);line-height:1.6}.cal-today-quiet nav{display:flex;flex-wrap:wrap;gap:3px 16px;margin-inline-start:auto}.cal-today-quiet nav>a{display:flex;align-items:center;min-height:44px;font-size:12px;font-weight:650}.cal-today-small{display:flex;gap:15px;align-items:start;padding:17px 20px}.cal-today-small>span{padding-top:6px}.cal-today-small h2{font-size:21px;margin:5px 0}.cal-today-small p{font-size:13px;line-height:1.7;margin:0 0 12px;color:var(--muted)}.cal-home-links,.cal-occasion-study-links{display:flex;flex-wrap:wrap;gap:7px 20px}.cal-home-links>a,.cal-occasion-study-links>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--green);font-size:12px;font-weight:650;line-height:1.7;text-decoration:none}.cal-occasion-study-links:empty{display:none}.cal-recommendation[id]{scroll-margin-top:110px}.cal-event-evidence h4{display:flex;gap:7px;align-items:center;margin:0;font-size:12px;line-height:1.6;color:var(--green)}
.cal-ramadan-path{border:1px solid var(--line);border-inline-start:3px solid var(--gold);border-radius:16px;background:var(--panel);padding:20px;margin:18px 0 26px}.cal-ramadan-heading{display:flex;align-items:center;gap:14px}.cal-ramadan-heading>span{color:var(--gold);flex:none}.cal-ramadan-path .cal-ramadan-heading h3{margin:5px 0 0;font-size:23px}.cal-ramadan-path>p,.cal-ramadan-qadr>p{font-size:13px;line-height:1.8;color:var(--muted);margin:12px 0 16px;max-width:78ch}.cal-ramadan-qadr{margin-top:21px;padding-top:17px;border-top:1px solid var(--line)}.cal-ramadan-qadr h4{margin:0;font-size:16px;line-height:1.6}.cal-ramadan-qadr>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cal-ramadan-qadr>div>a{display:flex;flex-direction:column;gap:7px;background:var(--pale);border:1px solid var(--line);border-radius:11px;padding:13px;color:var(--green);text-decoration:none;min-height:88px}.cal-ramadan-qadr>div>a:hover{border-color:var(--gold)}.cal-ramadan-qadr strong{font-size:16px;line-height:1.4}.cal-ramadan-qadr span{font-size:11px;line-height:1.65}.cal-ramadan-qadr .cal-ramadan-source{margin-bottom:0;font-size:11px}.cal-ramadan-source a{display:inline-flex;align-items:center;gap:5px;color:var(--green);min-height:32px}.cal-ramadan-source>span{display:block}.cal-recitation{margin:17px 0;padding:18px;background:var(--pale);border:1px solid var(--line);border-radius:12px}.cal-recitation blockquote{margin:0 0 14px;font:26px/1.9 var(--arabic);color:var(--ink);text-align:right}.cal-recitation-transliteration{font-size:15px!important;line-height:1.9!important;color:var(--green)!important}.cal-recitation-transliteration>span{display:block;font-size:10px;letter-spacing:.5px;font-weight:750;color:var(--muted);margin-bottom:3px}.cal-recitation-meaning{font-size:13px!important;line-height:1.8!important;margin-bottom:0!important}.dark .cal-today-primary,.dark .cal-ramadan-path .cal-today-primary{background:#c5ad72;color:#173b29;border-color:#c5ad72}.dark .cal-today a.cal-today-primary{color:#173b29}[dir=rtl] .cal-today h2{font-family:var(--arabic);letter-spacing:0}[dir=rtl] .cal-today .cal-eyebrow,[dir=rtl] .cal-today-tonight small{letter-spacing:0}[dir=rtl] .cal-today-small h2{font-size:24px}
@media(max-width:700px){.cal-today{padding:16px;margin:18px 0;border-radius:14px}.cal-today-head{align-items:flex-start;flex-wrap:wrap;gap:3px}.cal-today-head>a{font-size:11px;min-height:30px}.cal-today h2{font-size:21px;line-height:1.45}.cal-today-main p{font-size:13px}.cal-today-source>p{font-size:11px}.cal-today-actions{gap:2px 14px}.cal-today-actions>a{font-size:12px}.cal-today-ramadan{padding:11px 12px}.cal-today-quiet{gap:10px;flex-wrap:wrap}.cal-today-quiet nav{width:100%;margin-inline-start:34px}.cal-today-small{gap:10px}.cal-today-small h2{font-size:20px}.cal-today-small .cal-eyebrow{font-size:9px}.cal-ramadan-path{padding:16px}.cal-ramadan-path .cal-ramadan-heading h3{font-size:21px}.cal-ramadan-qadr>div{grid-template-columns:1fr}.cal-ramadan-qadr>div>a{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:64px}.cal-ramadan-qadr>div>a>span{max-width:65%;text-align:end}.cal-recitation{padding:15px}.cal-recitation blockquote{font-size:25px}}

/* v112 · One devotional day, with flat reading groups and one library entry. */
.cal-year-convention{color:var(--muted);font-size:11px;line-height:1.6;margin:0}
.calendar-page>.cal-year-convention{margin:-4px 0 16px}
.cal-today-head{align-items:flex-start}
.cal-today-date{display:flex;flex-direction:column;align-items:flex-end;gap:0;min-width:0;text-align:end}
.cal-today-date>a{display:inline-flex;align-items:center;gap:5px;font-size:12px;min-height:36px;line-height:1.6}
.cal-today-date .cal-year-convention{font-size:10px}
.cal-today-group{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;min-width:0}
.cal-today-group>header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-bottom:4px}
.cal-today-group h3{margin:0;font-size:13px;line-height:1.6;color:var(--ink)}
.cal-today-group.is-preview h3{color:var(--green)}
.cal-today-group>header>span{font-size:11px;line-height:1.6;color:var(--muted)}
.cal-today-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;padding:0;margin:0;list-style:none}
.cal-today-readings>li{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-width:0;padding:10px 0 4px;border-bottom:1px solid var(--line)}
.cal-today-readings h4{margin:0;font-size:14px;font-weight:650;line-height:1.65;color:var(--ink)}
.cal-today-readings p{margin:4px 0;font-size:11px;line-height:1.75;color:var(--muted)}
.cal-today-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0 16px;max-width:100%}
.cal-today-row-actions>a{display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:12px;font-weight:600;line-height:1.6}
.cal-today-ramadan{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0 0;margin-top:16px}
.cal-today-ramadan .cal-today-plan{border-top:0;margin-top:0;padding-top:0}
.cal-today-library{display:flex;align-items:center;flex-wrap:wrap;gap:0 20px;border-top:1px solid var(--line);padding-top:4px;margin-top:12px}
.cal-today-library>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;font-weight:650;line-height:1.6}
.cal-today-foot{margin-top:2px;padding-top:7px}
.cal-today-foot [data-cal-home-status]:empty{display:none}
.cal-today-quiet .cal-today-library{border:0;margin-block:0;padding:0;margin-inline-start:auto}
.cal-today-quiet>div>.cal-year-convention{font-size:10px}
@media(max-width:700px){
 .cal-today-date{align-items:flex-start;text-align:start}
 .cal-today-date>a{font-size:12px}
 .cal-today-readings{grid-template-columns:minmax(0,1fr)}
 .cal-today-readings>li{padding-block:9px 2px}
 .cal-today-group{margin-top:14px;padding-top:11px}
 .cal-today-ramadan{padding:11px 0 0}
 .cal-today-quiet .cal-today-library{width:100%;margin-inline-start:34px}
}

/* v129 · Date stays in view; the day's practice opens only when requested. */
.cal-day-strip{margin:0 0 16px;border:1px solid var(--line);border-radius:17px;background:var(--panel);overflow:hidden;color:var(--ink)}
.cal-day-strip>summary{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:74px;list-style:none;cursor:pointer}
.cal-day-strip>summary::-webkit-details-marker{display:none}
.cal-day-strip>summary:focus-visible{outline:3px solid var(--green);outline-offset:-4px}
.cal-day-emblem{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:13px;color:#966421;background:#fff1d7}
.cal-day-emblem svg{stroke-width:2}
.cal-day-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.cal-day-copy>strong{font-size:.9375rem;font-weight:750;line-height:1.5}
.cal-day-copy>span{font-size:.8125rem;color:var(--muted);line-height:1.5}
.cal-day-strip.has-occasion .cal-day-copy>span{color:var(--green);font-weight:650}
.cal-day-expand{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--pale);color:var(--green)}
.cal-day-expand svg{transition:transform .15s ease;stroke-width:2.2}
.cal-day-strip[open] .cal-day-expand svg{transform:rotate(45deg)}
.cal-day-body{padding:0 18px 14px;border-top:1px solid var(--line)}
.cal-day-civil{font-size:.8125rem;font-weight:600;color:var(--muted);margin:12px 0}
.cal-day-no-occasion{font-size:.9375rem;line-height:1.7;margin:8px 0 12px}
.cal-day-daily{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.cal-day-daily>a{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;padding:11px;color:var(--green);font-size:.875rem;font-weight:650;text-decoration:none;min-height:52px;background:var(--light)}
.cal-day-daily>a>span{flex:1;min-width:0}
.cal-day-daily svg{flex:none}
.cal-day-strip .cal-today-group:first-of-type{border-top:0;margin-top:0}
.cal-day-strip .cal-today-foot{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:.75rem;line-height:1.6;color:var(--muted)}
.cal-day-strip .cal-today-foot button{min-height:40px;color:var(--green);background:none;border:0;text-decoration:underline;text-underline-offset:3px;font-size:.8125rem;padding:3px 0}
.cal-day-strip .cal-today-foot small{font-size:.75rem}
.dark .cal-day-emblem{background:#493c25;color:#f1cb87}
@media(max-width:560px){.cal-day-strip{margin-bottom:12px;border-radius:15px}.cal-day-strip>summary{gap:9px;padding:10px 12px;min-height:70px}.cal-day-emblem{width:36px;height:36px;border-radius:11px}.cal-day-copy>strong{font-size:.875rem}.cal-day-copy>span{font-size:.75rem}.cal-day-expand{width:32px;height:32px}.cal-day-body{padding-inline:13px}.cal-day-daily{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.cal-day-expand svg{transition:none}}
.cal-day-strip a{color:var(--green);text-underline-offset:3px}
.cal-day-strip .cal-today-row-actions>a{font-weight:650}

.cal-event-detail{margin-block-start:.35rem;border-block-start:1px solid var(--line,#c6d2cb)}
.cal-event-detail>summary{min-height:44px;align-content:center;cursor:pointer;color:var(--ink,#213d32);font-weight:650}
.cal-event-detail[open]>.cal-event-study{margin-block:.5rem;display:inline-flex;min-height:44px;align-items:center}
.calendar-page .cal-toolbar.cal-reader-toolbar{flex-wrap:wrap;align-items:center;gap:.4rem .75rem}
.calendar-page .cal-reader-toolbar .cal-heading-mark{display:flex;align-items:center;gap:.8rem;min-width:0;flex:1;width:auto}
.cal-heading-mark img{inline-size:clamp(3rem,14vw,4rem);block-size:auto;aspect-ratio:1;object-fit:contain;flex:none;border-radius:12px}
.calendar-page .cal-reader-toolbar .cal-toolbar-actions{min-width:0;flex:0 1 auto;width:auto;flex-wrap:wrap}
.calendar-page [data-cal-reader-sections]{gap:.25rem;margin:.45rem 0 .65rem;border-bottom:1px solid var(--line)}
.calendar-page [data-cal-reader-sections] button{justify-content:center;flex-direction:row;align-items:center;gap:.4rem;min-height:48px;padding:.35rem .3rem;border:0;box-shadow:none;background:none;color:var(--ink);border-radius:0;border-bottom:3px solid transparent}
.calendar-page [data-cal-reader-sections] button[aria-pressed=true]{color:var(--green);border-bottom-color:currentColor}
.calendar-page [data-cal-reader-sections] small{display:none}
.calendar-page [data-cal-reader-sections] strong{font-size:1rem}
@media(max-width:370px){.calendar-page [data-cal-reader-sections] button svg{width:17px;height:17px}}

.cal-events-loading{min-block-size:12rem}


/* /calendar-reminders.css */
.cal-reminder-dialog{box-sizing:border-box;width:min(550px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line,#dce2d5);border-radius:22px;padding:24px;background:var(--panel,#fffdf7);color:var(--ink,#243a31);font-family:inherit;box-shadow:0 25px 90px #10271e35}.cal-reminder-dialog::backdrop{background:#142b2599;backdrop-filter:blur(4px)}.cal-reminder-head{display:flex;align-items:flex-start;gap:18px;justify-content:space-between}.cal-reminder-head h2{font-size:22px;line-height:1.4;margin:6px 0 0}.cal-reminder-head>button{flex:none;width:44px;height:44px;background:var(--pale,#eff3eb);color:var(--ink);border:1px solid var(--line);border-radius:50%;font-size:25px;cursor:pointer}.cal-reminder-intro{font-size:15px;line-height:1.7;color:var(--green);margin:18px 0}.cal-reminder-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px}.cal-reminder-fields label{display:flex;flex-direction:column;gap:7px;font-family:inherit;font-weight:600;font-size:12px;line-height:1.5;min-width:0}.cal-reminder-fields select,.cal-reminder-fields input{box-sizing:border-box;min-width:0;width:100%;min-height:46px;padding:9px;background:var(--bg,#f6f5ef);color:var(--ink);border:1px solid var(--line);border-radius:10px;font-family:inherit;font-size:16px;line-height:1.4}.cal-reminder-preview{border-inline-start:3px solid var(--gold,#ad9057);background:var(--pale,#edf3e8);border-radius:0 12px 12px 0;padding:14px;margin:20px 0 12px;font-size:13px;line-height:1.7}.cal-reminder-preview strong,.cal-reminder-preview span{display:block}.cal-reminder-preview span{color:var(--muted);font-size:12px}.cal-reminder-preview details{margin-top:8px}.cal-reminder-preview summary{cursor:pointer;min-height:36px;display:flex;align-items:center}.cal-reminder-preview ul{max-height:170px;overflow:auto;padding-inline-start:22px}.cal-reminder-note{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0}.cal-reminder-export{width:100%;justify-content:center;min-height:48px;margin-top:18px;font-family:inherit;font-weight:700;font-size:13px;line-height:1.5}.cal-reminder-export:disabled{opacity:.5;cursor:not-allowed}.cal-reminder-feedback{font-size:13px;line-height:1.8;color:var(--green);margin-bottom:0}.cal-reminders-button{border:1px solid var(--line);background:var(--panel);color:var(--green);border-radius:10px;min-height:44px;padding:9px 12px;font-family:inherit;font-weight:600;font-size:12px;line-height:1.5;cursor:pointer}.cal-reminders-button>span{display:inline-grid;place-items:center;background:var(--pale);min-width:20px;border-radius:50%;margin-inline-start:4px}.cal-saved-plans{display:grid;gap:12px;margin-top:18px}.cal-saved-plans article{padding:16px;border:1px solid var(--line);border-radius:13px}.cal-saved-plans h3{font-size:15px;margin:0 0 8px}.cal-saved-plans p{font-size:12px;line-height:1.7;color:var(--muted)}.cal-saved-plans article>div{display:flex;flex-wrap:wrap;gap:8px}.cal-reminder-dialog :focus-visible{outline:3px solid var(--gold,#ad9057);outline-offset:3px}.cal-reminder-dialog[dir=rtl] .cal-reminder-preview{border-radius:12px 0 0 12px}@media(max-width:480px){.cal-reminder-dialog{padding:19px}.cal-reminder-head h2{font-size:20px}.cal-reminder-fields{grid-template-columns:1fr}.cal-reminder-intro{font-size:14px}.cal-reminder-fields label{gap:5px}}

.cal-reminder-dialog[dir=rtl] .cal-reminder-note,.cal-reminder-dialog[dir=rtl] .cal-reminder-feedback,.cal-reminder-dialog[dir=rtl] .cal-reminder-preview{font-size:14px}.cal-reminder-dialog[dir=rtl] .cal-reminder-fields label,.cal-reminder-dialog[dir=rtl] .cal-reminder-export{font-size:15px}.cal-reminder-dialog[dir=rtl] .cal-reminder-intro{font-size:17px}

/* v96: explicit opt-in, readable reminder choices, and a compact return prompt. */
.cal-reminder-dialog{width:min(620px,calc(100% - 24px));padding:24px}.cal-reminder-dialog p,.cal-reminder-intro{font-size:16px;line-height:1.8}.cal-reminder-dialog h3{font-size:19px;line-height:1.6;margin:0 0 8px}.cal-reminder-dialog .cal-reminder-note,.cal-reminder-dialog .cal-reminder-feedback,.cal-reminder-dialog .cal-reminder-fields label,.cal-reminder-dialog .cal-reminder-preview,.cal-reminder-dialog .cal-reminder-preview span,.cal-reminder-dialog .cal-reminder-export{font-size:14px;line-height:1.75}.cal-reminder-dialog .cal-primary,.cal-reminder-dialog .cal-secondary,.cal-reminder-dialog .cal-text{min-height:46px;font-family:inherit;font-size:15px;line-height:1.6;cursor:pointer}.cal-reminder-dialog .cal-primary,.cal-reminder-dialog .cal-secondary{display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:10px;padding:10px 15px}.cal-reminder-dialog .cal-primary{border:1px solid var(--green);background:var(--green);color:var(--on-accent,#fff)}.cal-reminder-dialog .cal-secondary{border:1px solid var(--line);background:var(--pale);color:var(--green)}.cal-reminder-dialog .cal-text{background:none;border:0;color:var(--green);padding:10px 6px;text-decoration:underline;text-underline-offset:4px}.cal-reminder-choice{padding:18px;border:1px solid var(--green);border-radius:14px;background:var(--pale);margin-block:15px 22px}.cal-reminder-choice p{margin-block:8px 14px}.cal-reminder-choice .cal-primary{width:100%}.cal-reminder-secondary-choice{padding-block-start:20px;margin-block-start:24px;border-block-start:1px solid var(--line)}.cal-reminder-secondary-choice p{color:var(--muted);margin:8px 0 14px}.cal-reminder-settings-link{margin-top:14px}.cal-reminder-opt{display:flex;align-items:flex-start;gap:13px;padding:17px 15px;margin:20px 0;background:var(--pale);border:1px solid var(--line);border-radius:13px;cursor:pointer}.cal-reminder-opt input,.cal-reminder-topics input,.cal-inapp-specific input,.cal-reminder-phase input{accent-color:var(--green);width:22px;height:22px;flex:none;margin:3px 0 0}.cal-reminder-opt span{display:flex;flex-direction:column;gap:7px}.cal-reminder-opt strong{font-size:17px;line-height:1.6}.cal-reminder-opt small{font-size:14px;line-height:1.75;color:var(--muted)}.cal-reminder-topics,.cal-reminder-phase{border:1px solid var(--line);border-radius:13px;padding:12px 16px;margin-block:20px}.cal-reminder-topics legend,.cal-reminder-phase legend{font-size:16px;font-weight:700;padding-inline:6px;line-height:1.7}.cal-reminder-topics label,.cal-inapp-specific label,.cal-reminder-phase label{display:flex;align-items:center;gap:12px;min-height:48px;font-size:15px;line-height:1.7;cursor:pointer}.cal-reminder-phase p{font-size:14px;line-height:1.75;color:var(--muted);margin:5px 0 11px}.cal-inapp-specific{margin-block:20px}.cal-inapp-due{display:grid;gap:13px}.cal-inapp-due article{border:1px solid var(--line);border-radius:14px;background:var(--bg);padding:17px}.cal-inapp-due h3{font-size:19px;margin:10px 0}.cal-inapp-due p{margin:8px 0 15px}.cal-inapp-due article>small{display:block;font-size:13px;line-height:1.7;color:var(--muted);margin-top:10px}.cal-inapp-due a{overflow-wrap:anywhere}.cal-inapp-verse-links{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:12px}.cal-inapp-verse-links a{display:flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;line-height:1.5;color:var(--green);text-decoration:underline;text-underline-offset:4px}.cal-inapp-actions{display:flex;flex-wrap:wrap;gap:9px;margin-block-start:20px}.cal-reminder-dialog[dir=rtl] .cal-reminder-intro,.cal-reminder-dialog[dir=rtl] p{font-size:17px}.cal-reminder-dialog[dir=rtl] .cal-reminder-note,.cal-reminder-dialog[dir=rtl] .cal-reminder-feedback{font-size:15px}.dark .cal-reminder-dialog .cal-primary{background:var(--gold);border-color:var(--gold);color:var(--bg)}@media(max-width:480px){.cal-reminder-dialog{padding:19px;max-height:calc(100dvh - 20px)}.cal-reminder-choice,.cal-inapp-due article{padding:15px}.cal-inapp-actions .cal-secondary{flex:1}.cal-inapp-actions .cal-text{width:100%}.cal-reminder-opt{padding:14px}.cal-reminder-secondary-choice .cal-secondary{width:100%}}

.cal-saved-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.cal-saved-plan-heading h3{margin:0;overflow-wrap:anywhere}
.cal-plan-remove{min-width:44px;min-height:44px;flex:none;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:.65rem;background:transparent;color:var(--muted);font:400 1.35rem/1 system-ui,sans-serif;cursor:pointer}
.cal-plan-remove:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(hover:hover){.cal-plan-remove:hover{background:var(--pale);color:var(--ink)}}
.cal-saved-plans article>.cal-plan-question{display:block;margin-top:.8rem;padding:.75rem;border:1px solid var(--line);border-radius:.65rem;color:var(--ink);background:var(--pale);line-height:1.5}
.cal-saved-plans article>.cal-plan-question[hidden]{display:none}.cal-plan-question-actions{display:flex;flex-wrap:wrap;gap:.5rem}.cal-plan-question-actions button{min-width:44px;min-height:44px}


/* /duas.css */
.dua-library{max-width:1040px;margin-inline:auto}.dua-heading{margin-bottom:24px}.dua-heading h1{font:800 clamp(28px,4vw,38px)/1.2 Manrope,sans-serif;letter-spacing:-1.2px;margin:8px 0 12px}.dua-heading p,.dua-footnote{color:var(--muted);line-height:1.7}.dua-today{width:100%;display:flex;align-items:center;gap:18px;text-align:start;padding:22px 24px;border:1px solid color-mix(in srgb,var(--green) 20%,var(--line));border-radius:20px;background:linear-gradient(125deg,var(--pale),var(--panel));margin-bottom:28px;color:var(--ink)}.dua-today>span:nth-child(2){flex:1;min-width:0}.dua-today small{color:var(--green);font-size:10px;font-weight:800;letter-spacing:1.5px;display:block;margin-bottom:8px}.dua-today strong{display:block;font-size:19px;margin-bottom:5px}.dua-today span span{font-size:12px;color:var(--muted);line-height:1.6;display:block}.dua-today-mark{font-family:var(--arabic);font-size:52px;color:var(--green);line-height:1}.dua-arrow{font-size:24px;color:var(--green)}.dua-search-label{font-size:12px;font-weight:700;display:block;margin-bottom:10px}.dua-search-wrap{display:flex;gap:12px;align-items:center;border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:0 14px}.dua-search-wrap svg{width:20px;height:20px;stroke:var(--muted);fill:none;stroke-width:1.7;flex:none}.dua-search-wrap input{min-width:0;width:100%;height:50px;background:none;border:0;color:var(--ink);outline-offset:0}.dua-search-wrap:focus-within{outline:2px solid var(--green);outline-offset:2px}.dua-search-wrap input:focus-visible{outline:none}.dua-filters{display:flex;gap:7px;overflow-x:auto;padding:14px 2px 7px;scrollbar-width:thin}.dua-filters button{flex:none;min-height:44px;border-radius:22px;padding:8px 15px;background:var(--panel);border:1px solid var(--line);font-size:12px;color:var(--muted);font-weight:600}.dua-filters button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.dua-status{color:var(--muted);font-size:12px;min-height:18px;margin:10px 2px 14px}.dua-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dua-card{position:relative;border:1px solid var(--line);border-radius:17px;background:var(--panel);transition:box-shadow .2s,border-color .2s;overflow:hidden}.dua-card:focus-within,.dua-card:hover{border-color:color-mix(in srgb,var(--green) 45%,var(--line));box-shadow:var(--shadow)}.dua-card-open{display:flex;width:100%;height:100%;min-height:180px;flex-direction:column;align-items:flex-start;text-align:start;padding:21px;background:none;border:0}.dua-card-category{color:var(--green);font-weight:700;font-size:10px;letter-spacing:.6px;margin-bottom:15px;padding-inline-end:38px}.dua-card-arabic{font-family:var(--arabic);font-size:27px;line-height:1.7;align-self:stretch;text-align:start;margin-bottom:2px}.dua-card-open strong{font-size:15px;line-height:1.5;margin-top:4px}.dua-card-occasion{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin:6px 0 16px}.dua-card-link{margin-top:auto;color:var(--green);font-size:12px;font-weight:700;display:flex;gap:8px}.dua-save{position:absolute;top:10px;inset-inline-end:10px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center}.dua-save svg,.dua-reader-save svg{width:20px;height:20px;flex:none}.dua-save.is-saved{color:var(--green)}.dua-save:hover{background:var(--pale)}.dua-footnote{font-size:11px;margin-top:23px;max-width:760px}.dua-empty{grid-column:1/-1;padding:32px 20px;background:var(--panel);border:1px solid var(--line);border-radius:17px;text-align:center;line-height:1.7;color:var(--muted)}.dua-empty strong{color:var(--ink);font-size:17px}.dua-empty button,.dua-reader-loading>button:not(.dua-close){min-height:44px;padding:10px 18px;border:1px solid var(--green);border-radius:10px;color:var(--green);background:var(--pale);font-weight:700}.dua-is-open{overflow:hidden}.dua-dialog{color:var(--ink);background:var(--panel);padding:0;border:1px solid var(--line);border-radius:24px;width:min(760px,calc(100vw - 32px));max-width:760px;height:min(880px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:hidden;box-shadow:0 28px 100px #061d3260}.dua-dialog[open]{display:flex;flex-direction:column}.dua-dialog::backdrop{background:#071c2bb0;backdrop-filter:blur(5px)}.dua-reader-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 24px 18px;border-bottom:1px solid var(--line);flex:none}.dua-reader-head>div{min-width:0}.dua-reader-head span{color:var(--green);font-size:11px;line-height:1.5}.dua-reader-head h2{font-size:21px;font-weight:750;line-height:1.35;margin:7px 0 0}.dua-close{min-height:44px;padding:.4rem .65rem;flex:none;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:.6rem;font:650 .875rem/1.3 var(--font-ui,system-ui);cursor:pointer}.dua-reader-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 20px;border-bottom:1px solid var(--line);flex:none}.dua-reader-tools button{font-size:12px;font-weight:650;min-height:44px;padding:7px 10px;background:none;border:0;border-radius:9px;white-space:nowrap}.dua-reader-tools button:hover{background:var(--pale)}.dua-reader-tools button:disabled{opacity:.35;cursor:default}.dua-reader-save{display:flex;align-items:center;gap:6px}.dua-reader-save[aria-pressed=true]{color:var(--green)}.dua-font-controls{display:flex;align-items:center;gap:1px;border:1px solid var(--line);border-radius:10px;direction:ltr}.dua-font-controls span{font-size:11px;min-width:20px;text-align:center;color:var(--muted)}.dua-font-controls button{min-width:38px}.dua-reader-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 35px 36px;scrollbar-gutter:stable;flex:1;scroll-padding-top:18px}.dua-reader-scroll:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.dua-introduction{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:18px 20px;font-size:13px;line-height:1.7;margin-bottom:28px}.dua-summary-label{font-size:10px;letter-spacing:.3px;color:var(--muted);font-weight:700}.dua-introduction>p{margin:8px 0 12px}.dua-introduction a,.dua-reader-end a{color:var(--green);text-underline-offset:4px;font-weight:650;display:inline-flex;align-items:center;min-height:44px}.dua-introduction details{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}.dua-introduction summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}.dua-introduction details p{color:var(--muted);margin:9px 0;font-size:12px}.dua-introduction details p strong{color:var(--ink)}.dua-arabic-text{font-family:var(--arabic);font-size:var(--dua-size,30px);font-weight:400;line-height:2.05;text-align:right;word-spacing:1px}.dua-arabic-text p{margin:0;padding:18px 0;border-bottom:1px solid var(--line);overflow-wrap:break-word}.dua-arabic-text p:last-child{border-bottom:0}.dua-reader-end{text-align:center;color:var(--muted);font-size:12px;line-height:1.6;padding-top:25px}.dua-reader-end>span{font-size:36px;color:var(--green)}.dua-reader-end p{margin:2px 0 12px}.dua-reader-end button,.dua-resume button{min-height:44px;padding:10px 15px;border:1px solid var(--line);background:var(--bg);border-radius:10px;color:var(--green);font-weight:650;font-size:12px}.dua-reader-end a{margin-inline-start:16px}.dua-reader-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;padding:13px 22px;color:var(--muted);border-top:1px solid var(--line);background:var(--bg);flex:none}.dua-reader-foot #dua-reader-status{text-align:end}.dua-resume{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--pale);border:1px solid var(--line);padding:12px;border-radius:12px;margin-bottom:20px;color:var(--green);font-size:12px}.dua-resume>span{flex:1 1 150px}.dua-reader-loading{padding:30px;position:relative}.dua-reader-loading .dua-close{margin-inline-start:auto}.dua-reader-loading h2{font-size:22px;margin:24px 0 12px}.dua-dialog a:focus-visible,.dua-dialog summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.dua-dialog a{overflow-wrap:anywhere}[dir=rtl] .dua-heading h1{font-family:var(--arabic);letter-spacing:0;line-height:1.5}[dir=rtl] .dua-reader-head h2{font-family:var(--arabic);font-size:26px}[dir=rtl] .dua-card-arabic{text-align:right}
@media(max-width:600px){.dua-heading{margin-bottom:20px}.dua-heading h1{font-size:29px}.dua-heading p{font-size:13px}.dua-today{padding:17px 16px;gap:12px;border-radius:16px;margin-bottom:22px}.dua-today-mark{font-size:41px}.dua-today strong{font-size:16px}.dua-today span span{font-size:11px}.dua-list{grid-template-columns:1fr;gap:11px}.dua-card-open{min-height:152px;padding:18px}.dua-card-category{margin-bottom:7px}.dua-card-arabic{font-size:27px}.dua-card-occasion{margin:4px 0 12px}.dua-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.dua-reader-head{padding:calc(14px + env(safe-area-inset-top)) 16px 13px}.dua-reader-head h2{font-size:19px}.dua-reader-head span{font-size:10px}.dua-reader-tools{padding:7px 9px;gap:2px}.dua-reader-tools button{padding-inline:7px;font-size:11px}.dua-reader-save{gap:4px}.dua-font-controls button{min-width:36px}.dua-reader-scroll{padding:18px 20px 30px}.dua-introduction{padding:13px 15px;margin-bottom:18px}.dua-arabic-text{line-height:2}.dua-arabic-text p{padding:16px 0}.dua-reader-foot{padding:10px 15px calc(10px + env(safe-area-inset-bottom));font-size:9px}.dua-reader-end a{display:flex;justify-content:center;margin:10px 0 0}}@media(prefers-reduced-motion:reduce){.dua-card{transition:none}}

/* Context sits beside the text, without expanding the reading page. */
.dua-practical-links{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.dua-practical-links button{min-height:44px;padding:.55rem .85rem;border:1px solid var(--line,#d8dfd4);border-radius:10px;background:var(--paper,#fffdf8);color:var(--green,#234d38);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;text-align:start}
.dua-practical-links button:focus-visible{outline:3px solid var(--gold,#b28b47);outline-offset:3px}
.dua-collection-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:1.5rem 0}
.dua-collection-links a{display:flex;flex-direction:column;justify-content:center;min-height:92px;text-decoration:none;border:1px solid var(--line);border-radius:14px;padding:1rem;color:var(--green);background:var(--panel)}
.dua-collection-links strong{font-size:1rem;line-height:1.5}.dua-collection-links span{font-size:.875rem;line-height:1.6;color:var(--muted);margin-top:.3rem}.dua-collection-links a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(max-width:650px){.dua-collection-links{grid-template-columns:1fr;gap:8px}.dua-collection-links a{min-height:76px;padding:.8rem 1rem}}

.dua-reading-section{margin:1.6rem 0;border-bottom:1px solid var(--line);padding-bottom:1rem}
.dua-reading-section header,.dua-section-sources{font-family:Manrope,system-ui,sans-serif;font-size:14px;line-height:1.7;text-align:start;word-spacing:normal}
.dua-reading-section h3{font-size:16px;margin:0;color:var(--green);font-weight:700}
.dua-reading-section .dua-section-note{font-size:14px;line-height:1.8;color:var(--muted);padding:.6rem 0;border:0;margin:0}
.dua-section-sources{display:flex;flex-wrap:wrap;gap:.5rem 1rem}
.dua-section-sources a{min-height:44px;display:inline-flex;align-items:center;color:var(--green);text-underline-offset:4px}
.dua-reading-section>p{border:0}

.dua-card{display:flex;flex-direction:column}.dua-card-open{height:auto;flex:1}
.dua-card .amal-gesture-tile.is-compact{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--bg)}
.dua-card .amal-gesture-tile.is-compact>a{min-height:52px;padding:.4rem 1rem;gap:.65rem}
.dua-card .amal-gesture-tile.is-compact .amal-gesture-tile-images img{width:42px;height:36px;object-fit:cover}
.dua-card .amal-gesture-tile.is-compact strong{font-size:.875rem;font-weight:600;color:var(--green)}
.dua-card .amal-gesture-tile.is-compact small{display:none}

/* v120: keep research available without interrupting a prayer. */
.dua-introduction{padding:1rem 1.1rem;margin-bottom:1rem;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:1rem;line-height:1.8}
.dua-introduction>p{margin:0 0 .8rem}
.dua-introduction .dua-practical-links{margin:.65rem 0}
.dua-introduction .amal-gesture-overview{margin:.65rem 0 0}
.dua-practical-links a{display:inline-flex;align-items:center;min-height:44px;font-size:.9375rem}
.dua-research-review{margin:2rem 0 .5rem;border-top:1px solid var(--line);padding-top:.5rem;font-family:var(--font-ui,system-ui);font-size:.9375rem;line-height:1.8;color:var(--muted);word-spacing:normal}
.dua-research-review>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:.9375rem;font-weight:650;color:var(--green)}
.dua-research-review>summary::after{content:'+';margin-inline-start:auto}.dua-research-review[open]>summary::after{content:'−'}
.dua-research-review p{margin:.7rem 0}.dua-research-review ul{padding-inline-start:1.2rem}.dua-research-review a{color:var(--green);text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}
.dua-card .amal-gesture-overview{margin:0;padding:.45rem 1rem;border-top:1px solid var(--line);background:var(--bg);max-width:none}
.dua-card .amal-gesture-overview>a{padding:0;background:none;border:0;min-height:58px;gap:.7rem}
.dua-card .amal-gesture-miniatures{grid-template-columns:repeat(3,30px);gap:2px}.dua-card .amal-gesture-miniatures img{width:30px;height:23px}
.dua-card .amal-gesture-overview small{font-size:.8125rem}.dua-card .amal-gesture-overview strong{font-size:.875rem}
.dua-reader-tools button{font-size:.875rem}.dua-reader-foot{font-size:.8125rem}.dua-reader-head>div>span{font-size:.875rem}
.dua-repeat{font:400 .875rem/1.6 var(--font-ui,system-ui);word-spacing:normal;text-align:start;border:1px solid var(--line);border-radius:12px;padding:.7rem .8rem;margin:.4rem 0 .6rem;background:var(--bg)}
.dua-repeat-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.3rem .8rem;color:var(--muted);font-size:.8125rem}
.dua-repeat-controls{display:flex;align-items:center;gap:.65rem;margin-top:.45rem}.dua-repeat-controls button{min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:9px;padding:.5rem .75rem;background:var(--panel);color:var(--green);font:600 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.dua-repeat-controls button:last-child{margin-inline-start:auto;background:var(--pale)}.dua-repeat-controls button:disabled{opacity:.45;cursor:default}.dua-repeat-controls output{font-weight:750;color:var(--green);font-variant-numeric:tabular-nums;white-space:nowrap}.dua-repeat-controls button:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.dua-repeat [data-dua-repeat-status]{padding:0;border:0;font:400 .8125rem/1.6 var(--font-ui,system-ui);margin:.4rem 0 0;color:var(--muted)}.dua-repeat [data-dua-repeat-status]:empty{display:none}
.dua-after-reading{border-inline-start:3px solid var(--green);padding:.5rem 1rem;margin:1rem 0;font:400 .9375rem/1.8 var(--font-ui,system-ui);color:var(--muted)}.dua-after-reading h3{font-size:1rem;color:var(--green);margin:0 0 .4rem}.dua-after-reading p{margin:.4rem 0}
.dua-section-quran{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font:600 .9375rem/1.6 var(--font-ui,system-ui);word-spacing:normal;text-underline-offset:3px}
@media(max-width:600px){.dua-reader-tools{flex-wrap:wrap;justify-content:flex-start;gap:.25rem}.dua-reader-tools [data-dua-info]{margin-inline-start:auto}.dua-reader-scroll{padding-inline:1rem}.dua-introduction{padding:.25rem 0 .8rem}.dua-reader-foot{font-size:.75rem}.dua-reader-tools button{font-size:.875rem}}
/* v122: search first, optional browsing, quiet prayer cards. */
.dua-library .dua-heading{margin-bottom:18px}
.dua-library .dua-heading h1{margin-top:0;margin-bottom:8px}
.dua-library .dua-heading p{margin:0}
.dua-browse-extras{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 16px;margin-top:7px}
.dua-explore{flex:none;min-width:0;max-width:100%}
.dua-explore>summary{min-height:44px;display:list-item;align-content:center;padding:8px 3px;color:var(--green);font-size:.875rem;font-weight:650;cursor:pointer}
.dua-explore[open]{flex-basis:100%;padding-bottom:8px}
.dua-explore>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:4px}
.dua-explore .dua-collection-links{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.dua-explore .dua-collection-links>a{display:inline-flex;align-items:center;min-height:44px;padding:9px 12px;border-radius:10px;font-size:.875rem;font-weight:650}
.dua-explore .dua-collection-links>a>span{font-size:inherit;color:inherit;line-height:inherit}
.dua-theme-links{margin:0;padding-top:4px;border-top:1px solid var(--line)}
.dua-browse-extras #dua-today{flex:1;min-width:200px}
.dua-browse-extras #dua-today[hidden]{display:none}
.dua-browse-extras .dua-today{gap:10px;min-height:44px;padding:8px 12px;margin:0;border-radius:10px;background:var(--pale)}
.dua-browse-extras .dua-today>span:first-child{display:flex;align-items:baseline;gap:9px;min-width:0;flex:1;flex-wrap:wrap}
.dua-browse-extras .dua-today small{font-size:.8125rem;letter-spacing:0;margin:0;font-weight:600}
.dua-browse-extras .dua-today strong{font-size:.875rem;line-height:1.5;margin:0}
.dua-browse-extras .dua-arrow{font-size:18px;flex:none}
.dua-library .dua-status{margin-top:9px;margin-bottom:10px}
.dua-library .dua-card-open{min-height:132px;padding:17px 54px 17px 17px;padding-inline-end:54px;padding-inline-start:17px;gap:3px;justify-content:center}
.dua-library .dua-card-title{font-size:1rem;line-height:1.45;margin:0;overflow-wrap:anywhere}
.dua-library .dua-card-title[lang=ar]{font-family:var(--arabic);font-size:1.5rem;font-weight:400;line-height:1.75}
.dua-library .dua-card-arabic{font-size:1.375rem;line-height:1.7;margin:0;color:var(--green);overflow-wrap:anywhere}
.dua-library .dua-card-occasion{font-size:.875rem;line-height:1.5;margin:2px 0 0;overflow-wrap:anywhere}
.dua-card-arrow{position:absolute;inset-inline-end:25px;bottom:17px;color:var(--green);font-size:18px}
.dua-practical-links{align-items:center}
.dua-practical-links .amal-gesture-cue.is-text{margin:0}
/* v124: reading surface stays still; tools open in a separate, dismissible sheet. */
.dua-reader-head{padding:13px 18px;gap:12px;min-height:76px;box-sizing:border-box}
.dua-reader-head h2{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.dua-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.dua-tools-trigger{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--green);font:600 .875rem/1.3 var(--font-ui,system-ui)}
.dua-head-actions .dua-tools-trigger span{font:inherit;color:inherit}
.dua-head-actions .dua-tools-trigger .dua-settings-symbol{font:600 18px/1 Georgia,serif}
.dua-reader-bar{display:flex;align-items:center;gap:8px;padding:6px 18px;border-bottom:1px solid var(--line);flex:none;flex-wrap:wrap}
.dua-reader-bar>button,.dua-plan-shortcuts button{min-height:44px;border:0;background:transparent;color:var(--green);padding:8px 12px;border-radius:8px;font:600 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.dua-reader-bar>button:hover,.dua-plan-shortcuts button:hover{background:var(--pale)}
.dua-plan-shortcuts{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:var(--pale)}
.dua-plan-shortcuts .dua-plan-more{border-inline-start:1px solid var(--line);min-width:38px;font-size:20px;padding:4px 7px;border-start-start-radius:0;border-end-start-radius:0}
.dua-reader-bar .dua-resume-shortcut{margin-inline-start:auto;font-weight:700}.dua-resume-shortcut span{font-size:.75rem;font-weight:500}
.dua-reader-stage{position:relative;flex:1;min-height:0;overflow:hidden}
/* Passage navigation owns the reading position. Native anchoring can move an
   expanded instruction offscreen while preserving the Arabic below it. */
.dua-reader-stage>.dua-reader-scroll{height:100%;box-sizing:border-box;padding:18px 30px 30px;overflow-y:auto;overflow-anchor:none}
.dua-reader-stage .dua-arabic-text>.dua-reading-section:first-child{margin-top:0}
.dua-reading-section:focus{outline:none}.dua-reading-section:focus-visible{outline:2px solid var(--green);outline-offset:5px;border-radius:5px}
.dua-reader-stage .dua-parallel-help{font-size:var(--dua-aid-size,16px)}
.dua-tools-sheet{position:absolute;inset:0;z-index:4;overflow:auto;overscroll-behavior:contain;background:var(--panel);padding:0 24px 26px;box-sizing:border-box}
.dua-tools-sheet[hidden],.dua-tools-sheet [data-dua-panel][hidden],.dua-find-tray[hidden]{display:none!important}
.dua-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0 12px;margin-bottom:8px;border-bottom:1px solid var(--line);background:var(--panel);position:sticky;top:0;z-index:1}
.dua-sheet-head h3{font-size:18px;line-height:1.4;margin:0;color:var(--ink)}
.dua-tools-sheet button{min-height:44px;font:600 .875rem/1.5 var(--font-ui,system-ui);color:var(--green);background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:8px 12px;cursor:pointer}
.dua-tools-sheet button:disabled{opacity:.4;cursor:default}.dua-tools-sheet button[aria-pressed=true]{background:var(--pale);border-color:var(--green)}
.dua-sheet-head button{background:transparent;flex:none}.dua-sheet-head button span{margin-inline-start:5px;font-size:20px;vertical-align:middle}
.dua-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;font:500 .9375rem/1.5 var(--font-ui,system-ui)}
.dua-setting-row .dua-font-controls{flex:none}.dua-tools-sheet .dua-font-controls button{border:0;background:transparent;min-width:44px;font-size:1rem}.dua-tools-sheet .dua-font-controls span{font-size:.875rem;min-width:24px}
.dua-tools-sheet .dua-reading-options.is-compact{padding:12px 0;margin:5px 0 10px;border:0;border-block:1px solid var(--line);border-radius:0;display:block}
.dua-reading-options.is-compact h4{font-size:.9375rem;margin:0;color:var(--ink)}
.dua-tools-sheet .dua-reading-option-fields{margin-top:3px}.dua-tools-sheet .dua-reading-options>p{margin:5px 0 0}.dua-tools-sheet .dua-sound-key{margin:8px 0 0}
.dua-tools-sheet .dua-sound-key summary{min-height:44px;align-content:center;cursor:pointer;color:var(--green)}
.dua-tools-sheet .dua-reader-extra-tools{padding:3px 0 16px;border:0;gap:8px}
.dua-tools-sheet .dua-reader-save{display:inline-flex;align-items:center}
.dua-jump-label{display:block;font-weight:650;font-size:.9375rem;margin:8px 0}
.dua-tools-sheet .dua-reader-search{display:flex;align-items:center;gap:8px;font-size:1rem}.dua-tools-sheet .dua-reader-search input{max-width:none;min-height:44px;box-sizing:border-box}
.dua-panel-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.dua-tools-sheet .dua-audio-panel{border:0;border-radius:0;margin:0;padding:0}.dua-tools-sheet .dua-audio-panel>summary{display:none}
.dua-tools-sheet .dua-audio-content{padding:0}.dua-tools-sheet .amal-cycle-inline{margin:0;padding:0;border:0}
.dua-tools-sheet .dua-introduction{display:block;padding:4px 0;border:0;margin:0}.dua-occasion{display:block;color:var(--green);font-size:.9375rem;margin-bottom:12px}
.dua-jump-row{display:flex;align-items:center;gap:12px;margin-bottom:16px}.dua-jump-row input{width:90px;min-height:44px;box-sizing:border-box;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font:inherit}.dua-jump-row>span{color:var(--muted);font-size:.875rem}
.dua-contents-list{display:grid;gap:5px}.dua-contents-list>button{display:flex;align-items:baseline;gap:14px;text-align:start;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 4px;font-weight:400}.dua-contents-list b{min-width:24px;color:var(--green);font-size:.8125rem;font-variant-numeric:tabular-nums}.dua-contents-list span{line-height:1.6;overflow-wrap:anywhere}
.dua-find-tray{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:4px 18px;background:var(--pale);border-bottom:1px solid var(--line);font-size:.875rem;flex:none}
.dua-find-tray [data-dua-find-count]{margin-inline-end:auto}.dua-find-tray button{min-height:40px;border:0;border-radius:8px;padding:6px 10px;background:transparent;color:var(--green);font:600 .875rem/1.4 var(--font-ui,system-ui)}
.dua-reader-foot{position:relative;padding:6px 14px;gap:6px;background:var(--panel)}
.dua-reader-foot>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 9px;border:0;border-radius:9px;background:transparent;color:var(--green);font:600 .8125rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.dua-reader-foot>button:disabled{opacity:.35;cursor:default}.dua-reader-foot #dua-position{background:var(--bg);font-weight:500;text-align:center;min-width:0}
.dua-live-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.dua-reader-end>button{margin:4px}.dua-dialog.is-focus .dua-reader-bar{display:none}.dua-dialog.is-focus .dua-tools-sheet .dua-introduction,.dua-dialog.is-focus .dua-tools-sheet .dua-reading-options{display:block}
.dua-dialog button:focus-visible,.dua-tools-sheet input:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:600px){.dua-reader-head{min-height:72px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;gap:8px}.dua-reader-head h2{font-size:17px;line-height:1.4}.dua-head-actions{gap:5px}.dua-tools-trigger{width:44px;min-width:44px;padding:8px;justify-content:center}.dua-tools-trigger>span:not(.dua-settings-symbol):last-child{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.dua-reader-bar{padding:4px 10px;gap:4px}.dua-reader-bar>button,.dua-plan-shortcuts button{font-size:.8125rem;padding:7px 9px}.dua-reader-bar .dua-resume-shortcut{margin-inline-start:0}.dua-reader-stage>.dua-reader-scroll{padding:15px 18px 25px}.dua-tools-sheet{padding:0 17px 22px}.dua-sheet-head{gap:8px}.dua-sheet-head h3{font-size:16px}.dua-sheet-head button{font-size:.8125rem;padding:7px 9px}.dua-setting-row{font-size:.875rem;gap:8px}.dua-reader-foot{padding:5px 8px calc(5px + env(safe-area-inset-bottom));gap:2px}.dua-reader-foot>button{padding:7px;font-size:.75rem;gap:4px}.dua-reader-foot #dua-position{font-size:.75rem}}
@media(max-width:600px){.dua-library .dua-heading{margin-bottom:16px}.dua-browse-extras{gap:3px 12px}.dua-browse-extras #dua-today{min-width:180px}.dua-library .dua-card-open{min-height:124px;padding-block:15px}.dua-explore .dua-collection-links{gap:6px}.dua-library .dua-list{gap:10px}}
/* v125: small, persistent reading aids; text remains the main surface. */
.dua-reader-stage .dua-reading-section{margin:.8rem 0;padding-bottom:.4rem}
.dua-reader-stage .dua-reading-section>p[data-dua-block]{padding:10px 0;line-height:1.95}
.dua-reader-stage .dua-parallel-help{margin:.35rem 0 .65rem;line-height:1.7}
.dua-reader-stage .dua-parallel-help [data-reading-transliteration],.dua-reader-stage .dua-parallel-help [data-reading-translation]{padding:.55rem .85rem;margin:.45rem 0}
.dua-reader-stage .dua-copy-section{margin:.2rem 0 .3rem}
.dua-repeat{position:sticky;top:0;z-index:2;background:var(--panel);box-shadow:0 3px 10px #142c3510;padding:8px 10px;border-inline-start:3px solid var(--green)}
.dua-repeat-heading{font-size:.8125rem;gap:4px 8px}.dua-repeat-controls{margin-top:4px;gap:6px}
.dua-repeat-controls .dua-repeat-value{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;background:var(--panel);border-color:var(--line);text-decoration:none}.dua-repeat-edit-label{font-size:.8125rem;font-weight:600;color:var(--green)}
.dua-repeat-edit{display:flex;gap:8px;align-items:end;border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
.dua-repeat-edit[hidden]{display:none}.dua-repeat-edit label{display:grid;gap:3px;font-size:.875rem;flex:1}
.dua-repeat-edit input{width:100%;box-sizing:border-box;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;font:inherit;background:var(--bg);color:var(--ink)}
.dua-repeat-edit button,.dua-next-practice button,.dua-stage-check,.dua-routine-invite button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--pale);color:var(--green);font:600 .875rem/1.5 var(--font-ui,system-ui);cursor:pointer}
.dua-stage-check{display:flex;align-items:center;gap:10px;width:100%;margin:10px 0;text-align:start;direction:inherit}
.dua-stage-check[aria-pressed=true]{border-color:var(--green);background:var(--pale)}.dua-stage-check>span:first-child{font-size:20px;min-width:24px}
.dua-next-practice{font:400 1rem/1.7 var(--font-ui,system-ui);text-align:start;border:1px solid var(--line);border-radius:13px;padding:14px 16px;margin:18px 0;background:var(--bg)}
.dua-next-practice h3{font-size:1.1rem;margin:0 0 6px}.dua-next-practice p{margin:5px 0 12px}.dua-next-practice .dua-next-reading{background:var(--green);color:#fff;width:100%;margin-top:8px}.dua-next-practice .prayer-counter{margin:10px 0}
.dua-session-timer,.dua-mini-player{display:flex;align-items:center;gap:8px;flex:none;min-height:44px;padding:3px 18px;border-bottom:1px solid var(--line);background:var(--pale);font:500 .875rem/1.4 var(--font-ui,system-ui)}
.dua-session-timer[hidden],.dua-mini-player[hidden]{display:none!important}.dua-session-timer output{font-variant-numeric:tabular-nums;font-weight:750;min-width:45px;color:var(--green)}
.dua-session-timer button,.dua-mini-player button{min-height:40px;border:0;border-radius:7px;background:transparent;color:var(--green);padding:6px 10px;font:600 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.dua-session-timer [data-dua-timer-hide]{margin-inline-start:auto;font-size:22px;min-width:40px}
.dua-mini-player [data-dua-mini-stop],.dua-sheet-actions [data-dua-player-close]{border:1px solid currentColor;border-radius:.6rem;min-height:44px;font-weight:700;color:var(--dark,#104a40);white-space:normal}
.dua-sheet-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.35rem}
.dua-reader-bar .dua-listen-shortcut[hidden],.dua-sheet-actions button[hidden],.dua-mini-player button[hidden]{display:none!important}
.dua-mini-player button{min-height:44px}
@media(max-width:520px){.dua-sheet-head:has([data-dua-player-close]:not([hidden])){flex-wrap:wrap;gap:.3rem}.dua-sheet-head .dua-sheet-actions{max-width:100%;margin-inline-start:auto}.dua-sheet-actions button{padding-inline:.55rem}.dua-mini-player [data-dua-mini-stop]{padding-inline:.55rem}}
.dua-mini-player [data-dua-mini-label]{flex:1;min-width:0;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.dua-mini-player [data-dua-mini-label] strong,.dua-mini-player [data-dua-mini-label] span{display:block;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.dua-mini-player [data-dua-mini-label] span{font-size:.8rem;color:var(--muted)}
.dua-mini-player [data-dua-mini-toggle]{background:var(--green);color:var(--panel);min-width:70px}
.dua-routine-invite{display:flex;align-items:center;justify-content:space-between;gap:.6rem;border-top:1px solid var(--line);margin-top:.6rem;padding-top:.5rem}
.dua-routine-invite>span{font:600 .9375rem/1.5 var(--font-ui,system-ui)}
.dua-routine-invite [data-dua-routine-add]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
.dua-routine-invite [data-dua-routine-add]>svg{display:block;flex-shrink:0;width:20px;height:20px;pointer-events:none}
/* Visible paths to themes and hand guides, with a bounded reading catalogue. */
.dua-library-paths{display:grid;gap:12px;margin:14px 0 16px}
.dua-library-paths>.devotion-theme-navigation{margin:0}
.dua-library .dua-search-label,.dua-library .dua-filters button,.dua-library .dua-status{font-size:.875rem}
.dua-library .dua-heading p,.dua-library .dua-footnote{font-size:1rem}
.dua-card>.devotion-tags{position:relative;z-index:1;padding:0 16px 14px;margin:0;gap:6px}
.dua-card>.devotion-tags a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;font-size:.875rem}
.dua-load-more{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:14px 0}
.dua-load-more>button{min-height:44px;padding:10px 18px;background:var(--pale);border:1px solid var(--line);border-radius:10px;color:var(--green);font:650 .9375rem/1.5 var(--font-ui,system-ui);cursor:pointer}
.dua-load-more>span{font-size:.875rem;color:var(--muted)}
.dua-load-more>button:hover{border-color:var(--green)}
.dua-library a:focus-visible,.dua-library button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.dua-reader-themes{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line);font-family:var(--font-ui,system-ui);text-align:start;direction:inherit}
.dua-reader-themes>span{font-size:.875rem;color:var(--muted)}
.dua-reader-themes>.devotion-tags{margin:.25rem 0 0}
.dua-reader-themes .devotion-tags a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;font-size:.875rem}
.dua-dialog.is-focus .dua-reader-themes{display:none}
@media(max-width:600px){.dua-session-timer,.dua-mini-player{padding-inline:10px;gap:4px}.dua-session-timer>span{font-size:.8125rem}.dua-session-timer button{padding:5px 8px}.dua-next-practice{padding:12px}.dua-repeat-heading>span:last-child{font-size:.75rem}.dua-repeat-controls button{font-size:.8125rem;padding:7px 9px}}
/* One compact, shared counter beside the complete after-prayer reading. */
.dua-prayer-repetitions{font:400 .9375rem/1.6 var(--font-ui,system-ui);text-align:start;border:1px solid var(--line);border-radius:14px;background:var(--bg);margin:18px 0;padding:16px}
.dua-prayer-repetitions>header{display:flex;gap:16px;justify-content:space-between;align-items:start}.dua-prayer-repetitions h3{font-size:1rem;margin:0 0 4px}.dua-prayer-repetitions p{margin:4px 0 10px;color:var(--muted)}.dua-prayer-repetitions>header label{display:grid;gap:4px;font-size:.8125rem}.dua-prayer-repetitions select{min-height:44px;min-width:105px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:inherit}
.dua-prayer-repetition-controls{display:flex;align-items:center;gap:10px;margin:12px 0 8px}.dua-prayer-repetition-controls output{font-size:1.4rem;font-weight:750;white-space:nowrap;min-width:88px;text-align:center}.dua-prayer-repetitions button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--pale);color:var(--green);font:600 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}.dua-prayer-repetitions button:disabled{opacity:.45;cursor:default}.dua-prayer-repetitions [data-dua-prayer-increase]{flex:1;background:var(--green);color:#fff}.dua-prayer-repetitions [data-dua-prayer-decrease]{min-width:44px;font-size:1.2rem}.dua-prayer-repetitions progress{display:block;width:100%;height:5px;accent-color:var(--green);margin-bottom:10px}.dua-prayer-follow-on{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding-top:12px;border-top:1px solid var(--line);margin-top:10px}.dua-prayer-follow-on strong{grid-column:1}.dua-prayer-follow-on span{grid-column:1;color:var(--muted);font-size:.875rem}.dua-prayer-follow-on button{grid-column:2;grid-row:1/3;align-self:center}
@media(max-width:600px){.dua-prayer-repetitions{padding:12px}.dua-prayer-repetitions>header{gap:10px}.dua-prayer-follow-on{grid-template-columns:1fr}.dua-prayer-follow-on button{grid-column:1;grid-row:auto;justify-self:start}.dua-prayer-repetition-controls{gap:7px}.dua-prayer-repetition-controls output{min-width:72px;font-size:1.2rem}}
/* v129: the reading comes first; copying and source apparatus stay in tools. */
.dua-reader-bar .dua-listen-shortcut{display:inline-flex;align-items:center;gap:.45rem;background:var(--pale);font-weight:750}
.dua-reader-bar .dua-listen-shortcut svg{flex:none}
.dua-panel-links [data-dua-timer-open]{display:inline-flex;align-items:center;gap:.45rem}
#dua-reader-scroll:has(>.dua-reading-shortcuts){--dua-shortcut-clearance:4.75rem;scroll-padding-top:var(--dua-shortcut-clearance)}
#dua-reader-scroll:has(>.dua-reading-shortcuts) [data-dua-unit]{scroll-margin-top:.5rem}
#dua-reader-scroll:has(>.dua-reading-shortcuts) .dua-repeat{top:var(--dua-shortcut-clearance)}
.dua-reading-shortcuts{position:sticky;top:-18px;z-index:3;display:flex;flex-wrap:wrap;gap:.45rem;padding:.25rem 0 .5rem;margin:0 0 .5rem;background:var(--panel);border-bottom:1px solid var(--line);font:600 .875rem/1.4 var(--font-ui,system-ui);direction:inherit}
.dua-reading-shortcuts>button{min-height:44px;padding:.45rem .7rem;background:var(--pale);border:1px solid var(--line);border-radius:10px;color:var(--green);font:inherit;cursor:pointer}
.dua-reading-shortcuts>button:hover{border-color:var(--green)}
.dua-source-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.25rem 1rem;padding:.6rem 0;border-top:1px solid var(--line);font:400 .875rem/1.6 var(--font-ui,system-ui);color:var(--muted);text-align:start}
.dua-source-footer>span{max-width:75%;overflow-wrap:anywhere}.dua-source-footer>a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-weight:600;text-underline-offset:.2em}
.dua-tools-sheet .dua-research-review{margin:0;border:0;padding:0}.dua-tools-sheet .dua-research-review>summary{display:none}
.dua-repeat-recovery{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .7rem;border-top:1px solid var(--line);margin-top:.45rem;padding-top:.15rem}
.dua-repeat-recovery>button{min-height:44px;border:0;border-radius:7px;background:transparent;color:var(--green);padding:.4rem .25rem;font:600 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.dua-repeat-recovery>button:disabled{opacity:.4;cursor:default}.dua-repeat-recovery [data-dua-repeat-undo]{margin-inline-start:auto;background:var(--pale);padding-inline:.65rem}
.dua-repeat-recovery [hidden]{display:none!important}
.dua-repeat-controls .dua-repeat-value{font-size:1.1rem;min-width:90px;flex:none}.dua-dialog .dua-repeat-controls button[data-dua-repeat-change="1"]{display:flex;justify-content:center;flex:1;background:var(--green);border-color:var(--green);color:var(--panel);font-weight:750}
.dua-repeat [data-dua-repeat-status]{font-size:.875rem}
.dua-reader-bar>button,.dua-plan-shortcuts button,.dua-reader-foot>button{font-size:.875rem}
.dua-copy-fallback{box-sizing:border-box;width:100%;min-height:10rem;padding:.8rem;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:10px;font:1rem/1.7 var(--font-ui,system-ui)}
@media(max-width:600px){.dua-reading-shortcuts{top:-15px}}
@media(max-width:420px){.dua-reading-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem}.dua-reading-shortcuts>button{min-width:0;padding:.4rem .2rem;font-size:.8125rem;line-height:1.4}.dua-repeat-controls{gap:.35rem}.dua-repeat-controls .dua-repeat-value{min-width:80px;padding-inline:.3rem}.dua-repeat-controls [data-dua-repeat-change="1"]{font-size:.875rem;padding-inline:.5rem}.dua-source-footer>span{max-width:100%}}
/* Long Arabic titles keep the first reading passage in reach on a phone. */
@media(max-width:600px){.dua-dialog[dir=rtl] #dua-reader-title{font-size:20px;line-height:1.5}}
/* A component reading keeps its exact source practice within reach. */
.dua-practice-context{margin:0 0 .65rem;border-block-end:1px solid var(--line);color:var(--ink);font:400 .9375rem/1.5 var(--font-ui,system-ui);text-align:start;overflow-wrap:anywhere}
.dua-practice-context>summary{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-block-size:44px;padding:.22rem .25rem;box-sizing:border-box;cursor:pointer;list-style:none}
.dua-practice-context>summary::-webkit-details-marker{display:none}
.dua-practice-context>summary::after{content:"";flex:none;inline-size:.45rem;block-size:.45rem;margin-inline:.3rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);color:var(--muted)}
.dua-practice-context[open]>summary::after{transform:rotate(225deg)}
.dua-practice-context-label{color:var(--muted);font-size:.8125rem}
.dua-practice-context>summary strong{font-size:.875rem;font-weight:650}
.dua-practice-context-body{padding:.3rem .25rem .65rem}
.dua-practice-context-row{display:flex;align-items:center;justify-content:space-between;gap:.25rem .75rem;flex-wrap:wrap}
.dua-practice-context-copy{flex:1 1 13rem;min-inline-size:0}.dua-practice-context-copy strong,.dua-practice-context-copy span{display:block}.dua-practice-context-copy strong{font-weight:650}.dua-practice-context-copy span{color:var(--muted);font-size:.8125rem}
.dua-practice-context a{display:inline-flex;align-items:center;min-height:44px;padding:.25rem .55rem;border:1px solid var(--line);border-radius:.5rem;background:var(--panel);color:var(--green);font-weight:650;text-decoration:none}
.dua-practice-context a:focus-visible,.dua-practice-context summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:.3rem}
.dua-practice-context-more{margin-block-start:.65rem}.dua-practice-context-more h3{margin:0;font:650 .85rem/1.5 var(--font-ui,system-ui)}
.dua-practice-context-more .dua-practice-context-row{border-block-start:1px solid var(--line);padding-block-start:.45rem;margin-block-start:.4rem}
.dua-source-filter{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .75rem;margin:.85rem 0}
.dua-source-filter label{font-weight:600}
.dua-source-filter select{color:inherit;background:var(--surface,#fff);border:1px solid var(--line,#b8c6bd);border-radius:.55rem;padding:.55rem .65rem;font:inherit;max-width:100%;min-height:44px}
.dua-reader-scroll [data-dua-book-body] .shirazi-native-section{margin:0}
.dua-reader-scroll [data-dua-book-body] .shirazi-native-passage [lang="ar"]{font-size:var(--dua-size)}

.dua-filter-pair{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:.6rem;align-items:end}
.dua-filter-pair>*{min-width:0}
.dua-filter-pair :is(select,button){max-width:100%}
@media(max-width:22rem){.dua-filter-pair{grid-template-columns:minmax(0,1fr)}}

.dua-search-label.dua-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dua-explore.dua-discovery{display:block;margin-block:.25rem}
.dua-discovery>summary{min-height:44px;align-content:center}
.dua-discovery[open]>.dua-library-paths{margin-block:.5rem}

/* Passage links and scheduling controls keep independent targets, also in RTL. */
.dua-prayer-routine [data-prayer-task-list]{list-style:none;margin:.35rem 0 0;padding:0}
.dua-prayer-routine [data-prayer-task-list]>li{
  display:grid;grid-template-columns:minmax(0,1fr) max-content 44px;align-items:center;column-gap:.35rem;
  margin:0;padding:.12rem 0;border-block-start:1px solid var(--line);text-align:start;
}
.dua-prayer-routine a[data-prayer-routine-jump]{
  grid-column:1;display:flex;align-items:center;gap:.4rem;min-width:0;min-block-size:44px;
  padding:0 .15rem;border-radius:.35rem;color:var(--ink);font:650 .92rem/1.5 var(--font-ui,system-ui);
  text-decoration:none;overflow-wrap:anywhere;
}
.dua-prayer-routine a[data-prayer-routine-jump]:is(:hover,:visited){color:var(--ink);text-decoration:none}
.dua-prayer-routine .dua-passage-no{flex:none;min-inline-size:1.15em;text-align:center;color:var(--muted);font-size:.85em;font-variant-numeric:tabular-nums}
.dua-prayer-routine [data-prayer-task-list]>li>.duration-badge[role=img]{
  grid-column:2;align-self:center;justify-self:end;margin:0;
}
.dua-prayer-routine button[data-prayer-routine-plan]{
  grid-column:3;display:grid;place-items:center;inline-size:44px;block-size:44px;
  padding:0;margin:0;border:1px solid var(--line);border-radius:.55rem;background:var(--panel);color:var(--green);
}
.dua-prayer-routine [data-plan-saved=false] .dua-passage-saved,.dua-prayer-routine [data-plan-saved=true] .dua-passage-plus{display:none}
.dua-prayer-routine button[data-plan-saved=true]{background:var(--pale);border-color:var(--green)}
.dua-prayer-routine :is([data-prayer-routine-jump],[data-prayer-routine-plan]):focus-visible{outline:2px solid var(--green);outline-offset:1px}
@media (hover:hover){.dua-prayer-routine [data-prayer-routine-jump]:hover,.dua-prayer-routine [data-prayer-routine-plan]:hover{background:var(--panel)}}
.dua-prayer-routine [data-prayer-routine-editor]{grid-column:1 / -1;min-inline-size:0}
.dua-prayer-routine [data-prayer-routine-editor]:empty{display:none}
.dua-prayer-routine [data-prayer-routine-editor]:not(:empty){margin-block:.25rem .65rem}
@media(max-width:380px){
  .dua-prayer-routine [data-prayer-task-list]>li{column-gap:.2rem}
  .dua-prayer-routine a[data-prayer-routine-jump]{gap:.25rem}
  .dua-prayer-routine [data-prayer-task-list]>li>.duration-badge[role=img]{font-size:.75rem}
}

.dua-duration-from{display:inline-flex;align-items:center;gap:.35em;color:var(--muted);font:600 .8125rem/1.35 var(--font-ui,system-ui,sans-serif)}
.dua-filter-pair~.dua-filters button[hidden]{display:none}
.dua-card>.dua-duration-from{margin-inline:17px;margin-block:0 .65rem}

[data-dua-reading-time]:not(:empty){display:inline-block;margin-block-start:.3rem}

.dua-dialog :is(.dua-repeat-controls,.dua-session-timer,.dua-prayer-repetition-controls) .counter-reset-icon,
.dua-dialog :is([data-dua-repeat-change="-1"],[data-dua-prayer-decrease]){
  display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;margin:0;
  border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--green)
}
.dua-repeat-recovery:not(:has([data-dua-repeat-undo]:not([hidden]))){display:none}
.dua-repeat [data-dua-repeat-status]:empty{margin:0}
.dua-repeat-controls .dua-repeat-value{flex:1;min-width:0}
.dua-prayer-repetition-controls output{min-width:0;flex:1}
.dua-prayer-repetition-controls [data-dua-prayer-increase]{flex:1}

.dua-head-actions .dua-tools-trigger,.dua-head-actions .dua-close{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.dua-head-actions .dua-close span{font:400 1.65rem/1 var(--font-ui,system-ui)}
.dua-scope:not([hidden]){display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-weight:650;text-decoration:none}

.dua-reader-foot>button.dua-step-control{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--green)}
.dua-step-control>span{display:grid;place-items:center;font-size:1.25rem;line-height:1}
.dua-step-control svg{width:20px;height:20px;transform:none}
.dua-reader-foot>button.dua-step-control[data-dua-step="1"]{background:var(--green);color:var(--panel);border-color:var(--green)}

/* A familiar full-text page is the default; the saved passage view shares the
   same text nodes, controls and recitation highlights. */
#dua-reader[data-folio-view="scroll"] .dua-reading-section{margin:0;padding-block:.15rem .5rem;border:0;background:transparent;box-shadow:none}
#dua-reader[data-folio-view="scroll"] .dua-reading-section>[data-dua-block]{margin-block:.25em .4em;padding-block:.1em;border:0;text-align:start;line-height:1.95;text-wrap:pretty}
#dua-reader[data-folio-view="scroll"] .dua-reading-section>header:not(:empty){margin-block:1rem .4rem}
#dua-reader[data-folio-view="scroll"] .dua-reading-section:first-child>header{margin-block-start:0}
#dua-reader[data-folio-view="passage"] #dua-reader-scroll{touch-action:pan-y pinch-zoom}
.dua-view-setting{flex-wrap:wrap;gap:.5rem 1rem;padding-block-end:.4rem}
.dua-view-setting>label{font-weight:600}
.dua-view-setting>select{max-inline-size:100%;min-block-size:44px;padding:.45rem .65rem;border:1px solid var(--line);border-radius:.55rem;background:var(--panel);color:var(--ink);font:inherit}
.dua-view-setting>select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.dua-view-help{margin:.1rem 0 .6rem;color:var(--muted);font:.875rem/1.65 var(--font-ui,system-ui,sans-serif)}
.dua-view-help[hidden]{display:none}

/* One unmistakable audio entry stays in the header, including quiet reading. */
.dua-head-actions .dua-listen-shortcut{display:inline-flex;align-items:center;justify-content:center;flex:none;width:48px;height:48px;min-width:48px;min-height:48px;padding:10px;border:0;border-radius:50%;background:var(--green,#126b58);color:#fff;cursor:pointer}
.dua-head-actions .dua-listen-shortcut[hidden]{display:none!important}
.dua-head-actions .dua-listen-shortcut svg{width:24px;height:24px;flex:none;direction:ltr}
.dua-head-actions .dua-listen-shortcut .mushaf-icon-wash{fill:currentColor;opacity:1}
.dua-head-actions .dua-listen-shortcut:focus-visible{outline:3px solid var(--focus-ring,#aa843b);outline-offset:3px}
.dua-mini-player [data-dua-mini-toggle],.dua-mini-player [data-dua-mini-stop],.dua-sheet-actions [data-media-action]{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;border-radius:50%;padding:10px;flex:none}
.dua-mini-player [data-dua-mini-toggle]{width:48px;height:48px;min-width:48px}
.dua-mini-player [data-media-action] svg{width:24px;height:24px;flex:none;direction:ltr}
.dua-search-wrap [data-dua-clear-search]{display:grid;place-items:center;border:0;min-width:44px;min-height:44px;padding:10px;background:transparent;color:var(--green);border-radius:50%;cursor:pointer}
.dua-search-wrap [data-dua-clear-search][hidden]{display:none}
.dua-search-wrap input::-webkit-search-cancel-button{display:none}

/* A small shelf replaces an ever-growing stack. The reading text stays in its reader. */
.dua-library .dua-heading h1{font-family:var(--font-ui,system-ui);letter-spacing:normal}
.dua-library .dua-shelf-tools{display:flex;align-items:flex-start;gap:.5rem 1.1rem;flex-wrap:wrap;margin-block:.4rem}
.dua-shelf-tools .dua-quick-filters{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem}
.dua-quick-filters button,.dua-shelf-filters summary{min-height:44px;display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .7rem;color:var(--green);background:transparent;border:0;border-radius:.5rem;font:600 .94rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.dua-quick-filters button[aria-pressed=true]{background:var(--pale);box-shadow:inset 0 -2px var(--green)}
.dua-quick-filters button svg,.dua-shelf-filters summary svg{width:18px;height:18px}
.dua-quick-filters [hidden],.dua-shelf-filters [hidden]{display:none}
.dua-shelf-filters summary{list-style:none}
.dua-shelf-filters summary::-webkit-details-marker{display:none}
.dua-shelf-filters summary::after{content:"";width:.45rem;height:.45rem;border-inline-end:2px solid;border-block-end:2px solid;transform:rotate(45deg);margin-inline:.25rem}
[dir=rtl] .dua-shelf-filters summary::after{transform:rotate(-45deg)}
.dua-shelf-filters[open]{flex-basis:100%;border-block-end:1px solid var(--line);padding-block-end:.35rem}
.dua-shelf-filters summary b{font-variant-numeric:tabular-nums;color:var(--ink)}
.dua-library .dua-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:54rem;margin-inline:auto}
.dua-library .dua-list .dua-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:0 .5rem;background:transparent;border:0;border-block-end:1px solid var(--line);border-radius:0;box-shadow:none;padding:.3rem .1rem}
.dua-library .dua-list .dua-card-open{grid-column:1;grid-row:1;margin:0;padding:.6rem .2rem;min-height:48px;width:100%;justify-content:center;text-align:start}
.dua-library .dua-list .dua-card-title{margin:0;font-size:1.06rem;line-height:1.45}
.dua-library .dua-list .dua-card-title[lang=ar]{font-size:1.3rem;line-height:1.65}
.dua-library .dua-list .dua-card>.dua-save{position:static;grid-column:3;grid-row:1;min-width:44px;min-height:44px;align-self:center;justify-self:end}
.dua-library .dua-list .dua-card>:is(.duration-badge,.dua-duration-from){grid-column:2;grid-row:1;margin:0;max-width:9rem}
.dua-library .dua-list .dua-card>.devotion-tags{grid-row:2;grid-column:1/-1;padding:0;margin:-.35rem 0 0 .2rem}
.dua-library .dua-list .dua-card>.devotion-tags a{background:none;border:0;padding-inline:.2rem;min-height:44px;font-size:.9rem;color:var(--green)}
.dua-shelf-pager{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding-block:.75rem}
.dua-shelf-pager :is(button,select){display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);color:var(--green);font:650 1rem/1.5 var(--font-ui,system-ui)}
.dua-shelf-pager select{padding-inline:.65rem;max-width:100%}
.dua-shelf-pager button:disabled{opacity:.45}
.dua-shelf-pager :focus-visible,.dua-shelf-tools :focus-visible,.dua-library .dua-card :focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:1px}

.dua-library .dua-viewbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:var(--panel);min-block-size:2.75rem}
.dua-library .dua-viewbar:has(.catalogue-view-controls){position:sticky;inset-block-start:0;z-index:2}
.dua-library .dua-viewbar .dua-status{margin:0}
.dua-library[data-worship-catalogue] .dua-card-open{scroll-margin-block-start:4rem}

/* In a prayer passage, the number itself is the counting surface. */
.dua-dialog .dua-repeat-controls,
.shirazi-native-unit .gr-counter[data-native-count] {
  display:grid;grid-template-columns:repeat(3,minmax(44px,auto)) minmax(44px,1fr);
  align-items:center;justify-content:start;gap:.4rem;inline-size:100%;max-inline-size:28rem;margin-inline:auto
}
.shirazi-native-unit .gr-counter[data-native-count]{grid-template-columns:44px minmax(44px,1fr) 44px}
.dua-dialog .dua-repeat-controls>button.reading-count-pad,
.shirazi-native-unit .gr-counter[data-native-count]>button.reading-count-pad {
  grid-column:1/-1;grid-row:1;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.2rem;inline-size:100%;min-inline-size:0;block-size:auto;min-block-size:5rem;padding:.55rem;border:1px solid var(--count-solid,#665078);
  border-radius:.9rem;background:var(--count-solid,#665078);color:#fff;touch-action:manipulation;box-shadow:none
}
:is(.dua-repeat-controls,.gr-counter) .reading-count-pad>output {font-variant-numeric:tabular-nums;color:inherit;font-size:1.6rem;font-weight:700;line-height:1.3}
.reading-count-hint{display:flex;align-items:center;justify-content:center;gap:.3rem;font-size:.875rem}
.reading-count-hint svg{height:1rem;width:1rem;flex:none}
.reading-counter-beads{display:block;inline-size:min(100%,15rem)}
.reading-count-pad .reading-counter-beads svg.count-bead-strand{display:block;inline-size:100%;height:3.3rem;color:white}
.dua-dialog .dua-repeat-controls>button.reading-count-pad:disabled,.shirazi-native-unit .gr-counter>button.reading-count-pad:disabled{opacity:.85;cursor:default}
.shirazi-native-unit .gr-counter [data-native-count-focus]{grid-column:2;grid-row:2;justify-self:center}
.shirazi-native-unit .gr-counter [data-native-reset]{grid-column:3;grid-row:2}
.dua-repeat-controls>button:not(.reading-count-pad),.shirazi-native-unit .gr-counter>button:not(.reading-count-pad){min-width:44px;min-height:44px}
.dua-repeat-controls>[data-dua-repeat-focus]{justify-self:end;margin:0}

.dua-series-row{grid-row:2;grid-column:1/-1;display:flex;align-items:center;min-width:0;padding-inline:.2rem}
.dua-series-row {flex-wrap:wrap;column-gap:.7rem;}
.dua-series-row>.devotion-tags {margin:0;padding:0;}
.dua-series-row>.devotion-tags a {display:inline-flex;align-items:center;min-block-size:44px;padding:0 .1rem;color:var(--green);background:transparent;border:0;text-decoration:underline;text-underline-offset:.18em;}
.dua-family-tag{display:inline-flex;align-items:center;gap:.35rem;min-block-size:44px;max-inline-size:100%;color:var(--folio-worship,var(--green));font-family:var(--font-ui,inherit);font-size:.875rem;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
.dua-family-tag:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:.22em}
.dua-family-tag:focus-visible{outline:2px solid currentColor;outline-offset:1px;border-radius:.25rem}
.dua-family-tag svg{width:1rem;height:1rem;flex:none}
.dua-series-row>bdi{font-size:.875rem;color:var(--muted);line-height:1.5;padding-block-end:.4rem}
.dua-reader-title-wrap:has(.dua-family-tag){display:flex;flex-wrap:wrap;align-items:center;gap:0 .6rem;min-inline-size:0}
.dua-reader-title-wrap:has(.dua-family-tag) h2{flex-basis:100%}
.dua-edition-title>span{font-weight:600}

.dua-library [data-shirazi-author] {margin:.1rem 0 .25rem;color:var(--muted);font-size:.9375rem;}
.dua-library :is([data-shirazi-author],.dua-browse-extras)[hidden] {display:none!important;}
.dua-library .dua-list[data-catalogue-view="book"] {display:block;}
.dua-library:has(.shirazi-landing) .dua-viewbar {display:none;}
.shirazi-landing {margin:.75rem 0;min-inline-size:0;}
.shirazi-landing h2 {margin:1.15rem 0 .3rem;color:var(--ink);font-size:1.12rem;}
.shirazi-landing-guides {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;}
html body .shirazi-landing-guides a {position:relative;display:grid;overflow:hidden;isolation:isolate;align-items:end;aspect-ratio:1.8;border:0;border-radius:.85rem;color:#fff;background:#354340;text-decoration:none;}
.shirazi-landing-guides img,.shirazi-landing-guides a::after {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}
.shirazi-landing-guides a::after {content:'';background:linear-gradient(transparent 28%,rgba(21,25,29,.85));z-index:-1;}
.shirazi-landing-guides strong {padding:.45rem .75rem;font-size:clamp(1.1rem,4vw,1.55rem);line-height:1.55;}
.shirazi-landing-chapters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.2rem;}
html body .shirazi-landing-chapters a,.shirazi-print-index {display:flex;align-items:center;gap:.65rem;min-block-size:48px;border-block-end:1px solid var(--line);color:var(--ink);text-decoration:none;}
.shirazi-landing-chapters a svg,.shirazi-print-index svg {flex:none;width:1.15rem;height:1.15rem;color:var(--folio-ink,var(--green));}
.shirazi-landing-chapters strong {font-size:1rem;line-height:1.55;font-weight:600;}
.shirazi-landing-chapters a svg:last-child {margin-inline-start:auto;width:1rem;}
html body .shirazi-print-index {width:fit-content;padding:.25rem 0;border:0;font-size:.94rem;color:var(--folio-ink,var(--green));}
@media(max-width:32rem){.shirazi-landing-chapters{grid-template-columns:1fr;}}
.shirazi-chapter-shortcuts {grid-column:1/-1;margin:0 0 .45rem;}
.shirazi-chapter-shortcuts summary {display:flex;align-items:center;gap:.5rem;cursor:pointer;min-height:44px;color:var(--folio-ink,var(--green));font-weight:650;}
.shirazi-chapter-shortcuts summary::after {content:'⌄';margin-inline-start:auto;}
.shirazi-chapter-shortcuts summary svg {width:1.15rem;height:1.15rem;}
.shirazi-chapter-shortcuts nav {display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.25rem .7rem;}
.shirazi-chapter-shortcuts a {display:flex;align-items:center;min-height:44px;border-block-end:1px solid var(--line);color:var(--ink);}

html body .dua-library.shirazi-shelf {display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 .5rem;align-items:start;max-inline-size:52rem;margin-inline:auto;}
.shirazi-shelf>.dua-folio-parent {grid-column:1/-1;justify-self:start;min-block-size:40px;margin:0;}
.shirazi-shelf-heading {grid-column:1;grid-row:2;min-inline-size:0;}
.shirazi-shelf-heading h1 {margin:0;color:var(--ink);font-size:clamp(1.55rem,5vw,2.45rem);line-height:1.35;}
.shirazi-shelf-heading:lang(ar) h1 {line-height:1.6;letter-spacing:0;}
.shirazi-shelf>.shirazi-shelf-tools,.shirazi-shelf-tools::details-content {display:contents;}
.shirazi-shelf-tools>summary {grid-column:2;grid-row:2;display:grid;place-items:center;inline-size:44px;block-size:44px;list-style:none;cursor:pointer;color:var(--folio-ink,var(--green));background:var(--folio-pale,var(--pale));border-radius:50%;}
.shirazi-shelf-tools>summary::-webkit-details-marker {display:none;}
.shirazi-shelf-tools>summary svg {width:1.25rem;height:1.25rem;}
.shirazi-shelf-toolbody,.shirazi-shelf>.dua-viewbar,.shirazi-shelf>.dua-list {grid-column:1/-1;width:100%;min-width:0;}
.shirazi-shelf-toolbody {display:grid;gap:.5rem;margin-block:.5rem;padding:.55rem .65rem;background:var(--panel);border:1px solid var(--line);border-radius:.75rem;}
.shirazi-shelf-tools:not([open]) .shirazi-shelf-toolbody {display:none;}
.shirazi-shelf-toolbody :is(.dua-quick-filters,.dua-source-filter) {margin:0;}
.shirazi-shelf-toolbody .dua-quick-filters {flex-wrap:wrap;}
.shirazi-shelf .shirazi-landing {margin:.55rem 0;}
.shirazi-shelf .shirazi-landing h2 {margin:.75rem 0 .15rem;}
/* One quiet, reversible way to inspect retained source differences. */
.dua-edition-variants{margin:.15rem 1rem .5rem;border:1px solid var(--line,#d4dfd8);border-radius:.75rem;background:var(--panel,#fff);font-size:.875rem;color:var(--ink,#203b35)}
.dua-edition-variants summary{min-height:2.75rem;display:flex;align-items:center;gap:.5rem;padding:.45rem .75rem;cursor:pointer;font-weight:600}
.dua-edition-variants summary::after{content:'+';margin-inline-start:auto}
.dua-edition-variants[open] summary::after{content:'−'}
.dua-edition-variants p{margin:.25rem .75rem .65rem;line-height:1.6}
.dua-edition-variants nav{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 .75rem .75rem}
.dua-edition-variants nav a,.dua-edition-variants nav button{display:inline-flex;align-items:center;min-height:2.75rem;padding:.45rem .65rem;color:var(--accent,#17685a);border:1px solid var(--line,#d4dfd8);border-radius:.5rem;background:transparent;text-decoration:none;font:inherit}
.dua-edition-variants[open]{max-block-size:min(35svh,24rem);overflow:auto;overscroll-behavior:contain;scroll-padding-block:.75rem;flex-shrink:0}
.dua-edition-variants [data-dua-compare]{font-weight:650;background:var(--pale,#e5f1e9)}
.dua-edition-variants [data-dua-compare]:disabled{opacity:.65;cursor:wait}
.dua-edition-variants [data-dua-comparison-status]:empty{display:none}
.dua-edition-variants [data-dua-comparison]{padding:0 .75rem .75rem}
.dua-comparison-key{display:grid;gap:.5rem;margin:.25rem 0 .75rem;font-size:.85rem}
.dua-comparison-key>div{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:.5rem}
.dua-comparison-key dt{font-weight:650}.dua-comparison-key dd{margin:0;overflow-wrap:anywhere}
.dua-edition-variants .dua-comparison-note{margin:.5rem 0;color:var(--muted,#52665d);font-size:.85rem;line-height:1.7}
.dua-comparison-example{margin-block:.85rem;border-block-start:1px solid var(--line,#d4dfd8);padding-block-start:.65rem}
.dua-comparison-example h4{margin:0 0 .5rem;font:650 .9rem/1.6 var(--font-ui,system-ui);color:var(--ink,#203b35)}
.dua-comparison-edition{padding:.55rem .65rem;background:var(--bg,#f7f9f5);border-radius:.5rem;margin-block:.4rem;min-inline-size:0}
.dua-comparison-edition>span{display:block;color:var(--muted,#52665d);font:500 .8rem/1.6 var(--font-ui,system-ui)}
.dua-edition-variants .dua-comparison-edition p{margin:.25rem 0 0;font:400 1.3rem/2.1 Amiri,"Noto Naskh Arabic",serif;color:var(--ink,#203b35);white-space:pre-wrap;overflow-wrap:break-word}
.dua-comparison-edition mark{color:inherit;background:color-mix(in srgb,var(--green,#17685a) 16%,var(--panel,#fff));border-block-end:2px solid var(--green,#17685a);padding-block:.08em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.dua-comparison-edition small{display:block;color:var(--muted,#52665d);font-size:.8rem;line-height:1.6}
.dua-edition-variants :is(button,a,summary):focus-visible{outline:3px solid var(--focus-ring,#955113);outline-offset:2px}
@media(max-width:420px){.dua-comparison-key>div{grid-template-columns:minmax(0,1fr);gap:.1rem}}
@media(forced-colors:active){.dua-comparison-edition mark{background:Highlight;color:HighlightText;border-color:HighlightText}}


/* /dua-commentary.css */
.dua-commentary{margin-top:1.25rem;padding-top:1.1rem;border-top:1px solid var(--line);font-family:var(--font-ui,system-ui);color:var(--ink);text-align:start}
.dua-commentary[hidden]{display:none}
.dua-commentary h3{font-size:1.05rem;margin:0 0 .75rem}
.dua-commentary-tabs{display:flex;gap:.4rem;margin-bottom:.9rem;padding:.25rem;background:var(--bg);border-radius:10px;width:fit-content}
.dua-commentary-tabs button{min-height:44px;padding:.55rem 1.1rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-weight:650}
.dua-commentary-tabs button[aria-selected=true]{background:var(--panel);border-color:var(--line);color:var(--green)}
.dua-commentary-card,.dua-commentary-evidence{border:1px solid var(--line);border-radius:12px;padding:1rem;margin:.75rem 0;background:var(--panel)}
.dua-commentary-card h4,.dua-commentary-evidence h4{margin:.2rem 0 .5rem;font-size:1.1rem;line-height:1.5;color:var(--green)}
.dua-commentary-card p,.dua-commentary-evidence p{font-size:1rem;line-height:1.75;margin:.5rem 0}
.dua-commentary .dua-commentary-kicker{font-size:.875rem;color:var(--muted);margin:0}
.dua-commentary .dua-commentary-author{font-size:.9rem;font-weight:600;margin:.25rem 0 .75rem}
.dua-commentary .dua-commentary-edition{font-size:.875rem;color:var(--muted)}
.dua-commentary-links{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.75rem}
.dua-commentary-links button,.dua-commentary-links a,.dua-commentary-native{display:inline-flex;align-items:center;min-height:44px;padding:.45rem .7rem;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--light-blue,#e8f1f3);color:var(--green);font:inherit;font-size:.9rem;text-decoration:none}
.dua-commentary-evidence blockquote{margin:.7rem 0;padding:.6rem .8rem;border-inline-start:3px solid var(--gold,#aa915b);font-family:var(--font-arabic,serif);font-size:1.4rem;line-height:2;background:var(--bg)}
.dua-commentary-research{font-size:.9rem;margin-top:1rem;border-top:1px solid var(--line);padding-top:.7rem}
.dua-commentary-research summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}
.dua-commentary button:focus-visible,.dua-commentary a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(max-width:600px){.dua-commentary-card,.dua-commentary-evidence{padding:.8rem}.dua-commentary-card h4,.dua-commentary-evidence h4{font-size:1rem}.dua-commentary-links{gap:.4rem}}


/* /dua-sajdah-practice.css */
.dua-sajdah-invite{display:flex;align-items:center;gap:12px;width:100%;margin:12px 0 18px;padding:13px 15px;border:1px solid color-mix(in srgb,var(--green) 25%,var(--line));border-radius:14px;background:var(--pale);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.dua-sajdah-invite>span:nth-last-child(2){flex:1;min-width:0}.dua-sajdah-invite strong{display:block;font-size:14px;line-height:1.4}.dua-sajdah-invite small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.5}.dua-sajdah-invite-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;color:var(--green)}.dua-sajdah-invite svg{width:24px;height:24px}
.dua-sajdah-panel{--sajdah-bg:var(--panel,#fff);--sajdah-ink:var(--ink,#1a302b);--sajdah-muted:#586c62;--sajdah-soft:var(--pale,#eaf5ef);--sajdah-line:var(--line,#dde7df);box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-width:640px;max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--sajdah-line);border-radius:20px;background:var(--sajdah-bg);color:var(--sajdah-ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 90px #071c2b55;font-family:var(--font-ui,sans-serif);font-size:14px;text-align:start}
.dua-sajdah-panel::backdrop{background:#071c2bb8;backdrop-filter:blur(3px)}.dua-sajdah-panel.is-dim{--sajdah-bg:#172b25;--sajdah-ink:#eef5ed;--sajdah-muted:#c2d0c3;--sajdah-soft:#243f33;--sajdah-line:#476052}
.dua-sajdah-heading{display:flex;align-items:flex-start;gap:16px;padding:22px 24px 17px;border-bottom:1px solid var(--sajdah-line)}.dua-sajdah-heading>div{flex:1;min-width:0}.dua-sajdah-heading>div>span{font-size:10px;font-weight:800;letter-spacing:1.1px;color:var(--sajdah-muted)}.dua-sajdah-heading h2{font-size:21px;line-height:1.35;margin:7px 0}.dua-sajdah-heading p{margin:0;color:var(--sajdah-muted);line-height:1.5;font-size:12px}.dua-sajdah-heading>button{flex:none;width:44px;height:44px;border:1px solid var(--sajdah-line);border-radius:50%;background:var(--sajdah-soft);color:var(--sajdah-ink);font-size:25px;cursor:pointer}
.dua-sajdah-body{padding:18px 24px 22px}.dua-sajdah-position{display:flex;align-items:center;gap:14px;color:var(--sajdah-muted);font-size:12px;font-weight:700}.dua-sajdah-position output{white-space:nowrap}.dua-sajdah-position progress{appearance:none;width:100%;height:5px;border:0;border-radius:6px;background:var(--sajdah-line);accent-color:var(--green,#187b66)}.dua-sajdah-position progress::-webkit-progress-bar{background:var(--sajdah-line);border-radius:6px}.dua-sajdah-position progress::-webkit-progress-value{background:var(--green,#187b66);border-radius:6px}
.dua-sajdah-phrase{padding:17px 0 14px}.dua-sajdah-arabic{font-family:var(--arabic,serif);font-size:clamp(32px,5.6vw,40px);font-weight:400;line-height:1.85;text-align:center;margin:4px 0 18px;color:var(--sajdah-ink);overflow-wrap:break-word}.dua-sajdah-arabic [data-sajdah-current]{background:var(--sajdah-soft);box-shadow:0 2px 0 var(--green,#187b66);border-radius:3px}.dua-sajdah-aids{text-align:center;line-height:1.6}.dua-sajdah-aids[hidden]{display:none}.dua-sajdah-latin{font-size:16px;font-weight:650;margin:0 0 8px;overflow-wrap:anywhere;color:var(--sajdah-ink)}.dua-sajdah-translation{font-size:14px;margin:0;color:var(--sajdah-muted)}
.dua-sajdah-phrase-nav{display:flex;justify-content:space-between;gap:10px;margin-bottom:18px}.dua-sajdah-panel button:not(.dua-sajdah-heading>button){min-height:44px;border:1px solid var(--sajdah-line);border-radius:10px;background:var(--sajdah-bg);color:var(--sajdah-ink);font:inherit;font-size:12px;font-weight:700;padding:10px 13px;cursor:pointer}.dua-sajdah-panel button:disabled{opacity:.45;cursor:default}.dua-sajdah-panel button:focus-visible,.dua-sajdah-panel a:focus-visible,.dua-sajdah-panel summary:focus-visible,.dua-sajdah-panel select:focus-visible,.dua-sajdah-invite:focus-visible{outline:3px solid #88d5b5;outline-offset:3px}
.dua-sajdah-audio{border:1px solid var(--sajdah-line);border-radius:14px;padding:14px;background:var(--sajdah-soft)}.dua-sajdah-audio-title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px;margin-bottom:11px}.dua-sajdah-audio-title strong{font-size:12px}.dua-sajdah-audio-title>span{font-size:11px;color:var(--sajdah-muted)}.dua-sajdah-play{display:flex;flex-wrap:wrap;gap:7px}.dua-sajdah-panel .dua-sajdah-play [data-sajdah-play]{background:var(--green,#187b66);border-color:var(--green,#187b66);color:#fff}.dua-sajdah-panel .dua-sajdah-play button[aria-pressed=true]{box-shadow:0 0 0 2px var(--sajdah-ink)}.dua-sajdah-status{font-size:12px;color:var(--sajdah-muted);line-height:1.5;margin:10px 0 0;min-height:18px}.dua-sajdah-options{margin-top:9px;border-top:1px solid var(--sajdah-line)}.dua-sajdah-options>summary{display:list-item;min-height:44px;align-content:center;cursor:pointer;font-size:12px;font-weight:700}.dua-sajdah-options p{font-size:11px;line-height:1.6;color:var(--sajdah-muted);margin:10px 0 0}.dua-sajdah-settings{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px;margin:0 0 9px}.dua-sajdah-settings label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px}.dua-sajdah-settings label[hidden]{display:none}.dua-sajdah-settings select{min-width:0;width:100%;height:44px;background:var(--sajdah-bg);color:var(--sajdah-ink);border:1px solid var(--sajdah-line);border-radius:8px;padding:8px;font:inherit}.dua-sajdah-check{display:flex;align-items:flex-start;gap:9px;padding:9px 0;min-height:26px;font-size:12px;line-height:1.5}.dua-sajdah-check input{flex:none;margin-top:3px;accent-color:var(--green,#187b66)}.dua-sajdah-guide{margin-top:15px}.dua-sajdah-guide .amal-gesture-cue{color:var(--sajdah-ink);border-color:var(--sajdah-line);background:var(--sajdah-soft);font-size:12px}
@media(max-width:480px){.dua-sajdah-heading{padding:17px 16px 14px;gap:10px}.dua-sajdah-heading h2{font-size:19px}.dua-sajdah-body{padding:15px 16px 18px}.dua-sajdah-audio{padding:11px}.dua-sajdah-play{gap:5px}.dua-sajdah-panel .dua-sajdah-play button{padding:9px 10px}.dua-sajdah-arabic{font-size:34px;line-height:1.8}.dua-sajdah-phrase{padding:13px 0}.dua-sajdah-latin{font-size:15px}}


/* /taqibat-hub.css */
/* Compact routes into existing readers; counters remain in their own practices. */
.taqibat-hub{max-width:960px;margin:auto;padding:1rem 0 3rem;color:var(--ink,#253d35)}.taqibat-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.2rem 0}.taqibat-heading h1{font-size:clamp(1.75rem,4vw,2.35rem);line-height:1.25;margin:.3rem 0}.taqibat-heading p{margin:.5rem 0;line-height:1.65;color:var(--muted,#596d64)}.taqibat-kicker{font-size:.75rem;letter-spacing:.07em;font-weight:650;color:var(--green,#23584b)}.taqibat-build{font:600 .9rem/1.4 var(--font-ui,system-ui,sans-serif);padding:.7rem 1rem;min-height:44px;flex:none;border-radius:10px;border:1px solid var(--green,#23584b);background:var(--green,#23584b);color:white;cursor:pointer}
.taqibat-quran{padding:1.2rem 1.3rem;border:1px solid var(--border,#dce4dc);border-inline-start:4px solid var(--green,#23584b);border-radius:15px;background:var(--surface-soft,#eef3ef)}.taqibat-quran h2{margin:.3rem 0;font-size:1.2rem}.taqibat-quran p{font-size:.9rem;line-height:1.55;margin:.4rem 0 .8rem;color:var(--muted,#596d64)}.taqibat-quran nav{display:flex;flex-wrap:wrap;gap:.45rem}.taqibat-quran nav a{padding:.55rem .8rem;min-height:44px;display:inline-flex;align-items:center;border:1px solid var(--border,#dce4dc);border-radius:9px;background:var(--surface,#fffdf8);color:var(--green,#23584b);text-decoration:none;font-size:.9rem;font-weight:600}.taqibat-guide-link{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin-top:.35rem;color:var(--green,#23584b);font-size:.875rem}
.taqibat-prayers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.35rem;margin:1.2rem 0}.taqibat-prayers a{display:flex;justify-content:center;align-items:center;padding:.65rem .3rem;min-height:44px;text-align:center;border:1px solid var(--border,#dce4dc);border-radius:10px;color:var(--muted,#596d64);text-decoration:none;font-weight:600;font-size:.9rem}.taqibat-prayers a[aria-current]{color:var(--green,#23584b);background:var(--surface-soft,#eef3ef);border-color:var(--green,#23584b);box-shadow:inset 0 -2px var(--green,#23584b)}.taqibat-section{margin:1.25rem 0}.taqibat-section h2{font-size:1.05rem;margin:0 0 .65rem;line-height:1.5}.taqibat-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.taqibat-card{display:flex;align-items:stretch;gap:.3rem;min-width:0;border:1px solid var(--border,#dce4dc);background:var(--surface,#fffdf8);border-radius:13px}.taqibat-reading{display:grid;flex:1;min-width:0;align-content:start;gap:.4rem;padding:1rem;color:inherit;text-decoration:none}.taqibat-reading strong{font-size:1rem;line-height:1.45}.taqibat-reading small{font-size:.85rem;line-height:1.5;color:var(--muted,#596d64)}.taqibat-open{font-size:.85rem;font-weight:600;color:var(--green,#23584b)}.taqibat-count{font-size:.85rem;font-variant-numeric:tabular-nums;color:var(--green,#23584b)}.taqibat-add{align-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;min-height:50px;margin-inline-end:.65rem;padding:.3rem;border:1px solid var(--border,#dce4dc);border-radius:10px;color:var(--green,#23584b);background:var(--surface-soft,#eef3ef);cursor:pointer;font:500 .75rem/1.4 var(--font-ui,system-ui,sans-serif)}.taqibat-add>span:first-child{font-size:1.25rem;line-height:1.1}.taqibat-card.is-compact .taqibat-reading{padding:.85rem}.taqibat-card.is-compact strong{font-size:.95rem}.taqibat-card.is-compact small{font-size:.8125rem}
.taqibat-closing{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.2rem 0;padding:1rem 1.2rem;border:1px solid var(--border,#dce4dc);border-radius:13px;text-decoration:none;color:inherit}.taqibat-closing strong,.taqibat-closing small{display:block}.taqibat-closing small{font-size:.875rem;line-height:1.5;margin-top:.35rem;color:var(--muted,#596d64)}.taqibat-more{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}.taqibat-more a{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;color:var(--green,#23584b)}.taqibat-status:empty{display:none}.taqibat-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem 1rem;padding:1rem 1.2rem;margin:1rem 0;border:1px solid var(--border,#dce4dc);border-inline-start:4px solid var(--green,#23584b);border-radius:13px;background:var(--surface-soft,#eef3ef);color:inherit;text-decoration:none}.taqibat-entry>span{font-size:.7rem;font-weight:650;letter-spacing:.07em;color:var(--green,#23584b)}.taqibat-entry strong{font-size:1.05rem;grid-column:1}.taqibat-entry small{font-size:.875rem;line-height:1.5;grid-column:1;color:var(--muted,#596d64)}.taqibat-entry>b{grid-column:2;grid-row:1/4;align-self:center;color:var(--green,#23584b)}.taqibat-hub a:focus-visible,.taqibat-hub button:focus-visible,.taqibat-entry:focus-visible{outline:3px solid var(--green,#23584b);outline-offset:3px}.taqibat-card:hover,.taqibat-closing:hover,.taqibat-entry:hover{border-color:var(--green,#23584b)}
.dark .taqibat-quran,.dark .taqibat-card,.dark .taqibat-closing,.dark .taqibat-prayers a,.dark .taqibat-entry{border-color:var(--line,#395044);background:var(--panel,#1f3029)}.dark .taqibat-quran nav a,.dark .taqibat-add{background:var(--panel,#1f3029);border-color:var(--line,#395044)}@media(max-width:600px){.taqibat-heading{align-items:flex-start;flex-direction:column;gap:.5rem}.taqibat-prayers{grid-template-columns:repeat(3,minmax(0,1fr))}.taqibat-quran{padding:1rem}.taqibat-cards{grid-template-columns:1fr}.taqibat-reading{padding:.9rem}.taqibat-card.is-compact .taqibat-reading{padding:.8rem}.taqibat-entry{padding:.9rem 1rem}.taqibat-heading p{font-size:.9375rem}.taqibat-hub{padding-top:.7rem}}

.taqibat-closing-reading{display:flex;align-items:center;gap:.65rem;flex:1;min-inline-size:0;min-block-size:44px;color:inherit;text-decoration:none}.taqibat-closing-reading>span:first-child{flex:1;min-inline-size:0}.taqibat-closing-reading .duration-badge{margin-block-start:.45rem}.taqibat-closing>.routine-add-pair{flex:none}
.taqibat-riwayat{margin-top:1rem;border:1px solid var(--border,#dce4dc);border-radius:13px;padding:0 1rem}.taqibat-riwayat>summary{min-height:48px;display:flex;align-items:center;font-size:.95rem;font-weight:600;cursor:pointer;color:var(--green,#23584b);list-style:none;gap:.75rem}.taqibat-riwayat>summary::after{content:'+';margin-inline-start:auto;font-size:1.15rem}.taqibat-riwayat[open]>summary::after{content:'−'}.taqibat-riwayat>p,.taqibat-riwayat article p{font-size:.875rem;line-height:1.6;color:var(--muted,#596d64);margin:.35rem 0}.taqibat-riwayat article{padding:.8rem 0;border-top:1px solid var(--border,#dce4dc)}.taqibat-riwayat h3{font-size:.95rem;margin:.1rem 0}.taqibat-riwayat a{display:inline-flex;align-items:center;min-height:44px;margin-inline-end:1rem;color:var(--green,#23584b);font-size:.875rem}.taqibat-riwayat small{display:block;color:var(--muted,#596d64)}.taqibat-riwayat>summary:focus-visible{outline:3px solid var(--green,#23584b);outline-offset:2px}.taqibat-riwayat>summary::-webkit-details-marker{display:none}.dark .taqibat-riwayat,.dark .taqibat-riwayat article{border-color:var(--line,#395044)}


/* /experience-v7.css */
/* Quiet, connected reading on a phone. Brand: manuscript ivory, emerald and brass. */
.reader-top-options{display:none!important}.reader-page .reader-top-options{display:grid!important;font:700 16px Georgia,serif}.reader-header{flex-direction:row!important}.study-segments [aria-pressed=true],.browse-tabs [aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:0 2px 8px #133f3010}.home-quick-v7{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 24px}.home-quick-v7>button,.quran-search-entry{display:flex;align-items:center;text-align:start;gap:13px;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--ink);min-height:78px;font:700 13px/1.5 inherit}.home-quick-v7 svg,.quran-search-entry svg{width:23px;height:23px;stroke:var(--green);stroke-width:1.5;fill:none;flex:none}.home-quick-v7 span,.quran-search-entry span{display:block}.home-quick-v7 small,.quran-search-entry small{display:block;font-size:11px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:3px}.quran-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.quran-title-row>.text-link{gap:5px;flex:none}.quran-title-row svg{width:17px;height:17px}.quran-search-entry{width:100%;margin-bottom:20px;background:var(--pale)}.quran-search-entry>b{margin-inline-start:auto}.browse-tabs{display:flex;padding:4px;background:var(--pale);border:1px solid var(--line);border-radius:13px;gap:4px;margin:15px 0}.browse-tabs button{flex:1;min-height:44px;border:0;border-radius:9px;background:none;color:var(--muted);font:700 13px inherit}.juz-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.juz-grid button{min-height:86px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:13px;color:var(--ink);gap:6px}.juz-grid small{font-size:9px;letter-spacing:1px;color:var(--muted)}.juz-grid strong{font:25px Georgia,serif}.page-browser{padding:23px;border:1px solid var(--line);background:var(--panel);border-radius:18px}.page-browser h2{font:24px Georgia,serif}.page-browser p{font-size:13px;line-height:1.8;color:var(--muted)}#pageJump{display:flex;flex-wrap:wrap;gap:10px;align-items:center}#pageJump label{width:100%;font-size:12px}#pageJump input{width:90px;min-height:46px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);text-align:center;font:inherit}.page-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.page-shortcuts .tool{min-width:44px}.devotion-heading{margin-bottom:22px}.devotion-heading .page-title{margin-bottom:10px}.devotion-heading .subtle{line-height:1.8}.reader-location{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);padding:8px 0}.reader-location button{background:none;border:0;color:var(--green);font:inherit;min-height:44px;padding:4px}.reader-location small{margin-inline-start:auto;font-size:9px}.verse-en{font-size:var(--english-size,14px)!important}.verse-transliteration{font-size:var(--translit-size,15px);line-height:1.85;color:var(--green);margin:14px 0}.verse-transliteration small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.verse-actions .word-action>span{font:24px var(--arabic);line-height:1}.verse-actions .verse-listen{flex:0 0 44px}.v7-options{scroll-margin-top:82px;padding:20px}.options-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.options-title strong{font:22px Georgia,serif}.layout-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.layout-choice label{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:13px;font-size:13px;min-height:74px;cursor:pointer}.layout-choice label:has(input:checked){background:var(--pale);border-color:var(--gold)}.layout-choice input{min-height:24px;width:20px;flex:none;accent-color:var(--green)}.layout-choice small{display:block;font-size:10px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:5px}.reader-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;border-bottom:1px solid var(--line);font-size:13px}.reader-switch input{width:25px;height:25px;accent-color:var(--green);margin:10px;flex:none}.reader-font-sliders{display:grid;gap:15px;padding:22px 0}.reader-font-sliders label>span{display:flex;justify-content:space-between;font-size:12px}.reader-font-sliders b{font-weight:500;color:var(--gold)}.reader-font-sliders input{width:100%;height:44px;accent-color:var(--green)}.reader-audio-options{margin-top:20px;border-top:1px solid var(--line);padding-top:10px}.reader-audio-options summary{min-height:44px;cursor:pointer;font-size:13px;font-weight:700;padding-top:13px}.audio-option-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:15px 0}.audio-option-grid label,#audioLoop label{font-size:11px;line-height:1.7;display:flex;flex-direction:column;gap:7px;min-width:0}.audio-option-grid select,#audioLoop select,#audioLoop input{min-height:44px;padding:8px;width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:13px inherit}#audioLoop{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;border-top:1px solid var(--line);padding-top:18px}#audioLoop>span,#audioLoop>button{grid-column:1/-1}#audioLoop>span{font-size:13px;font-weight:700;margin-bottom:5px}#audioLoop>.btn{margin-top:4px;min-height:46px}.flow-reading .verses-reading-surface{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:8px 22px}.flow-reading .verse-card{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:20px 0;box-shadow:none}.flow-reading .verse-card:last-child{border-bottom:0}.flow-reading .verse-card.selected-verse{box-shadow:none}.flow-reading .verse-ar{line-height:2.4}.flow-reading .verse-top{opacity:.7}.flow-reading .selected-verse .verse-top{opacity:1}.flow-reading .verse-actions{border-top:0;padding-top:5px}.flow-reading .verse-actions button{background:transparent}.companion-header{gap:10px}.companion-title{flex:1;min-width:0}.companion-header h2{overflow-wrap:anywhere}.companion-step{display:flex;gap:5px;flex:none}.companion-step button{height:44px;width:44px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-size:25px}.companion-step button:disabled{opacity:.35}.companion-controls [role=tablist]{width:100%;min-width:0}.companion-controls [role=tab]{min-width:0;font-size:12px;white-space:nowrap}.companion-scroll #companionNotes{padding-top:20px}.reader-dock>button{padding-inline:12px}.reader-dock .dock-verse{min-width:0;flex:1}.dark .reader-location button,.dark .verse-transliteration{color:#bfd2af}.dark .home-quick-v7 svg,.dark .quran-search-entry svg{stroke:#c2d1ac}.dark .reader-switch input,.dark .reader-font-sliders input{accent-color:#c6b37a}
@media(max-width:700px){.home-quick-v7{gap:10px}.home-quick-v7>button{padding:14px 12px;align-items:flex-start;gap:9px;font-size:12px}.home-quick-v7 svg{width:20px;height:20px}.home-quick-v7 small{font-size:10px}.quran-title-row .page-title{font-size:26px}.juz-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.juz-grid button{min-height:76px}.page-browser{padding:20px}.reader-header .reader-appearance{display:none}.reader-page .top-right{gap:3px}.reader-page .top-brand{gap:5px}.reader-page .topbar{padding-inline:13px}.v7-options{padding:16px}.options-title strong{font-size:21px}.layout-choice{gap:8px}.layout-choice label{padding:10px;font-size:12px;gap:7px}.companion-header{padding-inline:16px}.companion-header h2{font-size:21px}.companion-controls{padding-inline:12px}.companion-controls [role=tab]{font-size:11px}.companion-step{gap:3px}.companion-step button{width:44px}.reader-dock>button{padding-inline:10px;font-size:11px}.reader-dock>button svg{display:none}.reader-dock .dock-verse{min-width:47px}.reader-dock .dock-verse>span{font-size:7px;letter-spacing:.5px}.reader-location{gap:10px}.verse-actions{gap:5px}.verse-actions .verse-action{font-size:10px;padding-inline:5px;gap:4px}.verse-actions .ai-badge{display:none}.flow-reading .verses-reading-surface{padding-inline:15px}.verse-en{line-height:1.9}.reader-font-sliders label>span{font-size:13px}.mobile-nav{justify-content:space-around}.mobile-nav button{font-size:10px;min-width:44px}.home-quick-v7>button{font-family:inherit}}
@media(max-width:360px){.home-quick-v7{grid-template-columns:1fr}.home-quick-v7>button{align-items:center;min-height:68px}.home-quick-v7 small{font-size:11px}.reader-page .top-brand span{font-size:15px}.reader-page .top-brand img{width:28px;height:28px}.reader-page .language-button{padding-inline:8px;font-size:12px}.reader-page .topbar{padding-inline:10px}.reader-page .top-right .circle-btn{width:44px;min-width:44px}.companion-header{padding-inline:12px;gap:6px}.companion-header h2{font-size:19px}.companion-eyebrow{letter-spacing:.8px;font-size:7px}.companion-step{gap:2px}.companion-close{width:44px}.companion-controls [role=tab]{font-size:10px;padding-inline:3px}.reader-dock>button{padding-inline:8px;font-size:10px}.reader-dock>button small{display:none}.reader-location small{width:100%;margin:0}.juz-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.verse-actions .verse-action{font-size:9px}.verse-actions svg{width:15px;height:15px}.layout-choice label{font-size:11px}.options-title strong{font-size:19px}}
[dir=rtl] .options-title strong,[dir=rtl] .page-browser h2{font-family:var(--arabic)}[dir=rtl] .companion-controls [role=tab]{font-size:13px}[dir=rtl] .home-quick-v7>button{font-size:15px}[dir=rtl] .companion-step{direction:ltr}[dir=rtl] .verse-transliteration{direction:ltr}[dir=rtl] .mobile-nav button{font-size:12px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}

.devotion-segments~.calendar-page .cal-heading,.devotion-segments~.dua-library .dua-heading{display:none}.devotion-segments{margin-bottom:20px}.calendar-page .cal-month-panel{top:84px}


/* /learning.css */
/* Learning shares Tilāwah’s jade, ivory and gold reading space. */
.learning-root{--learn-gold:#a38142;min-width:0;max-width:1000px;margin:auto;color:var(--ink)}.learning-root button,.learning-root a{touch-action:manipulation}.learning-root button{font:inherit;cursor:pointer}.learning-root h1,.learning-root h2,.learning-root h3{font-family:Manrope,'Noto Naskh Arabic',sans-serif;letter-spacing:-.5px}.learning-root button:focus-visible,.learning-root a:focus-visible,.learning-root summary:focus-visible{outline:3px solid #a38142;outline-offset:3px}.learning-root [data-learning-focus]:focus{outline:none}.learning-overview{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:8px 0 22px}.learning-eyebrow{font-size:10px!important;letter-spacing:1.2px;font-weight:800;color:var(--learn-gold)!important;margin:0 0 8px!important}.learning-overview h1{font-size:28px;margin:0 0 8px;line-height:1.25}.learning-overview p{margin:0;font-size:13px;color:var(--muted);line-height:1.6;max-width:580px}.learning-completed{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:120px;text-align:center;padding:10px 16px;border-inline-start:1px solid var(--line)}.learning-completed strong{font:800 30px Manrope,sans-serif;color:var(--green)}.learning-completed small{max-width:110px;color:var(--muted);font-size:11px;line-height:1.5}.learning-paths{display:flex;gap:6px;background:var(--light);padding:5px;border:1px solid var(--line);border-radius:14px;margin-bottom:18px}.learning-paths button{min-height:44px;flex:1;border:0;background:none;border-radius:10px;padding:8px 12px;color:var(--muted);font-weight:700;font-size:12px}.learning-paths button[aria-pressed=true]{background:var(--panel);color:var(--green);box-shadow:0 2px 8px #102c2710}.learning-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.learning-lesson{display:flex;align-items:center;gap:15px;padding:19px 17px;text-align:start;background:var(--panel);border:1px solid var(--line);border-radius:16px;min-height:122px;color:var(--ink);transition:border-color .15s,box-shadow .15s}.learning-lesson:hover{border-color:#9ab4a6;box-shadow:var(--shadow)}.learning-lesson-symbol{width:58px;height:66px;border-radius:14px;flex-shrink:0;background:var(--pale);color:var(--green);font:500 29px/1.35 var(--arabic);display:flex;align-items:center;justify-content:center;padding:7px;text-align:center;overflow:hidden;max-width:58px;word-break:break-word}.learning-lesson-copy{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}.learning-lesson-copy small{font-size:10px;letter-spacing:.1px;color:var(--learn-gold);line-height:1.5}.learning-lesson-copy strong{font-weight:800;line-height:1.4;font-size:15px}.learning-lesson-copy>span{font-size:12px;line-height:1.55;color:var(--muted)}.learning-lesson-state{color:var(--green);font-size:18px;align-self:center}.learning-lesson.is-complete{border-color:#a0c0ac}.learning-lesson.is-complete .learning-lesson-state{font-size:10px;max-width:60px;line-height:1.4}.learning-resume{background:#123c32;color:#f6f0dc;border-radius:16px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.learning-resume span{font-size:9px;letter-spacing:1.25px;color:#d8c38f}.learning-resume h3{margin:5px 0;font-size:17px;color:#fff}.learning-resume p{margin:0;color:#c8d7cd;font-size:12px}.learning-resume .learning-primary{background:#e9d6a7;color:#18372e;flex-shrink:0}.learning-button{min-height:48px;border-radius:12px;padding:12px 20px;border:1px solid var(--line);font-weight:700!important;font-size:14px!important;background:var(--panel);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px}.learning-primary{background:var(--green);color:#fff;border-color:var(--green)}.learning-secondary{background:var(--panel);color:var(--green)}.learning-back{min-height:44px;padding:8px 14px;font-size:12px!important;background:var(--panel);color:var(--green)}.learning-review{display:flex;width:100%;align-items:center;justify-content:space-between;gap:15px;padding:17px 18px;margin:0 0 18px;border:1px solid #dac89f;background:#f8f2e5;border-radius:14px;color:#5f4e2b;text-align:start}.learning-review>span{display:flex;flex-direction:column;gap:5px}.learning-review strong{font-size:13px}.learning-review small{font-size:12px}.learning-review b{font-size:12px;flex-shrink:0}.learning-alphabet{margin-top:24px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:4px 18px}.learning-alphabet summary{padding:15px 0;min-height:48px;cursor:pointer;font-weight:700;font-size:13px;line-height:1.6}.learning-alphabet>p,.learning-private-note{font-size:12px;color:var(--muted);line-height:1.8}.learning-private-note{padding:12px 3px;margin:12px 0 0}.learning-alphabet-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:10px 0 18px;direction:rtl}.learning-alphabet-grid>div{padding:8px 4px;background:var(--light);border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}.learning-alphabet-grid span{font:500 33px var(--arabic);color:var(--green)}.learning-alphabet-grid small{font-size:11px;color:var(--muted);text-align:center}.learning-session-header{display:flex;align-items:center;gap:12px;margin:10px 0 18px}.learning-session-header>span{flex:1;font-size:13px;font-weight:700;line-height:1.5}.learning-session-header>small{font-size:11px;color:var(--muted);white-space:nowrap}.learning-progress{height:6px;background:var(--line);border-radius:20px;overflow:hidden;max-width:700px;margin:0 auto 22px;direction:ltr}.learning-progress span{height:100%;display:block;background:var(--green);border-radius:20px;transition:width .2s}.learning-session-body{max-width:700px;margin:auto;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:32px}.learning-level{display:block;color:var(--learn-gold);font-size:11px;font-weight:700;letter-spacing:.4px;line-height:1.65}.learning-intro h1,.learning-teaching h1,.learning-question h1,.learning-result h1{font-size:25px;line-height:1.4;margin:10px 0 18px}.learning-intro>p,.learning-teaching>p,.learning-result>p{font-size:15px;line-height:1.85;color:var(--ink);margin:18px 0}.learning-intro-counts{display:flex;background:var(--light);border:1px solid var(--line);border-radius:14px;margin:24px 0;overflow:hidden}.learning-intro-counts span{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px 10px;font-size:12px;color:var(--muted);text-align:center}.learning-intro-counts span+span{border-inline-start:1px solid var(--line)}.learning-intro-counts b{color:var(--green);font:800 25px Manrope,sans-serif}.learning-gentle{font-size:12px!important;line-height:1.8!important;color:var(--muted)!important;margin:14px 0}.learning-intro>.learning-primary{width:100%;margin-top:8px}.learning-example,.learning-prompt{font:500 clamp(35px,5vw,51px)/1.9 var(--arabic);text-align:center;padding:24px 16px;background:var(--light);border:1px solid var(--line);border-radius:16px;margin:20px 0;overflow-wrap:anywhere;color:var(--ink)}.learning-prompt:not([lang=ar]){font:600 30px/1.6 Manrope,sans-serif}.learning-reference{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap;width:100%;min-height:48px;background:none;border:0;border-top:1px solid var(--line);margin-top:24px;padding:18px 0 2px;font-weight:700!important;color:var(--green);font-size:13px!important}.learning-reference small{width:100%;font-size:10px;font-weight:400;color:var(--muted);text-align:center}.learning-source{font-size:11px;color:var(--green);line-height:1.7;display:inline-block;margin-top:8px;padding:8px 0;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.learning-actions{display:flex;gap:10px;margin-top:24px}.learning-actions .learning-button{flex:1}.learning-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0 18px}.learning-options button{min-height:76px;padding:16px 12px;border:1px solid var(--line);border-radius:14px;background:var(--light);color:var(--ink);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:16px;line-height:1.65;text-align:center;word-break:normal;overflow-wrap:anywhere}.learning-options button:has(span[lang=ar]){font-family:var(--arabic);font-size:26px}.learning-options button:disabled{cursor:default;opacity:1}.learning-options button:hover:not(:disabled){border-color:var(--green);background:var(--pale)}.learning-options button.learning-correct{background:#e6f4e8;border:2px solid #247446;color:#15552e}.learning-options button.learning-incorrect{background:#fff0e8;border:2px solid #a55431;color:#783e26}.learning-options small{font-size:11px;font-weight:700}.learning-feedback{padding:17px 18px;border-radius:13px;border:1px solid var(--line);background:var(--light);font-size:13px;line-height:1.75}.learning-feedback strong{display:block;font-weight:800}.learning-feedback p{margin:6px 0 0}.learning-feedback.is-correct{background:#eef7ee;border-color:#c5dec8;color:#245c38}.learning-feedback.is-incorrect{background:#fcf2e9;border-color:#ead3ba;color:#735434}.learning-feedback .learning-source{color:inherit}.learning-result{text-align:center;padding:12px 0}.learning-result-mark{display:grid;place-items:center;background:var(--pale);color:var(--green);width:70px;height:70px;border-radius:50%;font-size:30px;margin:0 auto 24px}.learning-storage-warning{font-size:12px;line-height:1.8;padding:14px 16px;border:1px solid #d4b478;background:#fff4db;border-radius:12px;color:#674e22}.learning-storage-warning button{border:0;background:none;text-decoration:underline;color:inherit;font-weight:700;min-height:44px;padding:5px 10px}.learning-error,.learning-loading{padding:30px 20px;text-align:center;font-size:14px;line-height:1.8}.learning-error p{color:var(--muted);font-size:13px}.learning-error h2{font-size:22px}.learning-replace{max-width:650px;margin:20px auto;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:25px;line-height:1.8}.learning-replace h1{font-size:20px}.learning-replace p{font-size:14px;color:var(--muted)}
.dark .learning-review,.dark .learning-feedback.is-incorrect{background:#322c20;color:#efd6aa;border-color:#6e5940}.dark .learning-feedback.is-correct{background:#193d2a;color:#cae6cf;border-color:#356c47}.dark .learning-options button.learning-correct{background:#1b402b;color:#d9f2df;border-color:#5b9e70}.dark .learning-options button.learning-incorrect{background:#432c22;color:#f1d5c3;border-color:#b67d59}.dark .learning-storage-warning{background:#44351e;color:#f4dfba;border-color:#9c7740}.dark .learning-paths button[aria-pressed=true]{color:#b6d5bd}.dark .learning-primary{background:#236b56;color:#fff}.dark .learning-resume .learning-primary{background:#ddc999;color:#19382c}.dark .learning-source,.dark .learning-reference,.dark .learning-lesson-state{color:#b6d5bd}
@media(max-width:700px){.learning-overview{gap:12px;align-items:flex-start;margin:2px 0 16px}.learning-overview h1{font-size:23px}.learning-overview p{font-size:12px;line-height:1.65}.learning-eyebrow{font-size:8px!important;letter-spacing:.7px}.learning-completed{min-width:65px;padding:5px 0 5px 10px;max-width:78px}.learning-completed strong{font-size:25px}.learning-completed small{font-size:9px}.learning-list{grid-template-columns:1fr;gap:10px}.learning-lesson{padding:15px 13px;min-height:112px;gap:12px}.learning-lesson-symbol{width:47px;max-width:47px;height:59px;font-size:25px;border-radius:12px}.learning-lesson-copy strong{font-size:14px}.learning-lesson-copy>span{font-size:11px}.learning-paths{gap:2px;padding:4px;margin-bottom:14px}.learning-paths button{padding:7px 4px;font-size:10px;min-height:44px}.learning-resume{padding:16px;gap:12px}.learning-resume h3{font-size:14px}.learning-resume p{font-size:11px}.learning-resume .learning-button{padding:10px 12px;font-size:12px!important;min-height:44px}.learning-review{padding:14px 12px}.learning-review strong{font-size:12px}.learning-review small{font-size:10px}.learning-alphabet{padding:2px 12px}.learning-alphabet-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.learning-session-header{flex-wrap:wrap;margin:2px 0 14px;gap:8px}.learning-session-header>span{font-size:11px}.learning-session-header>small{display:none}.learning-session-body{padding:20px 16px;border-radius:16px}.learning-intro h1,.learning-teaching h1,.learning-question h1,.learning-result h1{font-size:21px;margin:10px 0 15px}.learning-intro>p,.learning-teaching>p,.learning-result>p{font-size:14px;line-height:1.85}.learning-example,.learning-prompt{font-size:36px;padding:18px 12px;margin:18px 0}.learning-options{gap:8px;margin-top:20px}.learning-options button{font-size:14px;min-height:78px;padding:12px 8px}.learning-actions{margin-top:20px;flex-wrap:wrap}.learning-actions .learning-button{font-size:12px!important;padding:12px;min-width:95px}.learning-level{font-size:10px}.learning-feedback{padding:13px;font-size:12px}.learning-reference{font-size:12px!important}.learning-progress{margin-bottom:16px}.learning-replace{padding:19px}}
@media(prefers-reduced-motion:reduce){.learning-root *{transition:none!important;scroll-behavior:auto!important}}

.learning-example-caption{display:block;margin-top:-9px;color:var(--muted);font-size:10px;line-height:1.65;text-align:center}.learning-options button span[lang=ar]{font-family:var(--arabic);font-size:25px;line-height:1.8}

/* Short Arabic choices keep dots and vowel marks legible on small phones. */
.learning-options button span[lang=ar]{font-size:30px;line-height:1.75}.learning-options button.learning-option-short{min-height:98px;padding:12px}.learning-options button.learning-option-short span[lang=ar]{font-size:48px;line-height:1.5}@media(max-width:700px){.learning-options button.learning-option-short{min-height:94px}.learning-options button.learning-option-short span[lang=ar]{font-size:46px}.learning-options button span[lang=ar]{font-size:30px}}
/* Studio academy: stage navigation stays separate from difficulty. */
.learning-curriculum{margin:24px 0 20px}.learning-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.learning-filter-heading>span{font-size:11px;font-weight:800;letter-spacing:1.1px;color:var(--muted)}.learning-filter-heading>button{border:0;background:none;color:var(--green);font-weight:700;font-size:13px;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:4px}.learning-stage-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-block:1px solid var(--line)}.learning-stage-list>button{border:0;border-inline-end:1px solid var(--line);background:transparent;color:var(--ink);padding:17px 14px;text-align:start;min-height:112px;position:relative}.learning-stage-list>button:last-child{border-inline-end:0}.learning-stage-list>button>span{font-size:12px;color:var(--learn-gold);font-weight:800;display:block;margin-bottom:9px}.learning-stage-list>button strong{display:block;font-size:14px;line-height:1.45;margin-bottom:5px}.learning-stage-list>button small{display:block;font-size:12px;line-height:1.5;color:var(--muted)}.learning-stage-list>button[aria-pressed=true]{background:var(--light);box-shadow:inset 0 -3px var(--green)}.learning-level-filter{display:flex;align-items:center;gap:14px;margin:12px 0}.learning-level-filter>span{font-size:12px;font-weight:700;color:var(--muted);flex-shrink:0}.learning-level-filter .learning-paths{margin:0;flex:1}.learning-results-count{font-size:12px;line-height:1.65;color:var(--muted);margin:12px 0 20px}.learning-stage-section{margin:24px 0 30px}.learning-stage-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}.learning-stage-heading h2{font-size:20px;line-height:1.35;margin:0;font-weight:750}.learning-stage-heading>span{font-size:12px;color:var(--muted)}.learning-empty{padding:22px 0;border-block:1px solid var(--line);font-size:14px;line-height:1.75;color:var(--muted)}.learning-empty p{margin:0 0 12px}.learning-root .learning-lesson{border-radius:10px;box-shadow:none}.learning-root .learning-lesson-copy>strong{font-size:15px;line-height:1.45}.learning-root .learning-lesson-copy>span{font-size:13px;line-height:1.6}.learning-root .learning-lesson-copy>small{font-size:11px;line-height:1.5}.learning-root .learning-lesson-state{font-size:11px}.learning-root .learning-overview p:not(.learning-eyebrow){font-size:14px;line-height:1.7}.learning-root .learning-completed small{font-size:12px}.learning-root .learning-private-note{font-size:12px;line-height:1.75}
@media(max-width:700px){.learning-stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-stage-list>button{min-height:112px;padding:16px 12px}.learning-stage-list>button:nth-child(2){border-inline-end:0}.learning-stage-list>button:nth-child(-n+2){border-bottom:1px solid var(--line)}.learning-level-filter{display:block}.learning-level-filter>span{display:block;margin-bottom:8px}.learning-level-filter .learning-paths{gap:2px}.learning-level-filter .learning-paths button{font-size:12px;padding:8px 5px}.learning-filter-heading{gap:10px}.learning-filter-heading>span{font-size:10px;letter-spacing:.5px}.learning-filter-heading>button{font-size:12px}.learning-stage-heading h2{font-size:19px}.learning-root .learning-lesson{padding:16px 13px}.learning-root .learning-lesson-state{max-width:60px;overflow-wrap:anywhere}.learning-stage-section{margin:22px 0 26px}.learning-root[dir=rtl] .learning-stage-list>button strong{font-size:16px}.learning-root[dir=rtl] .learning-stage-list>button small{font-size:13px}}
@media(prefers-reduced-motion:reduce){.learning-stage-list>button{transition:none}}
/* v32 interactive cloze slot, binary true/false, diagnostic peek bar, passage reader & confidence calibration */
.learning-cloze-slot{display:inline-block;min-width:2.4em;padding:2px 12px;margin-inline:4px;border-radius:10px;border:2px dashed var(--learn-gold);background:var(--panel);color:var(--green);font-weight:700;vertical-align:baseline}.learning-cloze-slot.is-correct{border-style:solid;border-color:#247446;background:#e6f4e8;color:#15552e}.learning-cloze-slot.is-incorrect{border-style:solid;border-color:#a55431;background:#fff0e8;color:#783e26}.dark .learning-cloze-slot.is-correct{background:#1b402b;color:#d9f2df;border-color:#5b9e70}.dark .learning-cloze-slot.is-incorrect{background:#432c22;color:#f1d5c3;border-color:#b67d59}
.learning-options.is-truefalse{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-options.is-truefalse button{min-height:84px;font-weight:750;border-width:1.5px}
.learning-peek-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.learning-peek-bar .learning-button{min-height:44px;padding:8px 12px;font-size:12px!important}
[data-learning-passage-reader]{margin:10px 0 6px}
.learning-confidence-box{margin:18px 0;padding:15px 16px;border-radius:14px;border:1px solid var(--line);background:var(--light);text-align:start;display:flex;flex-direction:column;gap:10px}.learning-confidence-box>strong{font-size:13px;line-height:1.5;color:var(--ink)}.learning-confidence-btns{display:flex;flex-wrap:wrap;gap:8px}.learning-confidence-btns .learning-button{flex:1 1 140px;min-height:44px;padding:9px 12px;font-size:12px!important}.learning-confidence-btns .learning-button.is-selected{border-color:var(--green);background:var(--pale);color:var(--green)}.learning-confidence-note{font-size:12px;color:var(--muted);line-height:1.6}


/* /baraim-activity.css */
/* Letter Detective components adapted from the Bara’im design kit, scoped to its dialog. */
.baraim-activity{--ba-paper:#fff7e6;--ba-surface:#fff;--ba-ink:#14201c;--ba-muted:#45534d;--ba-sky:#bfe6fa;--ba-sky2:#e3f4fd;--ba-sun:#ffc233;--ba-coral:#f2644e;--ba-berry:#c23a7c;--ba-leaf:#2fa36b;--ba-leaf2:#7ccb7a;--ba-grape:#6a4cc8;--ba-cloud:#fff;--ba-primary:#0b5d4b;--ba-onprimary:#fff;--ba-focus:#1b4fd8;--ba-line:#857f6b;--ba-cue:#ffe9a8;--ba-ok:#0b5d4b;--ba-retry:#824315;color:var(--ba-ink);background:var(--ba-paper);border:2px solid var(--ba-grape);border-radius:24px;padding:0;width:min(100% - 24px,540px);max-width:540px;max-height:calc(100dvh - 24px);overflow:auto;margin:auto;font-family:'Readex Pro',system-ui,sans-serif;font-size:16px;line-height:1.65;box-sizing:border-box}
body.dark .baraim-activity{--ba-paper:#101a2a;--ba-surface:#18263a;--ba-ink:#ece6d8;--ba-muted:#c6cdd6;--ba-sky:#1b3556;--ba-sky2:#14263f;--ba-sun:#ffcb52;--ba-coral:#ff8b76;--ba-berry:#f07bb4;--ba-leaf:#3dbe83;--ba-leaf2:#2a8a5e;--ba-grape:#a893ff;--ba-cloud:#3a5378;--ba-primary:#58c2a3;--ba-onprimary:#06231b;--ba-focus:#b8ccff;--ba-line:#91a1b9;--ba-cue:#3b3010;--ba-ok:#6fdbb2;--ba-retry:#ffd28c;color-scheme:dark}
.baraim-activity::backdrop{background:rgb(4 18 15 / .7)}
.baraim-activity *{box-sizing:border-box}.baraim-activity h1,.baraim-activity h2,.baraim-activity h3,.baraim-activity p{margin:0}.baraim-activity h1{font-size:1.35rem;line-height:1.5}.baraim-activity h2{font-size:1.3rem;line-height:1.55}.baraim-activity h3{font-size:1.05rem}.baraim-activity button,.baraim-activity a{font:inherit}.baraim-activity button{cursor:pointer}.baraim-activity button:disabled{cursor:default;opacity:1}.baraim-activity :focus-visible{outline:3px solid var(--ba-focus);outline-offset:3px}.baraim-activity h1:focus{outline:none}
.baraim-header{background:linear-gradient(var(--ba-sky),var(--ba-sky2));padding:12px 16px 0;overflow:hidden}.baraim-header-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.baraim-header-row .baraim-button{font-size:.85rem;min-height:44px;padding:6px 10px}.baraim-phase{font-size:.9rem;font-weight:650;margin-top:4px!important}.baraim-scene{display:block;width:calc(100% + 32px);height:46px;margin:4px -16px 0}.baraim-body{display:grid;gap:18px;padding:20px 16px}.baraim-body .baraim-card,.baraim-record{display:grid;gap:10px;background:var(--ba-surface);border:2px solid var(--ba-line);border-radius:20px;padding:14px}.baraim-cue{background:var(--ba-cue);border:2px solid var(--ba-sun);border-radius:20px 20px 20px 6px;padding:12px}.baraim-activity[dir=rtl] .baraim-cue{border-radius:20px 20px 6px 20px}.baraim-cue strong{display:block}.baraim-helper{display:flex;align-items:center;gap:12px;border:2px solid var(--ba-coral);border-radius:22px;background:var(--ba-surface);padding:12px;font-weight:650}.baraim-bird{width:56px;height:56px;flex:none}.baraim-demo{text-align:center;border:3px solid var(--ba-leaf);background:var(--ba-sky2);border-radius:20px;min-height:150px;display:grid;place-items:center}.baraim-glyph{font-family:Amiri,'Noto Naskh Arabic',serif!important;font-size:76px;line-height:1.5;unicode-bidi:isolate}.baraim-choices{display:grid;grid-template-columns:repeat(var(--choices,3),minmax(0,1fr));gap:10px}.baraim-choices[data-layout=stack]{grid-template-columns:1fr}.baraim-letter{display:grid;grid-template-rows:24px 1fr 24px;place-items:center;min-height:160px;min-width:0;padding:4px;background:var(--ba-surface);color:var(--ba-ink);border:3px solid var(--ba-grape);border-radius:20px;box-shadow:0 5px 0 color-mix(in srgb,var(--ba-grape) 35%,transparent)}.baraim-choices[data-layout=stack] .baraim-letter{min-height:105px;grid-template-rows:8px 1fr 8px;border-color:var(--ba-line);box-shadow:none}.baraim-choices[data-layout=stack] .baraim-glyph{font-size:60px}.baraim-letter[data-result=correct]{border:4px solid var(--ba-ok)}.baraim-letter[data-result=retry]{border:4px dashed var(--ba-retry)}.baraim-zone{font-size:.8rem;color:var(--ba-muted)}.baraim-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.baraim-button{color:var(--ba-ink);background:var(--ba-surface);border:2px solid var(--ba-grape);border-radius:18px;min-height:48px;padding:10px 12px;font-weight:650}.baraim-button.baraim-primary{background:var(--ba-primary);color:var(--ba-onprimary);border-color:var(--ba-primary);box-shadow:0 4px 0 color-mix(in srgb,var(--ba-primary) 70%,#000)}.baraim-feedback{padding:14px;border:2px solid var(--ba-ok);background:var(--ba-surface);border-radius:18px;display:grid;gap:8px}.baraim-feedback[data-kind=retry]{border-style:dashed;border-color:var(--ba-retry)}.baraim-scope,.baraim-local,.baraim-check-note{font-size:.88rem;color:var(--ba-muted)}.baraim-source{font-size:.9rem;color:var(--ba-ink);text-decoration:underline;text-underline-offset:3px}.baraim-warning{display:grid;gap:8px;border:2px solid var(--ba-retry);padding:12px;border-radius:12px}.learning-root .baraim-launch{padding:16px;margin-top:20px;border:2px solid #875799;border-radius:20px;background:linear-gradient(110deg,#fff0ca,#ffe6ed,#eee5ff);color:#243d37}.learning-root .baraim-launch p{margin:8px 0 12px}.learning-root .baraim-launch .learning-button{min-height:48px}body.dark .learning-root .baraim-launch{background:linear-gradient(110deg,#2b273d,#382536,#243d36);color:#f7f2e8;border-color:#ef9fc0}
@media(prefers-reduced-motion:no-preference){.baraim-activity[data-calm=false] .baraim-bird{animation:baraim-bob 1.6s ease-in-out infinite alternate}.baraim-activity[data-calm=false] .baraim-cloud{animation:baraim-drift 9s ease-in-out infinite alternate}@keyframes baraim-bob{to{transform:translateY(-2px)}}@keyframes baraim-drift{to{transform:translateX(7px)}}}
@media(max-width:360px){.baraim-activity{width:calc(100% - 12px);max-height:calc(100dvh - 12px);border-radius:18px}.baraim-body{padding:16px 12px}.baraim-choices{gap:6px}.baraim-glyph{font-size:64px}.baraim-tools .baraim-button{font-size:.85rem;padding-inline:6px}}


/* /quran-duas.css */
.quran-duas{max-width:940px;margin-inline:auto;--qd-font:28px}.qd-heading{margin:8px 0 22px}.qd-heading h1{font-size:clamp(28px,4vw,38px);line-height:1.2;letter-spacing:-1px;margin:9px 0 12px}.qd-heading>p:last-child{font-size:14px;line-height:1.7;max-width:620px;color:var(--muted)}.qd-intro{display:flex;gap:18px;align-items:center;background:var(--green);color:#fff;border-radius:17px;padding:15px 20px;margin-bottom:20px}.qd-intro>span{font-family:var(--arabic);font-size:29px;line-height:1.9;flex:1}.qd-intro>p{font-size:14px;line-height:1.6;flex:1;margin:0}.qd-intro small{display:block;font-size:11px;opacity:.8;margin-top:7px}.qd-search-label{font-size:12px;font-weight:750;display:block;margin-bottom:9px}.qd-search{width:100%;min-height:50px;border:1px solid var(--line);border-radius:13px;padding:12px 15px;color:var(--ink);background:var(--panel);font-size:14px}.qd-search:focus-visible{outline:2px solid var(--green);outline-offset:3px}.qd-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:14px 2px 9px}.qd-filters button{flex:none;min-height:44px;background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:24px;padding:9px 14px;font-size:12px;font-weight:650}.qd-filters button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.qd-options{padding:0 3px;margin:5px 0 8px;max-width:420px;color:var(--muted);font-size:12px}.qd-options summary{min-height:44px;align-content:center;cursor:pointer;color:var(--ink);font-weight:650}.qd-options>label:not(.qd-checkbox){display:flex;justify-content:space-between;padding:10px 2px 0}.qd-options>input[type=range]{min-height:44px;width:100%;accent-color:var(--green)}.qd-checkbox{display:flex;align-items:center;gap:10px;min-height:44px}.qd-checkbox input{accent-color:var(--green);width:19px;height:19px;flex:none}.qd-status{font-size:12px;line-height:1.5;color:var(--muted);margin:4px 3px 14px;min-height:18px}.qd-list{display:grid;grid-template-columns:1fr;gap:11px}.qd-card{border:1px solid var(--line);background:var(--panel);border-radius:16px;overflow:hidden}.qd-card:focus-within{border-color:var(--green)}.qd-card>[data-qd-open]>summary{position:relative;display:grid;grid-template-columns:1fr auto;list-style:none;cursor:pointer;padding:19px 56px 19px 20px;column-gap:16px;row-gap:5px;min-height:108px}.qd-card>[data-qd-open]>summary::-webkit-details-marker{display:none}[dir=rtl] .qd-card>[data-qd-open]>summary{padding:19px 20px 19px 56px}.qd-category{color:var(--green);font-size:10px;font-weight:750;letter-spacing:.5px;grid-column:1}.qd-card-title{font-size:18px;line-height:1.4;font-weight:750;grid-column:1}.qd-card-speaker{font-size:12px;line-height:1.6;color:var(--muted);grid-column:1}.qd-reference{grid-column:2;grid-row:1/4;align-self:center;background:var(--bg);border:1px solid var(--line);padding:8px 10px;border-radius:9px;font-size:10px;color:var(--muted);white-space:nowrap}.qd-reference bdi{font-weight:750;color:var(--ink);font-size:12px;display:block;text-align:center;line-height:1.8}.qd-expand{position:absolute;inset-inline-end:19px;top:50%;transform:translateY(-50%);color:var(--green);font-size:24px;font-weight:400}.qd-card>[data-qd-open][open]>summary{background:var(--pale);border-bottom:1px solid var(--line)}.qd-card details[open] .qd-expand{transform:translateY(-50%) rotate(45deg)}.qd-reading{padding:20px 24px 23px}.qd-context{font-size:12px;line-height:1.75;margin:0 0 16px;color:var(--muted);max-width:730px}.qd-arabic{font-family:var(--arabic);font-size:var(--qd-font);line-height:2.05;text-align:right}.qd-arabic p{padding:10px 0;margin:0 0 9px;overflow-wrap:anywhere}.qd-ayah{font-size:.68em;white-space:nowrap;color:var(--green)}.qd-meaning{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:18px 0}.qd-meaning[hidden]{display:none}.qd-meaning small{font-size:10px;font-weight:700;color:var(--muted)}.qd-meaning p{font-size:14px;line-height:1.8;margin:7px 0 1px}.qd-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.qd-actions button,.qd-actions a{min-height:46px;border-radius:11px;padding:11px 15px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}.qd-read{background:var(--green);color:#fff;border:1px solid var(--green);display:flex;align-items:center;justify-content:center;gap:16px}.qd-tafsir{background:var(--pale);color:var(--green);border:1px solid var(--line)}.qd-occasion{background:var(--bg);color:var(--gold,#9a7632);border:1px solid var(--line);gap:6px}.qd-save{background:var(--panel);color:var(--green);border:1px solid var(--line)}.qd-save[aria-pressed=true]{background:var(--pale);border-color:var(--green)}.qd-original{display:inline-flex;align-items:center;min-height:44px;font-size:11px;color:var(--green);text-underline-offset:4px;margin-top:9px}.qd-source{margin-top:23px;color:var(--muted);font-size:12px;line-height:1.8;padding:4px 4px 14px}.qd-source summary{min-height:44px;align-content:center;font-weight:700;color:var(--ink);cursor:pointer}.qd-source p{max-width:800px;margin:10px 0}.qd-source a{color:var(--green);text-underline-offset:3px}.qd-source small{display:block;font-size:10px}.qd-download{display:inline-flex;min-height:44px;align-items:center;margin-top:6px}.qd-empty{text-align:center;padding:28px 18px;background:var(--panel);border:1px solid var(--line);border-radius:16px;color:var(--muted);line-height:1.7}.qd-empty strong{color:var(--ink)}.qd-empty button{min-height:44px;padding:10px 18px;border:1px solid var(--green);border-radius:11px;background:var(--pale);color:var(--green);font-weight:650}.quran-duas button:focus-visible,.quran-duas summary:focus-visible,.quran-duas a:focus-visible,.qd-options input:focus-visible{outline:2px solid var(--green);outline-offset:3px}[dir=rtl] .qd-heading h1{font-family:var(--arabic);line-height:1.6;letter-spacing:0}[dir=rtl] .qd-card-title{font-family:var(--arabic);font-size:24px;line-height:1.5}
@media(max-width:600px){.qd-heading{margin:10px 0 18px}.qd-heading h1{font-size:29px}.qd-heading>p:last-child{font-size:13px}.qd-intro{flex-direction:row;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;margin-bottom:18px}.qd-intro>span{text-align:start;font-size:22px;flex:1.25;line-height:1.8}.qd-intro>p{text-align:start;font-size:11px;flex:1;line-height:1.5}.qd-intro small{font-size:9px;margin-top:3px}.qd-card>[data-qd-open]>summary{padding:16px 45px 16px 15px;column-gap:8px;min-height:110px}[dir=rtl] .qd-card>[data-qd-open]>summary{padding:16px 15px 16px 45px}.qd-card-title{font-size:16px}.qd-card-speaker{font-size:11px}.qd-category{font-size:9px}.qd-reference{padding:7px 7px;font-size:9px}.qd-reference bdi{font-size:11px}.qd-expand{inset-inline-end:15px;font-size:22px}.qd-reading{padding:17px 16px 18px}.qd-context{font-size:11px;line-height:1.8}.qd-meaning{padding:12px 13px}.qd-meaning p{font-size:13px}.qd-actions{gap:8px}.qd-read{flex:1 1 170px}.qd-save{flex:1 1 70px}.qd-original{font-size:10px}.qd-source{font-size:11px}.qd-options{font-size:11px}.qd-arabic{line-height:2.1}}
@media(prefers-reduced-motion:reduce){.qd-expand{transition:none}}

.qd-passage+.qd-passage{border-top:1px solid var(--line);margin-top:1.3rem;padding-top:1rem}.qd-passage>.qd-arabic{padding:10px 0;margin:0 0 9px;overflow-wrap:anywhere}.qd-full-translation{font-family:inherit;color:var(--ink);text-align:start;font-size:1rem;line-height:1.85;margin:.9rem 0 1.1rem}.qd-full-translation:empty{display:none}.qd-translation-label{display:flex;flex-wrap:wrap;gap:.3rem 1rem;align-items:baseline;margin-bottom:.5rem;font-family:inherit;font-size:.75rem;line-height:1.6;color:var(--muted)}.qd-translation-label strong{font-weight:650}.qd-translation-label a{color:var(--green);text-underline-offset:3px}.qd-full-translation .qd-translation-text{font-family:inherit;font-size:1rem;line-height:1.85;margin:.3rem 0;white-space:pre-line;overflow-wrap:anywhere}.qd-translation-status{font-size:.875rem;line-height:1.7;color:var(--muted)}.qd-translation-retry{min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--pale);color:var(--green);font:inherit;font-size:.9rem;font-weight:600;padding:.55rem .75rem;cursor:pointer}.qd-full-translation:focus{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}.qd-card .qd-meaning{padding:.45rem .9rem}.qd-card .qd-meaning>summary{min-height:44px;align-content:center;font-family:inherit;font-size:.85rem;font-weight:600;color:var(--muted);cursor:pointer}.qd-card .qd-meaning>p{font-family:inherit;font-size:.9375rem;line-height:1.8;margin:.35rem 0 .7rem}.qd-passage .quran-reading-help{margin-block:.5rem .8rem}
@media(max-width:600px){.qd-full-translation .qd-translation-text{font-size:.9375rem}.qd-translation-label{font-size:.72rem}.qd-passage+.qd-passage{margin-top:1rem;padding-top:.8rem}}


/* /experience-v8.css */
/* Integrated study and devotion navigation. Shared with the reading space. */
body:not(.dark){--muted:#566b5e;--gold-text:#85662d}
body:not(.dark) .learning-root{--learn-gold:#85662d}
body.dark .learning-root{--learn-gold:#cfb877}
body:not(.dark) .eyebrow,body:not(.dark) .study-kicker,body:not(.dark) .grammar-kicker{color:var(--gold-text)}
.source-tile .source-tile-index{font-size:10px}.source-tile .source-tile-open{font-size:11px}.source-access-note p,.study-source-home>p{font-size:13px}
body:not(.dark) .grammar-instruction>span,body:not(.dark) .grammar-segment-top small{color:var(--gold-text)}
.study-segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.study-segments button{min-width:0;min-height:46px;line-height:1.35;padding:11px 12px;white-space:normal}
.devotion-segments{grid-template-columns:repeat(3,minmax(0,1fr))}
.study-page-heading .subtle{max-width:640px;line-height:1.7}
.home-learning-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--line);border-inline-start:3px solid var(--gold);border-radius:20px;padding:24px;background:var(--panel);margin:24px 0}
.home-learning-entry h2{font-size:22px;line-height:1.3;margin:7px 0 10px;letter-spacing:-.5px}
.home-learning-entry p{font-size:13px;line-height:1.65;color:var(--muted);margin:0;max-width:540px}
.home-learning-entry .btn{flex-shrink:0;min-height:48px;background:var(--green);color:#fff}
.classical-source-card{display:flex;width:100%;gap:16px;align-items:center;text-align:start;margin-top:18px;padding:20px;border:1px solid #c4b484;background:var(--panel);border-radius:15px;color:var(--ink);font-family:inherit;cursor:pointer}.classical-source-card>svg{width:28px;height:28px;fill:none;stroke:var(--green);stroke-width:1.5;flex:none}.classical-source-card b{display:block;font-size:14px;line-height:1.5}.classical-source-card small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:6px}.classical-source-card>span:last-child{margin-inline-start:auto}
@media(max-width:700px){.study-segments:not(.devotion-segments){grid-template-columns:repeat(2,minmax(0,1fr))}.study-segments button{font-size:12px;padding:11px 7px}.devotion-segments button{font-size:11px}.home-learning-entry{display:block;padding:20px}.home-learning-entry h2{font-size:22px}.home-learning-entry .btn{margin-top:16px;width:100%}.study-page-heading .page-title{font-size:29px;line-height:1.2}}
@media(prefers-reduced-motion:reduce){.home-learning-entry *{animation:none!important;transition:none!important}}


/* /studio.css */
/* A quiet research desk: clear text, restrained colour and readable source layers. */
.studio-root{--studio-accent:var(--green,#163e58);--studio-tint:var(--light,#edf2f4);color:var(--ink);max-width:1000px;margin:auto;min-width:0}.studio-root *{box-sizing:border-box}.studio-root button,.studio-root select{font:inherit;touch-action:manipulation}.studio-root button{cursor:pointer}.studio-root button:focus-visible,.studio-root select:focus-visible,.studio-root a:focus-visible,.studio-root summary:focus-visible,.studio-root textarea:focus-visible{outline:3px solid #b88936;outline-offset:3px}.studio-root [data-studio-heading]:focus{outline:none}.studio-root p{font-size:15px;line-height:1.85}.studio-heading{padding:10px 0 24px}.studio-kicker{font:750 10px/1.5 Manrope,sans-serif!important;letter-spacing:1.45px;color:var(--gold-text,#85662d);margin:0 0 10px}.studio-heading h1{font:750 clamp(25px,3vw,34px)/1.3 Manrope,'Noto Naskh Arabic',sans-serif;letter-spacing:-.8px;margin:0 0 10px}.studio-heading>p:last-child{margin:0;color:var(--muted);max-width:610px}.studio-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:5px;background:var(--studio-tint);border:1px solid var(--line);border-radius:12px}.studio-topics button{padding:12px 8px;min-height:48px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:700;line-height:1.4}.studio-topics button[aria-pressed=true]{background:var(--panel);color:var(--studio-accent);box-shadow:0 2px 8px #142d3b09}.studio-case-select{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.studio-case-select label{font-size:13px;font-weight:700;color:var(--muted)}.studio-root select{width:100%;max-width:100%;min-height:48px;padding:11px 34px 11px 13px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:9px;font-size:14px;line-height:1.5}.studio-root[dir=rtl] select{padding:11px 13px 11px 34px}.studio-case>header{padding:27px 0 20px}.studio-case h2{font:750 24px/1.4 Manrope,'Noto Naskh Arabic',sans-serif;letter-spacing:-.5px;margin:0 0 9px}.studio-case>header>p{max-width:650px;margin:0;color:var(--muted)}.studio-original{border-block:1px solid var(--line);margin:0 0 24px}.studio-original summary{padding:17px 5px;cursor:pointer;list-style-position:inside;color:var(--studio-accent);font-size:13px;font-weight:750;min-height:48px}.studio-original summary bdi{display:inline-block;margin-inline-start:9px;font:650 12px Manrope,sans-serif;color:var(--muted)}.studio-original blockquote{font:500 29px/2.15 var(--arabic,'Noto Naskh Arabic',serif);text-align:start;margin:0;padding:16px 12px 23px;overflow-wrap:anywhere}.studio-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.studio-controls label{font-size:13px;font-weight:700;display:grid;gap:10px;color:var(--muted)}.studio-word-pair{display:grid;grid-template-columns:1fr 1fr;background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden}.studio-word-pair>div{padding:24px 16px;text-align:center}.studio-word-pair>div+div{border-inline-start:1px solid var(--line)}.studio-word-pair small{display:block;font-size:10px;letter-spacing:.6px;font-weight:750;color:var(--muted);line-height:1.6}.studio-word-pair strong{display:block;font:550 39px/1.9 var(--arabic,'Noto Naskh Arabic',serif);color:var(--studio-accent);margin-top:10px}.studio-word-pair .is-experiment{background:#fbf3e4}.studio-word-pair .is-experiment strong{color:#77511c}.studio-experiment-label{font-size:12px!important;line-height:1.7!important;color:var(--muted);margin:14px 0 26px}.studio-analysis{border-block:1px solid var(--line);padding-block:4px}.studio-analysis section{display:grid;grid-template-columns:125px minmax(0,1fr);gap:24px;padding:18px 0}.studio-analysis section+section{border-top:1px solid var(--line)}.studio-case h3{font:750 15px/1.6 Manrope,'Noto Naskh Arabic',sans-serif;margin:0;color:var(--ink)}.studio-analysis p{margin:0;max-width:65ch}.studio-verse-actions{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 20px}.studio-verse-actions button,.studio-note>button,.studio-feedback button,.studio-error button{border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--studio-accent);min-height:46px;padding:12px 16px;font-size:13px;font-weight:750;line-height:1.5}.studio-verse-actions button:first-child{background:var(--studio-accent);border-color:var(--studio-accent);color:var(--panel)}.studio-verse-actions bdi{margin-inline-start:8px;font-size:12px}.studio-sources{border-top:1px solid var(--line);padding:4px 0;margin:15px 0}.studio-sources summary{font-size:13px;color:var(--studio-accent);font-weight:750;padding:14px 0;cursor:pointer;min-height:48px}.studio-sources ul{list-style:none;padding:0;margin:0 0 10px}.studio-sources li+li{border-top:1px solid var(--line)}.studio-sources a{font-size:13px;line-height:1.7;color:var(--studio-accent);display:block;min-height:44px;padding:11px 0;text-underline-offset:4px;overflow-wrap:anywhere}.studio-note{border-top:1px solid var(--line);margin-top:22px;padding:21px 0 12px}.studio-note>p{font-size:12px;line-height:1.8;color:var(--muted);max-width:720px;margin:0 0 15px}.studio-copy-status{font-size:12px;display:inline-block;color:var(--muted);margin:8px 12px}.studio-copy-fallback{display:grid;gap:10px;font-size:13px;font-weight:700;margin-top:18px}.studio-copy-fallback textarea{width:100%;min-height:220px;resize:vertical;font:14px/1.7 Manrope,'Noto Naskh Arabic',sans-serif;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink)}.studio-progress{color:var(--muted);font-size:13px!important;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px}.studio-progress b{color:var(--studio-accent);font-family:Manrope,sans-serif}.studio-phrase-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0 28px}.studio-phrase-list button{background:var(--panel);border:1px solid var(--line);padding:14px 10px;min-height:80px;border-radius:10px;color:var(--ink);display:grid;align-content:center;gap:6px}.studio-phrase-list button>span{font:500 24px/1.7 var(--arabic,'Noto Naskh Arabic',serif);overflow-wrap:anywhere}.studio-phrase-list button small{font-size:11px;color:var(--muted)}.studio-phrase-list button[aria-pressed=true]{border:2px solid var(--studio-accent);background:var(--studio-tint)}.studio-phrase-list .is-explored{border-color:#8da8a0}.studio-phrase-question{padding:24px;background:var(--studio-tint);border:1px solid var(--line);border-radius:14px}.studio-selected-phrase{font:500 34px/1.9 var(--arabic,'Noto Naskh Arabic',serif)!important;text-align:center;margin:20px 0 24px!important;overflow-wrap:anywhere}.studio-choice-row{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.studio-choice-row button{flex:1;min-width:90px;min-height:48px;border:1px solid var(--line);padding:11px 14px;border-radius:10px;background:var(--panel);color:var(--ink);font-weight:700;font-size:14px;line-height:1.5}.studio-choice-row button[aria-pressed=true]{border-color:var(--studio-accent);background:var(--studio-accent);color:var(--panel)}.studio-feedback{font-size:14px;line-height:1.8}.studio-feedback:empty{display:none}.studio-feedback p{margin:5px 0 14px;font-size:14px}.studio-feedback strong{font-size:14px}.studio-boundary{padding:16px 18px;border-inline-start:3px solid #aa8a4d;background:var(--studio-tint);font-size:13px!important;line-height:1.85!important;color:var(--muted);margin:25px 0}.studio-excerpt{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:20px 22px}.studio-excerpt small{font-size:10px;font-weight:750;letter-spacing:.6px;color:var(--muted);line-height:1.7}.studio-excerpt p{font:500 29px/2 var(--arabic,'Noto Naskh Arabic',serif);margin:12px 0 0}.studio-parse{padding:20px;background:var(--studio-tint);border-radius:12px}.studio-token-line{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.studio-token-line span{font:500 24px/1.8 var(--arabic,'Noto Naskh Arabic',serif);padding:7px 12px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.studio-parse p{max-width:65ch;margin:18px auto 0}.studio-two-readings{display:grid;grid-template-columns:1fr 1fr;gap:26px;padding-top:27px}.studio-two-readings section+section{border-inline-start:1px solid var(--line);padding-inline-start:26px}.studio-method-label{display:block;font:750 10px/1.7 Manrope,'Noto Naskh Arabic',sans-serif;letter-spacing:.55px;color:var(--muted);margin-bottom:10px}.studio-two-readings h3{font-size:17px}.studio-two-readings p{margin:11px 0 0}.studio-case-tag{font-size:11px!important;letter-spacing:.5px;font-weight:750;color:var(--muted);margin:0 0 22px}.studio-source-sections{display:grid;gap:24px}.studio-source-sections section{padding-bottom:20px;border-bottom:1px solid var(--line)}.studio-source-sections h3{font-size:18px}.studio-source-sections p{max-width:65ch;margin:12px 0 0}.studio-interlinear{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:24px;background:var(--studio-tint);border:1px solid var(--line);border-radius:12px;margin:18px 0 28px}.studio-interlinear small{display:block;font-size:10px;color:var(--muted);font-weight:750;letter-spacing:.5px}.studio-interlinear strong{font:500 27px/1.7 Georgia,serif;display:block;margin-top:12px;overflow-wrap:anywhere}.studio-interlinear>p{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px}.studio-inline-link{background:none;border:0;padding:12px 0;color:var(--studio-accent);text-decoration:underline;text-underline-offset:4px;min-height:44px;grid-column:2}.studio-loading,.studio-error{padding:30px 15px;color:var(--muted);text-align:center;line-height:1.8}.studio-error h2{color:var(--ink)}
body.dark .studio-kicker{color:#cfb877}body.dark .studio-word-pair .is-experiment{background:#342d20}body.dark .studio-word-pair .is-experiment strong{color:#e0c188}body.dark .studio-choice-row button[aria-pressed=true],body.dark .studio-verse-actions button:first-child{color:#101c27}
@media(max-width:700px){.studio-heading{padding-top:5px}.studio-heading h1{font-size:27px}.studio-heading>p:last-child{font-size:14px}.studio-topics{gap:2px}.studio-topics button{padding:11px 5px;font-size:12px;min-height:49px}.studio-case-select{display:block;padding:18px 0}.studio-case-select label{display:block;margin-bottom:9px}.studio-case-select select{font-size:13px}.studio-case>header{padding:23px 0 18px}.studio-case h2{font-size:23px}.studio-case>header>p{font-size:14px}.studio-controls{grid-template-columns:1fr;gap:15px}.studio-word-pair>div{padding:20px 8px}.studio-word-pair strong{font-size:33px}.studio-word-pair small{font-size:9px;letter-spacing:.1px}.studio-analysis section{display:block;padding:17px 0}.studio-analysis h3{margin-bottom:8px}.studio-root p{font-size:14px}.studio-original blockquote{font-size:27px;padding-inline:2px}.studio-verse-actions{display:grid;grid-template-columns:1fr}.studio-phrase-list button>span{font-size:22px}.studio-phrase-question{padding:18px 13px}.studio-selected-phrase{font-size:30px!important}.studio-choice-row{gap:6px}.studio-choice-row button{min-width:70px;padding:11px 8px;font-size:12px}.studio-excerpt{padding:18px 15px}.studio-excerpt p{font-size:27px}.studio-two-readings{display:block}.studio-two-readings section+section{border-inline-start:0;border-top:1px solid var(--line);padding-inline-start:0;margin-top:22px;padding-top:22px}.studio-token-line span{font-size:21px;padding:5px 8px}.studio-parse{padding:16px}.studio-interlinear{grid-template-columns:1fr;padding:20px;gap:18px}.studio-interlinear>div+div{border-top:1px solid var(--line);padding-top:16px}.studio-interlinear strong{font-size:28px}.studio-boundary{padding:14px 15px}.studio-inline-link{grid-column:auto}.studio-note>button{width:100%}}
@media(prefers-reduced-motion:reduce){.studio-root *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* /studio-brand.css */
/* AL-QATRAH Studio: ink, paper and measured hierarchy. */
:root,body:not(.dark){--bg:#f5f4f0;--panel:#fffefa;--ink:#122e45;--muted:#526779;--line:#dce2e4;--green:#174e70;--dark:#0b2d46;--gold:#b18a45;--gold-text:#805d25;--pale:#eaf0f3;--light:#f0f3f4;--shadow:0 7px 25px #0b2e4409}
body.dark{--bg:#0c1b28;--panel:#132838;--ink:#eef3f5;--muted:#afc0cd;--line:#304757;--green:#b6d7e9;--dark:#0b2436;--gold:#d7b770;--gold-text:#dbc28b;--pale:#203b4e;--light:#1a3244;--shadow:none}
body{font-family:Manrope,'Noto Naskh Arabic',sans-serif}button,input,select,textarea{font-family:inherit}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ab7e35;outline-offset:3px}body .eyebrow{font-size:11px;letter-spacing:1.5px;color:var(--gold-text)}
.sidebar,.dark .sidebar{width:auto;background:#0d2b42;padding:28px 18px;color:#e7edf1}.brand{gap:10px;padding:0 4px 34px}.brand strong{font:800 18px/1.2 Manrope,sans-serif;letter-spacing:.7px;color:#fff}.brand small{font-size:9px;letter-spacing:1px;line-height:1.7;color:#b9c9d4}.brand img{width:40px;height:40px}.nav-label{color:#9ab2c4;letter-spacing:1.4px;font-size:9px}.nav button{color:#bdcdd8;font-size:13px;min-height:48px;border-radius:7px}.nav button.active,.dark .nav button.active{background:#22455e;color:#fff;box-shadow:inset 3px 0 #d8b878}.side-note,.dark .side-note{border-radius:0;border:0;border-top:1px solid #355267;padding:24px 0 0;text-align:start}.side-note .moon{display:none}.side-note strong{font:500 24px var(--arabic);color:#ead8b3}.side-note p{font-size:12px;line-height:1.8;color:#a8bdcb}
.topbar,.dark .topbar{height:auto;min-height:82px;display:grid;grid-template-columns:minmax(140px,1fr) auto auto;gap:18px;padding:14px 4.2%;background:var(--bg);border-bottom:1px solid var(--line)}.top-brand{gap:11px}.top-brand img{width:34px;height:34px}.top-brand span{font:800 15px/1.2 Manrope,var(--arabic);letter-spacing:.1px;color:var(--ink)}.top-brand small{display:block;font-size:9px;font-weight:600;letter-spacing:1.6px;margin-top:4px;color:var(--muted)}.top-right{gap:8px}.topbar .language-button,.topbar .circle-btn{height:44px;min-width:44px;border:1px solid var(--line);background:var(--panel);border-radius:9px;color:var(--ink);font-size:12px}.profile-control{display:flex;align-items:center;gap:9px;max-width:300px}.profile-control label{font-size:11px;color:var(--muted);white-space:nowrap}.profile-control select{min-height:44px;max-width:172px;min-width:0;padding:8px 28px 8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font-size:12px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.layout{padding-top:34px;max-width:1450px}.today-heading{margin-bottom:24px;align-items:flex-start}.today-heading h1{font:600 clamp(29px,3.2vw,42px)/1.2 Georgia,var(--arabic),serif;letter-spacing:-.8px;max-width:700px}.today-heading .studio-intro{font-size:14px;line-height:1.8;color:var(--muted);max-width:620px;margin:12px 0 0}.today-date{font-size:12px;color:var(--muted);padding-top:5px}.studio-home-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:18px;margin-bottom:24px}.home-page .continue-card{margin:0;min-height:225px;padding:26px;border-radius:13px;background:#10364f;box-shadow:none}.continue-art{display:none}.continue-card .continue-copy{width:100%;padding:0}.continue-label{color:#d8bf88;font-size:11px}.continue-card h2{font:600 28px/1.4 Georgia,var(--arabic);color:#fff;margin:14px 0 6px}.continue-card p{color:#c2d2df;font-size:13px;line-height:1.7}.continue-actions{gap:10px;margin-top:20px}.btn-gold{color:#163249;background:#e2c58b;border-color:#e2c58b;font-size:13px;min-height:46px;border-radius:8px;box-shadow:none}.continue-mic{color:#fff;border-color:#7794a5;background:#ffffff0d;min-height:46px}.home-learning-entry{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;margin:0;padding:25px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.home-learning-entry h2{font:700 25px/1.35 Manrope,var(--arabic);margin:11px 0}.home-learning-entry p{font-size:13px;line-height:1.8}.home-learning-entry .btn{margin-top:18px;background:var(--green);color:var(--panel);min-height:46px;font-size:13px}.dark .home-learning-entry .btn{color:#0c2437}
.home-workbench{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0 28px;border-block:1px solid var(--line);background:transparent}.home-workbench :is(button,a){display:flex;gap:12px;align-items:center;text-align:start;background:none;border:0;padding:20px 15px;color:var(--ink);min-height:90px}.home-workbench :is(button,a)+:is(button,a){border-inline-start:1px solid var(--line)}.home-workbench svg{width:23px;height:23px;stroke:var(--green);fill:none;stroke-width:1.5;flex:none}.home-workbench strong{display:block;font-size:14px;line-height:1.5}.home-workbench small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:4px}.home-priority{margin-top:30px}.section-head h2{font-size:20px}.text-link{font-size:13px;min-height:44px;display:inline-flex;align-items:center;gap:7px;color:var(--green)}.source-shelf{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0!important;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:var(--panel)}.source-shelf .source-tile{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:20px 17px;min-height:175px;color:var(--ink)}.source-tile+.source-tile{border-inline-start:1px solid var(--line)!important}.source-tile:before,.source-tile:after{display:none!important}.source-tile .source-tile-ar{font-size:26px;color:var(--ink)!important;line-height:1.7}.source-tile .source-tile-index{color:var(--gold-text)!important}.source-tile strong{font-size:13px}.source-tile small,.source-tile .source-tile-open{font-size:11px;color:var(--muted)!important;line-height:1.7}
.study-segments{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;gap:14px;margin:0 0 27px}.study-segments button{border:0;border-bottom:3px solid transparent!important;border-radius:0;background:none;box-shadow:none!important;color:var(--muted);min-height:52px;font-size:14px}.study-segments button[aria-pressed=true]{background:none;color:var(--ink);border-bottom-color:var(--gold)!important}.study-library-nav{display:flex;gap:8px;flex-wrap:wrap;margin:-10px 0 25px}.study-library-nav button{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font:600 13px inherit;color:var(--muted)}.study-library-nav button[aria-pressed=true]{color:var(--ink);border-color:var(--green);background:var(--pale)}.devotion-segments{grid-template-columns:repeat(3,minmax(0,1fr))!important}.study-source-home h2{font-size:24px}.study-source-home>p{font-size:14px;line-height:1.9}.study-path{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px;margin-top:28px}.study-path h2{font-size:22px}.study-path p{font-size:13px;color:var(--muted)}.study-path-symbol{background:var(--pale);color:var(--green)}
.studio-support{display:grid;grid-template-columns:140px 1fr auto;gap:22px;align-items:center;margin-top:46px;padding:26px 0 10px;border-top:1px solid var(--line)}.studio-support-logo{display:block;background:#fff;border:1px solid var(--line);padding:10px;border-radius:8px}.studio-support-logo img{display:block;width:100%;height:auto;max-height:132px;object-fit:contain}.studio-support h2{font-size:16px;margin:0 0 8px}.studio-support p{max-width:600px;margin:6px 0;font-size:12px;line-height:1.8;color:var(--muted)}.studio-support a{color:var(--green)}.studio-support .support-cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 16px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-size:13px;font-weight:700;background:var(--panel);white-space:nowrap}.studio-support .independent-note{font-size:11px}.studio-support .support-links{display:flex;flex-direction:column;gap:10px}.studio-support .secondary-link{font-size:11px;line-height:1.6;text-align:center}.learning-root,.dark .learning-root{--learn-gold:var(--gold-text)}.learning-list{gap:0!important;border-top:1px solid var(--line)}.learning-lesson{border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}.learning-lesson-copy small{font-size:11px!important}.learning-overview h1{font-size:30px}.learning-lesson-copy strong{font-size:15px}.learning-overview p{font-size:14px}.learning-paths{background:var(--light)}.learning-lesson-symbol{background:var(--pale)!important;color:var(--green)!important}.dark .learning-primary,.dark .learning-resume{background:#234e68}.dark .learning-primary{color:#fff}.dark .learning-resume{color:#eaf3f8}
.mobile-nav,.dark .mobile-nav{background:var(--panel);border-color:var(--line);box-shadow:0 -3px 20px #0b2e4406}.mobile-nav button{color:var(--muted);font-size:11px}.mobile-nav button.active,.mobile-nav button.active svg,.dark .mobile-nav button.active,.dark .mobile-nav button.active svg{color:var(--green)}.mobile-nav button.active:before{background:var(--gold)}.companion-sheet,.dark .companion-sheet,.tafsir-library,.dark .tafsir-library{background:var(--panel)}.companion-controls,.dark .companion-controls{background:var(--panel);border-color:var(--line)}.companion-controls [role=tablist],.tafsir-view-tabs{background:var(--light)}.companion-controls [role=tab][aria-selected=true]{background:var(--panel);color:var(--ink)}.tafsir-view-tabs [aria-selected=true]{background:var(--green);color:var(--panel)}.dark .tafsir-view-tabs [aria-selected=true]{color:#0c2437}.tafsir-range-note{background:var(--light);color:var(--muted);border-color:var(--gold)}.tafsir-classical-text,.dark .tafsir-classical-text{color:var(--ink)}.grammar-level button,.grammar-word,.dark .grammar-word{color:var(--ink);background:var(--panel)}.grammar-level button[aria-pressed=true],.grammar-word[aria-pressed=true]{background:var(--pale);color:var(--green)}.source-tile:hover,.home-workbench :is(button,a):hover,.learning-lesson:hover{background:var(--light)!important}
[dir=rtl] .brand strong{font-family:Manrope,sans-serif}[dir=rtl] .today-heading h1{font-family:var(--arabic);font-size:43px;letter-spacing:0}[dir=rtl] .nav button.active{box-shadow:inset -3px 0 #d8b878}[dir=rtl] .profile-control select{padding:8px 10px 8px 28px}
@media(max-width:1100px){.topbar{gap:12px}.profile-control label{display:none}.studio-support{grid-template-columns:115px 1fr}.support-links{grid-column:2}.source-shelf .source-tile{padding:17px 13px}.source-tile .source-tile-ar{font-size:23px}}
@media(max-width:700px){.topbar,.reader-page .topbar{grid-template-columns:minmax(0,1fr) auto;padding:11px 18px 9px;gap:9px 10px;min-height:116px}.top-brand span,.reader-page .top-brand span{font-size:13px}.top-brand img,.reader-page .top-brand img{width:30px;height:30px}.top-brand small{font-size:8px;letter-spacing:.8px}.top-right{gap:5px}.topbar .circle-btn{width:40px;min-width:40px}.profile-control{grid-row:2;grid-column:1/-1;max-width:none;justify-content:space-between;border-top:1px solid var(--line);padding-top:7px}.profile-control label{display:block;font-size:11px}.profile-control select{min-height:44px;max-width:170px;padding-block:5px;border:0;background:transparent;font-size:12px}.layout{padding:25px 18px 100px}.today-heading{margin-bottom:21px;gap:10px}.today-heading h1{font-size:31px;letter-spacing:-.7px}.today-heading .eyebrow{font-size:10px;line-height:1.6}.today-heading .studio-intro{font-size:13px;line-height:1.8;margin-top:9px}.today-date{display:none}.studio-home-grid{display:flex;flex-direction:column;gap:13px;margin-bottom:18px}.home-page .continue-card{min-height:0;padding:22px;border-radius:11px}.continue-card h2{font-size:27px;margin:9px 0 4px}.continue-card p{font-size:12px}.continue-actions{margin-top:15px}.continue-label{font-size:10px}.home-learning-entry{display:block;padding:20px;border-radius:10px;border-inline-start:3px solid var(--gold)}.home-learning-entry h2{font-size:21px;margin:8px 0}.home-learning-entry p{font-size:12px}.home-learning-entry .btn{width:auto;margin-top:13px;min-height:44px}.home-workbench{display:block;margin:16px 0 24px}.home-workbench :is(button,a){width:100%;padding:15px 7px;min-height:80px}.home-workbench :is(button,a)+:is(button,a){border-inline-start:0;border-top:1px solid var(--line)}.home-workbench strong{font-size:14px}.home-workbench small{font-size:12px}.source-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.source-tile:nth-child(3){border-inline-start:0!important}.source-tile:nth-child(n+3){border-top:1px solid var(--line)!important}.source-shelf .source-tile{padding:18px 14px;min-height:174px}.source-tile .source-tile-ar{font-size:25px}.source-tile strong{font-size:12px}.source-tile small,.source-tile .source-tile-open{font-size:10px}.section-head h2{font-size:19px}.text-link{font-size:12px;white-space:normal}.studio-support{grid-template-columns:84px minmax(0,1fr);gap:17px;padding-top:25px;margin-top:32px}.studio-support-logo{padding:6px}.studio-support h2{font-size:15px;line-height:1.6}.studio-support p{font-size:11px}.studio-support .independent-note{grid-column:1/-1;font-size:11px}.support-links{grid-column:1/-1!important;display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:14px!important}.studio-support .support-cta{font-size:12px;flex:none}.studio-support .secondary-link{text-align:start}.study-segments{gap:4px;margin-bottom:23px}.study-segments button{font-size:13px;padding:10px 5px;min-height:49px}.study-library-nav{gap:6px}.study-library-nav button{font-size:11px;flex:1;padding:8px 7px}.learning-list{grid-template-columns:1fr}.learning-overview h1{font-size:27px}.learning-overview p{font-size:13px}.learning-overview{gap:12px}.learning-completed{min-width:77px;padding-inline:10px}.learning-completed small{font-size:10px}.learning-lesson{padding:18px 1px;min-height:116px}.learning-lesson-copy strong{font-size:14px}.learning-lesson-copy small{font-size:10px!important}.learning-paths button{font-size:11px;padding:8px 5px}.study-path{padding:20px}.study-path h2{font-size:21px}.devotion-segments button{font-size:11px}.reader-page .topbar{position:relative}.reader-page .layout{padding-top:21px}[dir=rtl] .today-heading h1{font-size:36px}}
@media(max-width:360px){.topbar,.reader-page .topbar{padding-inline:12px}.top-brand{gap:7px}.top-brand span,.reader-page .top-brand span{font-size:11px}.top-brand small{font-size:7px}.reader-page .language-button{padding-inline:7px}.topbar .language-button{font-size:11px;min-width:42px;padding-inline:8px}.layout{padding-inline:14px}.today-heading h1{font-size:28px}.continue-actions .btn{padding-inline:12px;font-size:12px}.source-shelf .source-tile{padding-inline:12px}.source-tile .source-tile-ar{font-size:23px}.support-links{flex-wrap:wrap}.studio-support .secondary-link{font-size:11px}.mobile-nav button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.tafsir-source-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.tafsir-source-tab{min-width:0}.tafsir-source-tab small{font-size:10px}@media(max-width:600px){.tafsir-source-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.learning-resume,.dark .learning-resume{background:#10364f;color:#eaf3f8}.studio-support-logo{min-height:80px}


/* /editions.css */
/* Edition typography stays isolated from the canonical Hafs word renderer. */
.editions-root{--text:var(--ink,#192c35);--surface:var(--panel,#fff);--surface2:var(--light,#f0f3f2);--border:var(--line,#d2dbdc);--primary:var(--green,#123e50);--accent:var(--gold-text,#8c6a26);max-width:1000px;margin:0 auto;padding:20px 22px 100px;color:var(--text,#192c35)}
.edition-kicker{font-size:.68rem;font-weight:800;letter-spacing:.15em;color:var(--accent,#9a762f);margin:0 0 12px}
.edition-heading h1{font-family:Georgia,'Amiri',serif;font-weight:500;font-size:clamp(1.8rem,4.5vw,2.7rem);line-height:1.18;margin:0 0 12px}
.edition-heading>p:last-child{color:var(--muted,#56656d);line-height:1.7;max-width:680px;margin:0 0 24px}
.edition-controls{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.3fr) minmax(140px,.7fr);gap:12px;margin:20px 0}
.edition-controls label,.edition-size{display:flex;flex-direction:column;gap:7px;font-size:.76rem;font-weight:700;color:var(--text,#192c35)}
.edition-controls select,.edition-controls input{width:100%;min-width:0;height:46px;border:1px solid var(--border,#cdd4d8);border-radius:11px;padding:0 12px;color:var(--text,#192c35);background:var(--surface,#fff);font:inherit;font-size:.86rem}
.edition-jump{display:flex;gap:6px;align-items:flex-end;min-width:0}
.edition-jump label{min-width:0;flex:1}
.editions-root button{min-height:44px;padding:10px 13px;border-radius:10px;border:1px solid var(--border,#cdd4d8);color:var(--text,#192c35);background:var(--surface,#fff);font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
.editions-root button:hover{border-color:var(--accent,#9a762f);background:var(--surface2,#f5f3ed)}
.editions-root button:disabled{opacity:.4;cursor:default}
.editions-root :is(a,button,select,input,summary):focus-visible{outline:3px solid var(--accent,#9a762f);outline-offset:3px}
.edition-jump button{background:var(--primary,#123e50);color:#fff;border-color:var(--primary,#123e50)}
.edition-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface2,#f0f3f2);border:1px solid var(--border,#d2dbdc);border-radius:14px;padding:16px 18px}
.edition-banner>div{display:flex;flex-direction:column;gap:7px}
.edition-banner strong{font-size:.94rem}
.edition-banner span{color:var(--muted,#56656d);font-size:.76rem}
.edition-size{min-width:130px;max-width:150px;font-size:.7rem}
.edition-size input{accent-color:var(--primary,#123e50);min-height:28px;width:100%}
.edition-tool-note{font-size:.78rem;color:var(--muted,#56656d);line-height:1.65;margin:14px 2px 22px}
.edition-reading{border:1px solid var(--border,#d2dbdc);background:var(--surface,#fff);border-radius:18px;overflow:hidden}
.edition-reading>header{text-align:center;padding:25px 20px;background:var(--surface2,#f5f3ed);border-bottom:1px solid var(--border,#d2dbdc)}
.edition-reading h2{font-family:'Amiri',serif;font-size:1.8rem;font-weight:400;line-height:1.6;margin:0 0 4px}
.edition-reading header p{margin:0;font-size:.72rem;color:var(--muted,#56656d)}
.edition-verse{padding:20px 24px;border-bottom:1px solid var(--border,#e2e6e7)}
.edition-verse:last-child{border-bottom:0}
.edition-verse-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.edition-ref{font-size:.72rem;font-variant-numeric:tabular-nums;font-weight:700;border:1px solid var(--border,#d2dbdc);padding:7px 9px;border-radius:8px;margin-inline-end:auto;color:var(--muted,#56656d)}
.edition-verse-meta button{min-height:44px;padding:8px 10px;font-size:.73rem;background:transparent;border-color:transparent;color:var(--primary,#123e50)}
.edition-quran{font-family:var(--edition-font);font-size:var(--edition-size,34px);font-weight:400;line-height:2.1;text-align:right;word-break:normal;overflow-wrap:normal;color:var(--text,#192c35);margin:15px 0 3px;letter-spacing:normal;font-synthesis:none;font-feature-settings:normal}
.edition-paging{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:18px 0 12px}
.edition-paging>span{font-size:.71rem;text-align:center;color:var(--muted,#56656d)}
.edition-chapters{display:flex;justify-content:space-between;gap:12px}
.edition-chapters button{background:transparent;border-color:transparent;font-size:.74rem;color:var(--muted,#56656d)}
.edition-copy-status{font-size:.78rem;color:var(--muted,#56656d)}
.edition-source{margin-top:25px;border:1px solid var(--border,#d2dbdc);border-radius:14px;background:var(--surface,#fff);padding:16px 18px;font-size:.8rem;line-height:1.75;color:var(--muted,#56656d)}
.edition-source summary{cursor:pointer;color:var(--text,#192c35);font-weight:700;min-height:30px}
.edition-source p{margin:12px 0}
.edition-source dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:var(--surface2,#f0f3f2);padding:13px;border-radius:10px}
.edition-source dt{font-size:.67rem;font-weight:700}
.edition-source dd{margin:5px 0 0;font-size:.78rem;color:var(--text,#192c35)}
.edition-source-links{display:flex;flex-wrap:wrap;gap:8px 20px}
.edition-source a{color:var(--primary,#123e50);font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}
.edition-source .edition-small{font-size:.74rem}
.edition-loading,.edition-error{padding:28px;border:1px solid var(--border,#d2dbdc);border-radius:18px;background:var(--surface,#fff);line-height:1.7}
.edition-loading h2,.edition-error h2{font-size:1.25rem;font-weight:600;margin:0 0 10px}
.edition-loading p,.edition-error p{color:var(--muted,#56656d);font-size:.88rem}
.edition-error button{margin:6px 6px 0 0}
.dark .edition-quran{color:#edf3f4}
.dark .edition-verse-meta button,.dark .edition-source a{color:#aadad6}
.dark .edition-jump button{background:#b5d9d3;color:#102c34;border-color:#b5d9d3}
@media(max-width:600px){.editions-root{padding:14px 14px 100px}.edition-controls{grid-template-columns:1fr 1fr;gap:12px}.edition-controls>label:first-child{grid-column:1/-1}.edition-banner{padding:14px;gap:12px}.edition-size{min-width:100px;max-width:120px}.edition-reading{border-radius:14px}.edition-verse{padding:14px}.edition-quran{line-height:2.15}.edition-paging{gap:6px}.edition-paging button{font-size:.72rem;padding:10px 8px}.edition-source dl{grid-template-columns:1fr}.edition-source dl>div{display:flex;justify-content:space-between;gap:15px}.edition-source dd{margin:0}.edition-heading h1{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){.editions-root *{scroll-behavior:auto!important}}


/* /reciters.css */
/* Audio-library styles: readable labels, touch-sized controls, restrained navy accents. */
.reciters-library{--rc-muted:#506270;--rc-border:#cbd7df;--rc-soft:#edf3f7;--rc-accent:#123f60;--rc-active:#dcecf5;max-width:1040px;color:var(--ink,#172f2b)}
.reciters-library h2{font:750 19px/1.4 Manrope,sans-serif;letter-spacing:-.3px;margin:0}.reciters-library p{font-size:14px;line-height:1.7;color:var(--rc-muted)}
.rc-heading{margin-bottom:28px}.rc-heading p{margin:9px 0 0}.rc-featured,.rc-browser,.rc-regional{margin-bottom:30px}.rc-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.rc-badge{font:700 11px/1.5 Manrope,sans-serif;letter-spacing:.3px;color:var(--rc-accent);background:var(--rc-soft);border:1px solid var(--rc-border);border-radius:100px;padding:6px 10px;white-space:nowrap}
.rc-spotlight{display:flex;align-items:center;gap:16px;padding:20px;margin-bottom:24px;border:1px solid var(--rc-border);border-radius:18px;background:var(--rc-soft);color:var(--ink)}.rc-spotlight-icon{display:grid;place-items:center;flex:none;width:48px;height:56px;border-radius:24px 24px 12px 12px;background:var(--panel,#fff);color:var(--rc-accent)}.rc-spotlight-icon svg{width:28px;height:28px}.rc-spotlight-copy{flex:1;min-width:0}.rc-spotlight-kicker{font-size:12px;line-height:1.5;font-weight:750;color:var(--rc-accent)}.rc-spotlight h2{margin-top:4px;font-size:22px;line-height:1.45}.rc-spotlight p{font-size:13px;line-height:1.6;margin:4px 0 0}.rc-spotlight .rc-spotlight-context:empty{display:none}.rc-spotlight .btn{min-height:46px;white-space:normal;flex:none}.rc-player .rc-scope-note{font-size:13px;line-height:1.65;padding:11px 12px;border-radius:10px;background:var(--rc-soft);color:var(--rc-muted)}
.rc-spotlight-actions{display:grid;gap:4px;flex:none;text-align:center}.rc-spotlight-actions .rc-link{font-size:13px;white-space:normal}
@media(max-width:520px){.rc-spotlight{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px}.rc-spotlight-icon{width:40px;height:48px}.rc-spotlight h2{font-size:21px}.rc-spotlight-actions{grid-column:1/-1;width:100%}.rc-spotlight .btn{width:100%;justify-content:center}.rc-player-top .rc-badge{white-space:normal}.rc-close{flex:none}}
.rc-voices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rc-voice{display:grid;grid-template-columns:40px minmax(0,1fr);gap:5px 12px;border:1px solid var(--rc-border);border-radius:16px;padding:19px;text-align:start;background:var(--panel,#fff);color:var(--ink);min-height:122px;cursor:pointer}.rc-voice:hover{border-color:var(--rc-accent);background:var(--rc-soft)}.rc-voice-symbol{grid-row:1/4;display:grid;place-items:center;width:38px;height:44px;background:var(--rc-soft);color:var(--rc-accent);border-radius:18px 18px 6px 6px;font-size:22px}.rc-voice strong{font-size:15px;line-height:1.5}.rc-voice small{font-size:12px;line-height:1.5;color:var(--rc-muted)}.rc-voice>span:last-child{font-size:12px;font-weight:750;color:var(--rc-accent);margin-top:6px}
.rc-all-voices,.rc-provenance{border:1px solid var(--rc-border);background:var(--panel);border-radius:12px;padding:15px;margin-top:14px}.rc-all-voices summary,.rc-provenance summary{cursor:pointer;font-size:14px;line-height:1.6;font-weight:700;min-height:26px}.rc-all-voices[open] summary,.rc-provenance[open] summary{margin-bottom:16px}.rc-all-voices label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.rc-verse-select-row{display:flex;gap:10px;align-items:center}.rc-verse-select-row select{flex:1;min-width:0}.reciters-library select,.reciters-library input[type=search]{color:var(--ink);background:var(--panel,#fff);border:1px solid var(--rc-border);border-radius:9px;min-height:46px;padding:10px 12px;font:inherit;font-size:14px;max-width:100%}.reciters-library button:focus-visible,.reciters-library input:focus-visible,.reciters-library select:focus-visible,.reciters-library a:focus-visible,.reciters-library summary:focus-visible{outline:3px solid #237aaa;outline-offset:3px}.rc-explanation{margin:0 0 19px}.rc-search label{display:block;font-size:13px;font-weight:750;margin-bottom:8px}.rc-search input{width:100%;box-sizing:border-box}.rc-filter-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:15px 0}.rc-filters{display:flex;gap:6px;flex:1;flex-wrap:wrap}.rc-filters button{border:1px solid var(--rc-border);border-radius:8px;padding:10px 12px;min-height:44px;font-size:12px;font-weight:700;color:var(--rc-accent);background:var(--panel);cursor:pointer}.rc-filters button[aria-pressed=true]{background:var(--rc-accent);color:#fff;border-color:var(--rc-accent)}.rc-reading-filter{font-size:12px;font-weight:700;display:grid;gap:5px;max-width:100%}.rc-reading-filter select{width:230px}.rc-status:empty{display:none}.rc-status{background:var(--rc-soft);border-radius:9px;padding:12px}.rc-results-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 10px;color:var(--rc-muted);font-size:12px}.rc-link{border:0;background:none;color:var(--rc-accent);font-size:13px;font-weight:750;min-height:44px;padding:8px;text-decoration:underline;cursor:pointer}.rc-recordings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rc-recording{display:flex;align-items:center;gap:12px;border:1px solid var(--rc-border);border-radius:12px;padding:17px 14px;background:var(--panel);text-align:start;min-width:0;color:var(--ink);cursor:pointer}.rc-recording:hover,.rc-recording.is-selected{border-color:var(--rc-accent);background:var(--rc-soft)}.rc-play-symbol{flex:none;display:grid;place-items:center;font-size:21px;background:var(--rc-soft);color:var(--rc-accent);border:1px solid var(--rc-border);width:37px;height:37px;border-radius:50%}.rc-recording-text{min-width:0;flex:1;display:grid;gap:6px}.rc-recording strong{font-size:14px;line-height:1.5}.rc-recording-text>span{font-size:12px;line-height:1.5;color:var(--rc-muted);overflow-wrap:anywhere}.rc-recording small{font-size:11px;line-height:1.5;color:var(--rc-muted)}.rc-select-label{font-size:11px;color:var(--rc-accent);font-weight:750}.rc-more{display:flex;justify-content:center;margin-top:18px}.rc-empty{grid-column:1/-1;text-align:center;padding:30px;border:1px dashed var(--rc-border);border-radius:12px}.rc-empty p{margin:9px 0 16px}
.rc-player{background:var(--panel);border:2px solid var(--rc-accent);border-radius:17px;padding:20px;margin:18px 0 22px;box-shadow:0 8px 25px #123f600b;scroll-margin-top:100px}.rc-player[hidden]{display:none}.rc-player-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.rc-close{width:44px;height:44px;border:0;border-radius:50%;background:var(--rc-soft);color:var(--rc-accent);font-size:25px;cursor:pointer}.rc-player h3{font-size:21px;margin:14px 0 4px}.rc-player p{margin:6px 0 15px}.rc-player-controls{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px;margin:18px 0 12px}.rc-player-controls label{display:grid;gap:7px;font-weight:750;font-size:12px}.rc-player audio{display:block;width:100%;height:54px;margin:12px 0}.rc-playback-options{display:flex;flex-wrap:wrap;gap:8px 22px}.rc-playback-options label{min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5}.rc-playback-options input{width:20px;height:20px;accent-color:var(--rc-accent);flex:none}.rc-player #rc-playback-status{font-size:12px;margin:10px 0}.rc-player>a,.rc-provenance>a{font-size:13px;font-weight:700;color:var(--rc-accent);text-underline-offset:3px}.rc-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rc-archive-grid a{border:1px solid var(--rc-border);border-radius:12px;background:var(--panel);padding:16px;text-decoration:none;color:var(--rc-accent);display:grid;align-content:start;gap:10px}.rc-archive-grid strong{font-size:14px;line-height:1.5}.rc-archive-grid span{font-size:12px;line-height:1.7;color:var(--rc-muted)}.rc-archive-grid a:hover{background:var(--rc-soft);border-color:var(--rc-accent)}.rc-provenance p{font-size:12px}
body.dark .reciters-library{--rc-muted:#bbcbd7;--rc-border:#4a6274;--rc-soft:#193b51;--rc-accent:#b3daf3;--rc-active:#234a64}body.dark .rc-filters button[aria-pressed=true]{color:#102c40}body.dark .rc-player{box-shadow:none}body.dark .rc-playback-options input{accent-color:#8dc8ef}
[dir=rtl] .reciters-library h1,[dir=rtl] .reciters-library h2,[dir=rtl] .rc-badge{font-family:var(--arabic),serif;letter-spacing:0}
@media(max-width:680px){.rc-heading{margin-bottom:22px}.rc-voices{gap:9px}.rc-voice{display:flex;flex-direction:column;padding:14px;min-height:174px;gap:7px}.rc-voice-symbol{width:32px;height:35px;font-size:19px}.rc-voice strong{font-size:14px}.rc-voice>span:last-child{margin-top:auto;padding-top:8px}.rc-recordings,.rc-archive-grid{grid-template-columns:1fr}.rc-recording{padding:15px}.rc-filter-row{align-items:stretch}.rc-filters{flex-basis:100%}.rc-filters button{flex:1 1 calc(50% - 6px)}.rc-reading-filter{width:100%}.rc-reading-filter select{width:100%}.rc-section-title{align-items:start}.rc-section-title h2{font-size:17px}.rc-badge{font-size:10px}.rc-player{padding:15px}.rc-player h3{font-size:19px}.rc-verse-select-row{align-items:stretch;flex-direction:column}.rc-all-voices,.rc-provenance{padding:13px}.rc-playback-options{display:grid;gap:0}.rc-player-controls{grid-template-columns:minmax(0,1fr) 85px}}
@media(prefers-reduced-motion:reduce){.reciters-library *{scroll-behavior:auto!important;transition:none!important}}
/* Regional voice tiles: text carries the identity; flags are a secondary cue. */
.rc-avatar{flex:none;display:grid;place-items:center;width:54px;height:60px;border:1px solid var(--rc-border);border-radius:24px 24px 14px 14px;background:var(--rc-soft);font-size:31px;line-height:1;color:var(--rc-accent)}.rc-avatar svg{width:27px;height:27px}.rc-mustafa{background:linear-gradient(115deg,var(--rc-soft),var(--panel,#fff));border-inline-start:4px solid var(--rc-accent);margin-bottom:12px}.rc-mustafa .rc-spotlight-actions{min-width:168px;gap:8px}.rc-mustafa .rc-avatar{width:66px;height:76px;font-size:38px;background:var(--panel,#fff)}.rc-library-help{font-size:12px!important;max-width:720px;margin:-7px 0 17px}.rc-voice-tile,.rc-recording-tile{position:relative;min-width:0;border:1px solid var(--rc-border);border-radius:16px;background:var(--panel,#fff);overflow:visible}.rc-voice-tile.is-current,.rc-recording-tile.is-selected{border-color:var(--rc-accent);box-shadow:inset 0 0 0 1px var(--rc-accent)}.rc-voice-tile.is-current:after{content:'';position:absolute;inset:0 auto auto 15px;width:25px;height:3px;border-radius:0 0 3px 3px;background:var(--rc-accent)}.rc-favorite{position:absolute;inset:8px 8px auto auto;display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;background:transparent;color:var(--rc-muted);cursor:pointer;font-size:27px;line-height:1}.rc-favorite:hover{background:var(--rc-soft)}.rc-favorite[aria-pressed=true]{color:var(--rc-accent)}.rc-voice-tile .rc-voice{width:100%;height:100%;border:0;background:transparent;grid-template-columns:54px minmax(0,1fr);padding:19px 56px 19px 16px;border-radius:16px;box-sizing:border-box}.rc-voice .rc-avatar{grid-row:1/4}.rc-voice-tile.is-current .rc-voice-action{font-weight:800}.rc-recording-tile .rc-recording{width:100%;height:100%;border:0;border-radius:16px;padding:19px 56px 19px 16px;background:transparent;box-sizing:border-box;align-items:flex-start;min-height:142px}.rc-recording-tile:hover,.rc-voice-tile:hover{background:var(--rc-soft)}.rc-recording-text .rc-select-label{color:var(--rc-accent);font-weight:750;padding-top:4px}.rc-favorite:focus-visible{outline-offset:1px!important}.rc-recording-tile.is-selected .rc-select-label:before{content:'✓ ';}.rc-voices{grid-template-columns:repeat(2,minmax(0,1fr))}
[dir=rtl] .rc-favorite{inset:8px auto auto 8px}[dir=rtl] .rc-voice-tile .rc-voice,[dir=rtl] .rc-recording-tile .rc-recording{padding:19px 16px 19px 56px}[dir=rtl] .rc-voice-tile.is-current:after{left:auto;right:15px}
@media(max-width:680px){.rc-voice-tile .rc-voice{padding:14px;min-height:235px;gap:8px}.rc-voice .rc-avatar{width:46px;height:52px;font-size:27px;margin-bottom:3px}.rc-voice-tile .rc-voice-action{line-height:1.6}.rc-voice-tile .rc-favorite{inset:8px 4px auto auto;min-width:44px;min-height:44px}.rc-recording-tile .rc-recording{min-height:132px}.rc-mustafa .rc-avatar{width:42px;height:52px;font-size:27px}.rc-mustafa .rc-spotlight-actions{grid-template-columns:1fr 1fr;min-width:0;gap:8px}.rc-mustafa .rc-spotlight-actions .btn{font-size:12px;padding:10px 7px;line-height:1.5}.rc-mustafa .rc-spotlight-copy h2{font-size:21px}[dir=rtl] .rc-voice-tile .rc-voice{padding:14px}[dir=rtl] .rc-voice-tile .rc-favorite{left:4px;right:auto}}
.rc-return{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px;color:var(--rc-accent);font-size:13px;font-weight:750;text-underline-offset:3px}.rc-return[hidden]{display:none}

/* Two listening tasks share one quiet chooser and the same tap targets. */
.reciters-library.rc-compact{width:min(100%,46rem);margin-inline:auto;--rc-accent:var(--green,#256457);--rc-muted:var(--muted,#4d635c);--rc-border:var(--line,#cbd8ce);--rc-soft:var(--panel,#faf8ef)}
.rc-compact [hidden]{display:none!important}
.rc-compact .rc-task-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;min-height:5rem}
.rc-task-title h1{margin:0}.rc-task-title img{width:clamp(4.5rem,12vw,6rem);height:auto;aspect-ratio:1;object-fit:contain;border-radius:1rem}
.rc-compact .rc-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--rc-border);margin-bottom:1rem}
.rc-tabs button,.rc-pager button,.rc-feature-links button{background:transparent;color:var(--ink);font:inherit;border:0;min-height:46px;cursor:pointer}
.rc-tabs button{border-bottom:3px solid transparent;font-weight:650}.rc-tabs button[aria-pressed=true]{border-color:var(--rc-accent);color:var(--rc-accent)}
.rc-compact .rc-row{display:grid;grid-template-columns:minmax(0,1fr) 3rem;gap:.5rem;align-items:center;min-block-size:3.75rem;border-block-end:1px solid var(--rc-border)}
.rc-compact .rc-row-choice{display:grid;align-content:center;gap:.1rem;min-width:0;min-height:3.75rem;text-align:start;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:650;padding:.5rem .25rem;cursor:pointer;overflow-wrap:anywhere}
.rc-compact .rc-row-choice small{color:var(--rc-muted);font-size:.82rem;line-height:1.4;font-weight:450}
.rc-compact .rc-row .rc-favorite{position:static;inset:auto;width:46px;height:46px;border:0;background:transparent;color:var(--rc-accent)}
.rc-compact .rc-fold{border:0;border-block-end:1px solid var(--rc-border);border-radius:0;margin:0;padding:.15rem 0;background:transparent}
.rc-fold>summary{padding:.65rem .2rem;min-height:46px;cursor:pointer;font-weight:650}
.rc-fold[open]>summary{margin-bottom:.4rem}.rc-compact .rc-search{margin:0 0 .75rem}.rc-compact input,.rc-compact select{width:100%;min-width:0;min-height:46px}
.rc-compact #rc-recordings:is([aria-busy=true],[data-paged=true]){min-height:22.5rem}.rc-compact .rc-instruction{margin:0 0 .5rem}
.rc-compact .rc-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;text-align:center;margin:0}
.rc-pager button{color:var(--rc-accent);font-weight:650}.rc-pager button:disabled{color:var(--rc-muted);opacity:.55}
.rc-feature-links,.rc-filter-controls{display:grid;gap:.5rem;margin-block:.4rem 1rem}.rc-feature-links button{text-align:start}
.rc-compact .rc-filter-controls{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}
.rc-filter-controls label{display:grid;gap:.3rem}
.rc-compact .rc-player{margin:0}.rc-compact .rc-player audio{display:block;width:100%;height:54px}
.rc-compact #rc-playback-status{min-height:3em}.rc-compact .rc-status:empty{margin:0}.rc-compact .rc-fold .rc-regional{margin-top:1rem}
.rc-compact .rc-playback-options input[type=checkbox]{width:1.15rem;min-height:0;height:1.15rem}

.rc-compact .rc-results-top{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;background:var(--panel);position:sticky;inset-block-start:0;z-index:2}
.rc-compact #rc-view-tools{margin-inline-start:auto}
.rc-compact .rc-row-choice{scroll-margin-block-start:4rem}
.rc-compact #rc-page-jump{font:inherit;color:var(--ink);background:var(--panel);min-block-size:44px;max-inline-size:100%;padding-inline:.5rem}
.rc-compact .rc-pager svg{width:1.25rem;height:1.25rem;vertical-align:middle}


/* /tajweed.css */
/* Five high-contrast families. Text labels accompany every learning swatch. */
:root{--taj-madd:#1649a2;--taj-nasal:#77298f;--taj-merge:#176244;--taj-echo:#a12c35;--taj-join:#4b5866}
body.dark{--taj-madd:#9fc3ff;--taj-nasal:#e3afff;--taj-merge:#87dcc0;--taj-echo:#ffadb7;--taj-join:#becbd8}
.taj-madd{color:var(--taj-madd)}.taj-nasal{color:var(--taj-nasal)}.taj-merge{color:var(--taj-merge)}.taj-echo{color:var(--taj-echo)}.taj-join{color:var(--taj-join)}
.verse-ar .reader-word{display:inline;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit;padding:0 2px;margin:0;min-width:0;min-height:44px;text-align:inherit;vertical-align:baseline;cursor:pointer;box-shadow:none;transform:none;touch-action:manipulation}
.verse-ar .reader-word:hover,.verse-ar .reader-word:focus-visible{background:var(--pale,#eaf0f3);outline:2px solid var(--accent,var(--green,#145b7d));outline-offset:2px}
.verse-ar .reader-word:focus:not(:focus-visible){outline:none}
.taj-rule{display:inline;font:inherit;line-height:inherit;font-kerning:normal}
.taj-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 28px));max-width:none;max-height:min(90dvh,950px);padding:0;border:1px solid var(--line,#cbd7de);border-radius:24px;background:var(--panel,#fff);color:var(--ink,#132f42);box-shadow:0 28px 95px #06172245;overflow:hidden}
.taj-dialog::backdrop{background:#061b35a3;backdrop-filter:blur(4px)}
.taj-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px 18px;border-bottom:1px solid var(--line,#cbd7de)}
.taj-header p{font-size:11px;letter-spacing:.09em;color:var(--muted,#465d70);font-weight:700;margin:0 0 5px}.taj-header h2{font-size:24px;line-height:1.3;margin:0;letter-spacing:-.02em}
.taj-header button{min-width:44px;min-height:44px;border:1px solid var(--line,#cbd7de);border-radius:50%;font-size:26px;background:var(--pale,#eaf0f3);color:var(--ink,#132f42);cursor:pointer}
.taj-body{max-height:calc(min(90dvh,950px) - 102px);overflow:auto;overscroll-behavior:contain;padding:20px 24px 30px;scrollbar-gutter:stable}
.taj-dialog p{font-size:15px;line-height:1.7}.taj-dialog button,.taj-dialog a,.taj-dialog summary{touch-action:manipulation}.taj-dialog button:focus-visible,.taj-dialog a:focus-visible,.taj-dialog summary:focus-visible{outline:3px solid var(--accent,var(--green,#145b7d));outline-offset:3px}
.taj-intro{margin:0 0 16px;color:var(--muted,#465d70)}
.taj-legend{display:flex;flex-wrap:wrap;gap:10px 17px;padding:13px 0 20px;font-size:13px}.taj-legend>span{display:flex;align-items:center;gap:7px}.taj-swatch{display:inline-block;width:10px;height:10px;flex:0 0 10px;border:1px solid currentColor;border-radius:50%;background:currentColor}
.taj-rule-options,.taj-word-rules{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.taj-rule-options button,.taj-word-rules button{display:flex;align-items:center;gap:8px;text-align:start;border:1px solid var(--line,#cbd7de);border-radius:12px;background:var(--panel,#fff);color:var(--ink,#132f42);min-height:44px;padding:9px 12px;font-size:14px;font-family:inherit;cursor:pointer}.taj-rule-options button[aria-pressed=true],.taj-word-rules button[aria-pressed=true]{background:var(--pale,#eaf0f3);border-color:var(--accent,var(--green,#145b7d));box-shadow:inset 0 0 0 1px var(--accent,var(--green,#145b7d))}
.taj-rule-card{border:1px solid var(--line,#cbd7de);background:var(--panel,#fff);border-radius:18px;padding:19px}.taj-rule-heading{display:flex;align-items:flex-start;gap:12px}.taj-rule-heading>.taj-swatch{margin-top:8px}.taj-rule-heading h3{font-size:19px;line-height:1.4;margin:0}.taj-rule-heading .taj-cue{font-size:13px;font-weight:700;margin:4px 0 0}.taj-rule-card>p{margin:14px 0}.taj-practice{background:var(--pale,#eaf0f3);border-radius:12px;padding:12px 14px}.taj-practice>b{font-size:13px}.taj-practice p{margin:5px 0 0;font-size:14px}
.taj-word-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 13px}.taj-word-nav>div{min-width:0;text-align:center}.taj-word-nav .taj-selected-word{font-family:var(--arabic,'Amiri',serif);font-size:44px;line-height:1.9;margin:0;overflow-wrap:anywhere}.taj-word-nav small{font-size:13px;color:var(--muted,#465d70)}.taj-word-nav>button{flex:0 0 44px;width:44px;min-height:44px;border:1px solid var(--line,#cbd7de);background:var(--panel,#fff);color:var(--ink,#132f42);border-radius:50%;font-size:26px;cursor:pointer}.taj-word-nav>button:disabled{opacity:.4;cursor:default}
.taj-context{font-family:var(--arabic,'Amiri',serif);font-size:25px!important;text-align:center;padding:10px 14px;background:var(--pale,#eaf0f3);border-radius:14px;margin:0;overflow-wrap:anywhere}.taj-context mark{background:none;color:var(--ink,#132f42);text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:2px}.taj-context-label{text-align:center;color:var(--muted,#465d70);font-size:12px!important;margin:8px 0 18px}.taj-empty{padding:16px;border:1px dashed var(--line,#cbd7de);border-radius:14px;font-size:14px;line-height:1.7;background:var(--pale,#eaf0f3)}
.taj-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.taj-actions button,.taj-primary,.taj-quiz button,[data-taj-retry]{font:inherit;font-size:14px;font-weight:600;min-height:46px;padding:11px 14px;border:1px solid var(--line,#cbd7de);border-radius:12px;color:var(--ink,#132f42);background:var(--pale,#eaf0f3);cursor:pointer}.taj-actions button:last-child{grid-column:1/-1}.taj-actions [data-taj-play]{background:var(--accent,var(--green,#145b7d));color:#fff;border-color:transparent}
.taj-foundations,.taj-sources{border-top:1px solid var(--line,#cbd7de);margin-top:20px;padding-top:12px}.taj-foundations summary,.taj-sources summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-weight:600;font-size:14px;line-height:1.6}.taj-sources p,.taj-foundations p{font-size:13px;color:var(--muted,#465d70)}.taj-source-links{display:flex;flex-direction:column;gap:4px}.taj-source-links a{display:flex;align-items:center;min-height:44px;color:var(--accent,var(--green,#145b7d));font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
.taj-quiz{margin-top:18px;padding:18px;background:var(--pale,#eaf0f3);border-radius:16px}.taj-quiz h3{font-size:17px;margin:0}.taj-quiz>div{display:flex;gap:10px}.taj-quiz button{min-width:80px;background:var(--panel,#fff)}.taj-quiz button[aria-pressed=true]{border-color:var(--accent,var(--green,#145b7d));box-shadow:inset 0 0 0 1px var(--accent,var(--green,#145b7d))}.taj-quiz [role=status]{margin-bottom:0;font-weight:600}
@media(max-width:600px){.taj-dialog{width:100%;max-height:92dvh;margin:auto 0 0;border-radius:24px 24px 0 0;border-bottom:0}.taj-header{padding:18px 18px 14px}.taj-header h2{font-size:23px}.taj-body{padding:17px 18px max(26px,env(safe-area-inset-bottom));max-height:calc(92dvh - 94px)}.taj-rule-options{gap:7px}.taj-rule-options button{font-size:13px}.taj-rule-card{padding:16px}.taj-word-nav .taj-selected-word{font-size:40px}}
@media(prefers-reduced-motion:reduce){.taj-dialog,.taj-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* /reader-polish.css */
/* Reader v10: strong ink, visible controls and colour reserved for meaning.
 * Load after the legacy theme sheets. Tajweed rule colours remain in tajweed.css.
 */
:root, body:not(.dark) {
  --ink: #102d41;
  --muted: #465d70;
  --green: #145b7d;
  --gold-text: #76531a;
  --control-line: #778b9a;
  --on-accent: #ffffff;
  --reading-paper: #fffefa;
  --reading-hint: #eaf0f3;
  --focus-ring: #845806;
}
body.dark {
  --ink: #eef3f7;
  --muted: #b7cbd9;
  --green: #bfe3f7;
  --gold-text: #e4c990;
  --control-line: #829bac;
  --on-accent: #0c2638;
  --reading-paper: #132838;
  --reading-hint: #203b4e;
  --focus-ring: #f1cf85;
}
body { color: var(--ink); }
body :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
body :is(input, select, textarea) { color: var(--ink); accent-color: var(--green); }
body input::placeholder, body textarea::placeholder { color: var(--muted); opacity: 1; }
body .eyebrow, body .grammar-kicker, body .study-kicker { color: var(--gold-text); }

/* The Quran and its reference retain the clearest hierarchy on the page. */
body .reader-page, body .verses-reading-surface { color: var(--ink); }
body .verse-card { background: var(--reading-paper); }
body .verse-ar { color: var(--ink); line-height: 2.25; }
body .verse-en {
  color: var(--ink);
  font-size: var(--english-size, 16px);
  line-height: 1.9;
}
body .verse-transliteration {
  color: var(--muted);
  font-size: var(--translit-size, 16px);
  line-height: 1.85;
}
body .verse-en small, body .verse-transliteration small,
body .verse-top > .verse-source {
  color: var(--muted);
  font-size: 12px !important;
  line-height: 1.7;
  font-weight: 500;
}
body .verse-ref { color: var(--green); background: var(--reading-hint); font-size: 13px; }
body .ayah-end { color: var(--gold-text); }
body .reader-surah-ornament { color: var(--gold-text); }
body .reader-surah-select small, body .reader-location,
body .reader-mode-note, body .numbering-note, body .cache-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
body .reader-location button, body .reader-tools .tool { color: var(--green); font-size: 13px; }
body .reader-mode-note { background: var(--reading-hint); }
body .reading-today small, body .verse-jump label { font-size: 12px; color: var(--muted); }
body .reader-surah-select .reader-surah-number { color: var(--green); background: var(--reading-hint); }

/* Controls are distinct from surrounding text, including in night mode. */
body .tool, body .verse-action, body .btn-outline,
body .text-link, body .icon-button, body .reader-appearance {
  color: var(--green);
  font-size: 14px;
}
body .icon-button { font-size: 21px; }
body .tool, body .btn-outline, body .reader-appearance {
  background: var(--panel);
  border-color: var(--control-line);
}
body .tool.on { background: var(--reading-hint); border-color: var(--green); }
body .btn-green, body .grammar-bridge button {
  background: var(--green);
  color: var(--on-accent);
  border-color: var(--green);
}
body .icon-button.saved { color: var(--gold-text); }
body .verse-action { min-height: 44px; line-height: 1.5; }
body .reader-options :is(select, input[type=number]),
body .verse-jump input, body .settings-card select,
body .study-library-nav button, body .profile-control select,
body .topbar :is(.language-button, .circle-btn) {
  border-color: var(--control-line);
}
body .reader-options :is(label, summary), body .setting-row strong { font-size: 14px; }
body .reader-options select, body .setting-row select { font-size: 14px; line-height: 1.5; }
body .layout-choice small, body .setting-row small { font-size: 13px; color: var(--muted); }
body .reader-switch { color: var(--ink); }
body .reader-switch input, body .reader-font-sliders input { accent-color: var(--green); }
body .footer-note, body .source-access-note, body .study-footnote,
body .source-access-note p, body .studio-support p,
body .studio-support .independent-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}
body .studio-support .secondary-link { font-size: 12px; color: var(--green); }

/* A selected verse is located by an edge and background, not a faint tint alone. */
body .verse-card.selected-verse {
  border-color: var(--control-line);
  box-shadow: inset 3px 0 0 var(--green);
}
body[dir=rtl] .verse-card.selected-verse,
html[dir=rtl] .verse-card.selected-verse { box-shadow: inset -3px 0 0 var(--green); }
body .hidden-verse { background: var(--reading-hint); color: var(--muted); border-color: var(--control-line); }

/* Verse companion: typography and source labels use the same ink system. */
body .reader-companion { background: var(--panel); color: var(--ink); }
body .companion-header, body .companion-controls { background: var(--panel); }
body .companion-reference, body .companion-basmala,
body .companion-message { color: var(--muted); font-size: 13px; line-height: 1.8; }
body .companion-eyebrow, body .dock-verse > span { color: var(--gold-text); font-size: 11px; }
body .companion-controls [role=tab] { color: var(--muted); font-size: 13px; min-height: 48px; }
body .companion-controls [role=tab][aria-selected=true] { color: var(--ink); background: var(--reading-hint); }
body .reader-dock { background: var(--panel); color: var(--ink); }
body .reader-dock button { background: var(--reading-hint); color: var(--green); }
body .reader-dock button.dock-recite { background: var(--green); color: var(--on-accent); }
body .reader-dock button small { color: inherit; }

/* Classical source text must not inherit an unrelated green light-mode palette. */
body .tafsir-inline {
  --tf-ink: var(--ink);
  --tf-muted: var(--muted);
  --tf-line: var(--line);
  --tf-gold: var(--gold-text);
  color: var(--ink);
}
body .tafsir-source-tabs, body .tafsir-language { background: var(--reading-hint); border-color: var(--line); }
body .tafsir-source-tab { color: var(--muted); }
body .tafsir-source-tab[aria-selected=true] { color: var(--ink); background: var(--panel); }
body .tafsir-language button { color: var(--muted); font-size: 13px; }
body .tafsir-language button[aria-pressed=true], body .tafsir-view-tabs button[aria-selected=true] {
  background: var(--green); color: var(--on-accent);
}
body .tafsir-original, body .tafsir-classical-text { color: var(--ink); }
body .tafsir-summary { background: var(--reading-hint); color: var(--ink); }
body .tafsir-summary p { color: var(--ink); font-size: 15px; line-height: 1.85; }
body .tafsir-summary small, body .tafsir-passage footer > span,
body .tafsir-access-link small, body .tafsir-source-details p,
body .tafsir-more-link small, body .tafsir-access-note,
body .tafsir-range-note, body .tafsir-classical-footer small,
body .tafsir-book-heading p, body .tafsir-reference,
body .tafsir-more-select, body .tafsir-reading-tools {
  color: var(--muted); font-size: 13px; line-height: 1.8;
}
body .tafsir-caption { color: var(--gold-text); font-size: 11px; }
body .tafsir-access-link, body .tafsir-more-link {
  color: var(--ink); background: var(--panel); border-color: var(--control-line);
}
body .tafsir-passage footer > a, body .tafsir-sub-link,
body .tafsir-source-details a, body .tafsir-classical-footer a,
body .tafsir-source-details summary, body .tafsir-secondary summary,
body .tafsir-source-details .tafsir-scope {
  color: var(--green); font-size: 13px;
}
body .tafsir-range-note, body .tafsir-loading,
body .tafsir-reference > span:last-child { background: var(--reading-hint); color: var(--muted); }

/* Grammar keeps larger Arabic words and readable explanation/annotation labels. */
body .grammar-source-badge, body .grammar-word > small,
body .grammar-selected-word > small, body .grammar-root-lemma > div > small,
body .grammar-segment-top small, body .grammar-features span,
body .grammar-loading small, body .grammar-basmala,
body .grammar-instruction, body .grammar-no-root,
body .grammar-scope-note, body .grammar-study-link > small,
body .grammar-classical p, body .grammar-about p,
body .grammar-tags pre, body .grammar-related p,
body .grammar-provenance, body .grammar-bridge p {
  color: var(--muted); font-size: 12px; line-height: 1.85;
}
body .grammar-word.active, body .grammar-word.active > small { color: var(--ink); }
body .grammar-segment-top small { color: var(--gold-text); }
body .grammar-features span { background: var(--reading-hint); }
body .grammar-source-link, body .grammar-reveal-details,
body .grammar-study-link > button, body .grammar-classical a,
body .grammar-classical button, body .grammar-tags summary,
body .grammar-about summary { color: var(--green); font-size: 13px; }
body .grammar-level > button { font-size: 13px; }

/* Preserve success/error semantics; improve surrounding instructional text. */
body .learning-source, body .learning-reference,
body .learning-filter-heading > button { color: var(--green); font-size: 13px; }
body .learning-lesson-copy small { color: var(--gold-text); font-size: 12px !important; }
body .learning-lesson-copy > span, body .learning-private-note,
body .learning-example-caption, body .learning-gentle,
body .learning-completed small, body .learning-stage-list > button small {
  color: var(--muted); font-size: 13px !important; line-height: 1.75;
}
body .learning-reference small { color: var(--muted); font-size: 12px; }
body .learning-paths button { font-size: 13px; }
body .learning-paths button[aria-pressed=true] { color: var(--ink); }
body .learning-primary { background: var(--green); color: var(--on-accent); }
body .rec-kicker, body .rec-experimental, body .rec-source-ref,
body .rec-timer, body .rec-upload label, body .rec-upload small,
body .rec-legend, body .rec-result-note, body .rec-provider-state,
body .rec-privacy-note, body .rec-credit { color: var(--muted); font-size: 12px !important; line-height: 1.8; }
body .rec-setup, body .rec-status, body .rec-provider-button { font-size: 14px; }
body .rec-text-button, body .rec-credit a, body .rec-cloud-links a { color: var(--green); font-size: 13px; }
body .rec-primary { background: var(--green); border-color: var(--green); color: var(--on-accent); }
body .rec-primary.is-recording { background: #8c3d29; border-color: #8c3d29; color: #ffffff; }

/* Keep audio readable without forcing the compact metadata into tiny type. */
body .audio-player { background: #12364d; color: #f4f8fa; border-color: #8da8ba; }
body .player-location span { color: #f0d7a4; font-size: 11px; line-height: 1.5; letter-spacing: .5px; }
body .player-location strong { color: #f4f8fa; font-size: 14px; line-height: 1.6; }
body .player-location small, body .player-timeline small { color: #d2e2ec; font-size: 12px; line-height: 1.6; }
body .player-actions .tool, body .player-repeat select {
  background: #1d4b66; color: #ffffff; border-color: #9db5c4; font-size: 13px; min-height: 44px;
}
body .player-timeline input { accent-color: #f0d7a4; }
body .player-location { text-align: start; }
body .mobile-nav button { color: var(--muted); }
body .mobile-nav button.active, body .mobile-nav button.active svg { color: var(--green); }
body .source-tile small, body .source-tile .source-tile-open { color: var(--muted) !important; font-size: 12px; }
body .source-tile .source-tile-index { color: var(--gold-text) !important; }
body .surah-info small, body .surah-ar { color: var(--muted); }
body .search { color: var(--muted); border-color: var(--control-line); }
body .notice { color: var(--muted); background: var(--reading-hint); border-color: var(--line); }
body .pwa-update-dot { color: #ffffff; background: #145b7d; }

@media (max-width:700px) {
  body .verse-card { padding: 23px 17px; }
  body .verse-actions { gap: 6px; }
  body .verse-action { font-size: 13px; padding: 9px 7px; }
  body .reader-dock button { padding-inline: 9px; }
  body .reader-options :is(select, input[type=number]) { max-width: 100%; }
  body .profile-control label, body .profile-control select { font-size: 12px; }
  body .audio-player { grid-template-columns: minmax(0,1fr) auto; row-gap: 10px; }
  body .player-location { grid-column: 1/-1; grid-row: 1; }
  body .player-actions { grid-column: 1/-1; grid-row: 2; justify-content: flex-end; }
  body .player-timeline { grid-column: 1/-1; grid-row: 3; }
  body .player-repeat select { max-width: none; width: 145px; }
  body.has-audio { padding-bottom: 290px; }
  body.has-audio .toast { bottom: 285px; }
  body .source-tile small, body .source-tile .source-tile-open { font-size: 11px; }
  body .studio-support .support-cta { font-size: 13px; }
}
@media (max-width:360px) {
  body .verse-top > .verse-source { flex-basis: auto; order: initial; }
  body .verse-action { font-size: 12px; padding-inline: 6px; }
  body .player-repeat select { width: 130px; }
  body .player-actions .tool { font-size: 13px; }
  body .companion-controls [role=tab] { font-size: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  body .verse-card, body .tool, body .verse-action { transition: none; }
}
/* Compact edition choices stay beside the reading experience. */
.reader-library-links{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.reader-library-links .tool{flex:1;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:start}.reader-library-links .tool span{font-size:18px}
.reader-edition-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 20px;margin:0 0 20px;background:var(--panel);border:1px solid var(--line);border-radius:14px}.reader-edition-bar>label:first-child{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);flex:1;min-width:200px}.reader-edition-bar select{border:1px solid var(--control-line);border-radius:8px;padding:10px;background:var(--panel);font-size:14px;min-height:44px;color:var(--ink);width:100%}.reader-color-switch{font-size:13px;display:flex;gap:8px;align-items:center;min-height:44px}.reader-color-switch input{width:20px;height:20px}.reader-edition-bar p{flex-basis:100%;margin:0;font-size:12px;color:var(--muted);line-height:1.75}.reader-edition-bar .text-link{font-size:13px;min-height:44px}
@media(max-width:700px){.reader-library-links{gap:8px}.reader-library-links .tool{flex-basis:calc(50% - 8px);font-size:13px}.reader-library-links .tool:last-child{flex-basis:100%}.reader-edition-bar{padding:14px;gap:4px 14px}.reader-edition-bar>label:first-child{flex-basis:100%;margin-bottom:6px}.reader-edition-bar .text-link{margin-inline-start:auto}}
body .verse-actions .verse-action{font-size:14px;min-height:44px}
body.dark .taj-actions [data-taj-play]{background:var(--green);color:var(--on-accent)}
@media(max-width:700px){body .verse-actions .verse-action{font-size:13px;padding-inline:7px;gap:5px}.reader-page .layout{padding-top:14px}}
@media(max-width:360px){body .verse-actions .verse-action{font-size:12px;padding-inline:5px}}
.reader-edition-compact{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;padding:9px 0 12px;border-bottom:1px solid var(--line);margin-bottom:8px}.reader-edition-compact button{border:0;background:transparent;color:var(--green);font-size:13px;font-weight:600;text-align:start;min-height:44px;padding:0}.reader-edition-compact button+button{margin-inline-start:auto}.reader-edition-compact small{flex-basis:100%;font-size:12px;color:var(--muted);line-height:1.7}.reader-options .reader-edition-bar{margin-top:20px}
/* Legacy fixed-banner offsets must not displace this in-flow update button. */
body .pwa-update-dot{position:static}
/* Flowing text has no side padding: keep the selection rail outside the script. */
body.flow-reading .verse-card.selected-verse{box-shadow:none!important}
body.flow-reading .verse-card.selected-verse .verse-ref{outline:2px solid var(--green);outline-offset:3px}

/* Required source font accompanies the verified offline Hafs package. */
.source-hafs .verse-ar{font-family:'QatrahEdition-hafs','Amiri',serif}

.surah-ayah-result{color:inherit;text-decoration:none;justify-content:space-between}
.surah-ayah-result:focus-visible{outline:2px solid var(--green);outline-offset:-3px}

/* Language names remain readable in their own language in either interface. */
body .topbar .top-right #languageButton {
  flex: 0 0 auto;
  min-width: 4.75rem;
  min-height: 44px;
  padding-inline: .65rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
body .topbar #languageButton:focus-visible {
  outline: 3px solid var(--accent, #247b70);
  outline-offset: 3px;
}


/* /mushaf-brand.css */
/* A quiet manuscript identity. Gold is an accent, never low-contrast body text. */
body{--gold:#a88122;--mushaf-gold:#d4af37;--mushaf-obsidian:#0a0d12;--mushaf-indigo:#0f172a}
.brand{gap:10px}.brand img,.top-brand img{object-fit:contain;flex-shrink:0}.brand strong{font-family:Georgia,'Times New Roman',serif!important;font-size:19px!important;letter-spacing:.35px!important;line-height:1.1;white-space:normal}.brand small{font-size:8px!important;letter-spacing:.8px!important;line-height:1.6;margin-top:6px}.top-brand #topTitle{font-family:Georgia,'Times New Roman',serif;font-size:16px;letter-spacing:.5px}.top-brand small{font-size:8px!important;letter-spacing:.8px}.top-title:before{content:none!important}
.mushaf-beta-badge{border:1px solid #8b6f20;border-radius:6px;display:flex;align-items:center;gap:7px;background:#111825;color:#efcd67;min-height:34px;padding:6px 9px;font:10px/1.2 ui-monospace,monospace;letter-spacing:.2px;white-space:nowrap}.mushaf-beta-badge b{font-weight:500}.beta-beacon{width:5px;height:5px;background:#dfbf59;border-radius:50%;box-shadow:0 0 7px #d4af3755}.mushaf-explore-button{border:1px solid var(--line);background:var(--panel);color:var(--ink);min-height:40px;border-radius:8px;display:flex;align-items:center;gap:7px;padding:0 10px;font-size:17px}.mushaf-explore-button span{font-size:12px;font-weight:700}
.mushaf-command{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:24px;width:min(650px,calc(100vw - 24px));max-height:86dvh;box-shadow:0 24px 100px #0008}.mushaf-command::backdrop{background:#03070ccc;backdrop-filter:blur(5px)}.mushaf-command header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.mushaf-command header p{font:10px ui-monospace,monospace;letter-spacing:1.5px;color:var(--muted);margin:0 0 8px}.mushaf-command h2{font-size:24px;margin:0 0 24px}.mushaf-command header button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:var(--light);font-size:24px;color:var(--ink)}.mushaf-command label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.mushaf-command input{width:100%;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font-size:16px}.mushaf-command-results{display:grid;gap:8px;margin-top:16px}.mushaf-command-results button{text-align:start;padding:14px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:9px;min-height:68px}.mushaf-command-results button:hover{background:var(--light);border-color:var(--green)}.mushaf-command-results strong{display:block;font-size:15px;margin-bottom:4px}.mushaf-command-results span{color:var(--muted);font-size:12px;line-height:1.5;display:block}.mushaf-command-hint{font-size:11px;color:var(--muted);margin:18px 0 0}
@media(min-width:701px){.topbar{gap:12px}.top-right{gap:8px}.top-brand{min-width:0}.profile-control{margin-inline-start:auto}}
@media(max-width:1100px) and (min-width:701px){.mushaf-explore-button span{display:none}.top-brand small{display:none}.mushaf-beta-badge{font-size:9px;padding:5px}.top-brand #topTitle{font-size:13px}.top-right{gap:6px}}
@media(max-width:700px){.topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px!important;padding:12px 14px!important;min-height:113px!important;height:auto!important}.top-brand{grid-column:1;grid-row:1;gap:8px}.top-brand img{width:32px;height:32px}.top-brand #topTitle{font-size:13px;letter-spacing:.3px}.top-brand small{font-size:7px!important}.profile-control{grid-column:2;grid-row:1;max-width:138px}.top-right{grid-column:1/-1;grid-row:2;justify-content:flex-end;gap:8px!important;width:100%}.mushaf-beta-badge{margin-inline-end:auto;min-height:32px;font-size:9px}.mushaf-explore-button{min-height:34px;font-size:16px;padding:0 8px}.mushaf-explore-button span{font-size:11px}.top-right .circle-btn{width:34px;height:34px;min-width:34px;min-height:34px}.top-right .language-button{min-height:34px;font-size:11px;padding:0 9px}.mushaf-command{padding:18px}.mushaf-command h2{font-size:22px}.mushaf-command-results button{min-height:72px}.reader-context-strip{top:113px}}
@media(max-width:359px){.topbar{padding-inline:10px!important}.profile-control{max-width:112px}.top-brand #topTitle{font-size:11px}.top-brand img{width:27px;height:27px}.top-right{gap:5px!important}.mushaf-explore-button span{display:none}.mushaf-beta-badge{font-size:8px}}
[dir=rtl] .brand strong,[dir=rtl] .top-brand #topTitle{font-family:var(--arabic)!important;font-size:23px!important;letter-spacing:0!important}[dir=rtl] .top-brand small{display:none}@media(max-width:700px){[dir=rtl] .top-brand #topTitle{font-size:20px!important}}
@media(max-width:700px){.topbar{min-height:125px!important}.top-right .circle-btn,.top-right .language-button,.mushaf-explore-button,.mushaf-beta-badge{min-height:44px!important}.top-right .circle-btn{min-width:44px!important}.reader-context-strip{top:125px}.mushaf-beta-badge{padding-inline:7px}.top-right{gap:6px!important}}
@media(max-width:359px){.mushaf-explore-button{min-width:36px}.top-right{gap:4px!important}.mushaf-beta-badge{font-size:8px;padding-inline:5px}.top-right .language-button{padding-inline:5px}}
@media(max-width:359px){.mushaf-explore-button{min-width:44px}.mushaf-beta-badge>span:not(.beta-beacon){font-size:0}.mushaf-beta-badge>span:not(.beta-beacon):before{content:'BETA ';font-size:8px}.mushaf-beta-badge b{font-size:8px}}
@media(max-width:700px){body[data-profile] .profile-control{width:132px;max-width:132px;min-width:0;padding:0!important;border:0;gap:0;justify-content:flex-end}body[data-profile] .profile-control>label,body[data-profile] .profile-control>.profile-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body[data-profile] .profile-select-wrap{width:100%;min-width:0}body[data-profile] .profile-symbol{display:none}body[data-profile] .profile-control select{width:100%;max-width:100%;font-size:12px;padding-inline:8px 20px!important}body[data-profile] .profile-chooser{width:100%}body[data-profile] .profile-chooser summary{font-size:12px;padding:8px;gap:5px}body[data-profile] .profile-chooser summary>span:first-child{display:none}}
@media(max-width:359px){body[data-profile] .profile-control{width:112px;max-width:112px}}

/* Keep search and Close in view while the task groups scroll. */
.mushaf-command[open]{display:flex;flex-direction:column;overflow:hidden;max-height:88dvh;}
.mushaf-command>header,.mushaf-command>label,.mushaf-command>input,.mushaf-command>.mushaf-command-hint{flex-shrink:0;}
.mushaf-command h2{margin-bottom:18px;}
.mushaf-command label{font-size:14px;}
.mushaf-command-results{min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:20px;padding:3px;margin-top:14px;scrollbar-gutter:stable;}
.mushaf-command-group{min-width:0;margin:0;}
.mushaf-command-group h3{font-family:var(--font-ui);font-size:14px;line-height:1.5;font-weight:700;margin:0 0 8px;color:var(--ink);}
.mushaf-command-group-list{display:grid;gap:7px;}
.mushaf-command-group[data-command-group="continue"] .mushaf-command-group-list{grid-template-columns:repeat(2,minmax(0,1fr));}
.mushaf-command-results .mushaf-command-group-list button{width:100%;min-width:0;overflow-wrap:anywhere;}
.mushaf-command-results .mushaf-command-group-list button>span:not(.mushaf-module-symbol){font-size:14px;line-height:1.5;}
.mushaf-command-research{border-block:1px solid var(--line);padding-block:8px;}
.mushaf-command-research>summary{min-height:44px;padding:8px 0;cursor:pointer;font-size:14px;font-weight:700;line-height:1.5;color:var(--ink);}
.mushaf-command-research>summary>span{display:block;margin-inline-start:17px;font-size:13px;font-weight:400;color:var(--muted);}
.mushaf-command-research[open]>.mushaf-command-group-list{padding-block:8px;}
.mushaf-command-research>summary:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:2px;border-radius:6px;}
.mushaf-command-count,.mushaf-command-empty{margin:0;color:var(--muted);font-size:14px;line-height:1.6;}
.mushaf-command-hint{font-size:12px;margin-top:12px;}
@media(max-width:420px){
 .mushaf-command{padding:16px;width:calc(100vw - 16px);}
 .mushaf-command h2{font-size:21px;}
 .mushaf-command-results{gap:16px;}
 .mushaf-command-group[data-command-group="continue"] .mushaf-command-group-list{grid-template-columns:minmax(0,1fr);}
}

/* The finder searches actual readings as well as named destinations. */
.mushaf-command-search{display:flex;align-items:center;gap:4px;flex:none;border:1px solid var(--line);border-radius:12px;background:var(--bg);padding-inline-end:4px}
.mushaf-command-search:focus-within{outline:2px solid var(--green);outline-offset:2px}
.mushaf-command-search input{min-width:0;flex:1;border:0;background:transparent}
.mushaf-command-search input:focus-visible{outline:none}
.mushaf-command-search input::-webkit-search-cancel-button{display:none}
.mushaf-command-search button{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.mushaf-command-search button[hidden]{display:none}
.mushaf-command-search button svg{width:20px;height:20px}
.mushaf-command-group[data-command-readings] .mushaf-command-group-list button{min-height:60px}
.mushaf-command-results [data-command-all-readings],.mushaf-command-results [data-command-retry]{min-height:44px;padding:9px 12px;font:600 .875rem/1.4 var(--font-ui,system-ui);color:var(--green)}


/* /beta.css */
/* A quiet editorial shell with high-contrast, functional research previews. */
.mushaf-beta{--beta-ink:#18212d;--beta-muted:#526071;--beta-paper:#faf8f3;--beta-card:#fff;--beta-line:#dcdedc;--beta-gold:#876515;--beta-gold-soft:#f7efd9;--beta-blue:#184e67;--beta-red:#8b2633;color:var(--beta-ink);margin-bottom:30px;min-width:0}
body.dark .mushaf-beta,body[data-theme="dark"] .mushaf-beta{--beta-ink:#f4f0e7;--beta-muted:#b7c1ca;--beta-paper:#101722;--beta-card:#131d2c;--beta-line:#344052;--beta-gold:#e0bd61;--beta-gold-soft:#312b1c;--beta-blue:#91c6dc;--beta-red:#ffadad}
.beta-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.75fr);gap:32px;align-items:center;padding:40px 36px;border:1px solid var(--beta-line);border-radius:24px;background:var(--beta-paper);overflow:hidden}
.beta-kicker{display:block;font-size:10px;font-weight:750;letter-spacing:.15em;color:var(--beta-gold);line-height:1.7}.mushaf-beta[dir=rtl] .beta-kicker{letter-spacing:.03em}
.beta-hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(30px,3.2vw,47px);line-height:1.15;letter-spacing:-.035em;margin:15px 0 18px;font-weight:500;color:var(--beta-ink)}.mushaf-beta[dir=rtl] .beta-hero h1{font-family:Amiri,'Noto Naskh Arabic',serif;letter-spacing:0;line-height:1.6;font-size:clamp(26px,3vw,38px)}
.beta-intro{font-size:14px;line-height:1.85;color:var(--beta-muted);max-width:510px;margin:0 0 23px}.beta-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.beta-primary,.beta-secondary{display:inline-flex;align-items:center;justify-content:center;gap:13px;border:1px solid transparent;min-height:46px;padding:11px 16px;border-radius:10px;text-decoration:none;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.beta-primary{background:#1c3849;color:#fff!important}.beta-secondary{background:transparent;color:var(--beta-ink);border-color:var(--beta-line)}.beta-hero-note{font-size:10px;color:var(--beta-muted);line-height:1.7;margin:19px 0 0}
.beta-seal-panel{text-align:center;min-width:0;border-inline-start:1px solid var(--beta-line);padding-inline-start:24px}.beta-emblem-frame{width:220px;max-width:100%;aspect-ratio:1;overflow:hidden;margin:0 auto 8px;border-radius:20px;background:#0a0d12}.beta-emblem{width:100%;height:100%;object-fit:contain;display:block}.beta-lockup{font-family:Amiri,serif;font-size:31px;line-height:1.8;margin:0;color:var(--beta-ink)}.beta-english-lockup{font-family:Georgia,serif;font-size:12px;letter-spacing:.13em;margin:0 0 15px;color:var(--beta-ink)}.beta-version{border:1px solid var(--beta-line);background:var(--beta-card);color:var(--beta-gold);font:600 10px/1.4 ui-monospace,monospace;min-height:40px;display:inline-flex;gap:12px;align-items:center;padding:8px 12px;border-radius:6px;cursor:pointer}
.beta-evidence-strip{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 3px;border-bottom:1px solid var(--beta-line);font-size:11px;line-height:1.6;color:var(--beta-muted)}.beta-evidence-strip button{border:0;background:none;color:var(--beta-gold);font:inherit;font-weight:700;min-height:44px;text-align:start;cursor:pointer;flex-shrink:0}
.beta-showcase{margin-top:29px}.beta-showcase>header{margin-bottom:19px}.beta-showcase h2{font-family:Georgia,serif;font-size:25px;font-weight:500;margin:5px 0 8px;color:var(--beta-ink)}.mushaf-beta[dir=rtl] .beta-showcase h2{font-family:Amiri,serif;font-size:30px}.beta-showcase>header>p{max-width:660px;font-size:12px;line-height:1.75;color:var(--beta-muted);margin:0}.beta-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.beta-card{min-width:0;border:1px solid var(--beta-line);background:var(--beta-card);border-radius:17px;padding:22px;display:flex;flex-direction:column;overflow:hidden}.beta-card-wide{grid-column:1/-1}.beta-card-heading{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:var(--beta-muted);margin-bottom:14px;font-size:10px}.beta-card-number{font-family:ui-monospace,monospace;color:var(--beta-gold);font-weight:600;font-size:12px}.beta-card-type{font-weight:750;letter-spacing:.07em}.beta-card-heading>bdi{margin-inline-start:auto}.beta-card h3{font-family:Georgia,serif;font-size:22px;font-weight:500;line-height:1.3;color:var(--beta-ink);margin:0 0 10px}.mushaf-beta[dir=rtl] .beta-card h3{font-family:Amiri,serif;font-size:26px;line-height:1.6}.beta-card p{color:var(--beta-muted);font-size:12px;line-height:1.8;margin:0 0 17px}.beta-card-link{display:inline-flex;align-items:center;justify-content:space-between;gap:16px;width:fit-content;max-width:100%;min-height:44px;color:var(--beta-blue);font-size:12px;line-height:1.5;font-weight:700;text-decoration:none;margin-top:auto;border:0;padding:0;background:transparent;text-align:start;cursor:pointer}.beta-card-link:hover,.beta-evidence-strip button:hover{text-decoration:underline}
.beta-word-demo{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin:6px 0 15px;align-items:stretch}.beta-word-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}.beta-word-choice button{padding:16px 8px;border:1px solid var(--beta-line);background:var(--beta-paper);color:var(--beta-ink);border-radius:12px;cursor:pointer;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.beta-word-choice button[aria-pressed=true]{background:var(--beta-gold-soft);border-color:var(--beta-gold);box-shadow:inset 0 0 0 1px var(--beta-gold)}.beta-word-choice small{font-size:8px;line-height:1.6;letter-spacing:.05em}.beta-word-choice strong{font:29px/1.8 Amiri,serif;white-space:normal}.beta-word-choice span{font-size:10px;line-height:1.5}.beta-live-analysis{background:var(--beta-paper);border-inline-start:3px solid var(--beta-gold);border-radius:0 10px 10px 0;padding:17px}.beta-live-analysis.is-alternative{border-color:var(--beta-red)}.beta-live-analysis strong{font-size:12px;color:var(--beta-ink)}.beta-live-analysis p{margin:8px 0 0;line-height:1.8}.beta-preview-label{font-size:8px;line-height:1.6;letter-spacing:.08em;font-weight:700;color:var(--beta-muted)}
.beta-evidence-window,.beta-syntax-demo,.beta-interlinear{background:var(--beta-paper);border:1px solid var(--beta-line);border-radius:10px;padding:16px;margin:4px 0 17px}.beta-arabic-fragment{font:34px/2 Amiri,serif!important;text-align:center;color:var(--beta-ink)!important;margin:14px 0!important}.beta-source-path{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;font-size:10px;color:var(--beta-muted)}.beta-source-path span:not([aria-hidden]){border:1px solid var(--beta-line);padding:5px 7px;border-radius:5px}
.beta-segment{display:flex;gap:6px}.beta-segment button{flex:1;min-height:42px;font-family:inherit;font-size:11px;font-weight:600;line-height:1.4;padding:7px;border-radius:6px;border:1px solid var(--beta-line);background:var(--beta-card);color:var(--beta-muted);cursor:pointer}.beta-segment button[aria-pressed=true]{color:var(--beta-blue);border-color:var(--beta-blue)}.beta-syntax-words{display:flex;justify-content:center;align-items:center;gap:9px;font:26px/2 Amiri,serif;flex-wrap:wrap;padding:20px 0 8px}.beta-syntax-words strong{font-weight:400;border-bottom:2px solid var(--beta-blue);color:var(--beta-blue)}.beta-syntax-join{font-size:18px;color:var(--beta-gold)}.beta-syntax-demo>p{font-size:11px;min-height:60px;margin:8px 0 0}.beta-interlinear{display:flex;align-items:center;flex-direction:column;text-align:center;gap:7px}.beta-interlinear>strong{font-family:Georgia,serif;font-size:31px;font-weight:500;color:var(--beta-ink);margin-top:14px}.beta-interlinear>span:not(.beta-preview-label){font-size:12px;color:var(--beta-blue)}.beta-interlinear p{margin:4px 0 0;font-size:11px}
.beta-profile-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.beta-profile-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 10px}.beta-profile-options button{border:1px solid var(--beta-line);background:var(--beta-paper);color:var(--beta-ink);font-family:inherit;font-size:11px;font-weight:600;line-height:1.5;min-height:44px;padding:8px;border-radius:8px;cursor:pointer}.beta-profile-options button[aria-pressed=true]{border-color:var(--beta-gold);background:var(--beta-gold-soft)}.beta-persona-window{border:1px solid var(--beta-line);border-radius:14px;padding:22px;min-height:250px;background:#faf8f3;color:#192330;text-align:center;transition:background .2s,color .2s}.beta-persona-window>strong{font:58px/1.7 Amiri,serif;display:block}.beta-persona-window h4{font:500 18px/1.5 Georgia,serif;margin:0 0 10px;color:inherit}.beta-persona-window p{color:inherit;opacity:.85;margin:0;font-size:11px}.beta-persona-window[data-preview-profile=kids]{background:#f8f6e7;border-color:#c6d9b7;color:#214c37;border-radius:28px}.beta-persona-window[data-preview-profile=kids]>strong{background:#e0f3e4;width:100px;height:100px;border-radius:50%;margin:12px auto}.beta-persona-window[data-preview-profile=youth]{background:#0b1722;color:#d4f3fb;border-color:#438294}.beta-persona-window[data-preview-profile=youth]>strong{color:#73e2f3}.beta-persona-window[data-preview-profile=youth] .beta-preview-label{color:#f7cf7b}.beta-persona-window[data-preview-profile=researcher]{background:#0c111a;color:#e4ddd3;border-color:#66583b;border-radius:4px;text-align:start}.beta-persona-window[data-preview-profile=researcher]>strong{font-size:46px;color:#e5c378;border-bottom:1px solid #414b58}.beta-persona-window[data-preview-profile=researcher] .beta-preview-label{color:#c9b98e}.beta-small{font-size:10px!important;line-height:1.7!important;margin:7px 0 0!important}
.mushaf-beta :is(a,button):focus-visible,.beta-modal :is(a,button,input,textarea):focus-visible{outline:3px solid #197da6;outline-offset:3px}
.beta-modal{--beta-ink:#18212d;--beta-muted:#526071;--beta-line:#d9dedf;--beta-card:#fff;--beta-paper:#faf8f3;--beta-gold:#876515;--beta-blue:#184e67;box-sizing:border-box;max-height:calc(100dvh - 32px);width:min(740px,calc(100vw - 28px));border:1px solid var(--beta-line);border-radius:20px;background:var(--beta-card);color:var(--beta-ink);padding:28px;overflow:auto;box-shadow:0 24px 100px #0006;font-family:inherit}.beta-modal::backdrop{background:#070d19b8;backdrop-filter:blur(3px)}body.dark .beta-modal,body[data-theme=dark] .beta-modal{--beta-ink:#f4f0e7;--beta-muted:#bac5d0;--beta-line:#344052;--beta-card:#131d2c;--beta-paper:#101722;--beta-gold:#e0bd61;--beta-blue:#91c6dc}.beta-modal-head{display:flex;align-items:start;justify-content:space-between;gap:15px}.beta-modal h2{font:500 28px/1.4 Georgia,serif;margin:7px 0 10px}.beta-modal[dir=rtl] h2{font-family:Amiri,serif;line-height:1.7}.beta-close{flex-shrink:0;min-width:44px;min-height:44px;border:1px solid var(--beta-line);border-radius:50%;background:var(--beta-paper);color:var(--beta-ink);font-size:25px;cursor:pointer}.beta-modal-intro{font-size:13px;line-height:1.8;color:var(--beta-muted);margin:5px 0 24px}.beta-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.beta-stats>div{border:1px solid var(--beta-line);border-radius:12px;padding:16px;background:var(--beta-paper)}.beta-stats strong{display:block;color:var(--beta-gold);font:32px/1.2 Georgia,serif;margin-bottom:8px}.beta-stats span{font-size:12px;font-weight:700}.beta-stats p{font-size:11px;line-height:1.7;color:var(--beta-muted);margin:7px 0 0}.beta-coverage-list{margin-top:23px}.beta-coverage-list>section{padding:20px 0;border-bottom:1px solid var(--beta-line)}.beta-coverage-tag{font-size:9px;font-weight:700;letter-spacing:.07em;display:inline-block;border:1px solid var(--beta-line);border-radius:4px;padding:5px 8px;color:var(--beta-blue)}.beta-modal h3{font-size:17px;margin:12px 0 8px}.beta-coverage-list p,.beta-coverage-list li{font-size:12px;line-height:1.85;color:var(--beta-muted)}.beta-coverage-list p{margin:8px 0}.beta-coverage-list ul{padding-inline-start:19px}.beta-coverage-list li{padding:3px 0}.beta-coverage-list a{color:var(--beta-blue);font-size:12px;display:inline-block;padding:12px 0}.beta-request-form{margin-top:25px;border:1px solid var(--beta-line);border-radius:12px;padding:20px;background:var(--beta-paper)}.beta-request-form h3{margin-top:0}.beta-request-form>p{font-size:12px;line-height:1.8;color:var(--beta-muted)}.beta-request-form label{display:block;font-size:12px;font-weight:600;margin:15px 0 8px}.beta-request-form textarea{box-sizing:border-box;width:100%;background:var(--beta-card);color:var(--beta-ink);border:1px solid var(--beta-line);border-radius:8px;font:inherit;font-size:14px;line-height:1.6;padding:12px;resize:vertical;min-height:110px}.beta-request-form textarea::placeholder{color:var(--beta-muted);opacity:1}.beta-form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.beta-modal-foot{font-size:10px;line-height:1.8;color:var(--beta-muted);margin:20px 0 0}
@media(max-width:760px){.beta-hero{grid-template-columns:1fr;gap:25px;padding:26px 22px}.beta-seal-panel{display:none}.beta-hero h1{font-size:37px}.beta-intro{font-size:13px}.beta-hero-note{font-size:9px}.beta-word-demo{grid-template-columns:1fr}.beta-card{padding:18px}.beta-profile-layout{grid-template-columns:1fr;gap:15px}.beta-persona-window{min-height:210px}.beta-preview-grid{gap:12px}.beta-card h3{font-size:21px}.beta-evidence-strip{align-items:start;gap:9px;flex-direction:column;padding:14px 2px}.beta-evidence-strip button{min-height:38px}.beta-showcase h2{font-size:24px}.beta-modal{padding:22px}.beta-modal h2{font-size:25px}}
@media(max-width:520px){.beta-preview-grid{grid-template-columns:minmax(0,1fr)}.beta-card-wide{grid-column:auto}.beta-hero{padding:25px 19px;border-radius:18px}.beta-hero h1{font-size:32px}.mushaf-beta[dir=rtl] .beta-hero h1{font-size:27px}.beta-kicker{font-size:9px;letter-spacing:.1em}.beta-hero-actions{flex-direction:column}.beta-primary,.beta-secondary{min-height:47px;font-size:12px;width:100%;box-sizing:border-box}.beta-intro{font-size:12px}.beta-word-choice strong{font-size:26px}.beta-card-heading{font-size:9px}.beta-word-demo{gap:12px}.beta-modal{width:calc(100vw - 16px);padding:18px 14px;border-radius:15px;max-height:calc(100dvh - 16px)}.beta-stats{gap:8px}.beta-stats>div{padding:12px}.beta-stats span{font-size:11px}.beta-stats p{font-size:10px}.beta-request-form{padding:15px}.beta-modal h2{font-size:23px}.beta-form-actions{flex-direction:column}.beta-hero-note{font-size:9px}.beta-card-type{letter-spacing:.035em}}
@media(prefers-reduced-motion:reduce){.beta-persona-window{transition:none}}
body[data-profile=kids] .mushaf-beta{--beta-paper:#fdfbf0;--beta-card:#fffefa;--beta-gold:#805b12;--beta-gold-soft:#fff0c9;--beta-blue:#1d6550;--beta-ink:#243d32;--beta-muted:#526653;--beta-line:#d4e1c9}body[data-profile=kids] .beta-card{border-radius:23px}body[data-profile=kids] .beta-hero h1,body[data-profile=kids] .beta-card h3{font-family:inherit;font-weight:700;letter-spacing:-.025em}body[data-profile=youth].dark .mushaf-beta{--beta-paper:#0b141e;--beta-card:#111f2c;--beta-blue:#78dfef;--beta-gold:#f6d479;--beta-gold-soft:#302c1b;--beta-line:#344757}body[data-profile=youth] .beta-card-type{font-family:ui-monospace,monospace}body[data-profile=researcher] .beta-card{border-radius:8px}body[data-profile=researcher] .beta-card-heading{border-bottom:1px solid var(--beta-line);padding-bottom:11px}body[data-profile=researcher] .beta-kicker{font-family:ui-monospace,monospace}body[data-profile=researcher].dark .mushaf-beta{--beta-paper:#0c1017;--beta-card:#111720;--beta-line:#3b414a;--beta-gold:#ddbd68}
/* Keep the comparative preview paired with its explanatory text on wider screens. */
.beta-compare{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px}.beta-compare .beta-card-heading,.beta-compare h3{grid-column:1/-1}.beta-compare .beta-interlinear{grid-column:1;grid-row:3/5}.beta-compare>p{grid-column:2;align-self:center}.beta-compare>.beta-card-link{grid-column:2;align-self:start;margin-top:0}@media(max-width:600px){.beta-compare{display:flex}}


/* /profile.css */
/* Presentation profiles. Quranic script, annotation colours and user's night-mode choice are preserved. */
body[data-profile="adult"]:not(.dark) {
  --bg: #faf8f5; --panel: #fffefa; --light: #f4f0e8; --pale: #f1eee5;
  --ink: #252725; --muted: #54594f; --green: #3a604e; --gold-text: #76531a;
  --line: #ddd8ce; --control-line: #7e877c; --on-accent: #ffffff;
  --reading-paper: #fffefa; --reading-hint: #f1eee5; --focus-ring: #845806;
}
body[data-profile="adult"].dark {
  --bg: #121316; --panel: #1c1e22; --light: #24262b; --pale: #272a2d;
  --ink: #f2f0e9; --muted: #c1c1b7; --green: #a6d3bd; --gold-text: #e5c978;
  --line: #414448; --control-line: #8d918c; --on-accent: #15271e;
  --reading-paper: #1c1e22; --reading-hint: #272a2d; --focus-ring: #e5c978;
}
body[data-profile="kids"]:not(.dark) {
  --bg: #fdfbf7; --panel: #ffffff; --light: #eff8ef; --pale: #e8f3eb;
  --ink: #1d352b; --muted: #4c6358; --green: #14633f; --gold-text: #805400;
  --line: #d5e1d6; --control-line: #6f8a77; --on-accent: #ffffff;
  --reading-paper: #fffefa; --reading-hint: #e8f3eb; --focus-ring: #805400;
}
body[data-profile="kids"].dark {
  --bg: #10231d; --panel: #192e26; --light: #21382d; --pale: #294033;
  --ink: #f3f5e9; --muted: #c5d5c6; --green: #9de1b9; --gold-text: #f1d37a;
  --line: #4c6555; --control-line: #98b19d; --on-accent: #173923;
  --reading-paper: #192e26; --reading-hint: #294033; --focus-ring: #f1d37a;
}
body[data-profile="youth"]:not(.dark) {
  --bg:#f3f4f2; --panel:#fffcf5; --light:#eef3f3; --pale:#e4efef;
  --ink:#203149; --muted:#4d5e71; --green:#205d72; --gold-text:#795222;
  --line:#c8d3da; --control-line:#60788a; --on-accent:#ffffff;
  --reading-paper:#fffcf5; --reading-hint:#e9f2f2; --focus-ring:#8c5621;
}
body[data-profile="youth"].dark {
  --bg:#152333; --panel:#1e2b3d; --light:#213449; --pale:#263c4d;
  --ink:#f0f3f8; --muted:#c1d1dc; --green:#a6dfe1; --gold-text:#f3ce91;
  --line:#42586e; --control-line:#90b5c2; --on-accent:#1c3342;
  --reading-paper:#1b283a; --reading-hint:#24394c; --focus-ring:#f3ce91;
}
body[data-profile="researcher"]:not(.dark) {
  --bg: #f4f3f1; --panel: #ffffff; --light: #ecebec; --pale: #f0e9e9;
  --ink: #20242d; --muted: #575a66; --green: #882831; --gold-text: #77571c;
  --line: #d5d3d5; --control-line: #88818b; --on-accent: #ffffff;
  --reading-paper: #ffffff; --reading-hint: #f0e9e9; --focus-ring: #882831;
}
body[data-profile="researcher"].dark {
  --bg: #07090e; --panel: #131720; --light: #1d2330; --pale: #29232b;
  --ink: #f0f2f7; --muted: #c1c7d5; --green: #efb2b6; --gold-text: #e4c374;
  --line: #434453; --control-line: #9996a7; --on-accent: #331116;
  --reading-paper: #131720; --reading-hint: #29232b; --focus-ring: #e4c374;
}
body[data-profile] { background: var(--bg); color: var(--ink); }
body[data-profile] .profile-control { position:relative; min-width:0; gap:0; }
body[data-profile] .profile-trigger { display:flex; align-items:center; gap:10px; min-height:52px; width:100%; padding:7px 11px; border:1px solid var(--control-line); border-radius:13px; background:var(--panel); color:var(--ink); text-align:start; cursor:pointer; }
body[data-profile] .profile-trigger:hover { background:var(--reading-hint); }
.profile-icon { display:block; width:25px; height:25px; flex-shrink:0; color:var(--green); }
.profile-trigger-copy { display:grid; gap:2px; min-width:0; flex:1; }
.profile-trigger-label { color:var(--muted); font-size:10px; line-height:1.25; font-weight:600; letter-spacing:.02em; }
.profile-trigger-copy strong { color:var(--ink); font-size:13px; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.profile-switch-icon { width:19px; height:19px; flex-shrink:0; color:var(--muted); }
.profile-dialog { box-sizing:border-box; width:min(620px,calc(100vw - 24px)); max-height:min(800px,calc(100dvh - 32px)); margin:auto; padding:24px; border:1px solid var(--control-line); border-radius:22px; background:var(--panel); color:var(--ink); box-shadow:0 24px 80px #0005; overflow:auto; overscroll-behavior:contain; }
.profile-dialog::backdrop { background:#10251fd0; }
.profile-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.profile-dialog-kicker { color:var(--green); font-size:10px; font-weight:750; letter-spacing:.08em; }
.profile-dialog h2 { margin:6px 0 0; font:700 23px/1.3 var(--font-ui,system-ui,sans-serif); color:var(--ink); }
.profile-dialog-close { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; padding:10px; border:1px solid var(--line); border-radius:50%; background:var(--panel); color:var(--ink); cursor:pointer; }
.profile-dialog-close svg { width:22px; height:22px; }
.profile-dialog-hint,.profile-dialog-note { color:var(--muted); font-size:13px; line-height:1.65; margin:14px 0 20px; }
.profile-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.profile-dialog .profile-choice { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; min-height:168px; padding:16px; border:1px solid var(--control-line); border-radius:16px; background:var(--panel); color:var(--ink); text-align:start; cursor:pointer; }
.profile-dialog .profile-choice:hover { background:var(--reading-hint); }
.profile-dialog .profile-choice[aria-pressed="true"] { border:2px solid var(--green); padding:15px; background:var(--reading-hint); }
.profile-choice-icon { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.profile-choice-copy { display:grid; gap:5px; }
.profile-choice-copy strong { font-size:16px; line-height:1.3; font-weight:750; }
.profile-choice-audience { color:var(--green); font-size:11px; line-height:1.4; font-weight:650; }
.profile-choice-copy small { display:block; color:var(--muted); font-size:12px; line-height:1.6; }
.profile-choice-state { position:absolute; top:16px; inset-inline-end:14px; display:flex; align-items:center; gap:3px; color:var(--green); font-size:10px; font-weight:700; }
.profile-choice-state svg { width:17px; height:17px; }
.profile-dialog-note { margin:16px 0 0; font-size:12px; }
.profile-dialog-status { margin:12px 0 0; color:var(--ink); font-size:13px; line-height:1.5; }
.profile-dialog-status:empty { display:none; }
.profile-trigger:focus-visible,.profile-dialog button:focus-visible { outline:3px solid var(--focus-ring); outline-offset:3px; }
body[data-profile="kids"] :is(.learning-path-card,.learning-lesson,.home-learning-entry,.continue-card,.home-workbench>:is(button,a)) { border-radius:22px; }
body[data-profile="kids"] :is(.today-heading h1,.learning-heading h1,.page-title) { letter-spacing:-.4px; font-weight:800; }
body[data-profile="kids"] :is(.home-workbench>:is(button,a),.mobile-nav button) { min-height:60px; }
body[data-profile="kids"] .mobile-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
body[data-profile="kids"] .mobile-nav button span { font-size:12px; line-height:1.35; }
body[data-profile="kids"] .rail { display:none; }
body[data-profile="kids"] .layout { grid-template-columns:minmax(0,1fr); max-width:1050px; }
body[data-profile="youth"] .home-workbench>:is(button,a) { border-top:3px solid var(--green); }
body[data-profile="youth"] .home-workbench>:is(button,a):hover { background:var(--reading-hint); }
body[data-profile="adult"] .today-heading h1 { font-family:Georgia,var(--arabic),serif; font-weight:500; letter-spacing:-.8px; }
body[data-profile="researcher"] :is(.eyebrow,.studio-kicker,.verse-ref) { font-variant-numeric:tabular-nums; letter-spacing:.04em; }
body[data-profile="researcher"] .home-workbench>:is(button,a) { border-radius:8px; padding:15px; }
body[data-profile="researcher"] :is(.study-library-nav button,.studio-tabs button) { border-radius:6px; }
body[data-profile="researcher"] .study-library-nav { gap:4px; }
body[data-profile="researcher"] .studio-case { border-radius:10px; }
/* Shared components inherit each profile without overriding tajweed annotations. */
body[data-profile] .topbar { background:var(--bg); }
body[data-profile] .reader-intro { background:var(--reading-hint); border-color:var(--line); }
body[data-profile] .reader-intro h2,body[data-profile] .reader-intro p { color:var(--muted); }
body[data-profile] .reader-intro .arabic-name { color:var(--ink); }
body[data-profile] .mobile-nav { background:var(--panel); border-color:var(--line); }
body[data-profile] .mobile-nav button { color:var(--muted); }
body[data-profile] .mobile-nav button.active { background:var(--reading-hint); color:var(--green); }
@media(min-width:1100px){body[data-profile="researcher"] .layout{gap:22px;padding-inline:3.5%;}body[data-profile="researcher"] .studio-body{gap:14px;}}
@media(max-width:700px){
 body[data-profile] .profile-control {padding-block:0;}
 body[data-profile] .profile-trigger {min-height:48px;padding:6px 9px;gap:8px;}
 .profile-trigger .profile-icon {width:22px;height:22px;}
}
@media(max-width:440px){
 .profile-dialog {padding:18px 15px;border-radius:18px;max-height:calc(100dvh - 24px);}
 .profile-dialog h2 {font-size:21px;}
 .profile-dialog-hint {font-size:12px;margin:12px 0 16px;}
 .profile-choice-grid {grid-template-columns:minmax(0,1fr);gap:9px;}
 .profile-dialog .profile-choice {flex-direction:row;gap:12px;min-height:99px;padding:13px;}
 .profile-dialog .profile-choice[aria-pressed="true"] {padding:12px;}
 .profile-choice-icon {flex-shrink:0;width:36px;height:36px;}
 .profile-choice-copy {flex:1;padding-block-start:2px;}
 .profile-choice-copy strong {font-size:15px;padding-inline-end:46px;}
 .profile-choice-state {top:15px;inset-inline-end:12px;font-size:9px;}
}
@media(prefers-reduced-motion:reduce){body[data-profile] .home-workbench>:is(button,a){transition:none;}}
/* Optional doorway after a deliberate view change; the reader keeps its place. */
.profile-child-invitation {display:flex;align-items:center;gap:14px;max-width:980px;margin:14px auto 0;padding:15px 18px;border:1px solid var(--control-line);border-radius:16px;background:var(--reading-hint);color:var(--ink);font-family:var(--font-ui);}
.profile-child-invitation-copy {flex:1;min-width:0;}
.profile-child-invitation-copy strong {font-size:15px;line-height:1.4;}
.profile-child-invitation-copy p {margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.65;}
.profile-child-open {display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 14px;border:1px solid var(--green);border-radius:12px;background:var(--panel);color:var(--green);font:700 13px/1.5 var(--font-ui);}
.profile-child-open .profile-icon {width:21px;height:21px;}
.profile-child-dismiss {display:grid;place-items:center;flex-shrink:0;min-width:44px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--ink);}
.profile-child-dismiss svg {width:20px;height:20px;}
.profile-child-invitation button:focus-visible {outline:3px solid var(--focus-ring);outline-offset:3px;}
@media(max-width:1100px){.profile-child-invitation{margin-inline:20px;}}
@media(max-width:600px){.profile-child-invitation{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;margin-inline:12px;padding:14px;}.profile-child-invitation-copy{grid-column:1;grid-row:1;}.profile-child-dismiss{grid-column:2;grid-row:1;align-self:start;}.profile-child-open{grid-column:1/-1;}}

.profile-fallback-backdrop{position:fixed;inset:0;background:#10251fd0;z-index:2147483645;}
.profile-dialog.profile-dialog-fallback{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;z-index:2147483646;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);}


/* /discovery.css */
.discovery-root{max-width:1000px;margin:auto}.discovery-header h1{font:500 clamp(30px,5vw,46px)/1.2 Georgia,var(--arabic),serif;margin:10px 0}.discovery-header p,.discovery-note{color:var(--muted);line-height:1.8}.discovery-kicker{font:11px ui-monospace,monospace;letter-spacing:1.4px;color:var(--green)!important}.discovery-tabs{display:flex;gap:8px;margin:24px 0}.discovery-tabs button{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:12px;min-height:46px;flex:1;font-size:13px}.discovery-tabs button[aria-pressed=true]{border-color:var(--green);background:var(--pale);font-weight:700}.discovery-note{font-size:12px}.discovery-feed{display:grid;gap:20px;max-height:680px;overflow:auto;scroll-snap-type:y proximity;padding:4px}.discovery-card{scroll-snap-align:start;padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--panel);min-height:480px;display:flex;flex-direction:column}.discovery-card-top{display:flex;justify-content:space-between;color:var(--green);font:12px ui-monospace,monospace}.discovery-card h2{font:500 32px/1.3 Georgia,var(--arabic),serif;max-width:570px}.discovery-card>p{font-size:16px;line-height:1.85;max-width:650px;color:var(--muted)}.discovery-card fieldset{border:0;padding:0;margin:15px 0}.discovery-card legend{font-size:15px;font-weight:700;margin:8px 0}.discovery-card fieldset button{padding:12px 15px;min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--light);color:var(--ink);margin:4px 8px 4px 0;text-align:start}.discovery-card fieldset button[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.discovery-feedback{border-inline-start:3px solid var(--green);padding:12px 16px;background:var(--light);border-radius:7px;line-height:1.7;margin:10px 0}.discovery-feedback p{margin:5px 0}.discovery-cta{display:inline-flex;align-items:center;gap:12px;width:fit-content;min-height:48px;color:var(--green);font-weight:700;text-decoration:none;margin-top:auto}.discovery-history{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(0,1.1fr);gap:28px;border:1px solid var(--line);background:var(--panel);border-radius:20px;padding:25px}.discovery-map{position:relative;min-height:370px;background:var(--light);border:1px solid var(--line);border-radius:15px;overflow:hidden;color:var(--gold-text,var(--green))}.discovery-map svg{position:absolute;inset:0;height:100%;width:100%}.map-sea{position:absolute;left:6%;top:55%;writing-mode:vertical-rl;color:var(--muted);font-size:9px;letter-spacing:2px}.discovery-map button{position:absolute;transform:translate(-30%,-30%);display:flex;gap:6px;align-items:center;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:8px;min-height:44px;font-size:12px}.discovery-map button[aria-pressed=true]{border-color:var(--green);outline:1px solid var(--green)}.discovery-map i{width:6px;height:6px;background:var(--green);border-radius:50%}.discovery-event h2{font:32px Georgia,var(--arabic),serif}.discovery-event>p{line-height:1.9;color:var(--muted);font-size:15px}.discovery-source{display:block;color:var(--green);font-size:12px;line-height:1.8;margin-top:20px}.discovery-timeline{display:flex;gap:7px;overflow:auto;padding:6px}.discovery-timeline button{flex:1;min-width:90px;border:1px solid var(--line);padding:13px;background:var(--panel);color:var(--ink);border-radius:9px;min-height:70px}.discovery-timeline small,.discovery-timeline b{display:block}.discovery-timeline small{color:var(--muted);margin-bottom:8px}.discovery-timeline button[aria-pressed=true]{border-color:var(--green);background:var(--pale)}.revelation-browser>p{line-height:1.9;color:var(--muted)}.revelation-controls{display:flex;gap:15px;margin:24px 0}.revelation-controls label{flex:1;font-weight:700;font-size:13px}.revelation-controls select,.revelation-controls input{display:block;width:100%;margin-top:8px;min-height:46px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px;font-size:15px}.revelation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.revelation-list a{display:grid;grid-template-columns:38px 1fr;gap:5px 12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);text-decoration:none;min-height:80px}.revelation-list a>span{grid-row:span 2;color:var(--green);font-size:20px}.revelation-list small{color:var(--muted);font-size:11px}.revelation-browser a{color:var(--green)}@media(max-width:600px){.discovery-history{grid-template-columns:1fr;padding:16px;gap:14px}.discovery-map{min-height:320px}.discovery-card{padding:22px;min-height:560px}.discovery-card h2{font-size:29px}.discovery-card>p{font-size:15px}.discovery-feed{max-height:72dvh}.discovery-card fieldset button{width:100%}.discovery-tabs{gap:5px}.discovery-tabs button{font-size:12px;padding:10px 7px}.revelation-controls{flex-direction:column}.revelation-list{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.discovery-feed{scroll-snap-type:none}}

/* A field notebook for discovery, with sources and the schematic map kept clear. */
.discovery-root {color:var(--ink);font-family:var(--font-ui,system-ui,sans-serif);text-align:start;min-inline-size:0}
.discovery-root * {box-sizing:border-box}
.discovery-root .discovery-header {
  display:flex;align-items:center;justify-content:space-between;gap:clamp(.8rem,3vw,2rem);
  padding:clamp(1rem,3.5vw,2rem);border:1px solid var(--line);border-block-start:4px solid var(--green);
  border-radius:1.1rem;background:var(--panel);box-shadow:0 3px 0 var(--line);
}
.discovery-heading-copy {flex:1;min-inline-size:0}
.discovery-header .discovery-kicker {margin-block:0 .45rem}
.discovery-header h1 {font-family:inherit;font-weight:700;font-size:clamp(1.7rem,4vw,2.6rem);line-height:1.35;text-wrap:balance}
.discovery-heading-copy>p:last-of-type {margin-block:.6rem 0;max-inline-size:40rem;font-size:1rem}
.discovery-heading-copy>button {margin-block-start:.8rem;max-inline-size:100%}
.discovery-heading-art {display:grid;place-items:center;flex:0 1 6rem;max-inline-size:24%;line-height:0}
.discovery-heading-art>span {max-inline-size:100%}
.discovery-header[data-discovery-profile="youth"] {border-radius:.85rem}
.discovery-kicker {font-size:.8rem;letter-spacing:.07em;line-height:1.6}
.discovery-root:lang(ar) .discovery-kicker {letter-spacing:normal}
.discovery-tabs {gap:.6rem;margin-block:1.4rem 1.1rem}
.discovery-tabs button {font:600 .94rem/1.45 var(--font-ui,inherit);border-radius:.8rem;min-block-size:3rem;padding:.65rem .7rem}
.discovery-tabs button[aria-pressed="true"] {box-shadow:inset 0 -3px 0 var(--green);color:var(--green)}
.discovery-note {font-size:.9rem}
.discovery-feed {gap:1rem;padding:.3rem .3rem .55rem}
.discovery-card {min-height:0;padding:clamp(1rem,3vw,1.75rem);border-radius:1rem;box-shadow:0 3px 0 var(--line)}
.discovery-card-top {align-items:center;gap:1rem;font-size:.875rem}
.discovery-card-number {padding:.35rem .65rem;border:1px solid var(--line);border-radius:2rem;background:var(--pale);font-variant-numeric:tabular-nums}
.discovery-card h2 {font-family:inherit;font-size:clamp(1.25rem,3vw,1.65rem);font-weight:650;line-height:1.5;margin-block:1rem .35rem}
.discovery-card>p {margin-block:.4rem;line-height:1.85}
.discovery-card fieldset {display:flex;flex-wrap:wrap;gap:.6rem;margin-block:1rem}
.discovery-card legend {padding:0;font-size:1rem;line-height:1.65;margin-block:0 .6rem}
.discovery-card fieldset button {flex:1 1 12rem;margin:0;font:inherit;font-size:.94rem;line-height:1.55;background:var(--panel);border-radius:.65rem}
.discovery-card fieldset button[aria-pressed="true"] {background:var(--pale)}
.discovery-card .discovery-cta {margin-block:.7rem 0;padding:.4rem .8rem;border:1px solid var(--line);border-radius:.65rem;background:var(--pale);font-size:.94rem}
.discovery-feedback {margin-block:.2rem .6rem;background:var(--pale);font-size:.95rem}
.discovery-root :is(a,button,input,select):focus-visible {outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}
.discovery-history {border-radius:1rem}
.discovery-map {border-radius:.8rem}
.discovery-event h2 {font-family:inherit;font-size:1.65rem;line-height:1.5}
.discovery-source {font-size:.9rem;text-underline-offset:.18em}
.discovery-timeline {gap:.6rem;padding-block:.5rem .75rem}
.discovery-timeline button {font-family:inherit;border-radius:.7rem}
.revelation-controls label {font-size:.95rem}
.revelation-list a {border-radius:.75rem}
.revelation-list small {font-size:.85rem;line-height:1.5}
@media(max-width:30rem){
  .discovery-root .discovery-header {gap:.65rem;padding:1rem .85rem}
  .discovery-heading-art {flex-basis:4.5rem;max-inline-size:23%}
  .discovery-tabs {gap:.4rem}
  .discovery-tabs button {font-size:.875rem;padding:.6rem .35rem;overflow-wrap:anywhere}
}


/* /quests.css */
.quests-root{--quest-paper:#fdfbf7;--quest-card:#fffefa;--quest-ink:#183e31;--quest-muted:#4f695e;--quest-green:#176345;--quest-line:#cedfd2;--quest-gold:#805817;--quest-sky:#e8f4f3;--quest-warn:#783e2b;color:var(--quest-ink);font-family:Manrope,'Noto Naskh Arabic',sans-serif;min-width:0}.dark .quests-root{--quest-paper:#12271f;--quest-card:#1c3429;--quest-ink:#edf5e5;--quest-muted:#bfcebd;--quest-green:#addbb4;--quest-line:#496452;--quest-gold:#efd18a;--quest-sky:#213d32;--quest-warn:#f6b49a}.quest-view-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:10px}.quest-view-badge{font-size:12px;font-weight:700;color:var(--quest-gold)}.quest-switch-view{min-height:44px;padding:8px 13px;border-radius:11px;border:1px solid var(--quest-line);background:var(--quest-card);color:var(--quest-green);font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}.quest-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:6px;background:var(--quest-sky);border:1px solid var(--quest-line);border-radius:18px;margin-bottom:28px}.quest-tabs button{border:0;border-radius:13px;min-height:58px;background:transparent;color:var(--quest-muted);font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;cursor:pointer}.quest-tabs button[aria-current=page]{background:var(--quest-card);color:var(--quest-ink);box-shadow:0 3px 9px #12331b10}.quest-tabs button>span{font-size:22px;color:var(--quest-gold)}.quest-heading{max-width:650px;margin:10px auto 24px;text-align:center}.quest-kicker{font:700 12px/1.6 ui-monospace,monospace;letter-spacing:1.3px;color:var(--quest-gold);margin:0 0 12px}.quests-root h1{font:700 clamp(26px,3vw,37px)/1.25 Georgia,'Noto Naskh Arabic',serif;margin:0 0 16px;letter-spacing:-.6px;color:var(--quest-ink)}.quests-root[dir=rtl] h1,.quests-root[dir=rtl] h2{font-family:'Noto Naskh Arabic',serif;letter-spacing:0;line-height:1.7}.quest-heading>p:last-child{font-size:14px;line-height:1.9;color:var(--quest-muted);margin:0}.quest-map{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:46px;row-gap:28px;padding:34px 36px;background:var(--quest-sky);border:1px solid var(--quest-line);border-radius:32px;overflow:hidden}.quest-map:before,.quest-map:after{content:'';position:absolute;width:130px;height:25px;border-bottom:2px solid var(--quest-line);border-top:2px solid var(--quest-line);border-radius:50%;transform:rotate(-14deg);inset-inline-start:-25px;top:42%}.quest-map:after{inset-inline-start:auto;inset-inline-end:-15px;top:76%;transform:rotate(12deg)}.quest-map-path{position:absolute;inset:0;width:100%;height:100%;color:var(--quest-green);opacity:.3;pointer-events:none}.quest-island{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:240px;border:1px solid transparent;border-radius:22px;background:transparent;color:var(--quest-ink);padding:12px 10px;cursor:pointer;transition:background .18s,transform .18s}.quest-island:hover{background:var(--quest-card);transform:translateY(-3px)}.quest-island.is-earned{border-color:var(--quest-line);background:var(--quest-card)}.quest-island-number{position:absolute;top:12px;inset-inline-start:16px;color:var(--quest-gold);font:700 12px ui-monospace,monospace}.quest-scene{display:block;width:145px;height:128px;flex:none;max-width:100%}.quest-island strong{font-size:17px;line-height:1.5;margin-top:6px;text-wrap:balance}.quest-island small{font-size:13px;line-height:1.7;color:var(--quest-muted);margin-top:6px}.quest-island-status{font-size:12px;font-weight:700;line-height:1.7;color:var(--quest-green);margin-top:12px}.quest-map-note{font-size:12px;line-height:1.8;color:var(--quest-muted);text-align:center;margin:18px 0}.quest-reader-link{display:block;color:var(--quest-green);font-size:13px;font-weight:700;text-align:center;padding:14px;min-height:44px;text-decoration:underline;text-underline-offset:4px}.quest-primary,.quest-secondary,.quest-back{font-family:inherit;font-size:13px;font-weight:700;line-height:1.5;min-height:46px;padding:12px 17px;border-radius:13px;border:1px solid var(--quest-line);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;cursor:pointer}.quest-primary{background:#176345;color:#fff;border-color:#176345}.dark .quest-primary{background:#addbb4;color:#153a28;border-color:#addbb4}.quest-secondary{background:var(--quest-card);color:var(--quest-green)}.quest-back{border:0;padding-inline:0;background:transparent;color:var(--quest-green);margin-bottom:18px}.quest-primary:disabled{opacity:.55;cursor:default}.quest-story{display:grid;grid-template-columns:minmax(140px,.65fr) minmax(0,1.7fr);gap:30px;background:var(--quest-card);border:1px solid var(--quest-line);border-radius:25px;padding:30px}.quest-story-art{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;min-width:0}.quest-story-art .quest-scene{width:220px;height:auto}.quest-story-art>span{font:12px ui-monospace,monospace;color:var(--quest-muted)}.quest-story-copy{min-width:0}.quests-root h2{font:700 25px/1.35 Georgia,'Noto Naskh Arabic',serif;margin:0 0 18px;color:var(--quest-ink)}.quest-story-copy>p:not(.quest-kicker){font-size:16px;line-height:2;color:var(--quest-muted);margin:0 0 25px}.quest-story-actions{display:flex;flex-wrap:wrap;gap:8px}.quest-story-actions .quest-primary{width:100%;margin-top:8px}.quest-audio-status{font-size:12px!important;line-height:1.7!important;margin-top:15px!important}.quest-source{border-top:1px solid var(--quest-line);padding-top:16px;margin-top:20px}.quest-source summary{font-size:12px;font-weight:700;color:var(--quest-green);cursor:pointer;min-height:44px;display:list-item;align-content:center}.quest-source p{font-size:12px;line-height:1.8;color:var(--quest-muted)}.quest-source a{display:block;font-size:12px;line-height:1.8;color:var(--quest-green);padding:8px 0;min-height:44px;text-underline-offset:3px}.quest-fly-game{height:185px;position:relative;border:1px dashed var(--quest-line);border-radius:20px;margin:12px 0 20px;background:var(--quest-sky)}.quest-fly{position:absolute;width:70px;height:70px;padding:0;border:1px solid var(--quest-line);border-radius:50%;background:var(--quest-card);cursor:pointer;display:grid;place-items:center;transition:inset .2s;top:18px;inset-inline-start:14px}.quest-fly .quest-scene{width:60px;height:60px}.quest-fly.pos-1{inset-inline-start:calc(100% - 85px);top:50px}.quest-fly.pos-2{inset-inline-start:40%;top:13px}.quest-fly.pos-3{inset-inline-start:40%;top:30px;opacity:.8;cursor:default}.quest-fly-count{position:absolute;bottom:12px;inset-inline:15px;text-align:center;font-size:12px;line-height:1.8;color:var(--quest-muted)}.quest-question{max-width:650px;margin:0 auto;padding:30px;background:var(--quest-card);border:1px solid var(--quest-line);border-radius:25px}.quest-step{display:flex;gap:20px;align-items:center;margin-bottom:28px;color:var(--quest-muted);font-size:12px}.quest-step progress{flex:1;min-width:0;height:7px;accent-color:var(--quest-green)}.quest-word{font:54px/1.8 'Noto Naskh Arabic',serif;text-align:center;color:var(--quest-ink);margin:18px 0}.quest-answers{display:grid;gap:10px;margin-top:25px}.quest-answers button{min-height:65px;padding:15px 18px;display:flex;align-items:center;gap:15px;text-align:start;border:1px solid var(--quest-line);border-radius:14px;background:var(--quest-paper);color:var(--quest-ink);font-size:15px;line-height:1.6;cursor:pointer}.quest-answers button>span{font:12px ui-monospace,monospace;display:grid;place-items:center;border:1px solid var(--quest-line);border-radius:50%;min-width:27px;min-height:27px;color:var(--quest-muted)}.quest-answers button.is-correct{border:2px solid var(--quest-green);background:var(--quest-sky)}.quest-answers button.is-retry{border:2px solid var(--quest-warn)}.quest-answers button:disabled{cursor:default}.quest-feedback{padding:20px;background:var(--quest-sky);border-radius:15px;margin-top:20px}.quest-feedback strong{font-size:16px;color:var(--quest-green)}.quest-feedback.is-retry strong{color:var(--quest-warn)}.quest-feedback p{font-size:14px;line-height:1.9;color:var(--quest-muted)}.quest-feedback .quest-primary{width:100%}.quest-encourage{font-size:12px;color:var(--quest-muted);text-align:center;margin:22px 0 0;line-height:1.8}.quest-word-cloud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;max-width:650px;margin:30px auto}.quest-word-cloud span{background:var(--quest-card);border:1px solid var(--quest-line);border-radius:22px;min-height:100px;display:grid;place-items:center;font:35px 'Noto Naskh Arabic',serif;color:var(--quest-ink)}.quest-word-start,.quest-result-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:27px 0}.quest-result{max-width:650px;margin:0 auto;text-align:center;background:var(--quest-card);border:1px solid var(--quest-line);border-radius:25px;padding:36px}.quest-result>p:not(.quest-kicker){font-size:14px;line-height:1.9;color:var(--quest-muted)}.quest-badge-seal{width:150px;height:150px;display:grid;place-items:center;border-radius:50%;border:2px solid var(--quest-gold);outline:1px solid var(--quest-line);outline-offset:6px;background:var(--quest-sky);margin:8px auto 30px}.quest-badge-seal .quest-scene{width:120px;height:105px}.quest-badge-seal>span{font:43px 'Noto Naskh Arabic',serif}.quest-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.quest-badge-card{padding:24px 15px;text-align:center;border:1px solid var(--quest-line);border-radius:22px;background:var(--quest-card)}.quest-badge-card .quest-badge-seal{filter:grayscale(1);opacity:.55;width:110px;height:110px;margin-bottom:25px}.quest-badge-card .quest-badge-seal .quest-scene{width:90px;height:80px}.quest-badge-card.is-earned .quest-badge-seal{filter:none;opacity:1}.quest-badge-card h2{font-size:18px;line-height:1.5;margin-bottom:10px}.quest-badge-card p{font-size:12px;line-height:1.7;color:var(--quest-muted);min-height:40px}.quest-storage-warning{border:1px solid var(--quest-warn);padding:15px;border-radius:12px;font-size:12px;line-height:1.8;color:var(--quest-warn)}.quest-storage-warning button{display:block;min-height:44px;border:1px solid currentColor;background:none;border-radius:9px;color:inherit;padding:8px 12px;margin-top:8px}.quests-root :is(button,a,summary):focus-visible{outline:3px solid var(--quest-gold);outline-offset:3px}.quests-root [tabindex="-1"]:focus{outline:none}
@media(max-width:700px){.quest-tabs{gap:3px;padding:5px}.quest-tabs button{flex-direction:column;font-size:14px;gap:3px;padding:8px 4px;min-height:66px}.quest-heading{margin-top:0}.quest-heading h1{font-size:29px}.quest-heading>p:last-child{font-size:13px}.quest-map{padding:18px 8px;gap:13px;border-radius:24px}.quest-island{min-height:236px;padding:12px 5px}.quest-scene{width:125px;height:110px}.quest-island strong{font-size:14px}.quest-island small{font-size:13px}.quest-island-number{inset-inline-start:10px;top:7px}.quest-island-status{font-size:12px}.quest-story{grid-template-columns:1fr;gap:16px;padding:21px}.quest-story-art{flex-direction:row;gap:20px}.quest-story-art .quest-scene{width:120px}.quest-story-copy>p:not(.quest-kicker){font-size:15px;line-height:1.95}.quest-story-copy h2{font-size:24px}.quest-story-actions{display:grid;grid-template-columns:1fr}.quest-story-actions .quest-primary{margin-top:4px}.quest-question{padding:23px 18px}.quest-question h2{font-size:24px}.quest-answers button{font-size:14px;padding:14px 12px}.quest-result{padding:27px 20px}.quest-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.quest-badge-card{padding:23px 10px}.quest-badge-card h2{font-size:16px}.quest-word-cloud{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.quest-word-cloud span{font-size:29px;min-height:80px;border-radius:15px}.quest-word-start{flex-direction:column}.quest-source{text-align:start}}
@media(max-width:350px){.quest-map{gap:7px}.quest-island strong{font-size:14px}.quest-island small{font-size:13px}.quest-island-status{font-size:12px}.quest-scene{width:109px}.quest-badge-grid{grid-template-columns:1fr}.quest-word-cloud{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.quest-fly,.quest-island{transition:none}.quest-island:hover{transform:none}}

/* Feedback receives focus after its answer buttons are replaced. Cards grow with text. */
.quest-feedback:focus-visible{outline:3px solid var(--quest-gold);outline-offset:3px}.quest-island{height:auto;overflow-wrap:anywhere}.quest-tabs button{overflow-wrap:anywhere}

.quest-guided-lessons{margin:20px 0 26px;padding:0 16px;border:1px solid var(--quest-line);border-radius:18px;background:var(--quest-card)}.quest-guided-lessons>summary{min-height:52px;padding:14px 4px;font-size:14px;line-height:1.7;font-weight:700;color:var(--quest-green);cursor:pointer}.quest-guided-lessons[open]>summary{margin-bottom:14px}.quest-guided-lessons>.children-trail{padding-bottom:16px}.quest-guided-lessons[hidden]{display:none}

/* The shared child shell already supplies its section navigation and view chooser. */
.quest-shell-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* v54 focused paths: one Home return, then only the activity the child chose. */
.quests-root{font-family:var(--font-ui,system-ui,sans-serif);--quest-paper:#fff8e9;--quest-card:#fffefa;--quest-ink:#203649;--quest-muted:#4b6068;--quest-green:#176453;--quest-line:#d8dfd4;--quest-sky:#ecf5ed;}
.quest-path-nav{display:flex;align-items:center;gap:14px;margin:0 0 22px;color:var(--quest-muted);font-size:15px;line-height:1.5;}
.quest-home-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:10px 15px;border:1px solid var(--quest-line);border-radius:15px;color:var(--quest-green);background:var(--quest-card);font-weight:750;text-decoration:none;flex-shrink:0;}
.quest-home-link svg{width:21px;height:21px;}
.quest-path-nav>[aria-current="page"]{font-weight:700;}
.quests-root :is(h1,h2){font-family:var(--font-ui,system-ui,sans-serif);font-weight:800;letter-spacing:-.02em;}
.quests-root[dir="rtl"] :is(h1,h2){font-family:var(--font-ui,system-ui,sans-serif);letter-spacing:0;line-height:1.6;}
.quest-more-stories{margin:30px 0 20px;text-align:start;max-width:none;}
.quest-more-stories .quest-kicker{display:none;}
.quest-more-stories h2{font-size:28px;margin-bottom:8px;}
.quest-more-stories>p:last-child{font-size:15px;line-height:1.8;max-width:680px;}
.quest-map{gap:16px;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;}
.quest-map::before,.quest-map::after,.quest-map-path{display:none;}
.quest-map .quest-island{--island:#e2f2ef;--island-line:#4b877a;min-height:265px;border:2px solid var(--island-line);border-radius:25px;background:var(--island);padding:21px 18px;box-shadow:0 5px 0 #23483214;}
.quest-map .quest-island:nth-of-type(2){--island:#fff0d7;--island-line:#a87328;}
.quest-map .quest-island:nth-of-type(3){--island:#e8edff;--island-line:#6d7db0;}
.quest-map .quest-island:nth-of-type(4){--island:#f8e5ed;--island-line:#a7667b;}
.quest-island strong{font-size:21px;line-height:1.45;}
.quest-island small{font-size:14px;line-height:1.7;}
.quest-island-status{font-size:13px;margin-top:14px;}
.quest-map .quest-scene{width:170px;height:150px;}
.quest-island-number{font:750 13px var(--font-ui);top:15px;inset-inline-start:17px;}
.quest-extra-links{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:22px 0;}
.quest-extra-links a{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;min-height:48px;border:1px solid var(--quest-line);border-radius:14px;background:var(--quest-card);color:var(--quest-green);font:750 14px/1.5 var(--font-ui);text-decoration:none;}
.quest-primary,.quest-secondary,.quest-back{min-height:48px;font-size:14px;}
.quest-module-unavailable{padding:24px;border:1px solid var(--quest-line);border-radius:20px;background:var(--quest-card);}
.quest-module-unavailable p{font-size:15px;line-height:1.8;}
.dark .quests-root{--quest-paper:#12271f;--quest-card:#1c3429;--quest-ink:#edf5e5;--quest-muted:#bfcebd;--quest-green:#addbb4;--quest-line:#496452;--quest-sky:#213d32;}
.dark .quest-map .quest-island{--island:#1b3933;--island-line:#709e8c;}
.dark .quest-map .quest-island:nth-of-type(2){--island:#3d3422;--island-line:#b59b68;}
.dark .quest-map .quest-island:nth-of-type(3){--island:#29334b;--island-line:#8f9dc2;}
.dark .quest-map .quest-island:nth-of-type(4){--island:#422e38;--island-line:#b68c9a;}
@media(max-width:600px){
 .quest-path-nav{gap:11px;margin-bottom:20px;font-size:14px;}
 .quest-map{grid-template-columns:minmax(0,1fr);gap:15px;}
 .quest-map .quest-island{display:grid;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;gap:4px 14px;min-height:165px;padding:19px 17px;text-align:start;}
 .quest-map .quest-scene{grid-column:1;grid-row:1/4;width:110px;height:125px;}
 .quest-island-number{display:none;}
 .quest-map .quest-island strong{grid-column:2;align-self:end;font-size:19px;margin-top:0;}
 .quest-map .quest-island small{grid-column:2;font-size:14px;margin-top:0;}
 .quest-map .quest-island-status{grid-column:2;align-self:start;font-size:12px;margin-top:4px;}
 .quest-more-stories h2{font-size:26px;}
 .quest-extra-links a{flex:1 1 120px;}
}
@media(max-width:360px){.quest-map .quest-island{grid-template-columns:88px minmax(0,1fr);gap:4px 10px;padding:16px 13px;}.quest-map .quest-scene{width:88px;height:110px;}.quest-map .quest-island strong{font-size:18px;}}
@media(prefers-reduced-motion:reduce){.quest-map .quest-island{transition:none;}.quest-map .quest-island:hover{transform:none;}}

/* Secondary meaning shelves stay quiet until a learner chooses to open them. */
.quest-guided-lessons,.quest-story-shelf{margin:12px 0;padding:0;border:1px solid var(--quest-line);border-radius:20px;background:var(--quest-card);overflow:hidden;}
.quest-guided-lessons>summary,.quest-story-shelf>summary{position:relative;display:flex;align-items:center;gap:12px;min-height:76px;margin:0;padding:18px 52px 18px 20px;list-style:none;font:750 16px/1.5 var(--font-ui,system-ui,sans-serif);color:var(--quest-ink);cursor:pointer;}
.quest-guided-lessons>summary{display:block;}
.quest-guided-lessons>summary::-webkit-details-marker,.quest-story-shelf>summary::-webkit-details-marker{display:none;}
.quest-guided-lessons>summary::after,.quest-story-shelf>summary::after{content:'+';position:absolute;inset-inline-end:20px;top:50%;transform:translateY(-50%);font-size:24px;font-weight:500;color:var(--quest-green);}
.quest-guided-lessons[open]>summary::after,.quest-story-shelf[open]>summary::after{content:'−';}
.quest-guided-lessons[open]>summary,.quest-story-shelf[open]>summary{border-bottom:1px solid var(--quest-line);margin-bottom:0;background:var(--quest-sky);}
.quest-guided-lessons>summary small,.quest-story-shelf>summary small{display:block;font-size:13px;line-height:1.6;font-weight:500;color:var(--quest-muted);margin-top:3px;}
.quest-story-shelf>summary>span:first-child{flex:1;min-width:0;}
.quest-shelf-count{flex-shrink:0;font-size:12px;font-weight:750;border:1px solid var(--quest-line);border-radius:20px;padding:5px 9px;color:var(--quest-green);background:var(--quest-sky);}
.quest-guided-lessons>.children-trail,.quest-shelf-content{padding:20px;}
.quest-shelf-guide{display:flex;align-items:center;gap:14px;margin:0 0 20px;}
.quest-shelf-guide :is(img,.garden-pal-art){width:64px;height:64px;object-fit:contain;flex-shrink:0;}
.quest-shelf-guide p{margin:0;line-height:1.6;font-size:14px;}
.quest-shelf-guide strong,.quest-shelf-guide span{display:block;}
.quest-shelf-guide span{font-size:13px;color:var(--quest-muted);margin-top:2px;}
.quest-guided-lessons[hidden],.quest-story-shelf[hidden]{display:none;}
.quests-root[dir=rtl] :is(.quest-guided-lessons,.quest-story-shelf)>summary{padding-inline:20px 52px;}
@media(max-width:600px){.quest-guided-lessons>summary,.quest-story-shelf>summary{font-size:15px;padding:16px 43px 16px 16px;gap:7px;}.quest-guided-lessons>summary::after,.quest-story-shelf>summary::after{inset-inline-end:15px;}.quest-shelf-count{padding:4px 7px;}.quest-guided-lessons>.children-trail,.quest-shelf-content{padding:16px 12px;}.quest-shelf-guide{gap:10px;}.quest-shelf-guide :is(img,.garden-pal-art){width:54px;height:54px;}.quests-root[dir=rtl] :is(.quest-guided-lessons,.quest-story-shelf)>summary{padding-inline:16px 43px;}}

.quest-guided-lessons>summary:focus-visible,.quest-story-shelf>summary:focus-visible{outline-offset:-5px;}

/* Familiar companions introduce practice; saved work alone determines earned states. */
.quests-root .quest-heading[data-companion-heading] {
  display:flex;align-items:center;justify-content:space-between;gap:clamp(.75rem,3vw,1.7rem);
  margin-block:1rem 1.4rem;padding:clamp(1rem,3.5vw,1.8rem);text-align:start;
  border:1px solid var(--quest-line);border-block-start:4px solid var(--quest-green);
  border-radius:1.2rem;background:var(--quest-card);box-shadow:0 3px 0 var(--quest-line);
}
.quest-heading-copy {min-inline-size:0;flex:1}
.quest-heading-copy h1 {margin-block:.35rem .55rem;text-wrap:balance}
.quest-heading-copy>p:last-of-type {max-inline-size:42rem;margin-block:.5rem 0;color:var(--quest-muted);font-size:1rem;line-height:1.75}
.quest-heading-copy>button {margin-block-start:.8rem;max-inline-size:100%}
.quest-heading-art {display:grid;place-items:center;flex:0 1 8rem;max-inline-size:27%;line-height:0}
.quest-heading-art>span {max-inline-size:100%}
.quest-heading[data-quest-audience="youth"] {border-radius:.85rem;box-shadow:0 2px 0 var(--quest-line)}
.quest-heading[data-quest-audience="youth"] .quest-heading-art {flex-basis:5.5rem}
.quest-heading[data-quest-audience="youth"] .quest-heading-copy h1 {font-weight:650}
.quests-root .quest-word-cloud {gap:.75rem;padding:.25rem 0}
.quests-root .quest-word-cloud span {border:1px solid var(--quest-line);background:var(--quest-card);border-radius:1rem;box-shadow:0 3px 0 var(--quest-line)}
.quests-root .quest-word-cloud span:nth-child(3n+2) {background:var(--quest-sky)}
.quests-root .quest-word-start {gap:.75rem;margin-block:1.5rem 1rem}
.quests-root .quest-word-start :is(a,button) {min-block-size:3rem}
.quests-root .quest-badge-card {border:1px solid var(--quest-line);border-radius:1rem;background:var(--quest-card);box-shadow:0 3px 0 var(--quest-line)}
.quests-root .quest-badge-card.is-earned {border-block-start:4px solid var(--quest-green)}
.quest-result-art {display:flex;align-items:center;justify-content:center;gap:1rem;max-inline-size:100%}
.quest-result-art .quest-badge-seal {margin-inline:0}
.quest-result-companion {display:grid;place-items:center;max-inline-size:28%;line-height:0}
.quest-result-companion>span {max-inline-size:100%}
.quest-result>button {margin-inline:auto;margin-block:.75rem}
@media(max-width:30rem){
  .quests-root .quest-heading[data-companion-heading] {gap:.65rem;padding:1rem .85rem}
  .quest-heading-art {flex-basis:5.5rem;max-inline-size:25%}
  .quest-heading-copy h1 {font-size:clamp(1.45rem,6vw,1.9rem)}
  .quest-heading-copy>p:last-of-type {font-size:.94rem}
  .quest-result-art {gap:.5rem}
}


/* /workstation.css */
/* Source-first research desk, four panes on desktop and one clear mobile task. */
.workstation{--desk-gold:var(--gold-text,#805d1c);--desk-line:var(--line,#d9ded8);color:var(--ink);min-width:0}.workbench-heading{margin-bottom:24px}.workbench-kicker{font:10px/1.6 ui-monospace,monospace;letter-spacing:1.3px;color:var(--desk-gold);margin:0 0 10px}.workbench-heading h1{font:500 clamp(25px,3vw,36px)/1.25 Georgia,serif;margin:0 0 12px;letter-spacing:-.5px}.workstation[dir=rtl] .workbench-heading h1{font-family:var(--arabic);line-height:1.7;letter-spacing:0}.workbench-heading>p:last-child{color:var(--muted);font-size:14px;line-height:1.75;margin:0;max-width:700px}.workbench-controls{display:flex;gap:14px;justify-content:space-between;align-items:flex-end;padding:17px;background:var(--panel);border:1px solid var(--desk-line);border-radius:12px}.workbench-controls form{display:flex;gap:10px;align-items:flex-end;min-width:0}.workstation label{font-size:12px;font-weight:650;display:block;line-height:1.5}.workstation input,.workstation select,.workstation textarea{display:block;color:var(--ink);background:var(--bg);border:1px solid var(--control-line,var(--desk-line));padding:10px 11px;border-radius:8px;font:inherit;font-size:14px;max-width:100%;min-height:44px;margin-top:6px}.workbench-controls input{width:92px}.workbench-controls select{max-width:250px;width:100%}.workstation button{min-height:44px;padding:9px 12px;background:var(--light);border:1px solid var(--desk-line);border-radius:8px;color:var(--ink);font:inherit;font-size:12px;line-height:1.6;font-weight:650;cursor:pointer}.workstation button:disabled{opacity:.55;cursor:default}.workstation button:hover:not(:disabled){border-color:var(--green)}.workstation :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}.workstation a{color:var(--green);font-size:12px;line-height:1.7;text-decoration:underline;text-underline-offset:3px}.workbench-reader-link{padding-block:10px;white-space:nowrap}.workbench-numbering{font-size:11px;line-height:1.8;color:var(--muted);margin:10px 2px 20px}.workbench-tabs{display:flex;gap:7px;margin-bottom:12px;flex-wrap:wrap}.workbench-tabs button[aria-pressed=true]{background:var(--pale);border-color:var(--green);color:var(--green)}.workbench-panes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.workbench-pane{min-width:0;border:1px solid var(--desk-line);border-radius:12px;overflow:hidden;background:var(--panel)}.workbench-pane>header{display:flex;align-items:center;gap:10px;padding:14px 17px;border-bottom:1px solid var(--desk-line);background:var(--light)}.workbench-pane>header>span{color:var(--desk-gold);font:10px ui-monospace,monospace}.workbench-pane h2{font-size:14px;font-weight:750;margin:0}.workbench-pane>header bdi{margin-inline-start:auto;font:11px ui-monospace,monospace;color:var(--muted)}.workbench-pane-body{padding:18px;max-height:600px;min-height:330px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.workbench-edition{color:var(--muted);font-size:11px;margin:0 0 20px}.workbench-quran{font-size:32px;line-height:2.35;text-align:right;margin:0 0 22px;overflow-wrap:normal;word-break:normal}.workbench-verse-neighbours{display:flex;gap:8px}.workbench-verse-neighbours button{flex:1}.workbench-scope{color:var(--muted);font-size:11px;line-height:1.9;margin:16px 0}.workbench-source-label strong,.workbench-source-label small{display:block}.workbench-source-label strong{font-size:13px}.workbench-source-label small{color:var(--muted);font-size:11px;margin-top:5px}.workbench-tafsir{font:22px/2.15 var(--arabic);color:var(--ink);text-align:start}.workbench-tafsir p{margin:0 0 18px}.workbench-wordstrip{display:flex;gap:7px;flex-wrap:wrap;max-height:155px;overflow:auto;padding:5px;margin:-5px -5px 16px}.workbench-wordstrip button{font:21px/1.8 var(--arabic);position:relative;padding:5px 10px;background:var(--light);min-width:46px}.workbench-wordstrip button small{display:block;font:9px/1 ui-monospace,monospace;color:var(--muted)}.workbench-wordstrip button[aria-pressed=true]{border-color:var(--green);background:var(--pale);box-shadow:inset 0 -2px 0 var(--green)}.workbench-word-detail{padding-top:17px;border-top:1px solid var(--desk-line)}.workbench-word-detail>strong{font:38px/1.8 var(--arabic);display:block;text-align:center}.workbench-word-detail>p{text-align:center;color:var(--muted);font-size:12px}.workbench-word-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}.workbench-word-detail dl>div{background:var(--light);padding:10px;border-radius:8px;min-width:0}.workbench-word-detail dt{font-size:10px;color:var(--muted)}.workbench-word-detail dd{margin:5px 0 0;font:24px/1.5 var(--arabic)}.workbench-segments{margin:17px 0}.workbench-segments section{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;border-top:1px solid var(--desk-line);padding:12px 0}.workbench-segments section>span{font:26px/1.7 var(--arabic);text-align:center}.workbench-segments b{font-size:12px}.workbench-segments p{font-size:11px;color:var(--muted);line-height:1.8;margin:5px 0}.workbench-word-detail>a{display:block;margin-top:12px}.workbench-pane-body h3{font-size:13px;margin:0 0 12px}.workbench-priorities{display:grid;grid-template-columns:1fr 1fr;gap:8px}.workbench-priorities button{font-size:12px;text-align:start}.workbench-related{display:grid;gap:8px;margin-bottom:20px}.workbench-related a{padding:9px 0;border-bottom:1px solid var(--desk-line)}.workstation textarea{resize:vertical;width:100%;font-size:14px;line-height:1.7;min-height:140px}.workbench-note-actions{display:flex;gap:7px;margin-top:10px}.workbench-note-actions button{flex:1}.workbench-note-status{font-size:11px;line-height:1.7;color:var(--green);min-height:20px}.workbench-error{font-size:13px;line-height:1.8;color:var(--ink);border-inline-start:3px solid #bb5660;padding-inline-start:12px}.workbench-loading{font-size:13px;color:var(--muted);line-height:1.8}.workbench-query{margin-top:24px;border:1px solid var(--desk-line);background:var(--panel);border-radius:12px;padding:18px}.workbench-query summary{font-weight:750;font-size:15px;cursor:pointer;min-height:30px;line-height:1.8}.workbench-query>p{font-size:12px;color:var(--muted);line-height:1.8}.workbench-query form{display:grid;grid-template-columns:1.1fr 1fr .8fr 1fr auto;gap:10px;align-items:end;margin:20px 0}.workbench-query input,.workbench-query select{width:100%}.workbench-query-results{display:grid;gap:7px;max-height:440px;overflow:auto;overscroll-behavior:contain}.workbench-query-results button{display:flex;align-items:center;gap:14px;text-align:start;font-weight:400}.workbench-query-results bdi{font:10px ui-monospace,monospace;color:var(--muted);white-space:nowrap}.workbench-query-results span{font:24px/1.8 var(--arabic);margin-inline-start:auto}.workbench-query-count{color:var(--green)!important}.workbench-copy-fallback{margin-top:15px}.workstation [hidden]{display:none!important}
@media(max-width:900px){.workbench-query form{grid-template-columns:1fr 1fr}.workbench-query form>button{grid-column:1/-1}.workbench-controls{align-items:stretch;flex-direction:column}.workbench-controls form{display:grid;grid-template-columns:minmax(0,1fr) 85px auto}.workbench-controls select{max-width:none}.workbench-reader-link{align-self:flex-start}.workbench-pane-body{padding:15px;max-height:570px}.workbench-quran{font-size:30px}}
@media(max-width:700px){.workbench-heading{margin-bottom:18px}.workbench-heading h1{font-size:27px}.workbench-heading>p:last-child{font-size:13px}.workbench-controls{padding:13px}.workbench-controls form{grid-template-columns:minmax(0,1fr) 76px;gap:9px}.workbench-controls form>button{grid-column:1/-1}.workbench-controls input{width:100%}.workbench-numbering{font-size:11px;margin-bottom:14px}.workbench-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.workbench-tabs button{padding:9px 4px;font-size:11px;min-height:48px}.workbench-panes{display:block}.workbench-pane{display:none}.workstation[data-active-pane=text] [data-pane=text],.workstation[data-active-pane=tafsir] [data-pane=tafsir],.workstation[data-active-pane=grammar] [data-pane=grammar],.workstation[data-active-pane=notes] [data-pane=notes]{display:block}.workbench-pane-body{max-height:none;overflow:visible;min-height:0;padding:17px}.workbench-tafsir{font-size:23px}.workbench-query{padding:15px}.workbench-query form{grid-template-columns:1fr}.workbench-query form>button{grid-column:1}.workbench-query-results button{display:block}.workbench-query-results span{display:block;margin-top:7px}.workbench-quran{font-size:33px;line-height:2.5}.workbench-scope{font-size:12px}.workstation input,.workstation textarea,.workstation select{font-size:16px}.workbench-query>p{font-size:12px}.workbench-pane h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){.workstation *{scroll-behavior:auto!important}}
@media(max-width:700px){.workbench-tabs{position:sticky;top:125px;z-index:12;background:var(--bg);padding:7px 0;margin-block:0 12px}.workbench-pane{scroll-margin-top:192px}.workbench-pane-body{padding-bottom:24px}}
/* Researcher desktop: all four source windows fit one working screen. */
@media(min-width:1050px){
 body[data-profile="researcher"] .workbench-heading{margin-bottom:14px}
 body[data-profile="researcher"] .workbench-heading h1{font-size:27px;margin-bottom:7px}
 body[data-profile="researcher"] .workbench-heading>p:last-child{font-size:12px;line-height:1.6}
 body[data-profile="researcher"] .workbench-kicker{margin-bottom:6px;font-size:9px}
 body[data-profile="researcher"] .workbench-controls{padding:11px 14px}
 body[data-profile="researcher"] .workbench-numbering{margin:8px 2px 13px;font-size:10px}
 body[data-profile="researcher"] .workbench-tabs{display:none}
 body[data-profile="researcher"] .workbench-pane>header{padding:11px 14px;min-height:43px}
 body[data-profile="researcher"] .workbench-pane-body{height:clamp(190px,calc((100dvh - 380px)/2 - 44px),330px);min-height:0;max-height:none;padding:14px;overflow:auto;scrollbar-gutter:stable}
 body[data-profile="researcher"] .workbench-panes{gap:12px}
 body[data-profile="researcher"] .workbench-query{margin-top:16px}
}


/* /priority-tafsir.css */
.priority-reader{--pr-paper:#111e2a;--pr-ink:#f2eee5;--pr-muted:#b6c5ce;--pr-line:#3e5261;--pr-accent:#efd58b;max-width:1120px;margin:auto;padding:clamp(16px,4vw,40px);color:var(--pr-ink);background:var(--pr-paper);border-radius:22px;box-sizing:border-box}.priority-reader *{box-sizing:border-box}.pr-hero{padding-bottom:24px;border-bottom:1px solid var(--pr-line);margin-bottom:24px}.pr-eyebrow{color:var(--pr-accent);font-size:11px;letter-spacing:.14em;font-weight:800}.pr-hero h1{font-size:clamp(27px,5vw,42px);letter-spacing:-.035em;line-height:1.15;margin:12px 0}.pr-hero>p:not(.pr-eyebrow){max-width:700px;color:var(--pr-muted);line-height:1.75}.pr-tag{display:inline-flex;border:1px solid var(--pr-line);border-radius:100px;padding:6px 12px;font-size:12px;color:var(--pr-accent)}.pr-book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:25px}.priority-reader button,.priority-reader select,.priority-reader input{font:inherit;color:var(--pr-ink)}.priority-reader button{cursor:pointer;background:#172b3b;border:1px solid var(--pr-line);border-radius:10px;min-height:44px;padding:9px 14px}.priority-reader button:hover{border-color:var(--pr-accent)}.priority-reader button:disabled{opacity:.45;cursor:default}.priority-reader button:focus-visible,.priority-reader a:focus-visible,.priority-reader input:focus-visible,.priority-reader select:focus-visible,.priority-reader summary:focus-visible{outline:3px solid var(--pr-accent);outline-offset:3px}.pr-book-grid button{text-align:start;padding:17px;display:flex;flex-direction:column;gap:7px;min-height:96px}.pr-book-grid button strong{font-size:15px}.pr-book-grid button span{color:var(--pr-muted);font-size:12px;line-height:1.5}.pr-book-grid button[aria-pressed=true]{border-color:var(--pr-accent);background:#283849;box-shadow:inset 0 -3px var(--pr-accent)}.pr-controls{display:grid;grid-template-columns:1fr 1.5fr;gap:16px}.priority-reader label{display:flex;flex-direction:column;gap:7px;color:var(--pr-muted);font-size:13px}.priority-reader select,.priority-reader input{background:#0b1722;border:1px solid var(--pr-line);border-radius:10px;min-height:48px;width:100%;padding:10px 12px;max-width:100%}.pr-hint{font-size:12px;color:var(--pr-muted);line-height:1.6}.pr-availability{display:flex;flex-wrap:wrap;gap:8px 18px;padding:13px 0;color:var(--pr-muted);font-size:13px}.pr-availability strong{color:var(--pr-accent)}.pr-reading-head{border-top:1px solid var(--pr-line);padding-top:25px;margin:20px 0}.pr-reading-head h2{font-size:21px;line-height:1.5;margin:0 0 8px}.pr-reading-head p{color:var(--pr-muted);font-size:13px}.pr-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px;background:#172b3b;border-radius:12px;margin:20px 0}.pr-toolbar label{flex:1;min-width:180px;max-width:450px}.priority-reader a{color:var(--pr-accent);text-decoration:underline;text-underline-offset:4px;line-height:1.65}.pr-toolbar a{font-size:13px;min-height:44px;display:flex;align-items:center}.pr-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 12px}.pr-section-title h2{font-size:17px;color:var(--pr-accent);margin:0}.pr-section-title span{font-size:12px;color:var(--pr-muted)}.pr-paragraph{border-bottom:1px solid var(--pr-line);padding:20px 4px}.pr-paragraph>p{font-family:Amiri,'Noto Naskh Arabic',serif;font-size:clamp(22px,3vw,26px);line-height:2.05;white-space:pre-line;overflow-wrap:anywhere;margin:0 0 14px}.pr-paragraph footer{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--pr-muted);font-size:11px}.pr-paragraph footer button{font-size:11px;background:transparent}.pr-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0;font-size:13px}.pr-pager button{min-width:96px}.pr-provenance{background:#0b1722;border:1px solid var(--pr-line);border-radius:12px;padding:17px;margin-top:28px;line-height:1.8;font-size:13px;color:var(--pr-muted)}.pr-provenance summary{color:var(--pr-accent);cursor:pointer;min-height:32px}.pr-integrity{font-size:12px;line-height:1.8;color:var(--pr-muted);border-top:1px solid var(--pr-line);padding-top:20px;margin-top:24px}.pr-license{font-size:12px}.pr-loading,.pr-error,.pr-empty{padding:40px 16px;text-align:center;line-height:1.8}.pr-error{display:flex;flex-direction:column;align-items:center;gap:12px}.priority-reader [data-pr-notice]:not(:empty){border-inline-start:3px solid var(--pr-accent);padding:12px 16px;margin:12px 0;background:#26384a;color:var(--pr-ink);font-size:13px;line-height:1.7}.priority-reader [data-pr-content]{scroll-margin-top:110px}@media(max-width:620px){.priority-reader{padding:20px 14px;border-radius:14px}.pr-book-grid{gap:8px}.pr-book-grid button{padding:12px}.pr-book-grid button strong{font-size:13px;line-height:1.5}.pr-book-grid button span{font-size:11px}.pr-controls{grid-template-columns:1fr}.pr-toolbar{padding:13px}.pr-toolbar label{max-width:100%;width:100%}.pr-paragraph{padding:19px 0}.pr-pager button{min-width:80px}.pr-reading-head h2{font-size:18px}}@media(prefers-reduced-motion:reduce){.priority-reader *{scroll-behavior:auto!important}}

.pr-translations,.pr-volumes{margin:24px 0;padding:20px;border:1px solid var(--pr-line);border-radius:12px;font-size:13px;line-height:1.8}.pr-translations h3,.pr-volumes h3{font-size:17px;color:var(--pr-accent);margin-top:0}.pr-translations p,.pr-volumes p{color:var(--pr-muted)}.pr-volumes details{margin-top:14px}.pr-volumes summary{cursor:pointer;min-height:44px;padding:10px 0}.pr-volumes details>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.pr-volumes details>div a{display:flex;align-items:center;min-height:48px;border:1px solid var(--pr-line);padding:10px;border-radius:8px;font-size:12px}@media(max-width:400px){.pr-volumes details>div{grid-template-columns:1fr}}
/* Follow the app's reading palette in both locales. */
.priority-reader{--pr-paper:var(--panel,#faf8f3);--pr-ink:var(--ink,#203b35);--pr-muted:var(--muted,#52685f);--pr-line:var(--line,#ced9d1);--pr-accent:var(--green,#245b48);font-family:inherit}.priority-reader button,.pr-toolbar{background:var(--light,#edf1e9)}.priority-reader input,.priority-reader select,.pr-provenance{background:var(--bg,#fffdf8)}.pr-book-grid button[aria-pressed=true]{background:var(--pale,#e4edde)}.priority-reader [data-pr-notice]:not(:empty){background:var(--light,#edf1e9)}.pr-book-grid button{min-height:64px}.pr-library-nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.pr-availability{display:block;border-bottom:1px solid var(--pr-line)}.pr-availability summary,.pr-provenance summary{min-height:44px;cursor:pointer;line-height:1.7;padding-block:10px}.pr-availability p{line-height:1.8;max-width:76ch}.priority-reader[dir=rtl] .pr-eyebrow{letter-spacing:0}.priority-reader[dir=rtl] .pr-hero h1{letter-spacing:0;line-height:1.5}.priority-reader[dir=rtl] .pr-provenance,.priority-reader[dir=rtl] .pr-availability{font-size:15px;line-height:1.9}.pr-paragraph>p{font-family:Amiri,'Noto Naskh Arabic',serif}.pr-library-nav button{font-size:13px}.pr-reading-head p{line-height:1.8}@media(max-width:400px){.pr-paragraph footer{flex-wrap:wrap}.pr-toolbar label{min-width:0}.pr-book-grid button{min-height:70px;padding:10px}}

.pr-external-books{margin:0 0 24px}.pr-external-books h2{font-size:13px;margin:0 0 9px;color:var(--pr-muted)}
.pr-extra-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 18px}
.pr-extra-links a{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:60px;padding:10px 12px;border:1px solid var(--line,#ced9d1);border-radius:10px;color:var(--green,#245b48);text-decoration:none;font-size:14px;line-height:1.7}
.pr-extra-links small{display:block;font-size:11px;color:var(--muted,#52685f);font-weight:400}.pr-extra-links a:hover{background:var(--pale,#e4edde)}.pr-extra-links a:focus-visible{outline:3px solid var(--green,#245b48);outline-offset:3px}.pr-unimported{padding:18px 0;line-height:1.85}.pr-unimported h2{font-size:20px}.pr-unimported a{min-height:44px;display:inline-flex;align-items:center}

/* v31: choose the source, then read. Secondary editions follow the text. */
.priority-reader{padding:clamp(16px,3vw,30px)}
.pr-hero{display:flex;flex-wrap:wrap;align-items:center;gap:5px 20px;padding-bottom:16px;margin-bottom:16px}
.pr-hero .pr-eyebrow{flex-basis:100%;margin:0;font-size:10px}
.pr-hero h1{font-size:clamp(24px,4vw,32px);margin:4px 0}
.pr-hero>p:not(.pr-eyebrow){flex-basis:100%;margin:0;font-size:14px;line-height:1.65}
.pr-library-nav{margin:8px 0 0;gap:8px}.pr-library-nav button{background:transparent}
.pr-book-primary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:8px}
.pr-book-primary button{min-height:64px;padding:12px;gap:3px}
.pr-book-primary button strong{font-size:14px;line-height:1.5}
.pr-book-primary button span{font-size:11px}
.pr-book-primary button[aria-pressed=true]{border-color:var(--pr-accent);box-shadow:inset 0 -3px var(--pr-accent);background:var(--pale,#e4edde)}
.pr-more-books{margin:0 0 14px;font-size:13px;color:var(--pr-muted)}
.pr-more-books>summary{cursor:pointer;min-height:44px;padding:12px 0;line-height:1.5}
.pr-more-books .pr-book-grid{margin:3px 0 10px;max-width:660px}
.pr-book-additional button{min-height:48px;padding:10px 12px}
.pr-controls{gap:12px}.pr-hint{margin:6px 0}
.pr-availability{padding:0}.pr-availability summary{min-height:44px;padding:10px 0}
.pr-reading-head{padding-top:18px;margin:14px 0}.pr-reading-head h2{font-size:20px;margin-bottom:4px}
.pr-reading-head p{margin:0}.pr-toolbar{margin:12px 0;padding:12px}
.pr-section-title{margin:15px 0 8px}.pr-pager{margin:12px 0}
.pr-external-books{border-top:1px solid var(--pr-line);padding-top:20px;margin:24px 0 10px}
.pr-unimported{padding:14px 0}.pr-unimported h2{font-size:19px}
@media(max-width:740px){.pr-book-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.pr-book-primary button{min-height:60px}.pr-book-primary button:nth-child(n+3){min-height:48px}.pr-hero h1{font-size:26px}}
@media(max-width:480px){.priority-reader{padding:16px 12px}.pr-book-primary button{padding:10px}.pr-book-primary button strong{font-size:13px}.pr-controls{grid-template-columns:1fr}.pr-library-nav{width:100%;gap:6px}.pr-library-nav button{flex:1}.pr-hero{margin-bottom:14px;padding-bottom:14px}.pr-reading-head h2{font-size:18px}.pr-toolbar{gap:8px}.pr-toolbar a{font-size:12px}.pr-section-title h2{font-size:15px}.pr-extra-links{grid-template-columns:1fr}}

/* Compact library controls; the reader chooses when to jump to the text. */
.pr-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.pr-read-source{white-space:nowrap;background:var(--pr-accent)!important;color:var(--pr-paper)!important;font-weight:700;font-size:13px!important;min-height:48px!important}
.pr-search-tools{margin:6px 0 0;color:var(--pr-muted);font-size:13px}
.pr-search-tools>summary{min-height:44px;padding:12px 0;cursor:pointer;line-height:1.5}
.pr-search-tools>label{margin-top:4px}.pr-search-tools .pr-hint{margin:6px 0 10px}
.pr-single-source{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:var(--pr-muted);margin:10px 0}
.pr-single-source a{display:inline-flex;align-items:center;min-height:44px}
.priority-reader [data-pr-content]:focus-visible{outline:2px solid var(--pr-accent);outline-offset:5px}
@media(max-width:620px){
 .pr-hero .pr-eyebrow,.pr-hero>p:not(.pr-eyebrow){display:none}
 .pr-hero{gap:2px 10px;margin-bottom:10px;padding-bottom:10px}
 .pr-hero h1{font-size:23px;margin:0}
 .pr-library-nav{margin-top:5px}.pr-library-nav button{padding:7px 10px;min-height:44px;font-size:12px}
 .pr-book-primary{gap:6px;margin-bottom:3px}
 .pr-book-primary button{min-height:54px;padding:8px 9px}
 .pr-book-primary button:nth-child(n+3){min-height:44px}
 .pr-book-primary button strong{font-size:13px;line-height:1.35}
 .pr-book-primary button span{font-size:10px;line-height:1.3}
 .pr-more-books{margin-bottom:6px}.pr-more-books>summary{padding:11px 0}
 .pr-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .pr-controls label{font-size:12px}.priority-reader .pr-controls select{padding:8px;min-height:44px}
 .pr-read-source{font-size:12px!important;padding:8px!important;min-height:44px!important}
 .pr-reading-head{margin:10px 0;padding-top:12px}.pr-reading-head h2{font-size:17px}
 .pr-search-tools{margin-top:3px}.pr-search-tools>summary{padding:11px 0}
}
@media(max-width:350px){.pr-controls{grid-template-columns:1fr}.pr-read-source{width:100%}}
/* v69: one source choice, one page selector, and an uninterrupted reading column. */
.pr-hero{border:0;padding-bottom:8px;margin-bottom:12px}.pr-hero .pr-eyebrow{margin:0}.pr-hero h1{margin:3px 0}.pr-book-primary{margin-bottom:4px}.pr-book-primary button{background:transparent;box-shadow:none}.pr-book-primary button[aria-pressed=true]{box-shadow:inset 0 -2px var(--pr-accent)}.pr-book-primary button strong{overflow-wrap:anywhere}.pr-more-books{margin-bottom:8px}.pr-more-books>summary{padding-block:10px}.pr-search-tools{margin:4px 0 12px;border-bottom:1px solid var(--pr-line)}.pr-search-tools>summary{min-height:44px;padding:12px 0;font-weight:650}.pr-options-body{padding:4px 0 18px;max-width:780px}.pr-options-body .pr-library-nav{margin:10px 0 0}.pr-coverage-note{margin-top:16px;padding-top:14px;border-top:1px solid var(--pr-line);font-size:12px;line-height:1.75;color:var(--pr-muted)}.pr-coverage-note>p{margin:5px 0}.pr-research-context{margin-top:16px}.pr-research-context>p{font-size:12px;margin:0 0 7px;line-height:1.7}.pr-reading-head{border:0;padding-top:8px;margin:8px 0 14px}.pr-reading-head h2{font-size:clamp(18px,2.5vw,23px)}.pr-reading-head p{font-size:12px;max-width:80ch}.pr-reading-body{max-width:850px;margin-inline:auto;background:var(--reading-paper,var(--pr-paper));border-radius:12px;padding:0 14px 8px}.pr-toolbar{background:transparent;border-bottom:1px solid var(--pr-line);border-radius:0;padding:10px 0 14px;margin:0 0 12px;align-items:end}.pr-toolbar label{max-width:430px;min-width:0}.pr-toolbar select{background:var(--pr-paper);min-height:44px}.pr-toolbar a,.pr-single-source a{font-size:12px}.pr-single-source{padding:4px 0 10px;border-bottom:1px solid var(--pr-line);margin:0 0 10px}.pr-paragraph{border:0;padding:15px 0 5px}.pr-paragraph>p{margin:0;line-height:2.05}.pr-paragraph-tools{display:flex;justify-content:flex-end;align-items:center;gap:12px;min-height:44px;margin-top:2px;font-size:11px;color:var(--pr-muted)}.pr-paragraph-tools>span{margin-inline-end:auto}.pr-paragraph-tools button{background:transparent!important;border-color:transparent;padding:6px 8px;font-size:11px;color:var(--pr-muted);min-height:44px}.pr-paragraph-tools button:hover,.pr-paragraph-tools button:focus-visible{color:var(--pr-accent);border-color:var(--pr-line)}.pr-pager{border-top:1px solid var(--pr-line);padding-top:16px;margin:18px 0 8px}.pr-external-books{padding:0;margin:18px 0 10px}.pr-external-books>summary{min-height:44px;padding:12px 0;cursor:pointer;color:var(--pr-muted);font-size:13px;font-weight:650}.pr-external-books .pr-extra-links{margin-top:0}.pr-provenance,.pr-volumes{background:transparent;margin:20px 0 0;padding:14px 16px}.pr-provenance summary,.pr-volumes>summary{font-weight:650}.pr-license{display:inline-flex;align-items:center;min-height:44px;font-size:11px}.priority-reader[dir=rtl] .pr-coverage-note{font-size:14px}
@media(max-width:620px){.pr-reading-body{padding:0 4px 6px}.pr-reading-head h2{font-size:18px}.pr-reading-head p{font-size:11px}.pr-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}.pr-toolbar label{width:100%;max-width:none}.pr-toolbar a{min-height:44px}.pr-paragraph{padding:13px 0 3px}.pr-paragraph-tools{flex-wrap:wrap;gap:4px 10px}.pr-paragraph-tools button{padding-inline:5px}.pr-provenance,.pr-volumes{padding:10px 12px}.pr-options-body .pr-library-nav button{flex:1;white-space:normal}.pr-pager{gap:8px}.pr-pager button{min-width:76px}}

.priority-reader .pr-return{margin-inline-start:auto;border:0;background:transparent;min-height:44px;padding:8px 0;font-size:12px;color:var(--pr-accent);text-decoration:underline;text-underline-offset:3px}


/* /english-tafsir.css */
.english-tafsir{max-width:1100px;margin:auto;padding:34px 4.8% 105px;color:var(--ink);overflow-wrap:anywhere}.et-hero{padding:26px 0 24px}.et-eyebrow{font-size:10px!important;letter-spacing:.16em;font-weight:700;color:var(--green)}.et-hero h1{font:600 clamp(25px,4vw,38px)/1.2 Georgia,serif;letter-spacing:-.035em;margin:10px 0 16px}.et-hero p{font-size:15px;line-height:1.8;max-width:720px;color:var(--muted)}.english-tafsir[dir=rtl] .et-hero h1{font-family:var(--arabic);letter-spacing:0;line-height:1.7}.english-tafsir button,.english-tafsir input,.english-tafsir select,.english-tafsir textarea{font:inherit}.english-tafsir button,.english-tafsir a{min-height:44px}.english-tafsir button{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:11px 14px;text-align:start}.english-tafsir button:hover{border-color:var(--green)}.english-tafsir button:focus-visible,.english-tafsir a:focus-visible,.english-tafsir input:focus-visible,.english-tafsir select:focus-visible,.english-tafsir textarea:focus-visible{outline:3px solid var(--green);outline-offset:3px}.et-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 24px}.et-source-grid button{display:flex;flex-direction:column;gap:10px;padding:18px;min-height:106px}.et-source-grid button[aria-pressed=true],.et-volumes button[aria-pressed=true]{border-color:var(--green);background:var(--pale);box-shadow:inset 0 -3px 0 var(--green)}.et-source-grid strong{font-size:13px;line-height:1.55}.et-book-icon{color:var(--green);font-size:22px}.et-edition{border:1px solid var(--line);background:var(--panel);border-radius:20px;padding:28px;min-width:0}.et-heading h2{font:600 27px/1.4 Georgia,serif;margin:16px 0 9px}.english-tafsir[dir=rtl] .et-heading h2{font-family:var(--arabic)}.et-heading>p{line-height:1.8;max-width:790px;color:var(--muted)}.et-heading dl{display:flex;flex-wrap:wrap;gap:16px 36px;border-top:1px solid var(--line);padding-top:16px;margin-bottom:24px}.et-heading dt{font-size:11px;color:var(--muted);margin-bottom:6px}.et-heading dd{margin:0;font-size:13px;line-height:1.6}.et-badge{display:inline-block;font-size:10px;letter-spacing:.08em;border:1px solid var(--line);border-radius:99px;padding:7px 10px;color:var(--green);font-weight:700}.et-badge-limited{color:var(--ink);background:var(--light)}.et-context{background:var(--light);border-radius:12px;padding:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.et-context>span{font-size:11px;color:var(--muted)}.et-context strong{font-size:13px;flex:1}.et-context button{font-size:12px}.et-chapter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:10px 20px;margin:24px 0;border-bottom:1px solid var(--line);padding-bottom:20px}.et-chapter label{grid-column:1/-1;font-weight:700;font-size:13px}.english-tafsir select,.english-tafsir input,.english-tafsir textarea{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:12px;min-height:46px;min-width:0;width:100%;max-width:100%}.et-chapter select{width:100%}.et-primary{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:9px;background:var(--green);color:var(--panel)!important;padding:13px 18px;border-radius:10px;text-decoration:none;font-weight:700;font-size:12px;line-height:1.5}.et-chapter .et-hint{grid-column:1/-1;margin:0}.et-volume-label{display:block;font-size:13px;font-weight:700;margin:24px 0 12px}.et-volumes{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.et-volumes button{font-size:12px}.et-place{border:1px solid var(--line);border-radius:15px;padding:22px;background:var(--bg)}.et-place header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:20px}.et-place h3{font-size:17px;margin:0}.et-place header span{font-size:11px;color:var(--muted)}.et-place-controls{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.5fr);gap:18px;align-items:end}.et-place-controls label,.et-note-label{display:grid;gap:8px;font-size:12px;font-weight:700}.et-place-controls label span{font-size:10px;font-weight:400;color:var(--muted)}.et-note-label{margin-top:20px}.english-tafsir textarea{resize:vertical;line-height:1.7}.et-save-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}.et-save-row button{font-size:12px}.et-save-row .et-save{background:var(--ink);color:var(--bg);border-color:var(--ink)}.et-hint,.et-preview-note{font-size:12px;line-height:1.75;color:var(--muted)}.et-preview-note{padding:12px;border-inline-start:3px solid var(--green);background:var(--panel)}.et-saved{font-size:11px;color:var(--muted)}.et-publisher{display:inline-flex;align-items:center;font-size:12px;color:var(--green);font-weight:700;padding:8px 0}.et-details{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;font-size:13px;line-height:1.8}.et-details summary{min-height:44px;cursor:pointer;font-weight:700}.et-details p{color:var(--muted)}.et-details a{display:inline-flex;align-items:center;gap:8px;margin-inline-end:18px;color:var(--green)}.et-unavailable{padding:20px 0;line-height:1.8}.et-unavailable a{color:var(--green);display:inline-flex;align-items:center}.et-saved-list{margin:28px 0}.et-saved-list h2{font-size:20px}.et-saved-list>p{font-size:13px;color:var(--muted)}.et-saved-list button{width:100%;display:grid;grid-template-columns:1fr auto;gap:8px 16px;margin-bottom:8px}.et-saved-list button strong{font-size:13px}.et-saved-list button span{font-size:12px;color:var(--muted);grid-column:1}.et-saved-list button small{grid-column:2;grid-row:1/3;align-self:center;color:var(--green)}[data-et-status]:not(:empty){padding:13px 16px;border:1px solid var(--line);border-inline-start:3px solid var(--green);background:var(--panel);border-radius:10px;margin-bottom:16px;font-size:13px;line-height:1.7}.et-error{padding:20px;border:1px solid var(--line);border-radius:12px}.english-tafsir[dir=rtl]{font-family:var(--arabic);font-size:16px}.english-tafsir[dir=rtl] .et-eyebrow,.english-tafsir[dir=rtl] .et-badge{letter-spacing:0}.english-tafsir[dir=rtl] .et-heading p{line-height:1.9}@media(max-width:700px){.english-tafsir{padding:14px 18px 105px}.et-hero{padding-top:15px}.et-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.et-source-grid button{padding:14px;min-height:100px}.et-edition{padding:18px}.et-heading h2{font-size:24px}.et-chapter,.et-place-controls{grid-template-columns:1fr}.et-place{padding:16px}.et-context{align-items:flex-start}.et-context button{width:100%}.et-chapter label,.et-chapter .et-hint{grid-column:auto}.et-primary{width:100%;font-size:13px}.et-heading dl{display:grid;gap:16px}.et-saved-list button{grid-template-columns:1fr}.et-saved-list button small{grid-column:1;grid-row:auto}.et-hero p{font-size:14px}}@media(prefers-reduced-motion:reduce){.english-tafsir *{scroll-behavior:auto!important}}

.english-tafsir a[aria-disabled="true"]{opacity:.55;cursor:not-allowed;text-decoration:none}.english-tafsir input[aria-invalid="true"]{border-color:#c24136;outline-color:#c24136}.english-tafsir [tabindex="-1"]:focus{outline:2px solid var(--green);outline-offset:4px}
/* Compact source choices; reading controls inherit the interface language and font. */
.english-tafsir,.english-tafsir[dir=rtl]{font-family:inherit}.et-source-grid button{min-height:70px;justify-content:center}.et-hero h1,.et-heading h2,.english-tafsir[dir=rtl] .et-hero h1,.english-tafsir[dir=rtl] .et-heading h2{font-family:inherit;letter-spacing:0}.et-details dl{display:grid;gap:14px;margin:12px 0}.et-details dt{color:var(--muted);font-size:12px}.et-details dd{margin:4px 0;font-weight:600}.et-note-details{margin-top:16px}.et-note-details summary{min-height:44px;padding-block:12px;cursor:pointer;font-size:13px;line-height:1.7;font-weight:650}.et-note-details .et-note-label{margin-top:6px}.english-tafsir summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.english-tafsir[dir=rtl] .et-hero p,.english-tafsir[dir=rtl] .et-heading>p,.english-tafsir[dir=rtl] .et-details{font-size:15px;line-height:1.9}.english-tafsir[dir=rtl] .et-badge{font-size:12px}.et-context strong{min-width:0}.et-chapter select,.et-volumes button{line-height:1.7}@media(max-width:400px){.et-source-grid button{min-height:70px;padding:10px}.et-edition{padding:14px}.et-place{padding:12px}}


/* /memorisation.css */
.memorisation-root{max-width:1160px;margin:auto;padding:36px clamp(16px,4vw,52px) 110px;color:var(--ink);line-height:1.65}.memorisation-root *{box-sizing:border-box}.memorisation-root button,.memorisation-root input,.memorisation-root select{font:inherit}.mem-heading{max-width:700px;margin-bottom:24px}.mem-kicker{text-transform:uppercase;letter-spacing:1.5px;font:10px/1.6 ui-monospace,monospace;color:var(--muted);margin:0 0 12px}.mem-heading h1{font:500 clamp(29px,4vw,43px)/1.2 Georgia,serif;margin:0 0 16px}.memorisation-root[dir=rtl] .mem-heading h1{font-family:var(--arabic)}.mem-heading p:not(.mem-kicker){color:var(--muted);max-width:600px}.mem-setup,.mem-method{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:16px 20px;margin-bottom:24px}.mem-setup summary,.mem-method summary{cursor:pointer;font-weight:700;min-height:30px}.mem-setup form{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;margin-top:20px}.mem-setup label{display:grid;gap:6px;font-size:12px;font-weight:700;min-width:0}.mem-setup input,.mem-setup select{min-width:0;width:100%;min-height:46px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:8px 10px}.mem-setup p,.mem-method p,.mem-method a{font-size:12px;line-height:1.8;color:var(--muted)}.mem-setup [role=alert]{color:var(--ink);font-weight:700}.mem-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.mem-card{min-width:0;border:1px solid var(--line);background:var(--panel);border-radius:20px;padding:28px;overflow-wrap:anywhere}.mem-pass-heading{display:flex;justify-content:space-between;gap:14px;font-size:11px;color:var(--muted);flex-wrap:wrap}.mem-progress{height:4px;background:var(--line);border-radius:8px;margin:16px 0 22px;overflow:hidden}.mem-progress>span{display:block;height:100%;background:var(--green);border-radius:8px}.mem-steps{list-style:none;padding:0;margin:0 0 22px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mem-steps li{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 3px;border-bottom:2px solid var(--line);font-size:12px;color:var(--muted)}.mem-steps li[aria-current]{color:var(--ink);font-weight:800;border-color:var(--green)}.mem-steps li>span{font-size:10px}.mem-step-title{font-size:22px;font-weight:600;line-height:1.5;margin:0 0 18px}.mem-quran{font-family:var(--mem-quran-font),var(--arabic);font-size:clamp(30px,4vw,42px);line-height:2.1;text-align:center;min-height:120px;padding:20px 4px;margin:10px 0 18px;word-spacing:.12em}.mem-quran>span{display:inline-block;max-width:100%}.mem-hidden-word{background:var(--bg);color:var(--muted);border:1px dashed var(--line);border-radius:8px;min-width:54px;line-height:1.4;padding:0 8px;margin:4px;font-family:ui-sans-serif,sans-serif;letter-spacing:.08em;font-size:23px}.mem-ayah-marker{font-family:var(--arabic);font-size:24px;padding-inline:8px;color:var(--muted)}.mem-primary,.mem-secondary,.mem-text-button,.mem-rating button,.mem-due button{min-height:46px;border-radius:10px;cursor:pointer;text-align:center;transition:background .15s,border-color .15s}.mem-primary{background:var(--green);color:var(--on-accent,#fff);border:1px solid var(--green);padding:12px 18px;font-weight:700}.mem-secondary{background:var(--light);border:1px solid var(--line);color:var(--ink);padding:10px 16px;font-weight:600}.mem-text-button{background:none;color:var(--ink);border:1px solid transparent;text-decoration:underline;text-underline-offset:4px;padding:9px 10px}.mem-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px}.mem-actions>*{flex:1 1 auto}.memorisation-root button:disabled{opacity:.5;cursor:default}.mem-audio{padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:12px}.mem-audio>p{font-size:12px;margin:8px 0;min-height:18px}.mem-audio small{font-size:11px;color:var(--muted);display:block;line-height:1.7}.mem-hint-status{font-size:12px;color:var(--muted);text-align:center}.mem-rating{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.mem-rating h3{font-size:16px;margin:0 0 5px}.mem-rating p{color:var(--muted);font-size:12px;margin:0 0 16px}.mem-rating>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mem-rating button[data-mem-rating]{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;min-width:0;min-height:76px;padding:12px 6px;background:var(--panel);border:1px solid var(--line);color:var(--ink)}.mem-rating button[data-mem-rating]:hover{border-color:var(--green);background:var(--light)}.mem-rating button[data-mem-rating=good]{border-color:var(--green);background:var(--light)}.mem-rating small{font-size:10px;color:var(--muted)}.mem-rating strong{font-size:12px;line-height:1.5}.mem-saved{background:var(--light);padding:16px;border-radius:12px;margin-bottom:16px}.mem-saved p{font-size:12px;margin:6px 0 0}.mem-review-list{padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}.mem-section-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.mem-section-heading h2{font-size:17px;line-height:1.4;margin:0}.mem-section-heading>span{font:11px ui-monospace,monospace;white-space:nowrap;color:var(--muted)}.mem-review-list>p{font-size:12px;color:var(--muted);line-height:1.8}.mem-due{display:grid;gap:8px}.mem-due button{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:12px;text-align:start}.mem-due button>bdi{font-size:15px}.mem-due button>span{font-size:11px}.mem-due button>small{grid-column:1/-1;font-size:11px;color:var(--muted)}.mem-review-list details{font-size:12px;margin-top:18px}.mem-review-list details summary{cursor:pointer}.mem-review-list details p{display:flex;justify-content:space-between;gap:8px;padding-bottom:7px;border-bottom:1px solid var(--line);font-size:11px}.mem-empty{border-top:1px solid var(--line);padding-top:15px}.mem-method{margin-top:24px}.mem-method a{display:inline-block;padding:12px}.mem-basmala{border-inline-start:2px solid var(--green);padding:10px 14px;background:var(--bg);border-radius:0 8px 8px 0}.mem-basmala>span{font-size:11px;color:var(--muted);display:block}.mem-basmala p{font-size:25px;text-align:center;line-height:1.9;margin:12px 0 0}.mem-basmala button{font-size:12px}.mem-warning,.mem-error{background:var(--panel);border:1px solid var(--green);padding:18px;border-radius:12px;margin-bottom:20px;font-size:13px}.mem-complete{text-align:center}.mem-complete h2{font:500 29px/1.35 Georgia,serif}.memorisation-root[dir=rtl] .mem-complete h2{font-family:var(--arabic)}.mem-seal{height:64px;width:64px;margin:24px auto;border:1px solid var(--green);border-radius:50%;display:grid;place-items:center;font-size:28px;background:var(--light)}.mem-session-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:26px 0}.mem-session-counts span{display:grid;font-size:11px;gap:4px;color:var(--muted)}.mem-session-counts b{font-size:24px;color:var(--ink)}.mem-method-note{font-size:12px;color:var(--muted);margin:20px 0}.mem-complete>button{margin:5px;max-width:100%}.memorisation-root :focus-visible{outline:3px solid var(--green);outline-offset:3px}.memorisation-root[dir=rtl] .mem-kicker{letter-spacing:0;font-family:var(--arabic);font-size:13px}
@media(max-width:1000px){.mem-layout{grid-template-columns:minmax(0,1fr)}.mem-review-list{padding:20px}.mem-due{grid-template-columns:repeat(2,minmax(0,1fr))}.mem-setup form{grid-template-columns:2fr 1fr 1fr}.mem-setup form>button{grid-column:1/-1}}
@media(max-width:600px){.memorisation-root{padding:26px 14px 100px}.mem-card{padding:20px 16px;border-radius:16px}.mem-setup{padding:14px}.mem-setup form{grid-template-columns:1fr 1fr}.mem-setup form>label:first-child{grid-column:1/-1}.mem-steps li{font-size:11px}.mem-step-title{font-size:19px}.mem-quran{font-size:32px;line-height:2.15}.mem-rating>div{gap:5px}.mem-rating strong{font-size:11px}.mem-rating button[data-mem-rating]{padding:10px 4px;min-height:80px}.mem-due{grid-template-columns:1fr}.mem-method{padding:16px}.mem-actions .mem-primary{flex-basis:100%}.mem-complete h2{font-size:25px}.mem-review-list{padding:18px}.mem-pass-heading{font-size:10px}.mem-hidden-word{min-width:42px;font-size:19px;padding-inline:6px;margin:3px}.mem-basmala{padding:10px}.mem-basmala p{font-size:23px}}
@media(prefers-reduced-motion:reduce){.memorisation-root *{transition:none!important;scroll-behavior:auto!important}}

/* The same canonical ayah stays inside the recall loop. */
.mem-comparison-entry{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.mem-comparison-entry>button{width:100%;min-height:48px}.mem-comparison-entry>p,.mem-comparison>p{font-size:12px;line-height:1.75;color:var(--muted);margin:10px 0 0}.mem-comparison[hidden]{display:none!important}.mem-comparison{min-width:0;margin-top:16px;padding-top:16px;border-top:2px solid var(--green)}.mem-comparison-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.mem-comparison-heading strong{font-size:13px}.mem-comparison-heading button{min-height:44px}.mem-comparison [data-mem-recitation-host]{margin-top:14px;min-width:0}.mem-comparison .rec-inline{max-width:100%;box-sizing:border-box}.mem-comparison :is(.rec-verse,.rec-result,.rec-saved-review){overflow-wrap:anywhere}.mem-comparison .rec-navigation{display:none}.mem-comparison .rec-buttons{flex-wrap:wrap}.mem-comparison .rec-buttons button{min-height:48px}@media(max-width:600px){.mem-comparison .rec-inline{padding:16px 12px}.mem-comparison-heading{align-items:flex-start}.mem-comparison-heading strong{flex-basis:100%}.mem-comparison-heading button{padding-inline:0}}
/* Memory aids stay user-controlled and keep the Quran's word order intact. */
.mem-challenge{border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:15px;margin:14px 0}.mem-challenge>label,.mem-audio-controls>label{display:grid;gap:7px;font-weight:650;font-size:12px;min-width:0}.mem-challenge select,.mem-audio-controls select{width:100%;max-width:100%;min-height:46px;padding:8px 10px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:9px}.mem-challenge>p,.mem-linking>p{font-size:12px;line-height:1.75;color:var(--muted);margin:12px 0 0}.mem-fade-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:14px}.mem-fade-controls>span{font-size:11px;text-align:center;color:var(--muted)}.mem-fade-controls button{padding-inline:10px}.mem-quran button.mem-hidden-word{display:inline-block;min-width:44px;min-height:44px;max-width:100%;cursor:pointer;vertical-align:middle;font-size:18px;white-space:nowrap;line-height:1.4}.mem-quran button.mem-hidden-word:hover{border-color:var(--green);background:var(--light)}.mem-linking{border-block:1px solid var(--line);padding:15px 0;margin-top:20px}.mem-linking summary{font-size:13px;font-weight:700;cursor:pointer;min-height:32px}.mem-next-cue{border-inline-start:3px solid var(--green);background:var(--bg);padding:12px 14px;margin-top:14px}.mem-next-cue small{font-size:11px;color:var(--muted)}.mem-next-cue p{font-size:28px;line-height:2.15;margin:8px 0;overflow-wrap:normal;word-break:normal}.mem-audio-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.mem-difficult>p{font-size:12px;line-height:1.7;color:var(--muted)}.mem-difficult>button{display:block;width:100%;text-align:start;margin-top:6px}.mem-review-list details+details{margin-top:14px}
@media(max-width:420px){.mem-challenge{padding:12px}.mem-fade-controls{grid-template-columns:1fr 1fr}.mem-fade-controls>span{grid-column:1/-1;grid-row:1}.mem-fade-controls button{font-size:12px;min-height:46px}.mem-audio-controls{gap:8px}.mem-audio-controls>label{font-size:11px}.mem-linking .mem-actions>button{flex-basis:100%}.mem-next-cue p{font-size:25px}}

.mem-video-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;font-weight:650;color:var(--green);text-underline-offset:4px}.memorisation-root[dir=rtl] .mem-video-link{font-size:14px}

.mem-pass-heading{display:flex;flex-wrap:wrap;gap:.45rem 1rem;line-height:1.65}
.mem-pass-heading bdi,.mem-setup summary bdi{display:inline-block;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
.mem-quran .mem-ayah-marker{white-space:nowrap;word-spacing:normal;line-height:inherit}
@media(max-width:34em){.mem-setup form{grid-template-columns:repeat(2,minmax(0,1fr))}.mem-setup form label:first-child,.mem-setup form button{grid-column:1/-1}.mem-setup form :is(input,select){min-width:0;max-width:100%}}

.mem-everyday{width:min(100%,48rem);padding:1rem clamp(.5rem,3vw,1.5rem) 5rem;margin-inline:auto}
.mem-everyday .mem-task-title,.mem-everyday .mem-task-title h1{margin:0}
.mem-everyday .mem-task-title{max-width:none;min-height:5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.4rem}
.mem-everyday .mem-task-title h1{font:650 clamp(1.9rem,5vw,2.55rem)/1.35 var(--font-ui,system-ui)}
.mem-everyday .mem-task-title img{width:clamp(4.5rem,12vw,6rem);height:auto;aspect-ratio:1;object-fit:contain;border-radius:1rem}
.mem-everyday .mem-verse-return{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;color:var(--green,var(--ink));text-underline-offset:.2em}
.mem-everyday .mem-loading{min-height:min(55dvh,28rem);padding-block:1.25rem;color:var(--muted)}
.mem-everyday .mem-layout{display:block}.mem-everyday .mem-card{padding:1rem 0 1.25rem;border:0;background:transparent;border-radius:0;box-shadow:none}
.mem-everyday .mem-setup,.mem-everyday .mem-method,.mem-everyday .mem-review-fold,.mem-everyday .mem-tools-fold,.mem-everyday .mem-repeat-options{margin:0;padding:0;background:none;border-radius:0;border:0;border-block-end:1px solid var(--line)}
.mem-everyday :is(.mem-setup,.mem-method,.mem-review-fold,.mem-tools-fold,.mem-repeat-options)>summary{min-height:46px;padding:.65rem .1rem;font-weight:650;cursor:pointer;overflow-wrap:anywhere}
.mem-everyday .mem-review-list{background:transparent;border:0;padding:0 0 1rem}.mem-everyday .mem-method[open],.mem-everyday .mem-tools-fold[open],.mem-everyday .mem-setup[open]{padding-bottom:1rem}
.mem-everyday .mem-steps{margin-block:.85rem}.mem-everyday .mem-pass-heading{flex-wrap:wrap}.mem-everyday .mem-quran{min-height:6rem}
.mem-everyday .mem-audio{border:0;border-radius:0;padding:.5rem 0;background:transparent}
.mem-everyday .mem-audio [data-mem-audio-status]{min-height:2.7em;margin:.2rem 0}
.mem-everyday .mem-review-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;text-align:center}
.mem-everyday .mem-review-pager button{min-height:44px;background:transparent;border:0;color:var(--green,var(--ink));cursor:pointer}
.mem-everyday .mem-review-pager button:disabled{color:var(--muted);opacity:.55}
.mem-everyday .mem-quran .mem-word-slot{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;inline-size:max(44px,var(--mem-word));min-block-size:1.9em;max-inline-size:100%;word-spacing:normal}
.mem-everyday .mem-word-slot .mem-hidden-word{margin:0;padding:0;min-inline-size:0;inline-size:100%}


/* /offline-library.css */
.offline-library{max-width:1060px;margin:0 auto;padding:32px clamp(16px,4vw,44px) 110px;color:var(--ink);line-height:1.65}.of-heading{max-width:720px;margin-bottom:24px}.of-kicker{font:600 10px ui-monospace,monospace;letter-spacing:.13em;color:var(--green)}.of-heading h1{font:500 clamp(28px,5vw,42px)/1.18 Georgia,serif;margin:10px 0 18px;letter-spacing:-.03em}.offline-library[dir=rtl] h1,.offline-library[dir=rtl] h2{font-family:var(--arabic),serif;letter-spacing:0}.of-heading p:not(.of-kicker),.of-card>p,.of-notes p{color:var(--muted)}.of-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.of-summary b{font-size:24px;padding-inline-end:8px;color:var(--ink)}.offline-library button,.offline-library select{min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:inherit;padding:9px 12px}.offline-library button:disabled{opacity:.55;cursor:default}.offline-library button:focus-visible,.offline-library select:focus-visible{outline:3px solid var(--green);outline-offset:3px}.of-message{min-height:28px;margin:14px 2px;font-size:13px}.of-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.of-card{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:24px;min-width:0}.of-card:last-child{grid-column:1/-1}.of-number{font:600 11px ui-monospace,monospace;color:var(--green)}.of-card h2,.of-notes h2{font-size:19px;line-height:1.35;margin:8px 0 12px}.of-card>p{font-size:13px;margin:0 0 22px}.of-card label{display:grid;gap:6px;font-size:12px;font-weight:600;margin:15px 0}.of-card select{width:100%;max-width:100%;font-size:13px;text-overflow:ellipsis}.of-pack-status{display:flex;flex-direction:column;gap:4px;padding:17px 0;margin-top:8px;border-top:1px solid var(--line);font-size:13px}.of-pack-status>span{color:var(--muted);font-variant-numeric:tabular-nums}.of-actions{display:flex;flex-wrap:wrap;gap:8px}.of-actions button{font-size:12px;flex:1 1 auto}.offline-library .of-primary{background:var(--green);border-color:var(--green);color:var(--on-accent,#fff);font-weight:700}.of-job,.of-confirm,.of-warning{border:1px solid var(--green);border-radius:16px;padding:18px;margin:0 0 20px;background:var(--panel)}.of-job{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.of-job strong{grid-column:1/-1}.of-job progress{width:100%;height:12px;accent-color:var(--green);grid-column:1/-1}.of-job span{font-size:13px;color:var(--muted)}.of-confirm{margin-top:18px}.of-confirm p{font-size:13px}.of-confirm button{margin-inline-end:8px}.of-notes{border-top:1px solid var(--line);margin-top:30px;padding-top:18px;font-size:12px;max-width:760px}.of-notes h2{font-size:15px}.of-loading{padding:30px 0}.of-warning{font-size:13px}@media(max-width:660px){.offline-library{padding:24px 16px 115px}.of-heading{margin-bottom:20px}.of-grid{grid-template-columns:1fr}.of-card{padding:20px}.of-summary{align-items:flex-start}.of-summary>span{font-size:12px}.of-summary button{max-width:155px;font-size:12px}.of-job{grid-template-columns:1fr}.of-job strong,.of-job progress{grid-column:1}.of-job button{width:100%}.of-actions button{min-width:100px}.of-card label{font-size:13px}}@media(prefers-reduced-motion:reduce){.offline-library *{scroll-behavior:auto!important}}
.of-job small{display:block;margin-top:5px;font-size:11px}

.offline-library .of-heading h1{line-height:1.45;letter-spacing:normal;margin-block:0 .45em}
.of-app{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.9rem;padding:1.1rem;border:1px solid var(--sd-line,var(--line));border-radius:16px;background:var(--sd-reading,var(--panel))}
.of-app-icon{width:3.5rem;height:3.5rem;border-radius:13px}
.of-app-copy{min-width:0}
.of-app-copy h2,.of-offline-title{font:600 1.18rem/1.5 var(--font-ui,system-ui,sans-serif);letter-spacing:normal;margin:0}
.of-app-copy p{margin:.2em 0 0;font-size:.85rem;line-height:1.55;color:var(--sd-muted,var(--muted))}
.of-apk,.of-resources a{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;min-width:0;line-height:1.5;text-align:start}
.of-apk{justify-content:center;padding:.55rem .95rem;font-weight:600;background:var(--sd-strong,var(--green));color:var(--sd-on-accent,#fff);border-radius:10px;text-decoration:none}
.of-apk svg,.of-resources a svg{flex:none}
.of-apk span,.of-resources a span{min-width:0;overflow-wrap:break-word}
.of-resources{margin-block:.35rem 1.35rem;border-block-end:1px solid var(--sd-line,var(--line))}
.of-resources summary{display:list-item;cursor:pointer;width:fit-content;min-height:44px;padding:.7rem 0;color:var(--sd-muted,var(--muted));font-size:.92rem}
.of-resources a{color:var(--sd-ink,var(--ink));margin-block-end:.5rem;text-decoration:underline;text-underline-offset:.17em}
.of-offline-title{margin-block:0 .7rem}
.of-apk:focus-visible,.of-resources :is(summary,a):focus-visible{outline:3px solid var(--sd-focus,var(--green));outline-offset:3px}
@media(max-width:620px){.of-app{grid-template-columns:auto minmax(0,1fr)}.of-apk{grid-column:1/-1}.of-app-icon{width:3rem;height:3rem}}


/* /guide.css */
.mushaf-guide{max-width:1040px;margin:0 auto;padding:36px clamp(18px,4vw,44px) 116px;color:var(--ink);font-family:var(--font-ui,inherit);font-size:15px;line-height:1.65}
.mushaf-guide *{box-sizing:border-box}.mushaf-guide a{color:var(--green);text-decoration-thickness:1px;text-underline-offset:3px}.mushaf-guide button,.mushaf-guide input{font:inherit}.mushaf-guide button,.mushaf-guide a.mg-primary{min-height:44px}.mushaf-guide button{cursor:pointer;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:9px 15px}.mushaf-guide :is(a,button,input,summary):focus-visible{outline:3px solid var(--green);outline-offset:3px}.mushaf-guide[dir=rtl]{font-family:var(--font-ui,inherit)}.mg-header{max-width:740px;margin-bottom:25px}.mg-eyebrow{font-size:11px;font-weight:750;letter-spacing:.14em;color:var(--green)}.mushaf-guide[dir=rtl] .mg-eyebrow{letter-spacing:0;font-size:14px}.mg-header h1{font-size:clamp(29px,4vw,44px);line-height:1.23;letter-spacing:-.035em;margin:10px 0 12px;font-weight:650}.mushaf-guide[dir=rtl] .mg-header h1{letter-spacing:0;line-height:1.6}.mg-header>p:last-child,.mg-intro{color:var(--muted);max-width:690px}.mg-nav{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:22px;margin-bottom:28px;border-bottom:1px solid var(--line)}.mg-nav button{background:transparent;border-color:transparent}.mg-nav button[aria-current=page]{color:var(--on-accent,#fff);background:var(--green);border-color:var(--green)}.mushaf-guide h2{font-size:23px;line-height:1.45;margin:0 0 10px;font-weight:650}.mushaf-guide h3{font-size:16px;line-height:1.5;margin:10px 0}.mushaf-guide p{margin-top:0}.mg-path{list-style:none;display:flex;gap:20px;padding:24px 0;margin:20px 0 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.mg-path li{display:flex;flex:1;gap:12px;position:relative;align-items:flex-start}.mg-step{display:grid;place-items:center;width:34px;min-width:34px;height:34px;border:1px solid var(--green);color:var(--green);border-radius:50%;font-weight:650;font-size:14px}.mg-path strong{font-size:17px}.mg-path p{font-size:13px;color:var(--muted);margin:4px 0 0}.mg-path-arrow{width:28px;min-width:28px;height:16px;margin:10px 0 0 auto;stroke:var(--green);stroke-width:1.5;fill:none}.mushaf-guide[dir=rtl] .mg-path-arrow{transform:scaleX(-1)}.mg-workflows{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.mg-task,.mg-term{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.mushaf-guide summary{display:flex;align-items:flex-start;gap:13px;list-style:none;cursor:pointer;padding:19px 18px;min-height:54px}.mushaf-guide summary::-webkit-details-marker{display:none}.mushaf-guide summary strong{display:block;font-size:15px;line-height:1.6}.mushaf-guide summary small{display:block;color:var(--muted);font-size:13px;line-height:1.65;margin-top:5px}.mg-task-index{color:var(--green);font-size:12px;font-weight:700;padding-top:4px;min-width:14px}.mg-plus{margin-inline-start:auto;font-size:22px;line-height:1.1;color:var(--green);flex-shrink:0;padding-top:2px}.mushaf-guide details[open]>summary .mg-plus{transform:rotate(45deg)}.mg-task-body,.mg-term-body{padding:0 18px 20px}.mg-task-body ol{padding-inline-start:22px;margin-top:0}.mg-task-body li{padding-inline-start:4px;margin-bottom:10px;font-size:14px}.mushaf-guide .mg-primary{display:inline-flex;align-items:center;gap:14px;text-decoration:none;color:var(--on-accent,#fff);background:var(--green);border:1px solid var(--green);border-radius:10px;padding:10px 14px;font-size:13px;font-weight:650}.mg-distinction{margin:34px 0 24px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.mg-distinction>div{display:grid;grid-template-columns:1fr 1fr;gap:28px}.mg-distinction section{border-inline-start:3px solid var(--green);padding-inline-start:17px;margin-top:14px}.mg-distinction section:nth-child(2){border-color:var(--line)}.mg-kind{font-size:10px;letter-spacing:.09em;color:var(--muted);font-weight:750}.mushaf-guide[dir=rtl] .mg-kind{letter-spacing:0;font-size:12px}.mg-distinction h3{margin-top:5px}.mg-distinction p{font-size:14px;color:var(--muted);margin-bottom:0}.mg-next{font-size:14px}.mg-next button{margin-inline-start:6px;font-size:13px}.mg-search{margin:24px 0 17px;max-width:580px}.mg-search label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}.mg-search>div{display:flex;position:relative}.mg-search input{width:100%;min-width:0;min-height:50px;padding:11px 52px 11px 14px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;-webkit-appearance:none;appearance:none}.mg-search input::-webkit-search-cancel-button{display:none}.mushaf-guide[dir=rtl] .mg-search input{padding:11px 14px 11px 52px}.mg-search button{position:absolute;inset-inline-end:4px;top:3px;width:44px;border:0;background:transparent;font-size:22px;padding:0}.mg-filters{display:flex;flex-wrap:wrap;gap:7px}.mg-filters button{font-size:12px;padding:8px 12px;border-radius:100px}.mg-filters button[aria-pressed=true]{border-color:var(--green);color:var(--green);box-shadow:inset 0 0 0 1px var(--green);font-weight:700}.mg-result-count{font-size:12px;color:var(--muted);margin:17px 0 12px}.mg-results{display:grid;gap:10px}.mg-term summary{padding:17px 19px;align-items:center}.mg-term summary small{max-width:770px;font-size:14px}.mg-term summary strong{font-size:16px}.mg-term-body{border-top:1px solid var(--line);padding-top:18px}.mg-term-body h3{font-size:12px;color:var(--muted);font-weight:600}.mg-arabic-term{display:flex;align-items:center;gap:18px;margin-bottom:18px}.mg-arabic-term>span{font-size:12px;color:var(--muted)}.mg-arabic-term bdi{font-family:var(--arabic),serif;font-size:23px;line-height:1.7;color:var(--ink)}.mg-note{font-size:14px;color:var(--ink);border-inline-start:3px solid var(--green);padding:4px 0 4px 15px;padding-inline-start:15px;padding-inline-end:0;margin:12px 0 18px}.mg-note p{margin:0}.mg-term-sources{display:flex;flex-wrap:wrap;gap:9px 18px;list-style:none;padding:0;margin:10px 0 0}.mg-source-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;min-height:44px}.mg-language{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-size:10px;line-height:1.6;color:var(--muted);text-decoration:none;white-space:nowrap}.mg-language-option{display:flex;align-items:center;gap:12px;min-height:48px;margin:20px 0;font-size:14px;cursor:pointer}.mg-language-option input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}.mg-series{margin:28px 0}.mg-series>h3{font-size:19px;font-weight:650;margin-bottom:15px}.mg-resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mg-resource{padding:18px 19px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.mg-resource .mg-source-link{margin:6px 0;font-size:15px;font-weight:650}.mg-resource p{font-size:13px;color:var(--muted);margin:6px 0 0}.mg-empty,.mg-loading{padding:28px;border:1px solid var(--line);border-radius:14px;color:var(--muted)}.mg-empty h3{color:var(--ink);margin-top:0}.mg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:680px){.mushaf-guide{padding:25px 17px 116px;font-size:14px}.mg-header{margin-bottom:19px}.mg-header h1{font-size:29px}.mg-nav{gap:3px;margin-bottom:24px;padding-bottom:17px}.mg-nav button{font-size:12px;padding:9px 11px}.mushaf-guide[dir=rtl] .mg-nav button{font-size:13px}.mg-path{display:block;margin:20px 0;padding:17px 0}.mg-path li{min-height:65px;gap:13px}.mg-path li:last-child{min-height:36px}.mg-path-arrow{position:absolute;inset-inline-start:8px;top:29px;transform:rotate(90deg);width:18px;height:14px}.mushaf-guide[dir=rtl] .mg-path-arrow{transform:rotate(90deg)}.mg-path p{font-size:12px}.mg-workflows,.mg-resource-grid,.mg-distinction>div{grid-template-columns:1fr}.mg-distinction>div{gap:14px}.mg-distinction{margin-top:28px}.mg-task summary{padding:17px 16px}.mg-term summary{padding:16px}.mg-term summary strong{font-size:15px}.mg-term summary small{font-size:13px}.mg-term-sources{display:block}.mg-source-link{padding:4px 0}.mg-search input{font-size:16px}.mg-filters{gap:6px}.mg-filters button{font-size:11px;padding:8px 11px}.mushaf-guide[dir=rtl] .mg-filters button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.mushaf-guide *{scroll-behavior:auto;transition:none;animation:none}}

.mg-entry-actions{display:flex;flex-wrap:wrap;gap:10px;margin-block:18px}.mg-entry-actions>button{min-height:44px}

.mg-duration-help{margin-block:1rem;border-block-start:1px solid var(--line);padding-block:.35rem}
.mg-duration-help summary{min-height:44px;align-content:center;font-weight:650;cursor:pointer}
.mg-duration-help p{line-height:1.65}
.mg-directions{display:grid;gap:0}
.mg-directions a{display:flex;align-items:baseline;flex-wrap:wrap;gap:.3rem 1rem;padding:.6rem 0;min-block-size:2.75rem;text-decoration:none;color:var(--ink);border-block-end:1px solid var(--line)}
.mg-directions strong{color:var(--green)}
.mg-directions span{font-size:.95rem}

/* The symbol key keeps the selector in place while a small set of examples changes. */
.mg-symbols{display:grid;grid-template-columns:auto minmax(9rem,17rem);align-items:center;justify-content:start;gap:.45rem .8rem;max-inline-size:37rem;padding-block:.35rem}
.mg-symbols label{font:600 1rem/1.5 var(--font-ui,system-ui);color:var(--ink)}
.mg-symbols select{min-block-size:44px;max-inline-size:100%;padding:.45rem .75rem;border:1px solid var(--line);border-radius:.55rem;background:var(--panel);color:var(--ink);font:inherit;cursor:pointer}
.mg-symbols select:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.mg-symbols [data-mg-symbol-panel]{grid-column:1/-1}
.mg-symbol-rows{list-style:none;padding:0;margin:.5rem 0 .25rem}
.mg-symbol-rows li{display:flex;align-items:center;gap:.85rem;min-block-size:3.8rem;padding:.3rem 0;border-block-end:1px solid var(--line)}
.mg-symbol-mark{display:grid;place-items:center;inline-size:2.5rem;block-size:2.5rem;flex:none;color:var(--green)}
.mg-symbol-rows li>div{display:grid;line-height:1.55}
.mg-symbol-rows strong{font-size:1rem;color:var(--ink)}
.mg-symbol-rows li>div>span{font-size:.9375rem;color:var(--muted)}
.mg-symbol-try{display:inline-flex;align-items:center;min-block-size:44px;padding-block:.4rem;font-weight:650}
@media(max-width:23rem){.mg-symbols{grid-template-columns:minmax(0,1fr)}}

.mg-extra-symbols {margin-block:.25rem;border-block-end:1px solid var(--line)}
.mg-extra-symbols summary {cursor:pointer;min-block-size:44px;align-content:center;color:var(--green);font-weight:600}
.mg-extra-symbols summary:focus-visible {outline:3px solid var(--green);outline-offset:2px}
.mg-extra-symbols .mg-symbol-rows {margin-block-start:0}

.mg-teaching-symbols{list-style:none;padding:0;margin:.5rem 0}
.mg-teaching-symbols li{display:grid;grid-template-columns:3.375rem minmax(0,1fr) 1.5rem;align-items:center;gap:.8rem;padding:.65rem 0;border-block-end:1px solid var(--line)}
.mg-teaching-symbols li>img{inline-size:100%;block-size:auto;border-radius:.5rem}
.mg-teaching-symbols li>div{display:grid;gap:.16rem}
.mg-teaching-symbols strong{font-size:1.075rem;color:var(--ink)}
.mg-teaching-symbols li>div>span{font-size:1rem;line-height:1.65;color:var(--muted)}
.mg-small-mark{color:var(--green);display:grid;place-items:center}.mg-small-mark svg{width:21px;height:21px}


/* /reading-v12.css */
/* Reader-first shell. UI type is locale-specific; Quran/source fonts stay scoped. */
:root { --font-ui:'Inter',Arial,sans-serif; --arabic:'Amiri',serif; }
html[lang="ar"] { --font-ui:'Noto Sans Arabic',Arial,sans-serif; }
body,body .page-title,body .topbar,body .nav,body .mobile-nav,
body :is(h1,h2,h3,h4,button,input,select,textarea,summary),
body[data-profile] .today-heading h1 { font-family:var(--font-ui); }
body:not(.dark),body[data-profile="adult"]:not(.dark) {
 --bg:#f7f7f3; --panel:#fffefa; --ink:#182d2b; --muted:#526763;
 --line:#dce3dc; --green:#205c50; --dark:#173e37; --pale:#edf3ee; --light:#f0f4ef;
 --gold-text:#78591d; --gold:#a88122; --reading-paper:#fffefa; --reading-hint:#edf3ee;
 --control-line:#899b93; --on-accent:#fff; --focus-ring:#7f5f1c;
}
body.dark,body[data-profile="adult"].dark {
 --bg:#101b1a; --panel:#172724; --ink:#eff5ee; --muted:#b9cdc3;
 --line:#39534a; --green:#b7dec8; --pale:#203830; --light:#20332d;
 --gold-text:#e6ca83; --reading-paper:#172724; --reading-hint:#203830;
 --control-line:#8ea89a; --on-accent:#15392b; --focus-ring:#ebcd8a;
}
body { font-size:14px; line-height:1.6; }
.app { grid-template-columns:208px minmax(0,1fr); }
.sidebar,.dark .sidebar { background:#153b33; padding:28px 14px; }
.sidebar .brand {padding:0 8px 32px;gap:9px;}
.sidebar .brand img {width:38px;height:38px;}
.sidebar .brand strong {font-size:17px!important;}
.sidebar .brand small {font-size:8px!important;color:#d0dfd5;}
.sidebar .nav-label {font-size:9px;color:#b4c7b8;}
.sidebar .nav button {font-family:var(--font-ui);font-size:13px;color:#d7e4dc;min-height:46px;margin:1px 0;}
.sidebar .nav button.active,.dark .sidebar .nav button.active {color:#fff5d7;background:#2d5546;box-shadow:inset 3px 0 #d4ba76;}
[dir="rtl"] .sidebar .nav button.active {box-shadow:inset -3px 0 #d4ba76;}
.sidebar .side-note {padding:18px 8px 0;border:0;border-top:1px solid #54736266;border-radius:0;background:none;}
.sidebar .side-note strong {font-family:var(--font-ui);color:#ead7a6;font-size:13px;}
.sidebar .side-note p {color:#c1d2c5;font-size:11px;}
.sidebar .side-note .moon {display:none;}
.topbar {height:76px;background:var(--panel);padding-inline:28px;gap:16px;border-bottom:1px solid var(--line);}
.top-brand small {color:var(--muted);}
.top-right {gap:8px;}
.top-right :is(button,.language-button) {min-height:42px;}
.mushaf-beta-badge {background:transparent;color:var(--gold-text);border:0;padding:0 4px;font-family:var(--font-ui);font-size:10px;box-shadow:none;}
.beta-beacon {box-shadow:none;}
.profile-control label {font-size:11px;}
.profile-control select {max-width:158px;min-height:42px;font-size:12px;}
.layout {display:block;max-width:1050px;padding:28px 32px 100px;}
.rail {display:none;}
.reader-page .layout {display:block;max-width:870px;padding-top:24px;}
.reader-header {margin-bottom:12px;}
.reader-header h1 {font-family:var(--font-ui);font-size:23px;line-height:1.5;letter-spacing:-.4px;}
.reader-surah-select {gap:13px;}
.reader-surah-select small {font-size:12px;color:var(--muted);}
.reader-surah-number {background:var(--pale);color:var(--green);border-color:var(--line);}
.reader-context-strip {margin-bottom:10px;padding:0;gap:12px;}
.reader-context-strip .tool {min-height:38px;padding:7px 12px;}
.reader-edition-compact {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0 14px;margin:0;border-bottom:1px solid var(--line);}
.reader-edition-compact button {border:1px solid var(--line);background:var(--panel);color:var(--green);min-height:38px;padding:7px 12px;border-radius:8px;font-size:12px;}
.reader-surah-ornament {font-family:var(--arabic);font-size:31px;color:var(--gold-text);padding:16px 0 12px;margin:0;}
.verse-card,.dark .verse-card {background:var(--reading-paper);padding:22px 25px;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;box-shadow:none;}
.verse-card.selected-verse {border-color:#a0b9a8;box-shadow:inset 3px 0 #a58a4e;}
[dir="rtl"] .verse-card.selected-verse {box-shadow:inset -3px 0 #a58a4e;}
.verse-ar {color:var(--ink);font-family:var(--arabic);font-size:var(--arabic-size);line-height:2.25;margin:20px 0;}
.verse-ar .ayah-end {color:var(--gold-text);}
.source-hafs .verse-ar {font-family:'QatrahEdition-hafs','Amiri',serif;}
.verse-en,.dark .verse-en {font-family:'Inter',Arial,sans-serif;line-height:1.85;color:var(--ink);font-size:var(--english-size);margin:12px 0 6px;}
.verse-en small {display:block;font-size:10px;color:var(--muted);margin-top:8px;}
.verse-actions {margin-top:16px;padding-top:12px;gap:8px;}
.verse-action,.dark .verse-action {font-size:12px;min-height:42px;color:var(--green);border:1px solid var(--line);background:transparent;}
.verse-ref {font-size:12px;background:var(--pale);color:var(--green);}
.verse-source {color:var(--muted);font-size:11px;}
body :is(.tool,.text-link) {font-size:12px;}
body .footer-note {font-size:11px;color:var(--muted);line-height:1.85;}
body .reading-today {color:var(--muted);}
.reader-library-links {gap:8px;margin:14px 0;}
.reader-library-links button {min-height:42px;}
.reader-options {box-shadow:none;background:var(--panel);border:1px solid var(--line);border-radius:14px;}
[dir="rtl"] :is(h1,h2,h3,.eyebrow,.nav-label,.brand small) {letter-spacing:0!important;}
[dir="rtl"] .brand strong,[dir="rtl"] .top-brand #topTitle {font-family:var(--font-ui)!important;letter-spacing:0!important;}
[dir="rtl"] .verse-en small {font-family:'Noto Sans Arabic',Arial,sans-serif;}
.today-heading {margin:2px 0 24px;}
.today-heading h1 {font-size:28px;line-height:1.45;letter-spacing:-.5px;margin:6px 0 8px;}
.today-heading p {color:var(--muted);margin:0;}
.studio-home-grid {display:grid;grid-template-columns:1.15fr 1fr;gap:16px;}
.continue-card {min-height:200px;border:1px solid var(--line);background:var(--panel)!important;padding:24px;border-radius:16px;}
.continue-card::before,.continue-card::after {display:none;}
.continue-copy h2 {font-family:var(--font-ui);font-size:25px;color:var(--ink);margin:12px 0 4px;}
.continue-label {font-size:10px;letter-spacing:1px;color:var(--gold-text);}
.continue-copy p {color:var(--muted);margin:0 0 18px;}
.home-learning-entry {padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--pale);}
.home-learning-entry h2 {font-size:20px;line-height:1.5;margin:8px 0;}
.home-learning-entry p {font-size:13px;line-height:1.8;}
.home-workbench {margin:18px 0;}
.home-workbench button {min-height:88px;border-radius:12px;padding:16px;}
.home-workbench strong {font-size:13px;}
.home-workbench small {font-size:11px;}
.quiet-footer {display:flex;gap:20px;flex-wrap:wrap;padding:24px 0;border-top:1px solid var(--line);margin-top:24px;font-size:12px;}
.quiet-footer a {color:var(--green);text-decoration:none;}
.source-tile strong {font-family:var(--font-ui);font-size:18px;line-height:1.7;}
.beta-help-strip {display:flex;gap:14px;flex-wrap:wrap;padding:16px;border:1px solid var(--line);border-radius:12px;}
@media(max-width:1050px){
 .topbar{padding-inline:20px;}.top-brand small,.profile-control label{display:none;}.mushaf-beta-badge{font-size:9px;}.top-right{gap:6px;}
}
@media(max-width:760px){
 .app{display:block;}.sidebar{display:none;}.topbar{height:auto;min-height:66px;display:flex;flex-wrap:wrap;padding:12px 16px;gap:10px;}
 .top-brand{flex:1;min-width:0;}.top-brand img{width:30px;height:30px;}.top-brand #topTitle{font-size:13px;}.top-brand small{display:none;}
 .topbar>.profile-control{order:3;flex:1;display:flex;align-items:center;}.profile-control label{display:inline;font-size:10px;margin-inline-end:8px;}.profile-control select{min-height:36px;max-width:170px;padding-block:5px;font-size:11px;}
 .top-right{display:contents;}.top-right .mushaf-beta-badge{order:4;font-size:9px;min-height:32px;}.top-right .mushaf-explore-button{order:4;min-height:36px;height:36px;font-size:14px;padding:5px 9px;}.mushaf-explore-button span{font-size:11px;}
 #languageButton{order:1;min-width:48px;min-height:40px;font-size:12px;}#settingsButton{order:2;width:40px;height:40px;}.reader-top-options{display:none!important;}
 .layout,.reader-page .layout{padding:20px 14px 150px;max-width:760px;}
 .reader-header h1{font-size:21px;}.reader-surah-select small{font-size:11px;}.reader-context-strip{gap:8px;}
 .reader-edition-compact{gap:6px;}.reader-edition-compact button{font-size:11px;min-height:38px;padding:7px 10px;}
 .verse-card,.dark .verse-card{padding:18px 16px;border-radius:13px;}.verse-ar{margin:18px 0;line-height:2.1;}.verse-actions{gap:6px;}.verse-action{font-size:11px;padding:8px;min-height:44px;}.verse-action .ai-badge{display:none;}
 .mobile-nav{background:var(--panel);border-top:1px solid var(--line);padding:7px 8px max(8px,env(safe-area-inset-bottom));gap:2px;}
 .mobile-nav button{font-family:var(--font-ui);font-size:10px;min-height:48px;color:var(--muted);}.mobile-nav button.active{color:var(--green);background:var(--pale);border-radius:10px;}.mobile-nav svg{width:21px;height:21px;}
 .today-heading h1{font-size:25px;}.studio-home-grid{grid-template-columns:1fr;gap:12px;}.continue-card{min-height:180px;}.home-learning-entry{padding:20px;}.home-workbench{display:grid;grid-template-columns:1fr;gap:8px;}.home-workbench button{min-height:68px;}.quiet-footer{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}*,*::before,*::after{animation:none!important;transition:none!important;}}
/* Retire old grid header rules: two compact flex rows in either direction. */
@media(max-width:760px){
 body .topbar {display:flex!important;flex-wrap:wrap;gap:8px!important;padding:10px 14px!important;min-height:0!important;height:auto!important;}
 body .topbar>.top-brand {order:0;flex:1 1 calc(100% - 116px);min-width:0;grid-area:auto;}
 body .topbar>.profile-control {order:3;flex:1 1 130px;max-width:none;margin:0;grid-area:auto;}
 body .topbar>.profile-control label {display:none;}
 body .topbar>.profile-control select {min-height:36px;height:36px;width:100%;max-width:160px;}
 body .topbar>.profile-control .profile-select-wrap {width:100%;max-width:160px;}
 body .topbar>.top-right {display:contents!important;}
 body .topbar #languageButton {order:1;min-width:46px;width:46px;min-height:40px!important;padding:4px;font-size:11px;}
 body .topbar #settingsButton {order:2;min-width:38px;width:38px;height:40px;min-height:40px!important;}
 body .topbar .mushaf-beta-badge {order:4;min-height:36px!important;height:36px;min-width:0;max-width:72px;padding:2px;font-size:9px;}
 body .topbar .mushaf-explore-button {order:5;min-height:36px!important;height:36px;width:auto;padding:5px 8px;}
 body.reader-page .topbar .reader-top-options {display:none!important;}
 body .topbar .top-brand #topTitle {font-size:13px!important;white-space:normal;}
 html[lang="ar"] body .topbar .top-brand #topTitle {font-family:var(--font-ui)!important;font-size:16px!important;}
 body .topbar .top-brand img {width:30px;height:30px;}
 body .reader-location {margin:8px 0;padding:8px 0;min-height:0;}
 body .reader-surah-ornament {padding:8px 0;margin:0;font-size:27px;}
}
.mushaf-beta-badge::before,.mushaf-beta-badge::after {content:none!important;}
@media(max-width:760px){
 body .reader-surah-ornament {display:none;}
 body .reader-location {height:auto;line-height:1.4;padding:7px 0;margin:0 0 8px;}
 body .reader-location button {min-height:34px;padding:5px 8px;}
 body .reader-edition-compact {padding:5px 0 10px;}
 body .reader-header {margin-bottom:8px;}
 body .reader-options .reader-context-strip {margin:12px 0 16px;}
 body .companion-controls [role=tab] {font-family:var(--font-ui);white-space:normal;min-width:0;font-size:11px!important;padding:8px 5px;}
}
body .mushaf-beta-badge>span:not(.beta-beacon) {font-size:9px!important;}
body .mushaf-beta-badge>span:not(.beta-beacon)::before {content:none!important;}
@media(max-width:359px){
 body .mushaf-explore-button span {display:inline!important;font-size:10px;}
 body .topbar>.profile-control {flex-basis:116px;}
 body .topbar .mushaf-beta-badge {font-size:8px;max-width:58px;gap:3px;}
 body .verse-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 36px;gap:5px;}
 body .verse-actions .verse-action {min-width:0;padding:7px 3px;font-size:11px;}
 body .verse-actions .verse-action>svg,body .verse-actions .word-action>span {display:none;}
 body .verse-ar .ayah-end {font-size:.65em;}
}
.surah-open {margin-inline-start:auto;color:var(--muted);font-size:18px;}

/* The Quran directory starts with the familiar index; reading aids are optional.
 * Scope every rule here so the Today tracker and the reader keep their layout. */
body .quran-directory {max-width:850px;margin-inline:auto;}
body .quran-directory .quran-title-row {gap:12px;margin-bottom:10px;}
body .quran-directory .page-title {font-size:clamp(24px,3vw,30px);line-height:1.35;margin:0;}
body .quran-directory :is(.quran-directory-saved,.quran-directory-text-search) {
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;
 border:0;border-radius:10px;padding:7px 9px;background:transparent;color:var(--green);
 font-size:13px;font-weight:600;text-decoration:none;
}
body .quran-directory :is(.quran-directory-saved,.quran-directory-text-search) svg,
body .quran-directory .quran-directory-options>summary svg {
 width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;
}
body .quran-directory .quran-directory-saved {flex:none;}
body .quran-directory-resume {
 display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 13px;
 border:1px solid var(--line);border-radius:12px;background:var(--pale);
 color:var(--ink);text-decoration:none;
}
body .quran-resume-copy {min-width:0;flex:1;}
body .quran-resume-copy small {display:block;color:var(--green);font-size:12px;line-height:1.4;}
body .quran-resume-copy strong {display:block;font-size:15px;line-height:1.5;font-weight:650;}
body .quran-resume-copy strong span {font-size:13px;font-weight:400;color:var(--muted);white-space:nowrap;}
body .quran-resume-arrow {font-size:23px;color:var(--green);flex:none;}
body .quran-directory .browse-tabs {margin:12px 0 10px;gap:4px;}
body .quran-directory .browse-tabs button {min-width:0;min-height:44px;font-size:14px;}
body .quran-directory .quran-directory-search {margin:0;border-color:var(--control-line);min-height:46px;padding-inline:12px;gap:9px;}
body .quran-directory-search svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none;}
body .quran-directory-search input {min-width:0;padding:11px 0;font-size:16px;}
body .quran-directory-tools {display:flex;flex-wrap:wrap;align-items:flex-start;gap:0 12px;margin:3px 0 8px;}
body .quran-directory .quran-directory-text-search {justify-content:flex-start;padding-inline:2px;}
body .quran-directory-options {margin-inline-start:auto;max-width:100%;}
body .quran-directory-options>summary {
 display:flex;align-items:center;justify-content:flex-end;gap:7px;min-height:44px;padding:7px 2px;
 cursor:pointer;list-style:none;color:var(--green);font-size:13px;font-weight:600;
}
body .quran-directory-options>summary::-webkit-details-marker {display:none;}
body .quran-directory-options>summary::after {content:'⌄';font-size:17px;line-height:1;transition:transform .15s;}
body .quran-directory-options[open] {flex-basis:100%;order:1;margin:0;}
body .quran-directory-options[open]>summary {justify-content:flex-start;}
body .quran-directory-options[open]>summary::after {transform:rotate(180deg);}
body .quran-directory-options-body {padding:3px 12px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);}
body .quran-directory-options-body .reader-library-links {display:flex;flex-wrap:wrap;gap:7px;margin:9px 0;}
body .quran-directory-options-body .reader-library-links .tool {flex:0 1 auto;min-width:0;max-width:100%;min-height:44px;font-size:13px;}
body .quran-directory-options-body p {font-size:13px;color:var(--muted);line-height:1.6;margin:8px 0 0;}
body .quran-directory-count {font-size:12px;line-height:1.4;color:var(--muted);margin:0 0 7px;}
body .quran-directory .surah-row {min-height:68px;padding:12px 13px;gap:12px;text-align:start;transform:none;}
body .quran-directory .surah-number {width:36px;height:36px;font-size:13px;}
body .quran-directory .surah-info strong {font-size:15px;line-height:1.45;}
body .quran-directory .surah-info small {font-size:12px;line-height:1.5;margin-top:3px;}
body .quran-directory .juz-grid {gap:8px;}
body .quran-directory .juz-grid button {min-height:76px;}
body .quran-directory .page-browser {padding:16px;border-radius:14px;}
body .quran-directory .page-browser h2 {font-size:19px;line-height:1.4;margin:0 0 12px;}
body .quran-directory #pageJump {gap:8px;}
body .quran-directory #pageJump label {font-size:14px;}
body .quran-directory #pageJump input {font-size:18px;}
body .quran-directory .page-shortcuts {margin-top:16px;gap:7px;}
@media(max-width:380px){
 body .quran-directory .surah-row {gap:9px;padding-inline:11px;}
 body .quran-directory .surah-info strong {font-size:14px;}
 body .quran-directory .quran-directory-saved {padding-inline:3px;font-size:12px;}
 body .quran-directory-tools {gap:0 8px;}
 body .quran-directory .quran-directory-text-search,body .quran-directory-options>summary {font-size:12px;gap:5px;}
}


/* /reader-v13.css */
/* A reading surface, rather than a dashboard: the Quran owns the page. */
body:not(.dark),body[data-profile="adult"]:not(.dark){--bg:#f3f1eb;--panel:#fffcf6;--reading-paper:#fffcf6;--ink:#202c32;--muted:#626a6c;--line:#dfdfd5;--green:#285c52;--pale:#eaf0e9;--gold-text:#80642e;--paper-rule:#cbb887;--word-follow:#f5df9c;--word-follow-line:#8f6b22;}
body.dark,body[data-profile="adult"].dark{--bg:#11171d;--panel:#1b252b;--reading-paper:#1b252b;--ink:#f1eee5;--muted:#bcc6c8;--line:#38454a;--pale:#253b36;--paper-rule:#6f654d;--word-follow:#59471f;--word-follow-line:#f3ce70;}
.sidebar,.dark .sidebar{background:#112c35;}
.sidebar .nav button.active,.dark .sidebar .nav button.active{background:#23424a;box-shadow:inset 3px 0 #d0b474;}
[dir="rtl"] .sidebar .nav button.active{box-shadow:inset -3px 0 #d0b474;}
.sidebar .brand{padding-bottom:26px;}
.topbar{height:68px;background:var(--bg);border-bottom:0;}
body.reader-page .topbar .reader-top-options{display:none!important;}
body.reader-page .layout{max-width:840px;padding-top:12px;padding-bottom:100px;}
.reader-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;}
.reader-surah-select{padding:0;gap:10px;}
.reader-header h1{font-size:22px;font-weight:600;letter-spacing:-.5px;margin:0;}
.reader-surah-select small{font-size:11px;line-height:1.5;}
.reader-surah-number{background:transparent;border:1px solid var(--paper-rule);border-radius:5px;width:35px;height:40px;color:var(--gold-text);font-size:12px;}
body.reader-page .reader-header .reader-appearance{display:inline-flex!important;align-items:center;justify-content:center;background:var(--panel);min-height:44px;min-width:44px;border-radius:12px;border-color:var(--line);}
.reader-view-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;}
.reader-view-switch{display:flex;background:var(--line);padding:3px;border-radius:11px;gap:2px;}
.reader-view-switch button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;min-width:86px;padding:7px 14px;border:0;border-radius:8px;background:transparent;font-weight:600;color:var(--muted);font-size:12px;}
.reader-view-switch button[aria-pressed="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 4px #0a182513;}
.reader-mode-navigation{display:flex;margin:0 0 12px;min-width:0}
.reader-mode-navigation .reader-view-switch{width:100%;max-width:480px}
.reader-mode-navigation .reader-view-switch button{flex:1;min-height:44px}
.reader-fullpage-mode-navigation{grid-column:1/-1;grid-row:2;min-width:0;width:100%}
.reader-fullpage-mode-navigation .reader-view-switch{width:100%;box-sizing:border-box;padding:2px}
.reader-fullpage-mode-navigation .reader-view-switch button{flex:1;min-width:0;min-height:44px;padding:6px 8px}
body.pages-reading.reader-focus .reader-mode-navigation{display:none}
.reader-view-switch svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;}
.reader-view-actions{display:flex;gap:4px;align-items:center;}
.reader-listen-button,.reader-focus-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:0;min-height:44px;color:var(--green);border-radius:9px;font-size:12px;font-weight:600;padding:8px;}
.reader-listen-button span{font-size:21px;line-height:1;}
.reader-focus-button{font-size:22px;min-width:40px;}
.reader-view-actions button:hover{background:var(--pale);}
.reader-options{margin-bottom:20px;}
.layout-choice{grid-template-columns:repeat(3,minmax(0,1fr));}
/* Study mode has one manuscript surface and reveals actions for the chosen ayah. */
.verses-reading-surface{background:var(--reading-paper);border:1px solid var(--line);border-radius:15px;padding:0 26px;box-shadow:0 6px 24px #1d2f2305;}
.verse-card,.dark .verse-card{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:22px 0;margin:0;background:transparent;box-shadow:none;}
.verse-card:last-child{border-bottom:0;}
.verse-card.selected-verse,.dark .verse-card.selected-verse,[dir="rtl"] .verse-card.selected-verse{border-color:var(--line);box-shadow:none;}
.verse-top{gap:8px;}
.verse-ref{border-radius:6px;min-height:34px;min-width:48px;}
.verse-card.selected-verse .verse-ref{background:var(--green);color:var(--on-accent,#fff);}
.verse-top .icon-button{width:36px;height:36px;min-width:36px;}
.verse-ar{font-size:var(--arabic-size);margin:12px 0 8px;line-height:2.15;}
/* Keep each verse's actions in place; changing the reading selection must not resize adjacent verses. */
body.reader-page .verse-card .verse-actions{display:flex;margin-top:10px;padding-top:0;border-top:0;}
.verse-card .verse-action{border:0;background:var(--pale);min-height:42px;border-radius:7px;}
.verse-card .verse-en small{margin-top:4px;}
.reader-surah-ornament{display:none;}
.reader-location{border:0;margin:0 0 10px;padding:0;}
/* The app header scrolls away. Only the small ayah bar stays above the text. */
body.reader-page .topbar{position:relative;top:auto;}
.ayah-tool-shelf{display:contents;}
body.reader-page .ayah-tool-shelf:has(#readerDock[hidden]):not(:has(.children-navigation:not([hidden]))){display:none;}
body.reader-page .ayah-tool-shelf{display:block;position:sticky;top:env(safe-area-inset-top,0px);z-index:40;background:var(--bg);}
body.reader-page .ayah-tool-shelf .children-navigation{position:static;}
body.reader-page #readerDock:not([hidden]){
 display:flex;position:relative;inset:auto;
 transform:none;box-sizing:border-box;width:calc(100% - 24px);max-width:780px;
 margin:0 auto;gap:6px;padding:4px 7px;border:1px solid var(--line);border-radius:14px;
 background:var(--panel);color:var(--ink);box-shadow:0 3px 12px #10252212;
}
body.reader-page #readerDock .dock-verse{display:flex;flex-direction:row;align-items:baseline;gap:5px;min-width:0;flex:1;padding-inline-start:4px;white-space:nowrap;}
body.reader-page #readerDock .dock-verse span{color:var(--muted);font:inherit;font-size:14px;letter-spacing:normal;}
body.reader-page #readerDock bdi{font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;}
body.reader-page #readerDock button{display:inline-flex;justify-content:center;align-items:center;gap:5px;min-height:44px;min-width:44px;padding:4px 12px;font:inherit;font-weight:600;font-size:14px;color:var(--green);background:transparent;border-radius:9px;}
body.reader-page #readerDock [data-dock="tafsir"]{background:var(--pale);}
body.reader-page #readerDock [data-dock="discover"]{background:var(--green);color:var(--on-accent,#fff);}
body.reader-page #readerDock button:focus-visible{outline:3px solid var(--focus-ring,var(--ink));outline-offset:2px;}
body.reader-page #readerDock button svg{display:block;width:18px;height:18px;}
body.reader-page #readerDock .dock-word-mark{font-family:var(--arabic),serif;font-size:17px;}
@media(max-width:460px){
 body.reader-page #readerDock:not([hidden]){display:grid;grid-template-columns:minmax(3.25rem,.65fr) repeat(3,minmax(0,1fr));gap:2px;width:calc(100% - 12px);padding-inline:4px;}
 body.reader-page #readerDock:has([data-dock="discover"]):not([hidden]){grid-template-columns:minmax(3.25rem,.65fr) repeat(4,minmax(0,1fr));}
 body.reader-page #readerDock button{gap:2px;min-inline-size:0;padding-inline:2px;line-height:1.4;}
 body.reader-page #readerDock .dock-verse{flex-direction:column;gap:0;line-height:1.25;}
 body.reader-page #readerDock button svg,body.reader-page #readerDock .dock-word-mark{display:none;}
}
.reader-word{transition:background-color .12s;border-radius:0;}
body .reader-word.audio-word-active{background-color:var(--word-follow)!important;border-radius:0!important;box-shadow:none!important;transform:none!important;}
body .reader-word.audio-word-active:not(:focus-visible){outline:0!important;}
body .reader-word.audio-word-active:focus-visible{outline:2px solid var(--word-follow-line);outline-offset:2px;}
.audio-verse-active{background-color:color-mix(in srgb,var(--pale) 65%,transparent);}
.verse-card.audio-verse-active{background:transparent;}
.verse-card.audio-verse-active .verse-ref:not(:focus-visible){color:var(--ink);background:var(--pale);box-shadow:none;outline:0;}
@media(prefers-contrast:more){body .reader-word.audio-word-active{text-decoration:underline;text-underline-offset:.22em;text-decoration-color:var(--word-follow-line);}}
@media(forced-colors:active){body .reader-word.audio-word-active,body .reader-word.audio-word-active *{forced-color-adjust:none;background-color:Highlight!important;color:HighlightText!important;}body .reader-word.audio-word-active:focus-visible{outline-color:CanvasText;}}
/* Responsive source pages. Text reflows without changing the 604-page boundaries. */
.mushaf-pages{width:100%;min-width:0;}
.mushaf-paper{position:relative;background:var(--reading-paper);color:var(--ink);border:1px solid var(--paper-rule);border-radius:3px;padding:28px 32px 24px;box-shadow:0 12px 38px #1e2b3210,3px 3px 0 var(--bg),4px 4px 0 var(--line);isolation:isolate;}
.mushaf-paper::before{content:"";position:absolute;inset:8px;border:1px solid color-mix(in srgb,var(--paper-rule) 55%,transparent);pointer-events:none;z-index:-1;}
.mushaf-page-text{font-family:var(--mushaf-page-font,'QatrahEdition-hafs'),'Amiri',serif;font-size:var(--arabic-size,30px);line-height:2.25;direction:rtl;text-align:justify;text-align-last:center;overflow-wrap:normal;word-break:normal;}
.mushaf-page-text .reader-word{font-family:inherit;font-size:inherit;line-height:inherit;padding:0 1px;min-width:0;min-height:0;vertical-align:baseline;white-space:nowrap;border:0;background:transparent;color:inherit;appearance:none;}
.mushaf-page-text .reader-word:hover{background:var(--pale);}
.mushaf-page-surah{font-family:'Amiri',serif!important;font-size:28px!important;font-weight:400;text-align:center;line-height:1.6;margin:12px 0 18px;padding:8px 16px;border-top:1px solid var(--paper-rule);border-bottom:1px solid var(--paper-rule);color:var(--ink);background:linear-gradient(90deg,transparent,#a88f4120,transparent);}
.mushaf-page-surah:first-child{margin-top:0;}
.mushaf-page-basmala{display:block;text-align:center;font-family:'Amiri',serif;font-size:.9em;margin:7px 0 14px;line-height:2.2;}
.mushaf-page-ayah{display:inline;}
.mushaf-page-ayah.selected-verse{background:var(--pale);}
.mushaf-page-ayah.is-selected{background:transparent;}
.mushaf-page-text .mushaf-ayah-marker[aria-pressed="true"],
.mushaf-page-text .audio-verse-active .mushaf-ayah-marker{background-color:var(--pale)!important;color:var(--green);border-color:currentColor;box-shadow:none;}
.mushaf-page-text .mushaf-ayah-marker[aria-pressed="true"]:not(:focus-visible){outline:0;}
@media(forced-colors:active){.audio-verse-active .mushaf-ayah-marker,.verse-card.audio-verse-active .verse-ref{forced-color-adjust:none;background-color:Highlight!important;color:HighlightText!important;}}
.mushaf-paper[data-opening-page="true"] .mushaf-page-text{text-align:center;}
.mushaf-paper[data-opening-page="true"] .mushaf-page-ayah{display:block;text-align:center;}
.mushaf-page-text .mushaf-ayah-marker{font-family:'Amiri',serif;font-size:.6em;color:var(--gold-text);border:1px solid var(--paper-rule);border-radius:50%;background:transparent;line-height:1;min-width:25px;min-height:25px;margin:0 3px;vertical-align:middle;padding:3px;}
/* Hafs digits already contain their ornament (1–286). Amiri instead shapes
   U+06DD plus digits; it also covers displayed 287 after the opening basmala.
   Keep each marker in its own font run, separate from joined Quran letters. */
.verse-ar .ayah-end[data-ayah-marker-font]{display:inline-block;direction:rtl;unicode-bidi:isolate;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant-ligatures:normal;letter-spacing:0;white-space:nowrap;}
.verse-ar .ayah-end[data-ayah-marker-font="hafs"]{font-family:'QatrahEdition-hafs','Amiri',serif;}
.verse-ar .ayah-end[data-ayah-marker-font="amiri"]{font-family:'Amiri',serif;}
.mushaf-paper-footer{display:flex;gap:25px;justify-content:center;align-items:center;padding-top:22px;font:12px var(--font-ui);color:var(--gold-text);}
.mushaf-page-selection>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.mushaf-page-selection>span small{font-size:10px;}
.mushaf-page-selection>div{display:flex;gap:6px;}
.mushaf-page-ayah [data-page-select],.mushaf-page-marker{font-family:'Amiri',serif;font-size:.65em;color:var(--gold-text);border:1px solid var(--paper-rule);border-radius:50%;background:transparent;line-height:1.2;min-width:30px;min-height:30px;margin:0 4px;vertical-align:middle;padding:3px;}
.mushaf-page-paging{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px;direction:ltr;}
.mushaf-page-paging button{min-height:44px;border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:9px 14px;border-radius:9px;font-size:12px;display:flex;gap:7px;align-items:center;justify-content:center;}
.mushaf-page-paging button:disabled{opacity:.35;cursor:default;}
.mushaf-page-jump{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:var(--muted);flex-wrap:wrap;}
.mushaf-page-jump input{width:60px;min-height:40px;padding:6px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-align:center;border-radius:7px;}
.mushaf-page-jump button{padding:7px 10px;}
.mushaf-page-selection{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;padding:10px 0;font-size:12px;color:var(--muted);}
.mushaf-page-selection button{border:0;background:var(--pale);color:var(--green);padding:10px 13px;min-height:42px;border-radius:8px;font-weight:600;font-size:12px;}
.mushaf-pages :is(.mushaf-page-note,.mushaf-page-hint,.mushaf-page-source){font-size:11px;line-height:1.7;color:var(--muted);text-align:center;max-width:58ch;margin:12px auto;}
.mushaf-page-status{padding:32px 16px;text-align:center;color:var(--muted);}
.mushaf-page-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--gold-text);margin:0 0 16px;}
.mushaf-page-number{text-align:center;color:var(--gold-text);font-size:12px;margin-top:20px;}
/* A single audio shelf, with word follow distinct from fixed tajweed colours. */
body .audio-player{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 32px #0c1c2520;bottom:18px;max-width:780px;gap:14px;padding:13px 16px;}
body .audio-player,body .audio-player .player-location,body .audio-player .player-location strong,body .audio-player .player-location small,body .audio-player .player-timeline small{color:var(--ink);}
body .audio-player .player-actions .player-follow{color:var(--green);}
.audio-player .player-location{min-width:0;max-width:240px;}
.audio-player .player-location>span{display:block;font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px;}
.audio-player .player-location strong{font-size:13px;}
.audio-player .player-location small{font-size:10px;}
.audio-player .player-actions{gap:5px;}
.audio-player .player-actions button{border-color:var(--line);min-height:40px;min-width:38px;}
.audio-player .player-actions [data-player="toggle"]{background:var(--green);color:var(--on-accent,#fff);border:0;min-width:62px;}
.audio-player .player-follow[aria-pressed="true"]{background:var(--pale);}
.audio-player .player-repeat select{font-size:11px;max-width:115px;background:var(--panel);border-color:var(--line);}
.audio-player .player-timeline{min-width:100px;}
.audio-player input[type="range"]{accent-color:var(--green);}
body.has-audio .layout{padding-bottom:160px;}
body.reader-focus .sidebar,body.reader-focus .topbar,body.reader-focus .mobile-nav{display:none!important;}
body.reader-focus .app{display:block;}
body.reader-focus .layout{padding-top:20px;}
body.reader-focus .audio-player{left:50%;right:auto;transform:translateX(-50%);bottom:12px;}
@media(max-width:1050px){.reader-page .layout{max-width:780px;}.topbar{gap:8px;padding-inline:20px;}.topbar .mushaf-beta-badge{display:none;}}
@media(max-width:760px){
 body .topbar{background:var(--bg);padding:8px 16px!important;gap:6px!important;}
 body .topbar>.profile-control{flex:1 1 140px;}
 body .topbar>.profile-control select{border:0;background:transparent;max-width:155px;font-size:11px;color:var(--muted);min-height:32px;}
 body .topbar .mushaf-beta-badge{display:flex;max-width:70px;}
 body .topbar .top-brand #topTitle{font-size:12px!important;letter-spacing:.3px;}
 body .topbar .mushaf-explore-button,body .topbar #languageButton,body .topbar #settingsButton{border:0;background:transparent;box-shadow:none;}
 body.reader-page .layout{padding:12px 16px 100px;}
 .reader-header{margin-bottom:10px;}
 .reader-header h1{font-size:21px;}
 .reader-surah-number{width:32px;height:36px;}
 .reader-view-bar{margin-bottom:14px;gap:6px;}
 .reader-view-switch button{min-width:75px;padding:7px 12px;}
 .reader-listen-button{gap:5px;}
 .reader-focus-button{min-width:34px;padding:5px;}
 .verses-reading-surface{padding:0 18px;border-radius:12px;}
 .verse-card,.dark .verse-card{padding:17px 0;border-radius:0;}
 .verse-ar{margin:10px 0;line-height:2.1;}
 body.reader-page .verse-card .verse-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 36px;gap:5px;}
 .verse-actions .verse-action{font-size:11px;padding:7px 4px;}
 .verse-actions .ai-badge{display:none;}
 .mushaf-paper{padding:22px 18px 20px;}
 .mushaf-paper::before{inset:6px;}
 .mushaf-page-text{font-size:clamp(23px,calc(var(--arabic-size) - 2px),44px);line-height:2.15;}
 .mushaf-paper[data-opening-page="true"] .mushaf-page-text{font-size:clamp(22px,calc(var(--arabic-size) - 4px),42px);line-height:1.9;}
 .mushaf-page-surah{font-size:26px!important;margin-bottom:13px;}
 .mushaf-page-paging{gap:7px;margin-top:15px;}
 .mushaf-page-paging button{padding:8px 10px;font-size:11px;}
 .mushaf-page-jump{gap:4px;font-size:10px;}
 .mushaf-page-jump input{width:49px;}
 .mushaf-page-selection{gap:7px;}
 body .audio-player{left:10px;right:10px;width:auto;max-width:none;transform:none;bottom:76px;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 12px;gap:5px 9px;border-radius:13px;}
 body .audio-player[hidden]{display:none;}
 .audio-player .player-location{max-width:none;grid-column:1;grid-row:1;}
 .audio-player .player-location>span{max-width:160px;font-size:8px;}
 .audio-player .player-location strong{font-size:12px;}
 .audio-player .player-location small{font-size:9px;}
 .audio-player .player-timeline{grid-row:2;grid-column:1/-1;display:flex;gap:10px;align-items:center;}
 .audio-player .player-timeline input{flex:1;min-width:0;height:18px;}
 .audio-player .player-timeline small{font-size:9px;min-width:64px;}
 .audio-player .player-actions{grid-row:1;grid-column:2;flex-wrap:wrap;justify-content:flex-end;max-width:140px;gap:4px;}
 .audio-player .player-actions .player-repeat{display:none;}
 .audio-player .player-actions button{font-size:10px;min-height:38px;padding:5px 8px;}
 .audio-player .player-actions .player-follow{min-width:44px;}
 .audio-player .player-actions [data-player="toggle"]{min-width:48px;}
 .audio-player .player-actions [data-player="stop"]{min-width:28px;width:28px;padding:4px;}
 body.has-audio .layout{padding-bottom:225px;}
 body.reader-focus .audio-player{left:10px;right:10px;transform:none;bottom:10px;}
 body.reader-focus.has-audio .layout{padding-bottom:155px;}
 .mobile-nav button.active{background:transparent;color:var(--green);}
 .mobile-nav button.active svg{stroke-width:2.3;}
}
@media(max-width:359px){
 body.reader-page .layout{padding-inline:10px;}.reader-header h1{font-size:19px;}.reader-surah-select small{font-size:10px;}.reader-view-switch button{min-width:68px;padding:7px 9px;}.reader-listen-button{font-size:11px;padding:5px;}.mushaf-paper{padding-inline:14px;}.mushaf-page-text{font-size:calc(var(--arabic-size) - 4px);}.mushaf-page-paging{flex-wrap:wrap;}.mushaf-page-jump{flex:1;}.layout-choice{grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:reduce){.mushaf-paper,.reader-word{animation:none!important;transition:none!important;transform:none!important;}}

.reader-focus-button svg{width:20px;height:20px;}

/* Word study is an explicit view, with comfortable touch controls on small phones. */
.reader-view-bar{flex-wrap:wrap;}
.reader-view-switch button{min-height:44px;min-width:0;}
.layout-choice{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));}
@media(max-width:540px){.reader-view-switch{width:100%;}.reader-view-switch button{flex:1;padding-inline:8px;}.reader-view-actions{margin-inline-start:auto;}.reader-view-bar{gap:4px;}}
/* Hifdh stays inside the reader: no text or translation is rendered until reveal. */
.hifdh-reader-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0;padding:18px;border:1px solid var(--line,#deddd3);border-radius:16px;background:var(--panel,#fffdf7)}
.hifdh-reader-tools>div{flex:1 1 250px}.hifdh-reader-tools strong{font-size:18px}.hifdh-reader-tools p{margin:5px 0 0;color:var(--muted,#626b65);font-size:14px;line-height:1.7}
.hifdh-reader-tools button{min-height:44px}.hifdh-reading-surface .hifdh-ayah{padding:18px 22px;scroll-margin-top:120px}
.hifdh-ayah-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;min-height:106px;border:1px dashed var(--line,#d4d9cf);border-radius:12px;background:transparent;color:var(--green,#245e50);cursor:pointer;font:inherit;font-size:14px}
.hifdh-ayah-toggle:hover{background:var(--soft,#edf2eb)}.hifdh-ayah-toggle:focus-visible{outline:3px solid var(--green,#245e50);outline-offset:3px}.hifdh-ayah-toggle.is-revealed{min-height:44px;border-style:solid;width:auto;padding:8px 16px;margin-inline-start:auto}
.hifdh-blank{display:flex;flex-direction:column;align-items:center;gap:10px;width:80%;max-width:390px}.hifdh-blank i{height:7px;width:100%;border-radius:5px;background:currentColor;opacity:.12}.hifdh-blank i:last-child{width:72%}
.hifdh-ayah .verse-ar{margin:24px 0 10px}.hifdh-ayah [hidden]{display:none}
@media(max-width:540px){.hifdh-reader-tools{padding:14px;gap:10px}.hifdh-reader-tools>div{flex-basis:100%}.hifdh-reading-surface .hifdh-ayah{padding:16px}.hifdh-reader-tools .text-link{font-size:13px}}
/* Passage-first recall: a quiet header, one main action and explicit optional hints. */
.hifdh-reader-tools{display:block;padding:16px 18px;margin:0 0 20px;box-shadow:none}
.hifdh-session-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.hifdh-session-head>div{display:grid;gap:4px}.hifdh-kicker{font-size:11px;letter-spacing:.08em;color:var(--muted);font-weight:650}.hifdh-count{font-size:12px;color:var(--muted);white-space:nowrap;background:var(--light);padding:6px 10px;border-radius:20px}
.hifdh-reader-tools .hifdh-instruction{margin:10px 0 14px;font-size:14px}.hifdh-session-actions{display:flex;gap:8px;flex-wrap:wrap}.hifdh-session-actions .btn{flex:1;min-height:46px}.hifdh-session-actions .tool{display:inline-flex;align-items:center;gap:7px}.hifdh-icon{width:18px;height:18px;flex-shrink:0}.hifdh-session-actions button:disabled{opacity:.5;cursor:default}
.hifdh-options{margin-top:12px}.hifdh-options>summary{font-size:13px;color:var(--muted);padding:10px 0;cursor:pointer;min-height:44px}.hifdh-options form{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:10px 0}.hifdh-options label{display:grid;gap:6px;font-size:13px;flex:1;min-width:70px}.hifdh-options input{width:100%;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}.hifdh-options small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:10px}.hifdh-extra-links{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center}.hifdh-extra-links a{font-size:13px;color:var(--green)}
.hifdh-reading-surface .hifdh-ayah{padding:16px 20px}.hifdh-ayah .verse-top{margin-bottom:10px}.hifdh-ayah-toggle{min-height:76px;gap:10px;border-style:solid;border-color:var(--line);background:var(--light);font-size:13px}.hifdh-blank{width:66%;max-width:300px;gap:8px}.hifdh-blank i{height:5px}.hifdh-ayah-toggle.is-revealed{background:transparent;font-size:12px;min-height:44px}.hifdh-hint{margin-inline-start:auto;min-height:44px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:var(--green);font-size:12px}.hifdh-hint[aria-pressed=true]{background:var(--pale)}.hifdh-first-word{font-family:var(--arabic);font-size:28px;line-height:1.8;letter-spacing:0}.hifdh-verse-study{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px}.hifdh-verse-study button{min-height:44px}.hifdh-paging{display:flex;justify-content:space-between;gap:12px;margin:18px 0}.hifdh-paging button{min-height:46px;flex:1}.hifdh-paging button:disabled{opacity:.4;cursor:default}
@media(max-width:540px){.hifdh-reader-tools{padding:14px}.hifdh-count{font-size:11px;padding:6px 8px}.hifdh-reading-surface .hifdh-ayah{padding:14px}.hifdh-session-actions .btn{font-size:13px}.hifdh-session-actions .tool{font-size:12px}.hifdh-kicker{letter-spacing:0}.hifdh-paging{gap:8px}.hifdh-paging button{font-size:12px;padding-inline:8px}}
.home-daily-goal{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.home-daily-goal .text-link{min-height:44px}

/* Ayah playback is available while concealed; the player mode remains reachable on phones. */
.hifdh-ayah-audio{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--green);cursor:pointer}.hifdh-ayah-audio svg{width:20px;height:20px}.hifdh-ayah .verse-top{flex-wrap:wrap}.audio-player .player-repeat select{min-height:44px}
@media(max-width:700px){.audio-player .player-actions .player-repeat{display:block;flex:1 1 100%;order:5;margin:0}.audio-player .player-repeat select{width:100%;max-width:none;min-height:44px;font-size:12px;padding:6px}.audio-player .player-actions{max-width:150px}.reader-listen-button{max-width:190px;line-height:1.5}}

.audio-player .player-actions button{min-width:44px;min-height:44px}.audio-player .player-actions [data-player="stop"]{background:var(--panel);color:var(--ink)}

/* The same source/word pair in Pages, Study and Hifdh. */
.reader-study-actions{display:inline-flex;align-items:stretch;gap:4px;flex-wrap:wrap;}
body.reader-page .reader-study-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--green);font-family:var(--font-ui);font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;}
.reader-study-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none;}
.reader-study-button>span[lang="ar"]{font-family:var(--font-ui);font-size:17px;line-height:1;}
.reader-study-button:hover{background:var(--pale);}.hifdh-verse-study.reader-study-actions{gap:4px;margin-top:12px;}
.reader-view-actions{flex-wrap:wrap;}.mushaf-page-selection>div{flex-wrap:wrap;justify-content:center;}
@media(max-width:540px){
 .reader-view-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem}
 .reader-view-actions>.reader-study-actions{grid-column:1/-1;min-width:0;display:flex;flex-wrap:wrap}
 .reader-view-actions .reader-study-button{flex:1 1 max-content;max-inline-size:100%}
 .reader-view-actions>.reader-listen-button{grid-column:1;grid-row:2;justify-self:start}
 .reader-view-actions>.reader-focus-button{grid-column:2;grid-row:2;align-self:center}
}

/* Hifdh C2: one labelled audio control per card; shared reader actions unchanged. */
.hifdh-ayah .hifdh-verse-study.reader-study-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.5rem),1fr));gap:6px;width:100%;}
body.reader-page .hifdh-verse-study .reader-study-button{display:flex;flex-direction:column;gap:5px;min-width:44px;min-height:60px;padding:8px 4px;white-space:normal;text-align:center;line-height:1.35;}
.hifdh-ayah .reader-tilawah-button [data-hifdh-audio-icon]{display:flex;align-items:center;justify-content:center;}
body.reader-page .hifdh-ayah .reader-tilawah-button.is-playing{background:var(--green);color:var(--panel);border-color:var(--green);}
.hifdh-listen-first-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;}
.hifdh-listen-first-row .hifdh-hint{margin-inline-start:0;border:1px solid var(--line);}
body.reader-page .hifdh-listen-first-row .reader-study-button,.hifdh-listen-first-row .hifdh-hint{min-width:44px;min-height:60px;white-space:normal;line-height:1.4;}
.hifdh-reciter,.hifdh-audio-status{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0;}
.hifdh-audio-status:empty{display:none;}.hifdh-ayah .hifdh-ayah-toggle.is-revealed{margin-top:10px;}

/* Hifdh card layout, scoped separately from Pages and Study.
 * Keep source fonts, canonical IDs, reveal state and actual audio state intact. */
body.reader-page .hifdh-reader-tools { padding:16px;border-radius:18px;margin-bottom:16px; }
body.reader-page :is(.hifdh-kicker,.hifdh-count,.hifdh-options small) { font-size:13px;letter-spacing:normal; }
body.reader-page .hifdh-session-actions button { min-height:48px;border-radius:12px; }
body.reader-page .hifdh-reading-surface.verses-reading-surface { display:grid;gap:12px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none; }
body.reader-page .hifdh-reading-surface .hifdh-ayah { margin:0;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:none; }
body.reader-page .hifdh-ayah .verse-top { gap:8px;min-height:32px;margin-bottom:10px; }
body.reader-page .hifdh-ayah .verse-source { font-size:13px; }
body.reader-page .hifdh-ayah-toggle:not(.is-revealed) { min-height:104px;border:1.5px dashed var(--control-line);border-radius:12px;background:var(--light);color:var(--ink);font-size:15px; }
body.reader-page .hifdh-ayah-toggle.is-revealed { min-height:48px;font-size:14px;border-color:var(--control-line);border-radius:12px; }
body.reader-page .hifdh-ayah :is(.hifdh-verse-study.reader-study-actions,.hifdh-listen-first-row) { gap:8px; }
body.reader-page .hifdh-ayah :is(.reader-study-button,.hifdh-hint) { min-height:60px;padding:6px 4px;gap:2px;border:1.5px solid var(--control-line);border-radius:12px;background:var(--panel);color:var(--ink);font-size:15px;font-weight:600;line-height:1.5; }
body.reader-page .hifdh-ayah .reader-study-button svg { width:22px;height:22px;stroke-width:1.75; }
body.reader-page .hifdh-ayah .reader-tilawah-button { border:2px solid var(--green);color:var(--green); }
body.reader-page .hifdh-ayah .reader-tilawah-button.is-playing { background:var(--green);border-color:var(--green);color:var(--on-accent); }
body.reader-page .hifdh-ayah .hifdh-hint[aria-pressed="true"] { border-color:var(--green);background:var(--pale);color:var(--green); }
body.reader-page .hifdh-ayah :is(.hifdh-reciter,.hifdh-audio-status) { font-size:13px;line-height:1.65;margin-block:8px; }
body.reader-page .hifdh-ayah :is(button,a):focus-visible { outline:3px solid var(--focus-ring);outline-offset:3px; }

/* Reflection remains an intentional aid: opening it never reveals recall cards. */
.hifdh-reflection{margin-top:12px;border-top:1px solid var(--line);padding-top:4px;}
.hifdh-word-practice{margin-top:14px;border-top:1px solid var(--line);padding-top:4px;}
.hifdh-word-practice>summary{min-height:44px;padding:10px 0;color:var(--green);font-size:14px;font-weight:650;cursor:pointer;}
.hifdh-word-practice [data-hifdh-word-controls]>p:not(.verse-ar){margin:8px 0;color:var(--muted);font-size:14px;line-height:1.6;}
.hifdh-word-practice .hifdh-word-reference{color:var(--ink);font-weight:650;}
.hifdh-word-practice .hifdh-word-text{margin:12px 0;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--ink);font-size:var(--arabic-size,30px);line-height:2.3;text-align:start;}
.hifdh-hidden-word{display:inline-block;min-width:2.5em;padding-inline:.25em;border-radius:6px;background:var(--light);color:var(--muted);font-family:system-ui,sans-serif;font-size:.55em;line-height:1.8;text-align:center;vertical-align:middle;user-select:none;}
.hifdh-word-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.hifdh-word-actions button,.hifdh-word-finish{min-height:44px;}
.hifdh-word-finish{margin-top:8px;}
.hifdh-word-practice :is(button,summary):focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px;}
.hifdh-reflection>summary{display:flex;align-items:center;gap:9px;min-height:48px;padding:8px 2px;color:var(--green);font-weight:650;font-size:14px;cursor:pointer;list-style:none;}
.hifdh-reflection>summary::-webkit-details-marker{display:none;}
.hifdh-reflection>summary::after{content:'+';font-size:21px;font-weight:400;margin-inline-start:auto;}
.hifdh-reflection[open]>summary::after{content:'−';}
.hifdh-reflection svg{width:19px;height:19px;flex:none;}
.hifdh-reflection>p{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 10px;}
.hifdh-reflection-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body.reader-page .hifdh-reflection-actions .reader-study-button{flex-direction:row;min-height:48px;font-size:14px;padding:7px 8px;white-space:normal;}
.hifdh-reflection>summary:focus-visible{outline:3px solid var(--focus-ring,#88d5b5);outline-offset:3px;border-radius:8px;}
@media(max-width:540px){.reader-view-actions .reader-study-button{padding-inline:7px;gap:5px;}.reader-view-actions .reader-reflect-button svg{display:none;}}
body.reader-page .reader-study-button{font-size:14px;}
/* Reading mode, an ayah guide, and linked lessons have distinct names and shapes. */
body.reader-page .reader-view-switch button{font-size:.95rem;font-weight:700;}
body.reader-page .reader-view-switch button[aria-pressed="true"]{background:var(--green);color:var(--on-accent,#fff);}
.reader-guide-hint{margin:.35rem 0 1rem;padding:.8rem 1rem;border:1px solid var(--line);border-inline-start:4px solid var(--green);border-radius:.6rem;background:var(--panel);color:var(--ink);font-size:1rem;line-height:1.6;}
.reader-guide-hint p{display:flex;gap:.25rem .8rem;flex-wrap:wrap;margin:0;}
.reader-guide-hint p>strong{color:var(--green);font-size:1.04rem;}
.reader-guide-hint>div{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:.4rem;font-size:.875rem;}
.reader-guide-hint a{margin-inline-start:auto;min-height:44px;display:inline-flex;align-items:center;font-weight:700;color:var(--green);text-decoration:underline;text-underline-offset:.2em;}
.li-lesson-symbol{width:1.25rem;height:1.25rem;flex:none;}
.reader-lesson-slot:empty{display:none;}
.reader-focus .reader-guide-hint,.reader-focus .reader-lesson-slot{display:none;}
body.reader-page a.reader-lesson-signpost{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:.3rem .65rem;border:1px solid var(--learn-lesson);border-radius:.55rem;background:var(--learn-lesson-tint);color:var(--learn-lesson);font-size:.875rem;font-weight:650;line-height:1.35;text-decoration:none;white-space:nowrap;}
.reader-lesson-signpost:focus-visible,.reader-guide-hint a:focus-visible{outline:3px solid var(--green);outline-offset:3px;}
@media(max-width:540px){.reader-guide-hint{padding:.65rem .75rem;}.reader-guide-hint a{margin-inline-start:0;}.reader-lesson-signpost span{font-size:.875rem;}.verse-top{flex-wrap:wrap;}}
@media(forced-colors:active){body.reader-page a.reader-lesson-signpost{border:2px solid LinkText;color:LinkText;background:Canvas;}}
.reader-marker-key{display:inline-flex;align-items:center;gap:.3rem;padding:.15rem .5rem;border:1px solid var(--learn-guide);border-radius:.4rem;background:var(--learn-guide-tint);color:var(--learn-guide);font-weight:750}
.reader-lesson-slot{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;min-inline-size:0}
.verse-top:has(.reader-lesson-menu[open]){flex-wrap:wrap}
.reader-lesson-slot:has(.reader-lesson-menu[open]){flex:0 0 100%;order:3}
.reader-lesson-menu[open]{inline-size:100%}
.reader-lesson-menu>summary.reader-lesson-signpost{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:.3rem .65rem;border:1px solid var(--learn-lesson);border-radius:.55rem;background:var(--learn-lesson-tint);color:var(--learn-lesson);font-size:.875rem;font-weight:650;line-height:1.35;cursor:pointer;list-style:none;white-space:nowrap}
.reader-lesson-menu>summary::-webkit-details-marker{display:none}
.reader-lesson-menu>summary::after{content:'';inline-size:.4rem;block-size:.4rem;margin-inline-start:.2rem;margin-block-end:.2rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.reader-lesson-menu[open]>summary::after{transform:rotate(225deg);margin-block-start:.25rem;margin-block-end:0}
.reader-lesson-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.6rem;margin:.6rem 0 .4rem;padding:.85rem;border:1px solid var(--line);border-radius:.65rem;background:var(--panel);color:var(--ink)}
.reader-lesson-choices>p{grid-column:1/-1;margin:0;font-size:1rem;font-weight:800}
.reader-lesson-choices>p>bdi{margin-inline-start:.35rem;color:var(--muted);font-size:.9rem}
body.reader-page a.reader-lesson-choice{display:flex;gap:.6rem;align-items:flex-start;padding:.8rem;border:1px solid var(--line);border-inline-start:3px solid var(--lesson-accent);border-radius:.5rem;background:var(--lesson-tint);color:var(--ink);text-decoration:none;min-block-size:44px;line-height:1.5;min-inline-size:0}
.reader-lesson-choice>.le-icon{margin:0;flex:none;color:var(--lesson-accent)}
.reader-lesson-choice small{display:block;font-size:.8rem;font-weight:750;color:var(--lesson-accent);margin-bottom:.25rem}
.reader-lesson-choice strong{display:block;font-size:1rem;font-weight:800;text-decoration:none}
body.reader-page a.reader-lesson-all{grid-column:1/-1;display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-size:.95rem;font-weight:750;text-decoration:underline;text-underline-offset:.2em}
.reader-lesson-menu :is(summary,a):focus-visible{outline:3px solid var(--green);outline-offset:3px}
.reader-lesson-more{grid-column:1/-1;display:flex;gap:.5rem 1rem;align-items:center;flex-wrap:wrap}
body.reader-page a.reader-hadith-signpost{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;padding:.3rem .65rem;border:1px solid var(--learn-source);border-radius:.5rem;background:var(--learn-source-tint);color:var(--learn-source);font-size:.9rem;font-weight:750;text-decoration:none}
.reader-hadith-signpost .le-icon{margin:0}
.reader-hadith-signpost bdi{font-size:.8rem;font-variant-numeric:tabular-nums}
.reader-hadith-signpost:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(forced-colors:active){.reader-lesson-menu>summary.reader-lesson-signpost,.reader-lesson-choice,.reader-marker-key{border-color:LinkText;background:Canvas;color:LinkText}}
body.reader-page .reader-explain-button,body.reader-page .hifdh-ayah .reader-explain-button{background:var(--green);color:var(--on-accent,#fff);border-color:var(--green);}

[data-reading-plan-action]:empty{display:none;}

.reader-companion.has-discovery .companion-controls [role=tab]{flex:1 1 0;min-width:44px;white-space:normal;overflow-wrap:normal;}
body .reader-companion .companion-controls [role=tab]{font-size:14px;}

/* Text labels make the settings entry discoverable without knowing Aa. */
body.reader-page .reader-header .reader-appearance{width:auto;max-width:135px;padding:8px 12px;font-family:inherit;font-size:13px;font-weight:650;line-height:1.5;white-space:normal;flex-shrink:0;}
@media(max-width:360px){body.reader-page .reader-header{flex-wrap:wrap;gap:10px;}body.reader-page .reader-header .reader-appearance{max-width:none;}}

/* Compact page-reader tools; the manuscript keeps its natural text size. */
.reader-page-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:10px;align-items:start;margin:0 0 12px}
.reader-page-toolbar>.reader-view-switch{align-self:start}
.reader-page-toolbar>.reader-view-switch button{flex:1;min-width:0;min-height:44px}
.reader-tools-disclosure,.reader-option-section{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:clip}
.reader-tools-disclosure>summary,.reader-option-section>summary{cursor:pointer;min-height:48px;padding:10px 14px;color:var(--ink);font-weight:650;font-size:13px;line-height:1.6;list-style-position:inside}
.reader-tools-disclosure>summary::marker,.reader-option-section>summary::marker{color:var(--green)}
.reader-tools-hint{display:block;margin-inline-start:15px;color:var(--muted);font-size:10px;font-weight:400}
.reader-tools-disclosure[open]{grid-column:1/-1}
.reader-tools-disclosure[open]>summary,.reader-option-section[open]>summary{border-bottom:1px solid var(--line)}
.reader-tools-body,.reader-option-body{padding:12px}
.reader-tools-body .reader-view-actions{flex-wrap:wrap;justify-content:flex-start;gap:8px}
.reader-tools-body [data-reading-plan-action]:empty{display:none}
.reader-reciter-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;margin-block:10px;background:var(--pale);color:var(--green);font-size:13px;font-weight:650;text-decoration:none}
.reader-option-section{margin-block:12px}
.reader-option-body .edition-picker{margin-top:0}
.reader-page-toolbar summary:focus-visible,.reader-option-section summary:focus-visible,.reader-reciter-link:focus-visible{outline:3px solid var(--gold-text);outline-offset:2px}
.reader-tools-body .reader-study-actions button{min-height:44px}
[dir="rtl"] :is(.reader-tools-disclosure,.reader-option-section,.reader-reciter-link){letter-spacing:normal}
@media(max-width:700px){
 .reader-page-toolbar{grid-template-columns:minmax(0,1fr);gap:7px}
 .reader-page-toolbar>.reader-view-switch{width:100%}
 .reader-tools-disclosure>summary{display:list-item;min-height:44px;padding:9px 12px}
 .reader-tools-hint{display:inline;margin-inline-start:8px;font-size:10px}
 .reader-tools-body .reader-study-actions{width:100%;justify-content:space-between}
 .reader-tools-body .reader-study-actions button{flex:1 1 max-content}
}

/* The chapter title keeps readable width beside three familiar touch controls. */
.reader-page-display .reader-appearance svg,.reader-fullpage-settings .reader-appearance svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
@media(max-width:600px){
 body.pages-reading.reader-focus header.reader-fullpage-bar{grid-template-columns:44px minmax(0,1fr) 92px;column-gap:5px;row-gap:4px;padding:5px 3px}
 body.pages-reading.reader-focus header.reader-fullpage-bar>div:not(.reader-fullpage-actions){overflow-wrap:normal;word-break:normal;min-width:0}
 body.pages-reading.reader-focus header.reader-fullpage-bar h1{overflow-wrap:normal;word-break:normal;font-size:15px;line-height:1.4}
 body.pages-reading.reader-focus header.reader-fullpage-bar .reader-fullpage-close,
 body.pages-reading.reader-focus header.reader-fullpage-bar #readerFullPageSettings>button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:8px;gap:0;border-radius:50%;flex:none}
 body.pages-reading.reader-focus header.reader-fullpage-bar #readerFullPageSettings{gap:4px}
 body.pages-reading.reader-focus header.reader-fullpage-bar .reader-fullpage-close>span:last-child,
 body.pages-reading.reader-focus header.reader-fullpage-bar .reader-listen-label,
 body.pages-reading.reader-focus header.reader-fullpage-bar .reader-appearance-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
}

/* Focus mode keeps installation available after exit without occupying the reading surface. */
body.reader-focus .pwa-mobile-install{display:none!important;}

/* Keep listening and following one's own voice together in each reading layout. */
.reader-tilawa{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .8rem;padding-block:.25rem;border-block:1px solid var(--line);margin-block:0 .65rem}
.reader-page-toolbar>.reader-tilawa{grid-column:1/-1;margin:0}
.reader-tilawa>strong{font-size:1rem;color:var(--ink);margin-inline-end:auto}
.reader-tilawa>button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;min-inline-size:44px;padding:.35rem .6rem;color:var(--green);border:0;border-radius:.45rem;background:transparent;font:inherit;font-size:.95rem;font-weight:650;cursor:pointer}
.reader-tilawa>button:hover{background:var(--pale)}
.reader-tilawa>button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
body.reader-focus .reader-tilawa{display:none}

/* Leave room between the selected-ayah rail and Arabic glyphs in card views. */
body.reader-page:not(.flow-reading) .verse-card:not(.hifdh-ayah){padding-inline:.45rem}
.reader-companion .companion-learning-return{padding:10px 20px 12px;border-block-end:1px solid var(--line);background:var(--panel)}
.reader-companion .companion-learning-return[hidden]{display:none}
.reader-companion .companion-learning-return .li-detail-overview{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin:0;padding:0;border:0;background:none}
.reader-companion .companion-learning-return a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--green);font:inherit;font-size:14px;font-weight:700;line-height:1.6;text-decoration:none;text-align:start}
.reader-companion .companion-learning-return .li-return-lesson{background:var(--dark);border-color:var(--dark);color:var(--on-accent,#fff);text-decoration:none}
.reader-companion .companion-learning-return .li-lesson-symbol{width:18px;height:18px;flex:none}
.reader-companion .companion-learning-return a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.dark .reader-companion .companion-learning-return .li-return-lesson{background:var(--green);border-color:var(--green);color:var(--on-accent,#fff)}
@media(max-width:600px){.reader-companion .companion-learning-return{padding:9px 13px 11px}.reader-companion .companion-learning-return a{flex:1;font-size:13px;padding:8px 10px}}

/* v98 reader appearance: preferences stay inside the existing options panel. */
#readerOptions .reader-appearance-panel{margin-block:10px 14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
#readerOptions .reader-appearance-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;margin-block-end:12px}
#readerOptions .reader-appearance-heading h3{margin:0;font:inherit;font-size:17px;font-weight:700;color:var(--ink)}
#readerOptions .reader-appearance-current{font-size:12px;color:var(--muted);line-height:1.6}
#readerOptions .reader-appearance-current strong{color:var(--ink);font-weight:600}
#readerOptions .reader-appearance-choice{display:flex;align-items:center;gap:12px;min-width:0;border:0;margin:10px 0;padding:0}
#readerOptions .reader-appearance-choice legend{float:inline-start;min-width:70px;margin:0;padding:0;font-size:14px;color:var(--ink)}
#readerOptions .reader-appearance-choice>div{display:flex;flex:1;gap:6px;min-width:0}
#readerOptions .reader-appearance-choice button{flex:1;min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--panel);color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
#readerOptions .reader-appearance-choice button[aria-pressed="true"]{background:var(--pale);border-color:var(--green);box-shadow:inset 0 -2px var(--green);font-weight:700}
#readerOptions .reader-appearance-choice button:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}
#readerOptions .reader-appearance-status{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0}
#readerOptions .reader-appearance-status:empty{display:none}
#readerOptions .reader-size-options{margin-block:12px 0;border-radius:9px;background:transparent}
#readerOptions .reader-size-options>summary{min-height:44px;padding:9px 12px;font-size:14px;font-weight:500}
#readerOptions .reader-font-sliders{display:grid;grid-template-columns:1fr;gap:15px;margin:0;padding:0}
#readerOptions .reader-font-sliders label{min-width:0}
#readerOptions .reader-font-sliders input{width:100%;min-height:44px;cursor:pointer}
#readerOptions .reader-study-layout{border:0;padding:0;margin:14px 0}
#readerOptions .reader-study-layout legend{font-size:14px;font-weight:650;color:var(--ink);margin-block-end:8px}
#readerOptions .reader-study-layout .layout-choice{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
#readerOptions .reader-option-section>summary,#readerOptions .reader-audio-options>summary{min-height:44px;font-size:14px}
#readerOptions .reader-context-strip{margin:0}
@media(max-width:480px){#readerOptions .reader-appearance-panel{padding:12px}#readerOptions .reader-appearance-choice{display:block}#readerOptions .reader-appearance-choice legend{float:none;width:100%;margin-block-end:7px}#readerOptions .reader-appearance-choice button{padding-inline:8px}#readerOptions .reader-study-layout .layout-choice{grid-template-columns:1fr}}

/* v125: one closed Options surface, with reading and listening visible. */
body .reader-header{align-items:center;gap:12px;margin-bottom:12px}
.reader-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body .reader-header-listen{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font-size:14px;line-height:1.4;font-weight:650}
body .reader-options[hidden]{display:none!important}
body .reader-options .reader-page-toolbar{display:grid!important}
body .reader-options .reader-tilawa{display:none}
body .reader-options .reader-tools-disclosure{width:100%}
body .reader-options .reader-view-bar{margin:8px 0 12px}
body .reader-options .reader-view-switch{max-width:100%}
body .reader-options .meaning-reading-bar{margin-block:10px}
body.pages-reading .reader-fullpage-bar #readerFullPageSettings{display:flex!important;align-items:center;gap:6px}
body.pages-reading.reader-focus header.reader-fullpage-bar .reader-fullpage-actions{display:flex;justify-content:flex-end}
body.pages-reading.reader-focus header.reader-fullpage-bar #readerFullPageSettings{grid-column:auto;grid-row:auto}
body.pages-reading.reader-page-quiet .mushaf-page-toolbar{display:none!important}
body.pages-reading .reader-options{max-width:760px;margin-inline:auto}
body.pages-reading.reader-focus .reader-options .reader-page-toolbar{display:grid!important}
body.pages-reading.reader-focus .reader-options .reader-appearance{display:inline-flex!important}
@media(max-width:700px){
 body .reader-header{flex-direction:row;align-items:center;flex-wrap:wrap}
 body .reader-header-actions{margin-inline-start:auto}
 body .reader-page-display{width:100%;justify-content:flex-start;gap:6px}
 body .reader-header-listen,body .reader-header-actions .reader-appearance{flex:none;min-width:72px}
 body.pages-reading.reader-focus .reader-fullpage-settings .reader-appearance{padding-inline:10px}
 body.pages-reading.reader-focus .reader-fullpage-settings .reader-header-listen{padding-inline:8px;min-width:44px}
}

/* One compact control language in the ordinary and full-page Quran headers. */
body.reader-page #content .reader-header{gap:8px;margin-bottom:10px}
body.reader-page #content .reader-surah-select{flex:1 1 140px;min-width:0;gap:8px;text-align:start}
body.reader-page #content .reader-surah-select>span:last-child{min-width:0}
body.reader-page #content .reader-surah-select h1{overflow-wrap:normal;word-break:normal;line-height:1.35}
body.reader-page #content :is(.reader-header-actions,.reader-page-display){display:flex;align-items:center;gap:6px;flex:0 0 auto;flex-wrap:nowrap;width:auto;margin-inline-start:auto}
body.reader-page #content .reader-control-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;padding:10px;border:1px solid var(--line);border-radius:50%;line-height:1;color:var(--green);background:var(--panel);box-sizing:border-box}
body.reader-page #content .reader-header-listen{color:var(--on-accent,#fff);background:var(--green);border-color:var(--green)}
body.reader-page #content .reader-control-icon svg{display:block;width:22px;height:22px;min-width:22px;flex:none}
body.reader-page #content .reader-control-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.reader-page #content .reader-control-icon:focus-visible{outline:3px solid var(--focus-ring,var(--gold));outline-offset:3px}
body.reader-page #readerLocation{display:flex;align-items:center;justify-content:flex-start;gap:6px 12px;flex-wrap:wrap;margin-block:0 10px;font-size:12px;line-height:1.5}
body.reader-page #readerLocation>span{white-space:nowrap}
body.reader-page #readerLocation>button{min-height:44px;margin-inline-start:auto;padding:6px 8px;font:inherit;white-space:nowrap}


/* /word-audio.css */
.word-audio{margin-block:12px;min-width:0;color:var(--ink,#193d32)}.word-audio-reading{text-align:center;padding:14px;background:var(--pale,#eef4e9);border:1px solid var(--line,#dce5dc);border-radius:12px}.word-audio-reading>span{font:600 12px var(--font-ui,sans-serif);color:var(--muted,#637b6d)}.word-audio .word-audio-reading>p[lang="ar"]{font:400 38px/2 var(--arabic,serif);margin:8px 0;overflow-wrap:anywhere}.word-audio-navigation{display:flex;gap:8px;margin-block:10px}.word-audio-navigation button{flex:1}.word-audio button{min-height:44px;padding:10px 13px;border:1px solid var(--line,#dce5dc);border-radius:9px;background:var(--panel,#fffefa);color:inherit;font:600 12px var(--font-ui,sans-serif)}.word-audio button:disabled{opacity:.5;cursor:default}.word-audio button:focus-visible{outline:3px solid #88d5b5;outline-offset:3px}.word-audio-controls button{display:inline-flex;align-items:center;gap:8px}.word-audio-controls svg{width:19px;height:19px;flex:none}.word-audio-status{font-size:12px;line-height:1.7;margin:8px 0;color:var(--muted,#637b6d)}.word-audio-status:empty{display:none}.word-audio-credit{display:block;font-size:11px;line-height:1.7;color:var(--muted,#637b6d);margin-block:6px}.word-audio p.word-audio-joined[lang="ar"]{font:400 25px/2 var(--arabic,serif);margin-block:8px}.cr-word-listening{margin-block:15px;border-block-start:1px solid var(--line,#dce5dc);padding-top:12px}.cr-word-listening>summary{cursor:pointer;min-height:44px;font-weight:600}
.word-audio .word-audio-controls button,.word-audio .word-audio-navigation button{width:44px;min-width:44px;height:44px;padding:0;flex:none;display:inline-flex;align-items:center;justify-content:center}
.word-audio-navigation{justify-content:center}
.word-audio-controls{display:flex;align-items:center;gap:8px}
.word-audio-navigation svg,.word-audio-controls svg{width:22px;height:22px}
.word-audio .word-audio-credit{font-size:.8125rem}


/* /word-by-word.css */
/* A readable English gloss belongs to its Arabic word, never to the next line. */
.verse-ar.wbw-active{line-height:1.8!important;word-spacing:normal;overflow-wrap:normal;}
.verse-ar.wbw-active .reader-word.wbw-pair{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;vertical-align:top;gap:.2rem;padding:.3rem .35rem .45rem;margin:.25rem .08rem;max-width:100%;min-width:44px;min-height:44px;white-space:normal;border-radius:10px;border-bottom:1px solid color-mix(in srgb,var(--green,#285b50) 16%,transparent);}
.verse-ar.wbw-active .reader-word.wbw-pair:hover{background:var(--pale,#eaf0eb);}
.wbw-gloss,.wbw-transliteration{display:block;font-family:var(--font-ui,Arial,sans-serif);font-size:var(--english-size,14px);font-weight:450;line-height:1.4;letter-spacing:normal;text-align:center;color:var(--ink,#243b36);max-width:11rem;overflow-wrap:break-word;}
.wbw-transliteration{font-size:var(--translit-size,15px);font-style:italic;color:var(--muted,#586761);}
.wbw-missing{font-size:12px;color:var(--muted,#586761);font-style:italic;}
.wbw-source-note{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .8rem;margin:.6rem 0 .9rem;font-size:12px;line-height:1.5;color:var(--muted,#586761);}
.wbw-source-note>span{font-weight:650;}
.wbw-source-note small{flex-basis:100%;font-size:inherit;}
.wbw-source-note a{color:var(--green,#285b50);text-decoration:underline;text-underline-offset:3px;}
.wbw-retry{font:inherit;font-weight:650;min-height:44px;padding:.5rem .75rem;border:1px solid var(--line,#d7dfd8);border-radius:9px;background:var(--paper,#fffdf7);color:var(--green,#285b50);}
@media(max-width:380px){.verse-ar.wbw-active .reader-word.wbw-pair{padding-inline:.2rem}.wbw-gloss,.wbw-transliteration{max-width:8.5rem}}


/* /mushaf-pages.css */
/* v28: continuous canonical pages, with natural document scrolling. */
body.pages-reading .reader-header{margin-bottom:8px;}
body.pages-reading .reader-view-bar{margin-bottom:12px;}
.mushaf-pages .mushaf-page-text{font-size:var(--mushaf-page-font-size,30px);}
.mushaf-pages button:focus-visible{outline:2px solid var(--green);outline-offset:2px;}
@media(max-width:760px){
 body.pages-reading{padding-bottom:76px!important;}
 body.pages-reading .topbar{display:flex!important;flex-wrap:nowrap!important;min-height:58px!important;height:58px!important;padding-block:5px!important;}
 body.pages-reading .topbar .top-brand{flex:1;min-width:0;}
 body.pages-reading .topbar .top-right{width:auto!important;flex:none;}
 body.pages-reading .topbar .mushaf-explore-button{display:none!important;}
 body.pages-reading.reader-focus .topbar{display:none!important;}
 body.pages-reading .topbar .profile-control{display:none!important;}
 body.pages-reading .topbar .mushaf-beta-badge{display:none!important;}
 body.pages-reading .layout{padding-top:6px!important;padding-inline:12px!important;}
 body.pages-reading .reader-header h1{font-size:21px;}
 body.pages-reading .reader-surah-number{height:34px;width:30px;}
 body.pages-reading .reader-surah-select small{font-size:11px;}
 .mushaf-pages .mushaf-page-text{font-size:var(--mushaf-page-font-size,30px);line-height:2.1;}
 .mushaf-pages .mushaf-paper[data-opening-page="true"] .mushaf-page-text{font-size:var(--mushaf-page-font-size,30px);line-height:2;}
}

/* One steady navigation strip; secondary tools open only when requested. */
.mushaf-pages{--page-header-offset:8px;--page-toolbar-height:99px}
.mushaf-pages .mushaf-page-meta{gap:12px;line-height:1.7;margin-bottom:8px;padding-inline:4px}
.mushaf-page-toolbar{position:sticky;top:var(--page-header-offset);z-index:12;display:grid;grid-template-columns:minmax(0,1fr) minmax(94px,1fr) minmax(0,1fr);align-items:center;gap:0 8px;margin:0 0 14px;padding:6px 10px 0;border:1px solid var(--paper-rule,var(--line));border-radius:15px;background:var(--panel);box-shadow:0 5px 18px #1025220c;font-family:var(--font-ui)}
.mushaf-page-toolbar>button,.mushaf-quick-jump>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 10px;font:inherit;font-size:13px;font-weight:650;color:var(--green);background:transparent;border:0;border-radius:9px;cursor:pointer;white-space:nowrap}
.mushaf-page-toolbar>button:disabled{opacity:.4;cursor:default}
.mushaf-page-toolbar>button:hover:not(:disabled),.mushaf-quick-jump>summary:hover{background:var(--pale)}
.mushaf-quick-jump>summary{flex-direction:column;gap:0;color:var(--ink);line-height:1.45;list-style:none}
.mushaf-quick-jump>summary>span{font-size:10px;font-weight:500;color:var(--muted)}
.mushaf-quick-jump>summary bdi{font-size:13px;direction:ltr;unicode-bidi:isolate}
.mushaf-quick-jump>summary::-webkit-details-marker,.mushaf-page-tools>summary::-webkit-details-marker{display:none}
.mushaf-quick-jump[open]>summary,.mushaf-page-tools[open]>summary{background:var(--pale)}
.mushaf-page-jump-panel,.mushaf-page-tools-body{position:absolute;top:calc(100% + 8px);z-index:13;max-height:var(--page-panel-max-height,calc(100dvh - var(--page-header-offset) - var(--page-toolbar-height) - 28px));overflow-y:auto;overscroll-behavior:contain;padding:16px;background:var(--panel);border:1px solid var(--paper-rule,var(--line));border-radius:14px;box-shadow:0 12px 32px #10252224}
.mushaf-page-jump-panel{left:50%;transform:translateX(-50%);width:min(290px,calc(100vw - 48px));box-sizing:border-box}
.mushaf-quick-jump .mushaf-page-jump{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0}
.mushaf-quick-jump label{grid-column:1/-1;text-align:start;font-size:13px;color:var(--muted)}
.mushaf-quick-jump input{box-sizing:border-box;min-width:0;width:100%;min-height:46px;color:var(--ink);background:var(--bg);font:inherit;font-size:16px;direction:ltr;unicode-bidi:isolate}
.mushaf-quick-jump [type=submit]{min-width:54px;min-height:46px;background:var(--green);color:var(--on-accent,#fff);font:inherit;border:0;border-radius:9px;cursor:pointer}
.mushaf-jump-error{grid-column:1/-1;margin:0;font-size:12px;line-height:1.7;color:var(--ink);border-inline-start:3px solid var(--gold-text);padding-inline-start:9px}
.mushaf-jump-error[hidden]{display:none}
.mushaf-quick-jump input[aria-invalid=true]{border-color:var(--gold-text)}
.mushaf-page-tools{grid-column:1/-1;min-width:0;margin-top:5px;border-top:1px solid var(--line)}
.mushaf-page-tools>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:10px;min-height:38px;padding:3px 5px;list-style:none;font-size:11px;color:var(--muted);cursor:pointer;border-radius:0 0 10px 10px;line-height:1.5}
.mushaf-tools-label{color:var(--ink);font-weight:650;display:flex;gap:7px;align-items:center;min-width:0}
.mushaf-tools-label bdi{direction:ltr;unicode-bidi:isolate}
.mushaf-panel-chevron{font-size:16px;text-align:center}
.mushaf-page-tools-body{inset-inline:0}
.mushaf-pages .mushaf-page-selection{display:block;padding:0;text-align:start}
.mushaf-pages .mushaf-page-selection>span{gap:9px;margin-bottom:13px;color:var(--ink);font-size:13px;line-height:1.6}
.mushaf-pages .mushaf-page-selection>span small{color:var(--muted);font-weight:400}
.mushaf-pages .mushaf-page-selection>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px}
.mushaf-pages .mushaf-page-selection button{min-height:44px;font-size:12px;padding:9px 10px;line-height:1.6;justify-content:center}
.mushaf-pages .mushaf-page-selection .reader-study-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.mushaf-page-toolbar .mushaf-panel-close{display:block;min-height:40px;margin:12px auto 0;padding:7px 12px;border:0;background:transparent;border-radius:8px;color:var(--green);font:inherit;font-size:12px;cursor:pointer}
.mushaf-page-toolbar .mushaf-panel-close:hover{background:var(--pale)}
.mushaf-paper{scroll-margin-top:calc(var(--page-header-offset) + var(--page-toolbar-height) + 14px);touch-action:pan-y pinch-zoom}
.mushaf-page-text{overflow-wrap:normal;word-break:normal}
.mushaf-page-toolbar :focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:2px}
.mushaf-pages .mushaf-page-source{max-width:none;margin:16px 0 0;padding:0;border:1px solid var(--line);border-radius:13px;text-align:start;font-size:13px;line-height:1.85;background:var(--panel)}
.mushaf-page-source>summary{padding:12px 16px;min-height:24px;color:var(--green);font-weight:600;cursor:pointer}
.mushaf-page-help{padding:0 16px 12px}
.mushaf-page-help p{margin:0 0 13px}
.mushaf-page-help p:last-child{margin-bottom:0}
@media(max-width:760px){
 .mushaf-page-toolbar{gap:0 3px;padding:5px 6px 0;border-radius:12px}
 .mushaf-page-toolbar>button,.mushaf-quick-jump>summary{padding:6px;font-size:12px}
 .mushaf-page-tools>summary{font-size:11px;gap:6px}
 .mushaf-page-tools-body{padding:13px}
 .mushaf-pages .mushaf-page-selection>div{grid-template-columns:minmax(0,1fr)}
 .mushaf-page-source>summary{padding:11px 13px}
 .mushaf-page-help{padding:0 13px 12px}
}
@media(prefers-reduced-motion:reduce){.mushaf-paper{animation:none!important;transition:none!important}}

/* Keep numeric components in source order even with Arabic-Indic digits. */
.mushaf-quick-jump>summary .mushaf-page-fraction{display:inline-flex;direction:ltr;unicode-bidi:isolate;align-items:center;gap:4px}
.mushaf-tools-label bdi,.mushaf-page-selection bdi{direction:ltr;unicode-bidi:isolate-override}

/* Full-page reading keeps canonical page boundaries and natural text size.
   It removes surrounding app chrome, never Quran text or vertical scrolling. */
.reader-fullpage-bar[hidden]{display:none!important}
.reader-fullpage-bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:10px 0;margin:0 0 14px;border-bottom:1px solid var(--line);background:var(--bg);font-family:var(--font-ui)}
.reader-fullpage-bar>div{text-align:center;min-width:0}
.reader-fullpage-bar h1{margin:0;font-size:20px;line-height:1.6;font-weight:750;color:var(--ink)}
.reader-fullpage-bar small{font-size:12px;line-height:1.5;color:var(--muted)}
.reader-fullpage-close{display:flex;align-items:center;gap:8px;min-height:44px;max-width:12em;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:inherit;font-size:14px;font-weight:650;line-height:1.4;cursor:pointer}
.reader-fullpage-close>span:first-child{font-size:24px;font-weight:400;line-height:1}
.reader-fullpage-close:hover{border-color:var(--green);background:var(--pale)}
.reader-page-display{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.reader-fullpage-open{display:inline-flex;gap:7px;align-items:center;min-height:44px}
.reader-fullpage-open svg{width:18px;height:18px;flex:none}
.reader-fullpage-bar button:focus-visible,.reader-fullpage-open:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:3px}
body.pages-reading.reader-focus .reader-header,body.pages-reading.reader-focus .reader-page-toolbar,body.pages-reading.reader-focus .ayah-tool-shelf,body.pages-reading.reader-focus .reader-focus-exit,body.pages-reading.reader-focus .calendar-return-bar,body.pages-reading.reader-focus .site-support,body.pages-reading.reader-focus .aa-launch{display:none!important}
body.pages-reading.reader-focus .layout{max-width:960px;margin-inline:auto;padding-top:0!important}
body.pages-reading.reader-focus #content>.li-detour-navigation,body.pages-reading.reader-focus #content>.li-return,body.pages-reading.reader-focus #content>.pa-reader-back{display:none!important}
body.pages-reading.reader-focus .reader-fullpage-bar .reader-appearance{min-height:44px;font-size:14px;white-space:normal;line-height:1.5}
.mushaf-pages .mushaf-page-selection .mushaf-study-link{grid-column:1/-1;justify-content:space-between;border-top:1px solid var(--line);border-radius:0;margin-top:3px;font-weight:650}
@media(max-width:760px){
 body.pages-reading.reader-focus{padding-bottom:12px!important}
 .reader-fullpage-bar{gap:8px;padding-block:8px;margin-bottom:10px}
 .reader-fullpage-bar h1{font-size:16px}
 .reader-fullpage-bar small{font-size:12px}
 .reader-fullpage-close{max-width:9em;padding:7px 8px;gap:5px;font-size:14px}
 .reader-fullpage-bar .reader-appearance{max-width:8em;padding-inline:7px}
 .reader-page-display{gap:5px}
}

/* Familiar fixed lines: the paper, rather than surrounding cards, fills reading. */
.mushaf-pages[data-page-fit=true] .mushaf-paper{width:min(100%,var(--mushaf-fit-width,680px));height:var(--mushaf-fit-height,760px);min-height:0;margin-inline:auto;padding:18px 22px 12px;display:flex;flex-direction:column;gap:8px;overflow:visible;border-radius:3px;box-shadow:0 4px 18px #142d2310}
.mushaf-pages[data-page-fit=true] .mushaf-page-text{flex:1;min-height:0;display:grid;grid-template-rows:repeat(15,minmax(0,1fr));font-family:var(--mushaf-page-font);font-size:var(--mushaf-fit-font,28px);line-height:1.5;text-align:center;overflow:visible}
.mushaf-pages[data-page-fit=true] .mushaf-paper[data-opening-page=true] .mushaf-page-text{grid-template-rows:repeat(8,minmax(0,1fr));font-size:var(--mushaf-fit-font,30px);line-height:1.5;margin-block:8% 12%}
.mushaf-line{display:flex;align-items:center;min-width:0;min-height:0;direction:rtl}
.mushaf-line-content{display:flex;align-items:baseline;justify-content:space-between;width:100%;white-space:nowrap;line-height:1.65;direction:rtl}
.mushaf-pages[data-page-fit=true] .mushaf-line .mushaf-page-ayah{display:contents}
.mushaf-line .reader-word{flex:none;min-width:0;min-height:0;padding:0;border:0;border-radius:3px;font:inherit;line-height:inherit;letter-spacing:normal;white-space:nowrap}
.mushaf-line .mushaf-ayah-marker{flex:none;min-width:1.35em;min-height:0;height:1.35em;width:auto;padding:0 .12em;margin:0 .06em;font-size:.56em;line-height:1.2;vertical-align:baseline}
/* The printed ayah marker carries selection. Timed words receive one flat ink wash. */
.mushaf-line.is-centered .mushaf-line-content{justify-content:center;gap:.22em}
.mushaf-heading-line .mushaf-page-surah{width:100%;margin:0;padding:0 8px;font-size:.8em;line-height:1.5;border-block:1px solid var(--paper-rule,var(--line));background:transparent}
.mushaf-basmala-line{justify-content:center}
.mushaf-basmala-line .mushaf-page-basmala{margin:0;padding:0;font:inherit;line-height:1.6;white-space:nowrap}
.mushaf-pages[data-page-fit=true] .mushaf-paper-footer{flex:none;min-height:18px;margin:0;padding:0;border:0;font-size:12px;line-height:18px}
.mushaf-pages[data-page-fit=true] .mushaf-page-toolbar{grid-template-columns:44px minmax(75px,1fr) 44px minmax(76px,1fr) 44px;gap:4px;max-width:var(--mushaf-fit-width,680px);margin:0 auto 8px;padding:3px 5px;border-radius:9px;box-shadow:none}
.mushaf-pages[data-page-fit=true] .mushaf-page-toolbar>[data-mushaf-turn]{font-size:0;gap:0;padding:4px}
.mushaf-pages[data-page-fit=true] .mushaf-page-toolbar>[data-mushaf-turn]>span{font-size:21px}
.mushaf-pages[data-page-fit=true] .mushaf-page-tools{grid-column:auto;margin:0;border:0}
.mushaf-pages[data-page-fit=true] .mushaf-page-tools>summary{display:flex;justify-content:center;min-height:44px;padding:4px;font-size:11px;gap:4px;border-radius:6px}
.mushaf-pages[data-page-fit=true] .mushaf-page-tools>summary>span:nth-child(2){display:none}
.mushaf-pages[data-page-fit=true] .mushaf-tools-label{flex-direction:column;gap:0;line-height:1.45}
.mushaf-pages[data-page-fit=true] .mushaf-tools-label bdi{font-size:12px}
.mushaf-size-toggle{font-size:13px!important;padding:4px!important;grid-column:auto}
.mushaf-pages[data-page-fit=false] .mushaf-size-toggle{grid-column:3;grid-row:2;z-index:1;margin-top:4px;background:var(--pale)}
.mushaf-pages[data-page-fit=false] .mushaf-page-tools>summary{padding-inline-end:80px}
.mushaf-pages[data-page-fit=true] .mushaf-page-source{max-width:var(--mushaf-fit-width,680px);margin:8px auto 0;border:0;background:transparent;font-size:12px}
.mushaf-pages[data-page-fit=true] .mushaf-page-source>summary{min-height:24px;padding:5px 8px;text-align:center}
body.pages-reading.reader-focus .layout{max-width:none;padding-inline:16px!important;padding-bottom:12px!important}
body.pages-reading.reader-focus .reader-fullpage-bar{max-width:760px;margin:0 auto 6px;padding-block:6px;min-height:58px;border:0}
body.pages-reading.reader-focus .reader-fullpage-bar h1{font-size:18px;line-height:1.45}
body.pages-reading.reader-focus .reader-fullpage-bar small{font-size:11px}
body.pages-reading.reader-focus .reader-fullpage-close{min-height:42px;padding:6px 9px;font-size:12px;max-width:9em}
body.pages-reading.reader-focus .reader-fullpage-bar .reader-appearance{font-size:12px;min-height:42px}
body.pages-reading.reader-focus .mushaf-page-meta{display:none}
@media(max-width:600px){
 body.pages-reading.reader-focus .layout{padding-inline:4px!important}
 body.pages-reading.reader-focus .reader-fullpage-bar{padding-inline:5px;gap:6px}
 .mushaf-pages[data-page-fit=true] .mushaf-paper{padding:12px 10px 8px;gap:5px}
 .mushaf-pages[data-page-fit=true] .mushaf-page-toolbar{grid-template-columns:40px minmax(62px,1fr) 40px minmax(65px,1fr) 40px;gap:1px;padding-inline:3px}
 .mushaf-pages[data-page-fit=true] .mushaf-page-toolbar>button{min-height:42px}
 .mushaf-pages[data-page-fit=true] .mushaf-page-tools>summary{gap:2px}
}

.mushaf-fit-scroll-hint{display:none}
.mushaf-pages[data-page-fit=true][data-page-scroll=true] .mushaf-fit-scroll-hint{display:block;margin:5px auto 9px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}

/* v101: the reading surface fills the viewport; controls are an optional layer. */
.reader-fullpage-actions{display:flex;align-items:center;gap:6px}
.reader-fullpage-settings{display:contents}
.reader-page-tools-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:5px 10px;border:0;border-radius:8px;background:transparent;color:var(--green);font:600 12px/1.4 var(--font-ui);cursor:pointer}
.reader-page-tools-toggle svg{width:19px;height:19px;flex:none}
.reader-page-tools-toggle:hover{background:var(--pale)}
body.pages-reading.reader-focus{background:var(--reading-paper,var(--panel))}
body.pages-reading.reader-focus .layout{width:100%;max-width:none;margin:0;padding:0 8px 0!important}
body.pages-reading.reader-focus #content{max-width:none;margin:0}
body.pages-reading.reader-focus .reader-fullpage-bar{max-width:none;min-height:48px;box-sizing:border-box;margin:0;padding:2px 6px;gap:8px;background:var(--reading-paper,var(--panel));border-bottom:1px solid color-mix(in srgb,var(--paper-rule,var(--line)) 55%,transparent)}
body.pages-reading.reader-focus .reader-fullpage-bar h1{font-size:15px;line-height:1.4}
body.pages-reading.reader-focus .reader-fullpage-bar small{display:block;font-size:10px;line-height:1.3}
body.pages-reading.reader-focus .reader-fullpage-close{border:0;background:transparent;min-height:44px;padding:5px 9px;max-width:none;font-size:12px}
body.pages-reading.reader-focus .reader-fullpage-close:hover{background:var(--pale)}
body.pages-reading.reader-focus .mushaf-page-toolbar{max-width:680px;margin:4px auto;top:var(--page-header-offset);border-color:color-mix(in srgb,var(--paper-rule,var(--line)) 65%,transparent);background:var(--reading-paper,var(--panel))}
.mushaf-leaves{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:20px}
.mushaf-pages[data-spread=true] .mushaf-leaves{grid-template-columns:repeat(2,minmax(0,1fr));position:relative}
.mushaf-pages[data-spread=true] .mushaf-leaves::after{content:"";position:absolute;inset-block:16px;inset-inline-start:50%;width:1px;background:color-mix(in srgb,var(--paper-rule,var(--line)) 65%,transparent);pointer-events:none}
body.pages-reading.reader-focus .mushaf-pages[data-page-fit=true] .mushaf-paper{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:10px 14px 6px;gap:4px;border:0;border-radius:0;background:var(--reading-paper,var(--panel));box-shadow:none}
body.pages-reading.reader-focus .mushaf-paper::before{display:none}
body.pages-reading.reader-focus .mushaf-pages[data-page-fit=true] .mushaf-paper-footer{min-height:20px;line-height:20px;font-size:11px;gap:18px}
body.pages-reading.reader-focus .mushaf-pages[data-page-fit=true] .mushaf-paper-footer>span{font-size:10px;opacity:.65}
body.pages-reading.reader-focus .mushaf-page-source{max-width:680px;margin:4px auto;background:transparent}
body.pages-reading.reader-focus .mushaf-pages[data-page-fit=false] .mushaf-paper{max-width:900px;margin-inline:auto;box-shadow:none}
body.pages-reading.reader-page-quiet .reader-fullpage-settings,
body.pages-reading.reader-page-quiet .mushaf-page-toolbar,
body.pages-reading.reader-page-quiet .mushaf-page-source{display:none!important}
.mushaf-spread-choice{margin:16px 0 4px;padding-top:12px;border-top:1px solid var(--line)}
.mushaf-spread-choice button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--green);padding:8px 10px;font:600 13px/1.5 var(--font-ui);text-align:start;cursor:pointer}
.mushaf-spread-choice button span{font-size:22px}
.mushaf-spread-choice small{display:block;margin-top:6px;font-size:11px;line-height:1.6;color:var(--muted)}
@media(max-width:600px){
 body.pages-reading.reader-focus .layout{padding-inline:2px!important}
 body.pages-reading.reader-focus .reader-fullpage-bar{padding-inline:3px;gap:3px}
 body.pages-reading.reader-focus .mushaf-pages[data-page-fit=true] .mushaf-paper{padding:6px 6px 4px;gap:3px}
 body.pages-reading.reader-focus .reader-fullpage-bar h1{font-size:14px}
 .reader-page-tools-toggle{font-size:11px;padding-inline:6px;gap:4px}
 body.pages-reading.reader-focus .reader-fullpage-bar .reader-appearance{max-width:6.5em;font-size:11px;line-height:1.3;padding-inline:5px}
 body.pages-reading.reader-focus .mushaf-page-toolbar{margin-block:3px}
}
body.pages-reading.reader-focus{padding-bottom:0!important}
body.pages-reading.reader-focus [data-site-support]{display:none!important}
/* An announcing status must not create a second screen below the page. */
.mushaf-pages{position:relative}
.mushaf-pages .mushaf-page-status{position:absolute!important;inset-inline-start:0;bottom:0;width:1px!important;height:1px!important;min-height:0!important;margin:-1px!important;padding:0!important;border:0!important;line-height:1!important;overflow:hidden!important;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}

/* v105: the page number is also a quiet, direct route to page navigation. */
.mushaf-pages .mushaf-paper-footer,.mushaf-pages[data-page-fit=true] .mushaf-paper-footer,
body.pages-reading.reader-focus .mushaf-pages[data-page-fit=true] .mushaf-paper-footer{min-height:44px;line-height:1.4}
.mushaf-pages .mushaf-footer-page{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:100px;min-height:44px;padding:4px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:500 11px/1.4 var(--font-ui);cursor:pointer;touch-action:manipulation}
.mushaf-pages .mushaf-footer-page b{color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
.mushaf-pages .mushaf-footer-page:hover{background:var(--pale);color:var(--green)}
.mushaf-pages .mushaf-footer-page:focus-visible{outline:2px solid var(--focus-ring,var(--green));outline-offset:2px}
.reader-fullpage-open{font-weight:650;border-color:color-mix(in srgb,var(--green) 38%,var(--line))!important;color:var(--green)!important}
body.pages-reading.reader-focus .reader-fullpage-close{font-weight:650;white-space:nowrap;font-size:12px;padding-inline:7px}
/* Only the outgoing visual leaf moves. The new text page stays active. */
.mushaf-turn-stage{position:fixed!important;z-index:35;pointer-events:none!important;margin:0!important;padding:0!important;perspective:1400px;isolation:isolate;overflow:visible}
.mushaf-turn-stage .mushaf-paper{height:100%!important;width:100%!important;margin:0!important;box-sizing:border-box;backface-visibility:hidden;will-change:transform,opacity;box-shadow:0 5px 18px #142d2324!important}
.mushaf-turn-stage *{pointer-events:none!important}
@media(prefers-reduced-motion:reduce){.mushaf-turn-stage{display:none!important}}
@media(max-width:380px){body.pages-reading.reader-focus .reader-fullpage-close{font-size:11px;gap:4px;padding-inline:4px}.reader-fullpage-close>span:first-child{font-size:20px}}
@media(max-width:600px){
 body.pages-reading.reader-focus .reader-fullpage-actions{display:contents}
 body.pages-reading.reader-focus .reader-fullpage-settings{display:flex;grid-column:1/-1;grid-row:2;justify-content:center;min-width:0}
 body.pages-reading.reader-focus .reader-fullpage-settings .reader-appearance{max-width:none;min-height:44px;padding-inline:14px}
 body.pages-reading.reader-focus .reader-page-tools-toggle{grid-column:3;grid-row:1}
 body.pages-reading.reader-focus .reader-fullpage-bar>div:not(.reader-fullpage-actions){grid-column:2;grid-row:1;overflow-wrap:anywhere}
 body.pages-reading.reader-focus .reader-fullpage-close{grid-column:1;grid-row:1}
}

/* v109: destinations are one step away, and quiet reading keeps page turns. */
.mushaf-destination-menus{display:grid;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.mushaf-destination-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin:0}
.mushaf-destination-form select{min-width:0;width:100%;min-height:44px;padding:8px 5px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px}
.mushaf-destination-form.mushaf-ayah-destination{grid-template-columns:minmax(0,1fr) 56px auto;gap:6px;align-items:end}
.mushaf-ayah-destination .mushaf-destination-surah-label{grid-column:1;grid-row:1}
.mushaf-ayah-destination .mushaf-destination-ayah-label{grid-column:2/-1;grid-row:1}
.mushaf-destination-ayah-label bdi{font-size:11px;white-space:nowrap}
.mushaf-ayah-destination>:is(select,.choice-trigger,.choice-inline){grid-column:1;grid-row:2;min-width:0;max-width:100%;font-size:13px}
.mushaf-ayah-destination>#mushafDestinationAyah{grid-column:2;grid-row:2;padding-inline:5px;text-align:center}
.mushaf-ayah-destination>button[type=submit]{grid-column:3;grid-row:2}
.mushaf-ayah-destination>.mushaf-jump-error{grid-column:1/-1}
.mushaf-pages .mushaf-paper-footer{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;width:100%;gap:6px;direction:ltr}
.mushaf-pages .mushaf-footer-page{justify-self:center}
.mushaf-pages .mushaf-footer-turn{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px;border:0;border-radius:8px;background:transparent;color:var(--green);font:500 22px/1 var(--font-ui);cursor:pointer;touch-action:manipulation}
.mushaf-pages .mushaf-footer-turn:hover:not(:disabled){background:var(--pale)}
.mushaf-pages .mushaf-footer-turn:disabled{opacity:.25;cursor:default}

/* v114: one clear entry and a persistent, recognisable way back. */
body.pages-reading:not(.reader-focus) .reader-header{align-items:center;flex-wrap:wrap;gap:12px 16px}
body.pages-reading:not(.reader-focus) .reader-surah-select{flex:1 1 13rem;min-width:0}
body.pages-reading .reader-page-display{gap:8px}
body.pages-reading .reader-fullpage-open{justify-content:center;min-height:46px;min-width:0;padding:10px 15px;border:1px solid var(--green)!important;border-radius:12px;background:var(--green);color:var(--on-accent,#fff)!important;font-size:14px;font-weight:700;line-height:1.4;white-space:normal;text-align:center}
body.pages-reading .reader-fullpage-open svg{width:19px;height:19px}
body.pages-reading .reader-fullpage-open:hover{background:color-mix(in srgb,var(--green) 88%,var(--ink))}
body.pages-reading.reader-focus .reader-fullpage-bar{min-height:56px;padding:5px 6px;gap:8px}
body.pages-reading.reader-focus .reader-fullpage-bar small{display:none}
body.pages-reading.reader-focus .reader-fullpage-close{min-height:44px;min-width:44px;max-width:none;padding:7px 10px;gap:6px;border:1px solid var(--green);border-radius:999px;background:var(--pale);color:var(--green);font-size:14px;font-weight:700;line-height:1.35;white-space:normal;text-align:start}
body.pages-reading.reader-focus .reader-fullpage-close>span:first-child{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:20px;font-size:22px;line-height:1}
body.pages-reading.reader-focus .reader-fullpage-close:hover{background:var(--green);color:var(--on-accent,#fff)}
@media(max-width:600px){
 body.pages-reading:not(.reader-focus) .reader-header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 body.pages-reading:not(.reader-focus) .reader-page-display{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;width:100%}
 body.pages-reading .reader-fullpage-open{padding-inline:12px}
 body.pages-reading .reader-page-display .reader-appearance{min-width:0;padding-inline:10px;font-size:13px;white-space:normal}
}
@media(max-width:380px){
 body.pages-reading.reader-focus .reader-fullpage-bar{padding-inline:3px;gap:5px}
 body.pages-reading.reader-focus .reader-fullpage-close{padding-inline:7px;font-size:13px}
}
@media(forced-colors:active){
 body.pages-reading .reader-fullpage-open,body.pages-reading.reader-focus .reader-fullpage-close{border-color:ButtonText!important;background:ButtonFace;color:ButtonText!important}
}

/* Keep each canonical page intact when its printed lines would be too small. */
.mushaf-pages[data-page-fit=true][data-page-reflow=true] .mushaf-paper {
  display:block;width:100%;height:auto;min-height:0;max-height:none;
}
.mushaf-pages[data-page-reflow=true] .mushaf-paper .mushaf-page-text,
.mushaf-pages[data-page-reflow=true] .mushaf-paper[data-opening-page=true] .mushaf-page-text {
  display:block;margin-block:.4rem .75rem;font-size:var(--mushaf-page-font-size,30px);
  line-height:2.1;text-align:start;white-space:normal;word-break:normal;overflow-wrap:normal;
}
.mushaf-pages[data-page-reflow=true] .mushaf-line:not(.mushaf-heading-line):not(.mushaf-basmala-line),
.mushaf-pages[data-page-reflow=true] .mushaf-line-content {display:contents;white-space:normal}
.mushaf-pages[data-page-reflow=true] .mushaf-line .mushaf-page-ayah {display:inline}
.mushaf-pages[data-page-reflow=true] .mushaf-heading-line {margin-block:.5em}
.mushaf-pages[data-page-reflow=true] .mushaf-basmala-line .mushaf-page-basmala {
  min-inline-size:0;white-space:normal;text-align:center;line-height:2.1;
}

