/* Each topic gets a two-second turn in a twelve-second cycle. */
.support__topics.is-visible span {
  --topic-highlight: #e8d7af;
  --topic-border: #b99557;
  animation: topic-turn 12s ease-in-out infinite;
  will-change: transform, background-color;
}

.support__topics.is-visible span:nth-child(even) {
  --topic-highlight: #c8d5bd;
  --topic-border: #7e9a78;
}

.support__topics.is-visible span:nth-child(2) { animation-delay: 2s; }
.support__topics.is-visible span:nth-child(3) { animation-delay: 4s; }
.support__topics.is-visible span:nth-child(4) { animation-delay: 6s; }
.support__topics.is-visible span:nth-child(5) { animation-delay: 8s; }
.support__topics.is-visible span:nth-child(6) { animation-delay: 10s; }

@keyframes topic-turn {
  0%, 16.5%, 100% {
    background-color: #f9f7ed88;
    border-color: #9ba78d;
    color: #4f5c4c;
    box-shadow: none;
    transform: translateY(0) scale(1);
  }
  3%, 12% {
    background-color: var(--topic-highlight);
    border-color: var(--topic-border);
    color: #263c2e;
    box-shadow: 0 12px 24px #34493422;
    transform: translateY(-9px) scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .support__topics.is-visible span {
    animation: none;
    will-change: auto;
  }
}
