/* Fonts: Ubuntu for English, Almarai for Arabic. Loaded last so it wins over earlier font rules. */
html, body, input, textarea, select, button, h1, h2, h3, h4, h5, h6, .font-sans, .font-black, .font-extrabold, .font-bold {
    font-family: 'Ubuntu', ui-sans-serif, system-ui, sans-serif !important;
}
html[lang="ar"], html[lang="ar"] body, html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] select, html[lang="ar"] button,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .font-sans, html[lang="ar"] .font-black, html[lang="ar"] .font-extrabold, html[lang="ar"] .font-bold {
    /* Almarai has no Latin glyphs, so English session/worksheet/PDF names fall through to Ubuntu */
    font-family: 'Almarai', 'Ubuntu', ui-sans-serif, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
}
/* Any text that is Arabic, in either site language, uses Almarai */
[lang="ar"], [dir="rtl"] { font-family: 'Almarai', 'Ubuntu', ui-sans-serif, system-ui, sans-serif !important; }
.font-mono, code, pre, kbd, samp, #va-num { font-family: 'JetBrains Mono', ui-monospace, monospace !important; }