/* A secondary reading feed within the primary site header. */
.news-ticker-container {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-2, #f4f6f8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 10px);
}
.news-ticker { display: flex; align-items: center; gap: .5rem; height: 42px; padding: 0 .5rem 0 .7rem; }
.news-ticker__content { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.news-ticker__article {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.news-ticker__article.active { opacity: 1; pointer-events: auto; }
.news-ticker__title { display: flex; align-items: center; min-width: 0; max-width: 100%; font-size: .8rem; line-height: 1.35; }
.news-ticker__title::before {
  content: attr(data-source);
  flex-shrink: 0;
  margin-right: .5rem;
  padding: .15rem .35rem;
  border-radius: 4px;
  background: var(--surface-3, #e9edf2);
  color: var(--text-secondary);
  font-size: .65rem;
  font-weight: 650;
  white-space: nowrap;
}
.news-ticker__title a { min-width: 0; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.news-ticker__title a:hover { color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }
.news-ticker__controls { display: flex; flex-shrink: 0; gap: 2px; }
.news-ticker__prev,
.news-ticker__toggle-pause,
.news-ticker__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
}
.news-ticker__controls button:hover { background: var(--surface-3, #e9edf2); color: var(--text-color); }
.news-ticker__controls i { display: none; }
.news-ticker__prev::before { content: '‹'; font-size: 25px; line-height: 1; }
.news-ticker__next::before { content: '›'; font-size: 25px; line-height: 1; }
.news-ticker__toggle-pause::before { content: 'Ⅱ'; font-size: 13px; font-weight: 700; }
.news-ticker__toggle-pause.paused::before { content: '▶'; font-size: 10px; }
.news-ticker__toggle-pause.paused { color: var(--accent-color); background: var(--surface-3, #e9edf2); }
@media (max-width: 1100px) { .news-ticker__title::before { display: none; } }
@media (max-width: 768px) { .news-ticker-container { display: none; } }
