/* ==========================================================================
   StartFlow default fonts — Inter (text) + Plus Jakarta Sans (headings)
   The one place the system's typefaces are defined. Self-hosted from ../fonts
   (no third-party font server); variable fonts, one file per subset covers
   every weight. Loaded by every TawiOs surface and by System typography
   (Support/SelfHostedFonts, Support/SystemTypography), so the panels, the
   sign-in pages and the website all share it whatever the theme.

   Loading: the Latin files are preloaded (startflow::fonts.preload) and use
   font-display: fallback — text is hidden for at most ~100 ms, never longer.
   If a font is still not there, text shows in a local fallback face sized to
   Inter's / Plus Jakarta Sans's metrics (size-adjust + ascent/descent
   overrides), so when the real font arrives nothing jumps or reflows.

   Stacks: --sf-font-sans / --sf-font-display. Keep them in step with
   SelfHostedFonts::STACKS (used in System typography's generated CSS).
   ========================================================================== */

:root {
    --sf-font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sf-font-display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: fallback;
    src: url("../fonts/inter-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;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: fallback;
    src: url("../fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: fallback;
    src: url("../fonts/plus-jakarta-sans-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;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: fallback;
    src: url("../fonts/plus-jakarta-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallbacks (Arial / its metric twins), used only until the web
   fonts load. Values: Inter as published by next/font; Plus Jakarta Sans
   computed the same way from its hmtx/hhea tables. */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
    size-adjust: 107.12%;
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Plus Jakarta Sans Fallback";
    src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
    size-adjust: 106.05%;
    ascent-override: 97.88%;
    descent-override: 20.93%;
    line-gap-override: 0%;
}
