/**
 * Language switcher dropdown in the secondary navigation tile.
 * Colors follow less/style.less: primary #3c0256, secondary #c2d7f6,
 * accent #d41853.
 */
.language-switcher {
  position: relative;
  width: 100%;
  height: 100%;
}

.language-switcher__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3c0256;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

/* .navigation-secondary .block i stretches icons; keep this one compact. */
.navigation-secondary .block .language-switcher__toggle i {
  flex-grow: 0;
  font-size: 18px;
}

.language-switcher__toggle:hover,
.language-switcher.open > .language-switcher__toggle {
  color: #d41853;
}

.language-switcher__toggle:focus {
  outline: none;
}

.language-switcher__toggle:focus-visible {
  outline: 2px solid #d41853;
  outline-offset: 2px;
}

.language-switcher__menu {
  min-width: 170px;
  margin-top: 5px;
  padding: 6px 0;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(60, 2, 86, 0.18);
  text-align: left;
}

.language-switcher__menu > li > a {
  padding: 9px 18px;
  color: #3c0256;
  font-size: 15px;
  line-height: 1.3;
}

.language-switcher__menu > li > a:hover,
.language-switcher__menu > li > a:focus {
  background-color: rgba(194, 215, 246, 0.6);
  color: #3c0256;
}

.language-switcher__menu > li.active > a,
.language-switcher__menu > li.active > a:hover,
.language-switcher__menu > li.active > a:focus {
  background-color: #3c0256;
  color: #fff;
  font-weight: 700;
}

/* The header clips its content (overflow: hidden in navigation.less); let
   the open menu show without changing the header layout otherwise. */
.navbar.navbar-default:has(.language-switcher.open) {
  overflow: visible;
}
