/* fonts.css — self-hosted webfaces for the pages that carry NO navbar.
   =====================================================================
   login.html, change_password.html and reset_password.html are standalone
   centred cards: they deliberately do not link navbar.css, so before this
   file existed they were the only three pages still pulling DM Sans, Oswald
   and DM Mono from https://fonts.googleapis.com. That was a render-blocking
   cross-origin stylesheet — DNS + TCP + TLS to a third party before the page
   could paint a single pixel, on the one screen every firefighter sees first.

   These @font-face rules are a copy of the block at the top of navbar.css,
   which serves the other 41 pages. Keep the two IN SYNC: the .woff2 filenames
   carry the typeface release (oswald-v57-…, dm-sans-v17-…), so a font update
   means new filenames and BOTH files must be edited. If they drift, these
   three pages silently fall back to system fonts.

   Do NOT link this file from a page that already loads navbar.css — that
   would register all 11 faces twice for no benefit.

   font-display: swap is load-bearing, not cosmetic: the default (auto, which
   browsers treat as block) hides text until the webfont resolves, which is
   exactly the flash-in this app has fixed elsewhere.
   ===================================================================== */

@font-face {
  /* swap, never block: the default (auto ~= block) hides text until the
     webfont lands, which is the navbar title flashing in. */
  font-display: swap;
  font-family: "DM Sans";
  src: url("/assets/dm-sans-v17-latin-300.woff2")
       format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "DM Sans";
  src: url("/assets/dm-sans-v17-latin-500.woff2")
       format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "DM Sans";
  src: url("/assets/dm-sans-v17-latin-600.woff2")
       format("woff2");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "DM Sans";
  src: url("/assets/dm-sans-v17-latin-700.woff2")
       format("woff2");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-display: swap;
  font-family: "DM Sans";
  src: url("/assets/dm-sans-v17-latin-regular.woff2")
       format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "Oswald";
  src: url("/assets/oswald-v57-latin-regular.woff2")
       format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "Oswald";
  src: url("/assets/oswald-v57-latin-500.woff2")
       format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "Oswald";
  src: url("/assets/oswald-v57-latin-600.woff2")
       format("woff2");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "Oswald";
  src: url("/assets/oswald-v57-latin-700.woff2")
       format("woff2");
  font-weight: 700;
  font-style: normal;
}

/* DM Mono is self-hosted for the same reason DM Sans and Oswald are, and it is
   the one that mattered most: it was the LAST family still coming from
   fonts.googleapis.com, and that <link> was a render-blocking CROSS-ORIGIN
   stylesheet in every page's <head>. Nothing in a document paints until every
   render-blocking stylesheet has loaded — measured: a body-top <script> does not
   run until the last head stylesheet resolves — so on a phone that request (DNS
   + TCP + TLS to a third-party host, before a byte of CSS) was pure white screen
   on every navigation. Self-hosting removes the third-party origin entirely and
   lets the file be served from the same warm connection as the page.

   Weights 400 and 500 only — that is exactly what the old CDN request asked for
   (`DM+Mono:wght@400;500`). Latin subset only, matching the other two families.
   Do not re-add the CDN <link> to any page that loads this stylesheet.         */
@font-face {
  font-display: swap;
  font-family: "DM Mono";
  src: url("/assets/dm-mono-v16-latin-regular.woff2")
       format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-display: swap;
  font-family: "DM Mono";
  src: url("/assets/dm-mono-v16-latin-500.woff2")
       format("woff2");
  font-weight: 500;
  font-style: normal;
}
