/*
 * windpay.org — language switcher and Bengali typography (2026-11-23)
 *
 * Latin text keeps Inter / Space Grotesk; Bengali glyphs fall through to
 * Hind Siliguri (already in the --font-* stacks), which bn pages load in full.
 * Bengali needs more line-height than Latin: the vowel signs (matras) sit
 * above and below the letters and get clipped by Tailwind's leading-tight.
 */

/* ── Switcher: segmented "EN | BN" pill (same style as name.windpay.org) ── */
.wp-lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .03);
}
.wp-lang-opt {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 9px;
  font: 700 12px/1 var(--font-mono); letter-spacing: .04em !important; color: oklch(0.7 0.02 262);
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  transition: color .15s ease, background-color .15s ease;
}
.wp-lang-opt:hover { color: #fff; }
.wp-lang-opt.is-active { color: #00e676; background: rgba(0, 230, 118, .14); border-color: rgba(0, 230, 118, .3); }

/* Mobile menu copy: centered, larger tap targets. */
.wp-lang-mob { display: flex; width: max-content; margin: 4px auto 14px; }
.wp-lang-mob .wp-lang-opt { height: 40px; min-width: 56px; font-size: 13px; }

@media (max-width: 429.98px) { .wp-nav-inner { gap: 8px; } .wp-lang-desk .wp-lang-opt { padding: 0 7px; min-width: 30px; } }

/* ── Bengali pages ── */
html[lang="bn"] body { line-height: 1.7; }
html[lang="bn"] p, html[lang="bn"] li, html[lang="bn"] dd, html[lang="bn"] td { line-height: 1.75; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] h4 {
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
html[lang="bn"] .leading-tight, html[lang="bn"] .leading-\[1\.05\], html[lang="bn"] .leading-\[1\.1\] { line-height: 1.3; }
html[lang="bn"] .leading-relaxed { line-height: 1.8; }
/* Hind Siliguri stops at 700; 800 would be synthesized. */
html[lang="bn"] .font-extrabold { font-weight: 700; }
/* Wide tracking breaks conjunct letters apart. */
html[lang="bn"] .uppercase, html[lang="bn"] [class*="tracking-wide"], html[lang="bn"] [class*="tracking-\["] { letter-spacing: 0; }
/* Same for the eyebrows/labels styled in windpay-*.css: Bengali is never letter-spaced. */
html[lang="bn"] body *:not(.wp-brand-badge):not(.wp-brand *) { letter-spacing: 0 !important; }

/* With the EN | BN pill (and the wider Bengali CTA) the desktop header needs
   ~1480px for everything: below that it drops the X/Telegram icons, which stay
   in the footer, so nothing overflows. */
@media (max-width: 1479.98px) { .wp-nav-social { display: none !important; } }
