/* stock, index and trending pages (body.sd + stock.css): light, colourful Sample B colours; same layout as the dark dashboard */
html:has(body.sd){overflow-x:hidden;background:#f4f6fb}
body.sd{--text:#0d1b2a;--sub:#5a6880;--bg:#f4f6fb;--card:#fff;--line:#e3e8f0;--soft:#f3f5fa;--green:#0c9a6c;
 --up:#0c9a6c;--dn:#e5484d;--upbg:#e3f7ef;--dnbg:#fde8e8;
 background:#f4f6fb;color:var(--text);color-scheme:light;font-family:"Plus Jakarta Sans",Inter,"Segoe UI",Roboto,system-ui,sans-serif}
.sd a{color:#2f6fe0}
/* header */
.sd header.top{max-width:none;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);position:sticky;top:0;z-index:9;
 padding-left:max(24px,calc((100% - 1400px)/2 + 24px));padding-right:max(24px,calc((100% - 1400px)/2 + 24px))}
.sd .top .brand{color:var(--text)}
.sd .top nav a{color:#4a5a70;padding:6px 11px;border-radius:10px;text-decoration:none}
html:has(link[rel=canonical][href*="/stocks"]) .sd .top nav a[href="/stocks"],html:has(link[rel=canonical][href*="/indices"]) .sd .top nav a[href="/indices"],html:has(link[rel=canonical][href*="/commodities"]) .sd .top nav a[href="/indices"],html:has(link[rel=canonical][href*="/trending-stocks-today"]) .sd .top nav a[href="/trending-stocks-today"]{color:#fff;background:#2f8cff}
/* gradient band behind the top of the page */
.sd main{max-width:none;padding-left:max(24px,calc((100% - 1400px)/2 + 24px));padding-right:max(24px,calc((100% - 1400px)/2 + 24px));
 background:linear-gradient(125deg,#5b3df5 0%,#2f8cff 48%,#13c4a3 100%) top/100% 150px no-repeat}
.sd .sd-head,.sd .sd-head .crumbs,.sd .sd-head .crumbs a,.sd .sd-head h1{color:#fff}
.sd .sd-head .sd-meta{color:rgba(255,255,255,.9)}
.sd .sd-head .sd-meta span{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff}
.sd-wrap{padding-top:4px}
/* signal cards */
.sd-kpis div{background:#fff;border:0;border-top:4px solid var(--c,#2f8cff);border-radius:14px;box-shadow:0 10px 24px rgba(13,27,42,.10)}
.sd-kpis div:nth-child(1){--c:#13b88a}.sd-kpis div:nth-child(2){--c:#7c5cff}.sd-kpis div:nth-child(3){--c:#2f8cff}
.sd-kpis div:nth-child(4){--c:#ff7a59}.sd-kpis div:nth-child(5){--c:#f5a524}.sd-kpis div:nth-child(6){--c:#00b3c7}
.sd-kpis div.up,.sd-kpis div.down{border-top-color:var(--c)}
.sd-kpis dt{color:var(--c)}
/* cards */
.sd-card,.sd-price{border:0;border-radius:16px;box-shadow:0 8px 24px rgba(13,27,42,.07)}
.sd-card h2{color:var(--text)}
/* price box: the colour block of the page */
.sd-price{background:linear-gradient(150deg,#5b3df5,#2f8cff 70%);color:#fff}
.sd-price .sd-lbl,.sd-price .sd-kv dt,.sd-price .sd-range p,.sd-price .sd-sub,.sd-price .sd-sub a{color:rgba(255,255,255,.82)}
.sd-price .sd-pc,.sd-price .sd-pc.up,.sd-price .sd-pc.down{display:inline-block;background:#fff;border-radius:99px;padding:1px 10px}
.sd-price .sd-pc.up{color:var(--up)}.sd-price .sd-pc.down{color:var(--dn)}
.sd-price .sd-range i{background:#fff;box-shadow:0 0 0 2px #0d1b2a}
.sd a.sd-btn{background:#13c4a3;color:#062a24}
.sd-price .play-badge img{filter:drop-shadow(0 4px 10px rgba(0,0,0,.2))}
/* chart */
.sd .price-chart polygon{fill:url(#sbFill);opacity:1}
.sd .price-chart polyline:last-of-type{stroke:url(#sbLine);stroke-width:2.8}
.sd .price-chart polyline:first-of-type{stroke:#f5a524;stroke-width:1.8}
.sd .price-chart .axis{fill:var(--sub)}.sd .price-chart .now{fill:var(--text);font-weight:800}
.sd .price-chart circle{fill:#13c4a3}
.sd dl.returns div{border-radius:10px}
.sd dl.returns div:has(dd.up){background:var(--upbg)}.sd dl.returns div:has(dd.down){background:var(--dnbg)}
.sd dl.returns dt{color:var(--sub)}
/* technicals */
.g-lo{stroke:#13b88a}.g-mid{stroke:#2f8cff}.g-hi{stroke:#e5484d}
.sd .needle{stroke:var(--text)}.sd .hub{fill:var(--text)}
.sd .pill.up{background:var(--upbg);color:#08855c}.sd .pill.down{background:var(--dnbg);color:#c93a3e}.sd .pill.flat{background:#eef1f6;color:#4a5a70}
.sd-ladder .r{background:var(--dnbg);color:#a8282d}.sd-ladder .s{background:var(--upbg);color:#076b4b}
.sd-ladder .now{background:#0d1b2a;color:#fff}
.sd-bars i{background:linear-gradient(180deg,#7c5cff,#2f8cff);opacity:1}
.sd-bars div:last-child i{background:linear-gradient(180deg,#13c4a3,#0c9a6c)}
/* valuation + news tiles */
.sd-tiles div:nth-child(1),.sd-tiles div:nth-child(8){background:#e3f7ef}.sd-tiles div:nth-child(2),.sd-tiles div:nth-child(7){background:#efeaff}
.sd-tiles div:nth-child(3){background:#e6f0ff}.sd-tiles div:nth-child(4){background:#fff0e9}
.sd-tiles div:nth-child(5){background:#fff6e0}.sd-tiles div:nth-child(6){background:#e2f7fa}
.sd-news li{background:var(--soft);border-left:4px solid #7c5cff}.sd-news li:nth-child(2){border-left-color:#ff7a59}.sd-news li:nth-child(3){border-left-color:#13b88a}
/* lower part */
.sd-more{border-top:0}
.sd-more h2{color:var(--text)}
.sd .levels li{background:#fff;box-shadow:0 4px 14px rgba(13,27,42,.05);border-color:var(--line)}
.sd .faq-card{background:#fff;border-left-color:#7c5cff;box-shadow:0 6px 18px rgba(13,27,42,.06)}
.sd .faq-card:nth-child(4n+2){border-left-color:#13b88a}.sd .faq-card:nth-child(4n+3){border-left-color:#ff7a59}.sd .faq-card:nth-child(4n){border-left-color:#2f8cff}
.sd .chips li a,.sd .chips li span,.sd .related a{background:#fff;border-color:var(--line);color:var(--text)}
.sd .chips li a:hover,.sd .related a:hover{border-color:#7c5cff;color:#5b3df5}
.sd .app-cta{background:linear-gradient(125deg,#0d1b2a,#1d2a5a);color:#fff;border:0}
.sd .app-cta p{color:rgba(255,255,255,.88)}.sd .app-cta .app-cta-title{color:#fff}
.sd .app-cta .button{background:#13c4a3;color:#062a24}
.sd table th{color:var(--sub)}
@media(max-width:760px){.sd main{background-size:100% 120px}.sd .top nav{min-width:0;overflow-x:auto;flex-wrap:nowrap}.sd .top nav a{padding:5px 8px;white-space:nowrap}}
.sd .sd-news a{color:var(--text)}
.sd .app-cta a.button{color:#062a24}
/* ---- lower part: cards, coloured headings, tables ---- */
.sd-more{margin-top:30px;padding-top:0}
.sd-more .sd-two{gap:22px}
.sd-more .sd-two>section{background:#fff;border-radius:20px;padding:8px 24px 22px;box-shadow:0 10px 28px rgba(13,27,42,.07)}
.sd-more h2,.sd-more .sd-two h3{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.3px;margin:22px 0 12px;color:var(--text)}
.sd-more h2:before,.sd-more .sd-two h3:before{content:"";width:8px;height:24px;border-radius:6px;background:var(--hg,linear-gradient(180deg,#7c5cff,#2f8cff));flex:none}
.sd-more .sd-two>section:first-child h2:nth-of-type(1){--hg:linear-gradient(180deg,#13c4a3,#0c9a6c)}
.sd-more .sd-two>section:first-child h2:nth-of-type(2){--hg:linear-gradient(180deg,#7c5cff,#5b3df5)}
.sd-more .sd-two>section:first-child h2:nth-of-type(3){--hg:linear-gradient(180deg,#ff7a59,#e5484d)}
.sd-more .sd-two>section:nth-child(2) h2{--hg:linear-gradient(180deg,#2f8cff,#1f5fd6)}
.sd-more .sd-two>section:nth-child(2) h3{--hg:linear-gradient(180deg,#f5a524,#e07b12)}
/* at a glance */
.sd-more ul.facts{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.sd-more ul.facts li{position:relative;padding:10px 14px 10px 44px;border-radius:14px;background:#f6f8fc;font-size:15px;line-height:1.5}
.sd-more ul.facts li:before{content:"✓";position:absolute;left:12px;top:10px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;color:#fff;background:var(--fc,#13b88a)}
.sd-more ul.facts li:nth-child(6n+2){--fc:#7c5cff}.sd-more ul.facts li:nth-child(6n+3){--fc:#2f8cff}.sd-more ul.facts li:nth-child(6n+4){--fc:#ff7a59}
.sd-more ul.facts li:nth-child(6n+5){--fc:#f5a524}.sd-more ul.facts li:nth-child(6n){--fc:#00b3c7}
/* tables */
.sd-more .board{border:0;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--line)}
.sd-more table.kv{margin:0;font-size:15px}
.sd-more table.kv th,.sd-more table.kv td{border:0;border-bottom:1px solid var(--line);padding:11px 14px}
.sd-more table.kv tr:last-child th,.sd-more table.kv tr:last-child td{border-bottom:0}
.sd-more table.kv tbody tr:nth-child(even){background:#f8f9fd}
.sd-more table.tech th a{display:inline-block;background:#efeaff;color:#5b3df5;font-weight:700;text-decoration:none;padding:3px 10px;border-radius:9px;font-size:14px;white-space:nowrap}
.sd-more table.tech td:nth-child(2){font-weight:800;font-size:16px;color:var(--text);white-space:nowrap}
.sd-more table.tech td:nth-child(3){color:#3d4b60}
.sd-more table.results thead th{background:linear-gradient(90deg,#efeaff,#e6f0ff);color:#3b2fa8;font-size:12.5px;text-transform:uppercase;letter-spacing:.6px;font-weight:800}
.sd-more table.results tbody tr:first-child{background:#e9fbf4}
.sd-more table.results tbody tr:first-child td:first-child:after{content:"Latest";margin-left:8px;font-size:11px;font-weight:800;color:#fff;background:#13b88a;padding:1px 7px;border-radius:7px;vertical-align:2px}
.sd-more table.results td:first-child{font-weight:800}
.sd-more table.results td:nth-child(3){font-weight:800;color:#08855c}
.sd-more p.note{font-size:13.5px;color:var(--sub)}
.sd-more p.note a{font-weight:700;color:#2f6fe0}
/* candle patterns as coloured chips */
.sd-more ul.levels{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:8px}
.sd-more ul.levels li{display:flex;flex-direction:column;gap:1px;border:0;border-radius:14px;padding:9px 14px;background:#eef1f6;box-shadow:none;font-size:14px}
.sd-more ul.levels li b{font-size:12px;letter-spacing:.3px;color:var(--sub)}
.sd-more ul.levels li span{font-weight:800;color:#4a5a70}
.sd-more ul.levels li.bear{background:#fde8e8}.sd-more ul.levels li.bear span{color:#c93a3e}
.sd-more ul.levels li.bull{background:#e3f7ef}.sd-more ul.levels li.bull span{color:#08855c}
.sd-more ul.levels li.gap{background:linear-gradient(90deg,#e6f0ff,#efeaff)}.sd-more ul.levels li.gap span{color:#3b2fa8}
/* FAQ: pastel cards with gradient Q badge */
.sd .faq h2{display:flex;align-items:center;gap:10px}
.sd .faq h2:before{content:"";width:8px;height:24px;border-radius:6px;background:linear-gradient(180deg,#f5a524,#ff7a59)}
.sd .faq-card{border:0;border-left:0;border-radius:18px;box-shadow:none;background:#f6f3ff}
.sd .faq-card:nth-child(4n+2){background:#eafaf4}.sd .faq-card:nth-child(4n+3){background:#fff3ec}.sd .faq-card:nth-child(4n){background:#ebf3ff}
.sd .faq-card h3:before{background:linear-gradient(135deg,#7c5cff,#2f8cff)!important;color:#fff!important}
/* compare + peers + learn */
.sd-more>.sd-two:has(>.app-cta)>section{background:none;box-shadow:none;padding:0}
.sd .chips li a{background:linear-gradient(135deg,#7c5cff,#2f8cff);color:#fff;border:0;font-weight:700}
.sd .chips li span{background:#fff;border:1px solid var(--line);color:#4a5a70}
.sd .related ul{gap:12px}
.sd .related a{border:0;border-radius:16px;background:#f6f3ff;box-shadow:none}
.sd .related li:nth-child(6n+2) a{background:#eafaf4}.sd .related li:nth-child(6n+3) a{background:#ebf3ff}
.sd .related li:nth-child(6n+4) a{background:#fff3ec}.sd .related li:nth-child(6n+5) a{background:#fff8e6}.sd .related li:nth-child(6n) a{background:#e8f8fb}
.sd .related a b{color:var(--text)}.sd .related a span{color:var(--sub)}
@media(max-width:760px){.sd-more .sd-two>section{padding:4px 16px 16px}.sd-more table.kv th,.sd-more table.kv td{padding:9px 8px;font-size:14px}}
.sd .related{margin-top:30px}.sd .related h2{font-size:20px}
.sd .related ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0}
.sd .related a{display:block;padding:14px 16px;height:100%}.sd .related a b{display:block;font-size:16px;margin-bottom:2px}
@media(max-width:760px){.sd .related ul{grid-template-columns:minmax(0,1fr)}}
/* stock search at the top */
.sd main{background-size:100% 214px}
.sd-find{position:relative;max-width:560px;margin:12px 0 6px;z-index:5}
.sd-search{display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:4px 4px 4px 14px;box-shadow:0 12px 28px rgba(20,10,80,.25)}
.sd-search input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:16px;color:var(--text);background:none;padding:8px 0}
.sd-search button{border:0;background:#0d1b2a;color:#fff;font:inherit;font-weight:800;font-size:15px;padding:9px 18px;border-radius:11px;cursor:pointer}
.sd-hits{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border-radius:14px;box-shadow:0 18px 40px rgba(13,27,42,.22);overflow:hidden;display:none}
.sd-hits a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;color:var(--text);text-decoration:none;border-top:1px solid var(--line);font-weight:600;font-size:15px}
.sd-hits a:first-child{border-top:0}.sd-hits a:hover,.sd-hits a.on{background:#f3efff}
.sd-hits small{color:var(--sub);font-weight:700;font-size:12px;white-space:nowrap}
@media(max-width:760px){.sd main{background-size:100% 250px}.sd-search button{padding:9px 13px}}
.sd-more .sd-two>section,.sd-more .sd-two>aside{min-width:0}
.sd-more .board{overflow-x:auto}
@media(max-width:760px){.sd main{background-size:100% 272px}.sd-more .sd-two{grid-template-columns:minmax(0,1fr)}}
/* stock chips with today's change (index pages): light chips, coloured change pill */
.sd .chips li a:has(>span.up),.sd .chips li a:has(>span.down){background:#fff;color:var(--text);border:1px solid var(--line);font-weight:700}
.sd .chips li a:has(>span.up):hover,.sd .chips li a:has(>span.down):hover{border-color:#7c5cff;color:#5b3df5}
.sd .chips li a>span.up{background:var(--upbg);color:#08855c;border:0}.sd .chips li a>span.down{background:var(--dnbg);color:#c93a3e;border:0}
/* pages without the search box: a shorter band */
.sd main:not(:has(.sd-find)){background-size:100% 150px}
@media(max-width:760px){.sd main:not(:has(.sd-find)){background-size:100% 285px}}
/* trending: intro on the band, app box, side lists */
.sd .sd-head p:not(.sd-meta),.sd .sd-intro{color:rgba(255,255,255,.93)}
.sd main:has(.sd-intro){background-size:100% 205px}
.sd-kpis dt a{color:inherit}
.sd-cta{background:linear-gradient(150deg,#5b3df5,#2f8cff 70%);color:#fff;border:0;border-radius:16px;box-shadow:0 8px 24px rgba(13,27,42,.07)}
.sd-cta .sd-lbl,.sd-cta .sd-note{color:rgba(255,255,255,.85)}.sd-cta .sd-cta-t{color:#fff}
.sd .sd-side .related ul{grid-template-columns:minmax(0,1fr);gap:8px}
.sd .sd-side .related h2{font-size:13px}
.sd .sd-side .related a{padding:9px 12px}.sd .sd-side .related a b{font-size:14px}
@media(max-width:760px){.sd main:has(.sd-intro){background-size:100% 330px}}

/* reading pages (tools, lessons, not found): the gradient sits on a hero card, not a fixed band */
.sd-read main,.sd main:has(.sd-hero){background:none}
.sd .sd-hero{background:linear-gradient(125deg,#5b3df5 0%,#2f8cff 48%,#13c4a3 100%);color:#fff;border-radius:20px;padding:18px 24px 20px;margin:8px 0 18px;box-shadow:0 10px 28px rgba(47,92,255,.18)}
.sd .sd-hero h1,.sd .sd-hero p,.sd .sd-hero .intro,.sd .sd-hero .crumbs,.sd .sd-hero .crumbs a,.sd .sd-hero .sd-head,.sd .sd-hero .sd-head h1{color:#fff}
.sd .sd-hero h1{margin-top:4px}.sd .sd-hero .intro{color:rgba(255,255,255,.93);margin-bottom:0}
.sd .sd-hero .sd-head{margin:0}.sd .sd-hero .button{background:#fff;color:#5b3df5}
.sd a.button{color:#fff;background:linear-gradient(135deg,#7c5cff,#2f8cff);border:0}
.sd .sd-hero a.button{background:#fff;color:#5b3df5}
.sd .rd-card.related ul{grid-template-columns:minmax(0,1fr);gap:8px}.sd .rd-card.related h2{font-size:16px}
.sd .rd-card.related a{padding:10px 14px}.sd .rd-card.related a b{font-size:15px}
/* compare: two lines in the two stock colours */
.sd .ca{color:#0c9a6c}.sd .cb{color:#5b3df5}.sd-vs dd i.ca{background:#0c9a6c}.sd-vs dd i.cb{background:#5b3df5}
.sd svg.price-chart[aria-label*=" vs "] polyline:first-of-type{stroke:#0c9a6c;stroke-width:2.6}
.sd svg.price-chart[aria-label*=" vs "] polyline:last-of-type{stroke:#5b3df5;stroke-width:2.6}
.sd .sd-price .ca,.sd .sd-price .cb{color:#fff}
.sd .sd-row>*,.sd .sd-flow>*{min-width:0}
