.site-header .languages {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.site-header .languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  color: var(--muted);
  font-size: 11px;
}

.site-header .languages a[aria-current="page"] {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 5px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Keep product silhouettes inside their cards, including longer translated copy. */
.product-interdental > img {
  width: 50%;
  max-height: 52%;
  bottom: 3%;
  right: 3%;
}

.electric-products {
  inset: 44% 3% 3%;
}

.electric-products img:nth-child(2) {
  bottom: 0;
  transform: rotate(1deg) scale(.96);
}

.product-manual > img {
  width: 94%;
  max-height: 50%;
  bottom: 3%;
  right: 3%;
}

.floss-collection {
  inset: 40% 3% 3% 35%;
}

.product-whitening > img {
  width: 65%;
  max-height: 52%;
  bottom: 3%;
  right: 3%;
}

.product-copy h3,
h2,
.development-process h3,
.development-ip h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
  }

  .site-header > nav:not(.languages) {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 6px 20px;
  }

  .site-header > nav:not(.languages) a {
    padding: 5px 0;
    font-size: 12px;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-copy {
    padding-right: 24px;
  }

  .hero-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 1000px) {
  .product-interdental > img {
    width: 70%;
  }

  .floss-collection {
    inset: 48% 3% 3%;
  }
}

@media (max-width: 580px) {
  .electric-products {
    inset: 49% 3% 3%;
  }

  .product-interdental > img {
    width: 80%;
  }
  .site-header > nav:not(.languages) {
    gap: 2px 16px;
  }

  .site-header > nav:not(.languages) a {
    font-size: 11px;
  }
}
