/*
 * Self-hosted "Golos Text" — replaces the former fonts.googleapis.com +
 * fonts.gstatic.com <link> tags in layout.php (see [[map_redesign]]-adjacent
 * performance pass, 2026-08-24). Google served this family as a single
 * VARIABLE font per subset (confirmed: requesting weights 400/500/600/700/800
 * via the css2 API returned 5 @font-face blocks per subset, but all 5 pointed
 * at the byte-identical .woff2 URL) — so one @font-face per subset, with a
 * font-weight RANGE, covers every weight actually used on the site
 * (400/500/600/700/800; verified via grep across every .css/resources/views
 * file — nothing here references 900, so it was never downloaded).
 *
 * Only the latin subset (U+0000-00FF covers Spanish and Portuguese: ñ, á, ç,
 * ¿, ¡). The cyrillic subset of the RU parent was removed.
 */
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/static/fonts/golos-text/golos-text-latin.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;
}

/*
 * Metric-matched fallback while Golos Text loads (font-display: swap), so
 * the swap does not shift the layout (CLS, seo task 1.6). Measured 29.11.2026
 * in Edge on the same Spanish sample at 100px: Golos 400 is 6.6 % wider than
 * Arial, Golos 700 0.6 % wider than Arial Bold; font box ascent 98 / descent
 * 22 (Arial 91 / 21). Overrides are relative to the adjusted size.
 * Liberation Sans is metric-compatible with Arial (Linux, Lighthouse).
 */
@font-face {
    font-family: 'Golos Text Fallback';
    font-style: normal;
    font-weight: 100 599;
    src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
    size-adjust: 106.6%;
    ascent-override: 91.9%;
    descent-override: 20.6%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Golos Text Fallback';
    font-style: normal;
    font-weight: 600 900;
    src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold');
    size-adjust: 100.6%;
    ascent-override: 97.4%;
    descent-override: 21.9%;
    line-gap-override: 0%;
}
