/* ══════════════════════════════════════════════════════════════════════════
   BizVitals typography — one family, used everywhere (12 Nov 2026)

   "BizVitals Sans" = Figtree (SIL OFL) with ▲▼ ● ✓ ✕ added. It has its own
   ₹ sign and arrows. One family for headings and text, the way Claude's
   interface uses one font; hierarchy comes from size and weight:
     page / section titles  h1–h2   700, slightly tight tracking
     card / block titles    h3–h4   600
     text, labels, numbers         400 / 500 / 600
   Code in the admin keyword / rule editors keeps the system monospace.

   Loaded on every HTML page (app.py adds it before </head>). The rules sit in
   a cascade layer: an !important declaration inside a layer outranks every
   un-layered !important rule in the older stylesheets, whatever their
   specificity — so no page, widget or inline <style> can keep an old font.
   Fonts are self-hosted (static/fonts) — no third-party font requests.
   ══════════════════════════════════════════════════════════════════════════ */
@font-face{font-family:"BizVitals Sans";font-style:normal;font-weight:300 400;font-display:swap;src:url(fonts/BizVitalsSans-Regular.woff2) format("woff2")}
@font-face{font-family:"BizVitals Sans";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/BizVitalsSans-Medium.woff2) format("woff2")}
@font-face{font-family:"BizVitals Sans";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/BizVitalsSans-SemiBold.woff2) format("woff2")}
@font-face{font-family:"BizVitals Sans";font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/BizVitalsSans-Bold.woff2) format("woff2")}
@font-face{font-family:"BizVitals Sans";font-style:italic;font-weight:300 900;font-display:swap;src:url(fonts/BizVitalsSans-Italic.woff2) format("woff2")}

:root{
  --bv-font-text:"BizVitals Sans","Figtree",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --bv-font-head:var(--bv-font-text);
  --bv-font-code:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  /* every older font token now points at the one family */
  --f-sans:var(--bv-font-text);--f-mono:var(--bv-font-text);--bv-sans:var(--bv-font-text);--bv-mono:var(--bv-font-text);
  --sans:var(--bv-font-text);--mono:var(--bv-font-text);--font-sans:var(--bv-font-text);--font-mono:var(--bv-font-text);
  --display:var(--bv-font-text);--font-display:var(--bv-font-text);--grotesk:var(--bv-font-text);--serif:var(--bv-font-text);
  --ff-display:var(--bv-font-text);--ff-body:var(--bv-font-text);--ff-mono:var(--bv-font-text);
  --exd-display:var(--bv-font-text);--exd-body:var(--bv-font-text);--exd-mono:var(--bv-font-text);
  --pg-mono:var(--bv-font-text);--bvw-ff:var(--bv-font-text);--bvw-ff-num:var(--bv-font-text);--v9-mono:var(--bv-font-text);
}

@layer bvtype {
  /* 1 · One family for every element, SVG chart labels and form controls included */
  html,body,*{font-family:var(--bv-font-text)!important}
  *::before,*::after{font-family:inherit!important}
  body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-kerning:normal}
  html,body,*{font-variant-ligatures:no-common-ligatures!important}   /* plain "fi"/"fl" so copied text and printed PDFs stay searchable */

  /* 2 · Headings: weight + tracking set the hierarchy (same family) */
  h1,h2{font-weight:700!important;letter-spacing:-.018em!important}
  h3,h4{font-weight:600!important;letter-spacing:-.008em!important}
  h1 *,h2 *,h3 *,h4 *{letter-spacing:inherit!important}
  h1,h2,h3,h4{font-feature-settings:normal!important;text-wrap:balance}
  .brand b,.brand-f,.bv-wordmark b,.lp-word,.mob-brand{font-weight:700!important;letter-spacing:-.015em!important}

  /* 3 · Figures line up in tables and number cells */
  td,th,[class*="num"],[class*="kpi"],[class*="val"],[class*="fig"],[class*="mono"],output,
  .tabular-nums{font-variant-numeric:tabular-nums}

  /* 4 · Readable floor: no interface text below 10px (labels that were 8–9.5px
        in the old mono face). Drawings and chart labels inside SVGs keep their size. */
  [class*="text-[8px]"],[class*="text-[8.5px]"],[class*="text-[9px]"],[class*="text-[9.5px]"],
  .f-col .soon-t,.dw-pill,.bv-sc-meta-label,.bv-sc-brand-tag,
  .exd-risk-rcv .lbl,.exd-bleed-rcv .lbl,.exd-slider-unlock .lbl,.exd-total-unlock .lbl,.exd-mini-stats .lbl{font-size:10px!important}

  /* 5 · Code stays monospace (keyword / rule editors, JSON, file names) */
  code,pre,kbd,samp,code *,pre *,kbd *,samp *{font-family:var(--bv-font-code)!important}
}
