/* Roomy Home only. Reader paper geometry and the existing top logo/navigation are unchanged. */
body.is-home{height:auto;min-height:100dvh;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column}
body.is-home>#main{flex:none;overflow:visible;padding:20px 36px 26px}
body.is-home .home-title{max-width:1640px;min-height:52px;margin:0 auto 18px}.home-title h1{font-size:32px;letter-spacing:-.8px}.home-title p{font-size:14px}
body.is-home .home-refined{max-width:1640px;width:100%;height:auto;min-height:0;flex:none;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);grid-template-rows:auto auto;gap:20px 24px;margin:0 auto}
.home-refined>.home-prayer-card,.home-refined .continue-card,.home-refined>.home-mosque-schema,.home-refined>.home-podcasts{min-width:0;min-height:0;border:1px solid #7694863b;border-radius:21px;background:var(--surface);overflow:hidden;box-shadow:0 8px 28px #0000000c}
.home-refined>.home-prayer-card{grid-column:1;grid-row:1;display:flex;flex-direction:column}.home-refined>.today-aside{grid-column:2;grid-row:1;min-height:0}.home-refined>.home-mosque-schema{grid-column:1;grid-row:2}.home-refined>.home-podcasts{grid-column:2;grid-row:2}
/* The exact supplied photograph, not the cropped reference artwork. */
.home-refined .home-section-head{padding:17px 22px 12px;gap:15px}.home-refined .home-section-head h2{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:550;letter-spacing:-.5px;margin:0}.home-refined .home-section-head h2 svg{width:25px;height:25px;color:#bdd7c9}.home-refined .home-section-head>span{font-size:13px;max-width:42%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-refined .prayer-upcoming{position:relative;isolation:isolate;flex:1;min-height:168px;margin:0 20px 13px;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #b0c9bb4d;border-radius:15px;overflow:hidden;background:linear-gradient(90deg,#061914d9 0%,#0a20198c 48%,#091b1666 100%),url('./home-al-aqsa.jpg') center 44%/cover;color:#f3f7ee}
.home-refined .prayer-upcoming:after{display:none}.home-refined .prayer-upcoming>div{min-width:0}.home-refined .prayer-next-caption{font-size:13px;letter-spacing:.3px;color:#d1e1d5}.home-refined .prayer-next-name{display:block;font-size:35px;line-height:1.2;letter-spacing:-.7px;font-weight:500;margin:7px 0}.home-refined .prayer-upcoming #countdown{margin:0;font-size:15px;line-height:1.5;color:#d9e5d9}.home-refined .prayer-next-time{font-size:65px;line-height:1.05;letter-spacing:-2.4px;font-weight:450;flex:none;font-variant-numeric:tabular-nums;color:#fff}.home-refined .prayer-upcoming.needs-place p{display:none}
.home-refined .prayer-grid{flex:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:8px;min-height:72px;margin:0;padding:0 22px;border:0;overflow:visible}
.home-refined .prayer:nth-child(n){display:flex;flex-direction:column;justify-content:center;gap:6px;padding:11px 5px;border:0;border-radius:10px;min-height:72px;background:#789b820b}.home-refined .prayer:last-child{border:0}.home-refined .prayer>span{font-size:13px;line-height:1.3;color:var(--muted)}.home-refined .prayer strong{font-size:25px;line-height:1.2;font-weight:500;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.home-refined .prayer.next{border-radius:10px;background:#6f9d7620;color:#d4ebd7;border-color:transparent}.home-refined .prayer.next>span{color:#bcdac4}
.home-refined .home-prayer-actions{display:flex;flex-wrap:nowrap;gap:9px;padding:12px 20px 16px}.home-refined .home-prayer-actions>button:nth-child(n){width:auto;min-width:0;flex:1;min-height:39px;padding:8px 10px;font-size:13px;line-height:1.35;gap:5px;border:1px solid var(--line);border-radius:9px;background:transparent}
/* One compact reading CTA, two substantial tools, quiet saved-pages access. */
.home-refined .continue-card{height:100%;display:flex;flex-direction:column;padding:22px 24px;gap:0}.home-refined .quran-card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 16px;flex:none}.home-refined .quran-card-heading h2{display:flex;align-items:center;gap:10px;font-size:25px;line-height:1.3;font-weight:550;letter-spacing:-.5px;margin:0}.home-refined .quran-card-heading h2>svg{width:25px;height:25px;color:#bdd7c9}.quran-heading-end{display:flex;align-items:center;gap:15px}.home-refined .quran-card-mark{font-family:QuranCommon,Uthmanic;font-size:23px;line-height:1.2;color:#c6d9ca}.quran-bookmarks{width:38px;height:38px;min-height:38px;padding:8px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:transparent;color:#b7cebf}.quran-bookmarks>svg{width:20px;height:20px}
.quran-resume{flex:none;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-height:0;padding:0;margin:0 0 18px}.quran-resume>.eyebrow{font-size:12px;line-height:1.4;letter-spacing:.9px;color:var(--muted);margin-bottom:9px}
.home-refined .home-reading-position{display:grid;gap:8px;padding:0;margin:0 0 18px;flex:none;font-size:16px;line-height:1.5}.home-refined .home-reading-position>strong{font-size:37px;line-height:1.15;letter-spacing:-.9px;font-weight:500}.home-refined .home-reading-position>span:last-child{font-size:15px;color:var(--muted)}
.home-refined .quran-resume>a.primary{width:fit-content;min-width:190px;max-width:250px;min-height:44px;display:inline-flex;align-items:center;justify-content:space-between;gap:25px;padding:10px 17px;font-size:15px;border-radius:10px;text-decoration:none}.home-refined .quran-resume>a.primary>svg{width:19px;height:19px}
.home-refined .home-quran-tools{flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:12px;margin:0;padding:0;border:0;box-shadow:none;background:transparent}
.home-refined .home-quran-tool{min-height:74px;min-width:0;display:flex;align-items:center;gap:10px;border:1px solid #75988430;border-radius:12px;padding:12px;background:#71917b0e;text-align:start;color:var(--ink)}.home-refined .home-quran-tool>svg:first-child{width:29px;height:29px;flex:none;color:#c2d9c6}.home-refined .home-quran-tool>span{min-width:0;display:grid;gap:5px}.home-refined .home-quran-tool strong{font-size:18px;font-weight:500;line-height:1.35;overflow-wrap:normal}.home-refined .home-quran-tool small{display:block;font-size:13px;line-height:1.45;color:var(--muted)}.home-refined .home-quran-tool>svg:last-child{width:16px;height:16px;flex:none;margin-inline-start:auto;color:var(--muted)}.home-refined .home-quran-tool:hover{background:#6d9a7034;border-color:#a3c2aa80}
/* Large genuine map and readable directory rows. */
.home-refined>.home-mosque-schema{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:16px;padding:22px;text-decoration:none;color:var(--ink)}
.home-refined .home-mosque-schema>header{display:flex;align-items:center;gap:11px;min-width:0}.home-refined .home-mosque-schema>header>strong{font-size:25px;font-weight:550;line-height:1.3;letter-spacing:-.5px}.home-refined .home-mosque-schema>header>a{display:grid;place-items:center;margin-inline-start:auto;color:var(--muted)}.home-refined .home-mosque-schema>header>a>svg{width:19px;height:19px}.home-refined .mosque-preview-symbol{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--line);background:#62906b1a;color:#c2d9c6}.home-refined .mosque-preview-symbol>svg{width:26px;height:26px}
.home-refined .home-mosque-content{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;min-width:0;min-height:242px}.home-refined .home-map-shell{position:relative;min-width:0;min-height:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#17362e}.home-refined .home-nearby-map{position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0;border-radius:0;background:#18372e}.home-nearby-map .leaflet-control-attribution{font-size:9px}.home-nearby-map .mosque-marker .mosque-symbol{width:20px;height:20px}
.home-refined .home-map-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:13px;padding:20px;background:radial-gradient(ellipse,#45765742,transparent 85%)}.home-refined .home-map-empty>svg{width:46px;height:46px;color:#abcbb6}.home-refined .home-map-empty p{font-size:15px;line-height:1.6;margin:0;color:var(--muted)}.home-refined .home-map-empty>button,.home-refined .home-map-empty>a{min-height:41px;padding:9px 14px;font-size:14px;text-decoration:none;border-radius:9px}
.home-refined .home-mosque-list{min-width:0;min-height:0;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;overflow:hidden}.home-refined .home-mosque-list>button{min-height:0;min-width:0;display:flex;align-items:center;gap:12px;padding:11px 12px;background:#62876d12;border:1px solid #71927e38;border-radius:11px;text-align:start;color:var(--ink)}.home-refined .home-mosque-list>button:hover{background:#6a947829;border-color:#8cae9677}.home-refined .home-mosque-list>button>span:nth-child(2){min-width:0;display:grid;gap:5px}.home-refined .home-mosque-list strong{font-size:17px;line-height:1.35;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;text-overflow:ellipsis}.home-refined .home-mosque-list small{display:block;font-size:13px;line-height:1.45;color:var(--muted);white-space:normal;overflow:hidden;text-overflow:ellipsis}.home-refined .home-mosque-list>button small:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.home-refined .home-mosque-list>button>svg{width:16px;height:16px;flex:none;margin-inline-start:auto;color:var(--muted)}.home-refined .home-mosque-thumb{width:42px;height:48px;display:grid;place-items:center;flex:none;border-radius:10px;background:#547e5b2c;color:#bdd7bf}.home-refined .home-mosque-thumb>svg{width:32px;height:32px}
.home-refined .home-mosque-list:has(>p){display:flex;flex-direction:column;justify-content:center;gap:16px}.home-refined .home-mosque-list>p{font-size:18px;line-height:1.5;margin:0;color:var(--ink)}.home-refined .home-mosque-list>small{font-size:14px;line-height:1.7;white-space:normal;overflow:visible}
.home-refined .mosque-home-open{display:flex;align-items:center;justify-content:center;gap:11px;min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:9px;font-size:14px;line-height:1.5;text-decoration:none;color:var(--ink)}.home-refined .mosque-home-open>svg{width:18px;height:18px}.home-refined .mosque-home-open>svg:first-child{margin-inline-end:auto}.home-refined .mosque-home-open>svg:last-child{margin-inline-start:auto}
.mosque-map .mosque-marker.is-my-mosque{background:#b24743;border-color:#ffded5;color:#fff7f4;box-shadow:0 0 0 3px #b2474330,0 3px 9px #0005}
/* Real transport: optical play centering and enough room to read the title. */
.home-refined>.home-podcasts{display:flex;flex-direction:column;gap:16px;padding:22px}.home-refined .home-podcasts>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;min-height:35px;flex:none}.home-refined .home-podcasts>header>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.home-refined .home-podcasts>header>div:first-child>svg{display:inline;width:25px;height:25px;color:#bdd7c9}.home-refined .home-podcasts h2{font-size:25px;line-height:1.3;font-weight:550;letter-spacing:-.5px;margin:0}.home-refined .podcast-heading-long{display:inline}.home-refined .podcast-heading-short{display:none}
.podcast-header-actions{display:flex;align-items:center;gap:6px;flex:none}.podcast-header-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:6px 8px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:14px;color:var(--muted)}.podcast-header-actions>button[hidden]{display:none}.podcast-header-actions>button:hover{background:#729a7b1c;border-color:var(--line)}.podcast-header-actions .podcast-view-button{width:33px;padding:5px}.podcast-header-actions>button svg{width:18px;height:18px}
.home-refined .podcast-home-body{flex:none;min-height:0;display:flex;flex-direction:column;gap:16px;overflow:visible}.podcast-home-current{flex:none;min-width:0}.podcast-player-empty{display:flex;gap:14px;align-items:center;min-height:83px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#729a7b14}.podcast-player-empty>svg{width:39px;height:39px;flex:none;color:#b4d0ba}.podcast-player-empty>div{display:grid;gap:6px}.podcast-player-empty strong{font-size:17px;font-weight:500;line-height:1.4}.podcast-player-empty small{font-size:14px;line-height:1.5;color:var(--muted)}
.podcast-player-designed{display:flex;flex-direction:column;gap:11px;margin:0;padding:0;min-height:0;width:100%}.podcast-now{display:flex;align-items:center;gap:13px;min-width:0}.podcast-cover{width:49px;height:49px;display:grid;place-items:center;flex:none;border:1px solid #759b7b70;border-radius:12px;background:linear-gradient(135deg,#3c664c,#1c4033);color:#d5e7cf}.podcast-cover>svg{width:28px;height:28px}.podcast-now>div{min-width:0}.podcast-player-designed .podcast-now-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;font-size:17px;line-height:1.4;font-weight:500;margin:0 0 4px}.podcast-now-artist{display:block;font-size:14px;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.podcast-timeline{min-width:0}.podcast-player-designed input[data-podcast-seek]{display:block!important;min-height:0!important;height:5px!important;width:100%;appearance:none;border:0;border-radius:20px;padding:0;margin:8px 0 8px;background:linear-gradient(to right,#bbd7bf var(--progress,0%),#5e806b55 var(--progress,0%));cursor:pointer;accent-color:#d0e3cc}.podcast-player-designed input[data-podcast-seek]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border:0;border-radius:50%;background:#dae9d4}.podcast-player-designed input[data-podcast-seek]::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#dae9d4}.podcast-clock{display:flex;justify-content:space-between;align-items:center;font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--muted)}
.podcast-controls-row{display:flex;align-items:center;justify-content:center;gap:17px}.podcast-player-designed .podcast-transport{display:flex;align-items:center;justify-content:center;gap:8px}.podcast-player-designed .podcast-transport>button{display:grid!important;place-items:center;width:33px;min-height:37px;height:37px;padding:4px;border:0;border-radius:50%;background:transparent;color:var(--muted);line-height:0}.podcast-player-designed .podcast-transport>button>svg{display:block;width:21px;height:21px}.podcast-player-designed .podcast-transport>button[data-podcast=backward]>svg,.podcast-player-designed .podcast-transport>button[data-podcast=forward]>svg{width:28px;height:28px}
.podcast-player-designed .podcast-transport>.podcast-toggle,.home-refined .podcast-player-designed .podcast-transport>.podcast-toggle{display:grid!important;place-items:center;align-items:center;justify-content:center;width:52px;height:52px;min-width:52px;min-height:52px;padding:0;border:1px solid #e1ecdc;border-radius:50%;background:#d6e5cf;color:#17392b;box-shadow:0 4px 16px #0002;line-height:0}.podcast-player-designed .podcast-transport>.podcast-toggle>svg{width:24px;height:24px;margin:0;flex:none}.podcast-toggle[data-state=paused]>svg{transform:translateX(1px);fill:currentColor;stroke-width:1.2}.podcast-toggle[data-state=playing]>svg{transform:none;fill:none;stroke-width:2.4}.podcast-player-designed .podcast-speed{display:block!important;margin:0}.podcast-speed select{width:65px;min-height:35px;padding:6px 20px 6px 8px;border:1px solid var(--line);border-radius:9px;font-size:13px;background:transparent;color:var(--muted)}
.home-refined .podcast-player-designed:has(.podcast-error) .podcast-timeline,.home-refined .podcast-player-designed:has(.podcast-error) .podcast-controls-row{display:none}.podcast-error{font-size:14px;line-height:1.5;color:#e5bfae;margin:3px 0}.podcast-publisher-link{display:inline-block;font-size:13px;line-height:1.5;margin:3px 0;color:#bdd7c4}
.podcast-home-tabs{display:flex;gap:22px;align-items:center;flex:none;border-bottom:1px solid var(--line)}.podcast-home-tabs>button{min-height:34px;padding:6px 0 8px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;font-size:14px;line-height:1.4;color:var(--muted)}.podcast-home-tabs>button[aria-pressed=true]{color:var(--ink);border-bottom-color:#b6d4bd}
.home-refined .podcast-latest-grid{display:flex;flex-direction:column;flex:none;min-height:0;gap:8px;overflow:visible;scrollbar-width:none}.home-refined .podcast-recent-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;flex:none;min-width:0;min-height:60px;padding:9px 10px;gap:3px 11px;border:1px solid var(--line);border-radius:10px;background:#6b947418;text-align:start;color:var(--ink)}.home-refined .podcast-recent-card:hover{background:#6b947430;border-color:#a2bca76b}.home-refined .recent-card-top{grid-column:1;grid-row:1/span 2;display:grid;place-items:center;align-self:stretch;border-radius:7px;background:#79a78220;color:#b8d7c0}.home-refined .recent-card-top>svg{width:16px;height:16px}.home-refined .recent-card-number{display:none}.home-refined .podcast-recent-card>strong{grid-column:2;grid-row:1;display:block;min-height:0;max-height:none;font-size:15px;font-weight:500;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-refined .podcast-recent-card>small{grid-column:2;grid-row:2;font-size:12px;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-refined .recent-card-meta{grid-column:3;grid-row:1/span 2;display:grid;gap:6px;text-align:end;font-size:11px;line-height:1.3;color:var(--muted)}
/* Shared dialogs keep genuine source content; no generated religious text. */
.home-quran-dialog{display:grid;gap:15px}.home-quran-dialog>.source{font-size:14px;line-height:1.7}.home-quran-dialog>label>input{width:100%;font-size:16px;padding:12px}.home-quran-results{display:grid;gap:9px;max-height:58dvh;overflow:auto}.home-quran-results article{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:11px;padding:5px}.home-quran-results article>button:first-child{flex:1;min-width:0;display:grid;gap:6px;padding:11px;border:0;background:transparent;color:var(--ink);text-align:start}.home-quran-results strong{font-size:17px;font-weight:500;line-height:1.5}.home-quran-results small{font-size:13px;line-height:1.5;color:var(--muted)}.home-quran-results p{font-size:14px;line-height:1.7;margin:0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.legacy-bookmarks{padding-top:7px}.legacy-bookmarks>summary{font-size:13px;color:var(--muted);cursor:pointer}.legacy-bookmarks .home-quran-results{margin-top:10px}
#podcast-library .podcast-library-player{padding-top:16px}#podcast-library .podcast-player-designed{gap:10px}.podcast-save[aria-pressed=true]{background:#719d7740;color:#d3e7d1}.podcast-save>svg{width:20px;height:20px}
/* Page-corner ribbons are positioned from real paper bounds, outside glyph flow. */
.reader-page-bookmarks{position:fixed;inset:0;z-index:25;pointer-events:none}.reader-page-bookmarks[hidden]{display:none}.reader-page-bookmarks>.page-bookmark{position:fixed;pointer-events:auto;width:28px;height:33px;min-width:28px;min-height:33px;display:grid;place-items:center;padding:4px;border:1px solid #536c5a;border-radius:5px 5px 3px 3px;background:#e0ead9;color:#375440;box-shadow:0 2px 5px #0002;line-height:0}.reader-page-bookmarks>.page-bookmark>svg{display:block;width:19px;height:22px}.reader-page-bookmarks>.page-bookmark.is-saved{background:#487051;color:#f4f8ed;border-color:#35583d}.page-bookmark.is-saved>svg{fill:currentColor;fill-opacity:.28}.page-bookmark:focus-visible{outline:2px solid #a77934;outline-offset:2px}
@media(max-width:1250px) and (min-width:761px){body.is-home>#main{padding-inline:24px}.home-refined .home-podcasts h2,.home-refined .home-mosque-schema>header>strong{font-size:22px}.home-refined .home-mosque-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.home-refined .home-mosque-thumb{display:none}.home-refined .home-mosque-list strong{font-size:16px}.home-refined .home-mosque-list small{font-size:12px}.home-refined .prayer strong{font-size:22px}.home-refined .prayer>span{font-size:12px}.home-refined .home-quran-tool{padding:12px 10px;gap:9px}.home-refined .home-quran-tool strong{font-size:16px}.home-refined .home-quran-tool small{font-size:12px}.home-refined .quran-card-heading{gap:8px}.home-refined .quran-card-mark{font-size:19px}.quran-heading-end{gap:8px}}
@media(max-width:1000px) and (min-width:761px){.home-refined .home-quran-tool>svg:last-child{display:none}.home-refined .home-quran-tools{gap:8px}.home-refined .home-reading-position>strong{font-size:32px}.home-refined .prayer-next-time{font-size:51px}.home-refined .home-mosque-content{grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}.home-refined .home-podcasts>header>div:first-child>svg{display:none}.home-refined .home-podcasts h2{font-size:20px}.home-refined .podcast-header-actions>button{font-size:12px}.home-refined .quran-card-heading h2{font-size:21px}}
@media(max-width:760px){body.is-home>#main{padding:15px 13px 24px}.home-title h1{font-size:27px}.home-title p{font-size:12px}.home-title .place-button{max-width:147px}.home-refined .home-title{margin-bottom:14px}body.is-home .home-refined{height:auto;min-height:0;display:flex;flex-direction:column;gap:16px}.home-refined>.home-prayer-card{min-height:390px}.home-refined>.today-aside{min-height:345px}.home-refined .continue-card{min-height:345px}.home-refined>.home-mosque-schema{height:445px;min-height:445px}.home-refined>.home-podcasts{height:470px;min-height:470px}.home-refined .home-section-head{padding:15px 16px 11px}.home-refined .home-section-head h2{font-size:22px;gap:8px}.home-refined .home-section-head>span{font-size:11px}.home-refined .prayer-upcoming{min-height:153px;margin:0 14px 11px;padding:20px 17px}.home-refined .prayer-next-name{font-size:29px}.home-refined .prayer-next-time{font-size:49px;letter-spacing:-1.5px}.home-refined .prayer-next-caption{font-size:12px}.home-refined .prayer-upcoming #countdown{font-size:13px}.home-refined .prayer-grid{min-height:102px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));padding:0 14px;gap:4px}.home-refined .prayer:nth-child(n){border:0;gap:4px;padding:6px 3px}.home-refined .prayer>span{font-size:12px}.home-refined .prayer strong{font-size:24px}.home-refined .home-prayer-actions{padding:10px 14px 14px;gap:6px}.home-refined .home-prayer-actions>button:nth-child(n){font-size:11px;min-height:36px;padding:6px}
.home-refined .continue-card{display:flex;padding:18px 18px}.home-refined .quran-card-heading{margin-bottom:15px}.home-refined .quran-card-heading h2{font-size:23px}.home-refined .quran-card-mark{font-size:19px}.quran-heading-end{gap:9px}.home-refined .quran-resume{padding-bottom:19px}.home-refined .home-reading-position{margin-bottom:14px;gap:7px}.home-refined .home-reading-position>strong{font-size:34px}.home-refined .home-reading-position>span:last-child{font-size:14px}.home-refined .quran-resume>a.primary{min-width:177px;min-height:43px;font-size:14px}.home-refined .home-quran-tools{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:9px;margin:0;padding:0}.home-refined .home-quran-tool{min-height:86px;gap:8px;padding:11px 9px}.home-refined .home-quran-tool>svg:first-child{width:23px;height:23px}.home-refined .home-quran-tool>svg:last-child{display:none}.home-refined .home-quran-tool strong{font-size:15px}.home-refined .home-quran-tool small{display:block;font-size:11px;line-height:1.4}
.home-refined>.home-mosque-schema{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 165px minmax(0,1fr) auto;padding:16px;gap:12px}.home-refined .home-mosque-schema>header{grid-row:1}.home-refined .home-mosque-schema>header>strong{font-size:22px}.home-refined .home-mosque-content{display:contents}.home-refined .home-map-shell{grid-row:2}.home-refined .home-mosque-list{grid-row:3;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}.home-refined .home-mosque-list>button{padding:5px 7px;gap:8px}.home-refined .home-mosque-thumb{width:28px;height:33px;border-radius:7px}.home-refined .home-mosque-thumb>svg{width:23px;height:23px}.home-refined .home-mosque-list strong{font-size:14px;-webkit-line-clamp:1;white-space:nowrap;display:block;text-overflow:ellipsis}.home-refined .home-mosque-list small{font-size:11px;line-height:1.3}.home-refined .home-mosque-list>button>span:nth-child(2){gap:2px}.home-refined .home-mosque-list>button small:last-child{display:none}.home-refined .home-mosque-list:has(>p){display:flex;gap:9px}.home-refined .home-mosque-list>p{font-size:15px}.home-refined .home-mosque-list>small{font-size:12px;line-height:1.5}.home-refined .mosque-home-open{grid-row:4;display:flex;font-size:13px;min-height:37px;padding:7px}
.home-refined>.home-podcasts{padding:17px 16px;gap:11px}.home-refined .home-podcasts h2{font-size:22px}.home-refined .home-podcasts>header>div:first-child>svg{display:none}.home-refined .podcast-heading-long{display:none}.home-refined .podcast-heading-short{display:inline}.podcast-header-actions>button{font-size:13px}.home-refined .podcast-home-body{gap:9px}.home-refined .podcast-player-designed{display:flex;flex-direction:column;gap:9px}.home-refined .podcast-now-title{font-size:16px}.home-refined .podcast-now-artist{font-size:12px}.home-refined .podcast-cover{width:41px;height:41px}.home-refined .podcast-controls-row{gap:10px}.home-refined .podcast-player-designed .podcast-transport{gap:5px}.home-refined .podcast-player-designed .podcast-transport>button{width:27px;height:32px;min-height:32px}.home-refined .podcast-player-designed .podcast-transport>.podcast-toggle{width:48px;min-width:48px;height:48px;min-height:48px}.home-refined .podcast-speed select{width:57px;font-size:12px;min-height:32px}.home-refined .podcast-home-tabs{gap:18px}.home-refined .podcast-home-tabs>button{font-size:13px;min-height:31px}.home-refined .podcast-latest-grid{display:flex;flex-direction:column;grid-auto-flow:unset;overflow-x:hidden;overflow-y:auto;min-height:55px}.home-refined .podcast-recent-card{min-height:56px;padding:7px;grid-template-columns:27px minmax(0,1fr) auto;gap:3px 8px}.home-refined .podcast-recent-card>strong{font-size:13px}.home-refined .podcast-recent-card>small{font-size:11px}.home-refined .recent-card-meta{font-size:10px}.home-refined .recent-card-top{display:grid}.home-refined .podcast-player-empty{min-height:79px;padding:11px}.home-refined .podcast-player-empty strong{font-size:15px}.home-refined .podcast-player-empty small{font-size:12px}}
@media(max-width:360px){.home-refined .quran-card-mark{display:none}.home-refined .quran-card-heading h2{font-size:22px}.home-refined .home-quran-tool strong{font-size:13px}.home-refined .home-quran-tool small{font-size:10px}.home-refined .home-mosque-schema>header>strong{font-size:20px}.home-refined .podcast-player-designed .podcast-transport>[data-podcast=previous],.home-refined .podcast-player-designed .podcast-transport>[data-podcast=next]{display:none!important}.home-refined .podcast-controls-row{gap:15px}.home-refined .prayer-next-time{font-size:43px}.home-refined .prayer-next-name{font-size:26px}}

.home-refined .home-mosque-list>button{padding-block:6px}.home-refined .home-mosque-list>button>span:nth-child(2){gap:5px}.home-refined .home-mosque-list>button small:last-child{display:none}.home-refined .home-mosque-list>button small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:760px){.home-refined .quran-card-mark{display:none}.home-refined .quran-card-heading h2{white-space:nowrap}.home-refined .quran-card-heading{flex-wrap:nowrap}}

.home-refined .home-prayer-actions>button[data-action=location]:nth-child(n){background:#d3e4cc;color:#17382b;border-color:#b7cbae;font-weight:550}

/* Focused polish: same four widgets, shared rhythm, no structural redesign. */
.home-refined{--dashboard-padding:22px;--dashboard-group:18px;--dashboard-small:8px;--dashboard-radius:20px;--dashboard-border:#76948630}
.home-refined>.home-prayer-card,.home-refined .continue-card,.home-refined>.home-mosque-schema,.home-refined>.home-podcasts{border-radius:var(--dashboard-radius);border-color:var(--dashboard-border);box-shadow:0 5px 20px #00000009}
.home-refined .prayer-grid{align-items:stretch;gap:8px}
.home-refined .prayer:nth-child(n){height:84px;min-height:84px;display:grid;grid-template-rows:28px 30px;align-content:center;justify-items:center;gap:6px;padding:10px 5px;border:0!important;border-radius:10px;background:#789b820b;box-shadow:none}
.home-refined .prayer>span{display:flex;align-items:flex-end;justify-content:center;width:100%;height:28px;font-size:12px;line-height:14px;font-weight:400;color:var(--muted);text-align:center}
.home-refined .prayer strong{font-size:25px;line-height:30px;letter-spacing:-.5px;font-weight:500}
.home-refined .prayer.next{background:#6f9d7620;color:#d4ebd7}.home-refined .prayer.next>span{color:#bdd7c5}
.home-refined .continue-card{padding:22px 24px;justify-content:flex-start}
.home-refined .quran-card-heading{margin-bottom:16px}.home-refined .quran-resume{flex:none;justify-content:flex-start;padding:0;min-height:0;margin:0 0 18px}
.home-refined .quran-resume>.eyebrow{margin-bottom:8px}.home-refined .home-reading-position{gap:6px;margin-bottom:16px}
.home-refined .home-quran-tools{border:0!important;padding:0;margin:0;gap:12px;background:none;box-shadow:none}
.home-refined .home-quran-tools:before,.home-refined .home-quran-tools:after,.home-refined .home-quran-tool:before,.home-refined .home-quran-tool:after{content:none!important;display:none!important}
.home-refined .home-quran-tool{min-height:72px;padding:12px;gap:10px;border-radius:12px;background:#71917b0e;background-image:none;box-shadow:none;border-color:#75988430}
.home-refined .home-quran-tool>svg:first-child{width:25px;height:25px}.home-refined .home-quran-tool strong{font-size:17px;font-weight:500}.home-refined .home-quran-tool small{font-size:13px}
.home-refined>.home-mosque-schema{gap:16px;padding:22px;align-items:stretch}.home-refined .home-mosque-content{gap:16px;align-items:stretch;min-height:242px}
.home-refined .home-mosque-list{gap:8px}.home-refined .home-mosque-list>button{min-height:76px;padding:10px 12px;border-radius:12px;border-color:var(--dashboard-border);background:#62876d0d}.home-refined .home-mosque-list>button>span:nth-child(2){gap:6px}
.home-refined .mosque-home-open{min-height:36px;padding:7px 12px;font-size:13px;border-color:var(--dashboard-border);border-radius:10px}
.home-refined>.home-podcasts{gap:16px;padding:22px}.home-refined .podcast-home-body{flex:none;gap:16px;overflow:visible}
.home-refined .podcast-player-designed{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 12px}
.home-refined .podcast-now{grid-column:1;grid-row:1;gap:10px}.home-refined .podcast-cover{width:40px;height:40px;border-radius:10px}.home-refined .podcast-cover>svg{width:23px;height:23px}
.home-refined .podcast-player-designed .podcast-now-title{font-size:16px;line-height:1.35;margin-bottom:4px}.home-refined .podcast-now-artist{font-size:12px}
.home-refined .podcast-timeline{grid-column:1/-1;grid-row:2}.home-refined .podcast-controls-row{grid-column:2;grid-row:1;gap:10px}.home-refined .podcast-player-designed .podcast-transport{gap:6px}
.home-refined .podcast-player-designed .podcast-transport>button{width:28px;height:32px;min-height:32px;padding:3px}
.home-refined .podcast-player-designed .podcast-transport>.podcast-toggle{width:44px;height:44px;min-width:44px;min-height:44px;padding:0}.home-refined .podcast-player-designed .podcast-toggle>svg{width:22px;height:22px}
.home-refined .podcast-speed select{width:58px;min-height:31px;font-size:12px;padding:5px 17px 5px 7px}.home-refined .podcast-clock{font-size:12px}
.home-refined .podcast-player-designed input[data-podcast-seek]{margin:6px 0}
.home-refined .podcast-latest-grid{display:flex;flex-direction:column;flex:none;gap:8px;min-height:0;overflow:visible;scrollbar-width:none}
.home-refined .podcast-latest-grid::-webkit-scrollbar{display:none}.home-refined .podcast-recent-card{min-height:54px;padding:7px 9px;border-radius:10px;border-color:var(--dashboard-border);gap:3px 10px}.home-refined .podcast-home-tabs>button{min-height:30px;padding:4px 0 7px;font-size:13px}
@media(max-width:1250px) and (min-width:761px){.home-refined .podcast-cover{display:none}.home-refined .podcast-player-designed .podcast-now-title{font-size:15px}.home-refined .podcast-transport{gap:4px}.home-refined .podcast-controls-row{gap:7px}}
@media(max-width:760px){
 .home-refined>.today-aside,.home-refined .continue-card{min-height:0}.home-refined .continue-card{height:auto;padding:20px}.home-refined .quran-resume{padding:0;margin-bottom:18px}
 .home-refined .home-quran-tool{min-height:68px;padding:11px 10px;gap:8px}.home-refined .home-quran-tool strong{font-size:15px}.home-refined .home-quran-tool small{font-size:12px}
 .home-refined .prayer:nth-child(n){height:78px;min-height:78px;grid-template-rows:26px 28px;gap:6px;padding:9px 4px}.home-refined .prayer>span{height:26px;font-size:12px;line-height:13px}.home-refined .prayer strong{font-size:24px;line-height:28px}
 .home-refined>.home-mosque-schema{height:auto;min-height:0;padding:20px;grid-template-rows:auto 170px auto auto;gap:16px}.home-refined .home-mosque-content{min-height:0}.home-refined .home-mosque-list{gap:8px}.home-refined .home-mosque-list>button{min-height:68px;padding:8px 10px}
 .home-refined>.home-podcasts{height:auto;min-height:0;padding:20px;gap:16px}.home-refined .podcast-home-body{gap:16px;overflow:visible}.home-refined .podcast-player-designed{display:flex;flex-direction:column;gap:8px}.home-refined .podcast-player-designed .podcast-now-title{font-size:16px}.home-refined .podcast-controls-row{gap:10px}.home-refined .podcast-latest-grid{display:flex;flex-direction:column;min-height:0;overflow:visible;gap:8px}
 .home-refined .podcast-recent-card{min-height:54px}.home-refined .podcast-recent-card>strong{font-size:13px}
}

/* Position the unchanged Home block within the space below the original navbar. */
body.is-home>.top{margin-block:0}
body.is-home>#main{flex:1 0 auto;justify-content:safe center}
@media(min-width:761px){body.is-home>#main{padding-block:20px}}

/* Height-aware desktop density. No global scale, hidden records or forced clipping. */
@media(min-width:1100px) and (max-height:1120px){
 body.is-home>#main{padding-block:12px}
 body.is-home .home-title{min-height:40px;margin-bottom:12px}
 body.is-home .home-title>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px}
 body.is-home .home-title h1{font-size:28px;line-height:1.1;margin:0}
 body.is-home .home-title p{margin:0;font-size:14px}
 body.is-home .home-refined{gap:16px 24px}
 .home-refined .home-section-head{padding:12px 18px 10px}
 .home-refined .prayer-upcoming{flex:1 0 auto;min-height:132px;margin:0 18px 8px;padding:16px 20px}
 .home-refined .prayer-next-name{font-size:32px;margin:5px 0}.home-refined .prayer-next-time{font-size:58px}
 .home-refined .prayer-grid{padding-inline:18px;min-height:66px}
 .home-refined .prayer:nth-child(n){height:66px;min-height:66px;grid-template-rows:26px 30px;gap:4px;padding:3px 5px}
 .home-refined .prayer>span{height:26px;line-height:13px}
 .home-refined .home-prayer-actions{padding:10px 18px 12px;gap:8px}
 .home-refined .home-prayer-actions>button:nth-child(n){min-height:36px;padding:7px 9px}
 .home-refined .prayer strong{margin:0}
 .home-refined .quran-resume>a.primary{margin-top:0}
 .home-refined .continue-card{padding:18px 20px}.home-refined .quran-card-heading{margin-bottom:12px}
 .home-refined .quran-resume{margin-bottom:12px}.home-refined .quran-resume>.eyebrow{margin-bottom:6px}
 .home-refined .continue-card .home-reading-position{margin-bottom:12px;gap:6px}.home-refined .home-quran-tool{min-height:64px;padding:10px;gap:8px}
 .home-refined .home-quran-tool>span{gap:4px}
 .home-refined>.home-mosque-schema,.home-refined>.home-podcasts{padding:18px;gap:12px}
 .home-refined .home-mosque-schema .mosque-preview-symbol{width:34px;height:34px;border-radius:10px}.home-refined .home-mosque-schema .mosque-preview-symbol>svg{width:25px;height:25px}
 .home-refined .home-mosque-content{min-height:192px;gap:12px}.home-refined .home-mosque-list{gap:6px}
 .home-refined .home-mosque-list>button{min-height:60px;padding:8px 10px;gap:8px}
 .home-refined .home-mosque-thumb{width:32px;height:38px}.home-refined .home-mosque-thumb>svg{width:26px;height:26px}
 .home-refined .home-mosque-list strong{font-size:16px}.home-refined .home-mosque-list small{font-size:12px}
 .home-refined .home-mosque-list>button>span:nth-child(2){gap:4px}
 .home-refined .mosque-home-open{min-height:34px;padding:6px 11px}
 .home-refined .home-map-empty{padding:14px;gap:8px}.home-refined .home-map-empty>svg{width:34px;height:34px}.home-refined .home-map-empty p{font-size:14px;line-height:1.45}
 .home-refined .podcast-home-body{gap:12px}.home-refined .podcast-latest-grid{gap:6px}
 .home-refined .podcast-recent-card{min-height:50px;padding:5px 9px}
 .home-refined .podcast-player-empty{min-height:70px;padding:12px;gap:10px}.home-refined .podcast-player-empty strong{font-size:16px}.home-refined .podcast-player-empty small{font-size:13px}
}
@media(min-width:1100px) and (max-height:950px){
 body.is-home>#main{padding-block:8px}.home-refined .home-section-head{padding:10px 16px 8px}
 body.is-home .home-title{min-height:36px;margin-bottom:8px!important}body.is-home .home-title h1{font-size:27px}
 body.is-home .home-refined{gap:12px 20px}
 .home-refined .prayer-upcoming{min-height:116px;margin-inline:16px;padding:12px 16px}
 .home-refined .prayer-next-name{font-size:30px}.home-refined .prayer-next-time{font-size:54px}
 .home-refined .home-prayer-actions{padding:8px 16px 10px}
 .home-refined .continue-card{padding:16px 18px}.home-refined .quran-card-heading{margin-bottom:10px}
 .home-refined .home-reading-position>strong{font-size:33px}.home-refined .continue-card .home-reading-position{gap:4px;margin-bottom:10px}
 .home-refined .quran-resume{margin-bottom:10px}.home-refined .quran-resume>a.primary{min-height:40px;padding-block:8px}
 .home-refined .home-quran-tool{min-height:58px;padding:8px 10px}.home-refined .home-quran-tool small{font-size:12px}
 .home-refined>.home-mosque-schema,.home-refined>.home-podcasts{padding:16px;gap:10px}
 .home-refined .home-mosque-content{min-height:172px;gap:10px}.home-refined .home-mosque-list>button{min-height:53px;padding:6px 8px}
 .home-refined .home-mosque-list strong{font-size:15px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-refined .home-mosque-thumb{width:28px;height:34px}
 .home-refined .podcast-home-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);grid-template-rows:auto auto;gap:8px 14px;align-items:start}
 .home-refined .podcast-home-current{grid-column:1;grid-row:1/span 2}
 .home-refined .podcast-home-tabs{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-self:start}
 .home-refined .podcast-latest-grid{grid-column:2;grid-row:2;align-self:start;gap:6px}
 .home-refined .podcast-home-tabs>button{font-size:12px;white-space:normal;text-align:start;line-height:1.3}
 .home-refined .podcast-player-designed{display:flex;flex-direction:column;gap:8px}
 .home-refined .podcast-cover{display:none}.home-refined .podcast-player-designed .podcast-now-title{font-size:15px}
 .home-refined .podcast-controls-row{flex-direction:column;gap:6px}.home-refined .podcast-player-designed .podcast-transport{gap:4px}
 .home-refined .podcast-recent-card{grid-template-columns:20px minmax(0,1fr) auto;gap:3px 7px;padding:5px 7px;min-height:50px}
 .home-refined .podcast-recent-card>strong{grid-column:2/-1;font-size:14px}.home-refined .recent-card-meta{grid-column:3;grid-row:2;display:flex;gap:6px;text-align:end;font-size:11px}
 .home-refined .recent-card-top{grid-row:1/span 2}.home-refined .podcast-recent-card>small{font-size:12px}
 .home-refined .podcast-player-empty{flex-direction:column;align-items:flex-start;padding:10px;gap:8px}.home-refined .podcast-player-empty>svg{width:30px;height:30px}
}

@media(min-width:1100px) and (max-height:780px){
 body.is-home>#main{padding-block:6px}body.is-home .home-title{min-height:32px;margin-bottom:6px!important}
 body.is-home .home-title h1{font-size:25px}.home-title .place-button{min-height:32px;padding-block:5px}
 body.is-home .home-refined{gap:10px 20px}
 .home-refined .home-section-head{padding:8px 14px 6px}.home-refined .home-section-head h2{font-size:22px}
 .home-refined .prayer-upcoming{min-height:104px;margin:0 14px 6px;padding:10px 16px}
 .home-refined .prayer-next-name{font-size:28px;margin:4px 0}.home-refined .prayer-next-time{font-size:52px}.home-refined .prayer-next-caption{font-size:12px}.home-refined .prayer-upcoming #countdown{font-size:13px}
 .home-refined .prayer-grid{min-height:62px;padding-inline:14px;gap:6px}.home-refined .prayer:nth-child(n){height:62px;min-height:62px;grid-template-rows:26px 30px;gap:2px;padding:2px 4px}
 .home-refined .home-prayer-actions{padding:6px 14px 8px}.home-refined .home-prayer-actions>button:nth-child(n){min-height:34px;padding:6px 8px}
 .home-refined .continue-card{padding:12px 14px}.home-refined .quran-card-heading{margin-bottom:8px}
 .home-refined .quran-card-heading h2{font-size:23px}.home-refined .quran-bookmarks{width:32px;height:32px;min-height:32px;padding:5px}
 .home-refined .quran-resume{gap:0;margin-bottom:8px}.home-refined .quran-resume>.eyebrow{margin-bottom:4px}
 .home-refined .continue-card .home-reading-position{gap:4px;margin-bottom:8px}.home-refined .home-reading-position>strong{font-size:32px}
 .home-refined .home-quran-tool{min-height:54px;padding:6px 8px}.home-refined .home-quran-tool strong{font-size:16px}.home-refined .home-quran-tool>svg:first-child{width:22px;height:22px}
 .home-refined>.home-mosque-schema,.home-refined>.home-podcasts{padding:12px 14px;gap:8px}
 .home-refined .home-mosque-schema>header>strong,.home-refined .home-podcasts h2{font-size:23px}
 .home-refined .home-podcasts>header{min-height:32px}.home-refined .home-mosque-schema .mosque-preview-symbol{width:32px;height:32px}
 .home-refined>.home-mosque-schema{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr)}
 .home-refined .home-mosque-schema>header{grid-column:1;grid-row:1}.home-refined .home-mosque-schema>header>a{display:none}
 .home-refined .home-mosque-content{grid-column:1/-1;grid-row:2;min-height:156px;gap:10px}.home-refined .home-mosque-list{gap:6px}.home-refined .home-mosque-list>button{min-height:48px;padding:4px 8px}
 .home-refined .home-mosque-list>button>span:nth-child(2){gap:3px}.home-refined .home-mosque-list strong{font-size:15px;line-height:1.3}.home-refined .home-mosque-list small{font-size:12px;line-height:1.3}
 .home-refined .mosque-home-open{grid-column:2;grid-row:1;min-height:32px;padding:5px 8px;font-size:12px;gap:6px;white-space:nowrap}.home-refined .mosque-home-open>svg{display:none}
 .home-refined .podcast-home-body{gap:6px 12px}.home-refined .podcast-latest-grid{gap:5px}
 .home-refined .podcast-recent-card{min-height:46px;padding:4px 6px;row-gap:2px}.home-refined .podcast-recent-card>strong{font-size:14px;line-height:1.3}.home-refined .podcast-recent-card>small{font-size:12px;line-height:1.3}
 .home-refined .podcast-player-designed{gap:6px}.home-refined .podcast-player-designed .podcast-now-title{font-size:15px;line-height:1.3}
}

/* Short desktop: use the existing card header for the two preview filters. */
@media(min-width:1280px) and (max-height:780px){
 .home-refined>.home-podcasts{position:relative}
 .home-refined .podcast-heading-long{display:none}.home-refined .podcast-heading-short{display:inline}
 .home-refined .home-podcasts>header{min-height:44px}
 .home-refined .podcast-home-tabs{position:absolute;inset-block-start:12px;inset-inline-start:180px;inset-inline-end:160px;z-index:1;min-height:36px}
 .home-refined .podcast-home-body{grid-template-rows:auto}
 .home-refined .podcast-home-current,.home-refined .podcast-latest-grid{grid-row:1}
 .home-refined .podcast-controls-row{flex-direction:row;flex-wrap:wrap;gap:6px}
}

/* These Home cards are not independent scrollers: let finger drags reach the page. */
body.is-home .home-refined>.home-prayer-card,body.is-home .home-refined .continue-card{overscroll-behavior:auto}

/* Shared heading scale: all four widget titles match at each density. */
body.is-home .home-refined{--home-title-size:24px}
body.is-home .home-refined .home-section-head h2,body.is-home .home-refined .quran-card-heading h2,body.is-home .home-refined .home-mosque-schema>header>strong,body.is-home .home-refined .home-podcasts h2{font-size:var(--home-title-size);line-height:1.3;font-weight:550;letter-spacing:-.5px;margin:0}
@media(max-width:760px){body.is-home .home-refined{--home-title-size:22px}}
@media(min-width:1100px) and (max-height:780px){body.is-home .home-refined{--home-title-size:22px}}
.user-location-marker{border:0;background:transparent;display:grid;place-items:center;pointer-events:auto}
.user-location-marker>span{display:block;width:15px;height:15px;background:#53a9fa;border:3px solid #edf7ff;border-radius:50%;box-shadow:0 0 0 4px #287ed137,0 2px 6px #0005}
.podcast-artwork{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;flex:none}
.podcast-episode-art{position:relative;width:40px;height:40px;display:block;flex:none;border-radius:8px;overflow:hidden}
.podcast-episode-art .podcast-play-symbol{position:absolute;inset:0;display:grid;place-items:center;background:#08211c38;color:#fff}.podcast-episode-art .podcast-play-symbol>svg{width:19px;height:19px}
.home-refined .recent-card-top{position:relative;overflow:hidden;min-height:32px}.home-refined .recent-card-top>.podcast-artwork{position:absolute;inset:0}
.home-refined .recent-card-play{position:absolute;inset:0;display:grid;place-items:center;background:#061c1633;color:#fff}.home-refined .recent-card-play>svg{width:14px;height:14px}
.home-refined .podcast-cover{overflow:hidden;position:relative}.home-refined .podcast-cover .podcast-artwork{position:absolute;inset:0}
/* A usable pointer hit area around the same slim visual track. */
body .podcast-player-designed input[data-podcast-seek]{height:18px!important;min-height:18px!important;margin:0!important;background:transparent;border-radius:0;touch-action:pan-y}
.podcast-player-designed input[data-podcast-seek]::-webkit-slider-runnable-track{height:4px;border-radius:20px;background:linear-gradient(to right,#d6e5cf var(--progress,0%),#5e806b55 var(--progress,0%))}
.podcast-player-designed input[data-podcast-seek]::-webkit-slider-thumb{margin-top:-4px}
.podcast-player-designed input[data-podcast-seek]::-moz-range-track{height:4px;border-radius:20px;background:linear-gradient(to right,#d6e5cf var(--progress,0%),#5e806b55 var(--progress,0%))}
@media(max-width:760px){body .podcast-player-designed input[data-podcast-seek]{height:24px!important;min-height:24px!important}}

/* One visual header system: same inset, title row and unframed icon treatment. */
body.is-home .home-refined{--header-inset-y:20px;--header-inset-x:22px;--header-content-gap:12px;--header-row:38px;--header-icon:26px;--header-icon-gap:10px}
body.is-home .home-refined .continue-card,body.is-home .home-refined>.home-mosque-schema,body.is-home .home-refined>.home-podcasts{padding:var(--header-inset-y) var(--header-inset-x)}
body.is-home .home-refined .home-section-head{box-sizing:content-box;height:var(--header-row);min-height:var(--header-row);padding:var(--header-inset-y) var(--header-inset-x) var(--header-content-gap);gap:12px}
body.is-home .home-refined .home-section-head h2,body.is-home .home-refined .quran-card-heading h2{display:flex;align-items:center;gap:var(--header-icon-gap);height:var(--header-row);flex:none}
body.is-home .home-refined .quran-card-heading{height:var(--header-row);min-height:var(--header-row);padding:0;margin:0 0 var(--header-content-gap);align-items:center}
body.is-home .home-refined .home-mosque-schema>header,body.is-home .home-refined .home-podcasts>header{height:var(--header-row);min-height:var(--header-row);margin:0;padding:0;align-items:center}
body.is-home .home-refined .home-mosque-schema>header,body.is-home .home-refined .home-podcasts>header>div:first-child{gap:var(--header-icon-gap)}
body.is-home .home-refined .home-podcasts>header>div:first-child{display:flex;height:var(--header-row);align-items:center;flex:none}
body.is-home .home-refined>.home-mosque-schema,body.is-home .home-refined>.home-podcasts{gap:var(--header-content-gap)}
body.is-home .home-refined .home-section-head h2>svg,body.is-home .home-refined .quran-card-heading h2>svg,body.is-home .home-refined .home-mosque-schema>header>.mosque-preview-symbol,body.is-home .home-refined .home-mosque-schema>header>.mosque-preview-symbol>svg,body.is-home .home-refined .home-podcasts>header>div:first-child>svg{display:block;width:var(--header-icon);height:var(--header-icon);min-width:var(--header-icon);min-height:var(--header-icon);flex:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#bdd7c9}
body.is-home .home-refined .home-section-head h2>svg path,body.is-home .home-refined .quran-card-heading h2>svg path,body.is-home .home-refined .home-mosque-schema>header>.mosque-preview-symbol>svg path,body.is-home .home-refined .home-podcasts>header>div:first-child>svg path{vector-effect:non-scaling-stroke;stroke-width:1.6px}
@media(min-width:1100px) and (max-height:1120px){body.is-home .home-refined{--header-inset-y:16px;--header-inset-x:18px;--header-content-gap:10px;--header-row:36px}}
@media(min-width:1100px) and (max-height:780px){body.is-home .home-refined{--header-inset-y:12px;--header-inset-x:14px;--header-content-gap:8px;--header-row:32px;--header-icon:24px}}
@media(min-width:1280px) and (max-height:780px){body.is-home .home-refined .home-podcasts>header{height:44px;min-height:44px;align-items:flex-start}}
@media(max-width:760px){body.is-home .home-refined{--header-inset-y:20px;--header-inset-x:20px;--header-content-gap:12px;--header-row:38px;--header-icon:24px}}

@media(min-width:1100px) and (max-height:700px){body.is-home .home-refined{--header-inset-y:10px}}

/* Directory-row glyphs stay subordinate to the section headings. */
body.is-home .home-refined .home-mosque-list .home-mosque-thumb{width:32px;height:36px;border-radius:8px}
body.is-home .home-refined .home-mosque-list .home-mosque-thumb>svg{width:20px;height:20px}
body.is-home .home-refined .home-mosque-list .home-mosque-thumb>svg path{vector-effect:non-scaling-stroke;stroke-width:1.5px}

/* Explicit device-location control, with only browser-reported accuracy. */
.mosque-map-stage{position:relative}
.map-location-controls{position:absolute;inset-block-start:8px;inset-inline-start:8px;inset-inline-end:8px;z-index:800;display:flex;align-items:flex-start;gap:6px;pointer-events:none}
.map-location-controls .map-locate-button{width:36px;min-width:36px;height:36px;min-height:36px;flex:none;padding:7px;display:grid;place-items:center;border:1px solid #7d9c8b;border-radius:9px;background:#0e2925ef;color:#e0eee5;pointer-events:auto;box-shadow:0 2px 6px #0003}
.map-location-controls .map-locate-button>svg{width:21px;height:21px;display:block}.map-location-controls .map-locate-button[aria-busy=true]{opacity:.65}
.map-location-status{display:block;max-width:calc(100% - 42px);padding:6px 8px;border:1px solid #75998770;border-radius:8px;background:#0e2925ec;color:#dae8df;font-size:11px;line-height:1.35;overflow-wrap:anywhere;box-shadow:0 2px 6px #0002}
.map-location-status[hidden]{display:none}
.home-refined .home-nearby-map{touch-action:pan-y pinch-zoom!important;cursor:grab}.home-refined .home-nearby-map.is-panning{cursor:grabbing}

.mosque-map-stage>.map-location-controls{inset-inline-start:unset;inset-inline-end:unset;left:60px;right:8px;direction:ltr;flex-direction:row-reverse}.map-location-status{unicode-bidi:plaintext}

/* Native-rounded distances are estimates, with their actual query origin kept visible. */
.mosque-distance-note{display:block;flex:none;min-width:0;font-size:12px;line-height:1.5;color:var(--muted);white-space:normal;overflow-wrap:anywhere;unicode-bidi:plaintext;margin:0 0 8px}
.mosque-distance-note[hidden]{display:none}
.home-refined .home-mosque-list:has(>.mosque-distance-note){grid-template-rows:auto repeat(3,minmax(0,1fr))}
.home-refined .home-mosque-list>.mosque-distance-note{grid-row:1;grid-column:1;font-size:12px;line-height:1.5;margin:0;overflow:visible;white-space:normal}
.mosque-detail>.mosque-distance-note{margin-bottom:12px}
.mosque-data-note{display:block;margin-top:5px;overflow-wrap:anywhere;unicode-bidi:plaintext}
html[lang=ar] .mosque-distance-note,html[lang=ar] .mosque-data-note{direction:rtl;text-align:right}
/* Deliberate address lookup and manual point preview share the normal chooser. */
.location-picker{min-width:0;display:grid;gap:12px;margin:4px 0 20px;direction:ltr}
.location-picker h3,.location-picker p{margin:0}.location-picker .source{line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.location-picker form{display:grid;gap:12px;min-width:0}.location-picker .field{margin:0;min-width:0}.location-picker input:not([type=checkbox]),.location-picker select{width:100%;min-width:0}
.location-address-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px}
.location-picker .check{display:flex;align-items:flex-start;gap:10px;line-height:1.5}.location-picker .check input{flex:none;min-height:20px;width:20px;margin-top:2px}
.location-picker button{min-height:44px;white-space:normal;overflow-wrap:anywhere}.location-picker [data-location-preview]{display:grid;gap:12px;min-width:0}.location-picker [hidden]{display:none!important}
.location-preview-map{height:260px;min-height:220px;border:1px solid var(--line);border-radius:12px;background:#102c26;isolation:isolate}
.location-picker .address-results{max-height:240px;overflow:auto;margin:0}.location-picker .address-results>button{display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:5px;width:100%;padding:12px}.address-results span,.address-results small{white-space:normal;overflow-wrap:anywhere;unicode-bidi:plaintext}
.location-offline-cities{margin:16px 0}.location-offline-cities>summary{min-height:44px;padding:10px 0;cursor:pointer}
.user-location-marker.leaflet-marker-draggable{cursor:grab;touch-action:none}.user-location-marker.leaflet-marker-draggable:active{cursor:grabbing}.user-location-marker:focus-visible{outline:3px solid #fff;outline-offset:5px;border-radius:50%}
.mosque-map-actions>button[hidden]{display:none}.mosque-map-actions>button{max-width:100%;min-height:44px;white-space:normal;text-align:start}.mosque-map-actions>.source{flex-basis:100%}
@media(max-width:760px){body.is-mosques .mosques-page .mosque-map-stage{height:auto;min-height:0;flex:none}body.is-mosques .mosques-page .mosque-map-stage>.mosque-map{height:clamp(180px,30dvh,300px);flex:none}}
#dialog:has(.location-picker) .dialog-head h2{font-size:clamp(20px,3vw,28px);line-height:1.3}
html[lang=ar] .location-picker p,html[lang=ar] .location-picker .field,html[lang=ar] .location-picker .source{unicode-bidi:plaintext;text-align:right}
/* Primary device action, offline city search, then progressively disclosed manual tools. */
#dialog:has(.location-picker) .location-primary,#dialog:has(.location-picker) .location-city-search{display:grid;gap:10px;margin:0 0 20px;min-width:0}
#dialog:has(.location-picker) .location-primary>.primary{width:100%;min-height:48px}
#dialog:has(.location-picker) .location-city-search .field{margin:0;min-width:0}
#dialog:has(.location-picker) .location-city-search input{width:100%;min-width:0}
#dialog:has(.location-picker) .source{white-space:normal;overflow-wrap:anywhere}
#dialog:has(.location-picker) #city-results:empty{display:none}
.location-manual{border-top:1px solid var(--line);padding-top:5px}
.location-manual>summary,.location-map-disclosure>summary{position:relative;list-style:none;min-height:48px;cursor:pointer;padding:12px 5px 12px 25px;line-height:1.5;overflow-wrap:anywhere}
.location-manual>summary::marker,.location-map-disclosure>summary::marker{content:''}
.location-manual>summary::-webkit-details-marker,.location-map-disclosure>summary::-webkit-details-marker{display:none}
.location-manual>summary::before,.location-map-disclosure>summary::before{content:'';position:absolute;left:6px;top:calc(50% - 4px);width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.location-manual[open]>summary::before,.location-map-disclosure[open]>summary::before{transform:rotate(45deg)}
.location-manual>summary:focus-visible,.location-map-disclosure>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
.location-map-disclosure{border:1px solid var(--line);border-radius:10px;padding:0 10px}
.location-map-disclosure>div{display:grid;gap:12px;padding-bottom:12px;min-width:0}
.home-refined .home-section-head>.prayer-place-context{display:grid;gap:3px;min-width:0;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-align:end;line-height:1.35}
@media(max-width:760px){body.is-home .home-refined .home-prayer-card>.home-section-head{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;height:auto;min-height:0;flex:none}.home-refined .home-section-head>.prayer-place-context{max-width:100%;text-align:start}.home-refined .prayer-place-context small{font-size:12px}}
.prayer-place-context small{font-size:11px;color:var(--muted);direction:ltr;unicode-bidi:isolate}
.mosque-map-stage>.map-prayer-place,.mosque-map-stage>.map-prayer-note{flex:none;line-height:1.5;white-space:normal;overflow-wrap:anywhere;margin:8px 0 0}
.mosque-map-stage>.map-prayer-place{font-size:13px;color:var(--text)}
.mosque-map-stage>.map-prayer-note{font-size:11px}
html[lang=ar] .location-city-search .field,html[lang=ar] .location-primary .source,html[lang=ar] .location-manual>summary,html[lang=ar] .location-map-disclosure>summary,html[lang=ar] .map-prayer-note{unicode-bidi:plaintext;text-align:right}
@media(max-width:400px){.location-address-row{grid-template-columns:minmax(0,1fr)}.location-preview-map{height:230px}.location-picker{gap:10px}.mosque-map-actions{gap:7px}.mosque-map-actions>button{flex:1 1 45%;font-size:11px}}
