/* Language select in the header, next to the Blog link (desktop only;
   .header-links is hidden on mobile where the menu has its own picker). */

header .header-links .lang-switch {
  position: relative;
  margin-left: 20px;
}

/* divider is a pseudo-element so the dropdown menu aligns with the button */
header .header-links .lang-switch::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  height: 18px;
  margin-top: -9px;
  border-left: 1px solid #d5dde6;
}

header .header-links .lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #30435b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

header .header-links .lang-switch__toggle:hover,
header .header-links .lang-switch__toggle:focus-visible,
header .header-links .lang-switch.show .lang-switch__toggle {
  border-color: #86acd1;
  color: #005bb7;
}

header .header-links .lang-switch__toggle:focus-visible {
  outline: 2px solid #005bb7;
  outline-offset: 1px;
}

header .header-links .lang-switch__toggle::after {
  margin-left: 2px;
}

header .header-links .lang-switch img {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

header .header-links .lang-switch__menu {
  left: 0;
  right: auto;
  min-width: 100%;
  margin: 4px 0 0;
  padding: 4px;
  border: 1px solid #d5dde6;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(48, 67, 91, .15);
  z-index: 1100;
}

header .header-links .lang-switch__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #30435b;
}

header .header-links .lang-switch__menu a:hover,
header .header-links .lang-switch__menu a:focus-visible {
  background: #eef3f9;
  color: #005bb7;
}

header .header-links .lang-switch__menu li.active a {
  background: #e3edf8;
  color: #005bb7;
  font-weight: 600;
}
