/* Sector heatmap page: shares the market-tools visual language with Fear & Greed. */
.sh-landing { background: #f7f8fc; color: #1d253c; min-height: 100vh; padding: 42px 0 80px; }
.sh-page { font-family: 'Inter','Segoe UI',Arial,sans-serif; max-width: 1180px; margin: 0 auto; padding: 0 28px 48px; }

/* ---------- Hero ---------- */
.sh-hero { align-items: end; border-bottom: 3px solid #1d253c; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 24px; padding-bottom: 28px; }
.sh-eyebrow { color: #6941c6; font-size: .72rem; font-weight: 600; letter-spacing: .07em; margin: 0 0 .5rem; text-transform: uppercase; }
.sh-eyebrow.light { color: #d6bbfb; }
.sh-hero h1 { color: #1d253c; font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -.05em; line-height: .98; margin: 0; }
.sh-hero > div:first-child > p:last-child { color: #667085; font-size: 1.05rem; line-height: 1.55; margin: 1rem 0 0; max-width: 640px; }
.sh-hero-read { background: #f4f3ff; border: 1px solid #d6bbfb; border-radius: 8px; min-width: 210px; padding: .8rem 1rem; }
.sh-hero-read span, .sh-hero-read small { color: #6941c6; display: block; font-size: .67rem; text-transform: uppercase; }
.sh-hero-read strong { color: #1d253c; display: block; font-size: 1.2rem; margin: .15rem 0; }

/* ---------- Cards ---------- */
.sh-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.sh-card-head { padding: 13px 18px; border-bottom: 1px solid #e4e7ec; color: #6941c6; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sh-head-meta { font-size: 12px; font-weight: 500; color: #98a2b3; text-transform: none; letter-spacing: 0; }
.sh-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.sh-grid > .sh-card { margin-bottom: 0; }

/* ---------- Tiles ---------- */
.sh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sh-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.sh-tile span { font-size: 11.5px; color: #98a2b3; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.sh-tile strong { font-size: 22px; color: #1d253c; font-weight: 700; letter-spacing: -.01em; }
.sh-tile strong small { font-size: 13px; color: #98a2b3; font-weight: 600; }
.sh-tile em { font-style: normal; font-size: 12.5px; color: #667085; }
.sh-tile .up, .sh-table .up { color: #067647; }
.sh-tile .down, .sh-table .down { color: #d92d20; }

/* ---------- Treemap ---------- */
.sh-ranges { display: inline-flex; gap: 4px; background: #f2f4f7; border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.sh-range-btn { border: none; background: transparent; color: #667085; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.sh-range-btn:hover { color: #344054; }
.sh-range-btn.active { background: #6941c6; color: #fff; }
.sh-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-treemap-wrap { padding: 14px 14px 8px; }
.sh-treemap-wrap canvas { width: 100% !important; height: 520px !important; }
.sh-scale { display: flex; align-items: center; gap: 10px; padding: 6px 18px 16px; font-size: 12px; color: #667085; flex-wrap: wrap; }
.sh-scale-bar { display: inline-block; width: 160px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #d92d20 0%, #ececec 50%, #039855 100%); }
.sh-scale .sh-note { margin-left: auto; }

/* ---------- Tables ---------- */
.sh-table th[data-sort] { cursor: pointer; user-select: none; }
.sh-table th[data-sort]:hover { color: #6941c6; }
.sh-table th.sorted-desc::after { content: " ↓"; }
.sh-table th.sorted-asc::after { content: " ↑"; }
.sh-table td strong { display: block; font-weight: 600; }
.sh-table td small { display: block; color: #98a2b3; font-size: 11.5px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.sh-table td a { color: #6941c6; font-weight: 600; text-decoration: none; }
.sh-table td a:hover { text-decoration: underline; }
.sh-breadth { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.sh-breadth-bar { display: inline-block; width: 64px; height: 6px; border-radius: 999px; background: #fee4e2; overflow: hidden; }
.sh-breadth-bar span { display: block; height: 100%; background: #039855; }
.sh-table-note { padding: 10px 18px 14px; margin: 0; }
.sh-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.sh-split .sh-card { margin-bottom: 0; }

/* ---------- Prose ---------- */
.sh-prose { padding: 24px 0 8px; max-width: 820px; }
.sh-prose h2 { color: #1d253c; font-size: 1.7rem; letter-spacing: -.03em; margin: 0 0 14px; scroll-margin-top: 90px; }
.sh-prose h3 { color: #1d253c; font-size: 1.1rem; margin: 22px 0 8px; }
.sh-prose p, .sh-prose li { color: #475467; font-size: 15.5px; line-height: 1.65; }
.sh-prose p { margin: 0 0 12px; }
.sh-prose ul { margin: 0 0 12px; padding-left: 22px; }
.sh-prose .sh-note { margin-top: 8px; display: block; }

/* ---------- Tables ---------- */
.sh-table-wrap { overflow-x: auto; }
.sh-prose .sh-table-wrap { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; }
.sh-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.sh-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: #667085; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid #e4e7ec; white-space: nowrap; background: #fcfcfd; }
.sh-table td { padding: 11px 14px; border-bottom: 1px solid #f2f4f7; color: #1d253c; white-space: nowrap; }
.sh-table tr:last-child td { border-bottom: none; }
.sh-table td small { color: #98a2b3; font-size: 11px; font-weight: 600; }
.sh-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sh-table .up { color: #067647; }
.sh-table .down { color: #d92d20; }
.sh-table tr.is-current td { background: #f4f3ff; }
.sh-table-more { padding: 10px 14px; border-top: 1px solid #f2f4f7; }
.sh-link-btn { border: none; background: none; color: #6941c6; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 6px 0; font-family: inherit; }

/* ---------- FAQ ---------- */
.sh-faq details { border-bottom: 1px solid #f2f4f7; padding: 0 18px; }
.sh-faq details:last-child { border-bottom: none; }
.sh-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 15.5px; font-weight: 600; color: #1d253c; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: "+"; color: #6941c6; font-size: 20px; font-weight: 500; }
.sh-faq details[open] summary::after { content: "−"; }
.sh-faq details p { margin: 0 0 16px; color: #475467; font-size: 14.5px; line-height: 1.6; }

/* ---------- Related + CTA ---------- */
.sh-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 16px; }
.sh-related a { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s ease; }
.sh-related a:hover { border-color: #6941c6; text-decoration: none; }
.sh-related span { font-size: 11.5px; font-weight: 600; color: #98a2b3; text-transform: uppercase; letter-spacing: .03em; }
.sh-related b { font-size: 14px; color: #1d253c; font-weight: 600; }
.sh-cta { background: #1d253c; border-radius: 12px; color: #fff; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sh-cta h2 { color: #fff; font-size: 1.5rem; letter-spacing: -.03em; margin: 0 0 8px; }
.sh-cta p { color: #c9c9d6; margin: 0; font-size: 14.5px; max-width: 560px; }
.sh-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.sh-btn.primary { background: #6941c6; color: #fff; }
.sh-btn.primary:hover { background: #53389e; color: #fff; text-decoration: none; }
.sh-btn.ghost { background: transparent; color: #fff; border-color: #5a5a74; }
.sh-btn.ghost:hover { border-color: #fff; color: #fff; text-decoration: none; }
.sh-empty { padding: 48px 24px; text-align: center; color: #98a2b3; font-size: 14px; }

@media (max-width: 1024px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sh-tiles { grid-template-columns: 1fr 1fr; }
  .sh-split { grid-template-columns: 1fr; }
  .sh-treemap-wrap canvas { height: 360px !important; }
  .sh-scale .sh-note { margin-left: 0; flex-basis: 100%; }
  .sh-landing { padding-top: 26px; }
  .sh-page { padding: 0 16px 36px; }
  .sh-hero { align-items: flex-start; flex-direction: column; }
  .sh-hero-read { width: 100%; }
    .sh-sibling { border-right: none; }
  .sh-chart-wrap canvas { height: 240px !important; }
  .sh-card-head { align-items: flex-start; }
}
