/* SiteFlow — typeface layer. html[data-font] picks the pair; no attribute = Schibsted Grotesk (unchanged).
   neo:     Plus Jakarta Sans headings + Inter body  (Neo Intelligence)
   varicon: Barlow Condensed headings + Inter body   (Varicon)
   inter:   Inter throughout                          (Stripe / Linear style) */
html[data-font="neo"]     { --f-body: 'Inter', -apple-system, sans-serif; --f-head: 'Plus Jakarta Sans', 'Inter', sans-serif; }
html[data-font="varicon"] { --f-body: 'Inter', -apple-system, sans-serif; --f-head: 'Barlow Condensed', 'Inter', sans-serif; }
html[data-font="inter"]   { --f-body: 'Inter', -apple-system, sans-serif; --f-head: 'Inter', -apple-system, sans-serif; }

html[data-font] body,
html[data-font] body *:not(.ms):not([class*="material"]),
html[data-font] body.v3 #app button,
html[data-font] body.v3 #app input,
html[data-font] body.v3 #app select,
html[data-font] body.v3 #app textarea { font-family: var(--f-body) !important; }

/* Headings and headline figures */
html[data-font] body h1, html[data-font] body h2, html[data-font] body h3,
html[data-font] body .sf-side .logo b,
html[data-font] body .sf-top-title,
html[data-font] body .sf-stat b,
html[data-font] body .sf-quad b,
html[data-font] body .sf-owed .tot,
html[data-font] body .sf-dhead .val b,
html[data-font] body .pj-kpi b,
html[data-font] body .v4-kpi .v { font-family: var(--f-head) !important; }

/* Inter reads best slightly tighter at display sizes; Barlow Condensed needs a touch more weight and no negative tracking */
html[data-font="inter"] body h1, html[data-font="neo"] body h1 { letter-spacing: -.025em; }
html[data-font="varicon"] body h1, html[data-font="varicon"] body h2, html[data-font="varicon"] body h3,
html[data-font="varicon"] body .sf-stat b, html[data-font="varicon"] body .pj-kpi b, html[data-font="varicon"] body .v4-kpi .v,
html[data-font="varicon"] body .sf-owed .tot { letter-spacing: 0 !important; font-weight: 700 !important; }
html[data-font] body { -webkit-font-smoothing: antialiased; }

/* Temporary picker (only shown with ?fonts=1) */
.sf-fontpick { position: fixed; right: 16px; bottom: 16px; z-index: 99999; background: #fff; border: 1px solid #E6E8EC; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(10,31,68,.14); padding: 8px; display: flex; gap: 4px; font: 600 13px/1 -apple-system, sans-serif !important; }
.sf-fontpick button { border: 0; background: #F2F4F7; color: #0A1F44; padding: 9px 12px; border-radius: 7px; cursor: pointer; font: inherit !important; }
.sf-fontpick button.on { background: #0A1F44; color: #fff; }

/* Plus Jakarta Sans is wider: keep project figures on one line */
@media (min-width: 900px) { html[data-font] body .pj-kpi b { font-size: clamp(20px, 1.75vw, 26px) !important; white-space: nowrap; } }
