/* Market Feasibility Analysis (scoped) */
.fp-mfa-scope .fpp-section-wrapper {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.fp-mfa-scope .fpp-sheet-auditor {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	grid-template-areas:
		'header header'
		'sidebar outputs'
		'footer footer';
	overflow: hidden;
	overflow-x: clip;
	border: 1px solid var(--border-light, #E6E6E3);
	font-family: 'IBM Plex Sans', sans-serif;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	container-type: inline-size;
	container-name: fp-mfa-auditor;
}

.fp-mfa-scope .fpp-sheet-auditor * {
	box-sizing: border-box;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-sheet-merged-header--cta,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-sheet-merged-header--cta,
.elementor-widget:has([data-fp-tool-render="market-feasibility"]) .fp-mfa-scope .fpp-sheet-merged-header--cta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-header-titles,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-header-titles {
	display: flex;
	flex-direction: column;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-protocol-line,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-protocol-line {
	font-size: 0.8rem;
	color: var(--fp-gold, #B87F0D);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 700;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-btn-explore,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-btn-explore {
	background: var(--fp-gold, #B87F0D);
	color: var(--fp-navy, #0C0C30);
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	transition: 0.3s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-btn-explore:hover,
.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-btn-explore:focus,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-btn-explore:hover,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-btn-explore:focus {
	background: #fff;
	color: var(--fp-navy, #0C0C30);
	box-shadow: 0 4px 15px rgba(184, 127, 13, 0.4);
}

.fp-mfa-scope .fpp-unified-auditor .fpp-sheet-merged-header,
.fp-mfa-scope .fpp-sheet-auditor .fpp-sheet-merged-header {
	grid-area: header;
}

.fp-mfa-scope .fpp-sidebar-inputs {
	grid-area: sidebar;
	padding: 2.5rem;
	background-color: #fcfcfb;
	border-right: 1px solid var(--border-light, #E6E6E3);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

.fp-mfa-scope .fpp-main-outputs {
	grid-area: outputs;
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 2.2rem;
	background: #fff;
	min-width: 0;
}

.fp-mfa-scope .fpp-sheet-auditor .fpp-action-footer {
	grid-area: footer;
	margin-top: 0;
	flex-shrink: 0;
	border-radius: 0 0 4px 4px;
}

.fp-mfa-scope .fpp-input-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fp-mfa-scope .fpp-input-group label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--fp-navy, #0C0C30);
}

.fp-mfa-scope .fpp-input-with-prefix {
	position: relative;
	display: flex;
	align-items: center;
}

.fp-mfa-scope .fpp-prefix {
	position: absolute;
	left: 12px;
	font-weight: 600;
	color: #666;
	pointer-events: none;
}

.fp-mfa-scope .fpp-sidebar-inputs input[type="text"],
.fp-mfa-scope .fpp-sidebar-inputs select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.95rem;
	color: var(--fp-navy, #0C0C30);
	background-color: #fff;
	transition: border-color 0.2s;
}

.fp-mfa-scope .fpp-sidebar-inputs input[type="text"].fpp-math-in {
	padding-left: 26px;
}

.fp-mfa-scope .fpp-sidebar-inputs .fpp-search-box {
	padding: 6px 10px;
	font-size: 0.85rem;
	border: 1px dashed #bbb;
	background-color: #f7f7f5;
	margin-bottom: -2px;
	border-radius: 4px 4px 0 0;
}

.fp-mfa-scope .fpp-sidebar-inputs select {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.fp-mfa-scope .fpp-sidebar-inputs input:focus,
.fp-mfa-scope .fpp-sidebar-inputs select:focus {
	outline: none;
	border-color: var(--fp-gold, #B87F0D);
}

.fp-mfa-scope .fpp-mfa-weights {
	margin-top: 0.25rem;
}

.fp-mfa-scope .fpp-mfa-weight-grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.45rem 0.75rem;
	align-items: center;
	margin-top: 0.35rem;
}

.fp-mfa-scope .fpp-mfa-weight-grid > label {
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: #444;
}

.fp-mfa-scope .fpp-mfa-weight-field {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.2rem;
}

.fp-mfa-scope .fpp-mfa-weight-input {
	width: 3.5rem;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.85rem;
	text-align: right;
	color: var(--fp-navy, #0C0C30);
	background-color: #fff;
}

.fp-mfa-scope .fpp-mfa-weight-input:focus {
	outline: none;
	border-color: var(--fp-gold, #B87F0D);
}

.fp-mfa-scope .fpp-mfa-weight-suffix {
	font-size: 0.8rem;
	font-weight: 600;
	color: #666;
}

.fp-mfa-scope .fpp-mfa-weight-total {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--fp-navy, #0C0C30);
}

.fp-mfa-scope .fpp-mfa-weight-total--warn {
	color: var(--fp-warn, #B87F0D);
}

.fp-mfa-scope .fpp-mfa-weight-hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	line-height: 1.4;
	color: #777;
}

.fp-mfa-scope .fpp-sidebar-note {
	background: #f4f4f2;
	border-left: 3px solid var(--fp-gold, #B87F0D);
	padding: 15px;
	border-radius: 0 4px 4px 0;
	margin-top: 0.5rem;
}

.fp-mfa-scope .fpp-sidebar-note h4 {
	margin: 0 0 5px 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--fp-navy, #0C0C30);
}

.fp-mfa-scope .fpp-sidebar-note p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #555;
}

.fp-mfa-scope .fpp-citation-divider {
	border: 0;
	border-top: 1px solid #d1d1d1;
	margin: 12px 0;
}

.fp-mfa-scope .fpp-sidebar-citation {
	font-size: 0.75rem !important;
	color: #777 !important;
	font-style: italic;
	line-height: 1.3 !important;
}

.fp-mfa-scope .fpp-kpi-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.fp-mfa-scope .fpp-kpi-card {
	background: #fdfdfd;
	border: 1px solid var(--border-light, #E6E6E3);
	border-radius: 4px;
	padding: 22px 15px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.fp-mfa-scope .fpp-kpi-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #666;
	margin-bottom: 8px;
}

.fp-mfa-scope .fpp-kpi-value {
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--fp-navy, #0C0C30);
	margin-bottom: 4px;
	line-height: 1.1;
}

.fp-mfa-scope .fpp-kpi-subtext {
	font-size: 0.75rem;
	color: #888;
}

.fp-mfa-scope .fpp-table-container h3 {
	font-family: 'Vollkorn', serif;
	font-size: 1.3rem;
	margin: 0 0 14px 0;
	color: var(--fp-navy, #0C0C30);
}

.fp-mfa-scope .fpp-table-container {
	min-width: 0;
}

.fp-mfa-scope .fpp-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fp-mfa-scope .fpp-breakdown-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.fp-mfa-scope .mfa-th-short {
	display: none;
}

.fp-mfa-scope .fpp-breakdown-table th.mfa-col-category,
.fp-mfa-scope .fpp-breakdown-table td:first-child {
	text-align: left;
	vertical-align: top;
}

.fp-mfa-scope .fpp-breakdown-table th {
	background: #f4f4f2;
	color: var(--fp-navy, #0C0C30);
	text-align: left;
	padding: 12px;
	font-weight: 700;
	border-bottom: 2px solid var(--border-light, #E6E6E3);
}

.fp-mfa-scope .fpp-breakdown-table td {
	padding: 12px;
	border-bottom: 1px solid var(--border-light, #E6E6E3);
	color: #333;
}

.fp-mfa-scope .fpp-breakdown-table th.num-col,
.fp-mfa-scope .fpp-breakdown-table td.num-col {
	text-align: right;
}

.fp-mfa-scope .fpp-breakdown-table tr:hover td {
	background-color: #fafaf9;
}

.fp-mfa-scope .fpp-charts-grid {
	background-color: var(--fp-navy, #0C0C30);
	padding: 25px;
	border-radius: 4px;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
	min-width: 0;
	overflow: hidden;
}

.fp-mfa-scope .fpp-chart-container {
	position: relative;
	width: 100%;
	min-width: 0;
	height: 320px;
}

@container fp-mfa-auditor (max-width: 560px) {
	.fp-mfa-scope .mfa-th-full {
		display: none;
	}

	.fp-mfa-scope .mfa-th-short {
		display: inline;
	}

	.fp-mfa-scope .fpp-breakdown-table {
		font-size: 0.8rem;
	}

	.fp-mfa-scope .fpp-breakdown-table th,
	.fp-mfa-scope .fpp-breakdown-table td {
		padding: 10px 8px;
	}

	.fp-mfa-scope .fpp-breakdown-table th.mfa-col-category,
	.fp-mfa-scope .fpp-breakdown-table td:first-child {
		min-width: 6.75rem;
		max-width: 8.5rem;
		line-height: 1.35;
	}

	.fp-mfa-scope .fpp-breakdown-table th.num-col,
	.fp-mfa-scope .fpp-breakdown-table td.num-col {
		white-space: nowrap;
	}

	.fp-mfa-scope .fpp-charts-grid {
		padding: 14px 10px 16px;
	}

	.fp-mfa-scope .fpp-chart-container {
		height: 380px;
	}
}

@container fp-mfa-auditor (max-width: 900px) {
	.fp-mfa-scope .fpp-sheet-auditor {
		grid-template-columns: 1fr !important;
		grid-template-areas:
			'header'
			'sidebar'
			'outputs'
			'footer';
	}

	.fp-mfa-scope .fpp-sidebar-inputs {
		border-right: none;
		border-bottom: 1px solid var(--border-light, #E6E6E3);
		padding: 1.5rem 1.15rem;
	}

	.fp-mfa-scope .fpp-main-outputs {
		padding: 1.5rem 1.15rem;
	}
}

@media (max-width: 1024px) {
	.fp-mfa-scope .fpp-sheet-auditor {
		grid-template-columns: 1fr !important;
		grid-template-areas:
			'header'
			'sidebar'
			'outputs'
			'footer';
	}

	.fp-mfa-scope .fpp-sidebar-inputs {
		border-right: none;
		border-bottom: 1px solid var(--border-light, #E6E6E3);
		padding: 1.5rem 1.15rem;
	}

	.fp-mfa-scope .fpp-main-outputs {
		padding: 1.5rem 1.15rem;
	}

	.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-sheet-merged-header--cta,
	.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-sheet-merged-header--cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.fp-interactive-wrapper.fp-tool-root.fp-tool-root--market-feasibility .fp-mfa-scope .fpp-btn-explore,
	.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="market-feasibility"] .fp-mfa-scope .fpp-btn-explore {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.fp-mfa-scope .fpp-kpi-grid {
		grid-template-columns: 1fr;
	}

	.fp-mfa-scope .fpp-kpi-value {
		font-size: 1.45rem;
	}

	.fp-mfa-scope .fpp-main-outputs {
		gap: 1.5rem;
		padding: 1.25rem 0.85rem;
	}

	.fp-mfa-scope .fpp-sidebar-inputs {
		padding: 1.25rem 0.85rem;
	}

	.fp-mfa-scope .mfa-th-full {
		display: none;
	}

	.fp-mfa-scope .mfa-th-short {
		display: inline;
	}

	.fp-mfa-scope .fpp-breakdown-table {
		font-size: 0.8rem;
	}

	.fp-mfa-scope .fpp-breakdown-table th,
	.fp-mfa-scope .fpp-breakdown-table td {
		padding: 10px 8px;
	}

	.fp-mfa-scope .fpp-breakdown-table th.mfa-col-category,
	.fp-mfa-scope .fpp-breakdown-table td:first-child {
		min-width: 6.75rem;
		max-width: 8.5rem;
		line-height: 1.35;
	}

	.fp-mfa-scope .fpp-breakdown-table th.num-col,
	.fp-mfa-scope .fpp-breakdown-table td.num-col {
		white-space: nowrap;
	}

	.fp-mfa-scope .fpp-charts-grid {
		padding: 14px 10px 16px;
	}

	.fp-mfa-scope .fpp-chart-container {
		height: 380px;
	}
}
