/* DalalChart — public stock pages (/stock/SYMBOL, /stocks): colours come from style.css, the top bar from legal.css */
body.seo { background: radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent), var(--bg); }
.seo a { color: inherit; }
.seo .legal-top { position: sticky; top: 0; z-index: 5; }
.seo .legal-top .brand .wordmark { display: inline-flex; }   /* the app hides it on phones (it shows an icon); here it is the only logo */
.seo .legal-foot a { color: var(--muted); }
.seo .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.sp { max-width: 1080px; margin: 0 auto; padding: 18px 20px 48px; }
.sp-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.sp-crumbs a { color: var(--muted); text-decoration: none; } .sp-crumbs a:hover { color: var(--text); }
.sp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-head h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.15; }
.sp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--border); color: var(--muted); }
.sp-px { text-align: right; }
.sp-px b { display: block; font: 700 clamp(28px, 5vw, 40px)/1.1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -.02em; }
.sp-px span { font-weight: 700; font-size: 15px; }
.seo .up { color: var(--up); } .seo .down { color: var(--down); }
.sp-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; }
.sp-card h2 { margin: 0 0 10px; font-size: 16px; }
.sp-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sp-card-h h2 { margin: 0; }
.sp-card-h .btn { padding: 8px 14px; border-radius: 10px; }
.sp-chart { position: relative; height: 260px; margin: 22px 0 20px; }
.sp-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sp-chart .ln { fill: none; stroke-width: 2.2; }
.sp-chart.up .ln { stroke: var(--up); } .sp-chart.down .ln { stroke: var(--down); }
.sp-chart.up .f0 { stop-color: var(--up); stop-opacity: .28; } .sp-chart.down .f0 { stop-color: var(--down); stop-opacity: .28; }
.sp-chart .f1 { stop-color: var(--up); stop-opacity: 0; }
.sp-chart .grid { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sp-tick { position: absolute; bottom: -18px; transform: translateX(-50%); color: var(--muted); font-size: 11px; }
.sp-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--panel); }
.sp-dot.hi { background: var(--up); } .sp-dot.lo { background: var(--down); }
.sp-mark { position: absolute; transform: translate(-50%, calc(-100% - 9px)); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text);
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.sp-hint { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.sp-read { margin: 0; line-height: 1.7; font-size: 15px; }
.sp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.sp-grid .sp-card { margin: 0; }
.sp-dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; font-size: 14px; }
.sp-dl dt, .sp-dl dd { padding: 8px 0; border-top: 1px solid var(--border); margin: 0; }
.sp-dl dt:first-of-type, .sp-dl dt:first-of-type + dd { border-top: 0; }
.sp-dl dt { color: var(--muted); } .sp-dl dd { text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; }
.sp-dl dd small { font-family: Inter, system-ui, sans-serif; font-size: 11.5px; font-weight: 600; margin-left: 6px; }
.sp-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sp-rel { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; background: var(--panel2); transition: border-color .15s; }
.sp-rel:hover { border-color: var(--accent); }
.sp-rel span { grid-column: 1; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-rel i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 700; font-size: 13px; }
.sp-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: 18px; margin: 18px 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }
.sp-cta h2 { margin: 0 0 4px; font-size: 20px; } .sp-cta p { margin: 0; color: var(--muted); }
.seo .big-cta { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.sp-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 18px; }
/* /about */
.ab-hero { padding: 26px 4px 18px; }
.ab-kick { font: 800 13px Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.ab-hero h1 { margin: 10px 0 12px; font-size: clamp(30px, 5vw, 50px); line-height: 1.08; letter-spacing: -.03em; }
.ab-hero h1 em { font-style: normal; color: var(--accent); }
.ab-hero p { max-width: 760px; font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.ab-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ab-ghost { padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.ab-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 18px; }
.ab-nums div { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.ab-nums b { display: block; font: 800 30px/1.1 'JetBrains Mono', ui-monospace, monospace; color: var(--accent); }
.ab-nums span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ab-safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ab-safe div { padding: 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--border); }
.ab-safe i { font-style: normal; font-size: 22px; } .ab-safe b { display: block; margin: 8px 0 4px; font-size: 14.5px; }
.ab-safe p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ab-list { margin: 0; padding-left: 18px; line-height: 1.6; font-size: 14.5px; } .ab-list li { margin-bottom: 8px; }
.ab-contact a { color: var(--accent); }
@media (max-width: 760px) { .ab-nums { grid-template-columns: 1fr 1fr; } .ab-safe { grid-template-columns: 1fr; } }

/* the daily market wrap */
.mw h1 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; }
.mw > p.muted { margin: 0 0 16px; color: var(--muted); }
.mw-h2 { margin-top: 18px !important; }
.mw-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.mw-t td { padding: 8px 0; border-top: 1px solid var(--border); vertical-align: middle; }
.mw-t tr:first-child td { border-top: 0; }
.mw-t td:not(:first-child) { text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; padding-left: 12px; }
.mw-t a { text-decoration: none; display: block; min-width: 0; }
.mw-t a b { display: block; } .mw-t a small { display: block; color: var(--muted); font-size: 11.5px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-t a:hover b { color: var(--accent); }
.mw-ix td:first-child { color: var(--muted); }
.mw-breadth { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel2); }
.mw-breadth i { display: block; } .mw-breadth i.up { background: var(--up); } .mw-breadth i.down { background: var(--down); }
.mw-bn { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; font-weight: 600; }
.mw-flows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mw-flows div { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.mw-flows span { display: block; color: var(--muted); font-size: 12px; } .mw-flows b { font: 700 18px 'JetBrains Mono', ui-monospace, monospace; }
.mw-sec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
.mw-sec li { display: grid; grid-template-columns: 130px 1fr 70px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.mw-sec em { font-style: normal; font-weight: 700; text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.mw-bar { display: block; height: 8px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.mw-bar b { display: block; height: 100%; border-radius: 999px; } .mw-bar.up b { background: var(--up); } .mw-bar.down b { background: var(--down); }
.mw-list { margin: 0; line-height: 1.9; } .mw-list a { color: var(--accent); text-decoration: none; font-weight: 600; } .mw-list a:hover { text-decoration: underline; }
.mw-piv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .mw-piv h3 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.mw-nav { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0; font-size: 14px; }
.mw-nav a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.mw-nav a:hover { border-color: var(--accent); }
.mw-days { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; }
@media (max-width: 760px) {
  .mw-sec { grid-template-columns: 1fr; } .mw-sec li { grid-template-columns: 110px 1fr 64px; }
  .mw-piv { grid-template-columns: 1fr; gap: 10px; }
  .mw-nav { flex-wrap: wrap; } .mw-nav a { flex: 1; text-align: center; }
  .mw-t a small { max-width: 130px; }
}
/* the A-Z list */
.ix h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; }
.ix > p.muted { margin: 0 0 16px; color: var(--muted); }
.ix-tools { position: sticky; top: 57px; z-index: 4; background: var(--bg); padding: 10px 0; margin-bottom: 8px; }
#ix-q { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; font-size: 15px; }
#ix-q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ix-az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ix-az a { text-decoration: none; padding: 3px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--panel2); }
.ix-az a:hover { color: var(--text); }
.ix-g { scroll-margin-top: 150px; } .ix-g h2 { font-size: 18px; margin: 18px 0 8px; color: var(--accent); }
.ix-g ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.ix-g a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; }
.ix-g a:hover { background: var(--panel); border-color: var(--border); }
.ix-g a b { display: block; font-size: 13.5px; } .ix-g a span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-px { text-align: left; }
  .sp-chart { height: 190px; }
  .sp-tick:nth-of-type(even) { display: none; }
  .sp-cta .btn, .sp-card-h .btn { width: 100%; }
}

/* ---------- share buttons (stock pages, market wrap, movers and sector pages) ---------- */
.sh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.sh-row > span { font-size: 12px; color: var(--muted); margin-right: 2px; }
.sh-row a, .sh-row button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font: 600 12.5px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.sh-row a:hover, .sh-row button:hover { border-color: var(--accent); color: var(--accent); }
.sh-row .sh-wa { border-color: color-mix(in srgb, #25d366 55%, var(--border)); color: #25d366; }
.sh-row .sh-tg { border-color: color-mix(in srgb, #2aabee 55%, var(--border)); color: #2aabee; }

/* ---------- movers and sector pages ---------- */
.ls-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ls-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 13px Inter, system-ui, sans-serif; text-decoration: none; }
.ls-tabs a:hover { border-color: var(--accent); }
.ls-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ls-wrap { overflow-x: auto; }
.ls-t thead th { font: 600 11px Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: right; padding: 0 0 8px 12px; white-space: nowrap; }
.ls-t thead th:nth-child(-n+3) { text-align: left; }
.ls-t td:first-child { width: 28px; text-align: left; }
.ls-t td:nth-child(2) { text-align: left; font-family: Inter, system-ui, sans-serif; white-space: normal; }
.ls-t td:nth-child(3) { text-align: left; font-family: Inter, system-ui, sans-serif; font-size: 12.5px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ls-t tbody tr:first-child td { border-top: 1px solid var(--border); }
.ls-sec { grid-template-columns: 1fr; }
.ls-sec li { grid-template-columns: minmax(0, 1.4fr) 1fr 76px; }
.ls-sec li a { text-decoration: none; color: var(--text); min-width: 0; }
.ls-sec li a span { display: block; font-weight: 600; } .ls-sec li a small { display: block; color: var(--muted); font-size: 11.5px; }
.ls-sec li a:hover span { color: var(--accent); }
@media (max-width: 640px) { .ls-t td:nth-child(3), .ls-t th:nth-child(3), .ls-t td:nth-child(7), .ls-t th:nth-child(7) { display: none; } .ls-sec li { grid-template-columns: minmax(0, 1fr) 70px 64px; } }
.rc-t td.rc-p { text-align: right; font-family: Inter, system-ui, sans-serif; color: var(--muted); font-size: 13px; white-space: normal; }
.sp-card h2 .muted { font-size: 13px; font-weight: 500; }
.rc-n b, .rc-n small { display: block; } .rc-n small { color: var(--muted); font-size: 11.5px; }

/* ---------- Learn guides (English, Hindi, Tamil) ---------- */
.lr-langs { display: flex; gap: 6px; margin: 0 0 12px; }
.lr-langs a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 13px Inter, system-ui, sans-serif; text-decoration: none; }
.lr-langs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lr-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); text-decoration: none; }
.lr-card:hover { border-color: var(--accent); }
.lr-card b { font-size: 15px; } .lr-card span { color: var(--muted); font-size: 13px; line-height: 1.45; } .lr-card small { color: var(--accent); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.lr-art { max-width: 760px; }
.lr-kick { font: 700 12px Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lr-art h1 { margin: 6px 0 6px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; }
.lr-sum { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.lr-body { font-size: 16px; line-height: 1.75; }
.lr-body ul { padding-left: 20px; } .lr-body li { margin: 8px 0; }
.lr-body a { color: var(--accent); }
.lr-body .up { color: var(--up); font-weight: 600; } .lr-body .down { color: var(--down); font-weight: 600; }
.lr[lang="hi"] .lr-body, .lr[lang="ta"] .lr-body { line-height: 1.95; }

/* ---------- /muhurat-trading ---------- */
.mh .mh-time td { padding: 9px 10px; }
.mh .mh-time td:first-child { width: 170px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh .mh-time td:last-child { text-align: left; font-family: inherit; color: var(--muted); }
.mh .mh-t td:nth-child(2), .mh .mh-t th:nth-child(2) { text-align: left; font-family: inherit; }
.mh .mh-t td, .mh .mh-t th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh .mh-t td span { font-weight: 600; margin-left: 4px; }
.mh .sp-read b { color: var(--text); }
.sp-faq { border-top: 1px solid var(--border); padding: 10px 2px; }
.sp-faq:first-of-type { border-top: 0; }
.sp-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.sp-faq[open] summary::after { content: '−'; }
.sp-faq p { margin: 8px 0 2px; color: var(--muted); line-height: 1.6; }

/* ---------- /compare ---------- */
.cp-legend { display: flex; gap: 18px; font-size: 13px; font-weight: 600; margin: -4px 0 10px; }
.cp-legend span::before { content: ''; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: 3px; }
.cp-legend .a::before, .cp-end.a { background: #ff7a1a; } .cp-legend .b::before, .cp-end.b { background: #4cc3ff; }
.cp-chart .cp-a, .cp-chart .cp-b { fill: none; stroke-width: 2; }
.cp-chart .cp-a { stroke: #ff7a1a; } .cp-chart .cp-b { stroke: #4cc3ff; }
.cp-chart .cp-base { stroke: var(--muted); stroke-dasharray: 4 4; opacity: .5; vector-effect: non-scaling-stroke; }
.cp-end { position: absolute; right: 0; transform: translate(4px, -50%); font: 600 11px 'JetBrains Mono', monospace; color: #0b0f17; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.cp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-t th, .cp-t td { padding: 9px 10px; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; }
.cp-t thead th { border-top: 0; font-size: 15px; } .cp-t thead a { text-decoration: none; }
.cp-t tbody th { text-align: left; font-weight: 500; color: var(--muted); }
.cp-t td { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.cp-t td.cp-win { background: color-mix(in srgb, var(--up) 12%, transparent); font-weight: 700; box-shadow: inset 3px 0 0 var(--up); }
.cp-t td.cp-txt { font-family: inherit; color: var(--muted); }
.cp-mores { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-more { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel2); text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text); }
.cp-more:hover { border-color: var(--accent); color: var(--accent); }
.cp code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--panel2); padding: 1px 6px; border-radius: 6px; }

/* ---------- /ipo ---------- */
.ip-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.ip-t th { text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 10px 8px; white-space: nowrap; }
.ip-t td { padding: 9px 10px; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ip-t th:first-child, .ip-t td:first-child { text-align: left; padding-left: 0; }
.ip-t td span { font-weight: 600; margin-left: 4px; }
.ip-t .ip-n a { text-decoration: none; }
.ip-t .ip-n b { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ip-t .ip-n small { display: block; color: var(--muted); font-size: 11.5px; }
.ip-t .ip-n a:hover b { color: var(--accent); }
@media (max-width: 640px) {
  .ip-t { font-size: 12.5px; }
  .ip-t td, .ip-t th { padding-left: 7px; padding-right: 7px; }
  .ip-t .ip-n b { max-width: 130px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  .ip-l th:nth-child(2), .ip-l td:nth-child(2), .ip-l th:nth-child(3), .ip-l td:nth-child(3) { display: none; }
  .ip-l td span { display: block; margin: 2px 0 0; font-size: 11.5px; }
  .ip-l th { white-space: normal; }
}

/* /leaderboard */
.lb-wrap { overflow-x: auto; }
.lb-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.lb-t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.lb-t td { padding: 10px; border-bottom: 1px solid var(--border); }
.lb-t td:first-child { width: 44px; font-weight: 700; }
.lb-t td:nth-child(3) { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-rules { margin: 0; padding-left: 20px; line-height: 1.8; }
