/* Local IranSansX fonts: static fallbacks and the full variable weight range. */
@font-face {
    font-family: "IRANSansX";
    src: url("webfont/staticfonts/IRANSansX-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("webfont/staticfonts/IRANSansX-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --afagh-font-family: "IRANSansX", Tahoma, sans-serif;
    --font-family-sans-serif: var(--afagh-font-family);
    --font-family-monospace: var(--afagh-font-family);
}

@supports (font-variation-settings: normal) {
    @font-face {
        font-family: "IRANSansXV";
        src: url("webfont/IRANSansXV.woff2") format("woff2"),
             url("webfont/IRANSansXV.woff") format("woff");
        font-style: normal;
        font-weight: 100 1000;
        font-display: swap;
    }

    :root {
        --afagh-font-family: "IRANSansXV", "IRANSansX", Tahoma, sans-serif;
    }
}

/* Override text fonts from RTL, store and order styles; preserve icon fonts. */
html,
body,
body *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fat):not(.fass):not(.fasr):not(.fasl):not(.fast):not(.fa-solid):not(.fa-regular):not(.fa-light):not(.fa-thin):not(.fa-duotone):not(.fa-brands):not(.glyphicon):not(.material-icons):not(.material-symbols-outlined) {
    font-family: "IRANSansX", Tahoma, sans-serif !important;
    font-family: var(--afagh-font-family) !important;
}
