/*
 * Rubik, self-hosted. Loaded by AdminPanelProvider via Filament's
 * LocalFontProvider, which also sets --font-family: Rubik for the panel.
 *
 * Self-hosted rather than pulled from Google/Bunny: no third-party request on
 * every page load, no visitor IPs leaving the app, and the panel still renders
 * if the CDN is unreachable. The previous setup imported Rubik from Google
 * Fonts inside theme.css and then never applied it - the request was pure cost.
 *
 * One variable file covers weights 300-900 (43KB, subset to Hebrew + Latin +
 * punctuation + currency). Do not swap it for static weights without checking
 * the size trade-off - the variable file is smaller than two static cuts.
 */

@font-face {
    font-family: 'Rubik';
    src: url('/fonts/rubik/rubik-var.woff2') format('woff2');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

/*
 * Rubik ships PROPORTIONAL digits by default - the "1" is 428/1000em against
 * the "8" at 636/1000em. Money columns therefore do NOT line up unless tabular
 * figures are switched on explicitly, at which point every digit becomes 619.
 * Verified against the shipped font, not assumed.
 *
 * Applied to table cells and to anything opted in with .tabular-nums, so that
 * amounts can be compared down a column by eye. Kept out of prose, where
 * proportional figures read better.
 */
.fi-ta-table td,
.fi-ta-table th,
.fi-in-text-item,
.tabular-nums {
    font-variant-numeric: tabular-nums;
}
