@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

/* Keep component and Bootstrap font overrides from replacing the Persian font. */
html:lang(fa),
html:lang(fa) :where(body, body *):lang(fa),
html:lang(fa) input:lang(fa)::placeholder,
html:lang(fa) textarea:lang(fa)::placeholder,
html:lang(fa) input:lang(fa)::file-selector-button {
    font-family: Vazirmatn, Tahoma, sans-serif !important;
}

/* Prioritize Persian glyphs without replacing the Latin font in mixed text. */
@font-face {
    font-family: "Vazirmatn Persian";
    src: url("../fonts/Vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}

:root:root {
    --bs-font-sans-serif: "Vazirmatn Persian", system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --bs-font-monospace: "Vazirmatn Persian", SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
