/* Floating multi-language switcher injected by language-switcher.js.
   Mirrors version-switcher.css and sits directly above the version switcher
   in the bottom-left corner. Uses Furo's CSS variables so it adapts to
   light/dark mode automatically, with sensible fallbacks under other themes. */
.language-switcher {
  position: fixed;
  bottom: 3.6rem; /* stacked above the version switcher (bottom: 1rem) */
  left: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 0.4rem;
  background: var(--color-background-secondary, #f4f4f5);
  color: var(--color-foreground-primary, #1a1a1a);
  border: 1px solid var(--color-background-border, #d0d0d0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.language-switcher__label {
  font-weight: 600;
  white-space: nowrap;
}

.language-switcher__select {
  font: inherit;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  background: var(--color-background-primary, #ffffff);
  color: var(--color-foreground-primary, #1a1a1a);
  border: 1px solid var(--color-background-border, #d0d0d0);
  cursor: pointer;
}

/* Keep the switcher out of the way on narrow screens, staying stacked above
   the version switcher (which moves to bottom: 0.5rem at this breakpoint). */
@media (max-width: 46em) {
  .language-switcher {
    bottom: 3rem;
    left: 0.5rem;
    font-size: 0.75rem;
  }
}
