.header-language { display:none; flex:0 0 auto; margin-left:.75rem; }
.header-inner .desktop-nav { margin-left:auto; }
/* Match the active desktop-navigation underline to the active label. */
.desktop-nav a[aria-current="page"]::after { background:#a85416; }
.mobile-language { display:none; padding:.55rem .25rem .25rem; }
.language-select { min-width:150px; min-height:40px; padding:.45rem 2rem .45rem .75rem; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink); font:inherit; font-size:.78rem; font-weight:800; cursor:pointer; }
.language-select:hover { border-color:var(--aqua-deep); }
.language-select:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
.language-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.language-select option[lang="my"] { font-family:"Myanmar Text","Noto Sans Myanmar",sans-serif; }
html:lang(zh) body { font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif; }
html:lang(my) body { font-family:"Myanmar Text","Noto Sans Myanmar","Segoe UI",sans-serif; line-height:1.9; }
html:lang(my) h1, html:lang(my) h2, html:lang(my) h3 { line-height:1.6; letter-spacing:0; }
html:lang(my) h1 { font-size:clamp(2rem,4.6vw,4rem); }
html:lang(my) .eyebrow, html:lang(my) .tag, html:lang(my) .footer-contact-label { letter-spacing:0; text-transform:none; }
html:lang(my) .desktop-nav { font-size:.78rem; gap:.8rem; }
html:not(:lang(en)) .button, html:not(:lang(en)) .text-link { white-space:normal; max-width:100%; text-align:center; }
html:not(:lang(en)) .service-card { grid-template-columns:minmax(0,1fr); }
html:not(:lang(en)) .service-card > * { min-width:0; }
html:not(:lang(en)) .service-card .text-link { width:auto; justify-self:start; overflow-wrap:anywhere; }
html:lang(my) p, html:lang(my) li { overflow-wrap:anywhere; }
html:not(:lang(en)) .button img, html:not(:lang(en)) .text-link img { flex-shrink:0; }
html:not(:lang(en)) h1, html:not(:lang(en)) h2, html:not(:lang(en)) h3 { overflow-wrap:anywhere; }
.footer-contact-label { overflow-wrap:anywhere; }
.language-fallback { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; padding:1rem; background:var(--surface); color:var(--ink); }
@media (min-width:800px) and (max-width:1399px) {
  html:lang(vi) .desktop-nav, html:lang(my) .desktop-nav { display:none !important; }
  html:lang(vi) .menu-toggle, html:lang(my) .menu-toggle { display:grid !important; }
  html:lang(vi) .mobile-panel, html:lang(my) .mobile-panel { display:none !important; }
  html:lang(vi) .mobile-panel.open, html:lang(my) .mobile-panel.open { display:grid !important; }
  html:lang(vi) .mobile-language, html:lang(my) .mobile-language { display:block; }
}
@media (min-width:800px) {
  .header-language { display:block; }
  /* Reserve the selector's final footprint before the script runs. */
  .header-inner::after { content:""; display:block; flex:0 0 162px; }
  .header-inner.has-language::after { display:none; }
}
@media (max-width:799px) { .mobile-language { display:block; } .mobile-language .language-select { width:100%; min-height:44px; border-radius:12px; } }
@media (prefers-color-scheme:dark) { .desktop-nav a[aria-current="page"]::after { background:#ffd27a; } }
