:root { --ilm-ui-font: "Noto Sans", system-ui, "Segoe UI", Arial, sans-serif; }
:root[lang="ar"], :root[lang="ps"] { --ilm-ui-font: "Noto Sans Arabic", "Noto Sans", system-ui, sans-serif; }
:root[lang="zh"] { --ilm-ui-font: "Noto Sans SC", "Noto Sans", sans-serif; }
:root[lang="he"] { --ilm-ui-font: "Noto Sans Hebrew", "Noto Sans", sans-serif; }
:root[lang="hi"] { --ilm-ui-font: "Noto Sans Devanagari", "Noto Sans", sans-serif; }
:root[lang="ja"] { --ilm-ui-font: "Noto Sans JP", "Noto Sans", sans-serif; }
:root[lang="ko"] { --ilm-ui-font: "Noto Sans KR", "Noto Sans", sans-serif; }
:root[lang="fa"] { --ilm-ui-font: "Vazirmatn", "Noto Sans Arabic", sans-serif; }
:root[lang="ur"] { --ilm-ui-font: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif; }
:root[lang="pa"] { --ilm-ui-font: "Noto Sans Gurmukhi", "Noto Sans", sans-serif; }

body, body.homepage-body { font-family: var(--ilm-ui-font), system-ui, sans-serif; }
body :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, label) {
    font-family: var(--ilm-ui-font), system-ui, sans-serif;
}
body :is(.home-brand-copy h1, .home-brand-title) { font-family: Georgia, "Times New Roman", serif; }

:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="en"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="fr"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="de"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="id"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="pt"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ru"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="es"] {
    font-family: "Noto Sans", system-ui, "Segoe UI", Arial, sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ar"] {
    font-family: "Amiri Quran", "Noto Sans Arabic", serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="fa"] {
    font-family: "Vazirmatn", "Noto Sans Arabic", sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="he"] {
    font-family: "Noto Sans Hebrew", sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="hi"] {
    font-family: "Noto Sans Devanagari", sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="pa"] {
    font-family: "Noto Sans Gurmukhi", sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ps"] {
    font-family: "Noto Sans Arabic", sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ur"] {
    font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="zh"] {
    font-family: "Noto Sans SC", sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ja"] {
    font-family: "Noto Sans JP", sans-serif;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ko"] {
    font-family: "Noto Sans KR", sans-serif;
}

:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="zh"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ja"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ko"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="hi"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="he"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="pa"] {
    line-height: 1.9;
}
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ar"],
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="fa"] { line-height: 2.1; }
:is(.translated-verse, .quran-ayah-translation, .quran-ayah-notes, .saved-verse-translation)[lang="ur"] { line-height: 2.4; }
