/* Language switcher — use px so vw-based html rem cannot shrink it */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  box-sizing: border-box;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #666;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
  min-height: 36px;
}

.lang-switch__btn:hover {
  color: #222;
}

.lang-switch__btn.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Desktop: inside header nav, level with login / menu text */
header nav .lang-switch--header {
  margin: 0;
  align-self: center;
}

header {
  position: relative;
}

@media (max-width: 768px) {
  .lang-switch--mobile {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 5;
  }

  .lang-switch__btn {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 32px;
  }
}
