.ds-site .ds-language-toggle {
  appearance: none;
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  padding: 0 .25rem;
  min-height: 28px;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  background: transparent;
  color: var(--ds-link, currentColor);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  cursor: pointer;
}
.ds-site .ds-language-toggle:hover { text-decoration-thickness: 2px; }
.ds-site .ds-language-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 959px), (pointer: coarse) {
  .ds-site .ds-language-toggle { font-size: .875rem; min-height: 44px; min-width: 44px; }
}
.ds-site header.ds-site-header .ds-header-links:has(.ds-language-toggle) {
  display: grid;
  grid-template-areas: "caption caption" "nav nav" "theme lang";
  grid-template-columns: max-content minmax(0,1fr);
  justify-items: start; justify-content: start; align-items: center;
  gap: 0 .55rem;
}
.ds-header-links > .ds-header-caption {grid-area:caption;}
.ds-header-links > nav {grid-area:nav;}
.ds-header-links > .ds-theme-picker {grid-area:theme;}
.ds-header-links > .ds-language-toggle {grid-area:lang;}
@media(max-width:959px){
 .ds-site header.ds-site-header .ds-header-links:has(.ds-language-toggle) {
   grid-template-areas:"nav lang" "theme theme";
   grid-template-columns: max-content minmax(0,1fr);
   gap:0 .55rem;
 }
}
@media(max-width:600px){
 .ds-site header.ds-site-header .ds-header-links > .ds-language-toggle { margin-block:0; }
 .ds-site header.ds-site-header .ds-header-links .ds-theme-picker button {
   padding-inline:5px;
 }
}
@media(min-width:601px) and (max-width:959px){
 .ds-site header.ds-site-header .ds-header-links:has(.ds-language-toggle) {
   grid-template-areas:"nav theme lang";
   grid-template-columns:max-content max-content max-content;
 }
}


@media (min-width:960px) and (max-width:1023px) {
  html:lang(es) .ds-site header nav ul.wp-block-navigation__container { column-gap:.875rem; }
}
