/* Language switcher — a native <select> in the sticky topbar.
   Deliberately a dropdown, not a segmented control: the languages on offer
   stay folded away until someone actually goes looking for them. */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--line, rgba(159, 186, 205, .3));
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.lang-switch select:hover {
  color: var(--white, #fff);
  border-color: rgba(159, 186, 205, .55);
  background: rgba(255, 255, 255, .07);
}
.lang-switch select:focus-visible {
  outline: 2px solid var(--accent, #4B6CFF);
  outline-offset: 2px;
}

/* The dropdown list itself is drawn by the OS — force readable colours
   so it doesn't come out white-on-white on a dark page. */
.lang-switch option {
  background: #16212b;
  color: #fff;
}

.lang-switch__chev {
  position: absolute;
  right: 9px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: rgba(159, 186, 205, .7);
}

/* The topbar holds the logo left, the switcher right. */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

@media (max-width: 560px) {
  .lang-switch select { padding: 7px 26px 7px 10px; font-size: 12px; }
  .lang-switch__chev { right: 8px; width: 13px; height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch select { transition: none; }
}
