/* Public website only. A native details control also works without JavaScript. */
.mw-language {
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 1px solid #d5e1ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px #06345c26;
  color: #173f60;
  font-family: system-ui, sans-serif;
  isolation: isolate;
}
.mw-language-picker {
  position: relative;
}
.mw-language summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 11px;
  color: #073862;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}
.mw-language summary::-webkit-details-marker {
  display: none;
}
.mw-language-chevron {
  margin-left: 10px;
  font-size: 18px;
}
.mw-language-picker[open] .mw-language-chevron {
  transform: rotate(180deg);
}
.mw-language-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 5px;
  width: 232px;
  max-width: calc(100vw - 24px);
  max-height: min(60vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border: 1px solid #d5e1ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px #06345c33;
}
.mw-language a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3f7fb;
  color: #173f60;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}
.mw-language a:hover,
.mw-language summary:hover {
  background: #e4eff8;
  color: #073862;
}
.mw-language a[aria-current="page"] {
  border-color: #073862;
  background: #073862;
  color: #fff;
  font-weight: 600;
}
.mw-language :is(a, summary):focus-visible {
  outline: 3px solid #0075d5;
  outline-offset: 2px;
}
