/* Language switcher (both languages) and Hindi typography. build-locales.mjs copies this file to
   dist/languages.css and links it after style.css on every page, reusing its colour tokens.
   System fonts only: no web fonts, no third-party requests. */
.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); border-radius: 999px; background: var(--card); color: var(--plum); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.language-nav a:hover { background: var(--plum-soft); color: var(--plum-dark); }
.language-nav a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.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, 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) h4, html:lang(hi) legend { line-height: 1.45; letter-spacing: 0; }
/* Upper-casing and letter-spacing are for Latin labels; Devanagari has no case and should not be spaced. */
html:lang(hi) h4, html:lang(hi) .cat-head, html:lang(hi) .tile .tile-k { text-transform: none; letter-spacing: 0; }
/* The brand name keeps the Latin serif style.css uses. */
html:lang(hi) .brand-name { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }

@media print { .language-row { display: none !important; } }
