/* =========================================================
   NWS West Tennessee Alerts – Ticker CSS
   - Speed controlled by --nws-scroll-seconds (admin)
   - Starts off-screen right, exits off-screen left
========================================================= */

.nws-wt-ticker{
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;

  /* Fallback speed (admin overrides inline) */
  --nws-scroll-seconds: 22s;
}

.nws-wt-ticker-track{
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* The moving content */
.nws-wt-ticker-inner{
  display: inline-block;
  white-space: nowrap;
  will-change: transform;

  /* 🚀 Launch text from far right */
  padding-left: 100%;
  box-sizing: content-box;

  animation-name: nwsTickerScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  /* Admin-controlled speed */
  animation-duration: var(--nws-scroll-seconds);
}

/* Scroll animation */
@keyframes nwsTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Alert items */
.nws-alert-item{
  font-weight: 800;
  padding: 2px 10px;
  display: inline-block;
  line-height: 1.4;
}

/* Separator */
.nws-sep{
  font-weight: 700;
  margin: 0 6px;
}

/* Severity classes (colors injected inline by admin) */
.nws-extreme{}
.nws-severe{}
.nws-moderate{}
.nws-minor{}
.nws-unknown{}

/* No alerts pill */
.nws-alert-item.nws-none{
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
