/*
 * Country flags that render on Windows.
 *
 * Windows ships no glyphs for regional-indicator pairs, so a flag emoji degrades to its two
 * bare letters — "GB", "DE" — which is exactly how the first attempt at market markers
 * shipped and how it was caught (Daniel, 25/08/2026). This is Twemoji's flag font, vendored
 * next to ApexCharts for the same reason: production has no npm build and no CDN budget.
 *
 * Twemoji is CC-BY 4.0 (© Twitter, Inc and other contributors); packaged as
 * country-flag-emoji-polyfill (MIT). 78KB, and `unicode-range` keeps it that way: the
 * browser downloads it only if a flag character is actually on the page, and it can never
 * affect any other glyph — which is what makes it safe to put FIRST in the panel's stack.
 */
@font-face {
    font-family: "Twemoji Country Flags";
    src: url("TwemojiCountryFlags.woff2") format("woff2");
    unicode-range: U+1F1E6-1F1FF;
    font-display: swap;
}

/*
 * Filament resolves every sans-serif rule through --font-family, so redefining that one
 * variable reaches the sidebar, the tab strip AND the table cells at once — including the
 * `.fi-ta-text-item.fi-font-sans` rules, which set font-family directly and would ignore
 * anything merely inherited from body.
 *
 * `html:root` and not `:root`, which is the whole reason this works: the panel prints
 * `:root { --font-family: 'Inter Variable' }` in an INLINE <style> that the browser reads
 * after this file, so an equal-specificity selector loses the cascade and the flags stay
 * invisible. `html:root` scores one element higher and wins wherever it is loaded from.
 * Verified in the browser, not assumed — the first version was overridden silently.
 *
 * 'Inter Variable' is repeated from the panel's own inline style. If the panel ever changes
 * typeface, this line has to follow it; MarketsTest pins the selector so at least the
 * mechanism cannot be simplified away by accident.
 */
html:root {
    --font-family: "Twemoji Country Flags", "Inter Variable", ui-sans-serif, system-ui, sans-serif;
}
