/* KORAX Analytics · ticker.css
   Live ticker band, the second row of the sticky header (edge to edge, moves with the header).
   Height is reserved from the first paint (the js class is set in the head), so nothing shifts when
   the data arrives. Marquee: transform only, seamless (two identical groups, -50 %), paused on
   hover, while the tab is hidden and for prefers-reduced-motion (static, scrollable list).
   Without JavaScript the band is not rendered at all. */
:root { --kx-ticker-h: 34px; }

.kx-ticker { display: none; }
.js .kx-ticker {
  display: block; position: relative; height: var(--kx-ticker-h); overflow: hidden;
  border-top: 1px solid var(--line-soft); background: rgba(5, 8, 7, .55);
  font-size: 12px; line-height: var(--kx-ticker-h); color: var(--text-2, #b7c2bf);
  font-variant-numeric: tabular-nums; contain: layout paint style;
}
.kx-ticker__vp { position: absolute; inset: 0; overflow: hidden; }
.kx-ticker__track { display: flex; width: max-content; height: 100%; will-change: transform; animation: kx-ticker-run var(--kx-ticker-dur, 72s) linear infinite; }
.kx-ticker__group { display: flex; flex: none; }
.kx-ticker__set { display: flex; flex: none; }
.kx-ticker__item { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 22px; white-space: nowrap; position: relative; }
.kx-ticker__item::after { content: ""; position: absolute; right: -1px; top: 50%; width: 2px; height: 2px; margin-top: -1px; border-radius: 50%; background: var(--line, #1f2a28); }
.kx-ticker__n { color: var(--text-3, #8b9794); }
.kx-ticker__p { color: var(--text, #fff); font-weight: 600; }
.kx-ticker__c.up { color: var(--signal, #00ffa6); }
.kx-ticker__c.down { color: var(--red, #ff5f6d); }
.kx-ticker__c.up::before { content: "\25B2\00A0"; font-size: 8px; vertical-align: 1px; }
.kx-ticker__c.down::before { content: "\25BC\00A0"; font-size: 8px; vertical-align: 1px; }

@keyframes kx-ticker-run { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.kx-ticker:hover .kx-ticker__track,
.kx-ticker.is-hover .kx-ticker__track,
.kx-ticker.is-paused .kx-ticker__track { animation-play-state: paused; }

/* Neutral states: no numbers are shown as live. */
.kx-ticker__note { display: none; position: absolute; inset: 0; padding: 0 var(--pad, 20px); color: var(--text-3, #8b9794); }
.kx-ticker[data-state="delayed"] .kx-ticker__vp { visibility: hidden; }
.kx-ticker[data-state="delayed"] .kx-ticker__note { display: block; }
.kx-ticker[data-state="loading"] .kx-ticker__track { visibility: hidden; }

/* Edge fade */
.kx-ticker__vp { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

@media (prefers-reduced-motion: reduce) {
  .kx-ticker__track { animation: none; transform: none; }
  .kx-ticker__group + .kx-ticker__group,
  .kx-ticker__set + .kx-ticker__set { display: none; }
  .kx-ticker__vp { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .kx-ticker__vp::-webkit-scrollbar { display: none; }
}

/* The band is part of the header: anchors and the open mobile menu account for its height. */
html.js { scroll-padding-top: calc(96px + var(--kx-ticker-h) + env(safe-area-inset-top)); }
@media (max-width: 1140px) {
  html.js .nav.is-open {
    max-height: calc(100vh - 74px - var(--kx-ticker-h) - env(safe-area-inset-top));
    max-height: calc(100dvh - 74px - var(--kx-ticker-h) - env(safe-area-inset-top));
  }
}
@media (forced-colors: active) {
  .kx-ticker { border-top-color: CanvasText; }
  .kx-ticker__c.up, .kx-ticker__c.down, .kx-ticker__p, .kx-ticker__n { color: CanvasText; }
}
@media print { .kx-ticker { display: none !important; } }
