/* AMC directory composition follows the shared market shell and toolkit surfaces. */
html:not([data-theme="dark"]) body.cm-amc-directory { background: var(--dt-color-surface); }
body.cm-amc-directory .amc-shell { box-sizing: border-box; width: 100%; max-width: none; padding-inline: 0; padding-bottom: 100px; }
body.cm-amc-directory .amc-toolkit-hero { margin-bottom: 48px; }
body.cm-amc-directory .amc-toolkit-hero > .dt-page-hero { padding: 36px 0 24px; }
body.cm-amc-directory .amc-toolkit-hero .dt-page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.75rem); max-width: none; }
body.cm-amc-directory .amc-toolkit-hero .dt-page-hero p { font-size: var(--dt-text-base); max-width: 60ch; }
body.cm-amc-directory .amc-overview-strip .dt-metric-strip__item { padding-block: 13px; }
body.cm-amc-directory .amc-overview-strip dd { font-size: clamp(1.25rem, 2vw, 1.7rem); margin-top: 5px; }
body.cm-amc-directory .amc-overview-strip dt,
body.cm-amc-directory .amc-overview-strip .dt-metric-strip__item > span { font-size: var(--dt-text-xs); }
body.cm-amc-directory .amc-toolkit-hero .dt-filter-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; padding: 24px 0 0; border: 0; background: transparent; }
body.cm-amc-directory .amc-toolkit-hero .dt-filter-toolbar__primary { width: 100%; }
body.cm-amc-directory .amc-toolkit-hero .dt-search-field { max-width: none; width: 100%; }
body.cm-amc-directory .amc-toolkit-hero .dt-search-field__control { min-height: 58px; }
body.cm-amc-directory .amc-toolkit-hero .dt-search-field input { min-height: 56px; }
body.cm-amc-directory .cm-toolkit-directory-presets { display: flex; flex-wrap: wrap; gap: 6px; }
body.cm-amc-directory .amc-workbench { display: block; min-width: 0; }
body.cm-amc-directory .amc-shell .amc-workbench { padding: 0; border: 0; }
body.cm-amc-directory .amc-workbench > .mf-results-panel { min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
body.cm-amc-directory .amc-results-header,
body.cm-amc-directory .amc-funds > .dt-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--dt-color-border); padding: 0 0 20px; margin: 0 0 20px; background: transparent; }
body.cm-amc-directory .dt-section-heading__eyebrow { display: block; color: var(--dt-color-text-muted); font-size: var(--dt-text-xs); font-weight: var(--dt-weight-semibold); letter-spacing: .1em; text-transform: uppercase; }
body.cm-amc-directory .amc-workbench h2 { color: var(--dt-color-text); font-family: var(--dt-font-interface); font-size: 1.625rem; font-weight: var(--dt-weight-medium); letter-spacing: -.035em; margin: 5px 0 0; }
body.cm-amc-directory .mf-count { color: var(--dt-color-text-muted); font-size: var(--dt-text-sm); margin: 4px 0 0; }
body.cm-amc-directory .amc-sort-control { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
body.cm-amc-directory .amc-sort-control .dt-select-field { display: grid; gap: 4px; min-width: 160px; }
body.cm-amc-directory .amc-sort-control .dt-select-field__label { color: var(--dt-color-text-muted); font-size: var(--dt-text-xs); }
body.cm-amc-directory .amc-sort-control select { min-width: 160px; }
body.cm-amc-directory .amc-table-shell[hidden],
body.cm-amc-directory .amc-grid[hidden],
body.cm-amc-directory .amc-funds[hidden],
body.cm-amc-directory #amc-view-list[hidden] { display: none !important; }
body.cm-amc-directory .amc-table-shell .dt-data-table__viewport { border: 0; border-radius: 0; }
body.cm-amc-directory .amc-table-shell caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.cm-amc-directory .amc-table-shell .dt-data-table { min-width: 560px; }
body.cm-amc-directory .amc-table-shell .dt-data-table th { border-bottom: 1px solid var(--dt-color-border); }
body.cm-amc-directory .amc-table-name { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
body.cm-amc-directory .amc-table-name strong { font-weight: var(--dt-weight-medium); }
body.cm-amc-directory .amc-table-name .dt-asset-logo { flex: none; }
body.cm-amc-directory .amc-grid,
body.cm-amc-directory #amc-funds-list > .mf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dt-space-panel); }
body.cm-amc-directory #amc-funds-list > .mf-grid { padding: 0; }
body.cm-amc-directory .amc-grid > .dt-instrument-card,
body.cm-amc-directory #amc-funds-list .dt-instrument-card { box-sizing: border-box; width: 100%; height: 100%; max-width: none; }
body.cm-amc-directory .amc-card.dt-instrument-card { cursor: pointer; min-height: 0; padding: 1rem; text-align: left; font: inherit; border: 1px solid var(--dt-color-border); border-radius: var(--dt-radius-lg); box-shadow: none; transform: none; }
body.cm-amc-directory .amc-card.dt-instrument-card:hover { border-color: color-mix(in srgb, var(--dt-color-brand) 45%, var(--dt-color-border)); box-shadow: var(--dt-shadow-md); }
body.cm-amc-directory .amc-card > header > div,
body.cm-amc-directory .mf-card > header > div { min-width: 0; }
body.cm-amc-directory .amc-card h3,
body.cm-amc-directory .mf-card h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.cm-amc-directory .amc-card .dt-price-change,
body.cm-amc-directory .mf-card .dt-price-change { text-align: right; white-space: nowrap; }
body.cm-amc-directory .amc-card > footer { justify-content: space-between; }
body.cm-amc-directory .amc-card:focus-visible { outline: 2px solid var(--dt-color-focus); outline-offset: 2px; }
body.cm-amc-directory .amc-funds { padding-top: 0; }
body.cm-amc-directory .mf-empty { color: var(--dt-color-text-muted); padding: 36px 0; }
@media (max-width: 1100px) {
  body.cm-amc-directory .amc-grid,
  body.cm-amc-directory #amc-funds-list > .mf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.cm-amc-directory .amc-toolkit-hero { margin-bottom: 40px; }
  body.cm-amc-directory .amc-toolkit-hero > .dt-page-hero { padding-top: 24px; }
  body.cm-amc-directory .amc-results-header,
  body.cm-amc-directory .amc-funds > .dt-section-heading { align-items: start; flex-direction: column; }
  body.cm-amc-directory .amc-sort-control { width: 100%; justify-content: space-between; }
  body.cm-amc-directory .amc-grid,
  body.cm-amc-directory #amc-funds-list > .mf-grid { grid-template-columns: minmax(0, 1fr); }
}
