/* Language picker only; matches the existing translucent navigation. */
.language-switcher {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 42px;
  color: #fff;
  font-family: var(--font-inter), sans-serif;
}
.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1.5px solid rgb(255 255 255 / 0.5);
  border-radius: 11px;
  background: rgb(255 255 255 / 0.1);
  color: inherit;
  font: 600 12px var(--font-inter), sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.language-chevron {
  flex-shrink: 0;
  transition: transform 180ms var(--ease-soft);
}
.language-switcher[data-open="true"] .language-trigger {
  background: rgb(255 255 255 / 0.17);
  border-color: rgb(255 255 255 / 0.7);
}
.language-switcher[data-open="true"] .language-chevron {
  transform: rotate(180deg);
}
.language-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 10px);
  right: 0;
  width: 184px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 16px;
  background: rgb(21 38 99 / 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 18px 44px -16px rgb(8 16 52 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.06);
  transform-origin: top right;
}
.language-menu:not([hidden]) {
  animation: language-menu-in 160ms var(--ease-soft) both;
}
.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgb(255 255 255 / 0.9);
  font: 500 14px/1.4 var(--font-inter), sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.language-option[aria-checked="true"] {
  color: var(--color-sun);
  background: rgb(254 197 10 / 0.1);
}
.language-check {
  flex-shrink: 0;
  opacity: 0;
}
.language-option[aria-checked="true"] .language-check {
  opacity: 1;
}
.language-trigger:focus-visible {
  outline: 2px solid var(--color-sun);
  outline-offset: 3px;
  border-radius: 11px;
}
.language-option:focus-visible {
  outline: 1.5px solid rgb(254 197 10 / 0.7);
  outline-offset: -2px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
}
@media (hover: hover) {
  .language-trigger:hover { background: rgb(255 255 255 / 0.2); }
  .language-option:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
  .language-option[aria-checked="true"]:hover { background: rgb(254 197 10 / 0.16); color: var(--color-sun); }
}
@keyframes language-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .language-menu:not([hidden]) { animation: none; }
  .language-trigger, .language-chevron, .language-option { transition: none; }
}
