/* Header index row: auto-scroll on phone/tablet like the stock row; static row on desktop. */
.kse-index-marquee {
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .kse-index-marquee {
    margin: 0 auto;
  }

  .kse-index-marquee-clone {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  #kseGlobalTickerIndexRow {
    display: block;
    overflow: hidden;
    padding: 4px 0;
  }

  #kseGlobalTickerIndexRow .kse-index-marquee {
    width: max-content;
    animation: kse-ticker-scroll 28s linear infinite;
  }

  #kseGlobalTickerIndexRow .kse-ticker-item {
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 18px;
    white-space: nowrap;
  }

  #kseGlobalTickerIndexRow:hover .kse-index-marquee,
  #kseGlobalTickerIndexRow:active .kse-index-marquee,
  #kseGlobalTickerIndexRow:focus-within .kse-index-marquee {
    animation-play-state: paused;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  #kseGlobalTickerIndexRow {
    overflow-x: auto;
  }

  #kseGlobalTickerIndexRow .kse-index-marquee {
    animation: none;
  }

  .kse-index-marquee-clone {
    display: none !important;
  }
}
