/**
 * MF Data Public Styles
 *
 * @package MF_Data_By_Sayan
 */

/* ==========================================================================
   General shortcode messages
   ========================================================================== */

.mfds-table-empty,
.mfds-table-error,
.mfds-shortcode-error {
	box-sizing: border-box;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	background: #f8fafc;
	color: #334155;
}

/* ==========================================================================
   Top Funds
   ========================================================================== */

.mfds-top-funds,
.mfds-fund-table {
	box-sizing: border-box;
	width: 100%;
}

.mfds-top-funds__title,
.mfds-fund-table__title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.3;
}

.mfds-top-funds__summary,
.mfds-fund-table__summary {
	margin: 0 0 18px;
	color: #64748b;
}

/* ==========================================================================
   Shared fund table
   ========================================================================== */

.mfds-table-wrap {
	box-sizing: border-box;
	width: 100%;
	margin: 1rem 0;
	overflow-x: auto;
}

.mfds-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background: #fff;
}

.mfds-table th,
.mfds-table td {
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: top;
}

.mfds-table th {
	font-weight: 600;
	white-space: nowrap;
	background: #f8fafc;
	color: #1e293b;
}

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

.mfds-table__fund-name {
	display: block;
	font-weight: 600;
	color: #1e293b;
}

.mfds-table__meta {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: #64748b;
}

.mfds-table__return {
	font-weight: 600;
	white-space: nowrap;
}

.mfds-table__return--positive {
	color: #15803d;
}

.mfds-table__return--negative {
	color: #b91c1c;
}

.mfds-table__return--neutral {
	color: #475569;
}

/* ==========================================================================
   Filter panel
   ========================================================================== */

form.mfds-fund-filter {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 18px 0 24px;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
}

/*
 * Primary layout.
 *
 * Desktop:
 * Search | Category | Subcategory | AMC
 * Period | Sort By  | Direction   | Per Page
 */
form.mfds-fund-filter .mfds-fund-filter__grid {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	align-items: end !important;
	width: 100% !important;
	column-gap: 16px !important;
	row-gap: 16px !important;
}

/*
 * Fallback for fields that were accidentally placed directly inside
 * the form instead of inside .mfds-fund-filter__grid.
 */
form.mfds-fund-filter:not(:has(.mfds-fund-filter__grid)) {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	align-items: end !important;
	column-gap: 16px !important;
	row-gap: 16px !important;
}

form.mfds-fund-filter .mfds-fund-filter__field {
	box-sizing: border-box !important;
	display: block !important;
	grid-column: auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

form.mfds-fund-filter > .mfds-fund-filter__field {
	box-sizing: border-box !important;
	display: block !important;
	grid-column: auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mfds-fund-filter__field label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #1e293b;
}

/* Standard input and select fields */

.mfds-fund-filter__field > input,
.mfds-fund-filter__field > select {
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: #1e293b !important;
	font: inherit !important;
	line-height: 1.4 !important;
}

.mfds-fund-filter__field > input:focus,
.mfds-fund-filter__field > select:focus {
	border-color: #2563eb !important;
	outline: 2px solid rgba(37, 99, 235, 0.15) !important;
	outline-offset: 0 !important;
}

/* ==========================================================================
   Select2 fields
   ========================================================================== */

.mfds-fund-filter .select2-container {
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.mfds-fund-filter .select2-container--default .select2-selection--single {
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	height: 42px !important;
	min-height: 42px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	background: #fff !important;
}

.mfds-fund-filter
	.select2-container--default
	.select2-selection--single
	.select2-selection__rendered {
	box-sizing: border-box;
	padding-right: 42px !important;
	padding-left: 12px !important;
	line-height: 40px !important;
	color: #1e293b !important;
}

.mfds-fund-filter
	.select2-container--default
	.select2-selection--single
	.select2-selection__placeholder {
	color: #94a3b8 !important;
}

.mfds-fund-filter
	.select2-container--default
	.select2-selection--single
	.select2-selection__arrow {
	top: 1px !important;
	right: 2px !important;
	width: 38px !important;
	height: 40px !important;
}

.mfds-fund-filter
	.select2-container--default.select2-container--focus
	.select2-selection--single,
.mfds-fund-filter
	.select2-container--default.select2-container--open
	.select2-selection--single {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Select2 dropdown */

.select2-container--open {
	z-index: 999999 !important;
}

.select2-dropdown {
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.select2-search--dropdown {
	padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 38px !important;
	padding: 7px 10px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	outline: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.select2-results__options {
	max-height: 260px !important;
	overflow-y: auto !important;
}

.select2-results__option {
	padding: 9px 12px !important;
	color: #1e293b;
}

.select2-container--default
	.select2-results__option--highlighted[aria-selected] {
	background: #2563eb !important;
	color: #fff !important;
}

.select2-container--default
	.select2-results__option[aria-selected="true"] {
	background: #eff6ff;
	color: #1d4ed8;
}

/* ==========================================================================
   Filter buttons
   ========================================================================== */

form.mfds-fund-filter .mfds-fund-filter__actions {
	box-sizing: border-box;
	display: flex !important;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 18px 0 0 !important;
	padding: 0 !important;
}

.mfds-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 18px;
	border: 1px solid #1d4ed8;
	border-radius: 4px;
	background: #1d4ed8;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.mfds-button:hover,
.mfds-button:focus {
	border-color: #1e40af;
	background: #1e40af;
	color: #fff;
	text-decoration: none;
}

.mfds-button--secondary {
	border-color: #cbd5e1;
	background: #fff;
	color: #334155;
}

.mfds-button--secondary:hover,
.mfds-button--secondary:focus {
	border-color: #94a3b8;
	background: #f1f5f9;
	color: #1e293b;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

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

.mfds-pagination .page-numbers {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	background: #fff;
	color: #334155;
	text-decoration: none;
}

.mfds-pagination .page-numbers:hover,
.mfds-pagination .page-numbers:focus {
	border-color: #2563eb;
	color: #2563eb;
}

.mfds-pagination .page-numbers.current {
	border-color: #cbd5e1;
	background: #f1f5f9;
	color: #1e293b;
	font-weight: 600;
}

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

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

	form.mfds-fund-filter .mfds-fund-filter__grid,
	form.mfds-fund-filter:not(:has(.mfds-fund-filter__grid)) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

}

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

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

	form.mfds-fund-filter {
		padding: 16px;
	}

	form.mfds-fund-filter .mfds-fund-filter__grid,
	form.mfds-fund-filter:not(:has(.mfds-fund-filter__grid)) {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.mfds-table-wrap {
		overflow: visible;
	}

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

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

	.mfds-table tr {
		box-sizing: border-box;
		margin-bottom: 16px;
		border: 1px solid #e2e8f0;
		background: #fff;
	}

	.mfds-table td {
		box-sizing: border-box;
		display: grid;
		grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
		gap: 12px;
		border: 0;
		border-bottom: 1px solid #e2e8f0;
	}

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

	.mfds-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #334155;
	}

}

/* Very small phones */

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

	.mfds-table td {
		grid-template-columns: 1fr;
	}

	.mfds-table td::before {
		margin-bottom: 3px;
	}

	.mfds-fund-filter__actions {
		flex-direction: column;
		align-items: stretch !important;
	}

	.mfds-button {
		width: 100%;
	}

	.mfds-return{

		font-weight:600;

	}

	.mfds-return--positive{

		color:#16a34a;

	}

	.mfds-return--negative{

		color:#dc2626;

	}

	.mfds-return--neutral{

		color:#64748b;

	}

	.mfds-invest-button{

		padding:8px 14px;

		border:0;

		border-radius:4px;

		background:#2563eb;

		color:#fff;

		font-weight:600;

		cursor:not-allowed;

		opacity:.75;

	}

}

/* ==========================================================
   MFDS Fund Table Filter
   File: assets/css/mfds-public.css
========================================================== */

.mfds-fund-filter {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	margin-bottom: 30px;
	padding: 24px;
}

/* Search field */

.mfds-fund-filter__search {
	margin-bottom: 24px;
}

.mfds-fund-filter__search label,
.mfds-fund-filter__field label {
	display: block;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 8px;
}

.mfds-fund-filter__search input {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	color: #111827;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: none;
	font-size: 15px;
	line-height: 1;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
	box-sizing: border-box;
}

.mfds-fund-filter__search input::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.mfds-fund-filter__search input:hover {
	border-color: #9ca3af;
}

.mfds-fund-filter__search input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Four-column filter grid */

.mfds-fund-filter__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.mfds-fund-filter__field {
	min-width: 0;
}

.mfds-fund-filter__field select {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 38px 0 12px;
	color: #111827;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: none;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.mfds-fund-filter__field select:hover {
	border-color: #9ca3af;
}

.mfds-fund-filter__field select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Select2 support */

.mfds-fund-filter .select2-container {
	display: block;
	width: 100% !important;
}

.mfds-fund-filter .select2-container .select2-selection--single {
	height: 46px;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-sizing: border-box;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.mfds-fund-filter .select2-container .select2-selection--single:hover {
	border-color: #9ca3af;
}

.mfds-fund-filter
	.select2-container--focus
	.select2-selection--single,
.mfds-fund-filter
	.select2-container--open
	.select2-selection--single {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mfds-fund-filter
	.select2-container
	.select2-selection--single
	.select2-selection__rendered {
	height: 44px;
	padding-left: 12px;
	padding-right: 38px;
	color: #111827;
	line-height: 44px;
	font-size: 14px;
}

.mfds-fund-filter
	.select2-container
	.select2-selection--single
	.select2-selection__placeholder {
	color: #9ca3af;
}

.mfds-fund-filter
	.select2-container
	.select2-selection--single
	.select2-selection__arrow {
	top: 0;
	right: 8px;
	width: 24px;
	height: 44px;
}

/* Action buttons */

.mfds-fund-filter__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.mfds-fund-filter .mfds-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 150px;
	min-height: 46px;
	margin: 0;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 8px;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.mfds-fund-filter .mfds-button:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.mfds-fund-filter .mfds-button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* Primary button */

.mfds-fund-filter .mfds-button--primary {
	color: #ffffff;
	background-color: #2563eb;
	border-color: #2563eb;
}

.mfds-fund-filter .mfds-button--primary:hover {
	color: #ffffff;
	background-color: #1d4ed8;
	border-color: #1d4ed8;
}

/* Secondary buttons */

.mfds-fund-filter .mfds-button--secondary {
	color: #1f2937;
	background-color: #f3f4f6;
	border-color: #d1d5db;
}

.mfds-fund-filter .mfds-button--secondary:hover {
	color: #111827;
	background-color: #e5e7eb;
	border-color: #9ca3af;
}

/* Disabled export buttons */

.mfds-fund-filter .mfds-export-button[disabled],
.mfds-fund-filter .mfds-export-button[aria-disabled="true"] {
	color: #6b7280;
	background-color: #f3f4f6;
	border-color: #e5e7eb;
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.mfds-fund-filter .mfds-export-button[disabled]:hover,
.mfds-fund-filter
	.mfds-export-button[aria-disabled="true"]:hover {
	color: #6b7280;
	background-color: #f3f4f6;
	border-color: #e5e7eb;
	transform: none;
}

/* Dashicons inside buttons */

.mfds-fund-filter .mfds-button .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
}

/* Tablet */

@media screen and (max-width: 992px) {
	.mfds-fund-filter {
		padding: 20px;
	}

	.mfds-fund-filter__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.mfds-fund-filter .mfds-button {
		flex: 1 1 calc(50% - 6px);
	}
}

/* Mobile */

@media screen and (max-width: 640px) {
	.mfds-fund-filter {
		padding: 16px;
		border-radius: 10px;
	}

	.mfds-fund-filter__search {
		margin-bottom: 20px;
	}

	.mfds-fund-filter__search input {
		height: 48px;
	}

	.mfds-fund-filter__grid {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 20px;
	}

	.mfds-fund-filter__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mfds-fund-filter .mfds-button {
		width: 100%;
		min-width: 0;
		flex: none;
	}
}

/* Fund Explorer AJAX connection status */
.mfds-fund-explorer-status {
	margin: 18px 0;
	padding: 12px 15px;
	border: 1px solid currentColor;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.mfds-fund-explorer-status--loading {
	opacity: 0.8;
}

.mfds-fund-explorer-status--success {
	background: rgba(22, 163, 74, 0.08);
}

.mfds-fund-explorer-status--error {
	background: rgba(220, 38, 38, 0.08);
}

/* ==========================================================================
   Module 5.3 — Professional table sorting and sticky layout
   ========================================================================== */

/*
 * Desktop table scrolling.
 *
 * The table needs a positioned scrolling container so the sticky header
 * and sticky first column remain inside the Fund Explorer table.
 */
.mfds-fund-table .mfds-table-wrap {
	position: relative;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

/*
 * Sortable table headings.
 */
.mfds-fund-table .mfds-table th.mfds-sortable {
	position: relative;
	padding: 0;
	cursor: pointer;
	user-select: none;
}

/*
 * Full-width sorting button.
 */
.mfds-fund-table .mfds-sort-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

/*
 * Prevent theme button styles from changing table headings.
 */
.mfds-fund-table .mfds-sort-button:hover,
.mfds-fund-table .mfds-sort-button:active {
	border: 0;
	background: rgba(15, 23, 42, 0.05);
	color: inherit;
	box-shadow: none;
	transform: none;
}

/*
 * Accessible keyboard focus.
 */
.mfds-fund-table .mfds-sort-button:focus {
	outline: none;
}

.mfds-fund-table .mfds-sort-button:focus-visible {
	position: relative;
	z-index: 4;
	outline: 3px solid #2563eb;
	outline-offset: -3px;
	background: rgba(37, 99, 235, 0.08);
}

/*
 * Sorting indicator.
 */
.mfds-fund-table .mfds-sort-button__indicator {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 18px;
	color: #64748b;
	font-size: 12px;
	line-height: 1;
}

/*
 * Unsorted state.
 */
.mfds-fund-table
	.mfds-sortable:not(.is-sorted-asc):not(.is-sorted-desc)
	.mfds-sort-button__indicator::before {
	content: "\2195";
	opacity: 0.55;
}

/*
 * Ascending state.
 */
.mfds-fund-table
	.mfds-sortable.is-sorted-asc
	.mfds-sort-button__indicator::before {
	content: "\2191";
	opacity: 1;
}

/*
 * Descending state.
 */
.mfds-fund-table
	.mfds-sortable.is-sorted-desc
	.mfds-sort-button__indicator::before {
	content: "\2193";
	opacity: 1;
}

/*
 * Active sorted heading.
 */
.mfds-fund-table .mfds-sortable.is-sorted-asc,
.mfds-fund-table .mfds-sortable.is-sorted-desc {
	background: #eff6ff;
	color: #1d4ed8;
}

/*
 * Sticky desktop table header.
 */
@media screen and (min-width: 768px) {

	.mfds-fund-table .mfds-table thead th {
		position: sticky;
		top: 0;
		z-index: 3;
		background: #f8fafc;
		box-shadow: inset 0 -1px 0 #e2e8f0;
	}

	/*
	 * Sticky first column.
	 */
	.mfds-fund-table .mfds-table th:first-child,
	.mfds-fund-table .mfds-table td:first-child {
		position: sticky;
		left: 0;
		min-width: 240px;
		max-width: 320px;
	}

	.mfds-fund-table .mfds-table th:first-child {
		z-index: 5;
		background: #f8fafc;
	}

	.mfds-fund-table .mfds-table td:first-child {
		z-index: 2;
		background: #ffffff;
		box-shadow: 1px 0 0 #e2e8f0;
	}

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

	.mfds-fund-table
		.mfds-table
		tbody
		tr:hover
		td:first-child {
		background: #f8fafc;
	}

}

/*
 * Fund Explorer AJAX loading state.
 *
 * JavaScript already adds the is-loading class.
 */
.mfds-fund-table.is-loading .mfds-table-wrap {
	min-height: 160px;
	pointer-events: none;
}

.mfds-fund-table.is-loading .mfds-table-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.72);
}

.mfds-fund-table.is-loading .mfds-table-wrap::after {
	content: "";
	position: absolute;
	z-index: 21;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-top: -17px;
	margin-left: -17px;
	border: 3px solid #cbd5e1;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: mfds-table-spinner 0.75s linear infinite;
}

@keyframes mfds-table-spinner {

	to {
		transform: rotate(360deg);
	}

}

/*
 * Reduce animation for users who request it.
 */
@media (prefers-reduced-motion: reduce) {

	.mfds-fund-table .mfds-sort-button {
		transition: none;
	}

	.mfds-fund-table.is-loading .mfds-table-wrap::after {
		animation-duration: 1.5s;
	}

}

/*
 * Mobile table already changes into cards in the existing stylesheet.
 * Disable sticky positioning and hide the desktop table header controls.
 */
@media screen and (max-width: 767px) {

	.mfds-fund-table .mfds-table-wrap {
		overflow: visible;
	}

	.mfds-fund-table .mfds-table th,
	.mfds-fund-table .mfds-table td {
		position: static;
		left: auto;
		min-width: 0;
		max-width: none;
		box-shadow: none;
	}

	.mfds-fund-table.is-loading .mfds-table-wrap {
		min-height: 220px;
	}

}

/* ==========================================================================
   Module 5.3 correction — sorting and sticky table
   ========================================================================== */

/*
 * Match the actual renderer class.
 */
.mfds-fund-table__heading--sortable {
	padding: 0;
	cursor: pointer;
	user-select: none;
}

/*
 * Active sorting states are applied to the sorting button.
 */
.mfds-fund-table
	[data-mfds-sort-by].is-sorted-asc
	.mfds-sort-button__indicator::before,
.mfds-fund-table
	.mfds-fund-table__heading--sortable.is-sorted-asc
	.mfds-sort-button__indicator::before {
	content: "\2191";
	opacity: 1;
}

.mfds-fund-table
	[data-mfds-sort-by].is-sorted-desc
	.mfds-sort-button__indicator::before,
.mfds-fund-table
	.mfds-fund-table__heading--sortable.is-sorted-desc
	.mfds-sort-button__indicator::before {
	content: "\2193";
	opacity: 1;
}

.mfds-fund-table
	[data-mfds-sort-by]:not(.is-sorted-asc):not(.is-sorted-desc)
	.mfds-sort-button__indicator::before {
	content: "\2195";
	opacity: 0.55;
}

/*
 * The existing horizontal overflow wrapper prevents viewport-based sticky
 * positioning. Give the table its own vertical scrolling area instead.
 */
@media screen and (min-width: 768px) {

	.mfds-fund-table .mfds-table-wrap {
		position: relative;
		max-height: 70vh;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.mfds-fund-table .mfds-table thead th {
		position: sticky;
		top: 0;
		z-index: 10;
		background: #f8fafc;
		box-shadow: inset 0 -1px 0 #e2e8f0;
	}

	.mfds-fund-table .mfds-table thead th:first-child {
		z-index: 12;
	}

}

/* ==========================================================================
   Module 5.3 — Sticky sortable header correction
   ========================================================================== */

@media screen and (min-width: 768px) {

	.mfds-fund-table .mfds-table-wrap {
		position: relative;
		max-height: 70vh;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	/*
	 * Force every header cell—including sortable headings—to remain sticky.
	 * This overrides the earlier position: relative rule.
	 */
	.mfds-fund-table .mfds-table thead th,
	.mfds-fund-table .mfds-table thead th.mfds-sortable,
	.mfds-fund-table
		.mfds-table
		thead
		th.mfds-fund-table__heading--sortable {
		position: sticky !important;
		top: 0;
		z-index: 10;
		background: #f8fafc;
		box-shadow: inset 0 -1px 0 #e2e8f0;
	}

	/*
	 * Keep the Fund Name corner cell above the sticky first column.
	 */
	.mfds-fund-table .mfds-table thead th:first-child {
		z-index: 12;
	}

}

/* ==========================================================================
   Module 5.4 — Professional mobile fund cards
   ========================================================================== */

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

	/*
	 * Mobile table container.
	 */
	.mfds-fund-table .mfds-table-wrap {
		overflow: visible;
	}

	/*
	 * Each desktop row becomes one fund card.
	 */
	.mfds-fund-table .mfds-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
		margin: 0 0 18px;
		overflow: hidden;
		border: 1px solid #e2e8f0;
		border-radius: 14px;
		background: #ffffff;
		box-shadow:
			0 1px 2px rgba(15, 23, 42, 0.04),
			0 8px 24px rgba(15, 23, 42, 0.06);
	}

	/*
	 * Reset the old full-width mobile cell design.
	 */
	.mfds-fund-table .mfds-table tbody td {
		display: block;
		width: auto;
		min-width: 0;
		padding: 14px 16px;
		border: 0;
		border-bottom: 1px solid #e8edf3;
		background: transparent;
	}

	/*
	 * Compact field labels.
	 */
	.mfds-fund-table .mfds-table tbody td::before {
		display: block;
		margin: 0 0 5px;
		color: #64748b;
		font-size: 11px;
		font-weight: 700;
		line-height: 1.35;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	/*
	 * Fund name is the card heading.
	 */
	.mfds-fund-table .mfds-column-fund-name {
		grid-column: 1 / -1;
		padding: 18px 16px 15px;
		background: #f8fafc;
	}

	.mfds-fund-table .mfds-column-fund-name::before {
		display: none;
	}

	.mfds-fund-table .mfds-table__fund-name {
		display: block;
		color: #0f172a;
		font-size: 17px;
		font-weight: 700;
		line-height: 1.55;
	}

	.mfds-fund-table .mfds-column-fund-name .mfds-table__meta {
		margin-top: 7px;
		color: #64748b;
		font-size: 12px;
		line-height: 1.4;
	}

	/*
	 * AMC and Category appear as two compact information fields.
	 */
	.mfds-fund-table .mfds-column-amc,
	.mfds-fund-table .mfds-column-category {
		font-size: 14px;
		line-height: 1.55;
	}

	.mfds-fund-table .mfds-column-amc {
		border-right: 1px solid #e8edf3;
	}

	/*
	 * Preserve subcategory metadata but make it visually secondary.
	 */
	.mfds-fund-table .mfds-column-category .mfds-table__meta,
	.mfds-fund-table .mfds-column-amc .mfds-table__meta {
		margin-top: 4px;
		color: #64748b;
		font-size: 12px;
		line-height: 1.45;
	}

	/*
	 * NAV and return values become compact metric boxes.
	 */
	.mfds-fund-table .mfds-column-nav,
	.mfds-fund-table .mfds-column-return,
	.mfds-fund-table .mfds-column-return-1y,
	.mfds-fund-table .mfds-column-return-3y,
	.mfds-fund-table .mfds-column-return-5y,
	.mfds-fund-table .mfds-column-return-since-inception,
	.mfds-fund-table .mfds-column-aum,
	.mfds-fund-table .mfds-column-expense-ratio,
	.mfds-fund-table .mfds-column-launch-date,
	.mfds-fund-table .mfds-column-plan,
	.mfds-fund-table .mfds-column-rank {
		min-height: 76px;
		color: #0f172a;
		font-size: 16px;
		font-weight: 650;
		line-height: 1.4;
	}

	/*
	 * Add a vertical divider to the left item of every metric row.
	 */
	.mfds-fund-table .mfds-column-nav,
	.mfds-fund-table .mfds-column-return-3y,
	.mfds-fund-table .mfds-column-return-since-inception,
	.mfds-fund-table .mfds-column-aum,
	.mfds-fund-table .mfds-column-launch-date,
	.mfds-fund-table .mfds-column-rank {
		border-right: 1px solid #e8edf3;
	}

	/*
	 * Return figures should be visually prominent.
	 */
	.mfds-fund-table .mfds-table__return,
	.mfds-fund-table .mfds-return {
		font-size: 17px;
		font-weight: 700;
	}

	/*
	 * NAV date and other supporting metadata.
	 */
	.mfds-fund-table .mfds-column-nav .mfds-table__meta {
		margin-top: 5px;
		color: #64748b;
		font-size: 11px;
		font-weight: 400;
		line-height: 1.4;
	}

	/*
	 * Invest button occupies the full card width.
	 */
	.mfds-fund-table .mfds-column-invest-now {
		grid-column: 1 / -1;
		padding: 14px 16px 16px;
		border-bottom: 0;
		background: #ffffff;
	}

	.mfds-fund-table .mfds-column-invest-now::before {
		display: none;
	}

	.mfds-fund-table .mfds-column-invest-now .mfds-button,
	.mfds-fund-table .mfds-column-invest-now a,
	.mfds-fund-table .mfds-column-invest-now button {
		box-sizing: border-box;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 46px;
		margin: 0;
		padding: 11px 18px;
		border-radius: 9px;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.3;
		text-align: center;
		text-decoration: none;
	}

	/*
	 * Remove the final divider from cells immediately before the button.
	 */
	.mfds-fund-table
		.mfds-table
		tbody
		td:nth-last-child(2) {
		border-bottom: 0;
	}

	/*
	 * Prevent desktop sticky rules from affecting cards.
	 */
	.mfds-fund-table .mfds-table tbody td,
	.mfds-fund-table .mfds-table tbody td:first-child {
		position: static !important;
		left: auto !important;
		max-width: none;
		box-shadow: none;
	}

}


/* Very small phones */

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

	.mfds-fund-table .mfds-table tbody tr {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-radius: 12px;
	}

	.mfds-fund-table .mfds-table tbody td {
		padding: 12px 13px;
	}

	.mfds-fund-table .mfds-column-fund-name {
		padding: 16px 14px 14px;
	}

	.mfds-fund-table .mfds-table__fund-name {
		font-size: 16px;
	}

	.mfds-fund-table .mfds-column-amc,
	.mfds-fund-table .mfds-column-category {
		grid-column: 1 / -1;
		border-right: 0;
	}

	.mfds-fund-table .mfds-column-amc {
		border-bottom: 1px solid #e8edf3;
	}

	.mfds-fund-table .mfds-column-invest-now {
		padding: 13px 14px 15px;
	}

}

/* ==========================================================================
   Phase 5.5 — Fund Explorer Professional Polish
   ========================================================================== */

/*
 * Shared design variables.
 * These can later be connected directly to the administrator colour settings.
 */
.mfds-fund-table {
	--mfds-primary: #2563eb;
	--mfds-primary-dark: #1d4ed8;
	--mfds-primary-soft: #eff6ff;
	--mfds-text: #0f172a;
	--mfds-muted: #64748b;
	--mfds-border: #dbe3ee;
	--mfds-surface: #ffffff;
	--mfds-surface-soft: #f8fafc;
	--mfds-positive: #15803d;
	--mfds-negative: #b91c1c;
}

/* Main explorer title */

.mfds-fund-table__title {
	margin-bottom: 18px;
	color: var(--mfds-text);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	letter-spacing: -0.025em;
}

/* Filter panel */

form.mfds-fund-filter {
	position: relative;
	margin: 0 0 26px;
	padding: 24px;
	border: 1px solid var(--mfds-border);
	border-radius: 14px;
	background:
		linear-gradient(
			180deg,
			#ffffff 0%,
			#fbfdff 100%
		);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.03),
		0 8px 24px rgba(15, 23, 42, 0.05);
}

/* Labels */

.mfds-fund-filter__search label,
.mfds-fund-filter__field label {
	margin-bottom: 7px;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

/* Search field */

.mfds-fund-filter__search {
	margin-bottom: 20px;
}

.mfds-fund-filter__search input {
	height: 48px;
	padding-right: 16px;
	padding-left: 16px;
	border-color: var(--mfds-border);
	border-radius: 8px;
	background: var(--mfds-surface);
	color: var(--mfds-text);
	font-size: 14px;
}

.mfds-fund-filter__search input:hover {
	border-color: #94a3b8;
}

.mfds-fund-filter__search input:focus {
	border-color: var(--mfds-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Filter dropdown grid */

.mfds-fund-filter__grid {
	gap: 16px;
	margin-bottom: 20px;
}

.mfds-fund-filter__field select,
.mfds-fund-filter .select2-container .select2-selection--single {
	height: 44px;
	border-color: var(--mfds-border);
	border-radius: 8px;
	background-color: var(--mfds-surface);
}

.mfds-fund-filter__field select:hover,
.mfds-fund-filter
	.select2-container
	.select2-selection--single:hover {
	border-color: #94a3b8;
}

.mfds-fund-filter__field select:focus,
.mfds-fund-filter
	.select2-container--focus
	.select2-selection--single,
.mfds-fund-filter
	.select2-container--open
	.select2-selection--single {
	border-color: var(--mfds-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Action area */

.mfds-fund-filter__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid #e8edf4;
}

/* Buttons */

.mfds-fund-filter .mfds-button {
	min-width: auto;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.mfds-fund-filter .mfds-button:hover {
	transform: translateY(-1px);
}

.mfds-fund-filter .mfds-button--primary {
	min-width: 150px;
	border-color: var(--mfds-primary);
	background: var(--mfds-primary);
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

.mfds-fund-filter .mfds-button--primary:hover {
	border-color: var(--mfds-primary-dark);
	background: var(--mfds-primary-dark);
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

.mfds-fund-filter .mfds-button--secondary {
	border-color: var(--mfds-border);
	background: #ffffff;
	color: #334155;
}

.mfds-fund-filter .mfds-button--secondary:hover {
	border-color: #94a3b8;
	background: #f8fafc;
	color: var(--mfds-text);
}

/* Disabled Excel button */

.mfds-fund-filter .mfds-export-button[disabled],
.mfds-fund-filter .mfds-export-button[aria-disabled="true"] {
	border-color: #e2e8f0;
	background: #f8fafc;
	color: #94a3b8;
	opacity: 1;
}

/* Results summary */

.mfds-fund-table__summary {
	margin: 0 0 12px;
	color: var(--mfds-muted);
	font-size: 13px;
	font-weight: 500;
}

/* Table container */

.mfds-table-wrap {
	margin: 0;
	border: 1px solid var(--mfds-border);
	border-radius: 10px;
	background: var(--mfds-surface);
	box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

/* Table base */

.mfds-table {
	border-collapse: separate;
	border-spacing: 0;
	background: var(--mfds-surface);
}

/* Table header */

.mfds-table th {
	padding: 13px 12px;
	border-top: 0;
	border-right: 1px solid var(--mfds-border);
	border-bottom: 1px solid var(--mfds-border);
	border-left: 0;
	background: #f1f5f9;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	vertical-align: middle;
}

.mfds-table th:first-child {
	border-left: 0;
}

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

/* Table cells */

.mfds-table td {
	padding: 14px 12px;
	border-top: 0;
	border-right: 1px solid #e5eaf1;
	border-bottom: 1px solid #e5eaf1;
	border-left: 0;
	color: #334155;
	font-size: 13px;
	line-height: 1.5;
	vertical-align: top;
}

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

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

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

.mfds-table tbody tr {
	transition:
		background-color 0.18s ease,
		box-shadow 0.18s ease;
}

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

/* Fund name hierarchy */

.mfds-table__fund-name {
	color: var(--mfds-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.mfds-table__meta {
	margin-top: 5px;
	color: var(--mfds-muted);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.4;
}

/* Return values */

.mfds-table__return {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mfds-table__return--positive {
	color: var(--mfds-positive);
}

.mfds-table__return--negative {
	color: var(--mfds-negative);
}

.mfds-table__return--neutral {
	color: #475569;
}

/* Invest Now button */

.mfds-invest-button,
.mfds-table .mfds-invest-now,
.mfds-table a[href].mfds-button {
	border-radius: 7px;
	box-shadow: 0 3px 8px rgba(37, 99, 235, 0.16);
	font-weight: 700;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background-color 0.18s ease;
}

.mfds-invest-button:hover,
.mfds-table .mfds-invest-now:hover,
.mfds-table a[href].mfds-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22);
}

/* Pagination */

.mfds-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
}

.mfds-pagination a,
.mfds-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--mfds-border);
	border-radius: 7px;
	background: #ffffff;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.mfds-pagination a:hover {
	border-color: var(--mfds-primary);
	background: var(--mfds-primary-soft);
	color: var(--mfds-primary-dark);
	text-decoration: none;
	transform: translateY(-1px);
}

.mfds-pagination .current,
.mfds-pagination [aria-current="page"] {
	border-color: var(--mfds-primary);
	background: var(--mfds-primary);
	color: #ffffff;
}

/* Tablet */

@media screen and (max-width: 992px) {
	form.mfds-fund-filter {
		padding: 20px;
	}

	.mfds-fund-filter__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mfds-fund-filter .mfds-button {
		width: 100%;
	}
}

/* Mobile */

@media screen and (max-width: 640px) {
	form.mfds-fund-filter {
		padding: 16px;
		border-radius: 12px;
	}

	.mfds-fund-filter__actions {
		display: flex;
		flex-direction: column;
		padding-top: 16px;
	}

	.mfds-fund-filter .mfds-button,
	.mfds-fund-filter .mfds-button--primary {
		width: 100%;
		min-width: 0;
	}

	.mfds-fund-table__title {
		margin-bottom: 14px;
	}

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

/* ==========================================================================
   Phase 5.5.2 — Fund Name and Metadata Polish
   ========================================================================== */

/* Make the fund name the strongest visual element in each row. */
.mfds-fund-table .mfds-column-fund-name .mfds-table__fund-name {
	display: block;
	color: var(--mfds-text, #0f172a);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

/* Refine the scheme-code metadata below the fund name. */
.mfds-fund-table .mfds-column-fund-name .mfds-table__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 7px;
	color: var(--mfds-muted, #64748b);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

/* Add a subtle visual marker before the scheme code. */
.mfds-fund-table .mfds-column-fund-name .mfds-table__meta::before {
	display: inline-block;
	width: 5px;
	height: 5px;
	flex: 0 0 5px;
	border-radius: 50%;
	background: currentColor;
	content: "";
	opacity: 0.55;
}

/* Improve spacing inside the first table column. */
.mfds-fund-table .mfds-table td.mfds-column-fund-name {
	padding-top: 16px;
	padding-bottom: 16px;
}

/* Keep the mobile card heading prominent. */
@media screen and (max-width: 640px) {
	.mfds-fund-table .mfds-column-fund-name .mfds-table__fund-name {
		font-size: 16px;
		line-height: 1.4;
	}

	.mfds-fund-table .mfds-column-fund-name .mfds-table__meta {
		margin-top: 8px;
		font-size: 11px;
	}
}

/* ==========================================================================
   Phase 5.5.3 — Return Value Presentation
   ========================================================================== */

/* Shared return-value appearance */
.mfds-fund-table .mfds-return,
.mfds-fund-table .mfds-table__return {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 62px;
	padding: 4px 7px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	transition:
		background-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease;
}

/* Positive returns */
.mfds-fund-table .mfds-return--positive,
.mfds-fund-table .mfds-table__return--positive {
	background: #f0fdf4;
	color: #15803d;
}

/* Negative returns */
.mfds-fund-table .mfds-return--negative,
.mfds-fund-table .mfds-table__return--negative {
	background: #fef2f2;
	color: #b91c1c;
}

/* Neutral or unavailable returns */
.mfds-fund-table .mfds-return--neutral,
.mfds-fund-table .mfds-table__return--neutral {
	background: #f8fafc;
	color: #64748b;
}

/* Very subtle emphasis when the table row is hovered */
.mfds-fund-table tbody tr:hover .mfds-return--positive,
.mfds-fund-table tbody tr:hover .mfds-table__return--positive {
	box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.12);
}

.mfds-fund-table tbody tr:hover .mfds-return--negative,
.mfds-fund-table tbody tr:hover .mfds-table__return--negative {
	box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.12);
}

.mfds-fund-table tbody tr:hover .mfds-return--neutral,
.mfds-fund-table tbody tr:hover .mfds-table__return--neutral {
	box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.12);
}

/* Align numerical return columns consistently */
.mfds-fund-table td[class*="mfds-column-return"] {
	text-align: right;
	vertical-align: middle;
}

/* Mobile card layout */
@media screen and (max-width: 640px) {
	.mfds-fund-table .mfds-return,
	.mfds-fund-table .mfds-table__return {
		min-width: 0;
		padding: 4px 8px;
		font-size: 13px;
	}

	.mfds-fund-table td[class*="mfds-column-return"] {
		text-align: right;
	}
}

/* ==========================================================================
   Phase 5.5.4 — Professional AJAX Loading Experience
   ========================================================================== */

/*
 * Keep the current results visible while a new request is loading.
 * A soft overlay prevents interaction without making the table disappear.
 */
.mfds-fund-table.is-loading .mfds-table-wrap {
	position: relative;
	min-height: 180px;
	overflow: hidden;
	pointer-events: none;
}

/* Soft translucent overlay */
.mfds-fund-table.is-loading .mfds-table-wrap::before {
	position: absolute;
	inset: 0;
	z-index: 40;
	border-radius: inherit;
	background: rgba(248, 250, 252, 0.82);
	backdrop-filter: blur(1px);
	content: "";
}

/* Modern loading indicator */
.mfds-fund-table.is-loading .mfds-table-wrap::after {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 41;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border: 4px solid #dbeafe;
	border-top-color: var(--mfds-primary, #2563eb);
	border-right-color: var(--mfds-primary, #2563eb);
	border-radius: 50%;
	content: "";
	animation: mfds-professional-spinner 0.75s linear infinite;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Slightly fade the existing results */
.mfds-fund-table.is-loading .mfds-table {
	opacity: 0.55;
	transition: opacity 0.18s ease;
}

/* Keep normal table transitions smooth after loading finishes */
.mfds-fund-table:not(.is-loading) .mfds-table {
	opacity: 1;
	transition: opacity 0.22s ease;
}

/* Loading status message */
.mfds-fund-table__ajax-status.is-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 8px 12px;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

/* Small animated dot beside the loading message */
.mfds-fund-table__ajax-status.is-loading::before {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: currentColor;
	content: "";
	animation: mfds-loading-pulse 1s ease-in-out infinite;
}

/* Hide empty success messages cleanly */
.mfds-fund-table__ajax-status:empty {
	display: none;
}

/* Spinner animation */
@keyframes mfds-professional-spinner {
	to {
		transform: rotate(360deg);
	}
}

/* Loading-message pulse */
@keyframes mfds-loading-pulse {
	0%,
	100% {
		opacity: 0.35;
		transform: scale(0.85);
	}

	50% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Mobile loading state */
@media screen and (max-width: 640px) {
	.mfds-fund-table.is-loading .mfds-table-wrap {
		min-height: 260px;
	}

	.mfds-fund-table.is-loading .mfds-table-wrap::after {
		width: 38px;
		height: 38px;
		margin: -19px 0 0 -19px;
		border-width: 3px;
	}

	.mfds-fund-table__ajax-status.is-loading {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

/* Accessibility: reduce movement when requested */
@media (prefers-reduced-motion: reduce) {
	.mfds-fund-table.is-loading .mfds-table-wrap::after {
		animation-duration: 1.5s;
	}

	.mfds-fund-table__ajax-status.is-loading::before {
		animation: none;
		opacity: 0.7;
	}

	.mfds-fund-table .mfds-table {
		transition: none;
	}
}

/* ==========================================================================
   Phase 5.5.4 — Final Mobile Card Spacing
   ========================================================================== */

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

	/* Slightly reduce the gap between separate fund cards. */
	.mfds-fund-table .mfds-table tbody tr {
		margin-bottom: 14px;
	}

	/* Compact all normal card cells. */
	.mfds-fund-table .mfds-table tbody td {
		padding: 12px 14px;
	}

	/* Keep the fund heading comfortable but not oversized. */
	.mfds-fund-table .mfds-column-fund-name {
		padding: 15px 14px 14px;
	}

	/*
	 * Remove the fixed heights responsible for the empty space
	 * in NAV and performance rows.
	 */
	.mfds-fund-table .mfds-column-nav,
	.mfds-fund-table .mfds-column-return,
	.mfds-fund-table .mfds-column-return-1y,
	.mfds-fund-table .mfds-column-return-3y,
	.mfds-fund-table .mfds-column-return-5y,
	.mfds-fund-table .mfds-column-return-since-inception {
		min-height: 0;
		padding-top: 13px;
		padding-bottom: 13px;
	}

	/* Mobile return-column alignment */
	@media screen and (max-width: 767px) {

		.mfds-fund-table .mfds-table tbody td.mfds-column-return-1y,
		.mfds-fund-table .mfds-table tbody td.mfds-column-return-3y,
		.mfds-fund-table .mfds-table tbody td.mfds-column-return-5y {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: flex-start;
			text-align: center;
		}

		.mfds-fund-table .mfds-column-return-1y::before,
		.mfds-fund-table .mfds-column-return-3y::before,
		.mfds-fund-table .mfds-column-return-5y::before {
			width: 100%;
			margin-bottom: 7px;
			text-align: center;
		}

		.mfds-fund-table .mfds-column-return-1y .mfds-return,
		.mfds-fund-table .mfds-column-return-1y .mfds-table__return,
		.mfds-fund-table .mfds-column-return-3y .mfds-return,
		.mfds-fund-table .mfds-column-return-3y .mfds-table__return,
		.mfds-fund-table .mfds-column-return-5y .mfds-return,
		.mfds-fund-table .mfds-column-return-5y .mfds-table__return {
			align-self: center;
			justify-content: center;
			margin: 0;
		}
	}

	/* Since Inception uses one compact, full-width row. */
	.mfds-fund-table .mfds-column-return-since-inception {
		grid-column: 1 / -1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 14px;
		border-right: 0;
		text-align: center;
	}

	.mfds-fund-table .mfds-column-return-since-inception::before {
		width: 100%;
		margin-bottom: 6px;
		text-align: center;
	}

	.mfds-fund-table
		.mfds-column-return-since-inception
		.mfds-table__return,
	.mfds-fund-table
		.mfds-column-return-since-inception
		.mfds-return {
		margin: 0 auto;
	}

	/* Remove the redundant mobile label above the action button. */
	.mfds-fund-table .mfds-column-invest-now::before {
		display: none;
	}

	/* Compact the button footer slightly. */
	.mfds-fund-table .mfds-column-invest-now {
		padding: 12px 14px 14px;
	}
}

/* ==========================================================================
   Mobile Card — Final Alignment Fix
   ========================================================================== */

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

	/* Full-width, compact and properly centred Since Inception field. */
	.mfds-fund-table
		.mfds-table
		tbody
		td.mfds-column-return-since-inception {
		grid-column: 1 / -1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 0;
		padding: 14px 16px;
		border-right: 0;
		text-align: center;
	}

	.mfds-fund-table
		.mfds-table
		tbody
		td.mfds-column-return-since-inception::before {
		display: block;
		width: 100%;
		margin: 0 0 7px;
		text-align: center;
	}

	.mfds-fund-table
		.mfds-table
		tbody
		td.mfds-column-return-since-inception
		.mfds-return,
	.mfds-fund-table
		.mfds-table
		tbody
		td.mfds-column-return-since-inception
		.mfds-table__return {
		align-self: center;
		justify-content: center;
		margin: 0;
	}

	/* Completely remove the redundant INVEST NOW field label. */
	.mfds-fund-table
		.mfds-table
		tbody
		td.mfds-column-invest-now::before {
		display: none !important;
		content: none !important;
	}

	/* Keep only the button in a compact footer. */
	.mfds-fund-table
		.mfds-table
		tbody
		td.mfds-column-invest-now {
		padding: 13px 16px 15px;
	}
}

/* ==========================================================================
   Related Funds — Collapsible Section
   ========================================================================== */

.mfds-related-funds {
	margin-top: 28px;
	padding: 0;
	overflow: hidden;
	background: #fff;
}

.mfds-related-funds__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 64px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.mfds-related-funds__summary::-webkit-details-marker {
	display: none;
}

.mfds-related-funds__summary::marker {
	display: none;
	content: "";
}

.mfds-related-funds__summary-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mfds-related-funds__title {
	font-size: 0.96rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.025em;
	color: #172033;
}

.mfds-related-funds__subtitle {
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.45;
	color: #75808a;
	opacity: 1;
}

.mfds-related-funds__toggle {
	position: relative;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 1px solid #d7e4da;
	border-radius: 50%;
	background: #f7faf8;
	color: #287d3b;
	opacity: 1;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.mfds-related-funds__summary:hover .mfds-related-funds__toggle {
	border-color: #b9d0bf;
	background: #eef6f0;
}

.mfds-related-funds__toggle::before,
.mfds-related-funds__toggle::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 2px;
	content: "";
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.mfds-related-funds__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.mfds-related-funds[open] .mfds-related-funds__toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.mfds-related-funds[open] .mfds-related-funds__summary {
	border-bottom: 1px solid #e7ece8;
}

.mfds-related-funds__summary:focus-visible {
	outline: 3px solid rgba(40, 125, 59, .18);
	outline-offset: -3px;
}

.mfds-related-funds__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	padding: 18px 20px 20px;
	background: #fbfcfb;
}

.mfds-related-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	padding: 16px;
	border: 1px solid #e4eae6;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .035);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mfds-related-card:hover {
	transform: translateY(-1px);
	border-color: #d6e3d9;
	box-shadow: 0 5px 16px rgba(16, 24, 40, .07);
}

.mfds-related-card__header {
	margin-bottom: 14px;
}

.mfds-related-card__amc {
	display: inline-flex;
	align-items: center;
	min-height: 23px;
	margin-bottom: 7px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f4f7f5;
	color: #68737c;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.3;
	opacity: 1;
}

.mfds-related-card__title {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 750;
	line-height: 1.45;
	color: #172033;
}

.mfds-related-card__title a {
	color: inherit;
	text-decoration: none;
}

.mfds-related-card__title a:hover,
.mfds-related-card__title a:focus-visible {
	color: #287d3b;
	text-decoration: none;
}

.mfds-related-card__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 13px;
	padding: 10px 11px;
	border: 1px solid #e7ece8;
	border-radius: 8px;
	background: #f8faf9;
}

.mfds-related-card__nav span {
	font-size: 0.68rem;
	font-weight: 600;
	color: #77818a;
	opacity: 1;
}

.mfds-related-card__nav strong {
	font-size: 0.9rem;
	font-weight: 800;
	color: #172033;
	white-space: nowrap;
}

.mfds-related-card__returns {
	display: grid;
	gap: 0;
	margin-bottom: 16px;
	border-top: 1px solid #edf0ee;
}

.mfds-related-card__returns > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 32px;
	padding: 6px 1px;
	border-bottom: 1px solid #edf0ee;
}

.mfds-related-card__returns span {
	font-size: 0.7rem;
	font-weight: 600;
	color: #7a838c;
	opacity: 1;
}

.mfds-related-card__returns strong {
	font-size: 0.75rem;
	font-weight: 800;
	white-space: nowrap;
}

.mfds-related-card__button {
	width: 100%;
	min-height: 37px;
	margin-top: auto;
	text-align: center;
	font-size: 0.74rem;
}

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

	.mfds-related-funds__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

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

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

	.mfds-related-funds {
		margin-top: 22px;
	}

	.mfds-related-funds__summary {
		min-height: 58px;
		padding: 15px 14px;
	}

	.mfds-related-funds__title {
		font-size: 0.9rem;
	}

	.mfds-related-funds__subtitle {
		font-size: 0.7rem;
	}

	.mfds-related-funds__toggle {
		width: 30px;
		height: 30px;
	}

	.mfds-related-funds__grid {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 12px;
	}

	.mfds-related-card {
		padding: 15px;
	}

	.mfds-related-card__title {
		font-size: 0.84rem;
	}
}

/*
|--------------------------------------------------------------------------
| Fund Compare Button
|--------------------------------------------------------------------------
*/

.mfds-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.mfds-compare-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--mfds-primary, currentColor);
	border-radius: 8px;
	background: transparent;
	color: var(--mfds-primary, inherit);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.mfds-compare-button:hover {
	transform: translateY(-1px);
}

.mfds-compare-button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.mfds-compare-button.is-added {
	background: var(--mfds-primary, currentColor);
	color: var(--mfds-button-text, #fff);
}

.mfds-compare-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 16px;
	line-height: 1;
}

.mfds-compare-message {
	flex-basis: 100%;
	min-height: 20px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.mfds-compare-message:empty {
	display: none;
}

@media (max-width: 600px) {
	.mfds-hero__actions {
		align-items: stretch;
	}

	.mfds-compare-button {
		width: 100%;
	}
}

/*
|--------------------------------------------------------------------------
| Floating Compare Bar
|--------------------------------------------------------------------------
*/

.mfds-compare-bar {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 9999;

	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 12px;

	box-shadow:
		0 10px 30px rgba(0,0,0,.12);

	padding: 16px 20px;
}

.mfds-compare-bar__inner{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:20px;
	flex-wrap:wrap;
}

.mfds-compare-bar__summary{
	display:flex;
	align-items:center;
	gap:10px;
	font-size:16px;
	font-weight:600;
}

.mfds-compare-bar__icon{
	font-size:20px;
}

.mfds-compare-bar__actions{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
}

.mfds-compare-bar__actions button{

	cursor:pointer;

	border-radius:8px;

	padding:10px 18px;

	font:inherit;

	font-weight:600;

	border:1px solid #2271b1;

	background:#fff;

	color:#2271b1;

	transition:.2s;
}

.mfds-compare-bar__actions button:hover{

	background:#2271b1;

	color:#fff;

}

.mfds-compare-bar__compare:disabled{

	opacity:.45;

	cursor:not-allowed;

	background:#fff;

	color:#2271b1;

}

@media (max-width:768px){

	.mfds-compare-bar{

		left:12px;
		right:12px;
		bottom:12px;

	}

	.mfds-compare-bar__inner{

		flex-direction:column;
		align-items:flex-start;

	}

	.mfds-compare-bar__actions{

		width:100%;

	}

	.mfds-compare-bar__actions button{

		flex:1;

	}

}

/*
|--------------------------------------------------------------------------
| Mutual Fund Comparison Page
|--------------------------------------------------------------------------
*/

.mfds-compare-page {
	padding: 48px 0 72px;
}

.mfds-compare-page__header {
	margin-bottom: 30px;
}

.mfds-compare-page__header h1 {
	margin: 0 0 10px;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.15;
}

.mfds-compare-page__header p {
	max-width: 760px;
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
}

.mfds-compare-selection {
	padding: 24px;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 14px;
	background: var(--mfds-surface, #ffffff);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.mfds-compare-selection__title {
	margin: 0 0 20px;
	font-size: 24px;
	line-height: 1.3;
}

.mfds-compare-status {
	margin-bottom: 16px;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
}

.mfds-compare-status:empty {
	display: none;
}

.mfds-compare-status.is-loading {
	color: var(--mfds-text-muted, #50575e);
}

.mfds-compare-status.is-success {
	color: var(--mfds-success, #008a20);
}

.mfds-compare-status.is-error {
	padding: 12px 14px;
	border: 1px solid var(--mfds-error, #b32d2e);
	border-radius: 8px;
	color: var(--mfds-error, #b32d2e);
	background: var(--mfds-error-soft, #fcf0f1);
}

.mfds-compare-empty {
	padding: 28px;
	border: 1px dashed var(--mfds-border, #c3c4c7);
	border-radius: 10px;
	text-align: center;
}

.mfds-compare-empty p {
	margin: 0 0 16px;
	font-size: 17px;
}

.mfds-compare-empty__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--mfds-primary, #2271b1);
	color: var(--mfds-button-text, #ffffff);
	font-weight: 600;
	text-decoration: none;
}

.mfds-compare-empty__back:hover,
.mfds-compare-empty__back:focus {
	color: var(--mfds-button-text, #ffffff);
	text-decoration: none;
}

.mfds-compare-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 10px;
	-webkit-overflow-scrolling: touch;
}

.mfds-compare-table-wrap:focus-visible {
	outline: 3px solid var(--mfds-primary, #2271b1);
	outline-offset: 3px;
}

.mfds-compare-table {
	width: 100%;
	min-width: 840px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	background: var(--mfds-surface, #ffffff);
}

.mfds-compare-table th,
.mfds-compare-table td {
	padding: 15px 16px;
	border-right: 1px solid var(--mfds-border, #dcdcde);
	border-bottom: 1px solid var(--mfds-border, #dcdcde);
	vertical-align: top;
	text-align: left;
	overflow-wrap: anywhere;
}

.mfds-compare-table tr > :last-child {
	border-right: 0;
}

.mfds-compare-table tbody tr:last-child > * {
	border-bottom: 0;
}

.mfds-compare-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--mfds-table-heading-bg, #f6f7f7);
}

.mfds-compare-table__feature-heading,
.mfds-compare-table__feature {
	width: 190px;
	min-width: 190px;
	font-weight: 700;
}

.mfds-compare-table__feature-heading {
	left: 0;
	z-index: 4;
}

.mfds-compare-table__feature {
	position: sticky;
	left: 0;
	z-index: 1;
	background: var(--mfds-table-feature-bg, #f9f9f9);
}

.mfds-compare-table__fund-heading {
	min-width: 215px;
}

.mfds-compare-table__fund-heading-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.mfds-compare-table__fund-link,
.mfds-compare-table__fund-name {
	display: block;
	color: var(--mfds-primary, #2271b1);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
}

.mfds-compare-table__fund-link {
	text-decoration: none;
}

.mfds-compare-table__fund-link:hover,
.mfds-compare-table__fund-link:focus {
	text-decoration: underline;
}

.mfds-compare-table__remove {
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid var(--mfds-error, #b32d2e);
	border-radius: 7px;
	background: transparent;
	color: var(--mfds-error, #b32d2e);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.mfds-compare-table__remove:hover {
	background: var(--mfds-error, #b32d2e);
	color: #ffffff;
}

.mfds-compare-table__remove:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.mfds-compare-table__value {
	color: var(--mfds-text, #1d2327);
	font-size: 15px;
	line-height: 1.55;
}

.mfds-compare-table__row:nth-child(even)
	.mfds-compare-table__value {
	background: var(--mfds-table-stripe, #fcfcfc);
}

.mfds-compare-table__row--return
	.mfds-compare-table__feature,
.mfds-compare-table__row--return
	.mfds-compare-table__value {
	font-weight: 700;
}

.mfds-compare-page__disclaimer {
	margin: 18px 0 0;
	color: var(--mfds-text-muted, #646970);
	font-size: 13px;
	line-height: 1.55;
}

@media (max-width: 782px) {

	.mfds-compare-page {
		padding: 32px 0 56px;
	}

	.mfds-compare-selection {
		padding: 16px;
	}

	.mfds-compare-table {
		min-width: 760px;
	}

	.mfds-compare-table th,
	.mfds-compare-table td {
		padding: 13px;
	}

	.mfds-compare-table__feature-heading,
	.mfds-compare-table__feature {
		width: 155px;
		min-width: 155px;
	}
}

/* =========================================================
   Compare Performance Chart
   ========================================================= */

.mfds-compare-chart-section {
	margin: 0 0 32px;
	padding: 28px;
	background: var(--mfds-surface-color, #ffffff);
	border: 1px solid var(--mfds-border-color, #dfe3e8);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.mfds-compare-chart-section[hidden] {
	display: none;
}

.mfds-compare-chart-section__header {
	margin-bottom: 22px;
	text-align: center;
}

.mfds-compare-chart-section__title {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 2.5vw, 1.8rem);
	line-height: 1.3;
	color: var(--mfds-heading-color, #172033);
}

.mfds-compare-chart-section__description {
	max-width: 760px;
	margin: 0 auto;
	color: var(--mfds-text-muted-color, #5f6b7a);
	line-height: 1.7;
}

.mfds-compare-chart-status {
	margin-bottom: 14px;
	text-align: center;
	font-size: 0.94rem;
}

.mfds-compare-chart-status:empty {
	display: none;
}

.mfds-compare-chart-status.is-error {
	color: var(--mfds-error-color, #b42318);
}

.mfds-compare-chart-card {
	position: relative;
	min-height: 390px;
	padding: 18px;
	overflow: hidden;
	background: var(--mfds-chart-background-color, #ffffff);
	border: 1px solid var(--mfds-border-color, #e1e6ec);
	border-radius: 12px;
}

.mfds-compare-chart-canvas-wrap {
	position: relative;
	width: 100%;
	height: 420px;
	min-height: 320px;
}

.mfds-compare-chart {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: pan-y;
}

.mfds-compare-chart-loading,
.mfds-compare-chart-empty {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px;
	text-align: center;
	background: rgba(255, 255, 255, 0.92);
	color: var(--mfds-text-muted-color, #5f6b7a);
}

.mfds-compare-chart-loading[hidden],
.mfds-compare-chart-empty[hidden] {
	display: none;
}

.mfds-compare-chart-loading__spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--mfds-border-color, #d8dee6);
	border-top-color: var(--mfds-primary-color, #2563eb);
	border-radius: 50%;
	animation: mfds-compare-chart-spin 0.75s linear infinite;
}

@keyframes mfds-compare-chart-spin {
	to {
		transform: rotate(360deg);
	}
}

.mfds-compare-chart-tooltip {
	position: absolute;
	z-index: 8;
	min-width: 180px;
	max-width: 280px;
	padding: 10px 12px;
	pointer-events: none;
	background: rgba(15, 23, 42, 0.94);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
	color: #ffffff;
	font-size: 0.84rem;
	line-height: 1.5;
}

.mfds-compare-chart-tooltip[hidden] {
	display: none;
}

.mfds-compare-chart-period {
	margin-top: 22px;
	text-align: center;
}

.mfds-compare-chart-period__label {
	margin: 0 0 10px;
	font-weight: 700;
	color: var(--mfds-heading-color, #172033);
}

.mfds-compare-chart-periods {
	display: inline-grid;
	grid-template-columns: repeat(5, minmax(54px, 1fr));
	overflow: hidden;
	border: 1px solid var(--mfds-border-color, #d8dee6);
	border-radius: 10px;
	background: var(--mfds-surface-muted-color, #f7f9fc);
}

.mfds-compare-chart-periods__button {
	min-height: 42px;
	padding: 8px 16px;
	border: 0;
	border-right: 1px solid var(--mfds-border-color, #d8dee6);
	background: transparent;
	color: var(--mfds-text-color, #344054);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color 0.18s ease,
		color 0.18s ease;
}

.mfds-compare-chart-periods__button:last-child {
	border-right: 0;
}

.mfds-compare-chart-periods__button:hover {
	background: var(--mfds-hover-color, #edf3ff);
}

.mfds-compare-chart-periods__button.is-active,
.mfds-compare-chart-periods__button[aria-pressed="true"] {
	background: var(--mfds-primary-color, #2563eb);
	color: var(--mfds-primary-contrast-color, #ffffff);
}

.mfds-compare-chart-periods__button:focus-visible {
	position: relative;
	z-index: 2;
	outline: 3px solid
		color-mix(
			in srgb,
			var(--mfds-primary-color, #2563eb) 35%,
			transparent
		);
	outline-offset: -3px;
}

.mfds-compare-chart-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
	margin-top: 20px;
}

.mfds-compare-chart-legend:empty {
	display: none;
}

.mfds-compare-chart-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--mfds-text-color, #344054);
	font-size: 0.9rem;
}

.mfds-compare-chart-legend__marker {
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.mfds-compare-performance-summary {
	margin-top: 28px;
}

.mfds-compare-performance-summary[hidden] {
	display: none;
}

.mfds-compare-performance-summary__title {
	margin: 0 0 16px;
	text-align: center;
	font-size: 1.2rem;
	color: var(--mfds-heading-color, #172033);
}

.mfds-compare-performance-summary__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.mfds-compare-performance-card {
	margin: 0;
	padding: 18px;
	background: var(--mfds-surface-muted-color, #f7f9fc);
	border: 1px solid var(--mfds-border-color, #e1e6ec);
	border-radius: 10px;
	text-align: center;
}

.mfds-compare-performance-card__label {
	margin: 0 0 9px;
	color: var(--mfds-text-muted-color, #667085);
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mfds-compare-performance-card__fund {
	margin: 0 0 8px;
	color: var(--mfds-heading-color, #172033);
	font-weight: 700;
	line-height: 1.45;
}

.mfds-compare-performance-card__value {
	margin: 0;
	color: var(--mfds-primary-color, #2563eb);
	font-size: 1.35rem;
	font-weight: 800;
}

.mfds-compare-performance-card__note {
	margin: 7px 0 0;
	color: var(--mfds-text-muted-color, #667085);
	font-size: 0.78rem;
	line-height: 1.45;
}

@media (max-width: 900px) {

	.mfds-compare-performance-summary__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {

	.mfds-compare-chart-section {
		padding: 20px 14px;
		border-radius: 10px;
	}

	.mfds-compare-chart-card {
		min-height: 320px;
		padding: 10px;
	}

	.mfds-compare-chart-canvas-wrap {
		height: 330px;
		min-height: 280px;
	}

	.mfds-compare-chart-periods {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.mfds-compare-chart-periods__button {
		min-width: 0;
		padding-right: 6px;
		padding-left: 6px;
		font-size: 0.84rem;
	}

	.mfds-compare-performance-summary__grid {
		grid-template-columns: 1fr;
	}
}

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

	.mfds-compare-chart-loading__spinner {
		animation-duration: 1.5s;
	}
}

/* Compare chart fund-line palette. */
.mfds-compare-chart-section {
	--mfds-chart-color-1: var(
		--mfds-primary-color,
		#2563eb
	);

	--mfds-chart-color-2: var(
		--mfds-success-color,
		#16a34a
	);

	--mfds-chart-color-3: var(
		--mfds-accent-color,
		#ea580c
	);

	--mfds-chart-color-4: var(
		--mfds-secondary-color,
		#9333ea
	);
}

.mfds-compare-chart-legend__label{
	font-size:.9rem;
	line-height:1.45;
	color:var(--mfds-text-color,#344054);
	word-break:break-word;
}

.mfds-compare-chart-legend__item{
	padding:6px 10px;
	border-radius:6px;
	transition:background-color .2s ease;
	cursor:default;
}

.mfds-compare-chart-legend__item:hover{
	background:rgba(0,0,0,.04);
}

/* Compare chart interactive tooltip. */
.mfds-compare-chart-section {
	position: relative;
}

.mfds-compare-chart-tooltip {
	position: absolute;
	z-index: 20;
	width: min(310px, calc(100% - 24px));
	padding: 12px 14px;
	border: 1px solid
		var(--mfds-border-color, #d0d5dd);
	border-radius: 10px;
	background:
		var(--mfds-chart-background-color, #ffffff);
	box-shadow:
		0 10px 30px rgba(16, 24, 40, 0.16);
	color:
		var(--mfds-text-color, #101828);
	pointer-events: none;
	transform: translateZ(0);
}

.mfds-compare-chart-tooltip[hidden] {
	display: none;
}

.mfds-compare-chart-tooltip__date {
	margin-bottom: 9px;
	padding-bottom: 8px;
	border-bottom: 1px solid
		var(--mfds-border-color, #eaecf0);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.4;
	color:
		var(--mfds-text-muted-color, #667085);
	letter-spacing: 0.01em;
}

.mfds-compare-chart-tooltip__list {
	display: grid;
	gap: 8px;
}

.mfds-compare-chart-tooltip__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	min-width: 0;
}

.mfds-compare-chart-tooltip__identity {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.mfds-compare-chart-tooltip__marker {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-top: 5px;
	border-radius: 50%;
	box-shadow:
		0 0 0 2px
		var(--mfds-chart-background-color, #ffffff);
}

.mfds-compare-chart-tooltip__name {
	min-width: 0;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.4;
	color:
		var(--mfds-text-color, #344054);
	overflow-wrap: anywhere;
}

.mfds-compare-chart-tooltip__value {
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.4;
	color:
		var(--mfds-heading-color, #101828);
	white-space: nowrap;
}

@media (max-width: 600px) {

	.mfds-compare-chart-tooltip {
		padding: 10px 12px;
	}

	.mfds-compare-chart-tooltip__item {
		gap: 10px;
	}

	.mfds-compare-chart-tooltip__name,
	.mfds-compare-chart-tooltip__value {
		font-size: 0.76rem;
	}
}

/* Compare chart keyboard and touch accessibility. */
#mfds-compare-chart {
	outline: none;
	touch-action: pan-y;
}

#mfds-compare-chart:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 4px;
	border-radius: 6px;
}

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

	.mfds-compare-chart-section *,
	.mfds-compare-chart-section *::before,
	.mfds-compare-chart-section *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/*--------------------------------------------------------------
# Compare Share
--------------------------------------------------------------*/

.mfds-compare-chart-actions{

	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	margin:20px 0;
	flex-wrap:wrap;
}

.mfds-share-status{

	font-size:14px;
	color:var(
		--mfds-text-muted-color,
		#667085
	);
}

@media (max-width:640px){

	.mfds-compare-chart-actions{

		flex-direction:column;
		align-items:flex-start;
	}
}

.mfds-share-status.is-error {
	color: var(
		--mfds-error-color,
		#b42318
	);
}

/*
 * Visible, non-blocking confirmation for Compare sharing.
 * The existing inline status remains in place for accessibility.
 */
.mfds-share-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 999999;
	max-width: min(360px, calc(100vw - 32px));
	padding: 12px 16px;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 10px;
	background: var(--mfds-surface, #ffffff);
	color: var(--mfds-text, #1d2327);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	transition:
		opacity 160ms ease,
		transform 160ms ease;
}

.mfds-share-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.mfds-share-toast.is-error {
	border-color: var(--mfds-error-color, #b42318);
	color: var(--mfds-error-color, #b42318);
}

@media (max-width: 640px) {

	.mfds-share-toast {
		top: 16px;
		right: 16px;
		left: 16px;
		max-width: none;
	}
}

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

	.mfds-share-toast {
		transition: none;
	}
}

/* =========================================================
   Module 9.5.6A.1 — Compare Workspace Fund Selector
   ========================================================= */

.mfds-compare-empty {
	padding: 0;
	border: 0;
	border-radius: 16px;
	text-align: left;
	background: transparent;
}

.mfds-compare-selector {
	overflow: hidden;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 16px;
	background: var(--mfds-surface, #ffffff);
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.mfds-compare-selector__header {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 26px;
	border-bottom: 1px solid var(--mfds-border, #e2e8f0);
	background: var(--mfds-surface-soft, #f8fafc);
}

.mfds-compare-selector__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	color: var(--mfds-primary, #2271b1);
	background: var(--mfds-primary-soft, #eaf4fb);
}

.mfds-compare-selector__heading {
	min-width: 0;
}

.mfds-compare-selector__heading h3 {
	margin: 0 0 7px;
	color: var(--mfds-text, #1d2327);
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.25;
}

.mfds-compare-selector__description {
	max-width: 720px;
	margin: 0;
	color: var(--mfds-text-muted, #646970);
	font-size: 15px;
	line-height: 1.65;
}

.mfds-compare-selector__body {
	display: grid;
	grid-template-columns:
		minmax(0, 1.15fr)
		minmax(280px, 0.85fr);
	gap: 0;
}

.mfds-compare-selector__search,
.mfds-compare-selector__selected {
	min-width: 0;
	padding: 26px;
}

.mfds-compare-selector__search {
	border-right: 1px solid var(--mfds-border, #e2e8f0);
}

.mfds-compare-selector__label {
	display: block;
	margin: 0 0 9px;
	color: var(--mfds-text, #1d2327);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.mfds-compare-selector__search-field {
	position: relative;
}

.mfds-compare-selector__search-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--mfds-text-muted, #646970);
	transform: translateY(-50%);
	pointer-events: none;
}

.mfds-compare-selector__input {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 11px 48px 11px 46px;
	border: 1px solid var(--mfds-border, #c3c4c7);
	border-radius: 10px;
	color: var(--mfds-text, #1d2327);
	background: var(--mfds-surface, #ffffff);
	font: inherit;
	line-height: 1.4;
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.mfds-compare-selector__input::placeholder {
	color: var(--mfds-text-muted, #7a828a);
	opacity: 1;
}

.mfds-compare-selector__input:hover {
	border-color: var(--mfds-primary, #2271b1);
}

.mfds-compare-selector__input:focus {
	border-color: var(--mfds-primary, #2271b1);
	outline: 0;
	box-shadow:
		0 0 0 3px
		var(--mfds-focus-soft, rgba(34, 113, 177, 0.16));
}

.mfds-compare-selector__spinner {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid var(--mfds-border, #dcdcde);
	border-top-color: var(--mfds-primary, #2271b1);
	border-radius: 50%;
	animation: mfds-compare-selector-spin 700ms linear infinite;
}

@keyframes mfds-compare-selector-spin {

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

.mfds-compare-selector__help {
	margin: 9px 0 0;
	color: var(--mfds-text-muted, #646970);
	font-size: 13px;
	line-height: 1.5;
}

.mfds-compare-search-results {
	position: relative;
	z-index: 5;
	max-height: 320px;
	margin-top: 10px;
	overflow-y: auto;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 10px;
	background: var(--mfds-surface, #ffffff);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.mfds-compare-search-status {
	margin-top: 10px;
	color: var(--mfds-text-muted, #646970);
	font-size: 13px;
	line-height: 1.5;
}

.mfds-compare-search-status:empty {
	display: none;
}

.mfds-compare-selector__selected-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.mfds-compare-selector__selected-header h4 {
	margin: 0;
	color: var(--mfds-text, #1d2327);
	font-size: 17px;
	line-height: 1.4;
}

.mfds-compare-selector__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	min-height: 30px;
	padding: 4px 10px;
	border-radius: 999px;
	color: var(--mfds-primary, #2271b1);
	background: var(--mfds-primary-soft, #eaf4fb);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.mfds-compare-selected-funds {
	display: grid;
	gap: 10px;
}

.mfds-compare-selected-funds__empty {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 96px;
	padding: 18px;
	border: 1px dashed var(--mfds-border, #c3c4c7);
	border-radius: 10px;
	color: var(--mfds-text-muted, #646970);
	background: var(--mfds-surface-soft, #f8fafc);
}

.mfds-compare-selected-funds__empty-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--mfds-border, #c3c4c7);
	border-radius: 50%;
	color: var(--mfds-primary, #2271b1);
	background: var(--mfds-surface, #ffffff);
	font-size: 22px;
	line-height: 1;
}

.mfds-compare-selected-funds__empty p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.mfds-compare-selector__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 26px;
	border-top: 1px solid var(--mfds-border, #e2e8f0);
	background: var(--mfds-surface-soft, #f8fafc);
}

.mfds-compare-selector__requirement {
	margin: 0;
	color: var(--mfds-text-muted, #646970);
	font-size: 14px;
	line-height: 1.5;
}

.mfds-compare-selector__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

#mfds-compare-selected-button:disabled,
#mfds-compare-selected-button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.52;
	box-shadow: none;
}

@media (max-width: 900px) {

	.mfds-compare-selector__body {
		grid-template-columns: 1fr;
	}

	.mfds-compare-selector__search {
		border-right: 0;
		border-bottom: 1px solid
			var(--mfds-border, #e2e8f0);
	}
}

@media (max-width: 640px) {

	.mfds-compare-selector__header {
		gap: 14px;
		padding: 20px;
	}

	.mfds-compare-selector__icon {
		width: 46px;
		height: 46px;
		border-radius: 12px;
	}

	.mfds-compare-selector__icon svg {
		width: 27px;
		height: 27px;
	}

	.mfds-compare-selector__search,
	.mfds-compare-selector__selected {
		padding: 20px;
	}

	.mfds-compare-selector__footer {
		align-items: stretch;
		flex-direction: column;
		padding: 20px;
	}

	.mfds-compare-selector__actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.mfds-compare-selector__actions .mfds-button {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

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

	.mfds-compare-selector__input {
		transition: none;
	}

	.mfds-compare-selector__spinner {
		animation-duration: 1400ms;
	}
}

.mfds-compare-search-status.is-error {
	color: var(
		--mfds-error-color,
		#b42318
	);
}

/* =========================================================
   Module 9.5.6A.3 — Compare Search Results
   ========================================================= */

.mfds-compare-search-results {
	padding: 6px;
}

.mfds-compare-search-result {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 14px;
	border: 0;
	border-radius: 8px;
	color: var(--mfds-text, #1d2327);
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
	transition:
		background-color 150ms ease,
		box-shadow 150ms ease;
}

.mfds-compare-search-result + 
.mfds-compare-search-result {
	margin-top: 2px;
}

.mfds-compare-search-result:hover,
.mfds-compare-search-result.is-active,
.mfds-compare-search-result:focus-visible {
	background:
		var(
			--mfds-primary-soft,
			#eaf4fb
		);
}

.mfds-compare-search-result:focus {
	outline: 0;
}

.mfds-compare-search-result:focus-visible {
	box-shadow:
		inset 0 0 0 2px
		var(--mfds-primary, #2271b1);
}

.mfds-compare-search-result__main {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
}

.mfds-compare-search-result__name {
	display: block;
	color: var(--mfds-text, #1d2327);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.mfds-compare-search-result__meta,
.mfds-compare-search-result__details {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 5px;
	flex-wrap: wrap;
	color:
		var(
			--mfds-text-muted,
			#646970
		);
	font-size: 12px;
	line-height: 1.45;
}

.mfds-compare-search-result__meta > span,
.mfds-compare-search-result__details > span {
	display: inline-flex;
	align-items: center;
}

.mfds-compare-search-result__meta >
	span:not(:last-child)::after,
.mfds-compare-search-result__details >
	span:not(:last-child)::after {
	content: "•";
	margin-left: 7px;
	color:
		var(
			--mfds-border,
			#c3c4c7
		);
}

.mfds-compare-search-result__action {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 78px;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid
		var(--mfds-primary, #2271b1);
	border-radius: 999px;
	color: var(--mfds-primary, #2271b1);
	background: var(--mfds-surface, #ffffff);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.mfds-compare-search-result.is-selected
	.mfds-compare-search-result__action {
	border-color:
		var(
			--mfds-success-color,
			#218739
		);
	color:
		var(
			--mfds-success-color,
			#218739
		);
	background:
		var(
			--mfds-success-soft,
			#edf8f0
		);
}

.mfds-compare-search-result.is-selected
	.mfds-compare-search-result__action::before {
	content: "✓";
	margin-right: 5px;
}

.mfds-compare-search-result.is-disabled {
	cursor: not-allowed;
	opacity: 0.62;
}

.mfds-compare-search-result.is-disabled
	.mfds-compare-search-result__action {
	border-color:
		var(
			--mfds-border,
			#c3c4c7
		);
	color:
		var(
			--mfds-text-muted,
			#646970
		);
	background:
		var(
			--mfds-surface-soft,
			#f8fafc
		);
}

@media (max-width: 640px) {

	.mfds-compare-search-result {
		align-items: flex-start;
		gap: 10px;
		padding: 12px;
	}

	.mfds-compare-search-result__action {
		min-width: 66px;
		padding-right: 9px;
		padding-left: 9px;
	}

	.mfds-compare-search-result__meta,
	.mfds-compare-search-result__details {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.mfds-compare-search-result__meta >
		span:not(:last-child)::after,
	.mfds-compare-search-result__details >
		span:not(:last-child)::after {
		display: none;
	}
}

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

	.mfds-compare-search-result {
		transition: none;
	}
}

/* =========================================================
   Module 9.5.6A.4.1 — Selected Fund Cards
   ========================================================= */

.mfds-compare-selected-fund{

    display:flex;
    align-items:center;

    gap:10px;

    padding:8px 14px;

    margin:0;

    border:1px solid #dbe4ef;

    border-radius:999px;

    background:#fff;

    box-shadow:none;

    min-height:42px;

    transition:.2s ease;
}

.mfds-compare-selected-fund:hover{

    border-color:#0d6efd;

    transform:translateY(-1px);
}

.mfds-compare-selected-fund__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color:
		var(--mfds-primary, #2271b1);
	background:
		var(--mfds-primary-soft, #eaf4fb);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.mfds-compare-selected-fund__content{

    flex:1;

    min-width:0;
}
.mfds-compare-selected-fund__name {
	display: block;
	margin: 0;
	overflow-wrap: anywhere;
	color:
		var(--mfds-text, #1d2327);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none;
}

a.mfds-compare-selected-fund__name:hover {
	color:
		var(--mfds-primary, #2271b1);
	text-decoration: underline;
}

a.mfds-compare-selected-fund__name:focus-visible {
	border-radius: 3px;
	outline:
		2px solid
		var(--mfds-primary, #2271b1);
	outline-offset: 3px;
}

.mfds-compare-selected-fund__meta,
.mfds-compare-selected-fund__details {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 5px;
	flex-wrap: wrap;
	color:
		var(--mfds-text-muted, #646970);
	font-size: 12px;
	line-height: 1.45;
}

.mfds-compare-selected-fund__meta >
	span:not(:last-child)::after,
.mfds-compare-selected-fund__details >
	span:not(:last-child)::after {
	content: "•";
	margin-left: 7px;
	color:
		var(--mfds-border, #c3c4c7);
}

.mfds-compare-selected-fund__remove{

    flex-shrink:0;

    width:26px;

    height:26px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;
}

.mfds-compare-selected-fund__remove:hover {
	border-color:
		var(--mfds-error-soft-border, #f3b7b2);
	background:
		var(--mfds-error-soft, #fff1f0);
}

.mfds-compare-selected-fund__remove:focus-visible {
	border-color:
		var(--mfds-error-color, #b42318);
	outline:
		2px solid
		var(--mfds-error-color, #b42318);
	outline-offset: 2px;
}

.mfds-compare-selected-fund__remove >
	[aria-hidden="true"] {
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.mfds-compare-selected-funds__remaining {
	margin: 2px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	color:
		var(--mfds-text-muted, #646970);
	background:
		var(--mfds-surface-soft, #f8fafc);
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

.mfds-compare-selected-funds__remaining.is-complete {
	color:
		var(--mfds-success-color, #218739);
	background:
		var(--mfds-success-soft, #edf8f0);
	font-weight: 700;
}

@media (max-width: 640px) {

	.mfds-compare-selected-fund {
		grid-template-columns:
			32px
			minmax(0, 1fr);
	}

	.mfds-compare-selected-fund__remove {
		grid-column: 2;
		justify-self: start;
		margin-top: 2px;
	}

	.mfds-compare-selected-fund__meta,
	.mfds-compare-selected-fund__details {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.mfds-compare-selected-fund__meta >
		span:not(:last-child)::after,
	.mfds-compare-selected-fund__details >
		span:not(:last-child)::after {
		display: none;
	}
}

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

	.mfds-compare-selected-fund__remove {
		transition: none;
	}
}

/* =========================================================
   Compare Workspace — Compact Active Comparison Mode
   ========================================================= */

.mfds-compare-selector.is-comparison-active {
	overflow: visible;
	border-radius: 12px;
	box-shadow:
		0 4px 18px
		rgba(15, 23, 42, 0.06);
}

/*
 * Compact the large onboarding header once comparison begins.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__header {
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	background:
		var(--mfds-surface, #ffffff);
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__icon svg {
	width: 22px;
	height: 22px;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__heading h3 {
	margin: 0 0 2px;
	font-size: 17px;
	line-height: 1.3;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__description {
	font-size: 13px;
	line-height: 1.4;
}

/*
 * Put selected funds first and search second.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__body {
	display: flex;
	flex-direction: column-reverse;
}

/*
 * Compact both sections.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__search,
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__selected {
	padding: 16px 18px;
}

/*
 * Selected funds become the prominent active summary.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__selected {
	border-bottom:
		1px solid
		var(--mfds-border, #e2e8f0);
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__selected-header {
	margin-bottom: 10px;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__selected-header h4 {
	font-size: 14px;
}

/*
 * Display selected cards in a compact responsive row.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-funds {
	display: flex;
	align-items: stretch;
	gap: 8px;
	flex-wrap: wrap;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-fund {
	flex:
		1 1
		calc(50% - 8px);
	min-width: 260px;
	padding: 10px 11px;
	grid-template-columns:
		26px
		minmax(0, 1fr)
		auto;
	gap: 8px;
	border-radius: 8px;
	box-shadow: none;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-fund__number {
	width: 24px;
	height: 24px;
	font-size: 11px;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-fund__name {
	font-size: 13px;
	line-height: 1.35;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-fund__meta{

    display:none;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-fund__details {
	display: none;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-fund__remove {
	min-height: 26px;
	padding: 3px 6px;
	font-size: 11px;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-fund__remove-text {
	display: none;
}

/*
 * The remaining-count message should not occupy a full row.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selected-funds__remaining {
	flex:
		1 1 100%;
	margin: 0;
	padding: 6px 10px;
	font-size: 11px;
}

/*
 * Search becomes a compact add-more field.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__search {
	border-right: 0;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__label {
	margin-bottom: 6px;
	font-size: 13px;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__input {
	min-height: 42px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__help {
	display: none;
}

/*
 * The footer is onboarding content and is unnecessary after
 * the comparison has already started.
 */
.mfds-compare-selector.is-comparison-active
	.mfds-compare-selector__footer {
	display: none;
}

/*
 * Reduce the space before the chart.
 */
.mfds-compare-empty.is-comparison-active {
	margin-bottom: 18px;
}

@media (max-width: 720px) {

	.mfds-compare-selector.is-comparison-active
		.mfds-compare-selected-fund {
		flex-basis: 100%;
		min-width: 0;
	}

	.mfds-compare-selector.is-comparison-active
		.mfds-compare-selector__header {
		padding: 14px;
	}

	.mfds-compare-selector.is-comparison-active
		.mfds-compare-selector__search,
	.mfds-compare-selector.is-comparison-active
		.mfds-compare-selector__selected {
		padding: 14px;
	}
}

.mfds-compare-selected-fund__name{

    display:block;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

    font-size:.92rem;

    font-weight:600;

    line-height:1.2;
}

/* ==========================================================================
   Module 10.6.1 — Admin-controlled Fund List policy
   ========================================================================== */

/*
 * Internal-scroll mode preserves the established Fund Explorer behaviour.
 */
@media screen and (min-width: 768px) {
	.mfds-fund-table--internal-scroll .mfds-table-wrap {
		max-height: 70vh;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	/*
	 * Page-scroll mode removes the vertical table viewport while preserving
	 * horizontal overflow for narrow layouts.
	 */
	.mfds-fund-table--page-scroll,
	.mfds-fund-table--page-scroll .mfds-table-wrap {
		max-height: none !important;
		overflow: visible !important;
		-webkit-overflow-scrolling: auto;
	}

	/*
	 * Sticky mode explicitly enables the header, overriding theme styles.
	 */
	.mfds-fund-table--sticky .mfds-table {
		overflow: visible;
	}

	.mfds-fund-table--sticky .mfds-table thead th,
	.mfds-fund-table--sticky
		.mfds-table
		thead
		th.mfds-sortable,
	.mfds-fund-table--sticky
		.mfds-table
		thead
		th.mfds-fund-table__heading--sortable {
		position: sticky !important;
		top: 0;
		z-index: 10;
		background: var(
			--mfds-background,
			#f8fafc
		);
	}

	.mfds-fund-table--sticky
		.mfds-table
		thead
		th:first-child {
		z-index: 12;
	}

	/*
	 * Non-sticky mode disables every earlier sticky-header rule.
	 */
	.mfds-fund-table--non-sticky .mfds-table thead th,
	.mfds-fund-table--non-sticky
		.mfds-table
		thead
		th.mfds-sortable,
	.mfds-fund-table--non-sticky
		.mfds-table
		thead
		th.mfds-fund-table__heading--sortable {
		position: static !important;
		top: auto !important;
		z-index: auto !important;
	}

	/*
	 * When internal scrolling is disabled, also prevent the first column
	 * from behaving like a pinned viewport column.
	 */
	.mfds-fund-table--page-scroll .mfds-table th:first-child,
	.mfds-fund-table--page-scroll .mfds-table td:first-child {
		position: static !important;
		left: auto !important;
		z-index: auto !important;
	}
}

/*
 * Search-disabled mode keeps the remaining approved filters aligned.
 */
.mfds-fund-table--search-disabled .mfds-fund-filter__grid {
	margin-top: 0;
}

/* MFDS Fund Filter: keep button label visually centered.
   Dashicon spans are not rendered visibly on this frontend but still reserve
   horizontal space, so hide them only inside these four filter action buttons. */
.mfds-fund-filter__actions .mfds-button .dashicons {
	display: none;
}

.mfds-fund-filter__actions .mfds-button {
	gap: 0;
	text-align: center;
	justify-content: center;
}


/* =========================================================
 * Historical Performance - Lump-sum Ranking Page
 * ========================================================= */

.mfds-hp {
	--mfds-hp-gap: 16px;
	width: 100%;
	color: var(--mfds-text, #1d2327);
}

.mfds-hp-intro {
	margin-bottom: 20px;
}

.mfds-hp-title {
	margin: 0 0 8px;
	color: var(--mfds-text, #1d2327);
	font-size: clamp(1.45rem, 2vw, 2rem);
	line-height: 1.25;
}

.mfds-hp-description,
.mfds-hp-note {
	color: var(--mfds-text-muted, #646970);
}

.mfds-hp-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mfds-hp-gap);
	margin: 0 0 20px;
	padding: 18px;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 12px;
	background: var(--mfds-surface, #fff);
}

.mfds-hp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.mfds-hp-field__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--mfds-text, #1d2327);
}

.mfds-hp-field select,
.mfds-hp-field input {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 8px;
	background: var(--mfds-surface, #fff);
	color: var(--mfds-text, #1d2327);
}

.mfds-hp-actions {
	display: flex;
	align-items: end;
	gap: 10px;
}

.mfds-hp-summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 12px;
	color: var(--mfds-text-muted, #646970);
}

.mfds-hp-summary strong {
	color: var(--mfds-text, #1d2327);
}

.mfds-hp-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 12px;
	background: var(--mfds-surface, #fff);
}

.mfds-hp-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	background: var(--mfds-surface, #fff);
	color: var(--mfds-text, #1d2327);
}

.mfds-hp-table th,
.mfds-hp-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--mfds-border, #dcdcde);
	text-align: right;
	vertical-align: middle;
	white-space: nowrap;
}

.mfds-hp-table th:first-child,
.mfds-hp-table td:first-child {
	text-align: left;
}

.mfds-hp-table thead th {
	background: var(--mfds-table-header, var(--mfds-background, #f6f7f7));
	color: var(--mfds-table-header-text, var(--mfds-text, #1d2327));
	font-size: 13px;
	font-weight: 700;
}

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

.mfds-hp-table tbody tr:hover {
	background: color-mix(
		in srgb,
		var(--mfds-primary, #2271b1) 5%,
		var(--mfds-surface, #fff)
	);
}

.mfds-hp-table__scheme {
	min-width: 280px;
	white-space: normal !important;
}

.mfds-hp-table__scheme a {
	color: var(--mfds-primary, #2271b1);
	font-weight: 700;
	text-decoration: none;
}

.mfds-hp-table__scheme a:hover,
.mfds-hp-table__scheme a:focus {
	text-decoration: underline;
}

.mfds-hp-table__scheme small {
	display: block;
	margin-top: 3px;
	color: var(--mfds-text-muted, #646970);
	font-size: 12px;
}

.mfds-hp-table__return {
	color: var(--mfds-positive, #15803d);
}

.mfds-hp-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 18px;
}

.mfds-hp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 6px 10px;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 7px;
	background: var(--mfds-button-secondary-bg, var(--mfds-surface, #fff));
	color: var(--mfds-button-secondary-text, var(--mfds-primary, #2271b1));
	text-decoration: none;
}

.mfds-hp-pagination .page-numbers.current {
	background: var(--mfds-button-primary-bg, var(--mfds-primary, #2271b1));
	border-color: var(--mfds-button-primary-bg, var(--mfds-primary, #2271b1));
	color: var(--mfds-button-primary-text, #fff);
}

.mfds-hp-note {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.55;
}

.mfds-hp-message {
	padding: 16px;
	border: 1px solid var(--mfds-border, #dcdcde);
	border-radius: 10px;
	background: var(--mfds-background, #f6f7f7);
}

.mfds-hp-message--error {
	border-color: #b42318;
	color: #b42318;
}

@media (max-width: 900px) {
	.mfds-hp-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.mfds-hp-filters {
		grid-template-columns: 1fr;
	}

	.mfds-hp-actions {
		align-items: stretch;
	}

	.mfds-hp-actions .mfds-button {
		flex: 1 1 0;
		justify-content: center;
		text-align: center;
	}
}


/* Historical Performance sortable headers + export action. */
.mfds-hp-sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
}

.mfds-hp-sort:hover,
.mfds-hp-sort:focus {
	color: inherit;
	text-decoration: underline;
}

.mfds-hp-actions {
	flex-wrap: wrap;
}


/* Historical Performance no-reload interaction state. */
.mfds-hp {
	position: relative;
	transition: opacity 140ms ease;
}

.mfds-hp.is-loading {
	opacity: 0.58;
	cursor: progress;
}

.mfds-hp.is-loading::after {
	content: "";
	position: absolute;
	top: 18px;
	right: 18px;
	width: 22px;
	height: 22px;
	border: 3px solid var(--mfds-border, #dcdcde);
	border-top-color: var(--mfds-primary, #2271b1);
	border-radius: 50%;
	animation: mfds-hp-spin 650ms linear infinite;
	pointer-events: none;
}

.mfds-hp.is-loading .mfds-hp-filters,
.mfds-hp.is-loading .mfds-hp-table-wrap,
.mfds-hp.is-loading .mfds-hp-pagination {
	pointer-events: none;
}

@keyframes mfds-hp-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mfds-hp {
		transition: none;
	}

	.mfds-hp.is-loading::after {
		animation: none;
	}
}


/* ==========================================================================
   Historical Performance — Admin-controlled table behaviour
   ========================================================================== */

@media screen and (min-width: 768px) {

	/*
	 * Internal-scroll mode keeps both vertical and horizontal movement
	 * inside the Historical Performance table.
	 */
	.mfds-hp--internal-scroll .mfds-hp-table-wrap {
		max-height: 70vh;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	/*
	 * Page-scroll mode removes the vertical table viewport.
	 * This mirrors the existing Fund List administrator setting.
	 */
	.mfds-hp--page-scroll .mfds-hp-table-wrap {
		max-height: none !important;
		overflow: visible !important;
		-webkit-overflow-scrolling: auto;
	}

	/*
	 * Sticky table header.
	 */
	.mfds-hp--sticky .mfds-hp-table {
		overflow: visible;
	}

	.mfds-hp--sticky .mfds-hp-table thead th {
		position: sticky !important;
		top: 0;
		z-index: 10;
		background: var(
			--mfds-table-header,
			var(--mfds-background, #f6f7f7)
		);
		color: var(
			--mfds-table-header-text,
			var(--mfds-text, #1d2327)
		);
	}

	/*
	 * Explicit non-sticky mode prevents any earlier theme/plugin rules
	 * from forcing the Historical Performance table header to stick.
	 */
	.mfds-hp--non-sticky .mfds-hp-table thead th {
		position: static !important;
		top: auto !important;
		z-index: auto !important;
	}
}

/*
 * Keep mobile tables horizontally usable regardless of the desktop
 * internal/page-scroll choice.
 */
@media screen and (max-width: 767px) {
	.mfds-hp .mfds-hp-table-wrap {
		overflow-x: auto;
		overflow-y: visible;
		max-height: none;
		-webkit-overflow-scrolling: touch;
	}
}


/* ==========================================================================
   Historical Performance — scroll containment + modern mobile cards
   ========================================================================== */

.mfds-hp-table-wrap {
	max-width: 100%;
	min-width: 0;
}

.mfds-hp--lumpsum .mfds-hp-table {
	min-width: 1080px;
}

.mfds-hp--sip .mfds-hp-table {
	min-width: 1220px;
}

.mfds-hp--swp .mfds-hp-table {
	width: max-content;
	min-width: 1480px;
}

.mfds-hp--internal-scroll .mfds-hp-table-wrap,
.mfds-hp--swp .mfds-hp-table-wrap {
	overflow-x: auto !important;
	overscroll-behavior-x: contain;
	scrollbar-gutter: stable;
}

.mfds-hp-amount-input {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

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

	.mfds-hp-summary {
		align-items: flex-start;
		margin-bottom: 14px;
		font-size: 13px;
	}

	.mfds-hp-summary strong {
		font-size: 15px;
	}

	.mfds-hp-filters {
		padding: 14px;
		gap: 12px;
		border-radius: 14px;
	}

	.mfds-hp-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		gap: 9px;
	}

	.mfds-hp-actions .mfds-button {
		width: 100%;
		min-height: 44px;
		justify-content: center;
		text-align: center;
	}

	.mfds-hp-actions .mfds-button:nth-child(3) {
		grid-column: 1 / -1;
	}

	.mfds-hp .mfds-hp-table-wrap {
		overflow: visible !important;
		max-height: none !important;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.mfds-hp .mfds-hp-table,
	.mfds-hp--lumpsum .mfds-hp-table,
	.mfds-hp--sip .mfds-hp-table,
	.mfds-hp--swp .mfds-hp-table {
		display: block;
		width: 100%;
		min-width: 0 !important;
		background: transparent;
	}

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

	.mfds-hp .mfds-hp-table tbody {
		display: grid;
		gap: 12px;
		width: 100%;
	}

	.mfds-hp .mfds-hp-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: hidden;
		border: 1px solid var(--mfds-border, #dcdcde);
		border-radius: 14px;
		background: var(--mfds-surface, #fff);
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
	}

	.mfds-hp .mfds-hp-table tbody tr:hover {
		background: var(--mfds-surface, #fff);
	}

	.mfds-hp .mfds-hp-table td {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		min-width: 0;
		padding: 10px 12px;
		border: 0;
		border-top: 1px solid var(--mfds-border, #e7e9ec);
		text-align: left;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.mfds-hp .mfds-hp-table td:nth-child(even) {
		border-left: 1px solid var(--mfds-border, #e7e9ec);
	}

	.mfds-hp .mfds-hp-table td::before {
		display: block;
		margin-bottom: 4px;
		color: var(--mfds-text-muted, #646970);
		font-size: 10px;
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.mfds-hp .mfds-hp-table__scheme {
		grid-column: 1 / -1;
		min-width: 0;
		padding: 14px 14px 12px;
		border-top: 0;
		border-left: 0 !important;
		background:
			color-mix(
				in srgb,
				var(--mfds-primary, #2271b1) 5%,
				var(--mfds-surface, #fff)
			);
	}

	.mfds-hp .mfds-hp-table__scheme::before {
		display: none;
	}

	.mfds-hp .mfds-hp-table__scheme a {
		font-size: 16px;
		line-height: 1.45;
	}

	.mfds-hp .mfds-hp-table__scheme small {
		margin-top: 5px;
		font-size: 12px;
		line-height: 1.4;
	}

	.mfds-hp .mfds-hp-table td strong {
		font-size: 15px;
	}

	.mfds-hp .mfds-hp-table__return strong {
		color: var(--mfds-positive, #15803d);
		font-size: 17px;
	}

	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(2)::before { content: "AUM"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(3)::before { content: "From"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(4)::before { content: "To"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(5)::before { content: "Invested"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(6)::before { content: "Current Value"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(7)::before { content: "Annualized Return"; }

	.mfds-hp--sip .mfds-hp-table td:nth-child(2)::before { content: "AUM"; }
	.mfds-hp--sip .mfds-hp-table td:nth-child(3)::before { content: "SIP / Month"; }
	.mfds-hp--sip .mfds-hp-table td:nth-child(4)::before { content: "From"; }
	.mfds-hp--sip .mfds-hp-table td:nth-child(5)::before { content: "To"; }
	.mfds-hp--sip .mfds-hp-table td:nth-child(6)::before { content: "Invested"; }
	.mfds-hp--sip .mfds-hp-table td:nth-child(7)::before { content: "Current Value"; }
	.mfds-hp--sip .mfds-hp-table td:nth-child(8)::before { content: "SIP Return (XIRR)"; }

	.mfds-hp--swp .mfds-hp-table td:nth-child(2)::before { content: "AUM"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(3)::before { content: "Initial Investment"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(4)::before { content: "Monthly SWP"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(5)::before { content: "From"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(6)::before { content: "To"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(7)::before { content: "Total Withdrawn"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(8)::before { content: "Remaining Value"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(9)::before { content: "SWP Return (XIRR)"; }

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

	.mfds-hp-note {
		padding: 0 2px;
		font-size: 12px;
	}
}

@media screen and (max-width: 420px) {
	.mfds-hp .mfds-hp-table td {
		padding: 9px 10px;
	}

	.mfds-hp .mfds-hp-table__scheme a {
		font-size: 15px;
	}

	.mfds-hp-summary {
		display: grid;
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   Historical Performance — compact desktop table refinement
   ========================================================================== */

/*
 * Keep the wide SWP table inside the scroll canvas without making the
 * columns excessively large. This override intentionally replaces the
 * earlier max-content sizing.
 */
@media screen and (min-width: 768px) {

	.mfds-hp--lumpsum .mfds-hp-table {
		width: 100%;
		min-width: 980px;
		table-layout: fixed;
	}

	.mfds-hp--sip .mfds-hp-table {
		width: 100%;
		min-width: 1080px;
		table-layout: fixed;
	}

	.mfds-hp--swp .mfds-hp-table {
		width: 100% !important;
		min-width: 1180px !important;
		table-layout: fixed;
	}

	.mfds-hp .mfds-hp-table th,
	.mfds-hp .mfds-hp-table td {
		padding: 9px 10px;
		font-size: 12px;
		line-height: 1.35;
	}

	.mfds-hp .mfds-hp-table thead th {
		font-size: 11px;
	}

	.mfds-hp .mfds-hp-table__scheme {
		min-width: 0;
	}

	.mfds-hp .mfds-hp-table__scheme a {
		font-size: 13px;
		line-height: 1.35;
	}

	.mfds-hp .mfds-hp-table__scheme small {
		font-size: 10px;
		line-height: 1.3;
	}

	/*
	 * Compact SWP column proportions.
	 */
	.mfds-hp--swp .mfds-hp-table th:nth-child(1),
	.mfds-hp--swp .mfds-hp-table td:nth-child(1) {
		width: 28%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(2),
	.mfds-hp--swp .mfds-hp-table td:nth-child(2) {
		width: 5%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(3),
	.mfds-hp--swp .mfds-hp-table td:nth-child(3) {
		width: 11%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(4),
	.mfds-hp--swp .mfds-hp-table td:nth-child(4) {
		width: 9%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(5),
	.mfds-hp--swp .mfds-hp-table td:nth-child(5),
	.mfds-hp--swp .mfds-hp-table th:nth-child(6),
	.mfds-hp--swp .mfds-hp-table td:nth-child(6) {
		width: 9%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(7),
	.mfds-hp--swp .mfds-hp-table td:nth-child(7) {
		width: 12%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(8),
	.mfds-hp--swp .mfds-hp-table td:nth-child(8) {
		width: 11%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(9),
	.mfds-hp--swp .mfds-hp-table td:nth-child(9) {
		width: 9%;
	}

	.mfds-hp--swp .mfds-hp-table td:nth-child(n+2) {
		white-space: nowrap;
	}

	/*
	 * Keep the XIRR column visibly inside the horizontal scroll area.
	 */
	.mfds-hp--swp .mfds-hp-table th:last-child,
	.mfds-hp--swp .mfds-hp-table td:last-child {
		padding-right: 12px;
	}

	.mfds-hp--swp .mfds-hp-table-wrap {
		overflow-x: auto !important;
		overflow-y: auto;
	}
}


/* ==========================================================================
   Historical Performance — restore Lump-sum & SIP desktop sizing
   ========================================================================== */

@media screen and (min-width: 768px) {

	/*
	 * Restore the wider/original desktop presentation for Lump-sum and SIP.
	 * Keep the compact SWP-specific table rules unchanged.
	 */
	.mfds-hp--lumpsum .mfds-hp-table {
		width: 100% !important;
		min-width: 1080px !important;
		table-layout: auto !important;
	}

	.mfds-hp--sip .mfds-hp-table {
		width: 100% !important;
		min-width: 1220px !important;
		table-layout: auto !important;
	}

	.mfds-hp--lumpsum .mfds-hp-table th,
	.mfds-hp--lumpsum .mfds-hp-table td,
	.mfds-hp--sip .mfds-hp-table th,
	.mfds-hp--sip .mfds-hp-table td {
		padding: 12px 14px;
		font-size: inherit;
		line-height: inherit;
	}

	.mfds-hp--lumpsum .mfds-hp-table thead th,
	.mfds-hp--sip .mfds-hp-table thead th {
		font-size: 13px;
	}

	.mfds-hp--lumpsum .mfds-hp-table__scheme a,
	.mfds-hp--sip .mfds-hp-table__scheme a {
		font-size: inherit;
		line-height: inherit;
	}

	.mfds-hp--lumpsum .mfds-hp-table__scheme small,
	.mfds-hp--sip .mfds-hp-table__scheme small {
		font-size: 12px;
		line-height: inherit;
	}
}


/* ==========================================================================
   Historical Performance — final Lump-sum / SWP column order
   ========================================================================== */

/*
 * Desktop SWP compact proportions after moving AUM to the last column.
 * SIP is intentionally untouched.
 */
@media screen and (min-width: 768px) {

	.mfds-hp--swp .mfds-hp-table th:nth-child(1),
	.mfds-hp--swp .mfds-hp-table td:nth-child(1) {
		width: 28%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(2),
	.mfds-hp--swp .mfds-hp-table td:nth-child(2) {
		width: 11%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(3),
	.mfds-hp--swp .mfds-hp-table td:nth-child(3) {
		width: 9%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(4),
	.mfds-hp--swp .mfds-hp-table td:nth-child(4),
	.mfds-hp--swp .mfds-hp-table th:nth-child(5),
	.mfds-hp--swp .mfds-hp-table td:nth-child(5) {
		width: 9%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(6),
	.mfds-hp--swp .mfds-hp-table td:nth-child(6) {
		width: 12%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(7),
	.mfds-hp--swp .mfds-hp-table td:nth-child(7) {
		width: 11%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(8),
	.mfds-hp--swp .mfds-hp-table td:nth-child(8) {
		width: 9%;
	}

	.mfds-hp--swp .mfds-hp-table th:nth-child(9),
	.mfds-hp--swp .mfds-hp-table td:nth-child(9) {
		width: 5%;
	}
}

/*
 * Mobile card labels after the new physical table order.
 *
 * Lump-sum:
 * From | To
 * Invested | Current Value
 * Annualized Return | AUM
 */
@media screen and (max-width: 767px) {

	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(2)::before { content: "From"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(3)::before { content: "To"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(4)::before { content: "Invested"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(5)::before { content: "Current Value"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(6)::before { content: "Annualized Return"; }
	.mfds-hp--lumpsum .mfds-hp-table td:nth-child(7)::before { content: "AUM"; }

	/*
	 * SWP:
	 * Initial Investment | Monthly SWP
	 * From | To
	 * Total Withdrawn | Remaining Value
	 * Return (XIRR) | AUM
	 */
	.mfds-hp--swp .mfds-hp-table td:nth-child(2)::before { content: "Initial Investment"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(3)::before { content: "Monthly SWP"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(4)::before { content: "From"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(5)::before { content: "To"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(6)::before { content: "Total Withdrawn"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(7)::before { content: "Remaining Value"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(8)::before { content: "Return (XIRR)"; }
	.mfds-hp--swp .mfds-hp-table td:nth-child(9)::before { content: "AUM"; }
}


/* MFDS mobile Fund Explorer compact controls + search suggestions. */
.mfds-fund-filter__search { position: relative; }
.mfds-mobile-search-suggestions { display:none; }

@media screen and (max-width: 767px) {
	form.mfds-fund-filter .mfds-fund-filter__grid,
	form.mfds-fund-filter:not(:has(.mfds-fund-filter__grid)) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 10px !important;
		row-gap: 12px !important;
	}

	form.mfds-fund-filter .mfds-fund-filter__actions {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
		width: 100%;
	}

	form.mfds-fund-filter .mfds-fund-filter__actions .mfds-button {
		min-width: 0 !important;
		width: 100%;
		min-height: 38px;
		padding: 7px 4px;
		font-size: 11px;
		white-space: nowrap;
	}

	form.mfds-fund-filter .mfds-fund-filter__actions .dashicons { display:none; }

	.mfds-mobile-search-suggestions.is-open {
		display:block;
		position:absolute;
		z-index:9999;
		top:100%; left:0; right:0;
		max-height:300px;
		overflow-y:auto;
		margin-top:4px;
		border:1px solid var(--mfds-border, #dbe3ee);
		border-radius:8px;
		background:#fff;
		box-shadow:0 10px 28px rgba(15,23,42,.14);
	}

	.mfds-mobile-search-suggestion {
		display:block;
		width:100%;
		padding:10px 12px;
		border:0;
		border-bottom:1px solid #eef2f7;
		background:#fff;
		color:#0f172a;
		font-size:13px;
		line-height:1.35;
		text-align:left;
		cursor:pointer;
	}
	.mfds-mobile-search-suggestion:last-child { border-bottom:0; }
	.mfds-mobile-search-suggestion:active,
	.mfds-mobile-search-suggestion:focus { background:#f8fafc; }
}

/* Historical Performance: keep filter controls two columns on phones. */
@media (max-width: 600px) {
	.mfds-hp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; padding:12px; }
	.mfds-hp-actions { grid-column:1 / -1; }
}


/* MFDS fund-search suggestions on desktop and mobile */
.mfds-fund-search-wrap,
.mfds-search-wrap {
	position: relative;
}
.mfds-mobile-search-suggestions {
	position: absolute;
	z-index: 9999;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.mfds-mobile-search-suggestion {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #ececec;
	background: #fff;
	text-align: left;
	cursor: pointer;
}
.mfds-mobile-search-suggestion:last-child {
	border-bottom: 0;
}
.mfds-mobile-search-suggestion:hover,
.mfds-mobile-search-suggestion:focus {
	background: #f6f6f6;
}


/* MFDS Fund Explorer suggestions: desktop + tablet + mobile */
.mfds-fund-filter__search {
	position: relative;
}

.mfds-mobile-search-suggestions.is-open {
	display: block;
	position: absolute;
	z-index: 9999;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 320px;
	overflow-y: auto;
	margin-top: 0;
	border: 1px solid var(--mfds-border, #dbe3ee);
	border-radius: 8px;
	background: var(--mfds-surface, #fff);
	box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}

.mfds-mobile-search-suggestion {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--mfds-border, #eef2f7);
	background: var(--mfds-surface, #fff);
	color: inherit;
	font: inherit;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.mfds-mobile-search-suggestion:last-child {
	border-bottom: 0;
}

.mfds-mobile-search-suggestion:hover,
.mfds-mobile-search-suggestion:focus {
	background: rgba(15, 23, 42, .05);
	outline: none;
}


/* ========================================================================
   Core Production Polish v2.0.1.2 — Fund Detail visual refinement
   Presentation-only overrides. Existing routes, data and calculations stay intact.
   ======================================================================== */
.mfds-fund-page{padding-top:28px}
.mfds-fund-page .mfds-breadcrumb{margin:0 0 14px;font-size:.82rem;line-height:1.5}
.mfds-fund-page .mfds-panel{border-radius:12px}
.mfds-fund-page .mfds-hero{align-items:stretch;gap:28px;padding:30px;border-top-width:4px}
.mfds-fund-page .mfds-hero__content{flex:1 1 auto}
.mfds-fund-page .mfds-hero h1{max-width:820px;margin-bottom:12px}
.mfds-fund-page .mfds-badges{gap:7px}
.mfds-fund-page .mfds-badge{line-height:1.25}
.mfds-fund-page .mfds-hero__quick-facts{gap:10px;margin-top:18px}
.mfds-fund-page .mfds-hero__quick-facts>div{min-width:0;padding:11px 12px}
.mfds-fund-page .mfds-hero__actions{margin-top:18px;align-items:center}
.mfds-fund-page .mfds-hero__nav{flex-basis:230px;min-width:210px;padding:18px 0 18px 24px;border-left:1px solid #e3e8ee}
.mfds-fund-page .mfds-hero__nav-value{line-height:1.08}
.mfds-fund-page .mfds-section{margin-bottom:22px}
.mfds-fund-page .mfds-section-title,.mfds-fund-page .mfds-panel-title{line-height:1.35}
.mfds-fund-page .mfds-return-grid{gap:10px}
.mfds-fund-page .mfds-return-card{min-width:0}
.mfds-fund-page .mfds-two-column{gap:20px;align-items:stretch}
.mfds-fund-page .mfds-info-panel,.mfds-fund-page .mfds-calculator,.mfds-fund-page .mfds-chart-panel{overflow:hidden}
.mfds-fund-page .mfds-facts dd{overflow-wrap:anywhere}
.mfds-fund-page .mfds-chart-panel,.mfds-fund-page .mfds-related-funds{margin-top:22px}
@media(max-width:900px){.mfds-fund-page .mfds-hero{display:block}.mfds-fund-page .mfds-hero__nav{min-width:0;margin-top:22px;padding:18px 0 0;border-top:1px solid #e3e8ee;border-left:0;align-items:flex-start;text-align:left}}
@media(max-width:600px){.mfds-fund-page{padding:14px 8px 30px}.mfds-fund-page .mfds-hero{padding:22px 16px;border-radius:10px}.mfds-fund-page .mfds-hero__quick-facts{grid-template-columns:1fr}.mfds-fund-page .mfds-hero__quick-facts>div{padding:10px 11px}.mfds-fund-page .mfds-hero__actions,.mfds-fund-page .mfds-page-actions{width:100%;flex-direction:column;align-items:stretch}.mfds-fund-page .mfds-hero__actions .mfds-button,.mfds-fund-page .mfds-page-actions .mfds-button{width:100%;justify-content:center;text-align:center}.mfds-fund-page .mfds-return-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.mfds-fund-page .mfds-return-grid{grid-template-columns:1fr}}


/* ========================================================================
   Core Production Polish v2.0.1.3 — Fund Detail layout refinement
   Layout/readability only; no route, SEO, data, return or compare logic changes.
   ======================================================================== */
.mfds-fund-page__container{width:min(1240px,100%)}
.mfds-fund-page .mfds-hero{gap:36px;padding:34px 36px;margin-bottom:28px}
.mfds-fund-page .mfds-hero h1{font-size:clamp(1.65rem,2.5vw,2.35rem);line-height:1.16;letter-spacing:-.018em;margin-bottom:14px}
.mfds-fund-page .mfds-eyebrow{margin-bottom:9px}
.mfds-fund-page .mfds-badge{padding:6px 10px;font-size:.76rem}
.mfds-fund-page .mfds-hero__quick-facts{margin-top:22px;gap:12px}
.mfds-fund-page .mfds-hero__quick-facts>div{padding:13px 14px;border-left-width:3px}
.mfds-fund-page .mfds-hero__quick-facts span{font-size:.7rem}
.mfds-fund-page .mfds-hero__quick-facts strong{font-size:.86rem;line-height:1.4}
.mfds-fund-page .mfds-hero__actions{gap:10px;margin-top:22px;flex-wrap:wrap}
.mfds-fund-page .mfds-hero__nav{flex-basis:250px;min-width:230px;padding-left:30px}
.mfds-fund-page .mfds-hero__nav-label{font-size:.78rem;font-weight:700}
.mfds-fund-page .mfds-hero__nav-value{margin:7px 0 5px;font-size:clamp(2rem,3.4vw,2.8rem);letter-spacing:-.025em}
.mfds-fund-page .mfds-section{margin-bottom:28px}
.mfds-fund-page .mfds-section-title,.mfds-fund-page .mfds-panel-title{font-size:.96rem;letter-spacing:.035em}
.mfds-fund-page .mfds-section-title{margin-bottom:14px}
.mfds-fund-page .mfds-return-grid{gap:12px}
.mfds-fund-page .mfds-return-card{padding-top:18px;padding-bottom:18px}
.mfds-fund-page .mfds-two-column{gap:24px}
.mfds-fund-page .mfds-info-panel,.mfds-fund-page .mfds-calculator{height:100%}
.mfds-fund-page .mfds-chart-panel{margin-top:26px}
.mfds-fund-page .mfds-related-funds{margin-top:26px;overflow:hidden}
.mfds-fund-page .mfds-related-funds__summary{padding:17px 20px;min-height:58px}
.mfds-fund-page .mfds-related-funds__title{font-size:.95rem;font-weight:800}
.mfds-fund-page .mfds-related-funds__subtitle{margin-top:3px;font-size:.75rem}
.mfds-fund-page .mfds-related-funds__grid{padding:0 20px 20px}
@media(max-width:900px){
 .mfds-fund-page .mfds-hero{padding:28px 24px}
 .mfds-fund-page .mfds-hero__nav{padding-left:0}
 .mfds-fund-page .mfds-two-column{gap:18px}
}
@media(max-width:600px){
 .mfds-fund-page{padding:14px 10px 32px}
 .mfds-fund-page .mfds-hero{padding:22px 17px;margin-bottom:22px}
 .mfds-fund-page .mfds-hero h1{font-size:1.55rem}
 .mfds-fund-page .mfds-badges{gap:6px}
 .mfds-fund-page .mfds-badge{padding:5px 8px;font-size:.72rem}
 .mfds-fund-page .mfds-hero__nav-value{font-size:2rem}
 .mfds-fund-page .mfds-section{margin-bottom:22px}
 .mfds-fund-page .mfds-return-grid{gap:9px}
 .mfds-fund-page .mfds-related-funds__summary{padding:15px 14px}
 .mfds-fund-page .mfds-related-funds__grid{padding:0 12px 14px}
}


/* --------------------------------------------------------------------------
   Core Production Polish v2.0.1.4 — Final Hero + Fund Information + AMC Logos
   Return Performance, SIP Performance and Investment Calculator intentionally
   untouched in this milestone.
   -------------------------------------------------------------------------- */
.mfds-fund-page .mfds-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,330px);gap:28px;align-items:stretch;padding:28px 30px}
.mfds-fund-page .mfds-hero__content{min-width:0;display:flex;flex-direction:column;justify-content:center}
.mfds-fund-page .mfds-hero__identity{display:flex;align-items:flex-start;gap:20px;min-width:0}
.mfds-fund-page .mfds-hero__logo{flex:0 0 78px;width:78px;height:78px;display:flex;align-items:center;justify-content:center}
.mfds-fund-page .mfds-hero__logo img{display:block;max-width:78px;max-height:78px;width:auto;height:auto;object-fit:contain}
.mfds-fund-page .mfds-hero--no-logo .mfds-hero__identity{gap:0}
.mfds-fund-page .mfds-hero__identity-copy{min-width:0;flex:1}
.mfds-fund-page .mfds-hero__identity-copy h1{margin:0 0 14px;font-size:clamp(1.85rem,3vw,2.65rem);line-height:1.12;letter-spacing:-.025em}
.mfds-fund-page .mfds-hero__actions{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.mfds-fund-page .mfds-button--invest{background:#07852f;color:#fff;border-color:#07852f}
.mfds-fund-page .mfds-button--invest:hover,.mfds-fund-page .mfds-button--invest:focus{background:#066d28;border-color:#066d28;color:#fff}
.mfds-fund-page .mfds-hero__disclaimer{margin:18px 0 0;font-size:.78rem;color:#566174;display:flex;gap:8px;align-items:flex-start}
.mfds-fund-page .mfds-hero__nav{border-left:1px solid var(--mfds-border-color,#dfe5eb);padding-left:28px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;text-align:right}
.mfds-fund-page .mfds-hero__nav-label small{font-size:inherit;font-weight:inherit}
.mfds-fund-page .mfds-facts--production{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--mfds-border-color,#dfe5eb);border-radius:8px;overflow:hidden}
.mfds-fund-page .mfds-facts--production>div{display:grid;grid-template-columns:minmax(112px,.75fr) minmax(0,1.25fr);align-items:center;border-bottom:1px solid var(--mfds-border-color,#dfe5eb);margin:0}
.mfds-fund-page .mfds-facts--production>div:nth-last-child(-n+2){border-bottom:0}
.mfds-fund-page .mfds-facts--production dt,.mfds-fund-page .mfds-facts--production dd{margin:0;padding:11px 12px;min-height:46px;display:flex;align-items:center}
.mfds-fund-page .mfds-facts--production dt{background:rgba(241,245,249,.7);font-weight:600;color:#3f4b5e}
.mfds-fund-page .mfds-facts--production dd{gap:8px;font-weight:600;color:#182033}
.mfds-amc-short-logo{display:inline-block;flex:0 0 auto;width:24px;height:24px;object-fit:contain;vertical-align:middle}
.mfds-table__fund-name{display:inline-flex;align-items:center;gap:0}
.mfds-table__fund-name.has-amc-logo{gap:7px}
.mfds-compare-table__fund-heading-inner{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mfds-compare-table__amc-logo{width:28px;height:28px}
.mfds-risk-meter{position:relative;display:inline-block;width:48px;height:24px;border-radius:48px 48px 0 0;background:conic-gradient(from 270deg at 50% 100%,#16a34a 0 20%,#84cc16 20% 40%,#facc15 40% 60%,#f97316 60% 80%,#dc2626 80% 100%);overflow:hidden;flex:0 0 auto}
.mfds-risk-meter:after{content:"";position:absolute;left:11px;right:11px;bottom:0;height:13px;background:#fff;border-radius:24px 24px 0 0}
.mfds-risk-meter i{position:absolute;z-index:2;width:2px;height:18px;background:#111827;left:50%;bottom:0;transform-origin:bottom center;transform:rotate(35deg)}
.mfds-amc-page__header.has-amc-main-logo{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:28px;align-items:center}
.mfds-amc-page__main-logo{display:flex;align-items:center;justify-content:center;min-height:120px}
.mfds-amc-page__main-logo img{display:block;max-width:260px;max-height:120px;width:auto;height:auto;object-fit:contain}
.mfds-amc-page__header-copy{min-width:0}
@media(max-width:800px){.mfds-fund-page .mfds-hero{grid-template-columns:1fr;gap:22px}.mfds-fund-page .mfds-hero__nav{border-left:0;border-top:1px solid var(--mfds-border-color,#dfe5eb);padding:20px 0 0;align-items:flex-start;text-align:left}.mfds-fund-page .mfds-facts--production{grid-template-columns:1fr}.mfds-fund-page .mfds-facts--production>div:nth-last-child(-n+2){border-bottom:1px solid var(--mfds-border-color,#dfe5eb)}.mfds-fund-page .mfds-facts--production>div:last-child{border-bottom:0}.mfds-amc-page__header.has-amc-main-logo{grid-template-columns:1fr}.mfds-amc-page__main-logo{justify-content:flex-start}}
@media(max-width:560px){.mfds-fund-page .mfds-hero{padding:22px 18px}.mfds-fund-page .mfds-hero__identity{gap:12px}.mfds-fund-page .mfds-hero__logo{flex-basis:52px;width:52px;height:52px}.mfds-fund-page .mfds-hero__logo img{max-width:52px;max-height:52px}.mfds-fund-page .mfds-hero__identity-copy h1{font-size:1.65rem}.mfds-fund-page .mfds-hero__actions{flex-direction:column;align-items:stretch}.mfds-fund-page .mfds-hero__actions .mfds-button{width:100%;justify-content:center;text-align:center}.mfds-fund-page .mfds-facts--production>div{grid-template-columns:110px minmax(0,1fr)}.mfds-fund-page .mfds-facts--production dt,.mfds-fund-page .mfds-facts--production dd{padding:10px 9px}}


/* v2.0.3.2 — Compare table header content follows admin header text colour. */
.mfds-compare-table thead th.mfds-compare-table__feature-heading,
.mfds-compare-table thead th .mfds-compare-table__fund-link,
.mfds-compare-table thead th .mfds-compare-table__fund-name,
.mfds-compare-table thead th .mfds-compare-table__fund-link:visited,
.mfds-compare-table thead th .mfds-compare-table__fund-link:hover,
.mfds-compare-table thead th .mfds-compare-table__fund-link:focus {
	color: var(--mfds-table-header-text, #ffffff) !important;
}

/* Remove button intentionally keeps its independent semantic button colour. */
.mfds-compare-table thead th .mfds-compare-table__remove {
	color: var(--mfds-error, #b32d2e) !important;
}
.mfds-compare-table thead th .mfds-compare-table__remove:hover,
.mfds-compare-table thead th .mfds-compare-table__remove:focus {
	color: #ffffff !important;
}


/* ==========================================================================
   v2.0.3.5 — Compare Funds visible desktop refinement
   Built from safe v2.0.3.3 baseline.
   Admin-controlled colours remain authoritative.
   ========================================================================== */
@media (min-width: 769px) {

	/* Page rhythm */
	.mfds-compare-page .mfds-container{
		max-width:1240px;
		margin:0 auto;
	}

	.mfds-compare-page__header{
		margin-bottom:20px;
	}

	.mfds-compare-page__header h1{
		margin-bottom:6px;
	}

	/* Compare Workspace becomes a cleaner card */
	.mfds-compare-selection{
		margin-bottom:22px;
		padding:0;
		border:1px solid #dfe5eb;
		border-radius:12px;
		background:#fff;
		box-shadow:0 4px 18px rgba(20,35,55,.05);
		overflow:hidden;
	}

	.mfds-compare-selection__title{
		margin:0;
		padding:18px 22px;
		border-bottom:1px solid #e7ebef;
		background:#fbfcfd;
		font-size:1.05rem;
	}

	.mfds-compare-selector{
		border:0 !important;
		border-radius:0 !important;
		box-shadow:none !important;
		background:#fff;
	}

	.mfds-compare-selector__header{
		padding:20px 24px 16px;
		border-bottom:1px solid #eef1f4;
	}

	.mfds-compare-selector__body{
		display:grid;
		grid-template-columns:minmax(0,1fr) minmax(360px,.78fr);
	}

	.mfds-compare-selector__search,
	.mfds-compare-selector__selected{
		padding:22px 24px;
	}

	.mfds-compare-selector__selected{
		border-left:1px solid #e7ebef;
		background:#fbfcfd;
	}

	.mfds-compare-selector__footer{
		padding:15px 24px;
		border-top:1px solid #e7ebef;
		background:#fbfcfd;
	}

	/* Selected fund pills/cards become easier to scan */
	.mfds-compare-selected-funds{
		display:grid;
		gap:10px;
	}

	.mfds-compare-selected-funds > *{
		border-radius:9px;
	}

	/* Performance chart becomes one strong section */
	.mfds-compare-chart-section{
		margin-top:22px;
		padding:22px;
		border:1px solid #dfe5eb;
		border-radius:12px;
		background:#fff;
		box-shadow:0 4px 18px rgba(20,35,55,.05);
	}

	.mfds-compare-chart-section__header{
		margin-bottom:16px;
		text-align:left;
	}

	.mfds-compare-chart-card{
		border-radius:10px;
		overflow:hidden;
	}

	.mfds-compare-chart-actions{
		display:flex;
		align-items:center;
		justify-content:space-between;
		gap:14px;
		margin-top:14px;
	}

	.mfds-compare-chart-periods{
		display:flex;
		flex-wrap:wrap;
		gap:6px;
	}

	.mfds-compare-chart-periods__button{
		min-width:44px;
		border-radius:6px;
	}

	/* Performance summary reads as cards instead of loose text */
	.mfds-compare-performance-summary{
		margin-top:18px;
		padding-top:18px;
		border-top:1px solid #e7ebef;
	}

	.mfds-compare-performance-summary__grid{
		display:grid;
		grid-template-columns:repeat(4,minmax(0,1fr));
		gap:12px;
	}

	.mfds-compare-performance-card{
		padding:16px;
		border:1px solid #e3e8ee;
		border-radius:9px;
		background:#fbfcfd;
	}

	.mfds-compare-performance-card__label{
		margin-bottom:7px;
		font-size:.72rem;
		font-weight:700;
		text-transform:uppercase;
		letter-spacing:.03em;
	}

	.mfds-compare-performance-card__value{
		margin-top:5px;
		font-size:1.05rem;
		font-weight:800;
	}

	/* Comparison table becomes a distinct card */
	.mfds-compare-table-section{
		margin-top:22px;
		padding:0;
		border:1px solid #dfe5eb;
		border-radius:12px;
		background:#fff;
		box-shadow:0 4px 18px rgba(20,35,55,.05);
		overflow:hidden;
	}

	.mfds-compare-results{
		overflow-x:auto;
	}

	.mfds-compare-table{
		margin:0;
		width:100%;
		border-collapse:separate;
		border-spacing:0;
		table-layout:fixed;
	}

	.mfds-compare-table th,
	.mfds-compare-table td{
		padding:13px 16px;
		line-height:1.45;
		vertical-align:middle;
	}

	.mfds-compare-table tbody th{
		width:190px;
		background:#f8fafb;
		font-weight:700;
	}

	.mfds-compare-table tbody tr:nth-child(even) td{
		background:#fcfdfd;
	}

	.mfds-compare-table thead th{
		padding-top:16px;
		padding-bottom:16px;
		vertical-align:top;
	}

	.mfds-compare-table__fund-link,
	.mfds-compare-table__fund-name{
		line-height:1.35;
	}

	.mfds-compare-table__remove{
		margin-top:10px;
	}

	.mfds-compare-export-actions{
		display:flex;
		align-items:center;
		gap:10px;
		padding:14px 16px 16px;
		border-top:1px solid #e7ebef;
		background:#fbfcfd;
	}

	.mfds-compare-page__disclaimer{
		margin:14px 2px 0;
	}
}


/* ==========================================================================
   v2.0.3.6 — Compare Performance Chart refinement
   Visual treatment only; chart data/JS/period logic unchanged.
   ========================================================================== */
@media (min-width:769px){

	.mfds-compare-chart-section{
		padding:26px 28px 24px;
		border:1px solid #dfe5eb;
		border-radius:14px;
		background:#fff;
		box-shadow:0 6px 22px rgba(20,35,55,.06);
	}

	.mfds-compare-chart-section__header{
		display:flex;
		flex-direction:column;
		align-items:center;
		margin-bottom:18px;
		text-align:center;
	}

	.mfds-compare-chart-section__title{
		margin:0 0 6px;
		font-size:1.18rem;
		font-weight:800;
		line-height:1.3;
	}

	.mfds-compare-chart-section__description{
		max-width:760px;
		margin:0;
		color:#667085;
		font-size:.82rem;
		line-height:1.55;
	}

	.mfds-compare-chart-card{
		padding:18px 18px 14px;
		border:1px solid #e3e8ee;
		border-radius:12px;
		background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
		box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
	}

	.mfds-compare-chart-canvas-wrap{
		min-height:430px;
		padding:8px 6px 2px;
		border-radius:9px;
		background:#fff;
	}

	.mfds-compare-chart{
		width:100%;
		max-height:440px;
	}

	.mfds-compare-chart-actions{
		display:flex;
		align-items:center;
		justify-content:space-between;
		gap:16px;
		margin-top:16px;
		padding-top:14px;
		border-top:1px solid #e7ebef;
	}

	.mfds-compare-chart-period{
		display:flex;
		align-items:center;
		gap:10px;
	}

	.mfds-compare-chart-period__label{
		margin:0;
		color:#667085;
		font-size:.72rem;
		font-weight:700;
		white-space:nowrap;
	}

	.mfds-compare-chart-periods{
		display:flex;
		flex-wrap:wrap;
		gap:6px;
		padding:4px;
		border:1px solid #e1e7e3;
		border-radius:9px;
		background:#f6f8f7;
	}

	.mfds-compare-chart-periods__button{
		min-width:44px;
		min-height:32px;
		padding:6px 10px;
		border:0;
		border-radius:6px;
		background:transparent;
		font-size:.72rem;
		font-weight:700;
		transition:background .18s ease,color .18s ease,box-shadow .18s ease;
	}

	.mfds-compare-chart-periods__button.is-active{
		background:#fff;
		box-shadow:0 1px 4px rgba(16,24,40,.10);
	}

	.mfds-compare-chart-legend{
		display:flex;
		flex-wrap:wrap;
		justify-content:center;
		gap:10px 18px;
		margin-top:14px;
		padding:12px 14px 0;
		border-top:1px solid #eef1f4;
		font-size:.72rem;
		line-height:1.4;
	}

	.mfds-compare-chart-status{
		margin-bottom:10px;
		font-size:.76rem;
	}

	.mfds-compare-chart-tooltip{
		border-radius:8px;
		box-shadow:0 10px 28px rgba(15,23,42,.18);
	}

	.mfds-compare-performance-summary{
		margin-top:18px;
		padding-top:18px;
		border-top:1px solid #e7ebef;
	}

	.mfds-compare-performance-summary__title{
		margin-bottom:12px;
		text-align:left;
		font-size:.92rem;
		font-weight:800;
	}
}


/* ==========================================================================
   v2.0.3.7 — Compare table readability refinement
   Desktop presentation only. Admin colours and functionality unchanged.
   ========================================================================== */
@media (min-width:769px){

	.mfds-compare-table-section{
		margin-top:24px;
		border:1px solid #dfe5eb;
		border-radius:12px;
		background:#fff;
		box-shadow:0 5px 18px rgba(20,35,55,.05);
		overflow:hidden;
	}

	.mfds-compare-results{
		overflow-x:auto;
		background:#fff;
	}

	.mfds-compare-table{
		width:100%;
		margin:0;
		border-collapse:separate;
		border-spacing:0;
		table-layout:fixed;
	}

	.mfds-compare-table th,
	.mfds-compare-table td{
		padding:14px 16px;
		border-right:1px solid #e3e8ee;
		border-bottom:1px solid #e7ebef;
		vertical-align:middle;
		line-height:1.45;
	}

	.mfds-compare-table tr > *:last-child{
		border-right:0;
	}

	.mfds-compare-table tbody tr:last-child > *{
		border-bottom:0;
	}

	/* Row labels become a stable visual anchor. */
	.mfds-compare-table tbody th{
		width:190px;
		background:#f7f9fb;
		color:#172033;
		font-size:.78rem;
		font-weight:800;
		letter-spacing:.005em;
	}

	.mfds-compare-table tbody td{
		color:#263241;
		font-size:.79rem;
	}

	.mfds-compare-table tbody tr:nth-child(even) td{
		background:#fcfdfd;
	}

	.mfds-compare-table tbody tr:hover td,
	.mfds-compare-table tbody tr:hover th{
		background:#f7faf8;
	}

	/* Header keeps admin-controlled background/text colours. */
	.mfds-compare-table thead th{
		padding:17px 18px 16px;
		vertical-align:top;
	}

	.mfds-compare-table thead th:first-child{
		width:190px;
	}

	.mfds-compare-table__fund-link,
	.mfds-compare-table__fund-name{
		display:block;
		margin:0;
		font-size:.84rem;
		font-weight:800;
		line-height:1.4;
		overflow-wrap:anywhere;
	}

	.mfds-compare-table__fund-meta{
		display:block;
		margin-top:5px;
		font-size:.68rem;
		line-height:1.4;
		opacity:.9;
	}

	.mfds-compare-table__remove{
		margin-top:10px;
		min-height:32px;
		padding:5px 11px;
		border-radius:6px;
		font-size:.69rem;
		font-weight:700;
	}

	/* Make numeric/return values easier to scan. */
	.mfds-compare-table td[data-label*="Return"],
	.mfds-compare-table td[data-label="Latest NAV"],
	.mfds-compare-table td[data-label="Expense Ratio"],
	.mfds-compare-table td[data-label="AUM"]{
		font-variant-numeric:tabular-nums;
	}

	/* Keep unavailable values visibly secondary. */
	.mfds-compare-table td:has(> .mfds-value-unavailable),
	.mfds-compare-table td .mfds-value-unavailable{
		color:#8a94a0;
	}

	.mfds-compare-export-actions{
		display:flex;
		align-items:center;
		gap:10px;
		padding:14px 16px 16px;
		border-top:1px solid #e7ebef;
		background:#fbfcfd;
	}
}


/* ==========================================================================
   v2.0.3.8 — Compare Funds mobile refinement
   Mobile only. Desktop remains unchanged.
   ========================================================================== */
@media (max-width:768px){

	/* Tighter page rhythm */
	.mfds-compare-page__header{
		margin-bottom:18px;
	}
	.mfds-compare-page__header h1{
		margin-bottom:6px;
	}
	.mfds-compare-selection{
		border-radius:12px;
		overflow:hidden;
	}
	.mfds-compare-selection__title{
		padding:18px 18px 10px;
	}

	/* Compact Compare Workspace */
	.mfds-compare-selector__header{
		padding:18px 16px;
	}
	.mfds-compare-selector__body{
		display:flex;
		flex-direction:column;
	}
	.mfds-compare-selector__selected{
		order:1;
		padding:16px;
	}
	.mfds-compare-selector__search{
		order:2;
		padding:16px;
		border-top:1px solid #e5e9ee;
	}
	.mfds-compare-selector__footer{
		padding:12px 16px;
	}
	.mfds-compare-selected-funds{
		gap:8px;
	}

	/* Reduce oversized persistent action tray */
	.mfds-compare-basket{
		left:10px;
		right:10px;
		bottom:8px;
		width:auto;
		padding:11px 14px 12px;
		border-radius:12px;
		box-shadow:0 8px 24px rgba(15,23,42,.14);
	}
	.mfds-compare-basket__summary{
		margin-bottom:9px;
		font-size:.82rem;
	}
	.mfds-compare-basket__actions{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:8px;
	}
	.mfds-compare-basket__actions .mfds-button,
	.mfds-compare-basket__actions button{
		min-height:42px;
		padding:8px 10px;
		font-size:.78rem;
	}
	.mfds-compare-page{
		padding-bottom:112px;
	}

	/* Chart remains responsive but wastes less vertical space */
	.mfds-compare-chart-section{
		padding:18px 12px;
		border-radius:12px;
	}
	.mfds-compare-chart-section__header{
		margin-bottom:14px;
	}
	.mfds-compare-chart-section__description{
		line-height:1.5;
	}
	.mfds-compare-chart-card{
		padding:10px 8px;
	}
	.mfds-compare-chart-canvas-wrap{
		min-height:330px;
	}
	.mfds-compare-chart{
		max-height:350px;
	}
	.mfds-compare-chart-actions{
		display:block;
		margin-top:12px;
	}
	.mfds-compare-chart-period{
		display:block;
	}
	.mfds-compare-chart-period__label{
		display:block;
		margin:0 0 8px;
		text-align:center;
	}
	.mfds-compare-chart-periods{
		display:grid;
		grid-template-columns:repeat(5,1fr);
		gap:0;
		width:100%;
	}
	.mfds-compare-chart-periods__button{
		min-width:0;
		width:100%;
	}
	.mfds-compare-chart-legend{
		display:grid;
		grid-template-columns:1fr;
		gap:10px;
		margin-top:14px;
		padding:14px 8px 0;
	}

	/* Purposeful horizontal comparison table.
	   First column stays visible while fund columns swipe horizontally. */
	.mfds-compare-table-section{
		overflow:visible;
	}
	.mfds-compare-results{
		position:relative;
		overflow-x:auto;
		overflow-y:visible;
		-webkit-overflow-scrolling:touch;
		scrollbar-width:thin;
	}
	.mfds-compare-table{
		width:max-content;
		min-width:100%;
		table-layout:fixed;
	}
	.mfds-compare-table thead th:first-child,
	.mfds-compare-table tbody th{
		position:sticky;
		left:0;
		z-index:4;
		width:150px;
		min-width:150px;
		max-width:150px;
	}
	.mfds-compare-table thead th:first-child{
		z-index:6;
	}
	.mfds-compare-table tbody th{
		background:#f7f9fb;
		box-shadow:1px 0 0 #dfe5eb;
	}
	.mfds-compare-table thead th:not(:first-child),
	.mfds-compare-table tbody td{
		width:220px;
		min-width:220px;
		max-width:220px;
	}
	.mfds-compare-table th,
	.mfds-compare-table td{
		padding:12px 14px;
	}
	.mfds-compare-table__fund-link,
	.mfds-compare-table__fund-name{
		font-size:.78rem;
		line-height:1.4;
	}
	.mfds-compare-table__remove{
		margin-top:8px;
	}
	.mfds-compare-export-actions{
		padding:12px 0 4px;
	}
	.mfds-compare-page__disclaimer{
		margin-top:14px;
	}
}


/* ==========================================================================
   v2.0.3.9 — Compare mobile compact tray + table columns
   Mobile only. Desktop/chart/functionality unchanged.
   ========================================================================== */
@media (max-width:768px){

	/* Slimmer persistent action bar so content is not heavily obscured. */
	.mfds-compare-basket{
		left:8px;
		right:8px;
		bottom:6px;
		display:grid;
		grid-template-columns:auto minmax(0,1fr);
		align-items:center;
		gap:10px;
		padding:8px 10px;
		border-radius:10px;
	}

	.mfds-compare-basket__summary{
		margin:0;
		white-space:nowrap;
		font-size:.72rem;
		line-height:1.2;
	}

	.mfds-compare-basket__actions{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:6px;
	}

	.mfds-compare-basket__actions .mfds-button,
	.mfds-compare-basket__actions button{
		min-height:36px;
		padding:6px 8px;
		font-size:.70rem;
		line-height:1.15;
	}

	.mfds-compare-page{
		padding-bottom:72px;
	}

	/* More useful mobile table viewport:
	   compact sticky labels + narrower fund columns. */
	.mfds-compare-table thead th:first-child,
	.mfds-compare-table tbody th{
		width:118px;
		min-width:118px;
		max-width:118px;
	}

	.mfds-compare-table thead th:not(:first-child),
	.mfds-compare-table tbody td{
		width:185px;
		min-width:185px;
		max-width:185px;
	}

	.mfds-compare-table th,
	.mfds-compare-table td{
		padding:11px 10px;
	}

	.mfds-compare-table tbody th{
		font-size:.72rem;
		line-height:1.3;
		overflow-wrap:anywhere;
	}

	/* Keep fund headers compact and predictable. */
	.mfds-compare-table thead th:not(:first-child){
		height:142px;
		max-height:142px;
		overflow:hidden;
	}

	.mfds-compare-table__fund-link,
	.mfds-compare-table__fund-name{
		display:-webkit-box;
		-webkit-box-orient:vertical;
		-webkit-line-clamp:3;
		overflow:hidden;
		font-size:.72rem;
		line-height:1.35;
	}

	.mfds-compare-table__fund-meta{
		display:none;
	}

	.mfds-compare-table__remove{
		min-height:30px;
		margin-top:8px;
		padding:4px 9px;
		font-size:.66rem;
	}

	/* Slightly tighter selected-fund rows in the workspace. */
	.mfds-compare-selector__selected{
		padding-top:14px;
		padding-bottom:14px;
	}

	.mfds-compare-selected-funds{
		gap:6px;
	}
}


/* ==========================================================================
   v2.0.4.0 — Compare header X control + return-first table order
   ========================================================================== */
.mfds-compare-table thead th:not(:first-child){
	position:relative;
}
.mfds-compare-table__remove{
	position:absolute !important;
	top:8px;
	right:8px;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	width:28px;
	height:28px;
	min-width:28px !important;
	min-height:28px !important;
	margin:0 !important;
	padding:0 !important;
	border-radius:50% !important;
	font-size:1rem !important;
	font-weight:800 !important;
	line-height:1 !important;
}
.mfds-compare-table__fund-link,
.mfds-compare-table__fund-name{
	padding-right:30px;
}
@media (max-width:768px){
	.mfds-compare-table__remove{
		top:7px;
		right:7px;
		width:26px;
		height:26px;
		min-width:26px !important;
		min-height:26px !important;
		font-size:.95rem !important;
	}
	.mfds-compare-table__fund-link,
	.mfds-compare-table__fund-name{
		padding-right:26px;
	}
}


/* ==========================================================================
   v2.0.4.1 — Compare mobile Selected Funds + header-height cleanup
   Mobile only.
   ========================================================================== */
@media (max-width:768px){

	/* Selected Funds: two columns to save vertical space. */
	.mfds-compare-selected-funds{
		display:grid !important;
		grid-template-columns:repeat(2,minmax(0,1fr));
		gap:8px !important;
	}

	.mfds-compare-selected-funds > *{
		min-width:0;
		margin:0 !important;
	}

	/* Compact each selected-fund card. */
	.mfds-compare-selected-fund{
		position:relative;
		min-height:58px;
		padding:9px 36px 9px 9px !important;
		align-items:flex-start;
	}

	.mfds-compare-selected-fund__index{
		flex:0 0 auto;
	}

	.mfds-compare-selected-fund__name{
		display:-webkit-box;
		-webkit-box-orient:vertical;
		-webkit-line-clamp:2;
		overflow:hidden;
		min-width:0;
		font-size:.70rem;
		line-height:1.3;
	}

	.mfds-compare-selected-fund__remove{
		position:absolute;
		top:50%;
		right:7px;
		transform:translateY(-50%);
	}

	/* Maximum-limit notice can use the remaining half-row space. */
	.mfds-compare-limit-message{
		margin:0 !important;
		min-height:58px;
		padding:8px 10px !important;
		display:flex;
		align-items:center;
		justify-content:center;
		text-align:center;
		font-size:.68rem;
		line-height:1.25;
	}

	/* Remove excess lower spacing from Selected Funds area. */
	.mfds-compare-selector__selected{
		padding-bottom:10px !important;
	}
	.mfds-compare-selector__selected > *:last-child{
		margin-bottom:0 !important;
	}

	/* Table header should fit content instead of reserving a tall block. */
	.mfds-compare-table thead th:not(:first-child){
		height:auto !important;
		min-height:0 !important;
		max-height:none !important;
		padding-top:12px !important;
		padding-bottom:12px !important;
	}

	.mfds-compare-table thead th:first-child{
		height:auto !important;
		min-height:0 !important;
		padding-top:12px !important;
		padding-bottom:12px !important;
	}

	.mfds-compare-table__fund-link,
	.mfds-compare-table__fund-name{
		margin-bottom:0 !important;
	}

	/* Keep the X in the top-right without increasing header height. */
	.mfds-compare-table__remove{
		top:7px !important;
		right:7px !important;
	}
}

/* v2.0.5.0 — approved compact All Mutual Funds mobile card */
@media screen and (max-width: 767px) {
 .mfds-fund-table .mfds-table tbody tr{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-bottom:10px!important;overflow:hidden}
 .mfds-fund-table .mfds-column-fund-name{grid-column:1/-1!important;padding:12px 14px 5px!important;border:0!important}
 .mfds-fund-table .mfds-column-fund-name::before{display:none!important}
 .mfds-fund-table .mfds-table__fund-name{font-size:16px!important;line-height:1.35!important}
 .mfds-fund-table .mfds-column-fund-name .mfds-table__meta{display:none!important}
 .mfds-fund-table .mfds-column-amc{display:none!important}
 .mfds-fund-table .mfds-column-category{grid-column:1/3!important;display:block!important;padding:3px 7px 9px 14px!important;border:0!important;min-height:0!important;font-size:12px!important;line-height:1.35!important}
 .mfds-fund-table .mfds-column-category::before{display:none!important}
 .mfds-fund-table .mfds-column-category>strong{display:none!important}
 .mfds-fund-table .mfds-column-category .mfds-table__meta{display:block!important;margin:0!important}
 .mfds-fund-table .mfds-column-nav{grid-column:3/5!important;display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;gap:6px!important;padding:3px 14px 9px 7px!important;border:0!important;min-height:0!important;font-size:13px!important;line-height:1.35!important;text-align:right!important}
 .mfds-fund-table .mfds-column-nav::before{content:"NAV"!important;display:inline!important;width:auto!important;margin:0!important;font-size:11px!important;font-weight:700!important}
 .mfds-fund-table .mfds-column-nav .mfds-table__meta{display:none!important}
 .mfds-fund-table .mfds-column-return-1y,.mfds-fund-table .mfds-column-return-3y,.mfds-fund-table .mfds-column-return-5y,.mfds-fund-table .mfds-column-return-since-inception{grid-column:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:0!important;padding:8px 3px!important;border-top:1px solid #e8edf3!important;border-bottom:0!important;text-align:center!important}
 .mfds-fund-table .mfds-column-return-1y,.mfds-fund-table .mfds-column-return-3y,.mfds-fund-table .mfds-column-return-5y{border-right:1px solid #eef2f6!important}
 .mfds-fund-table .mfds-column-return-1y::before,.mfds-fund-table .mfds-column-return-3y::before,.mfds-fund-table .mfds-column-return-5y::before,.mfds-fund-table .mfds-column-return-since-inception::before{display:block!important;width:auto!important;margin:0 0 4px!important;font-size:10px!important;font-weight:700!important;line-height:1.2!important;text-align:center!important}
 .mfds-fund-table .mfds-column-return-1y::before{content:"1Y"!important}.mfds-fund-table .mfds-column-return-3y::before{content:"3Y"!important}.mfds-fund-table .mfds-column-return-5y::before{content:"5Y"!important}.mfds-fund-table .mfds-column-return-since-inception::before{content:"SI"!important}
 .mfds-fund-table .mfds-table__return,.mfds-fund-table .mfds-return{margin:0!important;padding:3px 6px!important;font-size:13px!important;line-height:1.2!important}
 .mfds-fund-table .mfds-column-invest-now{grid-column:1/-1!important;display:flex!important;justify-content:flex-start!important;padding:8px 14px 11px!important;border:0!important;min-height:0!important}
 .mfds-fund-table .mfds-column-invest-now::before{display:none!important}
 .mfds-fund-table .mfds-column-invest-now .mfds-button,.mfds-fund-table .mfds-column-invest-now a,.mfds-fund-table .mfds-column-invest-now button{width:auto!important;min-width:118px!important;min-height:34px!important;margin:0!important;padding:6px 14px!important;font-size:13px!important;line-height:1.2!important}
}
