.app-language-switch { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 12px 0 0; }
.app-language-switch button { min-height: 44px; min-width: 44px; border: 1px solid var(--card-border, #555); border-radius: 9px; color: var(--text-main, #e2e8f0); background: transparent; font: inherit; cursor: pointer; }
.app-language-switch button[aria-pressed="true"] { background: var(--accent-purple, #7c3aed); border-color: #a78bfa; color: white; }
.app-language-switch button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.locale-content-note { display: none; font-size: .8rem; line-height: 1.5; color: var(--text-muted, #94a3b8); }
html[lang="en"] .locale-content-note, html[lang="km"] .locale-content-note { display: block; }
@font-face { font-family: 'Dreamtheon Khmer'; src: url('fonts/NotoSansKhmer-variable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
.app-language-switch button[lang="km"] { font-family: 'Dreamtheon Khmer', sans-serif; padding-inline: 12px; line-height: 1.8; }
html[lang="km"] body { font-family: 'Dreamtheon Khmer', 'Segoe UI', sans-serif; line-height: 1.8; }
/* Parent app CSS assigns a system font to every element. Khmer must inherit
   the locally bundled shaping font through intermediate cards and wrappers. */
html[lang="km"] body * { font-family: inherit; }
html[lang="km"] button, html[lang="km"] input, html[lang="km"] textarea, html[lang="km"] select { font-family: inherit; }
html[lang="km"] button { white-space: normal; line-height: 1.8; padding-block: 8px; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3, html[lang="km"] p, html[lang="km"] label { line-height: 1.8; letter-spacing: normal; }
html[lang="km"] .public-home-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
html[lang="km"] textarea { line-height: 1.8; }
