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

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

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

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

/* ---------- Tables ---------- */
.mfb-table td strong { display: block; font-weight: 600; }
.mfb-table td small { display: block; color: #98a2b3; font-size: 11.5px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.mfb-table td a { color: #6941c6; font-weight: 600; text-decoration: none; }
.mfb-table td a:hover { text-decoration: underline; }
/* ---------- Heat cells ---------- */
.mfb-ranges { display: inline-flex; gap: 4px; background: #f2f4f7; border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.mfb-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; }
.mfb-range-btn:hover { color: #344054; }
.mfb-range-btn.active { background: #6941c6; color: #fff; }
.mfb-heat th small { display: block; font-size: 10px; color: #98a2b3; text-transform: none; letter-spacing: 0; font-weight: 500; }
.mfb-cell { font-weight: 600; transition: background .2s ease; }
.mfb-bench { border-top: 1px solid #e4e7ec; }
.mfb-table tfoot td { background: #fcfcfd; }
.mfb-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.mfb-chip.up { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.mfb-chip.down { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.mfb-scale { display: flex; align-items: center; gap: 10px; padding: 10px 18px 16px; font-size: 12px; color: #667085; flex-wrap: wrap; }
.mfb-scale-bar { display: inline-block; width: 160px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #d92d20 0%, #ececec 50%, #039855 100%); }
.mfb-scale .mfb-note { margin-left: auto; }


/* ---------- Tiles, controls, bars ---------- */
.mfb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mfb-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.mfb-tile span { font-size: 11.5px; color: #98a2b3; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.mfb-tile strong { font-size: 22px; color: #1d253c; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.mfb-tile strong small { font-size: 14px; color: #98a2b3; font-weight: 600; }
.mfb-tile em { font-style: normal; font-size: 12.5px; color: #667085; }
.mfb-tile .up, .mfb-table .up, .mfb-bars .up { color: #067647; }
.mfb-tile .down, .mfb-table .down, .mfb-bars .down { color: #d92d20; }
.mfb-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mfb-month-form { display: flex; align-items: center; gap: 8px; }
.mfb-month-form label { font-size: 12px; color: #667085; font-weight: 600; margin: 0; }
.mfb-month-form select { min-height: 38px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; color: #1d253c; background: #fff; }
.mfb-ranges { display: inline-flex; gap: 4px; background: #f2f4f7; border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.mfb-range-btn { border: 1px solid #e4e7ec; background: #fff; color: #475467; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.mfb-range-btn:hover { border-color: #6941c6; color: #6941c6; text-decoration: none; }
.mfb-pager { display: flex; gap: 6px; }
.mfb-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.mfb-split .mfb-card { margin-bottom: 0; }
.mfb-table td strong { display: block; font-weight: 600; }
.mfb-table td small { display: block; color: #98a2b3; font-size: 11px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.mfb-table td.num small { display: block; margin-top: 1px; }
.mfb-table td a { color: #1d253c; text-decoration: none; }
.mfb-table td a:hover { color: #6941c6; }
.mfb-table th small { display: block; font-size: 10px; color: #98a2b3; text-transform: none; letter-spacing: 0; font-weight: 500; }
.mfb-new { color: #6941c6; font-weight: 700; }
.mfb-bars { padding: 14px 18px 6px; display: flex; flex-direction: column; gap: 10px; }
.mfb-bar { display: grid; grid-template-columns: 150px 1fr 110px; align-items: center; gap: 10px; font-size: 13px; }
.mfb-bar span { color: #475467; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfb-bar b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mfb-track { height: 8px; border-radius: 999px; background: #f2f4f7; overflow: hidden; }
.mfb-track i { display: block; height: 100%; background: #039855; border-radius: 999px; }
.mfb-track i.neg { background: #d92d20; }
.mfb-table-note a { color: #6941c6; font-weight: 600; }

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

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

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

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

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