/* ----------------------------------------------------------------------
   Recent-events ticker (2026-05-10) — Bloomberg-style horizontal strip
   that sits below the Watchlist page header and above the live brief.
   Surfaces the last 30 days of published intel events across the entire
   brinefield — not just the user's watch set — so the page feels like a
   live pulse. Per Clint: "We should have a ticker of real events across
   the screen — from all the data we are gathering."
   Pauses on hover so the user can read an item. Click → wlxTickerOnClick
   scopes the feed if the item carries a basin we recognise.
   Hidden when fewer than 3 events qualify (silent fallback). */
.wlx-ticker {
  position: relative;
  margin: 6px 0 14px;
  padding: 0;
  /* Same family as wlx-feed-card: hairline border + faint surface. */
  background: rgba(0, 200, 200, 0.04);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.wlx-ticker[hidden] { display: none; }
.wlx-ticker-label {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px;
  height: 100%;
  background: rgba(0, 200, 200, 0.10);
  border-right: 0.5px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  white-space: nowrap;
}
.wlx-ticker-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 6px var(--cyan);
  animation: wlxTickerPulse 1.8s ease-in-out infinite;
}
@keyframes wlxTickerPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.wlx-ticker-mask {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.wlx-ticker-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  /* Width is auto; transform-based marquee runs on the inner track.
     Two copies of the items mean the animation can run -50% and loop
     seamlessly. */
  animation: wlxTickerScroll 90s linear infinite;
  will-change: transform;
}
.wlx-ticker:hover .wlx-ticker-track,
.wlx-ticker:focus-within .wlx-ticker-track { animation-play-state: paused; }
@keyframes wlxTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.wlx-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px;
  font-size: 0.78rem;
  color: var(--white);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color 0.12s;
}
.wlx-ticker-item + .wlx-ticker-item::before {
  content: '·';
  position: absolute;
  left: -2px;
  color: var(--cyan);
  font-weight: 700;
  pointer-events: none;
}
.wlx-ticker-item:hover { color: var(--cyan-bright); }
.wlx-ticker-item .wlx-ticker-when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.wlx-ticker-item .wlx-ticker-op {
  color: var(--cyan);
  font-weight: 600;
}
.wlx-ticker-item .wlx-ticker-head {
  color: var(--white);
}
.wlx-ticker-item:hover .wlx-ticker-head { color: var(--cyan-bright); }

/* ----------------------------------------------------------------------
   Ticker source-detail modal (2026-05-11). Click any ticker item →
   modal opens with the full event: headline, summary, agent
   implication (if specialist), verbatim evidence excerpt, source pill +
   "Read source →" link. The primary "where did this come from" surface
   for everything on the ticker.
   Surface prefix: .wlx-ticker-modal-*. Open/close via wlxTickerModalOpen
   / wlxTickerModalClose. */
.wlx-ticker-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(2, 8, 17, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: inherit;
}
.wlx-ticker-modal.is-open { display: flex; }
.wlx-ticker-modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(8, 18, 33, 0.98), rgba(11, 26, 46, 0.98));
  border: 1px solid var(--cyan);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(0, 200, 200, 0.18) inset;
  padding: 22px 26px 24px;
}
.wlx-ticker-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--white-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}
.wlx-ticker-modal-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.wlx-ticker-modal-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 8px;
}
.wlx-ticker-modal-eyebrow .pill {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--white-muted);
}
.wlx-ticker-modal-eyebrow .pill.is-cyan {
  background: rgba(0, 200, 200, 0.12);
  border-color: rgba(0, 200, 200, 0.32);
  color: var(--cyan-bright);
}
.wlx-ticker-modal-title {
  font-size: 18px;
  font-weight: 650;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
}
.wlx-ticker-modal-summary {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 14px;
}
.wlx-ticker-modal-implication {
  margin: 14px 0;
  padding: 10px 14px;
  background: rgba(0, 200, 200, 0.06);
  border-left: 2px solid var(--cyan);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--white);
}
.wlx-ticker-modal-implication-head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 4px;
}
.wlx-ticker-modal-excerpt {
  margin: 14px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--white-dim);
  border-radius: 0 4px 4px 0;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.55;
  color: var(--white-muted);
}
.wlx-ticker-modal-excerpt-head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white-dim);
  font-style: normal;
  margin-bottom: 4px;
}
.wlx-ticker-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.wlx-ticker-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 200, 200, 0.16);
  border: 1px solid var(--cyan);
  color: var(--cyan-bright);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.wlx-ticker-modal-cta:hover {
  background: rgba(0, 200, 200, 0.28);
  color: var(--white);
}
.wlx-ticker-modal-cta.is-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white-muted);
}
.wlx-ticker-modal-cta.is-secondary:hover {
  color: var(--white);
  border-color: rgba(0, 200, 200, 0.5);
}
.wlx-ticker-modal-cta.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
