/* ═══════════════════════════════════════════════════════════════════════════
   FONTS — self-hosted IBM Plex Sans Arabic.

   Tenant-agnostic, loaded for every install. Self-hosted (was Google Fonts)
   so the primary UI font never depends on a third-party request — important
   for Saudi networks, offline/PWA correctness, and to guarantee the app and
   the PDF/print pipeline render with the exact same faces.

   woff2 (modern, ~70 KB/weight) is served first; the on-disk .ttf is the
   fallback for very old engines. font-display: swap avoids invisible text
   while the face loads. Only three physical weights ship (Regular / Medium /
   Bold); the five logical weights modern-ui.css asks for (300–700) map onto
   them so nothing renders as a synthetic/faux weight.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 300 (Light) → Regular file */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Regular.woff2') format('woff2'),
         url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Regular.ttf') format('truetype');
}
/* 400 (Regular) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Regular.woff2') format('woff2'),
         url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Regular.ttf') format('truetype');
}
/* 500 (Medium) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Medium.woff2') format('woff2'),
         url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Medium.ttf') format('truetype');
}
/* 600 (SemiBold) → Bold file (closest available, avoids faux-bold) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Bold.woff2') format('woff2'),
         url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Bold.ttf') format('truetype');
}
/* 700 (Bold) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Bold.woff2') format('woff2'),
         url('fonts/ibmplexsansarabic/IBMPlexSansArabic-Bold.ttf') format('truetype');
}
