/* One typeface for the whole product: Inter (static/css/fonts.css). It loads last so no page can bring its own.
   Interface text, numbers and labels all use it (numbers aligned in columns with tabular figures). A fixed-width face is kept only for real code. */
:root { --bs-body-font-family: var(--font-ui); --bs-font-sans-serif: var(--font-ui); --bs-font-monospace: var(--font-ui); }
html, body, button, input, select, textarea, optgroup { font-family: var(--font-ui); }

/* Bootstrap's .font-monospace was used all over the interface for "technical" labels: it reads as Inter now, with aligned figures. */
.font-monospace, [class*="font-monospace"] { font-family: var(--font-ui) !important; font-variant-numeric: tabular-nums; }

/* Anything that still asks for a typewriter face inline. */
[style*="monospace"], [style*="Courier"], [style*="Fira Code"], [style*="Space Grotesk"] { font-family: var(--font-ui) !important; }

/* Real code keeps its own face (and wins over the rules above). */
code, kbd, samp, pre, pre *, code.font-monospace, pre.font-monospace, kbd.font-monospace,
.hljs, .hljs *, .json-view, .json-view * { font-family: var(--font-code) !important; font-variant-numeric: normal; }
