/*
 * edify-fonts.css — self-hosted web fonts (SIL OFL)
 *
 * OFF-1: replaces the Google Fonts CDN link in App.razor so the sealed
 * appliance never needs to reach fonts.googleapis.com / fonts.gstatic.com.
 * Works identically in cloud and appliance deployments.
 *
 * Source: @fontsource/sora, @fontsource/inter, @fontsource/ibm-plex-mono,
 *         @fontsource/noto-naskh-arabic (npm packages; SIL Open Font License 1.1)
 * Files:  wwwroot/fonts/<family>-<subset>-<weight>-normal.woff2
 * Subset: latin (screen UI chrome); arabic (FIX-6b, ed-5zq7.6.2 — Urdu/Arabic
 *         screen face; see the Noto Naskh Arabic section below). PDF docs
 *         bundle Noto independently (Application/Documents/Fonts/ — untouched
 *         by this file; see bd memory syncfusion-rtl-line-drop).
 *
 * NOTE — Inter 450: the @fontsource/inter package (and the Inter typeface
 * itself) does not include a 450 weight. The CDN requested it as a hint;
 * browsers fall back to the nearest available weight (400 or 500). Bundles
 * here include 400 and 500; 450 resolves between them as it did via CDN.
 *
 * font-display: swap matches the CDN's display=swap parameter.
 * Family names match edify-tokens.css vars exactly:
 *   --font-display: 'Sora', ...
 *   --font-sans:    'Inter', ...
 *   --font-mono:    'IBM Plex Mono', ...
 * The [lang=ur]/[lang=ar]/[dir=rtl] remap of --font-display/--font-sans to
 * 'Noto Naskh Arabic'-first stacks lives in edify-tokens.css (FIX-6b, D-041).
 *
 * OFL Attribution:
 *   Sora              — Copyright 2019 The Sora Project Authors (github.com/sora-xor/sora-font)
 *   Inter             — Copyright 2020 The Inter Project Authors (rsms.me/inter)
 *   IBM Plex Mono     — Copyright 2017 IBM Corp. (github.com/IBM/plex)
 *   Noto Naskh Arabic — Copyright 2022 The Noto Project Authors
 *                        (github.com/notofonts/arabic) — FIX-6b (D-041)
 *   All four are released under the SIL Open Font License, Version 1.1
 *   (https://openfontlicense.org). Redistribution and bundling permitted.
 */

/* ── Sora ──────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sora-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/sora-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/sora-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/sora-latin-700-normal.woff2') format('woff2');
}

/* ── Inter ─────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* ── IBM Plex Mono ─────────────────────────────────────────────────────── */

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* ── Noto Naskh Arabic (FIX-6b, ed-5zq7.6.2, D-041) ──────────────────────
 * Screen face for BOTH `ur` and `ar` locales — the document pipeline already
 * ships NotoNaskhArabic-Regular.ttf (Application/Documents/Fonts/), so this
 * makes screen and print agree (ed-94g7). Source: Fontsource
 * @fontsource/noto-naskh-arabic v5.3.0 (npm; upstream Noto Project v44,
 * OFL-1.1), arabic-subset prebuilt woff2, weights 400/500/600/700 to match
 * the Sora/Inter scale intent (A3). unicode-range below is the exact
 * Fontsource "arabic" subset range — covers the Arabic block (U+0600-06FF,
 * includes the Urdu-specific extended letters ی ے ٹ ڈ ڑ ں ھ), Arabic
 * Supplement (U+0750-077F), and Arabic Presentation Forms A/B
 * (U+FB50-FDFF, U+FE70-FEFC) — AR6. Nastaliq is deferred, not shipped
 * (D-041). */
@font-face {
    font-family: 'Noto Naskh Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
    src: url('../fonts/noto-naskh-arabic-arabic-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Naskh Arabic';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
    src: url('../fonts/noto-naskh-arabic-arabic-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Naskh Arabic';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
    src: url('../fonts/noto-naskh-arabic-arabic-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Naskh Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
    src: url('../fonts/noto-naskh-arabic-arabic-700-normal.woff2') format('woff2');
}
