:root {
  --animation-duration-first: 20s; /* First word total animation duration */
  --animation-duration: 10s; /* Total animation duration */
}

@keyframes word {
  0% {
    transform: translateY(100%);
  }
  10% {
    transform: translateY(-10%);
    animation-timing-function: ease-out;
  }
  12.5% {
    transform: translateY(0);
  }
  25%,
  100% {
    transform: translateY(-110%);
  }
}

/* Pride-pinned events keep the standard card structure with a celebratory edge. */
.pride-pinned-card {
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.96)) padding-box,
    linear-gradient(110deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787, #e40303) border-box;
  background-size: 100% 100%, 240% 100%;
  box-shadow: 0 14px 35px rgba(10, 1, 133, 0.24), 0 0 24px rgba(117, 7, 135, 0.16);
  animation: pride-border-shift 8s linear infinite;
}

.pride-card-ribbon {
  position: absolute;
  inset: 0 0 auto;
  height: 0.45rem;
  background: linear-gradient(90deg, #e40303 0 16.66%, #ff8c00 16.66% 33.32%, #ffed00 33.32% 49.98%, #008026 49.98% 66.64%, #004dff 66.64% 83.3%, #750787 83.3% 100%);
}

.pride-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(10, 1, 133, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.25rem 0.65rem;
  color: #0a0185;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1rem;
  text-transform: uppercase;
}

.pride-date-tile {
  border: 1px solid rgba(10, 1, 133, 0.18);
  background: linear-gradient(145deg, #fff7bd, #ffd9ec 40%, #dce7ff) !important;
  color: #0a0185 !important;
  box-shadow: 0 4px 12px rgba(10, 1, 133, 0.12);
}

.pride-week-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pride-week-card:hover {
  transform: translateY(-2px);
  border-color: #0a0185;
  box-shadow: 0 12px 28px rgba(10, 1, 133, 0.12);
}

@keyframes pride-border-shift {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 0 0, 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .pride-pinned-card { animation: none; }
}

.animate-word {
  animation: word var(--animation-duration) infinite;
}
.animate-word-delay-1 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-1 * (var(--animation-duration) / 8));
}
.animate-word-delay-2 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-2 * (var(--animation-duration) / 8));
}
.animate-word-delay-3 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-3 * (var(--animation-duration) / 8));
}
.animate-word-delay-4 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-4 * (var(--animation-duration) / 8));
}
.animate-word-delay-5 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-5 * (var(--animation-duration) / 8));
}
.animate-word-delay-6 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-6 * (var(--animation-duration) / 8));
}
.animate-word-delay-7 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-7 * (var(--animation-duration) / 8));
}

/* Make an inner link clickable across its parent card */
/* Do NOT position the link itself so the pseudo-element fills the positioned parent (the card) */
.stretched-link { position: static; }
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
