/* Locale direction overrides; public website only. */
html[dir="ltr"] body { direction: ltr; text-align: left; }
html[dir="rtl"] body { direction: rtl; }

/* HEADER LANGUAGE & THEME CONTROLS: isolated, mobile-first */
.v2-header-actions { display: flex; align-items: center; gap: 8px; }
.v2-header-language { display: contents; }
.v2-header-actions .v2-language-toggle { width: auto; min-width: 44px; padding-inline: 8px; font-size: 12px; font-weight: 750; line-height: 1; white-space: nowrap; }
.v2-header-actions #v2-theme-toggle { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }
.v2-header-actions .theme-icon { display: grid; place-items: center; width: 22px; height: 22px; }
.v2-header-actions .theme-icon svg { grid-area: 1 / 1; display: block; width: 22px; height: 22px; }
html[data-theme="dark"] .v2-header-actions .theme-moon { display: none; }
html:not([data-theme="dark"]) .v2-header-actions .theme-sun { display: none; }
@media (max-width: 420px) {
  .v2-header-actions { gap: 6px; }
  .v2-header-actions .v2-icon-button { width: 38px; height: 38px; border-radius: 12px; }
  .v2-header-actions .v2-language-toggle { min-width: 38px; width: auto; padding-inline: 6px; font-size: 11px; }
}
