/* IBBC Capital — typography system v1 (V26, 29/10/2026)
   Display: Cormorant Garamond (Garamond lineage, as Sabon at Goldman Sachs) — headings ≥ ~28px only.
   Text/UI/data: Inter with tabular lining figures.
   Both SIL Open Font License, Vietnamese subset included. Loaded last so it overrides older
   page styles (incl. the legacy rule that forced Georgia on main h1/h2). */
:root{
  --mf-serif:'Cormorant Garamond','EB Garamond',Garamond,Georgia,'Times New Roman',serif;
  --mf-sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --i-serif:var(--mf-serif); --i-sans:var(--mf-sans);
}

/* Body text, navigation, forms, tables */
html body,
html body :is(p,li,dd,dt,td,th,label,input,select,textarea,button,small,figcaption,summary,nav,header,footer,a){font-family:var(--mf-sans)}
html body :is(.mfx-head,.mfx-foot,.mfx-sub,.mfx-scope,.mfx-head .mfx-lang button,.mfx-head .mfx-cta,.mfx-head .mfx-burger,.mfx-sub nav a,.mf-entity){font-family:var(--mf-sans)!important}
html body :is(table,td,th,.num,[class*="metric"],[class*="kpi"]){font-variant-numeric:lining-nums tabular-nums}

/* Display headings: h1, h2 and large display figures */
html body :is(h1,h2):not(#mf-type-x),
html body :is(.inst-door h3,.inst-fig b,.inst-prod .price,.lf-disclosure>summary,.tutor-shell strong,.df-metrics strong):not(#mf-type-x){
  font-family:var(--mf-serif)!important;
  font-weight:600!important;
  letter-spacing:-.005em!important;
  font-size-adjust:.46;          /* Cormorant has a small x-height; keeps optical size close to the old layout */
  font-variant-numeric:lining-nums tabular-nums;
  font-kerning:normal;
}
html body h1:not(#mf-type-x){line-height:1.08}

/* Small headings and labels stay in Inter (Cormorant is too fine below ~24px) */
html body :is(h3,h4,h5,h6):not(#mf-type-x){font-family:var(--mf-sans)!important;letter-spacing:0}
html body .inst-door h3:not(#mf-type-x){font-family:var(--mf-serif)!important}
html body :is(.tile b,.hero p.lead,.lede,.lead):not(#mf-type-x){font-family:var(--mf-sans)!important}

/* Eyebrows and small caps labels */
html body :is(.inst-eyebrow,.eyebrow,.kicker){font-family:var(--mf-sans)!important;font-weight:600;letter-spacing:.16em}

/* Code / reference ids stay monospaced */
html body :is(code,kbd,pre,samp){font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important}

/* consent line: link to privacy notice (all forms) */
html body .fcons{flex-wrap:wrap}
html body .fcons .fcons-link{flex:0 0 100%;margin:4px 0 0 28px;color:#c40000;text-decoration:underline;text-underline-offset:2px;font-size:inherit}
html body .fcons>span{flex:1 1 0;min-width:0}
