/* ═══════════════════════════════════════════════════════════════════════
   NexEra — Self-hosted font system (no CDN; works offline / on LAN)
   ─────────────────────────────────────────────────────────────────────
   Arabic  → Tajawal            (weights 300 / 400 / 500 / 700 / 800)
   Latin   → Poppins            (weights 400 / 500 / 600 / 700)
   Fallback→ Noto Sans Arabic   (weights 400 / 700 — widest Arabic coverage;
                                  also the PDF-safe face if a server-side
                                  PDF pipeline is ever added)
   Files live in /wwwroot/fonts/ as WOFF2 (web) + TTF (PDF/offline).
   Loaded BEFORE nexera.css in _Layout.cshtml so the @font-face names are
   defined before any rule references them. font-display:swap = no invisible
   text while a weight downloads (text shows in the fallback, then swaps).
   The unified stack + CSS vars that USE these families live in nexera.css.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tajawal (Arabic) ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/Tajawal-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Tajawal-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Tajawal-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Tajawal-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Tajawal-ExtraBold.woff2') format('woff2');
}

/* ── Poppins (Latin) ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Poppins-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Poppins-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Poppins-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Poppins-Bold.woff2') format('woff2');
}

/* ── Noto Sans Arabic ──────────────────────────────────────────────────
   Browser @font-face removed (weak-internet Wave 2): the Noto WOFF2 were
   never actually fetched — Tajawal covers all Arabic glyphs, Noto sat 3rd
   in the stack. Server-side PDF (QuestPDF) still loads NotoSansArabic TTF
   at runtime from wwwroot/fonts — DO NOT delete the .ttf files.
   If 'Noto Sans Arabic' is installed on the client it is still used as a
   local fallback via the CSS stack; otherwise it degrades to system-ui. */
