/* A quiet, keyboard-accessible language picker shared by desktop and mobile. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  min-width: 67px;
  border-radius: 22px;
  color: #50565a;
  transition:
    background 0.2s,
    color 0.2s;
}
.language-picker:hover,
.language-picker:focus-within {
  color: #171b1e;
  background: #17202908;
}
.language-picker:focus-within {
  outline: 2px solid #596d82;
  outline-offset: 2px;
}
.language-picker > .icon {
  width: 16px;
  height: 16px;
}
.language-picker .language-chevron {
  width: 10px;
  height: 10px;
}
.language-picker #language-code {
  font-size: 12px;
  font-weight: 500;
}
.language-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.site-header .desktop-nav {
  margin-left: 0;
}
@media (max-width: 1100px) and (min-width: 681px) {
  .site-header {
    gap: 16px;
  }
  .site-header .desktop-nav {
    gap: 18px;
  }
  .site-header:not(.site-header-centered) .desktop-nav a:last-child {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
}
@media (max-width: 680px) {
  .header-actions {
    margin-left: auto;
    gap: 12px;
  }
  .header-actions .header-cta {
    display: none;
  }
  .language-picker {
    min-width: 66px;
    height: 44px;
  }
  .header-actions .menu-toggle {
    width: 36px;
    height: 44px;
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-picker {
    transition: none;
  }
}

/* The homepage keeps language selection in the footer. */
.footer-bottom .language-picker {
  flex-shrink: 0;
  color: inherit;
  text-shadow: none;
}
.footer-bottom > span:first-child {
  flex-shrink: 0;
}
.footer-bottom > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  text-align: center;
}
