.ticker {
  border-block: 1px solid var(--line, var(--gx-border));
  overflow: hidden;
  white-space: nowrap;
}

.ticker--home {
  border-top: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: gx-ticker-loop 28s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 34px;
  padding: 14px 34px 14px 0;
}

.ticker a {
  color: #c2c2bd;
  cursor: pointer;
  font-size: .8rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  text-underline-offset: .3em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.ticker a:hover,
.ticker a:focus-visible {
  color: var(--paper, var(--gx-white));
  text-decoration: underline;
  text-decoration-color: var(--acid, var(--gx-acid));
  text-decoration-thickness: 1px;
}

.ticker a:focus-visible {
  outline: 2px solid var(--acid, var(--gx-acid));
  outline-offset: 4px;
}

.ticker:has(a:focus-visible) .ticker-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .ticker:hover .ticker-track { animation-play-state: paused; }
}

@media (max-width: 760px) {
  .ticker { touch-action: pan-y; }
  .ticker.is-dragging { user-select: none; }
  .ticker.is-dragging a { pointer-events: none; }
}

@keyframes gx-ticker-loop {
  to { transform: translateX(var(--ticker-shift, -50%)); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation-play-state: paused;
    transform: none;
  }
}
