.lang-switch {
  position: relative;
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
}
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 2rem;
  color: var(--first-color);
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.lang-switch summary::-webkit-details-marker {
  display: none;
}
.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.2rem;
  list-style: none;
  min-width: 8.5rem;
  background: var(--container-color);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
  z-index: 200;
}
.lang-switch a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  color: var(--first-color);
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch a:hover,
.lang-switch a[aria-current='true'] {
  background: rgba(138, 72, 156, 0.14);
}
.dark-theme .lang-switch ul {
  background: var(--container-color-dark);
}
