/* Live Markets (live-markets/) and the homepage's tape: the frames TradingView's widgets are
   mounted in (assets/markets.js). The widgets are TradingView's own; the page gives each one
   its place, a skeleton until it has loaded and a hairline, and nothing around it. */
.tv{position:relative;min-width:0}
.tv__frame{position:relative;overflow:hidden;background:var(--ground-2,#0c0d0e)}
.tv__frame::before{content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(100deg,transparent 30%,rgba(242,243,243,.05) 50%,transparent 70%) 0 0/300% 100% no-repeat;
 animation:tv-wait 1.8s linear infinite}
@keyframes tv-wait{from{background-position:120% 0}to{background-position:-60% 0}}
.tv.is-ready .tv__frame,.tv.is-failed .tv__frame{background:none}
.tv.is-ready .tv__frame::before,.tv.is-failed .tv__frame::before{display:none}
.tv__frame .tradingview-widget-container,.tv__frame .tradingview-widget-container__widget{width:100%;height:100%}
/* A frame whose colour scheme differs from the page's is given an opaque ground by the browser:
   TradingView's documents declare none, so the frame is set to match and stays transparent. */
.tv iframe{display:block;color-scheme:light;opacity:0;transition:opacity .7s cubic-bezier(.2,.8,.2,1)}
.tv.is-ready iframe{opacity:1}
.tv__fail{display:none;position:absolute;inset:0 0 auto 0;margin:0;padding:20px 0;font-size:.875rem;color:var(--ink-2,#a3a8aa)}
.tv.is-failed .tv__fail{display:block}
.tv__by{margin:8px 0 0;font-size:.75rem;line-height:1.4;text-align:right;color:var(--ink-3,#74797c)}
.tv__by a{color:inherit;text-decoration:none}
.tv__by a:hover{color:var(--ink,#f2f3f3)}
.tv--tape .tv__frame{height:46px}
.tv--chart .tv__frame{height:clamp(480px,74vh,820px)}
.tv--overview .tv__frame,.tv--symbol .tv__frame{height:640px}
.tv--heatmap .tv__frame{height:clamp(440px,48vw,680px)}
.tv--info .tv__frame{height:190px}
.tv--financials .tv__frame,.tv--profile .tv__frame{height:560px}
.tv--movers .tv__frame,.tv--news .tv__frame{height:500px}
.tv--fx .tv__frame{height:440px}
.tv--screener .tv__frame{height:clamp(520px,78vh,760px)}
@media (prefers-reduced-motion:reduce){.tv__frame::before{animation:none}.tv iframe{transition:none}}

/* the page */
.lm{padding-top:var(--nav-h)}
.lm-tape{border-bottom:1px solid var(--rule)}
.lm-tape .tv__by{padding-inline:var(--gutter);margin:0;position:absolute;right:0;top:100%;padding-top:8px}
.lm .page__head{padding-top:clamp(56px,9vh,104px)}
.lm-sec{margin-top:clamp(36px,5vw,72px);min-width:0}
.lm-sec__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 32px;min-height:44px;margin-bottom:16px;padding-top:14px;border-top:1px solid var(--rule)}
.lm .page__head + .lm-sec .lm-sec__head{border-top:0}
.lm-sec__head h2{margin:0;font-size:1.1875rem;font-weight:400!important;letter-spacing:-.012em}
.lm-sec__head p{margin:0;font-size:.875rem;color:var(--ink-2)}
.lm-pair{display:grid;grid-template-columns:5fr 7fr;gap:0 clamp(20px,3vw,44px)}
.lm-pair--even{grid-template-columns:1fr 1fr;margin-top:clamp(20px,3vw,36px)}
.lm-pair[hidden],.lm-switch[hidden]{display:none}
.lm-sub{min-width:0}
.lm-sub h3{margin:0 0 12px;padding-top:14px;border-top:1px solid var(--rule);font-size:.9375rem;font-weight:400!important;color:var(--ink-2)}
.lm-switch{margin:0;padding:0;gap:0 26px}
.lm-switch .chip{min-height:32px}
.lm-switch .chip[aria-pressed="true"]{background-position:left calc(100% - 3px)!important}
.lm-picks{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 40px;margin-bottom:14px}
.lm-picks .lm-switch{justify-content:flex-start;padding:0}
.lm-find{display:flex;align-items:center;gap:14px;margin:0}
.lm-find label{font-size:.8125rem;color:var(--ink-3);white-space:nowrap}
.lm-find input{width:15rem;min-height:36px;padding:4px 0;font:inherit;font-size:.875rem;color:var(--ink)}
.lm-find input::placeholder{color:var(--ink-3)}
.lm-find .chip{min-height:36px;color:var(--ink)}
@media (max-width:640px){.lm-picks .lm-switch{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*var(--gutter));padding-inline:var(--gutter);gap:0 22px}.lm-picks .lm-switch::-webkit-scrollbar{display:none}.lm-picks .chip{white-space:nowrap}.lm-find{width:100%}.lm-find input{flex:1;width:auto;min-width:0}}
.lm-note{max-width:86ch;margin:clamp(28px,4vw,48px) 0 0;font-size:.8125rem;line-height:1.6;color:var(--ink-3)}
.lm-note a{color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--rule-strong)}
.lm-note a:hover{color:var(--ink)}
@media (max-width:899px){
 .lm-pair{grid-template-columns:1fr}
 .tv--chart .tv__frame{height:min(72vh,560px)}
 .tv--overview .tv__frame{height:600px}
 .tv--symbol .tv__frame{height:400px}
 .tv--heatmap .tv__frame{height:460px}
 .tv--info .tv__frame{height:350px}
 .lm-sec__head .lm-switch{flex-wrap:wrap;gap:0 22px;width:100%}
 .tv--financials .tv__frame{height:520px}
 .tv--profile .tv__frame{height:440px}
 .tv--movers .tv__frame,.tv--news .tv__frame{height:500px}
 .tv--screener .tv__frame{height:560px}
}

/* the homepage's tape: live quotes along the foot of the first screen, under the horizon. A
   hairline above, no ground of its own, fading out at the left; it leaves with the first screen.
   All of it goes to Live Markets, but for TradingView's own mark at its right end, which keeps
   its own link. */
.home-tape{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:center;height:58px;border-top:1px solid rgba(242,243,243,.1);
 opacity:calc(var(--on,1)*var(--tape,0));transition:opacity 1.6s cubic-bezier(.2,.8,.2,1)}
.home-tape:has(.tv.is-ready){--tape:1}
.home-tape__go{flex:none;display:inline-flex;align-items:center;gap:14px;height:100%;padding-left:max(var(--gut,24px),env(safe-area-inset-left,0px));padding-right:28px;
 font-size:.75rem;font-weight:400;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;color:var(--ink,#f2f3f3);text-decoration:none}
.home-tape__go .arr{width:40px;height:10px;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.home-tape:hover .home-tape__go .arr{transform:translateX(8px)}
.home-tape .tv{flex:1;min-width:0;opacity:.82;transition:opacity .4s;
 -webkit-mask:linear-gradient(90deg,transparent,#000 72px);mask:linear-gradient(90deg,transparent,#000 72px)}
.home-tape:hover .tv{opacity:1}
.home-tape .tv__frame{background:none}
.home-tape .tv__frame::before{display:none}
.home-tape__hit{position:absolute;inset:0 60px 0 0}
.home-tape__go:focus-visible{outline:1px solid var(--ink,#f2f3f3);outline-offset:-6px}
@media (max-width:640px){.home-tape{height:52px}.home-tape__go{padding-right:16px;letter-spacing:.1em}.home-tape__go .arr{display:none}.home-tape .tv{-webkit-mask:linear-gradient(90deg,transparent,#000 36px);mask:linear-gradient(90deg,transparent,#000 36px)}}
@media (prefers-reduced-motion:reduce){.home-tape{transition:none}}
