/* Shared flag menu for all three public pages; the homepage opening lives in home.css */
.language-switcher {
  position: relative;
  flex: none;
  color: var(--ink);
}
.language-switcher summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 16px;
  border-left: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.language-switcher summary::-webkit-details-marker {
  display: none;
}
.language-switcher summary > svg {
  width: 10px;
  height: 10px;
  transition: transform 150ms ease;
}
.language-switcher[open] summary > svg {
  transform: rotate(180deg);
}
.language-switcher img {
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #bdcde3;
}
.language-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 208px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px #16181c12;
}
.language-options a {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  padding: 9px 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  text-decoration: none;
}
.language-options a:hover,
.language-options a:focus-visible {
  background: var(--canvas);
}
.language-options a[aria-current="true"] {
  background: #e3ecf8;
}
.language-option-code {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.header-inner .language-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  left: 0;
  top: 0;
}
@media (max-width: 1024px) {
  .header-inner {
    gap: 24px;
  }
  .header-inner nav {
    gap: 20px;
  }
}
@media (max-width: 650px) {
  .language-switcher summary {
    padding-left: 12px;
    gap: 7px;
  }
  .current-language-code {
    display: none;
  }
  .header-inner nav {
    gap: 4px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-switcher summary > svg {
    transition: none;
    transform: none;
  }
}
