/*
 * Mortgage calculator page (templates/mortgage-calculator.php).
 * Standalone stylesheet — enqueued only on this template so the
 * hand-compiled styles/base.css doesn't need a rebuild.
 * Tokens follow the css/style.css skin: cream #F1F0EE, black #171717,
 * charcoal #47423E, grays #B8BBBE/#596267, accent #EB582C.
 * One cream canvas, hairline rules, no cards or chrome.
 */

.page-base.mortgage-calculator {
	margin: 0;
	background: var(--cream, #F1F0EE);
	color: #47423E;
}

.mc-section {
	padding: 90px 0;
}

/* Display heading — matches .list_property h2 / .blog_title h2 */
.mc-display {
	text-align: center;
	color: #47423E;
	font-family: "Cormorant Garamond", serif;
	font-size: 80px;
	font-style: normal;
	text-transform: uppercase;
	font-weight: 300;
	line-height: 95%;
	letter-spacing: -2.4px;
	margin: 0 0 40px;
}

.mc-display i {
	color: var(--Gray, #B8BBBE);
	font-style: italic;
}

.mc-intro {
	max-width: 640px;
	margin: 0 auto 90px;
	text-align: center;
}

.mc-intro p {
	color: #47423E;
	font-family: Raleway, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 180%;
}

/* Calculator — two airy columns split by a hairline */
.mc-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	max-width: 1060px;
	margin: 0 auto;
}

.mc-inputs {
	flex: 1 1 400px;
	min-width: 0;
	box-sizing: border-box;
	padding-right: 70px;
	border-right: 1px solid rgba(71, 66, 62, 0.2);
}

.mc-results {
	flex: 1 1 400px;
	min-width: 0;
	box-sizing: border-box;
	padding-left: 70px;
}

.mc-field {
	margin-bottom: 36px;
}

.mc-field label {
	display: block;
	font-family: Raleway, sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(71, 66, 62, 0.6);
	margin-bottom: 2px;
}

.mc-field input,
.mc-field select {
	width: 100%;
	padding: 8px 0;
	font-family: "Cormorant Garamond", serif;
	font-size: 26px;
	font-weight: 500;
	color: #171717;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(71, 66, 62, 0.35);
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	transition: border-color 0.25s ease;
}

.mc-field input:focus,
.mc-field select:focus {
	outline: none;
	border-bottom-color: #171717;
}

.mc-field input::placeholder {
	font-family: "Cormorant Garamond", serif;
	font-style: italic;
	font-weight: 400;
	font-size: 21px;
	color: #B8BBBE;
	opacity: 1;
}

.mc-field select.is-empty {
	font-style: italic;
	font-weight: 400;
	font-size: 21px;
	color: #B8BBBE;
}

.mc-field-row {
	display: flex;
	gap: 40px;
}

.mc-field-row .mc-field {
	flex: 1;
}

.mc-input-affix {
	position: relative;
}

.mc-input-affix .mc-affix {
	position: absolute;
	bottom: 12px;
	font-family: "Cormorant Garamond", serif;
	font-size: 22px;
	color: #B8BBBE;
	pointer-events: none;
}

.mc-input-affix .mc-affix-pre {
	left: 0;
}

.mc-input-affix .mc-affix-post {
	right: 0;
}

.mc-input-affix input.has-prefix {
	padding-left: 20px;
}

.mc-input-affix input.has-suffix {
	padding-right: 26px;
}

/* Secondary inputs behind a quiet toggle */
.mc-refine {
	margin-top: 44px;
}

.mc-refine summary {
	cursor: pointer;
	list-style: none;
	font-family: Raleway, sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(71, 66, 62, 0.6);
	padding: 16px 0;
	border-top: 1px solid rgba(71, 66, 62, 0.2);
	transition: color 0.2s ease;
}

.mc-refine summary:hover {
	color: #47423E;
}

.mc-refine summary::-webkit-details-marker {
	display: none;
}

.mc-refine[open] summary {
	margin-bottom: 28px;
}

/* Results — a single serif figure and hairline list */
.mc-total-label {
	font-family: Raleway, sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(71, 66, 62, 0.6);
	margin: 0 0 10px;
}

.mc-total {
	font-family: "Cormorant Garamond", serif;
	font-weight: 300;
	font-size: 96px;
	line-height: 100%;
	letter-spacing: -2px;
	color: #171717;
	margin: 0 0 48px;
}

.mc-breakdown {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	border-top: 1px solid rgba(71, 66, 62, 0.2);
}

.mc-breakdown li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 16px 0;
	border-bottom: 1px solid rgba(71, 66, 62, 0.2);
}

.mc-breakdown li span:first-child {
	font-family: Raleway, sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #47423E;
}

.mc-breakdown li span:last-child {
	font-family: "Cormorant Garamond", serif;
	font-size: 24px;
	font-weight: 500;
	color: #171717;
}

.mc-breakdown li span:last-child.mc-pi-accent {
	color: #EB582C;
}

.mc-loan-meta {
	font-family: Raleway, sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(71, 66, 62, 0.6);
	margin: 0;
}

.mc-loan-meta strong {
	color: #47423E;
	font-weight: 600;
}

.mc-loan-meta.is-empty {
	visibility: hidden;
}

.mc-disclaimer {
	font-family: Raleway, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 180%;
	letter-spacing: 0.02em;
	color: rgba(71, 66, 62, 0.5);
	max-width: 640px;
	margin: 70px auto 0;
	text-align: center;
}

.mc-disclaimer a {
	color: rgba(71, 66, 62, 0.5);
}

/* Content sections — prose inherits .base styles; keep the warm palette */
.mc-content .base h2 {
	color: #47423E;
}

.mc-content .base p,
.mc-content .base li {
	color: #47423E;
}

.mc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 30px 0 50px;
}

.mc-table th,
.mc-table td {
	text-align: left;
	padding: 16px 0;
	border-bottom: 1px solid rgba(71, 66, 62, 0.2);
	font-family: Raleway, sans-serif;
	font-size: 15px;
	color: #47423E;
}

.mc-table td:last-child,
.mc-table th:last-child {
	text-align: right;
}

.mc-table th {
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(71, 66, 62, 0.6);
}

.mc-faq details {
	border-bottom: 1px solid rgba(71, 66, 62, 0.2);
	padding: 26px 0;
}

.mc-faq details:first-of-type {
	border-top: 1px solid rgba(71, 66, 62, 0.2);
}

.mc-faq summary {
	cursor: pointer;
	font-family: "Cormorant Garamond", serif;
	font-weight: 500;
	font-size: 24px;
	color: #47423E;
	list-style: none;
}

.mc-faq summary::-webkit-details-marker {
	display: none;
}

.mc-faq details p {
	margin: 18px 0 0;
}

/* CTA — dark band, hairline underline link */
.mc-cta {
	background: var(--black, #171717);
	text-align: center;
	padding: 120px 0;
}

.mc-cta h2 {
	color: var(--cream, #F1F0EE);
	font-family: "Cormorant Garamond", serif;
	font-size: 56px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: -1px;
	line-height: 105%;
	margin: 0 0 24px;
}

.mc-cta h2 i {
	color: var(--Gray, #B8BBBE);
	font-style: italic;
}

.mc-cta p {
	color: #B8BBBE;
	font-family: Raleway, sans-serif;
	font-size: 15px;
	line-height: 180%;
	max-width: 560px;
	margin: 0 auto;
}

.mc-cta-link {
	display: table;
	margin: 44px auto 0;
	color: var(--cream, #F1F0EE);
	text-align: center;
	font-family: Raleway, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 140%;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none !important;
	background: transparent;
	border-bottom: 1px solid #EB582C;
	padding: 0 2px 10px;
	transition: color 0.2s ease;
}

.mc-cta-link:hover {
	color: #B8BBBE;
}

@media (max-width: 1024px) {
	.mc-inputs {
		padding-right: 44px;
	}

	.mc-results {
		padding-left: 44px;
	}
}

@media (max-width: 900px) {
	.mc-display {
		font-size: 48px;
		letter-spacing: -1.4px;
	}

	.mc-cta h2 {
		font-size: 38px;
	}

	.mc-total {
		font-size: 68px;
	}
}

@media (max-width: 860px) {
	.mc-grid {
		display: block;
	}

	.mc-inputs {
		padding-right: 0;
		border-right: none;
	}

	.mc-results {
		padding-left: 0;
		margin-top: 70px;
	}
}

@media (max-width: 767px) {
	.mc-section {
		padding: 60px 0;
	}

	.mc-intro {
		margin-bottom: 60px;
	}

	.mc-field-row {
		flex-direction: column;
		gap: 0;
	}
}
