/* v217: Mushaf-first refinement; doesn't restyle/modify Arabic glyphs or page images. */
body.page-quran-hub .sbs183-hero{padding:14px 0 18px;background:linear-gradient(120deg,#161427,#2b2740 58%,#203d40)}
body.page-quran-hub .sbs183-hero .sbs183-back{margin-bottom:6px;font-size:.78rem}
body.page-quran-hub .sbs183-hero .sbs183-kicker{font-size:.65rem;margin:4px 0;color:#d7bf8d;letter-spacing:2px}
body.page-quran-hub .sbs183-hero h1{font:400 clamp(1.45rem,3.6vw,2.25rem)/1.2 Georgia,serif;letter-spacing:-.5px;margin:4px 0;color:#fff9e9}
body.page-quran-hub .sbs183-hero p:not(.sbs183-kicker){font-size:.85rem;line-height:1.5;margin:7px 0 0;max-width:750px;color:#e7deea}
body.page-quran-hub .sbs183-reader-layout{max-width:1520px;grid-template-columns:minmax(210px,265px) minmax(0,1fr);gap:clamp(14px,2vw,28px);padding-top:16px}
body.page-quran-hub .sbs183-reading-area{min-width:0;display:flex;flex-direction:column;gap:0}
body.page-quran-hub .sbs217-reader-top{order:0}
body.page-quran-hub .sbs211-mode-box{order:1}
body.page-quran-hub .sbs183-mushaf,body.page-quran-hub .sbs211-page-panel{order:2}
body.page-quran-hub .sbs183-toolbar{order:3;margin-top:14px;padding:11px 4px;border-top:1px solid #ddd0b5}
body.page-quran-hub .sbs213-reader-listen,body.page-quran-hub .sbs214-ayah-audio,body.page-quran-hub .sbs215-tajweed{order:4}
body.page-quran-hub .sbs183-navigation{order:5}
body.page-quran-hub .sbs183-trust{order:6}
.sbs217-reader-top{background:linear-gradient(130deg,#fffefa,#f4eddf);border:1px solid #e0d4be;border-radius:15px;padding:12px 15px;box-shadow:0 7px 19px #392a4b0c}
.sbs217-top-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 13px;margin-bottom:10px;color:#332843;font-family:ui-sans-serif,system-ui,sans-serif}
.sbs217-top-heading strong{font-weight:750;font-size:.95rem}
.sbs217-eyebrow{font-size:.66rem;font-weight:900;letter-spacing:1.8px;color:#866735}
#sbs217-place{font-size:.81rem;color:#574768;margin-left:auto;font-weight:650;font-variant-numeric:tabular-nums}
.sbs217-fastnav{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-family:ui-sans-serif,system-ui,sans-serif}
.sbs217-fastnav label{font-size:.76rem;font-weight:750;color:#594663}
.sbs217-fastnav select{min-height:43px;max-width:265px;min-width:105px;flex:1 1 140px;border:1px solid #baaac1;background:#fff;color:#30263b;border-radius:10px;padding:8px 10px;font:600 .85rem ui-sans-serif,system-ui,sans-serif}
.sbs217-fastnav button{min-height:43px;background:#403052;color:#fff;border:1px solid #403052;border-radius:10px;padding:8px 12px;font:750 .82rem ui-sans-serif,system-ui,sans-serif;cursor:pointer}
.sbs217-fastnav button:disabled{opacity:.55;cursor:not-allowed}
#sbs217-focus{margin-left:auto;background:#fff9eb;color:#3e3053;border-color:#a897ab}
.sbs217-notice{color:#6a5669;font-size:.76rem;line-height:1.45;margin:9px 0 0}
body.page-quran-hub .sbs211-mode-box{gap:7px;padding:8px 0 10px}
body.page-quran-hub .sbs211-mode-box>strong{font-size:.79rem;color:#51405f}
body.page-quran-hub .sbs211-mode-box button{border-radius:10px;padding:9px 13px}
body.page-quran-hub .sbs211-page-panel{box-shadow:0 22px 48px #533d2c0f;padding:clamp(10px,1.8vw,22px);background:#f5efe3}
body.page-quran-hub .sbs211-page-image-wrap{max-width:820px;padding:3px;border-radius:5px;box-shadow:0 7px 25px #261b2725}
body.page-quran-hub .sbs211-page-head{max-width:820px;margin:0 auto 9px}
body.page-quran-hub .sbs211-page-head h2{font-size:clamp(1rem,2vw,1.24rem)}
body.page-quran-hub .sbs211-page-actions button{min-width:74px}
body.page-quran-hub .sbs211-mode-help{max-width:820px;margin:0 auto 12px;text-align:center}
body.page-quran-hub .sbs211-page-selection{max-width:820px}
.sbs217-selection-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}
.sbs217-selection-title strong{color:#38234d;font:700 1rem ui-sans-serif,system-ui,sans-serif}
.sbs217-selection-title span{color:#625367;font:.79rem ui-sans-serif,system-ui,sans-serif}
.sbs217-provenance{max-width:820px;margin:14px auto 0;color:#57485c;font-size:.78rem;line-height:1.55}
.sbs217-provenance>summary,body.page-quran-hub .sbs183-trust>summary{cursor:pointer;min-height:42px;padding:10px 7px;font-weight:700}
.sbs217-provenance .sbs211-source-note{margin:0 0 10px}
body.page-quran-hub .sbs183-trust{padding:6px 13px;max-width:950px}
body.page-quran-hub .sbs183-trust>p{margin:7px 0}
.sbs217-fastnav button:focus-visible,.sbs217-fastnav select:focus-visible,.sbs217-provenance>summary:focus-visible,body.page-quran-hub .sbs183-trust>summary:focus-visible{outline:3px solid #ae873f;outline-offset:3px}
/* Reading focus: hide site chrome and sidebar, keep page navigation and all scripture-source fallback notices. */
body.sbs217-focus-reading .site-header,body.sbs217-focus-reading .site-footer,body.sbs217-focus-reading .sbs183-hero,body.sbs217-focus-reading .sbs183-readertools,body.sbs217-focus-reading .sbs183-trust,body.sbs217-focus-reading .sbs213-reader-listen,body.sbs217-focus-reading .sbs214-ayah-audio,body.sbs217-focus-reading .sbs215-tajweed,body.sbs217-focus-reading .sbs183-toolbar,body.sbs217-focus-reading .bottom-nav,body.sbs217-focus-reading [data-sbs-bottom-nav],body.sbs217-focus-reading .sbs-bottom-nav{display:none!important}
body.sbs217-focus-reading .sbs183-reader-layout{display:block!important;max-width:1100px!important;padding-top:8px!important}
body.sbs217-focus-reading .sbs217-reader-top{position:sticky;top:0;z-index:20;border-radius:0;padding:7px 12px;box-shadow:0 3px 10px #2b1b2920}
body.sbs217-focus-reading .sbs217-top-heading{display:none}
body.sbs217-focus-reading .sbs217-notice{display:none}
body.sbs217-focus-reading .sbs211-mode-box{padding:5px 0}
body.sbs217-focus-reading .sbs211-page-panel{padding:6px!important;border:none;background:transparent;box-shadow:none}
body.sbs217-focus-reading .sbs211-page-image-wrap{max-width:970px}
body.sbs217-focus-reading .sbs211-page-head{max-width:970px}
body.sbs217-focus-reading .sbs211-page-selection{max-width:970px}
@media(max-width:750px){
 body.page-quran-hub .sbs183-reader-layout{display:flex;flex-direction:column;gap:10px;padding-top:10px}
 body.page-quran-hub .sbs183-reading-area{order:0;width:100%}
 body.page-quran-hub .sbs183-readertools{order:1;width:100%}
 body.page-quran-hub .sbs183-controls{position:static;padding:13px}
 .sbs217-reader-top{padding:10px}
 .sbs217-top-heading{margin-bottom:7px}
 #sbs217-place{width:100%;margin:0;font-size:.76rem}
 .sbs217-fastnav{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,100px);gap:6px}
 .sbs217-fastnav select{min-width:0;max-width:100%;width:100%;font-size:.79rem;padding:7px}
 .sbs217-fastnav #sbs217-juz-go,.sbs217-fastnav #sbs217-focus{grid-column:span 2;margin:0;max-width:none}
 body.page-quran-hub .sbs211-page-actions{justify-content:space-between}
 body.page-quran-hub .sbs211-page-head h2{font-size:1rem}
 body.page-quran-hub .sbs211-page-panel{padding:6px;border-radius:8px}
 body.page-quran-hub .sbs211-page-image-wrap{padding:0;border-radius:2px}
 body.page-quran-hub .sbs211-mode-help{font-size:.73rem}
 body.page-quran-hub .sbs183-toolbar{gap:7px}
 body.page-quran-hub .sbs183-toolbar-actions button{font-size:.75rem}
 body.sbs217-focus-reading .sbs217-fastnav{grid-template-columns:auto minmax(0,1fr)}
 body.sbs217-focus-reading .sbs217-fastnav #sbs217-focus{grid-column:1/-1}
 body.sbs217-focus-reading .sbs217-fastnav #sbs217-juz-go{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){body.page-quran-hub .sbs211-page-panel{scroll-behavior:auto}}
