:root{--canvas:#faf9f5;--surface:#fffefa;--sidebar:#f5f5ef;--ink:#263d32;--muted:#82877a;--faint:#a0a493;--line:#e4e6dc;--green:#1b493a;--green-soft:#e8ede2;--gold:#b2a36d;--arabic-size:34px;--shadow:0 20px 90px #172e2226;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:0}body{margin:0;background:var(--canvas);color:var(--ink);font-family:"DM Sans",Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{touch-action:manipulation}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{border:0;background:none}button:disabled{opacity:.35;cursor:default}svg{display:block;width:20px;height:20px;flex:none}p,h1,h2,h3{margin:0}button,input,select{min-width:0}input::placeholder{color:var(--muted)}[hidden]{display:none!important}.skip-link{position:fixed;z-index:100;left:20px;top:-100px;padding:12px 18px;background:var(--green);color:#fff}.skip-link:focus{top:12px}.site-header{height:88px;background:var(--surface);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 40px;gap:24px;position:relative;z-index:20}.brand{display:flex;gap:13px;align-items:center;font-family:"Lora",Georgia,serif;font-size:26px;letter-spacing:-1.1px;line-height:1}.brand-emblem{width:41px;height:41px;border:1px solid #a9af91;display:grid;place-items:center;color:var(--green);font-size:42px;line-height:1;border-radius:10px;transform:rotate(0deg);font-family:Georgia,serif}.brand-sub{display:block;font-family:"DM Sans",sans-serif;font-size:8px;letter-spacing:4.9px;margin:8px 0 0 3px;font-weight:600}.top-nav{display:flex;align-items:center;gap:33px;height:100%;margin-left:100px}.top-nav a,.top-nav button{font-size:12px;height:100%;display:flex;align-items:center;position:relative;padding:0;color:#7a8176;font-weight:500}.top-nav .nav-active{color:var(--green)}.nav-active:after{content:"";position:absolute;bottom:0;height:2px;left:0;right:0;background:var(--green)}.header-actions{display:flex;gap:22px;align-items:center}.header-note{font-family:"Lora",Georgia,serif;font-style:italic;color:var(--muted);font-size:11px}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:#718070;transition:background .15s,color .15s;flex:none}.icon-button:hover{background:var(--green-soft);color:var(--green)}.mobile-menu,.sidebar-close{display:none}.app-layout{display:flex;min-height:calc(100vh - 88px)}.sidebar{width:280px;flex:none;background:var(--sidebar);border-right:1px solid var(--line);padding:35px 20px 0;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px}.eyebrow{font-size:8px;font-weight:650;letter-spacing:1.7px;color:var(--muted);margin-bottom:12px}.sidebar h2{font-family:"Lora",Georgia,serif;font-weight:500;font-size:23px;letter-spacing:-.5px;display:flex;align-items:center;gap:11px}.sidebar h2 span{font-family:"DM Sans",sans-serif;color:var(--muted);font-size:10px;font-weight:400;background:#e8ebdf;border-radius:4px;padding:3px 6px;letter-spacing:0}.surah-filter{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--surface);border-radius:6px;height:40px;padding:0 11px;margin-top:25px}.search-icon svg{width:16px;height:16px}.surah-filter input{width:100%;border:0;background:transparent;outline:0;color:var(--ink);font-size:11px}.surah-filter input:focus-visible{outline:0}.surah-filter:focus-within{border-color:var(--gold)}kbd{font:9px "DM Sans",sans-serif;border:1px solid var(--line);color:var(--muted);padding:2px 4px;border-radius:3px;white-space:nowrap}.list-heading{display:flex;justify-content:space-between;font-size:8px;font-weight:600;color:#939989;letter-spacing:1.2px;padding:24px 10px 12px}.surah-list{overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#d1d8c8 transparent;margin:0 -8px;padding:0 8px 20px}.surah-item{display:flex;align-items:center;gap:12px;width:100%;padding:14px 10px;margin-bottom:2px;border-radius:6px;text-align:left;position:relative;border:1px solid transparent}.surah-item:hover{background:#ecefe5}.surah-item.active{background:var(--green-soft);border-color:#dce2d0}.surah-index{width:25px;height:25px;display:grid;place-items:center;flex:none;position:relative;font-size:10px;color:#808b78;z-index:0}.surah-index:before{content:"";position:absolute;inset:2px;border:1px solid #d9ded1;border-radius:5px;transform:rotate(45deg);z-index:-1}.active .surah-index{color:var(--green);font-weight:600}.active .surah-index:before{border-color:#b6c2a6}.surah-item-names{display:flex;flex-direction:column;gap:5px;min-width:0}.surah-latin{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.surah-verse-count{font-size:8px;color:var(--muted)}.surah-arabic{font-family:"Amiri Quran","Noto Naskh Arabic",serif;font-size:17px;color:#718069;margin-left:auto;max-width:66px;white-space:nowrap;overflow:hidden;line-height:2}.active .surah-arabic{color:var(--green)}.sidebar-footer{border-top:1px solid var(--line);display:flex;gap:12px;align-items:center;padding:20px 8px 22px}.small-emblem{font-size:28px;color:#9ba587}.sidebar-footer p{font-family:"Lora",Georgia,serif;font-size:10px;line-height:1.9;color:#6a795f}.sidebar-footer p span{color:#969e8c}.reading-main{width:min(100% - 280px,1180px);padding:32px 68px 0;margin:0 auto;outline:none}.reading-topline{display:flex;justify-content:space-between;align-items:center;min-height:23px;margin-bottom:24px;gap:12px}.breadcrumb{display:flex;align-items:center;gap:10px;color:#959b8c;font-size:10px;white-space:nowrap}.breadcrumb svg{height:13px;width:13px}.breadcrumb-divider{margin:0 3px;color:#bdc2b3}.breadcrumb span:last-child{color:#53694f}.quiet-button{font-size:10px;color:#6d7c59;display:flex;gap:14px;align-items:center;white-space:nowrap;padding:3px 0}.quiet-button:hover{text-decoration:underline}.chapter-banner{border:1px solid #dfe3d3;border-radius:9px;background:#eef1e6;padding:28px 31px 0;overflow:hidden;position:relative}.banner-pattern{position:absolute;width:310px;height:310px;right:-94px;top:-127px;border:1px solid #d5ddc674;transform:rotate(35deg);pointer-events:none;border-radius:20px}.banner-pattern:before,.banner-pattern:after{content:"";position:absolute;border:1px solid #d5ddc674;inset:22px;border-radius:18px;transform:rotate(20deg)}.banner-pattern:after{inset:44px;transform:rotate(40deg)}.chapter-kicker{display:flex;align-items:center;gap:9px;font-size:8px;letter-spacing:1.9px;font-weight:650;color:#6f7e58}.tiny-diamond{width:5px;height:5px;border:1px solid #94a077;transform:rotate(45deg)}.chapter-title-line{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:13px;position:relative}.chapter-title-line h1{font:400 37px/1.25 "Lora",Georgia,serif;letter-spacing:-1.25px;color:#243e2f}.chapter-title-line p:not(.chapter-arabic){font-family:"Lora",Georgia,serif;font-style:italic;font-size:12px;margin-top:6px;color:#798168}.chapter-arabic{font-family:"Amiri Quran","Noto Naskh Arabic",serif;font-size:48px;line-height:1.8;color:#39533b;padding-right:10px}.chapter-meta{display:flex;align-items:center;gap:9px;color:#7d886f;font-size:9px;margin-top:15px;position:relative}.meta-dot{font-size:13px;color:#a4ad93}.banner-bottom{border-top:1px solid #dce2cf;margin-top:24px;display:flex;align-items:center;justify-content:space-between;height:39px;color:#8b947c;font-size:8px;letter-spacing:.1px;position:relative}.banner-ornament{font-size:20px;color:#a2ad90}.reader-toolbar{margin-top:28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);height:49px;gap:14px}.reader-tabs{display:flex;align-items:center;gap:24px;height:100%}.reader-tab{display:flex;align-items:center;gap:7px;height:100%;font-size:10px;color:#89917f;position:relative;padding:0}.reader-tab svg{height:14px;width:14px}.reader-tab.active{color:var(--green);font-weight:600}.reader-tab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--green)}.toolbar-actions{display:flex;align-items:center;gap:7px}.toolbar-button{display:flex;align-items:center;gap:7px;color:#87917d;font-size:10px;padding:6px}.toolbar-button kbd{margin-left:8px;font-size:8px}.toolbar-divider{height:16px;background:var(--line);width:1px;margin:0 4px}.toolbar-actions .icon-button svg{width:16px;height:16px}.tiny-dot{height:4px;width:4px;border-radius:50%;background:#a0ae8a}.notice-secondary{margin-left:auto;font-style:italic;color:#a5aa9a;font-family:"Lora",serif}.verse{padding:25px 0 24px;border-bottom:1px solid var(--line);position:relative;scroll-margin-top:25px;transition:background .3s}.verse:target,.verse.highlighted{background:var(--green-soft);box-shadow:15px 0 0 var(--green-soft),-15px 0 0 var(--green-soft);border-radius:4px}.verse-top{display:flex;align-items:flex-start;gap:30px;justify-content:space-between}.verse-tools{display:flex;align-items:center;gap:10px;padding-top:12px;flex:none}.ayah-number{font-size:8px;border:1px solid #e2e6d9;color:#8b967e;min-width:32px;height:24px;display:inline-flex;align-items:center;justify-content:center;gap:1px;border-radius:5px;padding:0 5px;font-weight:500}.verse-bookmark{width:26px;height:26px;opacity:0;transition:opacity .15s;display:grid;place-items:center;color:#a1aa95;border-radius:4px}.verse:hover .verse-bookmark,.verse:focus-within .verse-bookmark,.verse-bookmark.saved{opacity:1}.verse-bookmark:hover{background:var(--green-soft);color:var(--green)}.verse-bookmark svg{width:14px;height:14px}.verse-bookmark.saved{color:#85955b}.verse-bookmark.saved svg{fill:#85955b22}.verse-arabic{font-family:"Amiri Quran","Noto Naskh Arabic","Traditional Arabic",serif;font-size:var(--arabic-size);line-height:2.2;font-weight:400;text-align:right;color:#2b3f2e;padding:0;overflow-wrap:anywhere;flex:1;min-width:0}.chapter-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:34px;padding:0 0 40px;gap:18px}.page-button{display:flex;align-items:center;gap:17px;text-align:left;padding:11px 0;color:#7a896d;min-width:135px}.page-button>span:not(:has(small)){font-size:20px;font-weight:400}.page-button small{display:block;font-size:7px;letter-spacing:1.3px;color:#a2aa97;margin-bottom:7px}.page-button strong{font-family:"Lora",Georgia,serif;font-size:13px;font-weight:400;color:#4c6346}.next-page{text-align:right;justify-content:flex-end}.page-button:hover strong{text-decoration:underline}.pagination-emblem{font-size:29px;color:#c2c8b4}.reading-footer{border-top:1px solid var(--line);display:flex;align-items:center;gap:20px;justify-content:space-between;padding:25px 0 29px}.footer-brand{font-family:"Lora",Georgia,serif;font-size:15px;letter-spacing:-.5px;color:#77846c;white-space:nowrap}.footer-brand span{font-family:"DM Sans",sans-serif;font-size:6px;letter-spacing:1.3px;margin-left:6px}.reading-footer p{font-size:8px;color:#a5ab9a}.reading-footer button{font-size:8px;color:#8d9980;padding:0;white-space:nowrap}.reading-footer button span{margin-left:5px}.sidebar-backdrop{display:none}.loading-copy,.empty-copy{padding:24px 9px;color:var(--muted);font-size:11px;line-height:1.8}.loading-state{text-align:center;padding:55px 16px 65px;color:var(--muted);font-size:12px}.loading-emblem{font-size:40px;color:var(--gold);display:block;margin-bottom:12px;animation:breathe 2s ease-in-out infinite}.error-state{text-align:center;padding:60px 20px;color:var(--muted);line-height:1.9}.error-state h2{font:23px "Lora",serif;color:var(--ink);margin-bottom:12px}.error-state p{font-size:12px}.error-state button{margin-top:20px}.primary-button{background:var(--green);color:#fff;border:1px solid var(--green);padding:13px 18px;border-radius:5px;font-size:12px;display:flex;justify-content:center;align-items:center;gap:20px}.primary-button:hover{filter:brightness(1.1)}dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:27px;width:min(500px,calc(100vw - 32px));max-height:min(85vh,800px);box-shadow:var(--shadow);overflow-y:auto}dialog::backdrop{background:#18271dcc;backdrop-filter:blur(4px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-top h2{font:23px "Lora",Georgia,serif;letter-spacing:-.5px}.dialog-top .icon-button{margin-right:-8px}.dialog-intro{font-size:11px;line-height:1.8;color:var(--muted);margin:13px 0 22px}.search-dialog{width:min(650px,calc(100vw - 32px));padding-bottom:0}.global-search{display:flex;align-items:center;gap:12px;margin-top:24px;border-bottom:1px solid var(--line);padding:0 0 15px}.global-search input{border:0;outline:0;background:transparent;color:var(--ink);font-size:15px;flex:1;width:100%;padding:6px 0}.global-search input:focus-visible{outline:0}.global-search:focus-within{border-color:var(--gold)}.search-hint{font-size:10px;color:var(--muted);line-height:1.8;margin:11px 0 13px}.search-results{max-height:54vh;overflow-y:auto;padding-bottom:20px}.result-group-label{font-size:9px;letter-spacing:1.4px;color:var(--muted);margin:22px 0 9px}.search-result{display:block;text-align:left;padding:14px 11px;border-radius:6px;width:100%;border-bottom:1px solid var(--line)}.search-result:hover{background:var(--green-soft)}.result-title{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;line-height:1.6}.result-title span:last-child{color:var(--muted);font-size:10px}.result-arabic{font-family:"Amiri Quran",serif;line-height:2.2;font-size:22px;margin-top:7px;max-height:100px;overflow:hidden}.search-status{font-size:11px;line-height:1.8;color:var(--muted);padding:25px 5px}.setting-row{display:block;padding:20px 0;border-bottom:1px solid var(--line)}.setting-row>span{display:flex;align-items:center;justify-content:space-between;font-size:12px}.setting-row small{color:var(--muted);font-size:11px}.setting-row input{width:100%;accent-color:var(--green);margin:20px 0 0}.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;padding:22px 0;border-bottom:1px solid var(--line);font-size:12px;position:relative}.setting-toggle small{display:block;font-size:10px;color:var(--muted);margin-top:7px;line-height:1.6}.setting-toggle input{position:absolute;right:0;opacity:0;width:38px;height:24px}.switch{background:#d9dfd1;border-radius:15px;width:34px;height:20px;position:relative;flex:none}.switch:before{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0001;transition:transform .15s}.setting-toggle input:checked+.switch{background:var(--green)}.setting-toggle input:checked+.switch:before{transform:translateX(14px)}.setting-toggle input:focus-visible+.switch{outline:2px solid var(--gold);outline-offset:4px}.local-note{color:var(--muted);font-size:9px;line-height:1.8;margin-top:24px}.local-note a{text-decoration:underline}.bookmark-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}.bookmark-link{text-align:left;flex:1;padding:12px 0}.bookmark-link strong{display:block;font-size:12px;font-weight:500}.bookmark-link small{color:var(--muted);font-size:10px;display:block;margin-top:7px}.form-label{display:block;font-size:11px;margin:23px 0 9px}.jump-dialog select,.jump-dialog input{width:100%;border:1px solid var(--line);border-radius:5px;padding:12px 11px;background:var(--canvas);color:var(--ink);font-size:12px}.jump-dialog .primary-button{width:100%;margin-top:25px}.field-hint{font-size:10px;color:var(--muted);margin-top:8px}.about-dialog>p:not(.local-note){font-size:12px;line-height:1.95;color:var(--muted);margin-top:15px}.about-emblem{font:80px Georgia,serif;text-align:center;color:var(--gold);padding-top:20px}.source-details{border-top:1px solid var(--line);padding-top:23px;margin-top:25px}.source-details h3{font:17px "Lora",serif;margin-bottom:13px}.source-details p{font-size:11px;color:var(--muted);line-height:1.9;margin-top:8px}.source-details a{text-decoration:underline}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);z-index:100;background:var(--green);color:#fff;padding:12px 22px;box-shadow:0 5px 20px #172e2226;border-radius:7px;opacity:0;pointer-events:none;font-size:11px;transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.noscript-message{background:var(--surface);padding:30px;text-align:center;position:fixed;inset:90px 0 auto;z-index:40}.dark{--canvas:#17231d;--surface:#1b2a22;--sidebar:#19271f;--ink:#d9e0ce;--muted:#96a28d;--faint:#6f7f69;--line:#314033;--green:#acbd8e;--green-soft:#293b2a;--gold:#b5a775;color-scheme:dark}.dark .brand-emblem{color:#b4c298}.dark .surah-item:hover{background:#26382a}.dark .surah-item.active{border-color:#3c4f36}.dark .surah-index:before{border-color:#3c4c36}.dark .sidebar h2 span{background:#2e3d2d}.dark .surah-arabic,.dark .active .surah-arabic{color:#b1bf9c}.dark .chapter-banner{background:#273a2a;border-color:#3a4a31}.dark .chapter-title-line h1,.dark .chapter-arabic{color:#d4dec0}.dark .chapter-title-line p:not(.chapter-arabic),.dark .chapter-meta,.dark .chapter-kicker{color:#aab799}.dark .banner-bottom{border-color:#425036;color:#9eac8c}.dark .banner-pattern,.dark .banner-pattern:before,.dark .banner-pattern:after{border-color:#6f81502b}.dark .verse-arabic{color:#e0e7d4}.dark .ayah-number{border-color:#3c4c35;color:#a6b394}.dark .page-button strong{color:#bac8a6}.dark .primary-button,.dark .toast{background:#a4b88c;border-color:#a4b88c;color:#18251c}.dark .setting-toggle input:checked+.switch{background:#7c9664}.dark .breadcrumb span:last-child{color:#b2bf9f}.dark .brand{color:#d2dec0}.dark .sidebar-footer p{color:#a8b798}
@keyframes breathe{50%{opacity:.4;transform:scale(.9)}}@media(min-width:1600px){.reading-main{padding-left:95px;padding-right:95px}}@media(max-width:1200px){.site-header{padding:0 28px}.top-nav{margin-left:20px}.header-note{display:none}.sidebar{width:254px;padding-left:14px;padding-right:14px}.reading-main{width:calc(100% - 254px);padding-left:40px;padding-right:40px}.reading-footer{gap:15px}.reading-footer p{display:none}}@media(max-width:950px){.sidebar{width:235px;padding-left:10px;padding-right:10px}.reading-main{width:calc(100% - 235px);padding-left:28px;padding-right:28px}.chapter-banner{padding:24px 25px 0}.chapter-title-line h1{font-size:32px}.chapter-arabic{font-size:40px}.top-nav{gap:25px;margin-left:0}.verse-top{gap:16px}.verse-tools{gap:3px}.reader-tabs{gap:18px}.toolbar-button kbd{display:none}.reading-topline{flex-wrap:wrap}.quiet-button{font-size:9px}}@media(max-width:760px){.site-header{height:74px;padding:0 22px;gap:15px}.brand{font-size:23px;gap:10px}.brand-emblem{width:35px;height:35px;font-size:36px;border-radius:8px}.brand-sub{font-size:7px;margin-top:7px;letter-spacing:4.2px}.top-nav{margin-left:auto;gap:18px}.top-nav a,.top-nav button{font-size:10px}.top-nav button#about-button{display:none}.header-actions{gap:8px}.mobile-menu{display:inline-flex}.app-layout{min-height:calc(100vh - 74px)}.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:60;width:285px;height:100dvh;transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 60px #0002;padding:32px 18px 0}.sidebar.open{transform:translateX(0)}.sidebar-close{display:flex}.sidebar-backdrop.visible{display:block;position:fixed;inset:0;background:#14291db3;z-index:55;backdrop-filter:blur(3px)}.reading-main{width:100%;max-width:680px;padding:26px 29px 0}.reading-topline{margin-bottom:21px}.chapter-title-line h1{font-size:36px}.chapter-arabic{font-size:45px}.chapter-banner{padding:27px 28px 0}.verse-bookmark{opacity:1}.verse{padding:23px 0}.verse-tools{gap:8px}.verse-top{gap:22px}.reader-toolbar{margin-top:23px}.verse-arabic{font-size:var(--arabic-size)}.chapter-pagination{padding-bottom:30px}.reading-footer p{display:block}.reading-footer{flex-wrap:wrap;row-gap:10px}.reading-footer button{margin-left:auto}}@media(max-width:450px){.site-header{padding:0 17px;gap:9px}.brand{font-size:21px;gap:8px}.brand-emblem{width:31px;height:31px;font-size:32px}.brand-sub{font-size:6px;letter-spacing:3.9px;margin-top:6px}.top-nav{gap:0}.top-nav a{display:none}.top-nav button{font-size:9px}.header-actions{gap:2px}.icon-button{width:31px;height:31px}.reading-main{padding:22px 20px 0}.breadcrumb{font-size:9px;gap:7px}.quiet-button{font-size:8px;gap:5px}.chapter-banner{padding:24px 23px 0}.chapter-title-line h1{font-size:30px}.chapter-arabic{font-size:38px;padding:0}.chapter-title-line{gap:8px;margin-top:12px}.chapter-title-line p:not(.chapter-arabic){font-size:11px}.chapter-kicker{font-size:7px}.chapter-meta{font-size:8px;margin-top:16px}.banner-bottom{font-size:7px;margin-top:20px}.banner-pattern{right:-160px}.reader-tabs{gap:17px}.reader-tab{font-size:9px;gap:5px}.toolbar-actions{gap:2px}.toolbar-button{gap:5px;font-size:9px;padding:3px}.toolbar-divider{margin:0 3px}.reader-tab svg{width:13px;height:13px}.toolbar-actions .icon-button svg{width:15px;height:15px}.notice-secondary{font-size:7px}.verse-top{gap:12px;position:relative}.verse-tools{flex-direction:column;padding-top:12px;gap:8px}.ayah-number{font-size:7px;min-width:28px;height:22px}.verse-bookmark{height:21px;width:25px}.verse-bookmark svg{height:12px;width:12px}.verse-arabic{line-height:2.15}.verse{padding:22px 0}.page-button{min-width:110px;gap:11px}.page-button strong{font-size:12px}.page-button small{font-size:6px}.pagination-emblem{font-size:23px}.reading-footer p{display:none}.reading-footer button{font-size:7px}.footer-brand{font-size:14px}.footer-brand span{font-size:5px}dialog{padding:22px}.dialog-top h2{font-size:21px}.global-search input{font-size:13px}.search-hint{font-size:9px}.search-results{max-height:55vh}.result-arabic{font-size:21px}.source-details p{font-size:10px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Canonical Hafs pages and Arabic-only reading layouts. */
.page-icon svg{width:14px;height:14px}.page-controls{display:flex;align-items:center;gap:10px;padding:17px 0;border-bottom:1px solid var(--line)}.page-controls>label{font-size:8px;letter-spacing:1.4px;color:var(--muted);margin-left:4px}.page-controls select{width:70px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:5px;padding:8px 9px;font-size:12px}.page-total{font-size:10px;color:var(--muted)}.page-juz{margin-left:auto;font-size:10px;color:var(--muted)}.reading-note{display:flex;align-items:center;gap:7px;margin:19px 0 2px;font-size:8px;color:var(--muted);letter-spacing:.7px}.reading-note .notice-secondary{letter-spacing:0}.selected-ayah-actions{display:flex;align-items:center;gap:15px;position:sticky;top:10px;z-index:10;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:8px 12px;margin:15px 0;box-shadow:0 3px 15px #172e2210;font-size:11px;min-height:47px}.selected-bookmark{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--green);margin-left:auto;white-space:nowrap;padding:7px 2px}.selected-bookmark svg{width:14px;height:14px}.selected-ayah-actions>.icon-button{width:25px;height:25px}.mushaf-page{border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:26px 36px 20px;margin-top:20px;box-shadow:0 5px 25px #263d3203}.page-surah+.page-surah{margin-top:28px}.page-surah-heading{text-align:center;margin:0 auto 20px;padding:8px 20px 15px;border-bottom:1px solid var(--line);max-width:80%;position:relative}.page-surah-heading:before,.page-surah-heading:after{content:"◇";position:absolute;top:20px;color:var(--gold);font-size:16px;left:0}.page-surah-heading:after{left:auto;right:0}.page-surah-heading h2{font-family:"Amiri Quran","Noto Naskh Arabic",serif;font-weight:400;font-size:27px;line-height:2.2}.page-surah-heading p{font-size:9px;color:var(--muted);margin-top:3px;letter-spacing:.3px}.page-flow{font-family:"Amiri Quran","Noto Naskh Arabic","Traditional Arabic",serif;font-size:var(--arabic-size);font-weight:400;line-height:2.65;direction:rtl;text-align:justify;text-align-last:center;word-spacing:1px;color:var(--ink);overflow-wrap:anywhere}.page-verse{display:inline;border:0;background:transparent;padding:0;margin:0;color:inherit;font:inherit;line-height:inherit;text-align:inherit;white-space:normal;overflow-wrap:anywhere;scroll-margin-top:85px;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone;cursor:pointer}.page-verse:hover{background:var(--green-soft)}.page-verse.selected,.page-verse.highlighted{background:var(--green-soft);box-shadow:0 2px 0 #b2a36d66}.page-verse:focus-visible{outline:1px solid var(--gold);outline-offset:3px}.page-folio{font-family:"Amiri Quran",serif;color:var(--muted);font-size:17px;text-align:center;margin:25px auto 0;border-top:1px solid var(--line);padding-top:17px;max-width:90px;line-height:1.7}.page-view+.chapter-pagination{margin-top:25px}.dark .mushaf-page{background:#1a2a20;box-shadow:none}.surah-view .verse{padding:26px 0}.surah-view .verse-top{align-items:flex-start}.surah-view .verse-arabic{line-height:2.45}.dark .selected-ayah-actions{box-shadow:0 3px 15px #0002}
@media(max-width:950px){.mushaf-page{padding:22px 25px 20px}.page-flow{line-height:2.5}}@media(max-width:760px){.mushaf-page{padding:24px 24px 20px}.page-flow{line-height:2.6}.page-surah-heading{max-width:85%}}@media(max-width:450px){.page-controls{gap:7px;padding:14px 0}.page-controls>label{font-size:7px;letter-spacing:1px;margin-left:0}.page-controls select{width:62px;padding:7px 6px;font-size:11px}.page-total,.page-juz{font-size:9px}.reading-note{font-size:7px;margin-top:16px}.mushaf-page{padding:16px 14px 14px;margin-top:17px}.page-flow{line-height:2.5;font-size:calc(var(--arabic-size) - 3px);word-spacing:0}.page-surah-heading{max-width:90%;margin-bottom:14px;padding:7px 18px 12px}.page-surah-heading h2{font-size:25px}.page-surah-heading p{font-size:8px}.page-surah-heading:before,.page-surah-heading:after{font-size:13px}.page-folio{margin-top:19px;font-size:16px;padding-top:13px}.selected-ayah-actions{gap:8px;padding:7px 9px;min-height:43px;font-size:9px}.selected-bookmark{font-size:9px;gap:5px}.selected-bookmark svg{width:12px;height:12px}.selected-ayah-actions>.icon-button{width:20px;height:22px}.surah-view .verse{padding:23px 0}}
/* An open, right-to-left mushaf: odd page on the right, even page on the left. */
.surah-bismillah{font-family:"Amiri Quran","Noto Naskh Arabic",serif;text-align:center;font-size:calc(var(--arabic-size) + 2px);line-height:2.8;color:var(--ink);padding:22px 8px 18px;border-bottom:1px solid var(--line)}.book-mode .reading-main{width:calc(100% - 280px);max-width:1500px;padding:25px 32px 0}.book-mode .reading-topline{margin-bottom:18px}.book-mode .chapter-banner{padding:17px 23px 14px}.book-mode .chapter-title-line{margin-top:8px}.book-mode .chapter-title-line h1{font-size:27px;letter-spacing:-.7px}.book-mode .chapter-title-line p:not(.chapter-arabic){font-size:10px;margin-top:5px}.book-mode .chapter-arabic{font-size:29px;line-height:1.6}.book-mode .chapter-meta{margin-top:9px;font-size:8px}.book-mode .banner-bottom{display:none}.book-mode .reader-toolbar{margin-top:16px}.book-mode .page-controls{padding:12px 0}.book-mode .reading-note{margin-top:14px}.book-viewport{width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#bfc7b0 transparent;padding:8px 3px 14px;position:relative;direction:ltr}.book-spread{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;gap:0;align-items:stretch;min-width:0;box-shadow:0 10px 30px #233c2a0d;border-radius:10px;margin-top:2px}.book-spread:after{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 11px);width:22px;background:linear-gradient(90deg,transparent,#42503009 35%,#2736191c 50%,#42503009 65%,transparent);pointer-events:none;z-index:2}.book-page{min-width:0;background:#fffef8;border:1px solid #e2e2d1;display:flex;flex-direction:column;padding:14px 18px 12px;scroll-snap-align:center;position:relative}.book-page.right-page{grid-column:2;grid-row:1;border-radius:1px 9px 9px 1px;padding-left:25px;background:linear-gradient(90deg,#efefe2 0,#fffef8 22px)}.book-page.left-page{grid-column:1;grid-row:1;border-radius:9px 1px 1px 9px;padding-right:25px;background:linear-gradient(270deg,#efefe2 0,#fffef8 22px)}.book-page.active-page .book-page-header{color:var(--green)}.book-page-header{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:var(--muted);padding:0 3px 11px;border-bottom:1px solid var(--line);gap:10px}.book-page .mushaf-page{background:transparent;border:0;box-shadow:none;border-radius:0;margin:0;padding:10px 0 0;flex:1}.book-page .page-flow{font-size:clamp(23px,2.3vw,var(--arabic-size));line-height:2.6}.book-page .page-surah-heading{max-width:90%;padding-left:15px;padding-right:15px}.book-page .page-surah-heading h2{font-size:23px}.book-page .page-surah-heading p{font-size:8px}.book-page .page-folio{margin-top:18px;padding-top:12px;font-size:15px}.book-mode .page-view+.chapter-pagination{margin-top:12px}.dark .book-page{border-color:#46503a;color:#d9e0ce}.dark .book-page.right-page{background:linear-gradient(90deg,#202e21 0,#233325 22px)}.dark .book-page.left-page{background:linear-gradient(270deg,#202e21 0,#233325 22px)}.dark .book-spread:after{background:linear-gradient(90deg,transparent,#0001 35%,#0004 50%,#0001 65%,transparent)}.dark .book-page .mushaf-page{background:transparent}
@media(max-width:1200px){.book-mode .reading-main{width:calc(100% - 254px);padding-left:23px;padding-right:23px}.book-page{padding:12px 13px}.book-page.right-page{padding-left:20px}.book-page.left-page{padding-right:20px}}@media(max-width:950px){.book-mode .reading-main{width:calc(100% - 235px);padding-left:20px;padding-right:20px}.book-spread{grid-template-columns:repeat(2,minmax(330px,1fr));min-width:660px}.book-page .page-flow{font-size:28px;line-height:2.5}.book-mode .notice-secondary{font-size:8px}}@media(max-width:760px){.book-mode .reading-main{width:100%;max-width:none;padding:21px 20px 0}.book-mode .chapter-banner{padding:15px 20px 13px}.book-mode .chapter-title-line h1{font-size:26px}.book-mode .chapter-arabic{font-size:27px}.book-spread{grid-template-columns:repeat(2,minmax(340px,1fr));min-width:680px}.book-page{padding:13px 16px 12px}.book-page.right-page{padding-left:23px}.book-page.left-page{padding-right:23px}.book-page .page-flow{font-size:29px;line-height:2.5}.book-mode .reading-note .notice-secondary{max-width:58%;text-align:right}.surah-bismillah{font-size:var(--arabic-size);padding-top:20px}}@media(max-width:450px){.book-mode .reading-main{padding:19px 16px 0}.book-mode .chapter-title-line h1{font-size:25px}.book-mode .chapter-arabic{font-size:25px}.book-mode .chapter-meta{font-size:7px;gap:7px}.book-mode .chapter-title-line p:not(.chapter-arabic){font-size:9px}.book-mode .chapter-kicker{font-size:6px;letter-spacing:1.3px}.book-mode .chapter-banner{padding:14px 18px 12px}.book-page .page-surah-heading h2{font-size:23px}.book-page .page-flow{font-size:29px}.book-page .page-folio{font-size:15px}.book-mode .page-controls{gap:7px}.surah-bismillah{font-size:calc(var(--arabic-size) - 3px)}}
.book-page-surahs{font-family:"Amiri Quran",serif;font-size:15px;line-height:2;text-align:center;color:var(--muted);padding:9px 6px 1px;min-height:40px}.book-mode .reading-note .notice-secondary{font-family:"DM Sans",sans-serif;font-size:8px;font-style:normal;color:var(--muted)}@media(max-width:450px){.book-mode .reading-note .notice-secondary{font-size:6px;max-width:66%}}
/* Original printed facsimiles; zoom changes the size of the facing pages. */
.book-spread{width:max(calc(100% * var(--book-zoom,1)),calc(680px * var(--book-zoom,1)));min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}.printed-page-wrap{display:flex;flex:1;flex-direction:column;min-width:0;padding-top:7px}.printed-page-image{display:block;width:100%;height:auto;aspect-ratio:1600/2287;object-fit:contain;background:transparent;user-select:none;-webkit-user-drag:none}.page-ayahs-button{font-size:9px;color:var(--muted);border-top:1px solid var(--line);padding:12px 8px 2px;margin-top:auto;text-align:center;line-height:1.6}.page-ayahs-button:hover{color:var(--green);text-decoration:underline}.printed-page-error{padding:60px 14px;text-align:center;color:var(--muted);font-size:11px;line-height:1.9;aspect-ratio:1600/2287;display:flex;flex-direction:column;align-items:center;justify-content:center}.printed-page-error .quiet-button{margin-top:18px;font-size:11px}.page-ayahs-dialog{width:min(760px,calc(100vw - 32px));max-height:88vh}.page-ayahs-dialog .dialog-top{position:sticky;top:-27px;z-index:3;background:var(--surface);padding:10px 0 12px;border-bottom:1px solid var(--line)}.page-ayahs-dialog .verse-bookmark{opacity:1}.page-ayahs-dialog .verse-arabic{font-size:var(--arabic-size);line-height:2.3}.page-ayahs-dialog .verse{scroll-margin-top:70px}.page-ayahs-dialog .surah-bismillah{font-size:calc(var(--arabic-size) - 3px);padding-top:8px;padding-bottom:10px;line-height:2.4}.transcript-surah-title{font-family:"Amiri Quran",serif;font-size:23px;line-height:2;text-align:center;font-weight:400;margin:22px 0 8px}.page-ayahs-dialog .dialog-intro{margin:14px 0 18px}.dark .printed-page-image{filter:brightness(.88)}@media(max-width:450px){.page-ayahs-dialog .dialog-top{top:-22px}.page-ayahs-dialog .verse-arabic{font-size:calc(var(--arabic-size) - 2px)}.page-ayahs-button{font-size:9px;padding-top:10px}.book-page-header{font-size:8px}.book-page-surahs{font-size:14px;min-height:37px}}
.book-mode .chapter-pagination{flex-direction:row-reverse}.book-mode .page-controls{direction:rtl}.book-mode .page-controls select,.book-mode .page-total,.book-mode .page-juz{direction:ltr}.book-mode .page-juz{margin-left:0;margin-right:auto}.book-mode .page-controls>label{margin-left:0;margin-right:4px}
/* The original black print stays on light paper in either appearance. */
.dark .book-page{color:#263d32;border-color:#d8ddcc}.dark .book-page.right-page{background:linear-gradient(90deg,#efefe2 0,#fffef8 22px)}.dark .book-page.left-page{background:linear-gradient(270deg,#efefe2 0,#fffef8 22px)}.dark .printed-page-wrap{background:#fffef8}.dark .printed-page-image{filter:none}.dark .book-page-header{color:#738064;border-bottom-color:#e4e6dc}.dark .book-page.active-page .book-page-header{color:#1b493a}.dark .book-page-surahs{color:#77846c}.dark .page-ayahs-button{color:#6d7b60;border-top-color:#e4e6dc}.dark .page-ayahs-button:hover{color:#1b493a}
