/* Joripo's typefaces, served by Joripo itself (static/fonts), so a server
 * with no internet access and Joripo Collect draw every page the same way.
 * Loaded first by every page shell (console, Form Designer and test view,
 * web form, marketing, sign-in) and by the app; the stylesheets use the
 * stack as var(--font-ui, system-ui, sans-serif).
 *
 * - Inter (variable, weights 100-900, upright and italic; Latin and Latin
 *   Extended subsets): a UI face with a large x-height that stays legible in
 *   dense 12-14px tables and forms, with tabular figures (tnum).
 * - Noto Sans Bengali (variable, weights 100-900; Bengali subset): complete
 *   conjuncts, reph and ya-phala forms; Android's own Bengali face, so the
 *   web matches the phone. Its unicode-range takes Bengali (and the dandas,
 *   ZWNJ/ZWJ and the dotted circle) away from Inter, which has none of it.
 *
 * Both are the woff2 subsets of the npm packages @fontsource-variable/inter
 * and @fontsource-variable/noto-sans-bengali 5.3.0, unmodified, under the
 * SIL Open Font License 1.1 (static/fonts/*-OFL.txt, THIRD_PARTY_LICENSES.md;
 * tests/test_fonts.py pins each file). font-display: swap shows text in the
 * fallback at once and switches when the face arrives.
 */

/* Inter, Latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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;
}

/* Inter, Latin Extended */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.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;
}

/* Inter italic (hints, messages), Latin */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-italic.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;
}

/* Inter italic, Latin Extended */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-italic.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;
}

/* Noto Sans Bengali, Bengali (it has no italic; a browser slants it) */
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-sans-bengali-bengali-wght-normal.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

:root {
  --font-ui: "Inter", "Noto Sans Bengali", system-ui, sans-serif;
}

/* Figures that are compared line up: every table, counts (.num), progress
 * and meters. Only digits change width; text is untouched. */
table, .num, progress, meter { font-variant-numeric: tabular-nums; }
