.home-header {
  column-gap: 12px;
}

.home-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.survey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

a.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

a.language-switcher:hover {
  border-color: var(--amber-dark);
}

a.language-switcher:focus-visible {
  outline: 3px solid var(--amber-dark);
  outline-offset: 3px;
}

.language-flag {
  position: relative;
  display: inline-block;
  flex: 0 0 20px;
  height: 14px;
  overflow: hidden;
  border: 1px solid #242b2440;
  border-radius: 2px;
}

.flag-es {
  background: linear-gradient(#aa151b 25%, #f1bf00 25% 75%, #aa151b 75%);
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b31942 0 7.69%, #fff 7.69% 15.38%);
}

.flag-us::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 45%;
  height: 54%;
  background: radial-gradient(circle, #fff 0.25px, transparent 0.65px) 0 0 / 2px 2px, #3c3b6e;
  content: '';
}

.language-short {
  display: none;
}

@media (max-width: 1080px) {
  .home-header {
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 8px 5vw 0;
  }

  .home-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .home-tools {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  .home-header .home-tools {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: wrap;
  }

  .home-header a.language-switcher {
    padding-inline: 8px;
  }
}

@media (max-width: 370px) {
  .home-header .language-label {
    display: none;
  }

  .home-header .language-short {
    display: inline;
  }
}
