/* V7.31 Preview: clear-screen typography for RTL administration and learning.
   Retain Amiri for Qur'an, Arabic scripture and heritage displays. No fonts bundled. */
:root{--imam-ui-font:'Readex Pro','Tajawal',system-ui,sans-serif;--imam-heritage-font:'Amiri','Noto Naskh Arabic',serif}
html:not([lang='ru']) body,
html:not([lang='ru']) body *:not(svg):not(svg *):not(.material-icons):not(.material-symbols-rounded):not(.material-symbols-outlined):not([class^='fa-']):not([class*=' fa-']){
 font-family:var(--imam-ui-font)!important;
}
html:not([lang='ru']) body :is(.curriculum-quran,.quran,.quran-text,.quran-verse,.ayah,.verse,.heritage,.heritage-text,[data-arabic-heritage]){
 font-family:var(--imam-heritage-font)!important;
}
/* Readex has a more generous cap-height than Amiri; use the screen-friendly scale. */
body.intake-page{font-size:16px!important;line-height:1.85!important}
body.intake-page .intake-hero h1{font-size:clamp(29px,3.8vw,43px)!important}
body.intake-page .intake-hero p{font-size:clamp(15px,1.45vw,18px)!important}
body.intake-page .intake-panel h2{font-size:clamp(22px,2.4vw,27px)!important}
body.intake-page :is(.intake-field input,.intake-field select,.intake-field textarea){font-size:16px!important}
body.intake-page :is(.intake-hint,.intake-muted,.intake-footer){font-size:14px!important}
body :is(button,a,input,select,textarea){text-rendering:optimizeLegibility}
body :is(button,input,select,textarea){line-height:1.55!important}
@media(max-width:640px){body.intake-page{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){body *{scroll-behavior:auto!important}}

/* V7.32: scriptural and classical Arabic keep Amiri even when nested in styled cards */
html body :is(.quran,.quran-text,.quran-verse,.ayah,.verse,.heritage,.heritage-text,[data-arabic-heritage]),
html body :is(.quran,.quran-text,.quran-verse,.ayah,.verse,.heritage,.heritage-text,[data-arabic-heritage]) *{font-family:var(--imam-heritage-font)!important}
