/*
 * Print typefaces, served from THIS origin.
 *
 * They used to be pulled from fonts.googleapis.com at render time, which trades
 * a system dependency for a network one: a print station with blocked or flaky
 * access silently substitutes a fallback face, and the card comes out wrong on
 * plastic that cannot be un-printed. Intermittent is the worst kind of wrong,
 * because it tests fine.
 *
 * Latin subsets for the first five families, ~150 KB, cached once. Montserrat
 * and Inter are variable fonts, so each weight is one declaration over one file. 400 is
 * the Solo card back's body text; without it the browser printed Medium there.
 * Inter (400-600) is the OIS employee ID card's face.
 * Noto Sans Bengali supplies the Bengali subset for screen and print text.
 *
 * The print-only faces use `font-display: block`. Noto Sans Bengali uses swap
 * so app-wide loading never hides on-screen Bangla. Print surfaces still gate
 * via `waitForDocumentFonts` before printing with these faces.
 *
 * All six families are SIL Open Font License, so self-hosting is permitted.
 */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/bebas-neue-latin.woff2') format('woff2');
}

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

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

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

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

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

/* Public Sans: the FEMS default ID cards' words (Classic, Modern, Playful, Bright)
   and the OIS employee card's NO PHOTO placeholder. Manrope: the default cards'
   numbers. Served here so a blocked Google Fonts request can never hold a card back. */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url('/fonts/public-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: block;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
}

/* Noto Sans Bengali: SIL OFL 1.1, Copyright 2022 The Noto Project Authors. */
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/noto-sans-bengali.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;
}
