/* Approved sage daylight theme. Existing forest styles remain the dark theme. */
.theme-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #b99b5860;border-radius:30px;flex:none;direction:ltr;background:#ffffff0a}
.theme-switch button{display:grid;place-items:center;width:34px;height:34px;padding:6px;border:0;border-radius:50%;background:transparent;color:#ded5ba;cursor:pointer}
.theme-switch svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-switch [aria-pressed=true]{background:#e7d5a9;color:#173b27}.theme-switch button:focus-visible{outline:3px solid #e77823;outline-offset:3px}
.day-scene{display:none}#q-night,body[data-page=reader] #theme{display:none}
html[data-theme=light]{color-scheme:light;--paper:#F8F8ED;--white:#fff;--green:#233A19;--dark:#233A19;--gold:#233A19;--line:#d3d8b6;--muted:#526047}
html[data-theme=light] body{background:#F8F8ED;color:#233A19;--paper:#F8F8ED;--white:#fff;--green:#233A19;--dark:#233A19;--line:#d3d8b6;--muted:#526047}
html[data-theme=light] body main{background:radial-gradient(ellipse at 80% 0%,#E4E7B5,transparent 650px),#F8F8ED;color:#233A19}
html[data-theme=light] .top,html[data-theme=light] body[data-page=home] .top{background:#ffffffed;color:#233A19;position:relative}
html[data-theme=light] .top .shell{border-color:#d3d8b6}
html[data-theme=light] .brand-name small{color:#426334}
html[data-theme=light] .top .brand,html[data-theme=light] .top .nav a{color:#233A19}
html[data-theme=light] .brand-emblem{mix-blend-mode:normal}html[data-theme=light] .menu-toggle{color:#233A19}
html[data-theme=light] .top #language{background:transparent;color:#233A19}
html[data-theme=light] .top .nav{background:transparent;border-color:#d3d8b6}
html[data-theme=light] .top .nav [aria-current]{color:#426334;border-color:#426334}
html[data-theme=light] .theme-switch{background:#F8F8ED;border-color:#d3d8b6}
html[data-theme=light] .theme-switch button{color:#727b90}
html[data-theme=light] .theme-switch [aria-pressed=true]{background:#fff0d9;color:#a54d08}
html[data-theme=light] .hero{background:#F8F8ED;color:#233A19}
html[data-theme=light] .hero .shell{padding-top:0;height:clamp(490px,43vw,780px)}
html[data-theme=light] .forest-scene{display:none}html[data-theme=light] .day-scene{display:block;position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.day-scene img{display:block;width:100%;height:100%;object-fit:cover;object-position:center bottom}
html[data-theme=light] .hero h1{color:#233A19}
html[data-theme=light] .hero .hero-tagline{color:#233A19!important}
html[data-theme=light] .hero .hero-tagline::after{background:#426334}
html[data-theme=light] .hero .hero-description{color:#394b30!important}
html[data-theme=light] .hero .action{background:#233A19;border-color:#233A19;color:#171A0D;border-radius:28px}
html[data-theme=light] .hero .action:hover{background:#365229}
html[data-theme=light] .hero .action-outline{background:#ffffffb8;color:#233A19;border-color:#426334}
html[data-theme=light] .hero-languages a{color:#233A19}
html[data-theme=light] .book-editions{background:transparent}
html[data-theme=light] .edition{background:#fff;border:1px solid #d3d8b6;border-radius:16px;box-shadow:0 8px 28px #233a1906}
html[data-theme=light] body .edition h3{color:#233A19}
html[data-theme=light] body .edition-links a{color:#233A19;background:#edf1e1;border:1px solid #cad6bc;border-radius:8px;padding:9px 12px;text-decoration:none}
html[data-theme=light] body .edition-links a:nth-child(2){color:#233A19;background:#E4E7B5;border-color:#c6cfaa}
html[data-theme=light] body .book-intro{border-color:#d3d8b6}
html[data-theme=light] body .video-intro-text{color:#526047}
html[data-theme=light] body .book-video-frame{border-color:#d3d8b6;box-shadow:0 15px 40px #233a1915}
html[data-theme=light] body .footer{background:#E4E7B5;color:#233A19;border-color:#d3d8b6}
html[data-theme=light] body .footer a{color:#233A19}html[data-theme=light] .footer-contact .whatsapp-icon{color:#28703e}
html[data-theme=light] .footer-contact .social-icon{color:#233A19}html[data-theme=light] .footer-contact .whatsapp-icon{color:#28703e}html[data-theme=light] .footer-contact .youtube-icon{color:#bb2534}
html[data-theme=light] body .footer .inquiry{background:#fff;color:#233A19;border:1px solid #d3d8b6}
html[data-theme=light] body .inquiry-form input,html[data-theme=light] body .inquiry-form textarea{background:#F8F8ED;color:#171A0D;border-color:#c6cfaa}
html[data-theme=light] body .inquiry-form button{background:#233A19;color:#fff}
html[data-theme=light] body .inquiry-form p{color:#526047}
html[data-theme=light] .mobile-dock{background:#fffffff5;border-color:#d3d8b6;box-shadow:0 -5px 20px #233a1908}
html[data-theme=light] .mobile-dock a{color:#526047}html[data-theme=light] .mobile-dock [aria-current]{background:#E4E7B5;color:#233A19}
html[data-theme=light] :is(.pwa-card,.pwa-dialog,.access-tools){background:#fff;color:#233A19;border-color:#d3d8b6;box-shadow:none}
html[data-theme=light] :is(.pwa-card p,.pwa-dialog p,.access-note){color:#526047}
html[data-theme=light] .pwa-dialog .pwa-close{color:#233A19;background:#E4E7B5}
html[data-theme=light] .pwa-devices button{color:#233A19;border-color:#c6cfaa}
html[data-theme=light] .pwa-devices button[aria-pressed=true]{background:#E4E7B5;color:#233A19}
html[data-theme=light] .pwa-steps li::marker{color:#426334}
html[data-theme=light] :is(.pwa-install,.pwa-footer button,.access-body button){background:#233A19;color:#fff;border-color:#233A19}
html[data-theme=light] .access-tools summary>span:first-child{color:#426334}
html[data-theme=light] .access-grid select{background:#F8F8ED;color:#233A19;border-color:#c6cfaa}
/* Quran */
html[data-theme=light] :is(.quran-welcome,.quran-welcome h2,.haram-section h2){color:#233A19}
html[data-theme=light] :is(.quran-welcome .eyebrow,.haram-section .eyebrow){color:#426334}
html[data-theme=light] :is(.quran-welcome p,.haram-description){color:#526047}
html[data-theme=light] #q-workspace{--q-bg:#fff;--q-text:#233A19;--q-line:#d3d8b6;background:#fff;color:#233A19;color-scheme:light;box-shadow:0 12px 35px #233a1908}
html[data-theme=light] .q-surah-sidebar{background:#F8F8ED}
html[data-theme=light] :is(.q-surah-sidebar h3,.q-advanced>summary,.q-heading h3,.q-ayah summary){color:#233A19}
html[data-theme=light] :is(.q-toolbar label,.q-advanced-grid label,.q-heading p,.q-ayah details small,.q-tafsir-unavailable,#q-surah-list small){color:#526047}
html[data-theme=light] .q-translated{color:#394b30}
html[data-theme=light] #q-surah-list button[aria-current]{color:#233A19;background:#E4E7B5;border-color:#426334}
html[data-theme=light] :is(.q-advanced,.q-ayah details){background:#F8F8ED}
html[data-theme=light] .q-ayah-meta{color:#426334}
html[data-theme=light] .q-ayah.is-playing{background:#edf3e6;border-inline-start-color:#426334}
html[data-theme=light] #quran .q-player{background:linear-gradient(130deg,#fff,#E4E7B5);color:#233A19;border-color:#c6cfaa;box-shadow:0 10px 30px #233a1908}
html[data-theme=light] #quran :is(.q-audio-emblem,#q-audio-status){color:#426334}
html[data-theme=light] #quran :is(.q-audio-note,.q-audio-times){color:#526047}
html[data-theme=light] .q-audio-modes{background:#fff;border-color:#d3d8b6}
html[data-theme=light] #quran .q-audio-modes button{color:#233A19}
html[data-theme=light] #quran .q-audio-modes button[aria-pressed=true]{background:#233A19;color:#fff}
html[data-theme=light] #quran .q-player select{background:#fff;color:#233A19;border-color:#c6cfaa}
html[data-theme=light] #quran .q-transport button{color:#233A19;border-color:#c6cfaa}
html[data-theme=light] #quran #q-audio-toggle{background:#233A19;color:#171A0D;border-color:#233A19}
html[data-theme=light] #quran .q-verse-actions .q-listen{background:#edf1e1;color:#233A19;border-color:#aabc9d}
html[data-theme=light] .q-player input{accent-color:#426334}
/* Prayer and Qibla retain the actual day/night sky calculation. */
html[data-theme=light] :is(.prayer-section,.prayer-heading h1,.prayer-next-description h2,.prayer-countdown,.prayer-times-heading h2){color:#233A19}
html[data-theme=light] :is(.prayer-heading p,.prayer-location-note,.pq-guidance,.prayer-next-description p,.prayer-remaining,.prayer-countdown-units,.prayer-meta,.prayer-footnote,.prayer-privacy){color:#526047}
html[data-theme=light] :is(.prayer-location,.prayer-next-panel,.prayer-times-panel,.prayer-settings,.prayer-dialog){background:#fff;color:#233A19;border-color:#c6cfaa;box-shadow:0 10px 30px #233a1908}
html[data-theme=light] .prayer-next-panel{background:#E4E7B5}
html[data-theme=light] :is(.prayer-location button,.prayer-heading-mark,.prayer-next-label,.prayer-next-description #prayer-next-label,.prayer-settings summary,.prayer-footnote a){color:#426334}
html[data-theme=light] :is(.prayer-settings label,.prayer-dialog label){color:#394b30}
html[data-theme=light] :is(.prayer-section select,.prayer-section input){background:#F8F8ED;color:#233A19;border-color:#c6cfaa;color-scheme:light}
html[data-theme=light] .prayer-row.is-next{background:#E4E7B5}
html[data-theme=light] .prayer-row :is(strong,time){color:#233A19}
html[data-theme=light] .prayer-row svg{color:#426334}
html[data-theme=light] .prayer-badge{background:#dce8d3;color:#233A19}
html[data-theme=light] :is(.prayer-primary,.pq-start){background:#233A19;color:#171A0D;border-color:#233A19}
html[data-theme=light] :is(.prayer-status-wrap p,#prayer-geo-status){color:#426334}
html[data-theme=light] .prayer-dialog-heading button{background:#E4E7B5;color:#233A19;border-color:#c6cfaa}
html[data-theme=light] .pq-compass{filter:drop-shadow(0 8px 15px #233a1925)}
/* Adhkar and live broadcast */
html[data-theme=light] :is(.adhkar-heading h1,.adhkar-section h2){color:#233A19}
html[data-theme=light] :is(.adhkar-heading p,#adhkar-note){color:#526047}
html[data-theme=light] .adhkar-tabs button{background:#fff;color:#233A19;border-color:#c6cfaa}
html[data-theme=light] .adhkar-tabs button[aria-pressed=true]{background:#233A19;color:#fff}
html[data-theme=light] .dhikr-card{background:#fff;color:#233A19;border-color:#d3d8b6;box-shadow:0 10px 30px #233a1908}
html[data-theme=light] .dhikr-counter{background:#edf1e1;color:#233A19;border-color:#aabc9d}
html[data-theme=light] .dhikr-counter:disabled{background:#E4E7B5;color:#233A19}
html[data-theme=light] .adhkar-section>#adhkar-reset{color:#526047;border-color:#c6cfaa}
html[data-theme=light] .haram-badge{background:#fff;color:#233A19;border-color:#c6cfaa}
html[data-theme=light] .haram-player{box-shadow:0 16px 45px #233a1918;border-color:#c6cfaa}
html[data-theme=light] .haram-links button{background:#fff;color:#233A19;border-color:#c6cfaa}
html[data-theme=light] .haram-links .action{background:#233A19;color:#fff}
html[data-theme=light] .closing-emblem img{mix-blend-mode:normal}
html[data-theme=light] :is(.sheet,.sidebar,.reading-tools,.reading-tools details){background:#fff;color:#233A19;border-color:#d3d8b6}
html[data-theme=light] .reading-tools button{background:#233A19;color:#fff;border-color:#233A19}
html[data-theme=light] .reading-tools .reading-help{color:#526047}
/* The original reader-specific night style follows the global dark selection. */
html[data-theme=dark] body:is([data-page=reader],[data-page=editions]){--paper:#122621;--white:#1c322c;--green:#fbf6e2;--muted:#d6d7c7;--line:#495c4e;background:var(--paper);color:var(--green)}
html[data-theme=dark] .reading-tools{background:#102719;color:#f6e7c6}html[data-theme=dark] .reading-tools details{background:#173522}
html[data-theme=dark] .reading-tools .reading-help{color:#c6c7ad}
@media(min-width:701px){.top .shell{gap:16px}.top .nav{gap:clamp(12px,1.6vw,26px)}}
@media(max-width:700px){
 .top .shell{display:flex;flex-wrap:wrap;gap:7px;justify-content:space-between}.top .brand{margin:0;font-size:.95rem}.top .brand-emblem{width:36px;height:36px}.top #language{width:62px;font-size:.65rem}.theme-switch{padding:2px;gap:0}.theme-switch button{width:30px;height:34px;padding:5px}
 html[data-theme=light] .top .nav{background:#fff}
 html[data-theme=light] .hero .shell{height:auto;padding:0 0 28px}
 html[data-theme=light] .day-scene{order:3;position:relative;inset:auto;z-index:0;width:min(100%,560px);aspect-ratio:1.35;margin-top:6px;overflow:hidden;flex:none}
 html[data-theme=light] .day-scene img{position:absolute;width:187%;height:auto;max-width:none;left:-2%;top:-23%;object-fit:initial;mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 90%,transparent)}
 html[data-theme=light] .hero-languages{margin-top:20px}
 html[data-theme=light] .edition-links a{display:block}
}
@media(max-width:360px){.top .shell{width:calc(100% - 20px);gap:4px}.top .brand{font-size:.85rem}.top .brand-emblem{width:30px}.theme-switch button{width:27px}}

/* Approved cover-ornament logos, on a light tile for legibility in either theme. */
.top .brand img.brand-emblem{width:72px;height:72px;object-fit:contain;mix-blend-mode:normal;flex:none;background:#fff;border-radius:9px;padding:3px}
.pwa-card>img[src="/covers/logo-arabic.png"]{width:110px;height:110px;object-fit:contain;background:#fff;padding:5px;border-radius:12px}
@media(max-width:1100px){.top .brand img.brand-emblem{width:48px;height:48px}}
@media(max-width:700px){.top .brand img.brand-emblem{width:42px;height:42px;padding:2px;border-radius:6px}.pwa-card>img[src="/covers/logo-arabic.png"]{width:90px;height:90px}}

/* Approved pale-sage / forest-green daytime composition. */
html[data-theme=light] .top,html[data-theme=light] body[data-page=home] .top{background:#233A19;color:#E4E7B5}
html[data-theme=light] .top .shell{min-height:86px;border-bottom:0;width:calc(100% - 64px)}
html[data-theme=light] .top .nav a,html[data-theme=light] .top #language,html[data-theme=light] .menu-toggle{color:#E4E7B5}
html[data-theme=light] .top .nav [aria-current]{color:#fff;border-color:#E4E7B5}
html[data-theme=light] .top .brand{background:#E4E7B5;color:#233A19;border-radius:12px;padding:5px 14px;font-size:1.3rem;gap:9px}
html[data-theme=light] .top .brand img.brand-emblem{background:transparent;width:55px;height:55px;padding:0;mix-blend-mode:multiply}
html[data-theme=light] .brand-name small{color:#426334}
html[data-theme=light] .theme-switch{background:transparent;border-color:#E4E7B580}
html[data-theme=light] .theme-switch button{color:#E4E7B5}
html[data-theme=light] .theme-switch [aria-pressed=true]{background:#E4E7B5;color:#233A19}
html[data-theme=light] .hero{background:#E4E7B5}
html[data-theme=light] .hero .action{color:#E4E7B5}
html[data-theme=light] .hero .action-outline{background:#f8f8ed66;color:#233A19;border-color:#233A19}
html[data-theme=light] .hero .action-outline:hover{background:#f8f8edbb}
html[data-theme=light] body[data-page=home] main{background:#F8F8ED}
html[data-theme=light] body[data-page=home] .book-editions{padding-block:26px 40px;max-width:1400px}
html[data-theme=light] .book-editions .section-head{margin-bottom:24px}
html[data-theme=light] .book-editions h2{display:flex;align-items:center;justify-content:center;gap:24px;color:#233A19}
html[data-theme=light] .book-editions h2::before,html[data-theme=light] .book-editions h2::after{content:'';height:2px;width:64px;background:#233A19}
html[data-theme=light] .edition{background:#E4E7B5;border:0;box-shadow:none;border-radius:16px;text-align:center}
html[data-theme=light] .edition:nth-child(even){background:#ebedcc}
html[data-theme=light] .edition::before{content:'';display:block;width:36px;height:36px;margin:0 auto 6px;background:#233A19;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 7C12 3 5 3 2 5v23c4-3 10-3 14 0 4-3 10-3 14 0V5c-4-2-10-2-14 2Zm0 0v21' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
html[data-theme=light] body .edition-links a,html[data-theme=light] body .edition-links a:nth-child(2){background:transparent;color:#233A19;border-color:#233a192c}
html[data-theme=light] :is(.prayer-primary,.pq-start),html[data-theme=light] #quran #q-audio-toggle{color:#E4E7B5}
@media(max-width:1100px){html[data-theme=light] .top .shell{width:calc(100% - 32px);gap:10px}html[data-theme=light] .top .brand{font-size:1rem;padding:5px 8px}html[data-theme=light] .top .brand img.brand-emblem{width:42px;height:42px}}
@media(max-width:700px){html[data-theme=light] .top .shell{min-height:79px;width:calc(100% - 24px);gap:5px}html[data-theme=light] .top .brand{font-size:.95rem;padding:4px 7px;gap:5px}html[data-theme=light] .top .brand img.brand-emblem{width:36px;height:36px}html[data-theme=light] .top .nav{background:#233A19}html[data-theme=light] .hero .shell{background:#E4E7B5}html[data-theme=light] .edition{padding:16px 10px}html[data-theme=light] .book-editions h2{gap:15px}html[data-theme=light] .book-editions h2::before,html[data-theme=light] .book-editions h2::after{width:36px}}

/* Approved original-cover palette logo, circular presentation in both modes. */
html[data-theme] .top .brand img.brand-emblem{border-radius:50%;padding:6px;background:#f8f7e7;mix-blend-mode:normal;box-sizing:border-box;object-fit:contain;border:1px solid #78855538}
html[data-theme] .pwa-card>img[src="/covers/logo-original-colors-round.png"]{width:110px;height:110px;border-radius:50%;padding:10px;background:#f8f7e7;object-fit:contain;box-sizing:border-box;border:1px solid #78855538}
html[data-theme] .pwa-dialog>img{border-radius:50%;background:#f8f7e7;object-fit:contain}
html[data-theme] .closing-emblem img{border-radius:50%;padding:8px;background:#f8f7e7;mix-blend-mode:normal;object-fit:contain}
@media(max-width:700px){html[data-theme] .top .brand img.brand-emblem{padding:4px}html[data-theme] .pwa-card>img[src="/covers/logo-original-colors-round.png"]{width:90px;height:90px;padding:8px}}

html[data-theme] .top .brand img.brand-emblem,html[data-theme] .pwa-card>img[src="/covers/logo-original-colors-round.png"]{padding:0}

@media(min-width:1101px){.edition-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.edition h3[lang=tl]{font-size:1.25rem}}

html[data-theme=light] .pdf-head .volume-links a[aria-current]{background:#E4E7B5;color:#233A19;border-color:#E4E7B5}
@media(min-width:901px){.reader-layout .sidebar h2{font-size:1.1rem;overflow-wrap:normal}}
