/*
 * SPA font-face declarations.
 *
 * Loaded from spa_shell.html via a <link rel="stylesheet"> tag pointing
 * at this file with {% static %}.
 *
 * Why this file exists separately (and not inside the React bundle):
 *   The SPA runs under a strict CSP: style-src 'self' — no 'unsafe-inline',
 *   no nonces, no hashes (compliance-locked, see utils/custom_middleware/csp.py).
 *   That blocks any <style> block in the HTML template. So the @font-face
 *   declarations must live in a same-origin .css file.
 *
 * Why relative `../fonts/...` paths (and not absolute `/static/...`):
 *   In prod we use ManifestStaticFilesStorage. Its CSS post-processor scans
 *   each .css file in STATIC_ROOT for asset references, looks up each
 *   referenced file in the manifest, and rewrites the reference to point
 *   at the hashed filename. This works ONLY for relative paths resolved
 *   against the CSS file's own location. Absolute paths like /static/fonts/...
 *   would NOT be rewritten and would 404 in prod under manifest hashing.
 *
 *   In dev (StaticFilesStorage, no hashing) the relative path is served
 *   as-is — /static/css/spa-fonts.css references ../fonts/X.woff2, which
 *   the browser resolves to /static/fonts/X.woff2, served raw.
 *
 *   NOTE: Django's CSS post-processor is regex-based and does NOT skip
 *   CSS comments. Any literal u-r-l(...) token inside a comment in this
 *   file would be treated as a real reference and break collectstatic.
 *   Keep the @font-face declarations below as the ONLY place those tokens
 *   appear.
 *
 * Why not put fonts under react/src/:
 *   Vite has its own asset graph (/static/app-dist/) with its own hashing
 *   scheme separate from Django's. Mixing the two creates duplicate fetches
 *   and broken manifest lookups. Fonts stay in Django's static tree; only
 *   the SPA's JS/CSS bundles live in Vite's tree.
 *
 * If you add a new font:
 *   1. Put the .woff2 file in customerNode_site/static/fonts/
 *   2. Add the @font-face block below referencing ../fonts/X.woff2
 *      (relative path — the manifest rewrites it at collectstatic time).
 *   3. Reference the font-family in react/src/shared/theme/variables.css
 *   4. (Optional) Add a <link rel="preload"> for it in spa_shell.html
 *   5. Pin its ascent-override, descent-override and line-gap-override to
 *      the numbers in its own file (hhea, per 1000 units), so every browser
 *      lays its text out the same: one Chrome drew toolbar words 2px above
 *      their icons without them (2026-11-12, __guards__/toolbar_label_level).
 */

@font-face {
  font-family: 'Satoshi';
  src: url("../../fonts/satoshi-variable.70880e42f07b.woff2") format('woff2');
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 101%;
  descent-override: 24%;
  line-gap-override: 10%;
}
@font-face {
  font-family: 'Satoshi';
  src: url("../../fonts/satoshi500.cd790237ed63.woff2") format('woff2');
  font-weight: 500;
  font-display: swap;
  ascent-override: 101%;
  descent-override: 24%;
  line-gap-override: 10%;
}
@font-face {
  font-family: 'Satoshi';
  src: url("../../fonts/satoshi700.d4db658f4dd6.woff2") format('woff2');
  font-weight: 700;
  font-display: swap;
  ascent-override: 101%;
  descent-override: 24%;
  line-gap-override: 10%;
}
@font-face {
  font-family: 'Orbitron';
  src: url("../../fonts/orbitron400.5d281085f727.woff2") format('woff2');
  font-weight: 400;
  font-display: swap;
  ascent-override: 101.1%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Orbitron';
  src: url("../../fonts/orbitron700.5d281085f727.woff2") format('woff2');
  font-weight: 700;
  font-display: swap;
  ascent-override: 101.1%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url("../../fonts/spacegrotesk.87c506d88b9f.woff2") format('woff2');
  font-weight: 300 700;
  font-display: swap;
  ascent-override: 98.4%;
  descent-override: 29.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sora';
  src: url("../../fonts/sora400.fc575ebf6f7c.woff2") format('woff2');
  font-weight: 400;
  font-display: swap;
  ascent-override: 97%;
  descent-override: 29%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sora';
  src: url("../../fonts/sora600.fc575ebf6f7c.woff2") format('woff2');
  font-weight: 600;
  font-display: swap;
  ascent-override: 97%;
  descent-override: 29%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sora';
  src: url("../../fonts/sora700.fc575ebf6f7c.woff2") format('woff2');
  font-weight: 700;
  font-display: swap;
  ascent-override: 97%;
  descent-override: 29%;
  line-gap-override: 0%;
}
