/* Fund research composition. Toolkit classes own the controls and surfaces. */
body.mf-research-detail {
  --mfd-canvas: var(--dt-color-surface);
  --mfd-paper: var(--dt-color-surface);
  --mfd-soft: var(--dt-color-surface-muted);
  --mfd-ink: var(--dt-color-text);
  --mfd-muted: var(--dt-color-text-muted);
  --mfd-rule: var(--dt-color-border);
  --mfd-teal: var(--dt-color-brand);
  --mfd-teal-soft: var(--dt-color-surface-muted);
  --mfd-shadow: none;
  background: var(--dt-color-surface) !important;
  color: var(--dt-color-text);
}
[data-theme="dark"] body.mf-research-detail {
  --mfd-canvas: var(--dt-color-surface);
  --mfd-paper: var(--dt-color-surface);
  --mfd-soft: var(--dt-color-surface-muted);
  --mfd-ink: var(--dt-color-text);
  --mfd-muted: var(--dt-color-text-muted);
  --mfd-rule: var(--dt-color-border);
  --mfd-teal: var(--dt-color-brand);
  --mfd-teal-soft: var(--dt-color-surface-muted);
}
body.mf-research-detail :is(.mf-detail,.mf-detail.cm-market-shell,.page-layout) { background: var(--dt-color-surface) !important; }
body.mf-research-detail .mf-detail.cm-market-shell {
  box-sizing: border-box;
  width: calc(100% - (var(--cm-page-gutter) * 2));
  max-width: var(--cm-content-max);
  margin-inline: auto;
  padding: 0 0 88px !important;
}
body.mf-research-detail .mf-tv-header { padding: 0 !important; background: transparent !important; }
body.mf-research-detail .mf-tv-inner,
body.mf-research-detail .page-layout {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0 !important;
}
body.mf-research-detail .page-layout { padding-block: 28px 72px !important; }
html:not([data-mf-detail-embedded="1"]) body.mf-research-detail .mf-tv-header { padding: 0 !important; }
html:not([data-mf-detail-embedded="1"]) body.mf-research-detail .mf-tv-inner { padding-inline: 0 !important; }

/* Page Hero places fund identity, quote and actions in one compact introduction. */
body.mf-research-detail .mf-tv-hero.dt-page-hero {
  --mf-logo-size: 60px;
  display: grid;
  grid-template-columns: var(--mf-logo-size) minmax(0,1fr) minmax(230px,auto);
  grid-template-areas: "logo copy quote" "actions actions actions";
  align-items: start;
  column-gap: 16px;
  row-gap: 0;
  min-height: 0;
  margin: 0;
  padding: 24px 0 18px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.mf-research-detail .mf-tv-hero::after { display: none; }
body.mf-research-detail .mf-tv-logo.dt-asset-logo {
  grid-area: logo;
  width: var(--mf-logo-size);
  height: var(--mf-logo-size);
  padding: 5px;
  border: 1px solid var(--dt-color-border);
  border-radius: var(--dt-radius-lg) !important;
  clip-path: none;
  background: var(--dt-color-surface-muted);
  box-shadow: none;
  color: var(--dt-color-brand);
}
body.mf-research-detail .mf-tv-logo img,
body.mf-research-detail .mf-tv-logo.is-wide-logo img { border-radius: 0 !important; }
body.mf-research-detail .mf-tv-hero:has(.mf-tv-logo.is-wide-logo) { grid-template-columns: 108px minmax(0,1fr) minmax(230px,auto); }
body.mf-research-detail .mf-tv-logo.is-wide-logo { width: 108px; height: 60px; border-radius: var(--dt-radius-lg) !important; }
body.mf-research-detail .mf-tv-copy { grid-area: copy; }
body.mf-research-detail .mf-research-kicker.dt-page-hero__kicker {
  margin: 0 0 8px;
  color: var(--dt-color-text-muted);
  font-family: var(--dt-font-interface);
  font-size: var(--dt-text-xs);
  font-weight: var(--dt-weight-semibold);
  letter-spacing: .1em;
}
body.mf-research-detail .mf-tv-copy h1 {
  max-width: 100%;
  margin: 0 0 12px;
  color: var(--dt-color-text) !important;
  font-family: var(--dt-font-interface);
  font-size: clamp(1.8rem,2.7vw,2.45rem);
  font-weight: var(--dt-weight-medium);
  line-height: 1.08;
  letter-spacing: -.05em;
}
body.mf-research-detail .mf-tv-symbol-row { margin: 0; gap: 6px; }
body.mf-research-detail .mf-tv-symbol-pill {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  color: var(--dt-color-text-muted);
  font-size: var(--dt-text-sm);
}
body.mf-research-detail .mf-tv-dot { background: var(--dt-color-border-strong); }
body.mf-research-detail .mf-detail-badges { gap: 5px; }
body.mf-research-detail .mf-badge.dt-status-badge,
body.mf-research-detail .mf-badge.dt-status-badge[class*="risk-"] {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px !important;
  font-size: var(--dt-text-xs);
  font-weight: var(--dt-weight-medium);
}
body.mf-research-detail .mf-badge.dt-status-badge {
  border-color: var(--dt-color-border) !important;
  background: var(--dt-color-surface-muted) !important;
  color: var(--dt-color-text-muted) !important;
}
body.mf-research-detail .mf-badge.dt-status-badge[class*="risk-"] { color: var(--dt-color-warning) !important; }
body.mf-research-detail .mf-quote {
  grid-area: quote;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  text-align: right;
}
body.mf-research-detail .mf-nav-row { align-items: baseline; justify-content: flex-end; }
body.mf-research-detail .mf-nav-big {
  color: var(--dt-color-text);
  font-family: var(--dt-font-interface);
  font-size: clamp(1.45rem,2vw,2rem);
  font-weight: var(--dt-weight-medium);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
body.mf-research-detail .mf-tv-currency,
body.mf-research-detail .mf-nav-date { color: var(--dt-color-text-muted); }
body.mf-research-detail .mf-nav-change.pos { color: var(--dt-color-success); }
body.mf-research-detail .mf-nav-change.neg { color: var(--dt-color-danger); }
body.mf-research-detail .mf-tv-actions.dt-page-hero__actions {
  grid-area: actions;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 16px 0 0;
}
body.mf-research-detail .mf-tv-actions .action-btn,
body.mf-research-detail .mf-tv-actions .btn-follow:not(:disabled),
body.mf-research-detail .mf-tv-actions .btn-portfolio:not(:disabled) {
  width: auto;
  min-height: var(--dt-control-height-sm);
  padding: 0 12px;
  border: 1px solid var(--dt-color-border) !important;
  border-radius: var(--dt-radius-md) !important;
  background: var(--dt-color-surface) !important;
  color: var(--dt-color-text) !important;
  box-shadow: none !important;
  font-size: var(--dt-text-sm);
  font-weight: var(--dt-weight-medium);
  transform: none !important;
}
body.mf-research-detail .mf-tv-actions .btn-follow:not(:disabled) {
  border-color: var(--dt-color-brand) !important;
  background: var(--dt-color-brand) !important;
  color: var(--dt-color-on-brand) !important;
}
body.mf-research-detail .mf-tv-actions .action-btn:not(:disabled):hover {
  border-color: var(--dt-color-border-strong) !important;
  background: var(--dt-color-surface-muted) !important;
  color: var(--dt-color-text) !important;
}
body.mf-research-detail .mf-tv-actions .btn-follow:not(:disabled):hover {
  border-color: var(--dt-color-brand-hover) !important;
  background: var(--dt-color-brand-hover) !important;
  color: var(--dt-color-on-brand) !important;
}

body.mf-research-detail .mf-tv-tabs.dt-underline-tabs {
  position: sticky;
  top: var(--cm-secondary-top,60px);
  z-index: 20;
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--dt-color-border);
  border-radius: 0;
  background: var(--dt-color-surface);
  scrollbar-width: none;
}
body.mf-research-detail .mf-tv-tabs.dt-underline-tabs::-webkit-scrollbar { display: none; }
body.mf-research-detail .mf-tv-tabs.dt-underline-tabs .dt-underline-tabs__tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  color: var(--dt-color-text-muted);
  font-size: var(--dt-text-sm);
  font-weight: var(--dt-weight-medium);
  white-space: nowrap;
}
body.mf-research-detail .mf-tv-tabs.dt-underline-tabs .dt-underline-tabs__tab.is-active {
  color: var(--dt-color-text);
  background: transparent;
}

/* Research sections use toolkit headings, open metrics and divider-led content. */
body.mf-research-detail .mf-tab-panel.is-active { gap: 36px; }
body.mf-research-detail :where(.mf-chart-card,.mf-returns-card,.mf-info-card,.mf-analytics-card,.mf-holdings-card).dt-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.mf-research-detail .dt-card__head,
body.mf-research-detail .dt-card__body { padding: 0; }
body.mf-research-detail .dt-card__head { margin-bottom: 18px; }
body.mf-research-detail .dt-section-heading h2,
body.mf-research-detail .dt-card__head h3 {
  margin: 0;
  color: var(--dt-color-text);
  font-family: var(--dt-font-interface);
  font-size: clamp(1.4rem,2vw,1.8rem);
  font-weight: var(--dt-weight-medium);
  letter-spacing: -.035em;
}
body.mf-research-detail .dt-section-heading > div:first-child > span { color: var(--dt-color-text-muted); }
body.mf-research-detail .dt-section-heading p,
body.mf-research-detail .dt-card__head p { margin: 5px 0 0; color: var(--dt-color-text-muted); }
body.mf-research-detail .mf-overview-metrics.dt-metric-strip--open,
body.mf-research-detail .mf-tv-metrics.dt-metric-strip--open {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin: 0 0 20px;
  overflow: visible;
  border: solid var(--dt-color-border);
  border-width: 1px 0;
  border-radius: 0 !important;
  background: transparent;
}
body.mf-research-detail .mf-overview-metrics[hidden] { display: none !important; }
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric).dt-metric-strip__item {
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--dt-color-border);
  background: transparent;
}
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):first-child { padding-left: 0; }
body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):last-child { border-right: 0; }
body.mf-research-detail .dt-metric-strip dt { color: var(--dt-color-text-muted); font-size: var(--dt-text-xs); }
body.mf-research-detail .dt-metric-strip dd {
  margin: 6px 0 0;
  color: var(--dt-metric-color,var(--dt-color-text));
  font-family: var(--dt-font-interface);
  font-size: clamp(1.15rem,1.65vw,1.5rem);
  font-weight: var(--dt-weight-medium);
}
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 {
  min-height: 0;
  padding: 14px 0;
  border: solid var(--dt-color-border);
  border-width: 0 0 1px 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.mf-research-detail .mf-returns-grid,
body.mf-research-detail .mfs-score-grid,
body.mf-research-detail .mfa-stats { gap: 0 24px; }
body.mf-research-detail .mf-returns-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
body.mf-research-detail .mfs-score-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.mf-research-detail .mf-return-item .label,
body.mf-research-detail .mfs-score-card span { color: var(--dt-color-text-muted); font-size: var(--dt-text-xs); }
body.mf-research-detail .mf-return-item .value,
body.mf-research-detail .mfs-score-card strong { color: var(--dt-color-text); font-family: var(--dt-font-interface); font-weight: var(--dt-weight-medium); }
body.mf-research-detail .mf-return-item .value.pos { color: var(--dt-color-success); }
body.mf-research-detail .mf-return-item .value.neg { color: var(--dt-color-danger); }
body.mf-research-detail .mf-info-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  border: solid var(--dt-color-border);
  border-width: 1px 0 0;
  border-radius: 0 !important;
}
body.mf-research-detail .mf-info-item { padding: 14px 16px; border-color: var(--dt-color-border); background: transparent; }
body.mf-research-detail .mf-info-item .label { color: var(--dt-color-text-muted); font-size: var(--dt-text-xs); }
body.mf-research-detail .mf-info-item .val { color: var(--dt-color-text); font-size: var(--dt-text-sm); font-weight: var(--dt-weight-medium); }
body.mf-research-detail #scheme-details-content .mf-info-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
body.mf-research-detail .mfs-detail-block { border-color: var(--dt-color-border); }
body.mf-research-detail .mfs-detail-block h3 {
  color: var(--dt-color-text);
  font-family: var(--dt-font-interface);
  font-size: var(--dt-text-lg);
  font-weight: var(--dt-weight-medium);
}
body.mf-research-detail .mfs-detail-block p { max-width: 80ch; color: var(--dt-color-text-muted); font-size: var(--dt-text-md); }
body.mf-research-detail .mfs-manager-list > div,
body.mf-research-detail .mfs-doc-links a { border-color: var(--dt-color-border); border-radius: var(--dt-radius-md) !important; background: var(--dt-color-surface); }
body.mf-research-detail .mfs-doc-links a { color: var(--dt-color-brand); }
body.mf-research-detail :is(.mfs-peer-table,.mfh-table).dt-data-table { min-width: 760px; width: 100%; }
body.mf-research-detail :is(.mfs-table-wrap,.mfh-table-wrap).dt-data-table__viewport { max-width: 100%; overflow-x: auto; }
body.mf-research-detail :is(.mfs-peer-table,.mfh-table).dt-data-table th {
  padding: .75rem 1rem;
  border: 0;
  color: var(--dt-color-text-muted);
  font-family: var(--dt-font-interface);
  font-size: var(--dt-text-sm);
  font-weight: var(--dt-weight-medium);
  letter-spacing: 0;
  text-transform: none;
}
body.mf-research-detail :is(.mfs-peer-table,.mfh-table).dt-data-table td {
  padding: .875rem 1rem;
  border-color: var(--dt-color-border);
  color: var(--dt-color-text);
  font-size: var(--dt-text-sm);
  font-weight: var(--dt-weight-regular);
}
body.mf-research-detail :is(.mfs-peer-table,.mfh-table).dt-data-table a { color: var(--dt-color-brand); }
body.mf-research-detail .mfh-table .sector { color: var(--dt-color-text-muted); font-size: var(--dt-text-sm); }
body.mf-research-detail .mfh-alloc-bar { height: 24px; border-color: var(--dt-color-border); border-radius: var(--dt-radius-sm) !important; }
body.mf-research-detail .mfh-alloc-seg { min-width: 0; border-radius: 0 !important; }
body.mf-research-detail .mfh-alloc-seg.equity { background: var(--dt-chart-1); }
body.mf-research-detail .mfh-alloc-seg.debt { background: var(--dt-chart-2); }
body.mf-research-detail .mfh-alloc-seg.cash { background: var(--dt-color-text-muted); }
body.mf-research-detail .mfh-alloc-seg.other { background: var(--dt-chart-4); }
body.mf-research-detail .mfh-meta a { color: var(--dt-color-brand); }
body.mf-research-detail .mfh-sector-bar { background: var(--dt-color-surface-muted); }
body.mf-research-detail .mfh-sector-bar > span { background: var(--dt-chart-1); }
body.mf-research-detail .mfh-show-all.dt-button { margin-top: 12px; background: var(--dt-color-surface); border-color: var(--dt-color-border); color: var(--dt-color-text); }
body.mf-research-detail .mfs-peer-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.mf-research-detail .mf-link-grid { grid-template-columns: repeat(4,minmax(0,1fr)); border: solid var(--dt-color-border); border-width: 1px 0; border-radius: 0 !important; }
body.mf-research-detail .mf-link-grid a { min-height: 90px; border-color: var(--dt-color-border); color: var(--dt-color-text); }
body.mf-research-detail .mf-link-grid a strong { font-family: var(--dt-font-interface); font-size: var(--dt-text-base); font-weight: var(--dt-weight-medium); }
body.mf-research-detail .mf-link-grid a:hover { background: var(--dt-color-surface-muted); color: var(--dt-color-text); }
body.mf-research-detail .mf-link-grid a:hover :is(span,i) { color: var(--dt-color-text-muted); }
body.mf-research-detail .mfs-faq-list .dt-disclosure { border-color: var(--dt-color-border); }
body.mf-research-detail .mfs-score-grid > .dt-empty-state,
body.mf-research-detail .mf-news-grid > .dt-empty-state { grid-column: 1 / -1; }
body.mf-research-detail .mf-news-section .dt-section-heading { margin-bottom: 1.25rem; }
body.mf-research-detail .mf-news-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mf-research-detail .mf-news-message { color: var(--dt-color-text-muted); font-size: var(--dt-text-sm); grid-column: 1 / -1; }
body.mf-research-detail .mf-news-grid .dt-news-card { height: 100%; }

html[data-mf-detail-embedded="1"] body.mf-research-detail .mf-detail.cm-market-shell { width: 100%; }
html[data-mf-detail-embedded="1"] body.mf-research-detail .mf-tv-inner { padding-inline: 20px !important; }
html[data-mf-detail-embedded="1"] body.mf-research-detail .page-layout { padding: 20px 20px 56px !important; }
@media (max-width: 1100px) {
  body.mf-research-detail .mf-tv-hero.dt-page-hero {
    grid-template-columns: var(--mf-logo-size) minmax(0,1fr);
    grid-template-areas: "logo copy" "quote quote" "actions actions";
  }
  body.mf-research-detail .mf-tv-hero:has(.mf-tv-logo.is-wide-logo) { grid-template-columns: 108px minmax(0,1fr); }
  body.mf-research-detail .mf-quote { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dt-color-border); text-align: left; }
  body.mf-research-detail .mf-nav-row { justify-content: flex-start; }
}
@media (max-width: 900px) {
  body.mf-research-detail .mf-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.mf-research-detail .mf-returns-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  body.mf-research-detail .mf-news-grid { grid-template-columns: 1fr; }
  body.mf-research-detail .mf-tv-hero.dt-page-hero { --mf-logo-size: 52px; grid-template-columns: 52px minmax(0,1fr) !important; column-gap: 12px; padding: 20px 0 !important; background-color: transparent !important; }
  body.mf-research-detail .mf-tv-hero:has(.mf-tv-logo.is-wide-logo) { grid-template-columns: 82px minmax(0,1fr) !important; }
  body.mf-research-detail .mf-tv-logo.dt-asset-logo { width: 52px !important; height: 52px !important; }
  body.mf-research-detail .mf-tv-logo.is-wide-logo { width: 82px !important; height: 52px !important; }
  body.mf-research-detail .mf-tv-copy h1 { font-size: clamp(1.55rem,7vw,2.25rem) !important; }
  body.mf-research-detail .mf-tv-actions.dt-page-hero__actions { flex-wrap: wrap; overflow: visible; }
  body.mf-research-detail .mf-tv-actions .action-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  body.mf-research-detail .mf-overview-metrics.dt-metric-strip--open,
  body.mf-research-detail .mf-tv-metrics.dt-metric-strip--open { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):nth-child(2) { border-right: 0; }
  body.mf-research-detail :is(.mf-overview-metric,.mf-tv-metric):nth-child(n+3) { border-top: 1px solid var(--dt-color-border); }
  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(--dt-color-border); }
}

/* The fund detail follows the stock page's continuous research flow. The
   outer market shell owns the horizontal gutter; sections add no second inset. */
body.mf-research-detail .mf-detail.cm-market-shell { padding-inline: 0 !important; }
body.mf-research-detail .mf-tv-header { padding-inline: 0 !important; }
body.mf-research-detail .mf-tv-tabs.dt-underline-tabs {
  position: sticky;
  top: var(--cm-secondary-top, 60px);
  z-index: 25;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--dt-color-border);
  gap: 1.5rem;
}
body.mf-research-detail .mf-tv-tabs.dt-underline-tabs .dt-underline-tabs__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .75rem .125rem;
  text-decoration: none;
}
body.mf-research-detail .mf-tv-tabs.dt-underline-tabs .dt-underline-tabs__tab.is-active::after {
  background: var(--dt-color-brand);
}
body.mf-research-detail .mf-tv-tabs.dt-underline-tabs .dt-underline-tabs__tab:focus-visible {
  outline: 2px solid var(--dt-color-focus, var(--dt-color-brand));
  outline-offset: -2px;
}
body.mf-research-detail .page-layout { padding: 0 0 72px !important; }
body.mf-research-detail .mf-detail-grid { gap: 0; }
body.mf-research-detail .mf-tab-panel,
body.mf-research-detail .mf-tab-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--dt-color-border);
  scroll-margin-top: calc(var(--cm-secondary-top, 60px) + 56px);
}
body.mf-research-detail .mf-tab-panel[hidden] { display: none !important; }
body.mf-research-detail .mf-tab-panel:first-child { border-top: 0; }
body.mf-research-detail .mf-tab-panel > section { padding-block: var(--mf-research-section-pad, 32px) !important; }
body.mf-research-detail .mf-tab-panel > section + section { border-top: 1px solid var(--dt-color-border); }
body.mf-research-detail .mf-tab-panel :is(.mf-chart-card,.mf-returns-card,.mf-info-card,.mf-analytics-card,.mf-holdings-card).dt-card {
  padding-inline: 0 !important;
}
body.mf-research-detail .mf-tab-panel .dt-card__head { margin-bottom: 18px; }
body.mf-research-detail #cm-nav-chart-host {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-wrap {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 0 16px !important;
  padding: 0;
  border: 0;
  background: transparent;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-metrics[hidden] { display: none; }
body.mf-research-detail #cm-nav-chart-host .cm-chart-ranges { order: 0; }
body.mf-research-detail #cm-nav-chart-host .cm-chart-returns {
  justify-content: flex-start;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--dt-color-border);
  text-align: left;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-returns strong {
  font-family: var(--dt-font-interface);
  font-size: var(--dt-text-base);
  font-weight: var(--dt-weight-semibold);
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-returns .cm-pct {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
body.mf-research-detail #cm-nav-chart-host .cm-chart-canvas { min-height: 300px; }
body.mf-research-detail #cm-nav-chart-host .cm-chart-legend { border-top: 1px solid var(--dt-color-border); }
html[data-cm-density="compact"] body.mf-research-detail { --mf-research-section-pad: 22px; }
html[data-cm-density="comfy"] body.mf-research-detail { --mf-research-section-pad: 44px; }
html[data-mf-detail-embedded="1"] body.mf-research-detail .mf-tv-tabs.dt-underline-tabs { top: 0; }
html[data-mf-detail-embedded="1"] body.mf-research-detail .page-layout { padding: 0 20px 56px !important; }
@media (max-width: 640px) {
  body.mf-research-detail { --mf-research-section-pad: 24px; }
  body.mf-research-detail #cm-nav-chart-host .cm-chart-toolbar { justify-content: flex-start; }
  body.mf-research-detail #cm-nav-chart-host .cm-chart-canvas { min-height: 260px; }
}

/* Keep the desktop research canvas inset through the shared shell gutter. */
@media (min-width: 769px) {
  html[data-cm-view-width="full"]:not([data-mf-detail-embedded="1"]) body.mf-research-detail > #mf-detail.cm-market-shell {
    --cm-page-gutter: var(--cm-layout-boxed-gutter);
    --cm-full-page-gutter: var(--cm-layout-boxed-gutter);
  }
}

body.mf-research-detail .mf-returns-grid.dt-mf-returns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  border: 1px solid var(--dt-color-border);
  border-radius: var(--dt-radius-lg);
  overflow: hidden;
}
body.mf-research-detail .mf-returns-grid .dt-mf-return {
  display: grid;
  gap: .4rem;
  min-height: 112px;
  padding: 1rem 1.15rem;
  border: 0 !important;
  border-right: 1px solid var(--dt-color-border) !important;
  border-bottom: 1px solid var(--dt-color-border) !important;
  background: var(--dt-color-surface) !important;
}
body.mf-research-detail .mf-returns-grid .dt-mf-return:nth-child(4n) { border-right: 0 !important; }
body.mf-research-detail .mf-returns-grid .dt-mf-return:nth-child(n+5) { border-bottom: 0 !important; }
body.mf-research-detail .mf-returns-grid .dt-mf-return .label {
  color: var(--dt-color-text-muted);
  font: var(--dt-weight-medium) var(--dt-text-sm) var(--dt-font-compact);
  letter-spacing: 0;
  text-transform: none;
}
body.mf-research-detail .mf-returns-grid .dt-mf-return .value {
  margin: 0;
  font: var(--dt-weight-medium) 1.35rem var(--dt-font-interface);
  font-variant-numeric: tabular-nums;
}
body.mf-research-detail .mf-returns-grid .dt-mf-return__comparison {
  align-self: end;
  justify-self: start;
  padding: .15rem .4rem;
  border-radius: 999px;
  background: var(--dt-color-surface-muted);
  color: var(--dt-color-text-muted);
  font-size: var(--dt-text-xs);
}
body.mf-research-detail .mf-returns-grid .cat-stats-meta {
  grid-column: 1 / -1;
  padding: .8rem 1rem;
  border-top: 1px solid var(--dt-color-border);
  color: var(--dt-color-text-muted);
  text-align: left;
}

body.mf-research-detail .mfh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--dt-color-border);
  color: var(--dt-color-text-muted);
}
body.mf-research-detail .mfh-allocation.dt-allocation { width: min(42rem, 100%); margin-bottom: 28px; }
body.mf-research-detail .mfh-allocation h3 { margin: 0 0 12px; font: var(--dt-weight-medium) var(--dt-text-lg) var(--dt-font-interface); }
body.mf-research-detail .mfh-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
body.mf-research-detail .mfh-detail-card { padding: 26px 0 !important; }
body.mf-research-detail .mfh-detail-card .mfa-subhead {
  margin-bottom: 16px;
  color: var(--dt-color-text);
  font: var(--dt-weight-medium) var(--dt-text-lg) var(--dt-font-interface);
  letter-spacing: 0;
  text-transform: none;
}
body.mf-research-detail .mfh-sector-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
body.mf-research-detail .mfh-sector-list li { padding-block: 10px; }
body.mf-research-detail .mfh-sector-bar { max-width: 100%; height: 4px; }
body.mf-research-detail .mf-peer-identity { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; }
body.mf-research-detail .mf-peer-identity .dt-asset-logo { flex: 0 0 32px; position: relative; overflow: hidden; }
body.mf-research-detail .mf-peer-identity .dt-asset-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--dt-color-surface); }
body.mf-research-detail .mf-peer-identity > span:last-child { display: grid; gap: 2px; min-width: 0; }
body.mf-research-detail .mf-peer-identity small { color: var(--dt-color-text-muted); }
body.mf-research-detail .mfh-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body.mf-research-detail .mfs-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
body.mf-research-detail .mfs-faq-list .dt-disclosure { width: 100%; }

@media (max-width: 900px) {
  body.mf-research-detail .mf-returns-grid.dt-mf-returns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.mf-research-detail .mf-returns-grid .dt-mf-return:nth-child(4n) { border-right: 1px solid var(--dt-color-border) !important; }
  body.mf-research-detail .mf-returns-grid .dt-mf-return:nth-child(2n) { border-right: 0 !important; }
  body.mf-research-detail .mf-returns-grid .dt-mf-return:nth-child(n+5) { border-bottom: 1px solid var(--dt-color-border) !important; }
  body.mf-research-detail .mf-returns-grid .dt-mf-return:nth-child(n+7) { border-bottom: 0 !important; }
  body.mf-research-detail .mfh-sector-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.mf-research-detail .mfs-faq-list { grid-template-columns: 1fr; }
  body.mf-research-detail .mf-tv-tabs.dt-underline-tabs { gap: 1rem; }
}
