/* Reuse the current theme and keep language controls accessible on touch screens. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted, #75837d);
}
.language-switch[hidden] { display: none; }
.language-switch button {
  min-width: 40px;
  min-height: 44px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}
.language-switch button[aria-pressed="true"] {
  color: var(--green, #254e44);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.language-switch button:focus-visible {
  outline: 2px solid var(--green, #254e44);
  outline-offset: 1px;
}
.primary span[data-i18n] { float: none; margin: 0; font-size: inherit; line-height: inherit; }
@media (max-width: 480px) {
  .topbar { height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .language-switch { margin-right: 0; }
  .topbar .switch { font-size: 11px; margin-left: auto; }
  .topbar .brand { flex: 1 1 calc(100% - 110px); min-width: 0; }
  .topbar .brand > span:last-child { min-width: 0; }
  .topbar .brand-mark, .topbar .brand-logo { flex-shrink: 0; }
  #brand-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* All existing pages share the same locale control. */
.standalone-language-switch{display:flex;justify-content:flex-end;max-width:1400px;margin:12px auto;padding:0 20px}
.site-header .language-switch{margin-left:12px;margin-right:0;color:#667b98}
.site-header .language-switch button[aria-pressed="true"]{color:#2468ee}
.primary span[data-phrase],.button span[data-phrase]{float:none;margin:0;font:inherit;line-height:inherit}
@media(max-width:760px){.header-inner{flex-wrap:wrap}.site-header .language-switch{margin-left:auto}.site-header .menu-toggle{margin-left:auto}.site-header #primary-nav{width:100%}}
