/* Jayu Capital Labs v13.7.8 · Home header + resilient PWA ticker hotfix. */

/* On the public Home the navigation must never sit over the membership cards.
   Keep both ticker and navigation in normal document flow; Terminal keeps its own sticky app shell. */
@media (min-width:761px){
  body > .terminal-shell > .ticker-wrap{
    position:relative!important;
    top:auto!important;
    z-index:20!important;
    height:42px!important;
    min-height:42px!important;
  }
  body > .terminal-shell > .ticker-wrap .tradingview-widget-container,
  body > .terminal-shell > .ticker-wrap .tradingview-widget-container__widget{
    height:42px!important;
  }
  body > .terminal-shell > .topbar{
    position:relative!important;
    top:auto!important;
    z-index:30!important;
    min-height:62px!important;
    height:62px!important;
  }
  body > .terminal-shell > .main{
    padding-top:22px!important;
  }
  body > .terminal-shell > .main > .jayu-beta-banner{
    margin-top:0!important;
  }
}

/* Native fallback used while TradingView loads or when the external widget is unavailable in PWA. */
.jayu-ticker-fallback{
  width:100%;height:100%;min-height:42px;overflow:hidden;
  background:#05090f;color:#dbe7eb;border-bottom:1px solid rgba(94,231,240,.12);
  display:flex;align-items:center;
}
.jayu-ticker-fallback-track{
  display:flex;align-items:center;gap:0;min-width:max-content;
  animation:jayuTickerDrift 34s linear infinite;will-change:transform;
}
.jayu-ticker-fallback-item{
  display:grid;grid-template-columns:auto auto;column-gap:7px;row-gap:1px;
  min-width:154px;padding:6px 17px;border-right:1px solid rgba(128,151,163,.28);
  white-space:nowrap;
}
.jayu-ticker-fallback-item b{font-size:11px;letter-spacing:.02em;color:#cfdde2}
.jayu-ticker-fallback-item span{font-size:11px;font-variant-numeric:tabular-nums;color:#9db4bd}
.jayu-ticker-fallback-item small{grid-column:1/-1;font-size:8px;letter-spacing:.08em;color:#5f7884;text-transform:uppercase}
.jayu-ticker-up{color:#35cfa0!important}.jayu-ticker-down{color:#ff6676!important}.jayu-ticker-flat{color:#d7b66f!important}
@keyframes jayuTickerDrift{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.jayu-ticker-fallback-track{animation:none}}

@media (max-width:760px){
  /* The Home PWA must always reserve and render the market strip before the mobile header. */
  body > .terminal-shell > .ticker-wrap{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    min-height:54px!important;
    height:54px!important;
    overflow:hidden!important;
  }
  .jayu-ticker-fallback{min-height:54px;height:54px}
  .jayu-ticker-fallback-item{min-width:146px;padding:8px 14px}
  .jayu-ticker-fallback-item b,.jayu-ticker-fallback-item span{font-size:11px}
}
