/* =============================================================================
   RRUFC Ticker Tape
   Colours match the Ethos navbar (maroon) and link colour (yellow).
   ============================================================================= */

.rrufc-ticker {
  --rrufc-ticker-bg: rgb(164, 43, 74);
  --rrufc-ticker-text: #ffffff;
  --rrufc-ticker-accent: rgb(254, 240, 2);

  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--rrufc-ticker-bg);
  color: var(--rrufc-ticker-text);
  font-size: 14px;
  line-height: 1.4;
}

.rrufc-ticker-label {
  flex: none;
  display: flex;
  align-items: center;
  margin-right: 16px;
  padding: 0 16px;
  background-color: var(--rrufc-ticker-accent);
  color: var(--rrufc-ticker-bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.rrufc-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.rrufc-ticker-track {
  display: flex;
  width: max-content;
}

.rrufc-ticker.is-animated .rrufc-ticker-track {
  animation: rrufc-ticker-scroll var(--rrufc-ticker-duration, 30s) linear infinite;
}

.rrufc-ticker:hover .rrufc-ticker-track,
.rrufc-ticker:focus-within .rrufc-ticker-track {
  animation-play-state: paused;
}

.rrufc-ticker .rrufc-ticker-group {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rrufc-ticker .rrufc-ticker-item {
  margin: 0;
  padding: 10px 0;
  white-space: nowrap;
}

.rrufc-ticker .rrufc-ticker-item::after {
  content: "\2022";
  margin: 0 24px;
  color: var(--rrufc-ticker-accent);
}

.rrufc-ticker .rrufc-ticker-item a {
  color: inherit;
  text-decoration: none;
}

.rrufc-ticker .rrufc-ticker-item a:hover,
.rrufc-ticker .rrufc-ticker-item a:focus {
  color: var(--rrufc-ticker-accent);
  text-decoration: underline;
}

@keyframes rrufc-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rrufc-ticker-viewport {
    overflow-x: auto;
  }
}
