/* Compact daily screens; reading controls stay separate from the Quran artwork. */
body[data-page="athan"] #main{padding-bottom:20px}
body[data-page="athan"] .daily-dashboard{margin:18px 0 0;padding:16px 0;border-bottom:0}
body[data-page="athan"] .daily-resume{min-height:52px;padding-block:8px}
body[data-page="athan"] .workspace>footer{padding-top:12px;border-top:0}
.quran-heading{margin-bottom:12px}
.quran-heading h1{margin:0;font-size:30px}
.quran-index-tabs{gap:16px;align-items:center;margin-bottom:16px}
.quran-index-tabs button{padding-inline:2px}
.quran-resume-link{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap;font-size:12px;font-weight:600;text-decoration:none;color:var(--pine);background:var(--soft);padding:0 12px;border-radius:22px}
.quran-search{margin-top:0}
.quran-index-tabs~section[hidden]{display:none}
.reading-credits summary{cursor:pointer;min-height:44px;display:list-item}
.mushaf-reading .reader-topbar{min-height:44px;max-width:620px;margin:auto}
.mushaf-reading .reader-options{max-width:620px;margin-bottom:0}
.mushaf-reading .reader-options>summary{min-height:44px;padding-block:10px}
.mushaf-reading .mushaf-location{max-width:620px;margin:4px auto 10px;font-size:11px}
.mushaf-reading .printed-sheet{padding:8px 8px 4px}
.mushaf-reading .mushaf-folio{font-size:14px;line-height:1.4;margin-top:6px;padding-top:4px;border:0;color:var(--muted)}
.mushaf-reading .quran-player{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:10px 12px;max-height:60svh;overflow:auto}
.quran-player .mushaf-navigation{position:static;inset:auto;width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin:0;padding:0;border:0;background:transparent;z-index:auto}
.quran-player .mushaf-navigation>a:last-child,.quran-player .mushaf-navigation>span:last-child{justify-self:end}
.quran-player .mushaf-navigation>a:first-child,.quran-player .mushaf-navigation>span:first-child{justify-self:start}
.quran-player .mushaf-navigation .btn{min-height:44px;padding:10px 12px;font-size:12px}
.quran-player .mushaf-navigation .reader-play{min-width:64px;max-width:140px;background:var(--pine);color:var(--paper)}
.quran-player .quran-audio-status{font-size:11px;line-height:1.4;text-align:center;margin:2px 0}
.quran-player .audio-options>summary{min-height:32px;padding:6px 0;text-align:center}
.quran-player .audio-options[open]{padding-top:6px}
.quran-player .audio-options h3{margin:8px 0}
.quran-player .audio-options .quran-audio-controls{justify-content:space-between}
.mushaf-reading #mushaf-save-status:empty{display:none}
.mushaf-reading .mushaf-sheet,.mushaf-reading [data-audio-ayah]{scroll-margin-bottom:150px}
@media(max-width:900px){
 body[data-page="athan"] .workspace>footer{padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
 body[data-page="quran"]:not(.mushaf-reading) #main{padding-top:12px}
 body[data-page="quran"]:not(.mushaf-reading) .sidebar{padding-top:14px;padding-bottom:6px}
 body[data-page="quran"]:not(.mushaf-reading) .brand-emblem{height:52px;width:48px;flex-basis:48px;border-radius:14px}
 body[data-page="quran"]:not(.mushaf-reading) .brand .brand-emblem img{height:46px;width:44px}
 body[data-page="quran"]:not(.mushaf-reading) .brand-name{font-size:27px}
 body[data-page="quran"]:not(.mushaf-reading) .workspace>header>div:first-child{display:none}
 .quran-index-tabs{gap:12px;font-size:13px}
 .quran-resume-link{font-size:11px;padding:0 10px}
 .mushaf-reading #nav{display:none}
 .mushaf-reading #main{padding:4px 12px calc(150px + env(safe-area-inset-bottom,0px))}
 .mushaf-reading .quran-player{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:auto}
 .mushaf-reading .quran-player:has(.audio-options[open]){position:fixed;left:10px;right:10px;width:auto;margin:0}
 .mushaf-reading .printed-sheet{max-width:min(100%,calc((100svh - 270px)*.62727));min-width:220px}
 .mushaf-focus #main{padding-top:58px;padding-bottom:20px}
 .mushaf-focus .printed-sheet{max-width:min(620px,calc((100svh - 115px)*.62727));min-width:0}
}

@media(max-width:360px){
 .quran-index-tabs{gap:9px;font-size:12px}
 .quran-resume-link{padding-inline:8px;font-size:10px}
 .quran-player .mushaf-navigation .btn{padding-inline:9px;font-size:11px}
}

/* A compact brand row and giving toolbar leave more room for daily content. */
.settings-gear svg{stroke:currentColor;fill:none}
.settings-gear[aria-current="page"]{background:var(--pine);color:var(--paper);border-color:var(--pine)}
@media(max-width:780px){
 body:not(.mushaf-reading) .sidebar{padding:12px 20px 4px}
 body:not(.mushaf-reading) .brand{gap:10px;min-height:48px}
 body:not(.mushaf-reading) .brand-emblem{width:46px;height:50px;flex-basis:46px;border-radius:14px}
 body:not(.mushaf-reading) .brand .brand-emblem img{width:42px;height:46px}
 body:not(.mushaf-reading) .brand-kicker{font-size:8px;letter-spacing:2.5px;line-height:1.5}
 body:not(.mushaf-reading) .brand-name{font-size:26px;letter-spacing:-.8px}
 body:not(.mushaf-reading) .brand-region{font-size:10px;padding:3px 5px}
 body:not(.mushaf-reading) .brand .brand-wordmark small{display:none}
 body:not(.mushaf-reading) .workspace>header{padding:4px 20px 10px;gap:8px;flex-wrap:nowrap}
 body:not(.mushaf-reading) .workspace>header>div:first-child{display:none}
 body:not(.mushaf-reading) .giving-shortcuts{gap:8px;min-width:0}
 body:not(.mushaf-reading) .giving-shortcuts .donate-link{min-height:44px;padding:0 14px;font-size:12px}
 body:not(.mushaf-reading) .settings-gear{width:44px;min-height:44px;height:44px;flex:0 0 44px;margin:0}
 body:not(.mushaf-reading) #main{padding-top:14px}
 body:not(.mushaf-reading) .page-heading{margin-bottom:18px}
 .reading-credits p{font-size:13px;line-height:1.7}
 .reading-credits .filters{gap:8px}
 .reading-credits .filters button{min-height:44px}
}

/* One sticky header owns the mobile brand and toolbar, so they scroll together. */
.mobile-brand{display:none}
@media(max-width:780px){
 body:not(.mushaf-reading) .sidebar{padding:0}
 body:not(.mushaf-reading) .sidebar>.brand{display:none}
 body:not(.mushaf-reading) .workspace>header{
  position:sticky;top:0;z-index:30;
  display:grid;grid-template-columns:minmax(0,1fr) 44px;
  padding:12px 20px 10px;gap:8px;
  background:var(--paper);border-bottom:1px solid var(--line);
 }
 body:not(.mushaf-reading) .workspace>header .mobile-brand{
  display:flex;grid-column:1/-1;grid-row:1;justify-self:start;
 }
 body:not(.mushaf-reading) .giving-shortcuts{grid-column:1;grid-row:2}
 body:not(.mushaf-reading) .settings-gear{grid-column:2;grid-row:2}
 html:has(body:not(.mushaf-reading)){scroll-padding-top:142px}
 body:not(.mushaf-reading) #main :is(button,input,select,a,summary){scroll-margin-top:142px}
 /* Checkout already has its own scrolling/keyboard lane. Keep its toolbar hidden. */
 body:has(.donation-frame) .workspace>header{display:none}
 body:has(.donation-frame) .sidebar>.brand{display:flex}
 body:has(.donation-frame) .sidebar{padding:12px 20px 8px}
}

/* Compact weekly rows: keep the day, status and time easy to scan. */
body[data-page="education"] .weekly-schedule .class-day{margin-bottom:0;gap:12px}
body[data-page="education"] .weekly-schedule .day-label{padding-top:14px}
body[data-page="education"] .weekly-schedule .day-classes{gap:0}
body[data-page="education"] .weekly-schedule .class-session{
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0;
}
body[data-page="education"] .weekly-schedule .session-top{grid-column:1/-1;flex-wrap:wrap}
body[data-page="education"] .weekly-schedule .class-session h3{grid-column:1;grid-row:2;font-size:18px;line-height:1.4;margin:0}
body[data-page="education"] .weekly-schedule .class-teacher{grid-column:1/-1;grid-row:3;font-size:12px;line-height:1.5;margin:0}
body[data-page="education"] .weekly-schedule .class-time{grid-column:2;grid-row:2;align-self:center;font-size:12px}
body[data-page="education"] .weekly-schedule .children h3{grid-column:1/-1}
body[data-page="education"] .weekly-schedule .children .class-time{grid-column:1/-1;grid-row:4}
@media(max-width:780px){
 body[data-page="education"] .weekly-schedule .class-day{grid-template-columns:36px minmax(0,1fr);gap:10px}
 body[data-page="education"] .weekly-schedule .section-heading{margin-bottom:6px}
 body[data-page="education"] .weekly-schedule .day-label small{margin-top:3px}
 body[data-page="education"] .weekly-schedule .day-label:not(.is-today) small{display:none}
}

/* Keep the direct Tajweed switch accessible in the compact reader toolbar. */
.reader-topbar [data-mushaf-tajweed]{min-height:44px;padding:8px 10px;white-space:nowrap}
.reader-topbar [data-mushaf-tajweed][aria-pressed=true]{background:var(--pine);color:var(--paper);border-radius:12px}

@media(max-width:480px){.mushaf-reading .reader-topbar{display:flex;flex-wrap:wrap;gap:2px;justify-content:space-between;font-size:12px}.reader-topbar .text-button{padding:8px 6px}}

/* Reading refresh: quiet surfaces, optional aids, one compact Settings list. */
.mushaf-basmala{display:block;text-align:center;font-family:'Traditional Arabic','Noto Naskh Arabic',serif;font-size:clamp(24px,5vw,32px);font-weight:400;line-height:2.2;margin:10px 0 20px;color:inherit}
.mushaf-reading .mushaf-surah h2{margin-bottom:8px}
.quran-reading-aids{max-width:620px;margin:20px auto;border-top:1px solid var(--line);padding-top:16px}
.quran-reading-aids[hidden]{display:none}
.quran-reading-aids h2{font-size:20px}
.reading-aid-verse{padding:16px 0;border-bottom:1px solid var(--line)}
.reading-aid-verse p{font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.reading-aid-verse .transliteration{font-weight:600;color:var(--pine)}
.reader-topbar [data-reading-aids]{min-height:44px}
.reader-topbar [aria-expanded=true],.reading-toggles [aria-pressed=true]{background:var(--soft);border-radius:12px;color:var(--pine)}
.mushaf-focus .quran-reading-aids{display:none}
.quran-resume-link{background:var(--pine);color:var(--paper)}
body[data-page=adkar] .page-heading{margin-bottom:12px}
body[data-page=adkar] .page-heading .eyebrow:empty{display:none}
body[data-page=adkar] .adkar-today{padding:12px 0;margin-bottom:16px}
body[data-page=adkar] .adkar-today h2{font-size:18px;margin:4px 0}
body[data-page=adkar] .adkar-collections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-page=adkar] .collection{min-height:0;padding:16px;display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:start;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:18px}
body[data-page=adkar] .collection-symbol{font-size:25px;line-height:1;color:var(--pine)}
body[data-page=adkar] .collection-content{position:static;padding:0;display:flex;flex-direction:column;gap:3px}
body[data-page=adkar] .collection-title{font-size:20px;letter-spacing:-.4px;font-weight:600}
body[data-page=adkar] .collection-content>span:last-child{font-size:12px;color:var(--muted)}
body[data-page=adkar] .collection-footer{position:static;padding:0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--pine)}
body[data-page=adkar] .collection .adkar-ring{width:36px;height:36px;min-width:36px;color:var(--pine)}
body[data-page=adkar] .collection .adkar-ring>span{font-size:11px}
body[data-page=adkar] .collection .adkar-ring small{font-size:8px}
.adhkar-listening{margin-top:16px;border-bottom:1px solid var(--line)}
.adhkar-listening>summary,.benefit-card>summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:600}
.adhkar-listening .play-all-actions{margin:0;padding:8px 0 16px;border:0}
body[data-page=adkar] .library-panel{padding-top:20px}
.reading-toggles{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:16px}
.reading-toggles button{min-height:44px;padding:8px 12px}
.reader-transliteration[hidden],.reader-meaning[hidden]{display:none}
.reader-text:not(:has(>div:not([hidden]))){display:none}
.benefit-card{padding:8px 0;border:0;border-block:1px solid var(--line);background:transparent;box-shadow:none;border-radius:0}
.settings-layout{max-width:680px;display:flex;flex-direction:column;gap:16px}
body[data-page=settings] .settings-group,body[data-page=settings] .settings-disclosure{background:var(--soft);border:1px solid var(--line);border-radius:20px;padding:18px 20px;box-shadow:none;margin:0}
.settings-group h2{font-size:17px;margin:0 0 12px;font-weight:700}
.settings-group .setting-row{min-height:56px;gap:12px;margin:0;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;display:flex;align-items:center;justify-content:space-between}
.settings-group .setting-row>span{min-width:0}
.settings-group select{min-height:44px;max-width:55%;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px;font:inherit}
.settings-group input[type=checkbox]{width:24px;height:24px;flex-shrink:0;accent-color:var(--pine);margin:10px}
.settings-group .fine{font-size:12px;line-height:1.7}
.settings-group [role=status]:empty{display:none}
.settings-disclosure>summary{cursor:pointer;min-height:44px;font-size:16px;font-weight:600}
.settings-disclosure summary small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:4px}
.settings-disclosure .card{background:transparent;border:0;padding:16px 0;box-shadow:none}
.settings-disclosure .reading-credits{padding-block:12px}
.settings-support>a{display:block;min-height:48px;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:14px}
#settings-reminders #native-adhan-lab{margin:0;padding:0;background:transparent;border:0;box-shadow:none}
#settings-reminders #native-adhan-lab h2{font-size:17px}
#settings-reminders #native-adhan-lab p{font-size:13px;line-height:1.7}
@media(max-width:400px){body[data-page=adkar] .collection{padding:14px}body[data-page=adkar] .collection-title{font-size:18px}.settings-group select{font-size:12px}.settings-group .setting-row{font-size:13px}}
.mushaf-reading .mushaf-page-heading{display:none}
.mushaf-reading .mushaf-surah h2{margin-top:12px}
@media(max-width:480px){.mushaf-reading .reader-topbar{flex-wrap:nowrap;gap:2px}.mushaf-reading .reader-topbar .text-button{font-size:11px;padding-inline:5px}}

/* A complete page, with reserved space for controls and device safe areas. */
.mushaf-reading #quran-content.mushaf-fit{position:fixed;inset:0 0 0 260px;z-index:10;box-sizing:border-box;height:100dvh;padding:calc(4px + env(safe-area-inset-top,0px)) 12px calc(6px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:2px;background:var(--paper);overflow:hidden}
.mushaf-fit>.reader-topbar,.mushaf-fit>.reader-options,.mushaf-fit>.mushaf-location{flex-shrink:0;width:100%;max-width:620px;box-sizing:border-box;margin:0 auto}
.mushaf-fit>.reader-options{height:36px;z-index:12}
.mushaf-fit>.reader-options>summary{min-height:36px;padding:6px 0}
.mushaf-fit>.reader-options[open]{position:absolute;top:calc(48px + env(safe-area-inset-top,0px));left:12px;right:12px;width:auto;height:auto;max-height:70%;overflow:auto;padding:8px 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 30px #123a2926}
.mushaf-fit:has(>.reader-options[open])>.reader-topbar{margin-bottom:38px}
.mushaf-fit>.mushaf-location{min-height:18px;line-height:18px;font-size:10px}
.mushaf-fit>.mushaf-page-slot{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;scrollbar-width:none;width:100%;max-width:620px;margin:auto}
.mushaf-fit .mushaf-sheet{width:100%;max-width:620px;box-sizing:border-box;padding:4px 5px;margin:auto;flex-shrink:0;scroll-margin:0}
.mushaf-fit .mushaf-text{font-size:var(--fit-size,20px);line-height:1.85;margin:0;text-align:justify;text-align-last:center}
.mushaf-fit .mushaf-surah h2{font-size:calc(var(--fit-size,20px)*.95);line-height:1.3;padding:3px 8px;margin:3px 0 5px}
.mushaf-fit .mushaf-basmala{font-size:var(--fit-size,20px);line-height:1.6;margin:2px 0 6px}
.mushaf-fit .mushaf-folio{font-size:12px;line-height:16px;margin:4px 0 0;padding:0}
.mushaf-fit .printed-sheet{max-width:100%;min-width:0;padding:4px;border:0;outline:0}
.mushaf-fit>.quran-player,.mushaf-fit>.quran-player:has(.audio-options[open]){position:relative;inset:auto;flex-shrink:0;width:100%;max-width:620px;margin:2px auto 0;padding:6px 8px;gap:0;overflow:visible;box-sizing:border-box;border-radius:16px}
.mushaf-fit .audio-options>summary{min-height:32px;padding:6px 0}
.mushaf-fit .audio-options[open]{position:absolute;bottom:0;left:0;right:0;padding:12px 16px;max-height:65dvh;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;z-index:15;box-shadow:0 -8px 30px #123a2926}
.mushaf-fit:has(.audio-options[open])>.quran-player{padding-bottom:32px}
.mushaf-fit>.quran-reading-aids:not([hidden]){position:absolute;inset:calc(96px + env(safe-area-inset-top,0px)) 10px calc(122px + env(safe-area-inset-bottom,0px));z-index:11;max-width:620px;margin:auto;background:var(--paper);overflow:auto;padding:16px;box-sizing:border-box;border:1px solid var(--line);border-radius:16px;scroll-margin:0}
.mushaf-fit>.fine,.mushaf-fit>.tajweed-status,.mushaf-fit>#mushaf-save-status{flex-shrink:0;font-size:11px;max-height:46px;overflow:auto;margin:0}
.mushaf-fit>.tajweed-status:empty,.mushaf-fit>#mushaf-save-status:empty{display:none}
.mushaf-focus #quran-content.mushaf-fit{left:0;padding-top:calc(58px + env(safe-area-inset-top,0px))}
@media(max-width:900px){.mushaf-reading #quran-content.mushaf-fit{left:0}}
body[data-page=adkar] .collection-footer{margin-top:4px}

.mushaf-fit>.mushaf-page-slot::-webkit-scrollbar{width:0;height:0}

/* Match the approved app icon in the main mobile and desktop headers. */
body .brand .brand-emblem.app-emblem{height:56px;width:56px;flex-basis:56px;aspect-ratio:1;border:0;border-radius:15px;overflow:hidden;background:#0d3c30;box-shadow:0 2px 8px #123a2914}
body .brand .brand-emblem.app-emblem img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:900px){body:not(.mushaf-reading) .brand .brand-emblem.app-emblem{height:44px;width:44px;flex-basis:44px;border-radius:12px}}

/* Reader chrome: a clear page identity and one quiet row of reading tools. */
.mushaf-reading .reader-topbar{display:block;position:sticky;top:0;z-index:12;background:var(--paper);padding:2px 0 8px;max-width:620px;width:100%;box-sizing:border-box;border-bottom:1px solid var(--line)}
.reader-heading-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;margin-bottom:8px;direction:ltr}
.reader-current{text-align:center;min-width:0;line-height:1.35}
.reader-current strong{display:block;font-size:16px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--ink)}
.reader-current>span{display:block;font-size:10px;letter-spacing:.4px;margin-top:3px;color:var(--muted)}
.reader-icon-button{width:44px;height:44px;min-height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--pine);background:transparent;text-decoration:none;cursor:pointer;padding:0}
.reader-icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.reader-icon-button[data-reader-menu] svg{fill:currentColor}
.reader-icon-button[aria-expanded=true]{background:var(--soft)}
.reader-toolbar{display:grid;grid-template-columns:.8fr 1fr 1.4fr;gap:4px;align-items:stretch;padding:3px;background:var(--soft);border-radius:15px}
.mushaf-reading .reader-toolbar .text-button{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0;font:inherit;font-size:12px;font-weight:600;line-height:1.25;padding:6px;border:0;border-radius:11px;text-decoration:none;color:var(--muted);background:transparent;white-space:normal;overflow-wrap:normal}
.mushaf-reading .reader-toolbar [data-mushaf-tajweed][aria-pressed=true],.mushaf-reading .reader-toolbar [data-reading-aids][aria-expanded=true]{background:var(--pine);color:var(--paper);box-shadow:0 2px 5px #123a2912}
.mushaf-reading .reader-toolbar [data-page-fit]{color:var(--pine)}
.mushaf-reading .reader-options:not([open]){display:none}
.mushaf-reading .reader-options[open]{position:fixed;top:calc(58px + env(safe-area-inset-top,0px));left:max(12px,calc(260px + (100vw - 880px)/2));right:12px;width:auto;height:auto;max-width:620px;max-height:70dvh;box-sizing:border-box;margin:0;padding:12px 18px;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 35px #123a2930;z-index:30}
.mushaf-reading .reader-options>summary{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:0;font-size:15px;font-weight:700;list-style:none}
.reader-options>summary::-webkit-details-marker{display:none}
.reader-options>summary span{font-size:24px;font-weight:400;color:var(--muted)}
.mushaf-fit:has(>.reader-options[open])>.reader-topbar{margin-bottom:0}
.mushaf-fit>.quran-reading-aids:not([hidden]){top:calc(116px + env(safe-area-inset-top,0px))}
.reader-icon-button:focus-visible,.reader-toolbar button:focus-visible{outline:2px solid var(--pine);outline-offset:3px}
@media(max-width:900px){.mushaf-reading .reader-options[open]{left:12px;right:12px;margin-inline:auto}}

/* Daily polish: schedules first, fewer competing controls, reachable recitation actions. */
body[data-page=athan] .page-heading .eyebrow,
body[data-page=athan] .page-heading p,
body[data-page=education] .page-heading .eyebrow,
body[data-page=education] .page-heading p,
body[data-page=settings] .page-heading p{display:none}
body[data-page=athan] .page-heading,body[data-page=education] .page-heading{margin-bottom:12px}
body[data-page=education] .education-spotlight{display:none}
body[data-page=education] .education-controls{margin-top:0}
body[data-page=athan] .prayer-spotlight{padding:18px 22px;gap:16px;min-height:0}
body[data-page=athan] .spotlight-copy .live-label{display:none}
body[data-page=athan] .prayer-spotlight h2{font-size:34px;margin:4px 0;line-height:1.2}
body[data-page=athan] .spotlight-time{font-size:28px;line-height:1.3;margin:0}
body[data-page=athan] .spotlight-copy>p{margin:5px 0;font-size:13px}
body[data-page=athan] .spotlight-art{width:100px;min-width:0;gap:8px}
body[data-page=athan] .spotlight-art svg{width:64px;height:64px}
body[data-page=athan] .spotlight-art span{font-size:10px}
body[data-page=athan] .schedule-meta{margin:14px 0;gap:8px}
body[data-page=athan] .schedule-meta strong{font-size:15px}
body[data-page=athan] .prayer-row{padding-block:12px;min-height:52px}
body[data-page=athan] .prayer-layout{gap:18px}
.daily-complete{display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:var(--muted);text-align:end;font-size:11px;max-width:110px}
.daily-complete strong{font-size:26px;line-height:1.2;color:var(--pine)}
body[data-page=adkar] .adkar-today{gap:12px;margin-bottom:12px;padding:10px 0}
body[data-page=adkar] .adkar-today h2{font-size:15px}
.adhkar-favorites{margin-bottom:18px}
.adhkar-favorites h2{font-size:16px;margin:0 0 8px}
.adhkar-favorites>div{display:flex;flex-wrap:wrap;gap:8px}
.adhkar-favorites button{min-height:44px;border:1px solid var(--line);border-radius:14px;padding:8px 12px;background:var(--soft);color:var(--ink)}
.adkar-reader{background:var(--paper);color:var(--ink);border-color:var(--line);overflow:visible}
.adkar-reader .reader-toolbar{background:var(--soft);color:var(--ink);border-radius:18px 18px 0 0;padding:8px 12px}
.adhkar-heading>span{flex:1;text-align:center;font-size:13px;line-height:1.4}
.adhkar-heading small{display:block;font-size:11px;color:var(--muted)}
.adkar-reader .reader-toolbar .text-button{color:var(--pine);min-height:44px}
.adkar-reader .favorite-toggle{min-width:44px;font-size:26px}
.adkar-reader .favorite-toggle[aria-pressed=true]{background:var(--pine);color:var(--paper);border-radius:12px}
.adkar-reader .reader-body{padding:14px 22px 20px;background:var(--paper);color:var(--ink)}
.adkar-reader .reader-arabic{color:var(--ink);margin:22px 0;line-height:2}
.adkar-reader .dhikr-title{margin:10px 0;font-size:22px}
.adkar-reader .reader-meta{margin:14px 0 0}
.adhkar-options>summary,.adhkar-audio>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:13px;font-weight:600}
.adhkar-options{border-bottom:1px solid var(--line)}
.adhkar-options-body{padding:10px 0;display:grid;gap:12px}
.adhkar-options-body select{max-width:100%;min-height:44px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px}
.adhkar-options-body label{margin:0}
.adhkar-options .play-all-reader{margin:0}
.adkar-reader .reading-toggles{gap:4px;margin-bottom:12px}
.adkar-reader .reading-toggles button{font-size:13px}
.adkar-reader .reading-toggles [aria-pressed=true]{background:var(--pine);color:var(--paper)}
.adhkar-audio{border-block:1px solid var(--line);margin:12px 0}
.adhkar-audio .audio-panel{border:0;margin:0;padding:12px 0;background:transparent}
.adhkar-actions{margin-top:20px;padding:10px 12px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 20px #102d2014}
.adhkar-count-row{display:flex;align-items:center;gap:10px}
.adhkar-actions .reader-counter{display:flex;flex-direction:row;flex:1;justify-content:center;gap:12px;margin:0;padding:4px 10px;min-height:56px;border-radius:14px;background:var(--pine);color:var(--paper);font-size:13px}
.adhkar-actions .counter-ring{width:auto;height:auto;padding:0;background:none}
.adhkar-actions .counter-ring strong{background:none;color:inherit;font-size:24px;font-weight:600;white-space:nowrap}
.adhkar-actions .counter-ring small{font-size:12px}
.adhkar-actions .undo-count{margin:0;min-height:48px;min-width:48px;font-size:12px}
.adhkar-actions .reader-navigation{margin-top:8px}
.adhkar-actions .reader-navigation .btn{min-height:44px;flex:1;padding:8px 12px;font-size:13px}
.adkar-reader #favorite-status:empty{display:none}
body[data-page=settings] .settings-layout{gap:10px}
body[data-page=settings] .settings-disclosure{padding:12px 16px;border-radius:16px}
body[data-page=settings] .settings-disclosure>summary{display:list-item;min-height:44px;font-size:15px;line-height:1.4}
body[data-page=settings] .settings-disclosure>summary>span{display:inline-block;vertical-align:middle}
.settings-content{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
.settings-support .settings-content>a{display:block;min-height:44px;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:14px}
.settings-content .text-button{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:780px){
 body[data-page=athan] .page-heading h1,body[data-page=education] .page-heading h1,body[data-page=settings] .page-heading h1{font-size:28px;margin:0}
 body[data-page=athan] .prayer-spotlight{padding:16px 18px}
 body[data-page=athan] .schedule-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
 body[data-page=athan] .schedule-meta small{font-size:11px}
 body[data-page=athan] .synced-label{font-size:10px}
 body[data-page=athan] .spotlight-art{width:84px}
 body[data-page=athan] .prayer-panel .prayer-name strong{font-size:15px}
 body[data-page=adkar]:has(.adkar-reader) #main{padding-inline:12px}
 .adkar-reader .reader-body{padding:12px 16px 170px}
 .adhkar-actions{position:fixed;left:12px;right:12px;bottom:calc(98px + env(safe-area-inset-bottom,0px));z-index:25;margin:0}
 /* Collection playback has its own dock. Leave counts in-flow while it is active. */
 .playlist-active .adhkar-actions{position:static;margin-top:20px}
 .playlist-active .adkar-reader .reader-body{padding-bottom:20px}
 body[data-page=settings] .page-heading{margin-bottom:14px}
 body[data-page=settings] .settings-layout{gap:8px}
}
@media(prefers-reduced-motion:reduce){.adhkar-actions .reader-counter:active{transform:none}}

@media(max-width:780px){body[data-page=athan] .schedule-meta{flex-direction:row;align-items:center}body[data-page=athan] .prayer-table-head{padding-top:10px}body[data-page=athan] .spotlight-art span{margin-top:4px}}
.adkar-reader .reader-meta.repeated-count{display:none}
.mushaf-page-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:620px;min-height:44px;margin:0 auto;padding:4px 8px;border:0;background:transparent;color:var(--pine);text-align:start;flex-shrink:0;cursor:pointer}
.mushaf-footer-surah{display:grid;gap:2px;font-size:13px;min-width:0}
.mushaf-footer-surah small{font:10px/1.3 system-ui}
.mushaf-footer-page{display:flex;align-items:center;gap:12px;border:1px solid var(--pine);border-radius:20px;padding:4px 12px;font:11px/1.5 system-ui;white-space:nowrap}
.mushaf-footer-page b{border-left:1px solid var(--line);padding-left:12px;font-size:13px}
.mushaf-page-footer:focus-visible{outline:2px solid var(--pine);outline-offset:-2px}
.mushaf-reading .mushaf-page-heading,.mushaf-reading .mushaf-folio{display:none}
.mushaf-reading .mushaf-sheet:not(.printed-sheet){border:0;outline:0;box-shadow:none;background:transparent}
.mushaf-focus #quran-content.mushaf-fit{padding:calc(4px + env(safe-area-inset-top,0px)) 12px calc(4px + env(safe-area-inset-bottom,0px))}
.mushaf-focus .focus-exit{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
.mushaf-focus .focus-exit:focus-visible{position:fixed;clip-path:none;width:auto;height:44px;padding:8px 14px;top:env(safe-area-inset-top,0px);right:12px}
.mushaf-focus .mushaf-sheet{padding-inline:0}
.mushaf-focus .mushaf-text{text-align-last:justify;line-height:1.95}
.mushaf-focus .mushaf-surah:last-of-type .mushaf-text{text-align-last:start}
.adkar-reader .adhkar-heading [data-summary]{font-size:0;min-width:44px;padding:8px}
.adkar-reader .adhkar-heading [data-summary]::before{content:'←';font-size:22px}
html[dir=rtl] .adkar-reader .adhkar-heading [data-summary]::before{content:'→'}
@media(max-width:780px){
 /* Focused reading keeps the brand and Settings; Collections returns to the four tabs. */
 body:has(.adkar-reader) .giving-shortcuts,body:has(.adkar-reader) #nav,body:has(.adkar-reader) .workspace>footer{display:none}
 body:has(.adkar-reader) .workspace>header .mobile-brand{grid-column:1;grid-row:1}
 body:has(.adkar-reader) .workspace>header .settings-gear{grid-column:2;grid-row:1}
 body:has(.adkar-reader) #main{padding-top:10px}
 body:has(.adkar-reader) .adhkar-actions{bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 body:has(.adkar-reader) .reader-body{padding-bottom:150px}
 body:has(.adkar-reader) .reader-toolbar{min-height:54px;box-sizing:border-box}
 body:has(.adkar-reader).playlist-active .collection-player{bottom:env(safe-area-inset-bottom,0px)}
 body:has(.adkar-reader).playlist-active .reader-body{padding-bottom:20px}
 body:has(.adkar-reader) #main :is(button,input,select,a,summary){scroll-margin-top:82px}
 .adkar-reader .dhikr-title{margin:8px 0}
 .adkar-reader .reader-arabic{margin:16px 0}
}

/* Preserve the complete printed page, including the opening pages' white space.
   Every page uses the source 345 × 550 canvas; never crop to the ink bounds. */
.mushaf-fit .printed-sheet{box-sizing:content-box;padding:4px;background:transparent;box-shadow:none;flex-shrink:0}
.mushaf-fit .printed-page{width:100%;height:auto;aspect-ratio:345/550;overflow:visible}

/* QCF V4 uses source line numbers and colored glyphs, not paragraph reflow. */
.mushaf-reading .printed-sheet:has(.qcf-page){container-type:inline-size;background:transparent;border:0;outline:0;box-shadow:none}
.qcf-page{width:100%;aspect-ratio:360/660;display:grid;grid-template-rows:repeat(15,minmax(0,1fr));font-size:7cqw;font-weight:400;font-synthesis:none;line-height:1;direction:rtl}
.qcf-line{display:flex;align-items:center;justify-content:space-between;white-space:nowrap;min-width:0;gap:0}
.qcf-word{display:inline-block;white-space:pre;cursor:pointer;line-height:1.6;border-radius:3px;flex-shrink:0}
.qcf-word.is-reciting{background:#77b69b40;box-shadow:0 0 0 2px #77b69b40}
.qcf-word:focus-visible{outline:2px solid var(--pine);outline-offset:3px}
.qcf-heading,.qcf-basmala{font-family:'Traditional Arabic','Noto Naskh Arabic',serif;justify-content:center;color:var(--ink);font-size:6cqw}
.qcf-opening .qcf-line{justify-content:center;gap:1cqw}

/* Line justification changes horizontal spacing, never page-dependent letter height. */
.qcf-line{justify-content:center}
.qcf-line-ink{display:flex;flex-shrink:0;width:max-content;min-width:100%;align-items:center;justify-content:space-between;gap:.2cqw;transform:scaleX(var(--line-scale,1));transform-origin:center}
.qcf-opening .qcf-line-ink{min-width:0;justify-content:center;gap:1cqw}

/* TestFlight feedback: clear destinations and quieter reading controls. */
#nav a svg{width:26px;height:26px;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#nav a span{font-weight:600}
body[data-page=quran]:not(.mushaf-reading) .quran-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.quran-heading .quran-resume-link{font-size:13px;min-height:44px;padding-inline:14px;background:var(--pine);color:var(--paper)}
.quran-index-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:var(--soft);border:0;border-radius:16px;margin:0 0 16px}
.quran-index-tabs button{min-height:44px;margin:0;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:14px;font-weight:600}
.quran-index-tabs button[aria-pressed=true]{background:var(--pine);color:var(--paper);border:0}
.quran-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.quran-search input{margin:0;min-height:48px;border-radius:14px;font-size:15px}
.quran-search{margin:0 0 12px}
.education-visit{padding:16px 0;display:grid;gap:6px;font-size:13px;border-bottom:1px solid var(--line)}
.education-visit strong{font-size:15px}
.education-visit>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--pine);font-weight:600}
.education-visit svg{width:18px;height:18px}
.schedule-details{margin-top:12px;font-size:13px;color:var(--muted)}
.schedule-details>summary{min-height:44px;padding:12px 0;cursor:pointer}
.schedule-details .fine{margin:0}
body[data-page=education] .workspace>footer{padding-top:16px}
.mushaf-reading .quran-player{padding:4px 6px;gap:0;box-shadow:none;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.mushaf-reading .quran-player .quran-audio-status:empty{display:none}
.mushaf-reading .quran-player .mushaf-navigation .btn{padding:8px 10px;min-height:44px;border-radius:12px}
.mushaf-reading .reader-options .audio-options{position:static;inset:auto;max-height:none;padding:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.reader-options .audio-options>summary{min-height:44px;padding:12px 0;font-weight:600;cursor:pointer;text-align:start}
.reader-options .audio-options h3{font-size:16px;margin:8px 0}
.reader-options .quran-audio-controls{display:flex;flex-wrap:wrap;gap:8px}
.reader-options audio{width:100%;margin-top:8px}
.mushaf-focus .quran-player{display:none}
body[data-page=education] #main{padding-bottom:16px}

/* Community brings masjid news and learning into one clear destination. */
body[data-page=education] [data-announcements]{margin:0 0 22px;padding:0 0 18px;border-bottom:1px solid var(--line)}
body[data-page=education] .ann-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
body[data-page=education] .ann-heading h2,.community-section-heading h2{font-size:20px;line-height:1.4;margin:0;font-weight:600}
body[data-page=education] .ann-heading .text-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:12px;white-space:nowrap;color:var(--pine)}
body[data-page=education] .ann-heading svg{width:18px;height:18px;flex-shrink:0}
body[data-page=education] .ann-status{margin:4px 0;font-size:13px}
.community-section-heading{margin-bottom:12px}
body[data-page=education] .weekly-schedule .section-heading h3{margin:0;font-size:16px;font-weight:600}
body[data-page=education] .education-layout{margin-top:20px}
#nav a[href="#education"] span{font-size:11px}

/* Verse-level keyboard and screen-reader controls preserve the printed page layout. */
.qcf-verse-controls{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;list-style:none}
.qcf-verse-controls:focus-within{width:auto;height:auto;max-height:35%;overflow:auto;clip-path:none;white-space:normal;inset:auto 12px 12px;z-index:4;margin:0;padding:8px;background:var(--surface,#f5f1e6);border:2px solid currentColor;border-radius:12px}
.qcf-verse-control{display:block;width:100%;font-family:serif;font-size:20px;line-height:1.8;padding:10px;background:transparent;color:inherit;text-align:right}
.qcf-verse-control:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
html[data-theme=dark] .qcf-verse-controls:focus-within{background:#102d25;color:#f5f1e6}

.qcf-page{position:relative}
