.site-language-switch {
  margin-inline-start: auto;
}

.brand-language-group {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 6px;
}

.browser-language-hint {
  color: var(--muted, #53647a);
  font-size: 12px;
  line-height: 1.4;
}

.theme-dark .browser-language-hint {
  color: #aec4d5;
}

.browser-language-hint > a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.site-footer .footer-bottom.footer-single-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-block-start: 22px;
}

.footer-single-line > a {
  justify-self: start;
}

.site-footer .footer-single-line > .footer-legal-row {
  padding: 0;
  justify-self: center;
}

.footer-single-line > .site-language-switch {
  justify-self: end;
}

@media (max-width: 700px) {
  .site-footer .footer-bottom.footer-single-line {
    grid-template-columns: minmax(0, 1fr);
  }
}

.language-picker-static.theme-mode-toggle {
  cursor: default;
  text-decoration: none;
}

.language-picker {
  position: relative;
}

.language-picker summary {
  list-style: none;
  white-space: nowrap;
}

.language-picker summary::-webkit-details-marker {
  display: none;
}

.language-picker summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-inline-start: 0.25em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
}

.language-picker[open] summary::after {
  transform: rotate(225deg) translateY(-0.1em);
}

.language-flag {
  display: block;
  flex: none;
  width: 18px;
  height: 12px;
  border: 1px solid #ccd6e2;
  border-radius: 2px;
  overflow: hidden;
}

.language-picker ul {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  inset-block-end: calc(100% + 6px);
  min-inline-size: 100%;
  margin: 0;
  padding: 4px;
  color: #29496b;
  background: #fff;
  border: 1px solid #ccd6e2;
  border-radius: 14px;
  box-shadow: 0 6px 20px #18365025;
  list-style: none;
}

.language-picker li > :is(a, span) {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.language-picker li > a:is(:hover, :focus-visible),
.language-picker li > [aria-current] {
  background: #e7f0f9;
}

.theme-dark .language-picker ul {
  color: #dceefa;
  background: #173044;
  border-color: #89a9bd;
}

.theme-dark .language-picker li > a:is(:hover, :focus-visible),
.theme-dark .language-picker li > [aria-current] {
  background: #2a4b62;
}
