/* v78 — worldwide accessibility enhancements. Keep existing site visual identity. */
html[data-sbs78-text="large"]{font-size:112.5%}
html[data-sbs78-text="extra"]{font-size:125%}
/* Restrict bidi isolation and readable glyph metrics to Arabic quotations, not the whole page. */
:where(.arabic-text,[lang="ar"]):not(input):not(select){font-family:"Noto Naskh Arabic","Traditional Arabic","Scheherazade New","Amiri",serif;letter-spacing:normal!important;font-kerning:normal;word-break:normal;unicode-bidi:isolate}
html[data-sbs78-arabic-lines="comfortable"] :is(.arabic-text,[lang="ar"]){line-height:2.3!important}
.sbs78-reading-settings{display:block;min-width:0;margin:15px 0 8px;border:1px solid #d8c9e4;border-radius:16px;padding:13px;background:#f9f4fd;color:#2a173d}
.sbs78-reading-settings legend{color:#381a55;font-size:1rem;font-weight:800;padding:0 5px}
.sbs78-reading-settings .sbs78-reading-help{color:#514161;font-size:.86rem;line-height:1.5;margin:3px 0 11px}
.sbs78-reading-row{margin:0 0 13px;min-width:0}
.sbs78-reading-row:last-of-type{margin-bottom:6px}
.sbs78-reading-label{display:block;font-size:.87rem;font-weight:750;line-height:1.5;margin:0 0 7px;color:#38224b}
.sbs78-reading-choices{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.language-panel .sbs78-reading-choices button{flex:1 1 auto;min-height:44px;min-width:62px;max-width:100%;width:auto!important;border-radius:10px;padding:9px 10px;background:#fff;color:#321b47;border:1px solid #a995ba;font:700 .88rem/1.3 system-ui,-apple-system,sans-serif;cursor:pointer;white-space:normal}
.language-panel .sbs78-reading-choices button[aria-pressed="true"]{background:#35194d;color:#fff;border-color:#35194d}
.language-panel .sbs78-reading-choices button:hover{border-color:#7a4e92}
.language-panel .sbs78-reading-choices button:focus-visible,
.language-panel select:focus-visible,
.language-launcher summary:focus-visible{outline:3px solid #d7a842!important;outline-offset:3px!important}
.sbs78-reading-status{font-size:.8rem;line-height:1.5;color:#584967;margin:7px 0 0}
.language-launcher-v48 .language-panel{max-width:calc(100vw - 20px)!important;max-height:min(76dvh,710px)!important;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:420px){.sbs78-reading-settings{padding:11px}.sbs78-reading-choices{gap:6px}.language-panel .sbs78-reading-choices button{font-size:.84rem;min-width:0;flex:1 1 calc(33.33% - 6px)}}
@media (prefers-reduced-motion:reduce){.sbs78-reading-choices button{transition:none!important}}
@media print{.sbs78-reading-settings{display:none!important}}
/* At enlarged reading sizes, Dhikr chips must stack rather than overflow narrow phones. */
@media(max-width:420px){
  html[data-sbs78-text="large"] .v59-dhikr-chip-grid,
  html[data-sbs78-text="extra"] .v59-dhikr-chip-grid{grid-template-columns:minmax(0,1fr)!important}
  .v59-dhikr-chip-grid>*{min-width:0;overflow-wrap:anywhere}
}
