/*
 * Self-hosted webfonts. Replaces the Google Fonts <link> tags that used to live
 * in base.html.twig with a media="print" + onload="this.media='all'" async
 * trick. nelmio_security emits nonces in script-src, which per CSP spec voids
 * 'unsafe-inline', so that inline onload never ran: the stylesheets stayed at
 * media="print" forever and NONE of these families ever loaded. The <noscript>
 * fallback did not help — it only fires when JS is disabled, and JS was fine.
 * See LAR-445.
 *
 * Self-hosting also drops the runtime dependency on fonts.googleapis.com and
 * removes a per-pageview data leak (visitor IPs) to a third party, which matters
 * for an application that renders health PII.
 *
 * Variable fonts, latin + latin-ext subsets only (no cyrillic/greek/vietnamese).
 * 6 files, 224 KB total. unicode-range is copied verbatim from the Google Fonts
 * CSS so the browser only fetches latin-ext when a page actually needs it.
 *
 * All three families are SIL Open Font License 1.1 — see assets/fonts/LICENSE.
 * AssetMapper rewrites and versions the relative url() paths below.
 */


/* Inter — latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/inter-latin-1b3ec095194194abe1625b02c945e2f1.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-d41afbece57a3d66b2ee22fd630ad4ce.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans — latin */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/dm-sans-latin-30238abdb5b1df817d250d641952cf17.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — latin-ext */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/dm-sans-latin-ext-1c759d426c93c45ccc70067086e7144e.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Space Grotesk — latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-0ebf9c96d20c66ad59a2985217d45361.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk — latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext-3571ac26519b75353156de576ad7b4fd.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
