/* Language menu (src/components/LangSwitch.astro). */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  font: 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(39, 24, 98, 0.85);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::before { content: "🌐 "; }
.lang-switch summary::after { content: " ▾"; font-size: 11px; }
.lang-switch ul {
  position: absolute;
  right: 0;
  margin: 6px 0 0;
  padding: 6px 0;
  list-style: none;
  min-width: 150px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.lang-switch li { margin: 0; }
.lang-switch a {
  display: block;
  padding: 8px 16px;
  color: #271862;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch a:hover, .lang-switch a:focus-visible { background: #eae8d1; }
.lang-switch a[aria-current="page"] { font-weight: bold; }
