/* Housing Parity Comparator (scoped) */
.fp-paritycmp-scope .fpp-section-wrapper {
	max-width: 100%;
	padding: 0;
	font-family: 'IBM Plex Sans', sans-serif;
	position: relative;
}

.fp-paritycmp-scope .fpp-sheet-auditor:not(.fpp-fin-comparator-auditor) {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	overflow: hidden;
	border: 1px solid var(--border-light, #e6e6e3);
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

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

.fp-paritycmp-scope .fpp-sheet-auditor:not(.fpp-fin-comparator-auditor) .fpp-sheet-merged-header {
	grid-column: span 2;
	background: var(--fp-navy, #0c0c30);
	color: #fff;
	padding: 25px 30px;
	border-bottom: 4px solid var(--fp-gold, #b87f0d);
}

.fp-paritycmp-scope .fpp-header-row {
	display: block;
}

.fp-paritycmp-scope .fpp-sheet-auditor:not(.fpp-fin-comparator-auditor) .fpp-sheet-merged-header h1 {
	font-family: 'Vollkorn', serif;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	margin: 0;
	line-height: 1.1;
	color: #fff;
}

.fp-paritycmp-scope .fpp-protocol {
	font-size: 0.8rem;
	color: var(--fp-gold, #b87f0d);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 700;
	display: block;
}

.fp-paritycmp-scope .fpp-info-trigger {
	background: transparent;
	border: none;
	color: var(--fp-gold, #b87f0d);
	cursor: pointer;
	padding: 4px;
	border-radius: 50%;
	transition: 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fp-paritycmp-scope .fpp-info-trigger:hover {
	background: rgba(184, 127, 13, 0.15);
}

.fp-paritycmp-scope .fpp-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(12, 12, 48, 0.8);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(4px);
	font-family: 'IBM Plex Sans', sans-serif;
}

.fp-paritycmp-scope .fpp-modal-overlay.active {
	display: flex;
}

.fp-paritycmp-scope .fpp-modal-content {
	background: #fff;
	border-radius: 4px;
	padding: 40px;
	max-width: 600px;
	width: 100%;
	position: relative;
	border-top: 4px solid var(--fp-gold, #b87f0d);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	color: var(--fp-navy, #0c0c30);
}

.fp-paritycmp-scope .fpp-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
	font-weight: 700;
	border: none;
	background: transparent;
	padding: 0;
	line-height: 1;
}

.fp-paritycmp-scope .fpp-modal-close:hover {
	color: var(--fp-danger);
}

.fp-paritycmp-scope .fpp-modal-content h3 {
	font-family: 'Vollkorn', serif;
	margin: 0 0 20px;
	font-size: 1.4rem;
	color: var(--fp-navy, #0c0c30);
}

.fp-paritycmp-scope .fpp-modal-content p {
	margin-bottom: 15px;
	font-size: 0.95rem;
	line-height: 1.6;
}

.fp-paritycmp-scope .fpp-modal-content strong {
	color: var(--fp-gold, #b87f0d);
}

.fp-paritycmp-scope .fpp-sidebar {
	background: #fff;
	border-right: 1px solid var(--border-light, #e6e6e3);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fp-paritycmp-scope .fpp-main-display {
	background: var(--fp-navy, #0c0c30);
	color: #fff;
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 30px;
	min-width: 0;
}

.fp-paritycmp-scope .fpp-main-display .fpp-status-banner {
	padding: 15px 25px;
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
	border-radius: 4px;
	margin-bottom: 15px;
	transition: background 0.3s ease;
}

.fp-paritycmp-scope .fpp-sheet-section-header {
	background: #f8f8f8;
	color: var(--fp-navy, #0c0c30);
	padding: 15px 25px;
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid var(--border-light, #e6e6e3);
	border-top: 1px solid var(--border-light, #e6e6e3);
}

.fp-paritycmp-scope .fpp-sidebar > .fpp-sheet-section-header:first-of-type {
	border-top: none;
}

.fp-paritycmp-scope .fpp-input-group {
	padding: 15px 25px;
	border-bottom: 1px solid #f0f0f0;
}

.fp-paritycmp-scope .fpp-input-group label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #666;
	margin-bottom: 8px;
	display: block;
	letter-spacing: 0.5px;
}

.fp-paritycmp-scope .fpp-sheet-select,
.fp-paritycmp-scope .fpp-sheet-input-wrap {
	width: 100%;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	background: #fcfcfc;
	transition: 0.2s;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--fp-navy, #0c0c30);
}

.fp-paritycmp-scope .fpp-sheet-select {
	padding: 10px;
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230C0C30%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 15px top 50%;
	background-size: 10px auto;
}

.fp-paritycmp-scope .fpp-sheet-input-wrap {
	display: flex;
	align-items: center;
	padding: 6px 12px;
}

.fp-paritycmp-scope .fpp-sheet-input-wrap:focus-within,
.fp-paritycmp-scope .fpp-sheet-select:focus {
	border-color: var(--fp-gold, #b87f0d);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(184, 127, 13, 0.1);
	outline: none;
}

.fp-paritycmp-scope .fpp-sheet-input-wrap span.prefix,
.fp-paritycmp-scope .fpp-sheet-input-wrap span.suffix {
	color: var(--fp-gold, #b87f0d);
	font-weight: 700;
	font-size: 0.9rem;
}

.fp-paritycmp-scope .fpp-sheet-input-wrap span.prefix {
	margin-right: 8px;
}

.fp-paritycmp-scope .fpp-sheet-input-wrap span.suffix {
	margin-left: 8px;
	color: #888;
}

.fp-paritycmp-scope .fpp-sheet-in {
	border: none;
	background: transparent;
	width: 100%;
	outline: none;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fp-navy, #0c0c30);
}

.fp-paritycmp-scope .fpp-toggle-wrapper {
	display: flex;
	background: #f0f0f0;
	border-radius: 4px;
	padding: 4px;
	margin-bottom: 5px;
}

.fp-paritycmp-scope .fpp-toggle-btn {
	flex: 1;
	text-align: center;
	padding: 8px 15px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #666;
	background: transparent;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: 0.3s;
	font-family: 'IBM Plex Sans', sans-serif;
}

.fp-paritycmp-scope .fpp-toggle-btn.active {
	background: #fff;
	color: var(--fp-navy, #0c0c30);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fp-paritycmp-scope .fpp-contextual-group {
	display: none;
}

.fp-paritycmp-scope .fpp-contextual-group.active {
	display: block;
}

.fp-paritycmp-scope .fpp-sub-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.fp-paritycmp-scope .fpp-sub-grid .fpp-input-group--border-left {
	border-left: 1px solid #f0f0f0;
}

.fp-paritycmp-scope .fpp-input-group--flush {
	border-bottom: none;
}

.fp-paritycmp-scope .fpp-sub-grid-divider {
	border-bottom: 1px solid #f0f0f0;
}

.fp-paritycmp-scope .fpp-parity-hero {
	text-align: center;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
	padding-bottom: 25px;
}

.fp-paritycmp-scope .fpp-parity-hero h2 {
	font-family: 'Vollkorn', serif;
	font-size: 1.6rem;
	margin: 0;
	line-height: 1.4;
	color: #fff;
}

.fp-paritycmp-scope .fpp-main-display .fpp-zone-title {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 700;
	margin-bottom: 15px;
	text-align: center;
}

.fp-paritycmp-scope .fpp-main-display .fpp-space-swap {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 30px;
	height: 180px;
	padding-bottom: 10px;
}

.fp-paritycmp-scope .fpp-main-display .fpp-box-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 140px;
}

.fp-paritycmp-scope .fpp-main-display .fpp-box {
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid rgba(255, 255, 255, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	text-align: center;
	margin-bottom: 5px;
}

.fp-paritycmp-scope .fpp-main-display .fpp-box.target {
	border-color: var(--fp-gold, #b87f0d);
	background: rgba(184, 127, 13, 0.1);
	color: var(--fp-gold, #b87f0d);
}

.fp-paritycmp-scope .fpp-main-display .fpp-box-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
}

.fp-paritycmp-scope .fpp-main-display .fpp-box-label--target {
	color: var(--fp-gold, #b87f0d);
}

.fp-paritycmp-scope .fpp-main-display .fpp-features-list {
	font-size: 0.7rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}

.fp-paritycmp-scope .fpp-main-display .fpp-features-list strong {
	color: #fff;
	font-weight: 600;
}

.fp-paritycmp-scope .fpp-main-display .fpp-features-list.target strong {
	color: var(--fp-gold, #b87f0d);
}

.fp-paritycmp-scope .fpp-chart-zone {
	border-top: 1px dashed rgba(255, 255, 255, 0.2);
	padding-top: 30px;
}

.fp-paritycmp-scope .fpp-main-display .fpp-chart-container {
	width: 100%;
	height: 220px;
	position: relative;
}

.fp-paritycmp-scope .fpp-fin-comparator-auditor .fpp-chart-container {
	width: 100%;
	height: auto;
	min-height: 0;
	position: relative;
}

@media (max-width: 900px) {
	.fp-paritycmp-scope .fpp-sheet-auditor:not(.fpp-fin-comparator-auditor) {
		grid-template-columns: 1fr;
	}

	.fp-paritycmp-scope .fpp-sheet-auditor:not(.fpp-fin-comparator-auditor) .fpp-sheet-merged-header,
	.fp-paritycmp-scope .fpp-sheet-auditor:not(.fpp-fin-comparator-auditor) .fpp-action-footer {
		grid-column: span 1;
	}

	.fp-paritycmp-scope .fpp-sidebar {
		border-right: none;
		border-bottom: 1px solid var(--border-light, #e6e6e3);
	}

	.fp-paritycmp-scope .fpp-fin-comparator-auditor .fpp-btn-vault {
		width: 100%;
		max-width: 100%;
		flex: none;
		min-height: 44px;
		padding: 10px 8px;
		font-size: 0.68rem;
		box-sizing: border-box;
	}

	.fp-paritycmp-scope .fpp-sub-grid {
		grid-template-columns: 1fr;
	}

	.fp-paritycmp-scope .fpp-sub-grid .fpp-input-group--border-left {
		border-left: none;
	}
}

