/* TradeSmart v40 – clearer offer hierarchy, chart-led code offer and main-channel video grid */
.ts-offers-v37 .ts-offer-code{border-color:rgba(251,190,72,.40)}
.ts-offers-v37 .ts-offer-code:hover{border-color:rgba(255,204,95,.8)}
.ts-offers-v37 .ts-v40-code-art{height:218px;display:flex;flex-direction:column;gap:0;background:linear-gradient(130deg,#0b1d2f,#102c38 60%,#102739);border-bottom-color:rgba(250,188,66,.35);padding:16px 13px 9px;}
.ts-v40-code-art:after{background:linear-gradient(0deg,rgba(4,20,31,.15),transparent 50%)}
.ts-v40-product-meta{display:flex;align-items:center;gap:7px;font-size:.75rem;font-weight:800;color:#eef8fa;z-index:1}
.ts-v40-product-meta img{width:24px;height:24px;object-fit:contain;border-radius:50%}
.ts-v40-product-meta small{font-size:.55rem;letter-spacing:.09em;color:#f7c56c;font-weight:850;margin-left:auto}
.ts-v40-code-art [data-mini-plot]{display:block;width:100%;height:126px;flex:1;z-index:1;margin-top:7px;overflow:visible}
.ts-v40-mini-bottom{display:flex;gap:8px;align-items:center;justify-content:space-between;z-index:2;min-height:31px}
.ts-v40-mini-bottom>span{font-size:.59rem;color:#f8ca76;font-weight:750}
.ts-v40-mini-nav{display:flex;align-items:center;gap:8px;color:#b8d8e1;font-size:.64rem;font-weight:800}
.ts-v40-mini-nav button{border-radius:7px;color:#f3f9fc;background:#214350;border:1px solid #3c6871;width:27px;height:26px;cursor:pointer;font-size:1.2rem;display:grid;place-items:center}
.ts-v40-mini-nav button:hover,.ts-v40-mini-nav button:focus-visible{background:#3c696f;outline:2px solid #65dec6}
.ts-offers-v37 .ts-v40-code-art .ts-v40-mini-edition{bottom:auto;top:9px;left:auto;right:13px;font-size:.53rem;color:#90c9c8;display:none}
.ts-offers-v37 .ts-v40-member-art{height:218px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}
.ts-v40-member-stack{z-index:1;display:flex;gap:8px;align-items:center;justify-content:center;padding:0 8px}
.ts-v40-member-symbol{width:84px;height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid rgba(106,222,195,.36);border-radius:14px;background:linear-gradient(150deg,rgba(18,85,75,.85),rgba(6,31,44,.85));box-shadow:0 10px 30px rgba(0,0,0,.2);font-size:1.75rem;font-weight:800;color:#63eac9;line-height:1}
.ts-v40-member-symbol:nth-child(2){color:#f2be5e;transform:translateY(-7px)}
.ts-v40-member-symbol:nth-child(3){color:#8ec8ff}
.ts-v40-member-symbol small{font-size:.51rem;color:#dff6f1;font-weight:750;letter-spacing:.035em;text-align:center}
.ts-v40-member-tag{z-index:1;color:#d7f7ee;font-size:.68rem;font-weight:780;letter-spacing:.015em;text-align:center}
.ts-offers-v37 .ts-offer-featured .action{font-size:.75rem;padding-inline:8px;letter-spacing:-.012em}
.ts-offers-v37 .ts-offer-code .action{background:#f5c65d;color:#152737;border:1px solid #ffd17a;box-shadow:0 8px 22px rgba(231,162,33,.16)}
.ts-offers-v37 .ts-offer-code .action:hover{background:#ffdb8b;box-shadow:0 9px 32px rgba(255,191,69,.28)}
/* Buying a source-code edition is a distinct action from navigating research or membership. */
.home-hero .hero-source-link,.research-offer-actions .research-src-link{background:linear-gradient(120deg,#ffce68,#f4aa36)!important;color:#132333!important;border:1px solid #ffcf73!important;font-weight:850!important;box-shadow:0 6px 18px rgba(237,150,44,.19)!important}
.home-hero .hero-source-link:hover,.research-offer-actions .research-src-link:hover{background:#ffe09c!important;box-shadow:0 8px 28px rgba(237,150,44,.35)!important;transform:translateY(-1px)}
.ts-v40-videos .section-top{max-width:860px}
.ts-v40-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 19px}
.ts-v40-video-card{display:flex;flex-direction:column;color:#ecf7f9;text-decoration:none;overflow:hidden;border-radius:16px;background:#112c3b;border:1px solid rgba(108,176,189,.30);transition:transform .22s,border-color .22s,box-shadow .22s}
.ts-v40-video-card:hover{transform:translateY(-4px);border-color:#69d7c5;box-shadow:0 16px 30px rgba(0,0,0,.17)}
.ts-v40-video-art{position:relative;aspect-ratio:16/9;overflow:hidden}
.ts-v40-video-art img{width:100%;height:100%;display:block;object-fit:cover}
.ts-v40-video-art>span{position:absolute;bottom:10px;left:12px;background:#0a202fdf;color:#e4fff8;border:1px solid #6fe8d9;border-radius:8px;padding:7px 10px;font-size:.71rem;font-weight:850}
.ts-v40-video-card>div:last-child{padding:14px 16px 18px}
.ts-v40-video-card small{font-size:.68rem;color:#7ad9ca}
.ts-v40-video-card h3{font-size:clamp(.97rem,1.2vw,1.09rem);line-height:1.34;margin:8px 0 0;letter-spacing:-.015em}
.ts-v40-youtube-more{display:inline-flex}
.ts-v40-chart-note{font-size:.74rem;color:#a9c6d2}
@media(max-width:980px){.ts-v40-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ts-offers-v37 .ts-v40-code-art{height:225px}.ts-v40-video-grid{grid-template-columns:1fr}.ts-offers-v37 .ts-v40-member-art{height:180px}.ts-v40-member-symbol{width:77px;height:69px;font-size:1.5rem}.ts-offers-v37 .ts-offer-featured .action{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.ts-v40-video-card{transition:none}}

.hero-v40-axis{display:flex;align-items:center;gap:5px;margin:5px 0 8px;flex-wrap:wrap}
.hero-v40-axis button{background:#132f41;border:1px solid #426779;border-radius:6px;padding:4px 9px;font-size:.67rem;font-weight:800;color:#b7d2df;cursor:pointer}
.hero-v40-axis button.selected{background:#245f5e;border-color:#66d7bc;color:#eafff8}
.hero-v40-axis span{font-size:.64rem;color:#99b5c0;margin-left:6px}
/* Contain decorative hero glow at the document edge. */
.home-hero:before{inset:-30px 0}
