/* Bangla typography — applies only while <html lang="bn">.
   Fonts follow the design system: Hind Siliguri for headings, Noto Sans Bengali for body/UI.
   Bengali tracking is 0 (letter-spacing splits conjuncts), leading is open, and body sizes sit
   about one step above the English scale because Bengali glyphs read smaller at the same px. */
:root:lang(bn) {
  --font-heading: var(--font-bn-heading);
  --font-body: var(--font-bn-body);
}
:root:lang(bn) body { font-family: var(--font-bn-body); line-height: 1.7; }
:root:lang(bn) button, :root:lang(bn) input, :root:lang(bn) textarea, :root:lang(bn) select, :root:lang(bn) .btn { font-family: var(--font-bn-body); }
:root:lang(bn) h1, :root:lang(bn) h2, :root:lang(bn) h3, :root:lang(bn) h4 { font-family: var(--font-bn-heading); line-height: 1.3 !important; text-wrap: pretty; }
:root:lang(bn) * { letter-spacing: 0 !important; }
:root:lang(bn) p, :root:lang(bn) li { line-height: 1.7 !important; }

/* body-size steps (inline px values → Bangla equivalents) */
:root:lang(bn) [style*="font-size: 11px"] { font-size: 13px !important; }
:root:lang(bn) [style*="font-size: 12px"] { font-size: 13.5px !important; }
:root:lang(bn) [style*="font-size: 13px"] { font-size: 14.5px !important; }
:root:lang(bn) [style*="font-size: 14px"] { font-size: 15.5px !important; }
:root:lang(bn) [style*="font-size: 15px"] { font-size: 16.5px !important; }
:root:lang(bn) [style*="font-size: 16px"] { font-size: 17.5px !important; }
:root:lang(bn) [style*="font-size: 17px"] { font-size: 18.5px !important; }
:root:lang(bn) [style*="font-size: 18px"] { font-size: 19.5px !important; }
:root:lang(bn) [style*="font-size: 19px"] { font-size: 20px !important; }
:root:lang(bn) [style*="font-size: 20px"] { font-size: 21px !important; }

/* display sizes: Bangla headlines run wider and taller than Latin, so step the big ones down */
:root:lang(bn) [style*="font-size: 72px"] { font-size: 56px !important; }
:root:lang(bn) [style*="font-size: 59px"] { font-size: 48px !important; }
:root:lang(bn) [style*="font-size: 57px"] { font-size: 46px !important; }
:root:lang(bn) [style*="font-size: 54px"] { font-size: 46px !important; }
:root:lang(bn) [style*="font-size: 53px"] { font-size: 44px !important; }
:root:lang(bn) [style*="font-size: 50px"] { font-size: 42px !important; }
:root:lang(bn) [style*="font-size: 48px"] { font-size: 42px !important; }
:root:lang(bn) [style*="font-size: 46px"] { font-size: 40px !important; }
:root:lang(bn) [style*="font-size: 45px"] { font-size: 40px !important; }
:root:lang(bn) [style*="font-size: 44px"] { font-size: 38px !important; }
:root:lang(bn) [style*="font-size: 42px"] { font-size: 38px !important; }
:root:lang(bn) [style*="font-size: 40px"] { font-size: 36px !important; }
:root:lang(bn) [style*="font-size: 36px"] { font-size: 32px !important; }

/* tight leading is fine for Latin numerals, not for Bangla vowel marks */
:root:lang(bn) [style*="line-height: 1;"], :root:lang(bn) [style*="line-height: 1."], :root:lang(bn) [style*="line-height: 0.9"] { line-height: 1.3 !important; }
:root:lang(bn) [style*="line-height: 1.4"], :root:lang(bn) [style*="line-height: 1.5"] { line-height: 1.7 !important; }
