/* Horizontally-scrolling news headlines strip, below the site header. */

.news-ticker {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  overflow: hidden;
  position: sticky;
  top: 64px;
  z-index: calc(var(--z-nav) - 1);
}
@media (min-width: 768px) { .news-ticker { top: 72px; } }

.news-ticker__wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
}

.news-ticker__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-600);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
}
.news-ticker__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

.news-ticker__viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

/* JS drives the scroll via transform: translate3d — no CSS animation. */
.news-ticker__track {
  display: inline-flex;
  gap: var(--space-5);
  align-items: center;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Each copy holds one full list; two copies are rendered side-by-side. */
.news-ticker__copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  padding-right: var(--space-5); /* gap between the two copies */
}

.news-ticker__item {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.news-ticker__item a {
  color: var(--text-primary);
}
.news-ticker__item a:hover { color: var(--accent-600); text-decoration: none; }
.news-ticker__item--muted { color: var(--text-muted); }
.news-ticker__item-source {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.news-ticker__item-sep {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  margin: 0 var(--space-3);
}

