/* ==========================================================================
   Arabic pages only (head.blade.php loads this when the locale is ar).
   Self-hosted IBM Plex Sans Arabic, the Arabic pages' font for body text
   and headings (tokens.css, :root:lang(ar)).
   The admin panel keeps its own public/assets/global/css/arabic-fonts.css.
   ========================================================================== */

/* Latin letters and digits in Plex (Arabic pages set Plex as their only web
   font, tokens.css). Declared before the Arabic faces so those win where
   the ranges meet. Weight ranges: each requested weight lands on a real
   face, so there is no synthetic bold and no fallback to a system font. */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 100 500;
    font-display: swap;
    src: url('../../global/fonts/ibm-plex-arabic/ibm-plex-sans-arabic-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 501 649;
    font-display: swap;
    src: url('../../global/fonts/ibm-plex-arabic/ibm-plex-sans-arabic-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 650 900;
    font-display: swap;
    src: url('../../global/fonts/ibm-plex-arabic/ibm-plex-sans-arabic-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arabic letters. */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 100 450;
    font-display: swap;
    src: url('../../global/fonts/ibm-plex-arabic/ibm-plex-sans-arabic-400.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 451 549;
    font-display: swap;
    src: url('../../global/fonts/ibm-plex-arabic/ibm-plex-sans-arabic-500.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 550 649;
    font-display: swap;
    src: url('../../global/fonts/ibm-plex-arabic/ibm-plex-sans-arabic-600.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 650 900;
    font-display: swap;
    src: url('../../global/fonts/ibm-plex-arabic/ibm-plex-sans-arabic-700.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

/* Arabic script must not be letter-spaced or upper-cased: both break letter joining. */
:lang(ar),
:lang(ar) * {
    letter-spacing: 0 !important;
    text-transform: none !important;
}
