/* Scoped to the two placements of the approved animated colony banner. */
.colony-banner {
  width: 100%;
  max-width: 500px;
  min-width: 0;
}
.colony-banner-frame {
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #f3c77575;
  border-radius: 14px;
  background: #101d35;
  box-shadow: 0 18px 40px #02071055, 0 0 28px #f3c7750d;
}
.colony-banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 50 / 13;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.colony-banner .colony-banner-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 8px;
  color: #b9c6d9;
  font-size: .75rem;
  line-height: 1.5;
  text-align: left;
}
.colony-banner-caption > span { min-width: 0; }
.colony-banner-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 84px;
  padding: 7px 10px;
  border: 1px solid #f3c77530;
  border-radius: 10px;
  color: #e9cd9d;
  background: #f3c77508;
  font: inherit;
  cursor: pointer;
}
.colony-banner-toggle:hover { border-color: #f3c77580; background: #f3c77515; }
.colony-banner-toggle[hidden] { display: none; }
.colony-banner-toggle svg { width: 15px; height: 15px; }
.colony-banner-play { display: none; }
[data-colony-banner][data-animation-state="still"] .colony-banner-play { display: block; }
[data-colony-banner][data-animation-state="still"] .colony-banner-pause { display: none; }

.hero-animation-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 120 / 41;
  border: 1px solid #f3c77560;
  border-radius: 22px;
  background: #101d35;
  box-shadow: 0 30px 80px #02071088;
}
.hero-animation-stage img { display: block; width: 100%; height: auto; aspect-ratio: 120 / 41; }
.hero-animation-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-animation-stage video[hidden] { display: none; }
.hero-animation figcaption { align-items: center; gap: 12px; margin-top: 9px; }
.hero-animation .colony-banner-toggle { font-size: .75rem; }

.vote-banner.has-colony-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 36px;
  padding: 36px;
}
.vote-banner.has-colony-banner .vote-banner-action {
  width: 100%;
  max-width: 500px;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-self: center;
  gap: 12px;
}
.vote-banner.has-colony-banner .vote-banner-action > .button {
  flex: none;
  max-width: none;
  width: 100%;
}
.vote-heading:has(.colony-banner) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 44px;
}
.vote-heading .colony-banner { width: 100%; max-width: 500px; }

@media (max-width: 900px) {
  .vote-banner.has-colony-banner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .vote-banner.has-colony-banner .vote-banner-copy { max-width: none; }
  .vote-heading:has(.colony-banner) { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .vote-heading .colony-banner { justify-self: center; }
}
@media (max-width: 650px) {
  .vote-banner.has-colony-banner { padding: 25px 20px; }
  .colony-banner-frame { border-radius: 11px; }
  .colony-banner .colony-banner-caption { font-size: .7rem; gap: 10px; }
  .hero-animation figcaption { align-items: center; }
  .hero-animation-stage { border-radius: 14px; }
}
