/* Included only by packages opting in to native i18n. */
.site-header--i18n .site-header__inner { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); padding-block: var(--space-3); }
.site-header--i18n .site-header__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); min-width: 0; }
.site-header--i18n .site-header__controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-3); min-width: 0; max-width: 100%; margin-inline-start: auto; }
.site-header--i18n .site-header__actions { flex-wrap: wrap; min-width: 0; max-width: 100%; justify-content: flex-end; }
.site-header--i18n .primary-navigation { width: 100%; min-width: 0; flex-wrap: wrap; column-gap: var(--space-4); row-gap: var(--space-1); }
.site-header--i18n .primary-navigation a { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; justify-content: center; text-align: center; line-height: 1.35; padding-block: var(--space-2); }
.language-switcher { min-width: 0; width: max-content; max-width: 12rem; justify-self: end; font-size: .875rem; }
.language-switcher__dropdown { position: relative; }
.language-switcher__toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-3); color: inherit; border: 1px solid var(--theme-color-border); border-radius: var(--theme-radius-small); cursor: pointer; list-style: none; }
.language-switcher__toggle::-webkit-details-marker { display: none; }
.language-switcher__toggle::after { content: "▾"; flex-shrink: 0; }
.language-switcher__dropdown[open] .language-switcher__toggle::after { transform: rotate(180deg); }
.language-switcher__toggle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-switcher__menu { position: absolute; inset-block-start: calc(100% + var(--space-2)); inset-inline-end: 0; z-index: 1; display: grid; gap: var(--space-1); width: max-content; min-width: 100%; max-width: calc(100vw - var(--container-gutter) * 2); max-height: min(65vh, 24rem); overflow-y: auto; padding: var(--space-2); background: var(--theme-color-surface); color: var(--theme-color-text); border: 1px solid var(--theme-color-border); border-radius: var(--theme-radius-small); box-shadow: var(--theme-shadow-medium); }
.language-switcher__dropdown:not([open]) .language-switcher__menu { display: none; }
.language-switcher a { display: flex; align-items: center; min-height: 44px; color: inherit; padding: var(--space-2) var(--space-3); text-decoration: none; border-radius: var(--theme-radius-small); }
.language-switcher a:hover { background: var(--theme-color-surface-alt); }
.language-switcher a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.language-switcher a:focus-visible, .language-switcher__toggle:focus-visible { outline: 2px solid var(--theme-color-focus); outline-offset: 2px; }
@media (max-width: 1199px) {
  .site-header--i18n .language-switcher { max-width: 100%; }
  .site-header--i18n .primary-navigation { position: absolute; inset: 100% 0 auto; max-height: 70vh; flex-wrap: nowrap; justify-content: flex-start; }
  .site-header--i18n .primary-navigation a { flex-shrink: 0; justify-content: flex-start; text-align: start; }
}
