/* Language switcher (both languages) and Hindi typography. build-locales.mjs copies this file to
   dist/languages.css and links it after styles.css on every page; it reuses the colour tokens of styles.css
   (light and dark). System fonts only. */
.language-row { display: flex; justify-content: flex-end; padding-bottom: 8px; }
.language-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.language-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }
.language-nav a:hover { background: var(--brand-soft); }
.language-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.language-nav a:lang(hi) { font-family: "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif; }

html:lang(hi) {
  --sans: "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --serif: "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, serif;
}
html:lang(hi) body { line-height: 1.75; }
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3, html:lang(hi) legend { line-height: 1.45; letter-spacing: 0; }
html:lang(hi) .eyebrow { text-transform: none; letter-spacing: 0; }
/* The brand name is Latin: keep the serif styles.css gives it. */
html:lang(hi) .brand-name { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }

@media (max-width: 480px) { .language-row { justify-content: flex-start; } }
@media print { .language-row { display: none !important; } }
