/* Frontend ticker - modern, minimal, responsive */
.news-topbar * { box-sizing: border-box; }

.news-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px; /* overridden by inline CSS from options */
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 99999;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .2px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transition: transform .25s ease;
}

/* allow close button */
.news-topbar__close {
  background: transparent;
  border: none;
  color: inherit;
  display: none;
  font-size: 20px;
  line-height: 1;
  padding: 8px;
  margin-left: 12px;
  cursor: pointer;
  opacity: 0.85;
}

.news-topbar__viewport {
  overflow: hidden;
  position: relative;
  flex: 1 1 auto;
  height: 100%;
}

.news-topbar__scroller {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  gap: 5%;
}

.news-topbar__item {
  display: inline-block;
  padding: 0 18px;
  line-height: 48px; /* matches height */
  border-left: 1px solid rgba(255,255,255,0.06);
  margin-right: 6px;
  flex: 0 0 auto;
  user-select: none;
}

.news-topbar__item:first-child { border-left: none; }
.news-topbar__item a { color: inherit; text-decoration: none; }

@media (max-width: 520px) {
  .news-topbar { font-size: 13px; padding: 0 8px; }
  .news-topbar__item { padding: 0 12px; line-height: 44px; }
}

/* When hidden via close = slide up */
.news-topbar.nttb-hidden {
  transform: translateY(-120%);
}

/* Add minimal accessible focus styles */
.news-topbar__item a:focus { outline: 2px solid rgba(255,255,255,0.3); outline-offset: 2px; border-radius: 3px; padding: 3px 6px; }
