/* StockVane market sections — shared polish layer (movers / lists / compare / sectors).
   Sits on top of sv-quotes.css; reuses its --sv-* tokens. */

.sv-sec{ --g:#eef1f5; --line:#e7ebf0; --ink:#0b1220; --muted:#5b6673; --faint:#8b95a3;
  --up:#00a63e; --down:#e02424; --accent:#0f5af0; --card:#fff; }
@media (prefers-color-scheme:dark){
  .sv-sec{ --g:#12151b; --line:#242a33; --ink:#f2f5f9; --muted:#9aa4b2; --faint:#6b7684; --card:#161a21; }
}

.sv-sec .sv-quote-inner{ max-width:1120px; }

/* ---- hero header ---- */
.sv-sec-hero{ padding:6px 0 24px; border-bottom:1px solid var(--line); margin-bottom:26px; }
.sv-sec-eyebrow{ font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
.sv-sec-hero h1{ font-size:clamp(26px,4.2vw,40px); line-height:1.1; letter-spacing:-.02em; margin:8px 0 10px; color:var(--ink); }
.sv-sec-hero p.lead{ font-size:15.5px; line-height:1.6; color:var(--muted); max-width:60ch; margin:0; }
.sv-sec-metabar{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:16px; font-size:12.5px; color:var(--faint); }
.sv-sec-asof::before{ content:"●"; color:var(--up); font-size:9px; vertical-align:middle; margin-right:6px; }

/* ---- share button ---- */
.sv-share{ display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border:1px solid var(--line);
  border-radius:999px; background:var(--card); color:var(--muted); font-size:12.5px; font-weight:600; cursor:pointer; }
.sv-share:hover{ border-color:var(--accent); color:var(--accent); }
.sv-share svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.sv-share.copied{ color:var(--up); border-color:var(--up); }

/* ---- section blocks ---- */
.sv-block{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:20px 20px 8px; margin-bottom:20px;
  box-shadow:0 1px 2px rgba(11,18,32,.04); }
.sv-block__head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:6px; }
.sv-block__head h2{ font-size:16px; font-weight:700; letter-spacing:-.01em; margin:0; color:var(--ink); }
.sv-block__head a{ font-size:13px; font-weight:600; color:var(--accent); text-decoration:none; white-space:nowrap; }
.sv-block__head a:hover{ text-decoration:underline; }

/* ---- polished tables ---- */
.sv-sec table.sv-quotes-table{ border-collapse:collapse; width:100%; font-size:13.5px; }
.sv-sec table.sv-quotes-table thead th{ font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint);
  font-weight:700; text-align:right; padding:8px 12px; border-bottom:1px solid var(--line); }
.sv-sec table.sv-quotes-table thead th:first-child{ text-align:left; }
.sv-sec table.sv-quotes-table tbody td{ padding:11px 12px; border-bottom:1px solid var(--line); text-align:right; vertical-align:middle; }
.sv-sec table.sv-quotes-table tbody td:first-child{ text-align:left; }
.sv-sec table.sv-quotes-table tbody tr:last-child td{ border-bottom:0; }
.sv-sec table.sv-quotes-table tbody tr:hover{ background:var(--g); }
.sv-sec .sv-name-link{ display:flex; flex-direction:column; line-height:1.25; text-decoration:none; }
.sv-sec .sv-name-link .sv-name{ font-weight:650; color:var(--ink); }
.sv-sec .sv-name-link .sv-code{ font-size:11px; color:var(--faint); font-weight:600; }
.sv-sec .sv-name-link:hover .sv-name{ color:var(--accent); }
.sv-sec .sv-dir-up,.sv-sec .u{ color:var(--up); }
.sv-sec .sv-dir-down,.sv-sec .d{ color:var(--down); }
.sv-sec td .sv-last{ font-weight:650; color:var(--ink); }

/* rank badge */
.sv-rank{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:7px; background:var(--g);
  color:var(--muted); font-size:11px; font-weight:800; margin-right:10px; flex:0 0 auto; }
.sv-row1 .sv-rank{ background:linear-gradient(135deg,#0f5af0,#3b82f6); color:#fff; }
.sv-td-name{ display:flex; align-items:center; }

/* sparkline cell */
.sv-spark{ display:inline-block; width:78px; height:24px; vertical-align:middle; }
.sv-spark path{ fill:none; stroke-width:1.6; }

/* quant pill in tables */
.sv-qpill{ display:inline-block; min-width:38px; padding:3px 8px; border-radius:7px; font-size:11.5px; font-weight:800; }
.sv-qpill.good{ background:rgba(0,166,62,.12); color:#07892f; }
.sv-qpill.mid{ background:rgba(234,179,8,.15); color:#a16207; }
.sv-qpill.bad{ background:rgba(224,36,36,.12); color:#c81e1e; }
@media (prefers-color-scheme:dark){
  .sv-qpill.good{ color:#4ade80; } .sv-qpill.mid{ color:#fbbf24; } .sv-qpill.bad{ color:#f87171; }
}

/* ---- chips ---- */
.sv-sec .sv-chips{ display:flex; flex-wrap:wrap; gap:9px; margin:4px 0 8px; }
.sv-sec .sv-chip{ padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:var(--card);
  font-size:13px; font-weight:600; color:var(--ink); text-decoration:none; }
.sv-sec .sv-chip:hover{ border-color:var(--accent); color:var(--accent); }

/* ====================  COMPARE  ==================== */
.sv-vs-head{ display:grid; grid-template-columns:1fr 44px 1fr; gap:14px; align-items:stretch; margin-bottom:22px; }
.sv-vs-card{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px; box-shadow:0 1px 2px rgba(11,18,32,.04); }
.sv-vs-card .tkr{ font-size:12px; font-weight:800; letter-spacing:.05em; color:var(--faint); }
.sv-vs-card .nm{ font-size:18px; font-weight:750; letter-spacing:-.01em; color:var(--ink); margin:2px 0 12px; line-height:1.2; }
.sv-vs-card .px{ font-size:24px; font-weight:750; color:var(--ink); }
.sv-vs-card .chg{ font-size:13.5px; font-weight:650; margin-left:8px; }
.sv-vs-card .spark{ display:block; width:100%; height:44px; margin:12px 0 10px; }
.sv-vs-card .grade{ display:inline-flex; align-items:baseline; gap:6px; font-size:12.5px; color:var(--muted); }
.sv-vs-card .grade b{ font-size:15px; }
.sv-vs-mid{ display:grid; place-items:center; font-size:13px; font-weight:800; color:var(--faint); }
.sv-vs-verdict{ background:linear-gradient(180deg,rgba(15,90,240,.06),transparent); border:1px solid var(--line);
  border-left:3px solid var(--accent); border-radius:12px; padding:14px 16px; font-size:14.5px; line-height:1.6; color:var(--ink); margin-bottom:22px; }
.sv-vs-verdict b{ font-weight:750; }

.sv-vs-table{ width:100%; border-collapse:collapse; font-size:14px; }
.sv-vs-table th{ font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--faint); text-align:center; padding:8px 10px; border-bottom:1px solid var(--line); }
.sv-vs-table th:first-child{ text-align:left; }
.sv-vs-table td{ padding:12px 10px; border-bottom:1px solid var(--line); text-align:center; color:var(--ink); }
.sv-vs-table td:first-child{ text-align:left; color:var(--muted); font-size:12.5px; }
.sv-vs-table td.win{ font-weight:750; }
.sv-vs-table td.win::after{ content:"▲"; font-size:9px; color:var(--up); margin-left:6px; vertical-align:middle; }
.sv-vs-table tr:last-child td{ border-bottom:0; }
.sv-vs-bar{ height:6px; border-radius:999px; background:var(--g); overflow:hidden; margin-top:6px; }
.sv-vs-bar > i{ display:block; height:100%; border-radius:999px; background:var(--accent); }

.sv-cmp-form2{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:16px 0 8px; }
.sv-cmp-form2 input{ padding:12px 16px; border:1.5px solid var(--line); border-radius:12px; font:inherit; font-size:15px; width:150px; background:var(--card); color:var(--ink); }
.sv-cmp-form2 input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(15,90,240,.12); }
.sv-cmp-form2 button{ padding:12px 26px; background:var(--accent); color:#fff; border:0; border-radius:12px; font:inherit; font-weight:700; cursor:pointer; }
.sv-cmp-form2 span{ color:var(--faint); font-weight:700; }

@media (max-width:620px){
  .sv-vs-head{ grid-template-columns:1fr; }
  .sv-vs-mid{ padding:4px 0; }
  .sv-spark{ display:none; }
}

.sv-sec-disclaimer{ font-size:12px; color:var(--faint); margin-top:24px; line-height:1.6; }
.sv-sec-disclaimer a{ color:var(--muted); }

/* ==================== SCREENER ==================== */
.sv-scr-form{ display:flex; flex-wrap:wrap; gap:12px 14px; align-items:flex-end;
  background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin:4px 0 14px; }
.sv-scr-form label{ display:flex; flex-direction:column; gap:5px; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em; color:var(--faint); }
.sv-scr-form select{ font:inherit; font-size:14px; padding:9px 12px; border:1.5px solid var(--line);
  border-radius:10px; background:var(--card); color:var(--ink); min-width:150px; }
.sv-scr-form select:focus{ outline:none; border-color:var(--accent); }
.sv-scr-form button{ padding:10px 22px; background:var(--accent); color:#fff; border:0; border-radius:10px;
  font:inherit; font-weight:700; cursor:pointer; }
.sv-scr-reset{ font-size:13px; color:var(--muted); text-decoration:none; padding:10px 4px; }
.sv-scr-reset:hover{ color:var(--accent); }
.sv-sec--screener .sv-block__head h2{ font-size:14px; color:var(--muted); }
