/**
 * Domain Finance calculator suite — layout mirrors the Astro build's
 * CalculatorLayout.tsx (inputs left, brand-gradient result card right).
 */
.df-calc {
	display: grid;
	gap: 2rem;
	max-width: 64rem;
	margin: 0 auto;
}

@media ( min-width: 768px ) {
	.df-calc {
		grid-template-columns: 1fr 1fr;
	}
}

.df-calc-inputs {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.df-calc-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var( --wp--preset--color--contrast, #002855 );
}

.df-calc-input-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	padding: 0.55rem 0.9rem;
	background: #fff;
}

.df-calc-input-wrap:focus-within {
	border-color: var( --wp--preset--color--accent-1, #0058bb );
	box-shadow: 0 0 0 3px rgba( 0, 88, 187, 0.15 );
}

.df-calc-affix {
	color: rgba( 0, 40, 85, 0.6 );
	font-weight: 400;
}

.df-calc-input-wrap input[type="number"] {
	width: 100%;
	border: 0;
	outline: none;
	font: inherit;
	font-weight: 400;
	color: inherit;
	background: transparent;
}

.df-calc-toggle {
	border: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.df-calc-toggle legend {
	padding: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var( --wp--preset--color--contrast, #002855 );
}

.df-calc-toggle-buttons {
	display: flex;
	gap: 0.5rem;
}

.df-calc-toggle-buttons button {
	flex: 1;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 8px;
	padding: 0.55rem 0.75rem;
	font-size: 0.9rem;
	font-weight: 700;
	font-family: inherit;
	background: #fff;
	color: var( --wp--preset--color--contrast, #002855 );
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.df-calc-toggle-buttons button:hover {
	background: rgba( 0, 0, 0, 0.05 );
}

.df-calc-toggle-buttons button.is-active {
	background: var( --wp--preset--color--accent-1, #0058bb );
	border-color: var( --wp--preset--color--accent-1, #0058bb );
	color: #fff;
}

.df-calc-results {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-radius: 12px;
	padding: 1.5rem;
	background: var( --wp--preset--gradient--brand, linear-gradient( 64deg, #002855 25%, #0058bb 98% ) );
	color: #fff;
}

.df-calc-result-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.df-calc-result-label {
	font-size: 0.9rem;
	color: rgba( 255, 255, 255, 0.8 );
}

.df-calc-result-value {
	font-weight: 700;
}

.df-calc-result-row.is-emphasis .df-calc-result-label {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.df-calc-result-row.is-emphasis .df-calc-result-value {
	font-size: 1.9rem;
	font-weight: 800;
}

.df-calc-conditional {
	background: rgba( 255, 255, 255, 0.1 );
	border-radius: 8px;
	padding: 0.75rem 1rem;
	font-size: 0.85rem;
	margin: 0;
}

.df-calc-footnote {
	font-size: 0.8rem;
	line-height: 1.6;
	color: rgba( 255, 255, 255, 0.7 );
	margin: 0;
}

.df-calc-footnote a {
	color: #fff;
	text-decoration: underline;
}
