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

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

/* ---------- Cards ---------- */
.mb-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.mb-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; }
.mb-head-meta { font-size: 12px; font-weight: 500; color: #98a2b3; text-transform: none; letter-spacing: 0; }
.mb-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.mb-grid > .mb-card { margin-bottom: 0; }

/* ---------- Advance / decline card ---------- */
.mb-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.mb-grid > .mb-card { margin-bottom: 0; }
.mb-main { background: linear-gradient(145deg, #ffffff 0%, #f9f5ff 100%); display: flex; flex-direction: column; }
.mb-main-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.mb-ad { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
.mb-ad-side, .mb-ad-ratio { display: flex; flex-direction: column; gap: 2px; }
.mb-ad-side.down { text-align: right; }
.mb-ad-ratio { text-align: center; }
.mb-ad span, .mb-stats span { font-size: 11.5px; color: #98a2b3; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.mb-ad-side strong { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mb-ad-side.up strong { color: #067647; }
.mb-ad-side.down strong { color: #d92d20; }
.mb-ad-ratio strong { font-size: 30px; font-weight: 800; color: #1d253c; letter-spacing: -.02em; }
.mb-ad em { font-style: normal; font-size: 12.5px; color: #667085; }
.mb-ad-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #e4e7ec; }
.mb-ad-bar .up { background: #039855; display: block; }
.mb-ad-bar .down { background: #d92d20; display: block; }
.mb-zone-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid transparent; align-self: flex-start; }
.mb-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; background: currentColor; }
.mb-zone-chip.strong { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.mb-zone-chip.healthy { background: #f7fee7; color: #4d7c0f; border-color: #d9f99d; }
.mb-zone-chip.narrow { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.mb-zone-chip.weak { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.mb-zone-chip.unknown { background: #f9fafb; color: #667085; border-color: #e4e7ec; }
.mb-copy { margin: 0; color: #667085; font-size: 14.5px; line-height: 1.55; max-width: 620px; }
.mb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #eaecf0; padding-top: 16px; }
.mb-stats > div { display: flex; flex-direction: column; gap: 2px; }
.mb-stats strong { font-size: 20px; color: #1d253c; font-weight: 700; font-variant-numeric: tabular-nums; }

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

/* ---------- Charts ---------- */
.mb-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.mb-split .mb-card { margin-bottom: 0; }
.mb-chart-wrap { padding: 18px 18px 8px; }
.mb-chart-wrap canvas { width: 100% !important; height: 280px !important; }
.mb-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px 18px 14px; font-size: 12px; color: #667085; align-items: center; }
.mb-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Tables ---------- */
.mb-breadth { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.mb-breadth-bar { display: inline-block; width: 64px; height: 6px; border-radius: 999px; background: #fee4e2; overflow: hidden; }
.mb-breadth-bar span { display: block; height: 100%; background: #039855; }
.mb-table-note { padding: 10px 18px 14px; margin: 0; }
.mb-table-note a { color: #6941c6; font-weight: 600; }

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

/* ---------- Tables ---------- */
.mb-table-wrap { overflow-x: auto; }
.mb-prose .mb-table-wrap { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; }
.mb-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.mb-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; }
.mb-table td { padding: 11px 14px; border-bottom: 1px solid #f2f4f7; color: #1d253c; white-space: nowrap; }
.mb-table tr:last-child td { border-bottom: none; }
.mb-table td small { color: #98a2b3; font-size: 11px; font-weight: 600; }
.mb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mb-table .up { color: #067647; }
.mb-table .down { color: #d92d20; }
.mb-table tr.is-current td { background: #f4f3ff; }
.mb-table-more { padding: 10px 14px; border-top: 1px solid #f2f4f7; }
.mb-link-btn { border: none; background: none; color: #6941c6; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 6px 0; font-family: inherit; }

/* ---------- FAQ ---------- */
.mb-faq details { border-bottom: 1px solid #f2f4f7; padding: 0 18px; }
.mb-faq details:last-child { border-bottom: none; }
.mb-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; }
.mb-faq summary::-webkit-details-marker { display: none; }
.mb-faq summary::after { content: "+"; color: #6941c6; font-size: 20px; font-weight: 500; }
.mb-faq details[open] summary::after { content: "−"; }
.mb-faq details p { margin: 0 0 16px; color: #475467; font-size: 14.5px; line-height: 1.6; }

/* ---------- Related + CTA ---------- */
.mb-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 16px; }
.mb-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; }
.mb-related a:hover { border-color: #6941c6; text-decoration: none; }
.mb-related span { font-size: 11.5px; font-weight: 600; color: #98a2b3; text-transform: uppercase; letter-spacing: .03em; }
.mb-related b { font-size: 14px; color: #1d253c; font-weight: 600; }
.mb-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; }
.mb-cta h2 { color: #fff; font-size: 1.5rem; letter-spacing: -.03em; margin: 0 0 8px; }
.mb-cta p { color: #c9c9d6; margin: 0; font-size: 14.5px; max-width: 560px; }
.mb-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mb-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; }
.mb-btn.primary { background: #6941c6; color: #fff; }
.mb-btn.primary:hover { background: #53389e; color: #fff; text-decoration: none; }
.mb-btn.ghost { background: transparent; color: #fff; border-color: #5a5a74; }
.mb-btn.ghost:hover { border-color: #fff; color: #fff; text-decoration: none; }
.mb-empty { padding: 48px 24px; text-align: center; color: #98a2b3; font-size: 14px; }

@media (max-width: 1024px) {
  .mb-grid { grid-template-columns: 1fr; }
  .mb-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mb-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mb-grid, .mb-split, .mb-tiles { grid-template-columns: 1fr; }
  .mb-ad { grid-template-columns: 1fr 1fr; }
  .mb-ad-ratio { grid-column: 1 / -1; text-align: left; }
  .mb-ad-side strong { font-size: 36px; }
  .mb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-landing { padding-top: 26px; }
  .mb-page { padding: 0 16px 36px; }
  .mb-hero { align-items: flex-start; flex-direction: column; }
  .mb-hero-read { width: 100%; }
    .mb-sibling { border-right: none; }
  .mb-chart-wrap canvas { height: 240px !important; }
  .mb-card-head { align-items: flex-start; }
}
