/* Language menu on the about and docs pages (generated by scripts/seedrouter-seo/build-i18n.mjs). */
.lang-menu {
  position: relative;
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.2;
}

.lang-menu__current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #444;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
}

.lang-menu__current::-webkit-details-marker {
  display: none;
}

.lang-menu__current::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.lang-menu__current:hover,
.lang-menu[open] .lang-menu__current {
  border-color: rgba(0, 0, 0, 0.28);
  color: #111;
}

.lang-menu__current:focus-visible {
  outline: 2px solid #0070f3;
  outline-offset: 2px;
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  list-style: none;
}

.lang-menu__list li {
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.lang-menu__list a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}

.lang-menu__list a:hover {
  background: #f2f2f3;
}

.lang-menu__list a[aria-current="page"] {
  background: #eef4ff;
  color: #0058c4;
  font-weight: 600;
}

.site-nav .lang-menu {
  margin-right: 8px;
}
