/* ============================================================
   pacy-section-announcement.css
   Announcement ticker bar — flush, no section padding
   ============================================================ */


/* The outer section carries dark-solid-bg for documentation/consistency
   only — .pacy-ticker-wrap below always sets its own fixed dark
   background regardless of the section's theme modifier class. */
.pacy-ticker-outer {
  padding-block: 0 !important;
  margin-block: 0;
  overflow: visible;
  line-height: 0;
}

.pacy-ticker-wrap {
  width: 100%;
  height: 35px;
  max-height: 35px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background-color: var(--pacy-dark-2);
  box-sizing: border-box;
  line-height: normal;
  --ticker-duration: 30s;
}


/* ─── Label ───────────────────────────────────────────────── */

.pacy-ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  height: 35px;
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pacy-accent-3);
  white-space: nowrap;
  user-select: none;
}


/* ─── Mask with fade edges ────────────────────────────────── */

.pacy-ticker-mask {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 35px;
}

.pacy-ticker-mask::before,
.pacy-ticker-mask::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  z-index: 1;
  pointer-events: none;
}

.pacy-ticker-mask::before {
  left: 0;
  background: linear-gradient(to right, var(--pacy-dark-2) 0%, transparent 100%);
}

.pacy-ticker-mask::after {
  right: 0;
  background: linear-gradient(to left, var(--pacy-dark-2) 0%, transparent 100%);
}


/* ─── Scrolling track ─────────────────────────────────────── */

.pacy-ticker-track {
  display: inline-flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  height: 35px;
  animation: pacy-ticker-scroll var(--ticker-duration) linear infinite;
  will-change: transform;
}

.pacy-ticker-track:hover {
  animation-play-state: paused;
}

.pacy-ticker-track li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 2rem;
  height: 35px;
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  flex-shrink: 0;
}

.pacy-ticker-track li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--pacy-accent-3);
  opacity: 0.7;
  flex-shrink: 0;
}

.pacy-ticker-track li a {
  color: var(--pacy-accent-3);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--pacy-transition);
}

.pacy-ticker-track li a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

@keyframes pacy-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .pacy-ticker-track {
    animation: none;
    overflow-x: auto;
  }
}
