/* One iOS-style language control; the whole control switches languages. */
.language-switcher {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 88px;
  height: 40px;
  margin-left: auto;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #e9e9ed;
  color: #6c6c70;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.language-switcher::before {
  content: '';
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 2);
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 1px 3px #0002, 0 1px 1px #0001;
  transition: transform .18s ease;
}
.language-switcher[data-current-language="tl"]::before { transform: translateX(100%); }
.language-switcher [data-language] {
  position: relative;
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.language-switcher [data-active="true"] { color: #1c1c1e; }
.language-switcher:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 1024px) {
  .site-header .nav-actions:has(.burger) { order: 1; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .site-header .nav { gap: 8px; }
  .language-switcher { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .language-switcher::before { transition: none; }
}
