/**
 * AMC Public Page Styles.
 *
 * Loaded only on public AMC pages.
 *
 * @package MF_Data_By_Sayan
 */

/* ==========================================================================
   AMC page variables
   ========================================================================== */

.mfds-amc-page {
	--mfds-amc-primary:
		var(--mfds-primary, #2563eb);

	--mfds-amc-primary-dark:
		var(--mfds-primary-dark, #1d4ed8);

	--mfds-amc-primary-soft:
		var(--mfds-primary-soft, #eff6ff);

	--mfds-amc-text:
		var(--mfds-text, #0f172a);

	--mfds-amc-muted:
		var(--mfds-muted, #64748b);

	--mfds-amc-border:
		var(--mfds-border, #dbe3ee);

	--mfds-amc-surface:
		var(--mfds-surface, #ffffff);

	--mfds-amc-surface-soft:
		var(--mfds-surface-soft, #f8fafc);

	box-sizing: border-box;
	width: 100%;
	padding: 36px 0 56px;
	color: var(--mfds-amc-text);
}

/* ==========================================================================
   Container
   ========================================================================== */

.mfds-amc-page .mfds-container {
	box-sizing: border-box;
	width: min(1180px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

/* ==========================================================================
   Page header
   ========================================================================== */

.mfds-amc-page__header {
	margin-bottom: 26px;
	padding: 28px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 16px;
	background:
		linear-gradient(
			135deg,
			var(--mfds-amc-surface) 0%,
			var(--mfds-amc-surface-soft) 100%
		);
	box-shadow:
		0 2px 4px rgba(15, 23, 42, 0.03),
		0 12px 30px rgba(15, 23, 42, 0.06);
}

.mfds-amc-page__eyebrow {
	margin: 0 0 8px;
	color: var(--mfds-amc-primary);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mfds-amc-page__header h1 {
	margin: 0;
	color: var(--mfds-amc-text);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.mfds-amc-page__description {
	max-width: 780px;
	margin: 12px 0 0;
	color: var(--mfds-amc-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* ==========================================================================
   Statistics
   ========================================================================== */

.mfds-amc-page__statistics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.mfds-amc-stat {
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 12px;
	background: var(--mfds-amc-surface);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mfds-amc-stat strong {
	display: block;
	margin-bottom: 5px;
	color: var(--mfds-amc-text);
	font-size: 26px;
	font-weight: 750;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.mfds-amc-stat span {
	display: block;
	color: var(--mfds-amc-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

/* ==========================================================================
   Funds section
   ========================================================================== */

.mfds-amc-page__funds {
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 14px;
	background: var(--mfds-amc-surface);
	box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.mfds-amc-page__funds > h2 {
	margin: 0 0 8px;
	color: var(--mfds-amc-text);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 725;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.mfds-amc-page__funds > p {
	margin: 0;
	color: var(--mfds-amc-muted);
	font-size: 14px;
	line-height: 1.65;
}

/* ==========================================================================
   Loading state — used by Module 7.2
   ========================================================================== */

.mfds-amc-page.is-loading {
	cursor: progress;
}

.mfds-amc-page.is-loading .mfds-amc-page__funds {
	position: relative;
	min-height: 180px;
	pointer-events: none;
}

.mfds-amc-page.is-loading .mfds-amc-page__funds::before {
	position: absolute;
	inset: 0;
	z-index: 20;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.78);
	content: "";
}

.mfds-amc-page.is-loading .mfds-amc-page__funds::after {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 21;
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	border: 3px solid #dbeafe;
	border-top-color: var(--mfds-amc-primary);
	border-radius: 50%;
	content: "";
	animation: mfds-amc-spinner 700ms linear infinite;
}

@keyframes mfds-amc-spinner {

	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Error and empty states
   ========================================================================== */

.mfds-amc-page__not-found,
.mfds-amc-empty,
.mfds-amc-error {
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 12px;
	background: var(--mfds-amc-surface-soft);
}

.mfds-amc-page__not-found h1,
.mfds-amc-empty h3,
.mfds-amc-error h3 {
	margin: 0 0 8px;
	color: var(--mfds-amc-text);
}

.mfds-amc-page__not-found p,
.mfds-amc-empty p,
.mfds-amc-error p {
	margin: 0;
	color: var(--mfds-amc-muted);
	line-height: 1.65;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media screen and (max-width: 900px) {

	.mfds-amc-page__statistics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mfds-amc-stat:last-child {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media screen and (max-width: 640px) {

	.mfds-amc-page {
		padding: 22px 0 38px;
	}

	.mfds-amc-page .mfds-container {
		width: min(100% - 24px, 1180px);
	}

	.mfds-amc-page__header {
		margin-bottom: 18px;
		padding: 20px;
		border-radius: 13px;
	}

	.mfds-amc-page__description {
		font-size: 14px;
	}

	.mfds-amc-page__statistics {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 18px;
	}

	.mfds-amc-stat:last-child {
		grid-column: auto;
	}

	.mfds-amc-stat {
		padding: 17px;
	}

	.mfds-amc-stat strong {
		font-size: 23px;
	}

	.mfds-amc-page__funds {
		padding: 18px;
		border-radius: 12px;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.mfds-amc-page.is-loading
		.mfds-amc-page__funds::after {
		animation-duration: 1400ms;
	}
}

/* ==========================================================================
   Module 7.2.2 — AMC fund table
   ========================================================================== */

.mfds-amc-funds__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.mfds-amc-funds__header h2 {
	margin: 0 0 6px;
	color: var(--mfds-amc-text);
	font-size: clamp(21px, 3vw, 27px);
	line-height: 1.3;
}

.mfds-amc-funds__header p {
	margin: 0;
	color: var(--mfds-amc-muted);
	font-size: 13px;
}

.mfds-amc-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 10px;
	background: var(--mfds-amc-surface);
	-webkit-overflow-scrolling: touch;
}

.mfds-amc-table {
	width: 100%;
	min-width: 920px;
	border-collapse: separate;
	border-spacing: 0;
}

.mfds-amc-table th,
.mfds-amc-table td {
	padding: 13px 14px;
	border-right: 1px solid var(--mfds-amc-border);
	border-bottom: 1px solid var(--mfds-amc-border);
	text-align: left;
	vertical-align: top;
}

.mfds-amc-table th:last-child,
.mfds-amc-table td:last-child {
	border-right: 0;
}

.mfds-amc-table tbody tr:last-child td {
	border-bottom: 0;
}

.mfds-amc-table th {
	background: var(--mfds-amc-surface-soft);
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.mfds-amc-table td {
	color: #334155;
	font-size: 13px;
	line-height: 1.5;
}

.mfds-amc-table tbody tr:nth-child(even) {
	background: #fbfdff;
}

.mfds-amc-table tbody tr:hover {
	background: var(--mfds-amc-primary-soft);
}

.mfds-amc-table__fund-name {
	display: block;
	min-width: 250px;
	color: var(--mfds-amc-text);
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none;
}

a.mfds-amc-table__fund-name:hover {
	color: var(--mfds-amc-primary);
	text-decoration: underline;
}

.mfds-amc-table__meta {
	display: block;
	margin-top: 5px;
	color: var(--mfds-amc-muted);
	font-size: 11px;
	line-height: 1.4;
}

.mfds-amc-return {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 66px;
	padding: 4px 7px;
	border-radius: 6px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mfds-amc-return--positive {
	background: #f0fdf4;
	color: #15803d;
}

.mfds-amc-return--negative {
	background: #fef2f2;
	color: #b91c1c;
}

.mfds-amc-return--neutral {
	background: #f8fafc;
	color: #64748b;
}

.mfds-amc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 18px;
}

.mfds-amc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 7px;
	background: var(--mfds-amc-surface);
	color: #334155;
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}

.mfds-amc-pagination a.page-numbers:hover,
.mfds-amc-pagination a.page-numbers:focus {
	border-color: var(--mfds-amc-primary);
	color: var(--mfds-amc-primary-dark);
}

.mfds-amc-pagination .page-numbers.current {
	border-color: var(--mfds-amc-primary);
	background: var(--mfds-amc-primary);
	color: #ffffff;
}

@media screen and (max-width: 767px) {

	.mfds-amc-page__funds {
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.mfds-amc-funds__header {
		padding: 18px;
		border: 1px solid var(--mfds-amc-border);
		border-radius: 12px;
		background: var(--mfds-amc-surface);
	}

	.mfds-amc-table-wrap {
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.mfds-amc-table,
	.mfds-amc-table thead,
	.mfds-amc-table tbody,
	.mfds-amc-table tr,
	.mfds-amc-table th,
	.mfds-amc-table td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.mfds-amc-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.mfds-amc-table tbody tr {
		margin: 0 0 14px;
		overflow: hidden;
		border: 1px solid var(--mfds-amc-border);
		border-radius: 12px;
		background: var(--mfds-amc-surface);
		box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
	}

	.mfds-amc-table td {
		display: grid;
		grid-template-columns: minmax(105px, 34%) minmax(0, 1fr);
		gap: 12px;
		padding: 12px 14px;
		border-right: 0;
	}

	.mfds-amc-table td::before {
		content: attr(data-label);
		color: var(--mfds-amc-muted);
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.03em;
		text-transform: uppercase;
	}

	.mfds-amc-table td:first-child {
		display: block;
		padding: 16px 14px;
		background: var(--mfds-amc-surface-soft);
	}

	.mfds-amc-table td:first-child::before {
		display: none;
	}

	.mfds-amc-table__fund-name {
		min-width: 0;
		font-size: 15px;
	}

	.mfds-amc-return {
		justify-self: start;
	}

	.mfds-amc-pagination {
		justify-content: center;
	}
}

/* ======================================================
   AMC Filters
====================================================== */

.mfds-amc-filters{
	margin:22px 0;
}

.mfds-amc-filter-grid{
	display:grid;
	grid-template-columns:
		2fr
		1fr
		1fr
		1fr
		auto;
	gap:14px;
	align-items:end;
}

.mfds-amc-filter-grid input,
.mfds-amc-filter-grid select{

	height:44px;

	padding:0 14px;

	border:1px solid var(--mfds-amc-border);

	border-radius:8px;

	background:#fff;

	font-size:14px;
}

.mfds-amc-filter-grid button{

	height:44px;

	padding:0 24px;
}

@media(max-width:900px){

	.mfds-amc-filter-grid{

		grid-template-columns:1fr;
	}
}

/* ==========================================================================
   Module 7.2.3C — Sortable return headings
   ========================================================================== */

.mfds-amc-table th.mfds-amc-table__sortable {
	padding: 0;
}

.mfds-amc-sort-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 11px 14px;
	color: inherit;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.mfds-amc-sort-link:hover {
	background: rgba(37, 99, 235, 0.06);
	color: var(--mfds-amc-primary-dark);
	text-decoration: none;
}

.mfds-amc-sort-link:focus-visible {
	position: relative;
	z-index: 2;
	outline: 3px solid var(--mfds-amc-primary);
	outline-offset: -3px;
}

.mfds-amc-table__sortable.is-active {
	background: var(--mfds-amc-primary-soft);
	color: var(--mfds-amc-primary-dark);
}

.mfds-amc-sort-link__indicator {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 14px;
	color: var(--mfds-amc-muted);
	font-size: 12px;
	line-height: 1;
}

.mfds-amc-table__sortable.is-active
	.mfds-amc-sort-link__indicator {
	color: var(--mfds-amc-primary-dark);
}

/* ==========================================================================
   Module 7.2.4 Part 1 — AMC breadcrumb
   ========================================================================== */

.mfds-amc-breadcrumb {
	margin: 0 0 16px;
}

.mfds-amc-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mfds-amc-breadcrumb__item,
.mfds-amc-breadcrumb__separator {
	color: var(--mfds-amc-muted);
	font-size: 13px;
	line-height: 1.4;
}

.mfds-amc-breadcrumb__item a {
	color: var(--mfds-amc-primary);
	font-weight: 600;
	text-decoration: none;
}

.mfds-amc-breadcrumb__item a:hover,
.mfds-amc-breadcrumb__item a:focus {
	color: var(--mfds-amc-primary-dark);
	text-decoration: underline;
}

.mfds-amc-breadcrumb__item.is-current {
	color: var(--mfds-amc-text);
	font-weight: 650;
}

.mfds-amc-breadcrumb__separator {
	opacity: 0.7;
}

@media screen and (max-width: 640px) {

	.mfds-amc-breadcrumb {
		margin-bottom: 12px;
	}

	.mfds-amc-breadcrumb__item,
	.mfds-amc-breadcrumb__separator {
		font-size: 12px;
	}
}

/* ==========================================================================
   Module 7.2.4 Part 2 — Professional AMC header
   ========================================================================== */

.mfds-amc-page__header-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--mfds-amc-border);
}

.mfds-amc-header-meta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--mfds-amc-muted);
	font-size: 13px;
	line-height: 1.4;
}

.mfds-amc-header-meta strong {
	color: var(--mfds-amc-text);
	font-weight: 700;
}

.mfds-amc-header-meta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border-radius: 50%;
	background: var(--mfds-amc-primary-soft);
	color: var(--mfds-amc-primary-dark);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

@media screen and (max-width: 640px) {

	.mfds-amc-page__header-meta {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin-top: 18px;
		padding-top: 16px;
	}

	.mfds-amc-header-meta {
		align-items: flex-start;
		font-size: 12px;
	}
}

@media screen and (max-width: 390px) {

	.mfds-amc-page__header-meta {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Module 7.2.4 Part 3 — AMC performance insight cards
   ========================================================================== */

.mfds-amc-insights {
	margin: 32px 0 40px;
}

.mfds-amc-insights__header {
	margin-bottom: 24px;
}

.mfds-amc-insights__header h2 {
	margin: 0 0 5px;
	color: var(--mfds-amc-text);
	font-size: clamp(21px, 3vw, 27px);
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.mfds-amc-insights__header p {
	margin: 0;
	color: var(--mfds-amc-muted);
	font-size: 13px;
	line-height: 1.6;
}

.mfds-amc-insights__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.mfds-amc-insight-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 14px;
	background: var(--mfds-amc-surface);
	box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.mfds-amc-insight-card__top {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-bottom: 22px;
}

.mfds-amc-insight-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 10px;
	background: var(--mfds-amc-primary-soft);
	color: var(--mfds-amc-primary-dark);
	font-size: 18px;
	line-height: 1;
}

.mfds-amc-insight-card__eyebrow {
	margin: 0 0 3px;
	color: var(--mfds-amc-muted);
	font-size: 10px;
	font-weight: 750;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mfds-amc-insight-card h3 {
	margin: 0;
	color: var(--mfds-amc-text);
	font-size: 15px;
	font-weight: 725;
	line-height: 1.4;
}

.mfds-amc-insight-card__value {
	margin: 0 0 12px;
	color: var(--mfds-amc-primary-dark);
	font-size: 27px;
	font-weight: 800;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.mfds-amc-insight-card__fund {
	color: var(--mfds-amc-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

a.mfds-amc-insight-card__fund:hover {
	color: var(--mfds-amc-primary);
	text-decoration: underline;
}

.mfds-amc-insight-card__category {
	margin: 6px 0 14px;
	color: var(--mfds-amc-muted);
	font-size: 12px;
	line-height: 1.5;
}

.mfds-amc-insight-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: auto;
	color: var(--mfds-amc-primary);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.mfds-amc-insight-card__link:hover {
	color: var(--mfds-amc-primary-dark);
	text-decoration: underline;
}

.mfds-amc-insight-card__caption {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--mfds-amc-border);
	color: var(--mfds-amc-muted);
	font-size: 10px;
	line-height: 1.5;
}

.mfds-amc-insight-card__unavailable {
	margin: 0;
	color: var(--mfds-amc-muted);
	font-size: 13px;
	line-height: 1.6;
}

@media screen and (max-width: 900px) {

	.mfds-amc-insights__grid {
		grid-template-columns: 1fr;
	}

	.mfds-amc-insight-card {
		padding: 18px;
	}
}

@media screen and (max-width: 640px) {

	.mfds-amc-insights {
		margin-bottom: 20px;
	}

	.mfds-amc-insights__header {
		padding: 0 2px;
	}

	.mfds-amc-insight-card__value {
		font-size: 24px;
	}
}

/* ==========================================================================
   Module 7.3.4 — AMC FAQ
   ========================================================================== */

.mfds-amc-faq {
	margin: 36px 0 0;
	padding: 26px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 14px;
	background: var(--mfds-amc-surface);
	box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.mfds-amc-faq__header {
	margin-bottom: 18px;
}

.mfds-amc-faq__header h2 {
	margin: 0 0 6px;
	color: var(--mfds-amc-text);
	font-size: clamp(21px, 3vw, 27px);
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.mfds-amc-faq__header p {
	margin: 0;
	color: var(--mfds-amc-muted);
	font-size: 13px;
	line-height: 1.6;
}

.mfds-amc-faq__list {
	display: grid;
	gap: 10px;
}

.mfds-amc-faq__item {
	overflow: hidden;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 10px;
	background: var(--mfds-amc-surface-soft);
}

.mfds-amc-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	color: var(--mfds-amc-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

.mfds-amc-faq__item summary::-webkit-details-marker {
	display: none;
}

.mfds-amc-faq__item summary:hover {
	background: rgba(37, 99, 235, 0.05);
}

.mfds-amc-faq__item summary:focus-visible {
	outline: 3px solid var(--mfds-amc-primary);
	outline-offset: -3px;
}

.mfds-amc-faq__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	background: var(--mfds-amc-primary-soft);
	color: var(--mfds-amc-primary-dark);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	transition: transform 160ms ease;
}

.mfds-amc-faq__item[open]
	.mfds-amc-faq__icon {
	transform: rotate(45deg);
}

.mfds-amc-faq__answer {
	padding: 0 18px 18px;
}

.mfds-amc-faq__answer p {
	margin: 0;
	color: var(--mfds-amc-muted);
	font-size: 13px;
	line-height: 1.75;
}

@media screen and (max-width: 640px) {

	.mfds-amc-faq {
		margin-top: 24px;
		padding: 18px;
	}

	.mfds-amc-faq__item summary {
		padding: 14px;
		font-size: 13px;
	}

	.mfds-amc-faq__answer {
		padding: 0 14px 14px;
	}
}

/* ==========================================================================
   Module 7.5.2 — AMC Directory
   ========================================================================== */

.mfds-amc-directory__section {
	margin-top: 30px;
	padding: 26px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 14px;
	background: var(--mfds-amc-surface);
	box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.mfds-amc-directory__section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.mfds-amc-directory__section-header h2 {
	margin: 0 0 6px;
	color: var(--mfds-amc-text);
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.mfds-amc-directory__section-header p {
	margin: 0;
	color: var(--mfds-amc-muted);
	font-size: 13px;
	line-height: 1.6;
}

.mfds-amc-directory__search {
	display: block;
	width: min(100%, 330px);
	flex: 0 0 min(100%, 330px);
}

.mfds-amc-directory__search input {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	padding: 0 15px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 9px;
	background: var(--mfds-amc-surface);
	color: var(--mfds-amc-text);
	font-size: 14px;
	line-height: 1;
}

.mfds-amc-directory__search input::placeholder {
	color: var(--mfds-amc-muted);
	opacity: 0.85;
}

.mfds-amc-directory__search input:hover {
	border-color: #b8c5d6;
}

.mfds-amc-directory__search input:focus {
	border-color: var(--mfds-amc-primary);
	outline: 3px solid rgba(37, 99, 235, 0.12);
	outline-offset: 0;
}

.mfds-amc-directory__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mfds-amc-directory-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 190px;
	padding: 20px;
	border: 1px solid var(--mfds-amc-border);
	border-radius: 12px;
	background:
		linear-gradient(
			145deg,
			var(--mfds-amc-surface) 0%,
			var(--mfds-amc-surface-soft) 100%
		);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	transition:
		transform 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.mfds-amc-directory-card:hover {
	border-color: rgba(37, 99, 235, 0.42);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.mfds-amc-directory-card[hidden] {
	display: none;
}

.mfds-amc-directory-card h3 {
	margin: 0 0 18px;
	color: var(--mfds-amc-text);
	font-size: 17px;
	font-weight: 750;
	line-height: 1.4;
}

.mfds-amc-directory-card h3 a {
	color: inherit;
	text-decoration: none;
}

.mfds-amc-directory-card h3 a:hover,
.mfds-amc-directory-card h3 a:focus {
	color: var(--mfds-amc-primary);
	text-decoration: underline;
}

.mfds-amc-directory-card__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 22px;
	color: var(--mfds-amc-muted);
	font-size: 12px;
	line-height: 1.5;
}

.mfds-amc-directory-card__stats span {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.mfds-amc-directory-card__stats strong {
	color: var(--mfds-amc-text);
	font-size: 15px;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
}

.mfds-amc-directory-card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	margin-top: auto;
	color: var(--mfds-amc-primary);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.4;
	text-decoration: none;
}

.mfds-amc-directory-card__link:hover,
.mfds-amc-directory-card__link:focus {
	color: var(--mfds-amc-primary-dark);
	text-decoration: underline;
}

.mfds-amc-directory__empty-search {
	margin: 20px 0 0;
	padding: 18px;
	border: 1px dashed var(--mfds-amc-border);
	border-radius: 10px;
	background: var(--mfds-amc-surface-soft);
	color: var(--mfds-amc-muted);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.mfds-amc-directory__empty-search[hidden] {
	display: none;
}

/* ==========================================================================
   AMC Directory — Tablet
   ========================================================================== */

@media screen and (max-width: 1000px) {

	.mfds-amc-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 760px) {

	.mfds-amc-directory__section {
		padding: 20px;
	}

	.mfds-amc-directory__section-header {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
	}

	.mfds-amc-directory__search {
		width: 100%;
		flex-basis: auto;
	}

	.mfds-amc-directory__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mfds-amc-directory-card {
		min-height: 0;
		padding: 18px;
	}
}

/* ==========================================================================
   AMC Directory — Mobile
   ========================================================================== */

@media screen and (max-width: 480px) {

	.mfds-amc-directory__section {
		margin-top: 22px;
		padding: 16px;
		border-radius: 12px;
	}

	.mfds-amc-directory__section-header {
		margin-bottom: 18px;
	}

	.mfds-amc-directory__search input {
		height: 44px;
	}

	.mfds-amc-directory-card h3 {
		font-size: 16px;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.mfds-amc-directory-card {
		transition: none;
	}

	.mfds-amc-directory-card:hover {
		transform: none;
	}
}

/* ==========================================================================
   v2.0.4.2 — AMC desktop Phase 1 using actual AMC selectors
   Hero + Performance Highlights only. Mobile unchanged.
   ========================================================================== */
@media screen and (min-width: 901px) {

	/* AMC Hero */
	.mfds-amc-page__header {
		margin-bottom: 30px;
		padding: 30px 32px;
		border-radius: 14px;
	}

	.mfds-amc-page__header.has-amc-main-logo {
		grid-template-columns: 210px minmax(0, 1fr);
		gap: 30px;
		align-items: center;
	}

	.mfds-amc-page__main-logo {
		min-height: 108px;
		justify-content: center;
	}

	.mfds-amc-page__main-logo img {
		max-width: 190px;
		max-height: 100px;
	}

	.mfds-amc-page__eyebrow {
		margin-bottom: 6px;
	}

	.mfds-amc-page__header h1 {
		font-size: 36px;
		line-height: 1.15;
	}

	.mfds-amc-page__description {
		margin-top: 8px;
		font-size: 14px;
		line-height: 1.55;
	}

	.mfds-amc-page__taxonomy-links {
		margin: 7px 0 0;
		font-size: 13px;
		line-height: 1.65;
	}

	.mfds-amc-page__header-meta {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
		margin-top: 20px;
		padding-top: 16px;
	}

	.mfds-amc-header-meta {
		min-width: 0;
		padding: 0 16px;
	}

	.mfds-amc-header-meta:first-child {
		padding-left: 0;
	}

	.mfds-amc-header-meta + .mfds-amc-header-meta {
		border-left: 1px solid var(--mfds-amc-border);
	}

	/* AMC Performance Highlights */
	.mfds-amc-insights {
		margin: 28px 0 34px;
	}

	.mfds-amc-insights__header {
		margin-bottom: 16px;
	}

	.mfds-amc-insights__grid {
		gap: 16px;
	}

	.mfds-amc-insight-card {
		min-height: 250px;
		padding: 20px;
		border-radius: 12px;
	}

	.mfds-amc-insight-card__top {
		gap: 10px;
		margin-bottom: 16px;
	}

	.mfds-amc-insight-card__icon {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
		font-size: 16px;
	}

	.mfds-amc-insight-card__value {
		margin-bottom: 9px;
		font-size: 25px;
	}

	.mfds-amc-insight-card__fund {
		font-size: 13px;
		line-height: 1.4;
	}

	.mfds-amc-insight-card__category {
		margin: 5px 0 11px;
	}

	.mfds-amc-insight-card__caption {
		margin-top: 13px;
		padding-top: 10px;
	}
}


/* ==========================================================================
   v2.0.4.3 — AMC mobile space-efficiency pass
   Built directly from stable v2.0.4.2. Desktop unchanged.
   ========================================================================== */
@media screen and (max-width: 900px) {

	/* Hero: keep all information, reduce vertical consumption. */
	.mfds-amc-page__header {
		padding: 20px 18px;
		margin-bottom: 22px;
		border-radius: 12px;
	}

	.mfds-amc-page__main-logo {
		min-height: 76px;
		margin-bottom: 12px;
	}

	.mfds-amc-page__main-logo img {
		max-height: 70px;
	}

	.mfds-amc-page__header h1 {
		margin-bottom: 8px;
		line-height: 1.2;
	}

	.mfds-amc-page__description {
		margin-top: 6px;
		line-height: 1.5;
	}

	.mfds-amc-page__taxonomy-links {
		margin-top: 7px;
		line-height: 1.5;
	}

	.mfds-amc-page__header-meta {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
		margin-top: 16px;
		padding-top: 12px;
	}

	.mfds-amc-header-meta {
		min-width: 0;
		padding: 9px 10px;
	}

	/* Performance highlights: two columns rather than three tall stacked cards. */
	.mfds-amc-insights {
		margin: 22px 0 26px;
	}

	.mfds-amc-insights__header {
		margin-bottom: 13px;
	}

	.mfds-amc-insights__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.mfds-amc-insight-card {
		min-height: 0;
		padding: 14px;
		border-radius: 10px;
	}

	.mfds-amc-insight-card__top {
		gap: 8px;
		margin-bottom: 11px;
	}

	.mfds-amc-insight-card__icon {
		width: 30px;
		height: 30px;
		flex-basis: 30px;
	}

	.mfds-amc-insight-card__value {
		margin-bottom: 7px;
		font-size: 21px;
	}

	.mfds-amc-insight-card__fund {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
		line-height: 1.35;
	}

	.mfds-amc-insight-card__category {
		margin: 5px 0 8px;
	}

	.mfds-amc-insight-card__caption {
		margin-top: 10px;
		padding-top: 8px;
		font-size: 11px;
		line-height: 1.35;
	}

	/* Filters: two controls per row where space allows. */
	.mfds-amc-filters {
		padding: 14px;
		margin-bottom: 16px;
	}

	.mfds-amc-filter-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.mfds-amc-filter-grid input,
	.mfds-amc-filter-grid select,
	.mfds-amc-filter-grid button {
		width: 100%;
		min-width: 0;
		min-height: 40px;
	}

	.mfds-amc-filter-grid button {
		grid-column: 1 / -1;
	}

	/* Keep existing mobile scheme-card transformation, only tighten spacing. */
	.mfds-amc-table-wrap {
		margin-top: 14px;
	}

	.mfds-amc-table tbody tr {
		margin-bottom: 12px;
	}

	.mfds-amc-table tbody td {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.mfds-amc-table__meta {
		margin-top: 3px;
	}

	.mfds-amc-pagination {
		margin-top: 16px;
	}

	/* FAQ: retain accordion behavior with less dead space. */
	.mfds-amc-faq {
		margin-top: 28px;
	}

	.mfds-amc-faq__header {
		margin-bottom: 12px;
	}

	.mfds-amc-faq__item summary {
		padding-top: 13px;
		padding-bottom: 13px;
	}
}

@media screen and (max-width: 480px) {
	/* Very narrow phones: preserve readability of performance cards. */
	.mfds-amc-insights__grid {
		grid-template-columns: 1fr;
	}

	.mfds-amc-insight-card {
		padding: 14px 15px;
	}

	.mfds-amc-filter-grid {
		grid-template-columns: 1fr;
	}

	.mfds-amc-filter-grid button {
		grid-column: auto;
	}
}


/* ==========================================================================
   v2.0.4.4 — AMC mobile compact highlights + scheme cards
   Built from accepted v2.0.4.3. Desktop unchanged.
   ========================================================================== */
@media screen and (max-width: 900px) and (min-width: 481px) {
	/* Three highlight cards: use the full second row for the third card. */
	.mfds-amc-insights__grid > .mfds-amc-insight-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 900px) {
	/* Existing mobile table-to-card layout: compact into a two-column card. */
	.mfds-amc-table tbody tr {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		margin-bottom: 12px !important;
		overflow: hidden;
	}

	.mfds-amc-table tbody td {
		min-width: 0 !important;
		margin: 0 !important;
		padding: 10px 12px !important;
	}

	/* Fund identity full width. */
	.mfds-amc-table tbody td:first-child {
		grid-column: 1 / -1;
		padding: 14px 14px 12px !important;
	}

	/* Category and NAV share one row. */
	.mfds-amc-table tbody td:nth-child(2),
	.mfds-amc-table tbody td:nth-child(3) {
		grid-column: span 1;
	}

	/* 1Y, 3Y, 5Y, 10Y use a 2 × 2 return grid. */
	.mfds-amc-table tbody td:nth-child(n+4):nth-child(-n+7) {
		grid-column: span 1;
		min-height: 58px;
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}

	.mfds-amc-table tbody td::before {
		margin-bottom: 0 !important;
	}

	.mfds-amc-table tbody td:nth-child(2),
	.mfds-amc-table tbody td:nth-child(4),
	.mfds-amc-table tbody td:nth-child(6) {
		border-right: 1px solid var(--mfds-amc-border);
	}

	.mfds-amc-table__fund-name {
		line-height: 1.35;
	}

	.mfds-amc-table__meta {
		margin-top: 4px;
		line-height: 1.3;
	}

	.mfds-amc-table tbody tr:last-child {
		margin-bottom: 0 !important;
	}
}


/* ==========================================================================
   v2.0.4.5 — AMC mobile Performance Highlights single-row layout
   ========================================================================== */
@media screen and (max-width: 900px) and (min-width: 481px) {
	.mfds-amc-insights__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.mfds-amc-insights__grid > .mfds-amc-insight-card:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.mfds-amc-insight-card {
		padding: 11px 10px;
	}

	.mfds-amc-insight-card__top {
		gap: 6px;
		margin-bottom: 8px;
	}

	.mfds-amc-insight-card__icon {
		width: 26px;
		height: 26px;
		flex-basis: 26px;
	}

	.mfds-amc-insight-card__value {
		font-size: 19px;
		margin-bottom: 5px;
	}

	.mfds-amc-insight-card__fund {
		font-size: 13px;
		line-height: 1.3;
	}

	.mfds-amc-insight-card__category,
	.mfds-amc-insight-card__link,
	.mfds-amc-insight-card__caption {
		font-size: 11px;
		line-height: 1.3;
	}

	.mfds-amc-insight-card__caption {
		margin-top: 7px;
		padding-top: 7px;
	}
}


/* ==========================================================================
   v2.0.4.6 — AMC mobile gap reduction
   ========================================================================== */
@media screen and (max-width: 900px) {
	.mfds-amc-insights {
		margin-bottom: 12px !important;
	}
	.mfds-amc-page__funds {
		margin-top: 0 !important;
	}
}
