/* Sponsor credits shared by the Manual and official charter pages. */
.footer:has(.footer-sponsors) .footer__deck {
  padding-bottom: 32px;
}

.footer-sponsors {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(244, 248, 251, .15);
}

.footer-sponsors__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-sponsors__title {
  margin: 0;
  color: #f4f8fb;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.footer-sponsors__button {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(244, 248, 251, .3);
  border-radius: 8px;
  background: transparent;
  color: #f4f8fb;
  cursor: pointer;
  transition: background 160ms ease-out;
}

.footer-sponsors__button[hidden], .footer-sponsors__button [hidden] {
  display: none;
}

.footer-sponsors__button:hover {
  background: rgba(244, 248, 251, .12);
}

.footer-sponsors__button:focus-visible {
  outline: 2px solid #ffcb37;
  outline-offset: 3px;
}

.footer-sponsors__viewport {
  padding: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.footer-sponsors__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-sponsors__item {
  flex: none;
  width: 128px;
}

.footer-sponsors__link {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 160ms ease-out;
}

.footer-sponsors__link:hover {
  opacity: .75;
}

.footer-sponsors__link:focus-visible {
  outline: 2px solid #71206c;
  outline-offset: 2px;
}

.footer-sponsors__link img {
  display: block;
  width: 100%;
  max-width: 120px;
  height: 64px;
  object-fit: contain;
}

.footer-sponsors.is-enhanced .footer-sponsors__belt {
  position: relative;
  display: flex;
  width: max-content;
  animation: footer-sponsors-loop var(--sponsors-duration, 44s) linear infinite;
}

.footer-sponsors.is-enhanced .footer-sponsors__track {
  flex-wrap: nowrap;
  padding-inline-end: 24px;
}

.footer-sponsors.is-paused .footer-sponsors__belt,
.footer-sponsors__viewport:hover .footer-sponsors__belt {
  animation-play-state: paused;
}

.footer-sponsors.is-keyboard .footer-sponsors__belt {
  animation: none;
}

@keyframes footer-sponsors-loop {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .footer-sponsors__head {
    align-items: flex-end;
    gap: 12px;
  }
  .footer-sponsors:not(.is-enhanced) .footer-sponsors__item {
    width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-sponsors.is-enhanced .footer-sponsors__belt {
    display: block;
    width: auto;
    animation: none;
  }
  .footer-sponsors.is-enhanced .footer-sponsors__track {
    flex-wrap: wrap;
    padding: 0;
    gap: 16px;
  }
  .footer-sponsors.is-enhanced .footer-sponsors__copy {
    display: none;
  }
  .footer-sponsors__item {
    width: 104px;
  }
  .footer-sponsors__button, .footer-sponsors__link {
    transition: none;
  }
}
