/* ToyotaType — the www.arlingtontoyota.com body AND heading font, self-hosted.
 *
 * Rehosted from the dealer's own live site, which serves these exact .woff2 files publicly at
 * /app/themes/dv-framework/media/css/fonts/OEMs/Toyota/. Toyota Motor Corporation brand font,
 * used here for that same Toyota franchise dealer's own site — this mirrors the dealer's existing
 * arrangement, the same basis as century-gothic (fordofwauchula) and mmc-office (srqauto).
 * ⚠ OEM-licensed: it is correct for arlingtontoyota and other Toyota franchise tenants, and must
 * NOT be pointed at a non-Toyota dealer.
 *
 * WHY IT EXISTS — and why this one is not a "declared but never delivered" case. Migration 1771
 * (bannerford) found Ford Antenna declared but never loaded, so matching legacy there meant Arial.
 * Measured here 2026-09-01 over CDP on the live site, the opposite is true:
 *     document.fonts.check("16px 'ToyotaType'")      -> TRUE
 *     document.fonts.check("16px 'ToyotaTypeBook'")  -> TRUE
 *     ToyotaType faces with status "loaded"          -> 6-7 per page
 *     body / h1 computed font-family                 -> "ToyotaType, sans-serif"
 * Production really does render in ToyotaType, so matching it means serving it. Without this the
 * platform default (Hanken Grotesk body / Bricolage Grotesque headings) renders instead and no
 * page can look like production no matter how the type scale is tuned.
 *
 * SAME-ORIGIN on purpose, matching the century-gothic / mmc-office precedent: CSP style-src and
 * font-src already allow 'self', so this needs no policy change on either the middleware or its
 * Caddy twin. A bucket-hosted copy would need font-src edits in both.
 *
 * local() first so a machine with the font installed skips the download entirely.
 *
 * ToyotaTypeBook is production's body face (a lighter companion of the same family). It is mapped
 * here as weight 300 of ToyotaType AND kept as its own family, because live's own CSS names both.
 *
 * Tenant wiring (migration 1855): Theme.FontUrl = /fonts/toyota-type/fonts.css,
 * Theme.FontFamily = "ToyotaType", Arial, Helvetica, sans-serif.
 */

@font-face {
  font-family: "ToyotaType";
  src: local("ToyotaType Light"), url("/fonts/toyota-type/ToyotaType-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: local("ToyotaType"), url("/fonts/toyota-type/ToyotaType-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: local("ToyotaType Semibold"), url("/fonts/toyota-type/ToyotaType-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: local("ToyotaType Bold"), url("/fonts/toyota-type/ToyotaType-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: local("ToyotaType Black"), url("/fonts/toyota-type/ToyotaType-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: url("/fonts/toyota-type/ToyotaType-LightIt.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: url("/fonts/toyota-type/ToyotaType-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: url("/fonts/toyota-type/ToyotaType-SemiboldIt.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: url("/fonts/toyota-type/ToyotaType-BoldIt.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaType";
  src: url("/fonts/toyota-type/ToyotaType-BlackIt.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Production's body face. Live names it as its own family, so serve it under that name too. */
@font-face {
  font-family: "ToyotaTypeBook";
  src: local("ToyotaType Book"), url("/fonts/toyota-type/ToyotaType-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ToyotaTypeBook";
  src: url("/fonts/toyota-type/ToyotaType-BookIt.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
