.language-switch {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  color: #fff2e0;
}

.language-switch > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}

.language-switch > summary::-webkit-details-marker {
  display: none;
}

.language-switch > summary:focus-visible,
.language-switch a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.language-switch__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  padding: 0.35rem;
  background: #fff2e0;
  border: 1px solid #214a491f;
  box-shadow: 0 12px 30px #1a1a1d24;
}

.language-switch__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  color: #214a49;
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.language-switch__menu a:hover,
.language-switch__menu a:focus-visible {
  background-color: #214a4910;
}

.mobile-header nav {
  gap: 0.75rem;
}

.mobile-nav-actions {
  margin-left: auto;
}

.mobile-header .language-switch > summary {
  min-width: 44px;
  color: #fff2e0;
  font-size: 1.1rem;
  font-weight: 100;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .header-desktop {
    display: none;
  }

  .mobile-header {
    display: flex;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .header-desktop .nav-links {
    gap: 0.65rem;
  }

  .header-desktop .nav-link {
    font-size: 0.95rem;
  }

  .header-desktop .nav-btn {
    padding-inline: 0.8rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switch__menu a {
    transition: none;
  }
}
