/* Mutual-fund detail — parity with the stock research workspace. */
body.mf-research-detail {
  --mfd-canvas: #f0f2ed;
  --mfd-paper: #fff;
  --mfd-soft: #eef2ec;
  --mfd-ink: #10120f;
  --mfd-muted: #62685f;
  --mfd-rule: rgba(16,18,15,.12);
  --mfd-rule-strong: rgba(16,18,15,.24);
  --mfd-teal: #0b695e;
  --mfd-teal-deep: #064c44;
  --mfd-teal-soft: #e6f2ee;
  --mfd-red: #e11d2e;
  --mfd-shadow: 0 18px 48px rgba(28,39,33,.07);
  background: var(--mfd-canvas) !important;
  color: var(--mfd-ink);
  font-family: "DM Sans", Inter, sans-serif;
}

[data-theme="dark"] body.mf-research-detail {
  --mfd-canvas: #101411;
  --mfd-paper: #171c18;
  --mfd-soft: #202620;
  --mfd-ink: #f2f0e9;
  --mfd-muted: #a7ada5;
  --mfd-rule: rgba(242,240,233,.12);
  --mfd-rule-strong: rgba(242,240,233,.24);
  --mfd-teal: #59c6b4;
  --mfd-teal-deep: #83ddce;
  --mfd-teal-soft: #173a34;
  --mfd-shadow: 0 20px 54px rgba(0,0,0,.22);
}

body.mf-research-detail :where(.mf-detail,.mf-detail.cm-market-shell,#mf-page-loading.cm-market-shell,.page-layout) {
  background: var(--mfd-canvas) !important;
}

body.mf-research-detail .mf-detail.cm-market-shell,
body.mf-research-detail #mf-page-loading.cm-market-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 80px;
  transform: none;
}

body.mf-research-detail .breadcrumb {
  border-color: var(--mfd-rule);
  background: var(--mfd-canvas);
}

body.mf-research-detail .breadcrumb a:hover { color: var(--mfd-teal); }
body.mf-research-detail .bc-back {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 9px !important;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}
body.mf-research-detail .bc-back:hover { border-color: var(--button-secondary-hover-border); color: var(--mfd-teal); }

/* Identity, quote and primary actions. */
body.mf-research-detail .mf-tv-header {
  padding: 18px 0 0 !important;
  border: 0;
  background: var(--mfd-canvas) !important;
}

body.mf-research-detail .mf-tv-header::after { display: none; }

body.mf-research-detail .mf-tv-inner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
}

body.mf-research-detail .mf-tv-hero {
  --mf-logo-size: clamp(74px,6vw,92px);
  --mf-hero-gap: clamp(16px,2vw,26px);
  position: relative;
  display: grid;
  grid-template-columns: var(--mf-logo-size) minmax(0,1fr);
  gap: var(--mf-hero-gap);
  align-items: start;
  overflow: hidden;
  padding: clamp(24px,3vw,38px);
  border: 1px solid #303a33;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 86% 12%,rgba(89,198,180,.14),transparent 27%),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    #111612;
  background-size: auto,72px 72px,72px 72px,auto;
  box-shadow: 0 22px 60px rgba(16,22,18,.18);
}

body.mf-research-detail .mf-tv-hero::after {
  content: "CLEAR MARKET / FUND RESEARCH";
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: rgba(215,241,234,.16);
  font: 800 9px/1 Manrope,sans-serif;
  letter-spacing: .16em;
  pointer-events: none;
}

/* Preserve legible text while selecting copy inside the dark research hero. */
body.mf-research-detail .mf-tv-hero ::selection {
  background: #83ddce;
  color: #07130f;
  text-shadow: none;
}

body.mf-research-detail .mf-tv-hero ::-moz-selection {
  background: #83ddce;
  color: #07130f;
  text-shadow: none;
}

body.mf-research-detail .mf-tv-logo {
  width: var(--mf-logo-size);
  height: var(--mf-logo-size);
  margin: 0;
  padding: 8px;
  border: 1px solid #405047;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  background: #f5f7f2;
  box-shadow: 0 0 0 5px rgba(255,255,255,.05);
  color: #0b695e;
  font-size: clamp(22px,2.4vw,32px);
}

body.mf-research-detail .mf-tv-logo.has-image { padding: 8px; background: #f5f7f2; }
body.mf-research-detail .mf-tv-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50% !important; clip-path: none; opacity: 0; transition: opacity .18s ease; }
body.mf-research-detail .mf-tv-logo.has-image img { opacity: 1; }
body.mf-research-detail .mf-tv-hero:has(.mf-tv-logo.is-wide-logo) { grid-template-columns: clamp(148px,16vw,184px) minmax(0,1fr); }
body.mf-research-detail .mf-tv-logo.is-wide-logo {
  width: clamp(148px,16vw,184px);
  height: var(--mf-logo-size);
  padding: 10px 12px;
  border-radius: 14px !important;
  clip-path: none;
}
body.mf-research-detail .mf-tv-logo.is-wide-logo img { border-radius: 0 !important; }

body.mf-research-detail .mf-tv-copy { min-width: 0; }
body.mf-research-detail .mf-research-kicker {
  display: block;
  margin: 2px 0 8px;
  color: #67c7b7;
  font: 800 9px/1.2 Manrope,sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.mf-research-detail .mf-tv-copy h1 {
  max-width: 1050px;
  margin: 0 0 10px;
  color: #f8f8f4;
  font-family: "DM Serif Display",Georgia,serif;
  font-size: clamp(31px,3.4vw,50px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

body.mf-research-detail .mf-tv-symbol-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
body.mf-research-detail .mf-tv-symbol-pill {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #405047;
  border-radius: 9px !important;
  background: rgba(255,255,255,.035);
  box-shadow: none;
  color: #f2f4ef;
  font-size: 12px;
}
body.mf-research-detail .mf-tv-dot { background: #7e978b; }
body.mf-research-detail .mf-detail-badges { gap: 6px; }
body.mf-research-detail .mf-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px !important;
  background: rgba(255,255,255,.035);
  color: #b4beb6;
  font-size: 11px;
  font-weight: 650;
}
body.mf-research-detail .mf-badge[class*="risk-"] { border-color: rgba(241,121,127,.32); background: rgba(241,121,127,.08); color: #f5a0a4; }

body.mf-research-detail .mf-nav-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
body.mf-research-detail .mf-nav-big {
  color: #f8f8f4;
  font-family: Manrope,sans-serif;
  font-size: clamp(38px,4.4vw,62px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}
body.mf-research-detail .mf-tv-currency { margin: 0; color: #9ba79f; font-size: 13px; }
body.mf-research-detail .mf-nav-change { font-size: 14px; }
body.mf-research-detail .mf-nav-change.pos { color: #5ed795; }
body.mf-research-detail .mf-nav-change.neg { color: #f1797f; }
body.mf-research-detail .mf-nav-date { margin-top: 8px; color: #9ba79f; font-size: 12px; }

body.mf-research-detail .mf-tv-actions { gap: 8px; margin-top: 20px; }
body.mf-research-detail .mf-tv-actions .action-btn {
  width: auto;
  min-height: 40px;
  padding: 0 15px;
  gap: 8px;
  border: 1px solid #46524a !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.04) !important;
  color: #f5f7f2 !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 700;
  transition: transform .18s ease,background-color .18s ease,border-color .18s ease;
}
body.mf-research-detail .mf-tv-actions .btn-follow:not(:disabled) { border-color: #59c6b4 !important; background: #0b695e !important; color: #fff !important; }
body.mf-research-detail .mf-tv-actions .btn-portfolio:not(:disabled) { border-color: #75d7c7 !important; background: #f2f7f4 !important; color: #064c44 !important; }
body.mf-research-detail .mf-tv-actions .action-btn:disabled { opacity: .42; cursor: not-allowed; }
body.mf-research-detail .mf-tv-actions .action-btn:not(:disabled):hover { border-color: #75d7c7 !important; background: #126f64 !important; color: #fff !important; transform: translateY(-1px); }

/* Product-level tabs match the stock page pills. */
body.mf-research-detail .mf-tv-tabs {
  position: sticky;
  top: var(--cm-secondary-top,60px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  padding: 10px 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
  scrollbar-width: none;
}
body.mf-research-detail .mf-tv-tabs::-webkit-scrollbar { display: none; }
body.mf-research-detail .mf-tv-tabs button {
  flex: 0 0 auto;
  min-height: 38px !important;
  padding: 0 14px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 9px !important;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  font-size: 12px;
  font-weight: 700;
}
body.mf-research-detail .mf-tv-tabs button::after { content: none; }
body.mf-research-detail .mf-tv-tabs button:hover { border-color: var(--button-secondary-hover-border); background: var(--button-secondary-hover-bg); }
body.mf-research-detail .mf-tv-tabs button.active { border-color: var(--button-primary-border); background: var(--button-primary-bg); color: var(--button-primary-text); }

/* Main research surface. */
body.mf-research-detail .page-layout {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 26px clamp(20px,3vw,38px) 88px;
}
body.mf-research-detail .main-col { width: 100%; min-width: 0; }
body.mf-research-detail .side-col { display: none; }
body.mf-research-detail .mf-detail-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; }
body.mf-research-detail .mf-tab-panel { display: none; }
body.mf-research-detail .mf-tab-panel.is-active { display: grid; grid-template-columns: 1fr; gap: 22px; }

body.mf-research-detail :where(.mf-chart-card,.mf-returns-card,.mf-info-card,.mf-analytics-card,.mf-holdings-card) {
  min-width: 0;
  padding: clamp(20px,2.4vw,30px);
  border: 1px solid var(--mfd-rule);
  border-radius: 18px !important;
  background: var(--mfd-paper) !important;
  box-shadow: var(--mfd-shadow) !important;
}

body.mf-research-detail :where(.mf-chart-card,.mf-returns-card,.mf-info-card,.mf-analytics-card,.mf-holdings-card) > h2,
body.mf-research-detail .mf-section-heading h2 {
  margin: 0 0 16px;
  color: var(--mfd-ink);
  font-family: "DM Serif Display",Georgia,serif;
  font-size: clamp(25px,2.3vw,34px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}
body.mf-research-detail .mf-section-heading > span {
  display: block;
  margin-bottom: 8px;
  color: var(--mfd-red);
  font: 800 9px/1.2 Manrope,sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body.mf-research-detail .mf-section-heading > p { max-width: 720px; margin: -7px 0 20px; color: var(--mfd-muted); font-size: 13px; line-height: 1.55; }

body.mf-research-detail .mf-overview-metrics,
body.mf-research-detail .mf-tv-metrics {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 0;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--mfd-rule);
  border-radius: 12px !important;
  background: var(--mfd-soft);
}
body.mf-research-detail .mf-overview-metric,
body.mf-research-detail .mf-tv-metric {
  min-width: 0;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--mfd-rule);
  border-radius: 0 !important;
  background: transparent;
}
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):last-child { border-right: 0; }
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric) span { display: block; margin-bottom: 5px; color: var(--mfd-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric) strong { display: block; overflow: hidden; color: var(--mfd-ink); font-family: Manrope,sans-serif; font-size: clamp(14px,1.35vw,19px); text-overflow: ellipsis; white-space: nowrap; }
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric) strong.pos { color: #169357; }
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric) strong.neg { color: #d83b49; }
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric) strong.na { color: var(--mfd-muted); }

body.mf-research-detail #cm-nav-chart-host { min-height: 360px; overflow: hidden; border: 1px solid var(--mfd-rule); border-radius: 12px !important; background: var(--mfd-paper); }
body.mf-research-detail #cm-nav-chart-host :where(button,select) { border-radius: 8px !important; }
body.mf-research-detail #cm-nav-chart-host .cm-chart-wrap { overflow: hidden; border-radius: inherit; }
body.mf-research-detail #cm-nav-chart-host .cm-chart-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mfd-rule);
  background: var(--mfd-soft);
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-returns {
  order: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--mfd-muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-returns strong {
  min-width: 0;
  overflow: hidden;
  color: var(--mfd-ink);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-returns .cm-pct {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mfd-teal-soft);
  color: var(--mfd-teal);
  font-size: 11px;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges {
  order: 2;
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--mfd-rule);
  border-radius: 999px !important;
  background: var(--mfd-paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--mfd-paper) 75%,transparent);
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: var(--mfd-muted);
  font-size: 11px;
  font-weight: 750;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges button:hover:not(.active):not(:disabled) {
  background: var(--mfd-teal-soft);
  color: var(--mfd-teal-deep);
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges button.active {
  border-color: var(--mfd-teal) !important;
  background: var(--mfd-teal) !important;
  color: #fff !important;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges button:disabled { opacity: .38; }

body.mf-research-detail .mf-returns-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(128px,1fr)); gap: 10px; }
body.mf-research-detail .mf-return-item,
body.mf-research-detail .mfs-score-card,
body.mf-research-detail .mfa-stat,
body.mf-research-detail .mfh-detail-card {
  border: 1px solid var(--mfd-rule);
  border-radius: 12px !important;
  background: var(--mfd-soft) !important;
  box-shadow: none !important;
}
body.mf-research-detail .mf-return-item { min-height: 92px; padding: 16px 10px; text-align: left; }
body.mf-research-detail .mf-return-item .label { color: var(--mfd-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
body.mf-research-detail .mf-return-item .value { margin-top: 8px; font-family: Manrope,sans-serif; font-size: 20px; }
body.mf-research-detail .mf-return-item .value.pos { color: #169357; }
body.mf-research-detail .mf-return-item .value.neg { color: #d83b49; }
body.mf-research-detail .mf-return-item .vs-cat { border-radius: 99px !important; }

body.mf-research-detail .mf-info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 0; overflow: hidden; border: 1px solid var(--mfd-rule); border-radius: 12px !important; }
body.mf-research-detail .mf-info-item { min-width: 0; padding: 14px; border-right: 1px solid var(--mfd-rule); border-bottom: 1px solid var(--mfd-rule); background: var(--mfd-paper); }
body.mf-research-detail .mf-info-item .label { margin-bottom: 5px; color: var(--mfd-muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
body.mf-research-detail .mf-info-item .val { color: var(--mfd-ink); font-size: 13px; font-weight: 700; word-break: break-word; }

body.mf-research-detail .mfs-score-grid { gap: 10px; }
body.mf-research-detail .mfs-score-card { min-height: 126px; padding: 16px; }
body.mf-research-detail .mfs-score-card span,
body.mf-research-detail .mfa-subhead { color: var(--mfd-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
body.mf-research-detail .mfs-score-card strong { color: var(--mfd-ink); font-family: "DM Serif Display",Georgia,serif; font-size: 23px; font-weight: 400; }
body.mf-research-detail .mfs-score-card small { color: var(--mfd-muted); }
body.mf-research-detail .mfa-stats { gap: 10px; }
body.mf-research-detail .mfa-stat { padding: 15px; }
body.mf-research-detail .mfa-stat .val { color: var(--mfd-ink); font-family: Manrope,sans-serif; }
body.mf-research-detail .mfa-stat .hint { color: var(--mfd-muted); }
body.mf-research-detail .mf-section-empty { border-color: var(--mfd-rule); border-radius: 12px !important; background: var(--mfd-soft); color: var(--mfd-muted); }

body.mf-research-detail :where(.mfs-peer-table,.mfh-table) { color: var(--mfd-ink); }
body.mf-research-detail :where(.mfs-peer-table,.mfh-table) :where(th,td) { border-color: var(--mfd-rule); }
body.mf-research-detail :where(.mfs-peer-table,.mfh-table) th { color: var(--mfd-muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
body.mf-research-detail :where(.mfs-peer-table,.mfh-table) a { color: var(--mfd-teal); }
body.mf-research-detail .mfh-alloc-bar,
body.mf-research-detail .mfh-alloc-seg,
body.mf-research-detail .mfh-pct-bar,
body.mf-research-detail .mfh-pct-bar span,
body.mf-research-detail .mfh-sector-bar,
body.mf-research-detail .mfh-sector-bar span { border-radius: 99px !important; }

body.mf-research-detail .mfs-detail-block { border-color: var(--mfd-rule); }
body.mf-research-detail .mfs-detail-block h3 { color: var(--mfd-ink); font-family: "DM Serif Display",Georgia,serif; font-size: 19px; font-weight: 400; }
body.mf-research-detail .mfs-detail-block p,
body.mf-research-detail .mfs-category-copy { color: var(--mfd-muted); }
body.mf-research-detail .mfs-manager-list > div,
body.mf-research-detail .mfs-doc-links a { border-color: var(--mfd-rule); border-radius: 10px !important; background: var(--mfd-soft); }
body.mf-research-detail .mfs-doc-links a { color: var(--mfd-teal); }

body.mf-research-detail .mfs-faq-list details { border-color: var(--mfd-rule); }
body.mf-research-detail .mfs-faq-list summary { color: var(--mfd-ink); }
body.mf-research-detail .mfs-faq-list p { color: var(--mfd-muted); }

body.mf-research-detail .mf-link-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--mfd-rule); border-radius: 12px !important; }
body.mf-research-detail .mf-link-grid a { position: relative; display: grid; min-height: 105px; align-content: center; gap: 6px; padding: 16px; border-right: 1px solid var(--mfd-rule); color: var(--mfd-ink); text-decoration: none; transition: background .16s ease,color .16s ease; }
body.mf-research-detail .mf-link-grid a:last-child { border-right: 0; }
body.mf-research-detail .mf-link-grid a span { color: var(--mfd-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.mf-research-detail .mf-link-grid a strong { font-family: "DM Serif Display",Georgia,serif; font-size: 19px; font-weight: 400; }
body.mf-research-detail .mf-link-grid a i { position: absolute; top: 14px; right: 14px; color: var(--mfd-teal); font-style: normal; }
body.mf-research-detail .mf-link-grid a:hover { background: var(--mfd-teal); color: #fff; }
body.mf-research-detail .mf-link-grid a:hover :where(span,i) { color: #d9f3ed; }

body.mf-research-detail :where(.portfolio-popover,.alert-popover) { border-radius: 18px !important; background: var(--mfd-paper); }
body.mf-research-detail :where(.pp-field input,.pp-field select) { border-radius: 9px !important; }

html[data-mf-detail-embedded="1"] body.mf-research-detail {
  --mfd-embedded-space: 20px;
}
html[data-mf-detail-embedded="1"] body.mf-research-detail .mf-tv-inner {
  padding-inline: var(--mfd-embedded-space) !important;
}
html[data-mf-detail-embedded="1"] body.mf-research-detail .mf-tv-header { padding-top: 14px !important; }
html[data-mf-detail-embedded="1"] body.mf-research-detail .page-layout {
  gap: var(--mfd-embedded-space);
  margin-top: 0;
  padding: var(--mfd-embedded-space) var(--mfd-embedded-space) 56px !important;
}
html[data-mf-detail-embedded="1"] body.mf-research-detail .mf-detail-grid,
html[data-mf-detail-embedded="1"] body.mf-research-detail .mf-tab-panel.is-active {
  gap: var(--mfd-embedded-space);
}
html[data-mf-detail-embedded="1"] body.mf-research-detail :where(.mf-chart-card,.mf-returns-card,.mf-info-card,.mf-analytics-card,.mf-holdings-card) {
  padding: var(--mfd-embedded-space) !important;
}
html[data-mf-detail-embedded="1"] body.mf-research-detail :where(.mf-overview-metrics,.mf-tv-metrics) {
  margin-bottom: var(--mfd-embedded-space);
}

@media (max-width: 1540px) {
  body.mf-research-detail .mf-tv-inner { padding-inline: 18px; }
  body.mf-research-detail .page-layout { padding-inline: 18px; }
}

@media (max-width: 900px) {
  body.mf-research-detail .mf-overview-metrics,
  body.mf-research-detail .mf-tv-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):nth-child(3) { border-right: 0; }
  body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):nth-child(n+4) { border-top: 1px solid var(--mfd-rule); }
  body.mf-research-detail .mf-link-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.mf-research-detail .mf-link-grid a:nth-child(2) { border-right: 0; }
  body.mf-research-detail .mf-link-grid a:nth-child(n+3) { border-top: 1px solid var(--mfd-rule); }
}

@media (max-width: 640px) {
  body.mf-research-detail .mf-tv-inner { padding-inline: 12px; }
  body.mf-research-detail .mf-tv-hero { --mf-logo-size: 58px; --mf-hero-gap: 12px; padding: 18px; border-radius: 16px !important; }
  body.mf-research-detail .mf-tv-hero::after { display: none; }
  body.mf-research-detail .mf-tv-logo { padding: 6px; }
  body.mf-research-detail .mf-tv-hero:has(.mf-tv-logo.is-wide-logo) { grid-template-columns: 104px minmax(0,1fr); }
  body.mf-research-detail .mf-tv-logo.is-wide-logo { width: 104px; height: 58px; padding: 7px 8px; }
  body.mf-research-detail .mf-tv-copy h1 { font-size: 25px; }
  body.mf-research-detail .mf-tv-symbol-row { grid-column: 1/-1; }
  body.mf-research-detail .mf-tv-symbol-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.mf-research-detail .mf-nav-big { font-size: 34px; }
  body.mf-research-detail .mf-tv-actions .action-btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
  body.mf-research-detail .mf-tv-tabs { margin-top: 8px; padding: 8px 0; }
  body.mf-research-detail .page-layout { padding: 18px 12px 72px; }
  body.mf-research-detail :where(.mf-chart-card,.mf-returns-card,.mf-info-card,.mf-analytics-card,.mf-holdings-card) { padding: 17px; border-radius: 14px !important; }
  body.mf-research-detail .mf-overview-metrics,
  body.mf-research-detail .mf-tv-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):nth-child(odd) { border-right: 1px solid var(--mfd-rule); }
  body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):nth-child(even) { border-right: 0; }
  body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):nth-child(n+3) { border-top: 1px solid var(--mfd-rule); }
  body.mf-research-detail #cm-nav-chart-host { min-height: 300px; }
  body.mf-research-detail #cm-nav-chart-host .cm-chart-toolbar {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    padding: 12px;
  }
  body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges::-webkit-scrollbar { display: none; }
  body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges button { flex: 1 0 38px; }
  body.mf-research-detail .mfs-score-grid { grid-template-columns: 1fr; }
  body.mf-research-detail .mf-info-grid { grid-template-columns: 1fr 1fr; }
  body.mf-research-detail .mf-link-grid { grid-template-columns: 1fr; }
  body.mf-research-detail .mf-link-grid a { border-right: 0; border-top: 1px solid var(--mfd-rule); }
  body.mf-research-detail .mf-link-grid a:first-child { border-top: 0; }
}

@media (max-width: 420px) {
  body.mf-research-detail .mf-tv-actions .action-btn { min-width: 0; padding-inline: 10px; font-size: 12px; }
  body.mf-research-detail .mf-info-grid { grid-template-columns: 1fr; }
}
