/* Language switcher and Hindi typography. build-locales.mjs copies this file to dist/assets/languages.css and links it
   after styles.css on every page of both languages. System fonts only; it uses the tokens defined in styles.css. */
:root { --font-hindi: "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif; }
.language-nav { flex: 0 0 auto; display: flex; gap: 4px; margin-left: auto; }
.language-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.language-nav a:hover { background: var(--surface-2); color: var(--ink); }
.language-nav a[aria-current="page"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.language-nav a:lang(hi) { font-family: var(--font-hindi); }
html:lang(hi) body { font-family: var(--font-hindi); line-height: 1.75; }
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3 { line-height: 1.45; letter-spacing: 0; }
html:lang(hi) .brand { letter-spacing: 0; }
html:lang(hi) .live-label { text-transform: none; letter-spacing: 0; }
/* English passages and the typing box keep the English pages' font on Hindi pages. */
html:lang(hi) .passage[lang="en"], html:lang(hi) .passage-text[lang="en"], html:lang(hi) .typing-box[lang="en"] { font-family: var(--font-ui); }
@media (max-width: 640px) {
  /* Brand and language links on the first row, the main navigation on its own row below. */
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .header-inner > nav:not(.language-nav) { order: 3; flex: 1 1 100%; }
  .language-nav a { padding: 0 10px; font-size: 0.85rem; }
}
@media print { .language-nav { display: none !important; } }
