/*
 * AMIT type — shared by the Agent Console and the Sales CRM.
 *
 * These two apps already agreed on colour: `crm.css` and `dashboard.html` carry the same brand red,
 * neutrals and semantic palette, deliberately kept in lock-step so they read as one product. What
 * they did not share with anything was a typeface — both fell back to `"Segoe UI", Tahoma`, which
 * on the Macs and Linux boxes half the team uses resolves to neither, so the apps rendered in
 * whatever generic sans the browser reached for.
 *
 * The OMNI portal now loads the same two families, which is the point: a launcher tile and the
 * application it opens should not look like they came from different companies.
 *
 * LINK THIS LAST. It sets `body { font-family }` at the same specificity as each page's own rule,
 * so source order is what decides — the <link> belongs immediately before </head>, after the
 * page's <style> and stylesheet.
 *
 * Self-hosted rather than fetched from Google, so the agent hosts gain no third-party dependency
 * on a page load. Both files are variable fonts: one request per family covers every weight, and
 * `swap` keeps text readable while they arrive. The `latin-ext` files are only fetched when a glyph
 * actually needs them, so the usual cost is ~75 KB once, then cache.
 *
 * Arabic is untouched on purpose. Neither family ships Arabic, so per-glyph fallback carries it to
 * "Noto Naskh Arabic" and the system exactly as before — this is why that entry stays in the stack.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/Inter-latin.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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/Inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/static/fonts/PlusJakartaSans-latin.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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/static/fonts/PlusJakartaSans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Naskh Arabic", sans-serif;
  /* Inter's character variants: straighter l, open 4, disambiguated 1 — worth having on screens
     where a advisor is reading an ID or a phone extension off a row. */
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Headings and figures take the display face. Deliberately no size or weight changes beyond the
 * weight the family needs — this is a typeface swap, not a re-layout, and both apps are in daily
 * use by advisors who should not have to relearn a screen.
 */
h1,
h2,
h3,
h4,
h5,
h6,
.brand {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.012em;
}

/*
 * The counters on both dashboards. Tabular figures stop a KPI jittering sideways as it ticks, and
 * stop a column of numbers shifting a pixel per row — the specific thing that makes a data screen
 * feel unfinished.
 */
.kpi,
.kpis,
.num,
.an-num,
.an-stat,
.k-num,
.cp-num,
.im-num,
.an-kpi {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

table td,
table th {
  font-variant-numeric: tabular-nums;
}
