/**
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
 * 
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are 
 * explicitly restricted from using the Licensed Webfonts(s).
 * 
 * You may obtain a valid license at the URLs below.
 * 
 * Webfont: Neue Haas Grotesk Text Pro 75 Bold by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry

 * Webfont: Neue Haas Grotesk Text Pro 55 Roman by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry

 * Webfont: Neue Haas Grotesk Display Pro 55 Roman by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry

 * Webfont: Neue Haas Grotesk Display Pro 75 Bold by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry
 
 * © 2026 MyFonts Inc. */

/* Neue Haas Grotesk, the suite's heading and UI face (2026-10-20): TVPM's MyFonts webfont licence, self-hosted, in place
   of the Adobe Fonts kit (uct5bca) the pages loaded before. The notice above is MyFonts' own, copied from the kit as it
   came: it stays at the top of these rules wherever they go.

   The font files are licensed and this repo is public, so they are never in it (tests/public-surface.test.js refuses
   them). They live in the tvpm-fonts R2 bucket; functions/api/fonts/nhg/[file].ts serves them to tvpm.rentals pages
   only — the licence covers that one domain name, so a preview deployment draws the fallback, Helvetica Neue, as does
   any page until the fonts are uploaded. The page faces only: never for a PDF, a deck or anything sold to others.

   The family names are the ones every stylesheet already asks for (they were the kit's): display = headings, labels and
   eyebrows; text = buttons, navigation, chips and figures (Text Pro carries tnum, so tabular-nums still lines up money;
   Display Pro has no tnum). 400 and 700 only, as before: never ask for 500 or 600. The licence has no italics, and the
   pages set font-synthesis: none (shared/tvpm-ui.css), so an italic in these faces is upright, never a faked slant.

   font-display: swap (2026-11-06): the page draws at once in the metric-matched fallback below, then swaps in the face
   without moving a line. The two files a page's first screen needs, display-700 and text-400, are preloaded by every
   page (<link rel="preload" … crossorigin>, the same address as here, so it is one request). */
@font-face {
    font-family: "neue-haas-grotesk-display";
    src: url("/api/fonts/nhg/display-400.woff2") format("woff2");   /* Neue Haas Grotesk Display Pro 55 Roman */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "neue-haas-grotesk-display";
    src: url("/api/fonts/nhg/display-700.woff2") format("woff2");   /* Neue Haas Grotesk Display Pro 75 Bold */
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "neue-haas-grotesk-text";
    src: url("/api/fonts/nhg/text-400.woff2") format("woff2");      /* Neue Haas Grotesk Text Pro 55 Roman */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "neue-haas-grotesk-text";
    src: url("/api/fonts/nhg/text-700.woff2") format("woff2");      /* Neue Haas Grotesk Text Pro 75 Bold */
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Source Serif 4, the reading face (2026-11-06, docs/web-typography-brief.md B): self-hosted from assets/fonts (SIL Open
   Font License: assets/fonts/OFL-SourceSerif4.txt), in place of the Google Fonts link every page carried. One variable
   file each for roman and italic: weight 200 to 900, optical size 8 to 60. The optical size follows the text's size by
   itself: font-optical-sizing is a property whose initial value is auto, not a descriptor here, and nothing in the suite
   sets it otherwise. The files are the latin set (231 characters, the true minus included); a letter outside it (Polish ł,
   say) is drawn in the fallback, one character at a time. */
@font-face {
    font-family: "Source Serif 4";
    src: url("/assets/fonts/source-serif-4-latin-vf.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Serif 4";
    src: url("/assets/fonts/source-serif-4-latin-italic-vf.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

/* The fallbacks that do not reflow (RW 10; docs/web-typography-brief.md C). Until a face arrives, and wherever it never
   does (a preview deployment: the licensed route answers tvpm.rentals only), the page draws a local font made to set like
   it: size-adjust brings its average advance to the face's, and the three overrides put its ascender, descender and line
   gap where the face's are, so nothing rewraps or jumps when the face swaps in. The numbers are measured by
   tools/fonts/fallback-metrics.py from the MyFonts files and Source Serif 4 against the system fonts, the widths weighted
   by the characters the suite's screens actually show (an interface is 7.5% figures and 18% capitals, not English prose);
   re-run it if a face changes. One family per local font, because Helvetica Neue (macOS, iOS) and Arial (Windows) are
   not the same shape and one set of numbers cannot fit both: the stacks in shared/tvpm-ui.css name the Helvetica Neue
   one first and the Arial one second, and a family whose local() font is not on the machine is skipped. Bold has its own
   face in each, so with font-synthesis: none a heading in the fallback is still bold. Android has neither Helvetica Neue
   nor Arial, so it draws its own sans until the face arrives.
   Source Serif 4 changes width with its optical size, and a size-adjust is one number: these are matched at 14px, the
   size most of the suite's serif text is set at (from 12px to 24px the face runs 2.6% wider to 6.7% narrower than
   any one setting). Its figures are lining and tabular, Georgia's old-style and uneven, so the serif fallback takes its
   figures and $ from Times New Roman (lining and tabular too), a unicode-range face in the same family. */
@font-face { font-family: "nhg-display-fallback"; src: local("Helvetica Neue"), local("HelveticaNeue"); font-weight: 400; font-style: normal; size-adjust: 93.22%; ascent-override: 98.26%; descent-override: 24.46%; line-gap-override: 0%; }
@font-face { font-family: "nhg-display-fallback"; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"); font-weight: 700; font-style: normal; size-adjust: 94.16%; ascent-override: 99.30%; descent-override: 27.93%; line-gap-override: 0%; }
@font-face { font-family: "nhg-display-fallback-arial"; src: local("Arial"), local("ArialMT"); font-weight: 400; font-style: normal; size-adjust: 93.35%; ascent-override: 98.13%; descent-override: 24.43%; line-gap-override: 0%; }
@font-face { font-family: "nhg-display-fallback-arial"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; font-style: normal; size-adjust: 94.22%; ascent-override: 99.24%; descent-override: 27.91%; line-gap-override: 0%; }
@font-face { font-family: "nhg-text-fallback"; src: local("Helvetica Neue"), local("HelveticaNeue"); font-weight: 400; font-style: normal; size-adjust: 103.74%; ascent-override: 94.27%; descent-override: 23.62%; line-gap-override: 0%; }
@font-face { font-family: "nhg-text-fallback"; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"); font-weight: 700; font-style: normal; size-adjust: 102.21%; ascent-override: 97.54%; descent-override: 25.73%; line-gap-override: 0%; }
@font-face { font-family: "nhg-text-fallback-arial"; src: local("Arial"), local("ArialMT"); font-weight: 400; font-style: normal; size-adjust: 103.88%; ascent-override: 94.14%; descent-override: 23.58%; line-gap-override: 0%; }
@font-face { font-family: "nhg-text-fallback-arial"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; font-style: normal; size-adjust: 102.28%; ascent-override: 97.48%; descent-override: 25.71%; line-gap-override: 0%; }
@font-face { font-family: "source-serif-fallback"; src: local("Georgia"); font-weight: 400; font-style: normal; size-adjust: 105.69%; ascent-override: 98.03%; descent-override: 31.70%; line-gap-override: 0%; }
@font-face { font-family: "source-serif-fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 600; font-style: normal; size-adjust: 93.01%; ascent-override: 111.38%; descent-override: 36.02%; line-gap-override: 0%; }
@font-face { font-family: "source-serif-fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-weight: 400; font-style: italic; size-adjust: 96.55%; ascent-override: 107.30%; descent-override: 34.70%; line-gap-override: 0%; }
@font-face { font-family: "source-serif-fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"); unicode-range: U+0024, U+0030-0039; font-weight: 400; font-style: normal; size-adjust: 105.68%; ascent-override: 98.03%; descent-override: 31.70%; line-gap-override: 0%; }
@font-face { font-family: "source-serif-fallback"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"); unicode-range: U+0024, U+0030-0039; font-weight: 600; font-style: normal; size-adjust: 109.30%; ascent-override: 94.78%; descent-override: 30.65%; line-gap-override: 0%; }
@font-face { font-family: "source-serif-fallback"; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"); unicode-range: U+0024, U+0030-0039; font-weight: 400; font-style: italic; size-adjust: 107.26%; ascent-override: 96.59%; descent-override: 31.23%; line-gap-override: 0%; }
