/* eBharat Markets — Hub v2 (scroll-first, colorful) */
:root{
  --ink:#0f172a; --muted:#64748b; --line:rgba(15,23,42,.12);
  --bg:#f6f8ff; --card:#ffffff; --accent:#1e3a8a; /* navy */
  --accent2:#2563eb; /* blue */
  --accent3:#f59e0b; /* saffron/orange */
  --up:#16a34a; --down:#dc2626;
  --radius:16px; --shadow:0 16px 50px rgba(2,6,23,.06);
}

.eb-markets.v2{ background:linear-gradient(180deg,#f1f5ff 0%,#f7f9ff 28%,#ffffff 100%); color:var(--ink) }
.eb-markets .wrap{ max-width:1200px; margin:auto; padding:24px 18px }
.eb-markets .layout{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:18px }

/* Mast / hero */
.eb-markets .mast{ background:#0b1530; color:#e5edff; padding:28px 0; border-bottom:1px solid rgba(255,255,255,.08) }
.eb-markets .mast .wrap{ display:flex; align-items:center; gap:18px }
.eb-markets .mast h1{ margin:0; font-size:34px; font-weight:900; letter-spacing:-.01em }
.eb-markets .mast h1 span{ color:#7fb0ff }
.eb-markets .mast .sub{ margin:2px 0 0; opacity:.9 }
.eb-markets .mast .cta{
  margin-left:auto; background:linear-gradient(90deg,#f59e0b,#fbbf24); color:#111; font-weight:800;
  padding:10px 14px; border-radius:12px; box-shadow:0 10px 30px rgba(245,158,11,.25)
}

/* Cards */
.eb-markets .card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px }
.eb-markets .section{ scroll-margin-top:80px }
.eb-markets .head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px }
.eb-markets .head h2{ margin:0; font-size:22px; font-weight:900 }
.eb-markets .meta{ color:var(--muted); font-size:12px }

/* Tabs */
.eb-markets .tabs{ display:flex; gap:8px }
.eb-markets .tab{ border:1px solid var(--line); background:#fff; padding:7px 10px; border-radius:10px; font-weight:800 }
.eb-markets .tab.is-active{ background:#111827; color:#fff }

/* Bullets + why */
.eb-markets .bullets{ margin:8px 0 8px 18px }
.eb-markets .why{
  margin-top:8px; background:#eff6ff; border:1px dashed rgba(37,99,235,.25);
  border-radius:12px; padding:10px 12px; font-style:italic
}

/* Grid helpers */
.eb-markets .grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px }
.eb-markets .grid2{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px }
.eb-markets .small .tile p{ margin:.15rem 0 }
.eb-markets .list-card{
  display:block; background:#f8fafc; border:1px solid var(--line); border-radius:12px; padding:12px; font-weight:800
}
.eb-markets .list-card:hover{ background:#eef2ff }

/* Briefs */
.eb-markets .brief .tag{
  display:inline-block; font-size:12px; background:#e2e8f0; color:#111;
  padding:3px 8px; border-radius:999px; margin-bottom:6px; font-weight:800
}
.eb-markets .brief h3{ margin:.2rem 0 .2rem; font-size:16px; font-weight:900 }
.eb-markets .brief p{ margin:.12rem 0; color:#1f2937 }

/* IPO lines */
.eb-markets .line{ background:#f8fafc; border:1px solid var(--line); border-radius:12px; padding:12px }
.eb-markets .line .muted{ color:var(--muted); font-size:12px }

/* Calendar table */
.eb-markets .calendar{ width:100%; border-collapse:separate; border-spacing:0; overflow:hidden }
.eb-markets .calendar thead th{ text-align:left; font-size:12px; color:var(--muted); padding:8px 10px }
.eb-markets .calendar tbody td{ padding:10px; border-top:1px solid var(--line) }

/* Chips */
.eb-markets .chips{ display:flex; gap:8px; flex-wrap:wrap }
.eb-markets .chip{ border:1px solid var(--line); background:#fff; padding:6px 10px; border-radius:999px; font-weight:800 }
.eb-markets .chip.is-active{ background:#0b1530; color:#fff }
.eb-markets .sector-pane{ display:none }
.eb-markets .sector-pane.is-active{ display:block }
.eb-markets .lead{ font-weight:700; margin:.2rem 0 .4rem }
.eb-markets .ticks{ margin:.2rem 0 .2rem 18px; color:#1f2937 }

/* Sidebar (scoped) */
.eb-markets .side{ display:flex; flex-direction:column; gap:18px }
.eb-markets .widget h3{ margin:0 0 8px; font-size:18px; font-weight:900 }
.eb-markets .kv{ display:flex; align-items:flex-end; justify-content:space-between; margin:4px 0 8px }
.eb-markets .big{ font-size:26px; font-weight:900 }
.eb-markets .delta.up{ color:var(--up); font-weight:900 }
.eb-markets .delta.down{ color:var(--down); font-weight:900 }
.eb-markets .spark{ height:80px; background:#f8fafc; border:1px dashed var(--line); border-radius:12px }
.eb-markets .stats{ list-style:none; padding:0; margin:10px 0 0 }
.eb-markets .stats li{ display:flex; justify-content:space-between; padding:6px 0; border-top:1px solid var(--line) }
.eb-markets .stats li span{ color:var(--muted) }
.eb-markets .twocol{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.eb-markets .links{ list-style:none; padding:0; margin:0 }
.eb-markets .links li{ padding:6px 0; border-top:1px solid var(--line) }
.eb-markets .sub{ display:flex; gap:8px; margin-top:8px }
.eb-markets .sub input{ flex:1; border:1px solid var(--line); border-radius:10px; padding:8px }
.eb-markets .sub button{
  background:linear-gradient(90deg,#f59e0b,#fbbf24); border:none; padding:8px 12px; border-radius:10px; font-weight:900
}

/* CTA link */
.eb-markets .mini, .eb-markets .more{ color:var(--accent2); font-weight:800 }

/* Responsive */
@media (max-width:1100px){
  .eb-markets .layout{ grid-template-columns:1fr }
  .eb-markets .side{ order:-1 }
}
@media (max-width:640px){
  .eb-markets .grid3{ grid-template-columns:1fr }
  .eb-markets .grid2{ grid-template-columns:1fr }
}
