@font-face{font-family:RaqeemWarsh;src:url('/assets/fonts/quran/warsh.ttf') format('truetype');font-display:block}
@font-face{font-family:RaqeemQalun;src:url('/assets/fonts/quran/qalun.ttf') format('truetype');font-display:block}
@font-face{font-family:RaqeemSusi;src:url('/assets/fonts/quran/susi.ttf') format('truetype');font-display:block}
html[data-quran-edition="warsh"]{--quran-edition-font:RaqeemWarsh}
html[data-quran-edition="qalun"]{--quran-edition-font:RaqeemQalun}
html[data-quran-edition="susi"]{--quran-edition-font:RaqeemSusi}
.quran-edition-picker{display:flex;align-items:center;justify-content:center;gap:.7rem;flex-wrap:wrap;margin:.9rem auto;padding:.8rem;border:1px solid var(--border,var(--bdr));border-radius:12px;background:var(--bg-card,var(--bg2));max-width:850px}
.quran-edition-picker label{font-weight:700;color:var(--gold);font-size:.9rem}
.quran-edition-picker select{padding:.6rem .8rem;max-width:100%;background:var(--bg-input,var(--bg2));color:var(--text-pri,var(--txt));border:1px solid var(--gold);border-radius:8px;font:inherit}
#quranEditionStatus{flex-basis:100%;text-align:center;font-size:.76rem;color:var(--text-sec,var(--txt2))}
.quran-edition-method{max-width:950px;margin:.8rem auto;padding:.7rem 1rem;line-height:1.8;font-size:.76rem;color:var(--text-sec,var(--txt2));border-inline-start:3px solid var(--gold)}
.quran-original{white-space:pre-wrap!important;direction:rtl!important;unicode-bidi:isolate!important;letter-spacing:normal!important;font-family:var(--quran-edition-font,'Amiri'),serif!important;font-variant-ligatures:normal;font-feature-settings:normal;text-transform:none}
html:not([data-quran-edition="hafs"]) :is(#pageQuran .vdtext,#pageQuran .qe-verse,#pageQuran .mq-verse-text,#pageQuran .names-verse-text,#pageQuran .qvo-text,#pageQuran .qwr-word,#pageQuran .qcvs-text,#pageQuran .nsvg .nt,#pageQuran .sajda-verse-text,#pageQuran .qoc-verse-list p,#pageQuran .qoc-ayah-text,#pageQuran .qoc-first-ayah,#pageQuran .qoc-last-ayah){font-family:var(--quran-edition-font),serif!important;letter-spacing:normal!important;line-height:2.2!important}


/* Atomic clickable words inherit an explicit RTL paragraph rather than auto bidi. */
#pageQuran :is(.qwr-verse,.vdtext,.qcvs-text,.qcvs-selected-preview){direction:rtl!important;unicode-bidi:isolate!important;text-align:right}
#pageQuran :is(.qwr-word,.qword){direction:rtl!important;unicode-bidi:isolate!important}
