﻿/* FastFixCell — friendly top news / service ticker (above Follow social bar) */

:root {
  --news-ticker-height: 34px;
}

.news-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: var(--news-ticker-height);
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 45%, #ecfdf5 100%);
  color: #0f172a;
  border-bottom: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.news-ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-ticker-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.news-ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.news-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: news-ticker-scroll 48s linear infinite;
}

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

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  padding: 0 18px;
  border: 0;
  background: transparent;
  cursor: default;
  font-family: inherit;
  line-height: 1.2;
}

a.news-ticker-item,
button.news-ticker-item {
  cursor: pointer;
}

a.news-ticker-item:hover,
a.news-ticker-item:focus-visible,
button.news-ticker-item:hover,
button.news-ticker-item:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 4px;
}

.news-ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  flex: 0 0 auto;
  opacity: 0.75;
}

.news-ticker-static {
  display: none;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker-static a,
.news-ticker-static button {
  color: inherit;
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.news-ticker-static a:hover,
.news-ticker-static a:focus-visible,
.news-ticker-static button:hover,
.news-ticker-static button:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

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

/* Push existing fixed social bar + nav below this strip */
.social-bar {
  top: var(--news-ticker-height) !important;
}

.ff-header {
  top: calc(var(--social-bar-height, 36px) + var(--news-ticker-height)) !important;
}

.hero {
  padding-top: calc(var(--nav-height, 64px) + var(--social-bar-height, 36px) + var(--news-ticker-height) + 24px) !important;
}

html {
  scroll-padding-top: calc(var(--nav-height, 64px) + var(--social-bar-height, 36px) + var(--news-ticker-height) + 16px);
}

@media (max-width: 720px) {
  :root {
    --news-ticker-height: 32px;
  }

  .news-ticker-badge {
    display: none;
  }

  .news-ticker-item {
    font-size: 12px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker-track {
    animation: none !important;
    display: none;
  }

  .news-ticker-static {
    display: block;
  }
}


/* ticker items open orb with topic chips */
.news-ticker,
.news-ticker-inner,
.news-ticker-viewport,
.news-ticker-track,
.news-ticker-static,
a.news-ticker-item,
button.news-ticker-item,
.news-ticker-static a,
.news-ticker-static button {
  pointer-events: auto !important;
}
.news-ticker {
  position: fixed !important;
  z-index: 1002 !important;
}
button.news-ticker-item,
a.news-ticker-item,
.news-ticker-static button,
.news-ticker-static a {
  cursor: pointer !important;
}
