.language-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
}
.language-switch > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.language-options {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft, var(--line));
  border-radius: 999px;
  background: var(--surface);
}
.language-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 40px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.language-options button:hover { background: var(--surface-hover, #242830); color: var(--text); }
.language-options button[aria-pressed="true"] { background: var(--surface-hover, #242830); color: var(--text); }
.language-options button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.language-mobile { display: none; }
@media (max-width: 1320px) and (min-width: 1101.1px) {
  .site-header .header-login { display: none; }
}
@media (max-width: 1100px) {
  .header-actions .language-desktop { display: none; }
  .site-header.menu-open .language-mobile {
    display: flex;
    justify-content: space-between;
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px;
    border-top: 1px solid var(--line);
  }
  .language-mobile > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-size: 16px; }
  .language-mobile .language-options button { min-height: 44px; }
}
/* Keep the YUNOV wordmark and complete action label visible on small phones. */
@media (max-width: 396px) {
  .site-header .brand { flex-shrink: 0; gap: 8px; }
  body.is-home .site-header .brand img,
  body:not(.is-home) .site-header .brand img { width: 24px; height: 24px; }
  body.is-home .site-header .brand-wordmark,
  body:not(.is-home) .site-header .brand-wordmark { font-size: 20px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .header-actions .btn.primary.small { flex-shrink: 0; padding-inline: 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .language-options button { transition: none; }
}
