.pt-calc {
	font-family: var(--pt-font, inherit);
	--pt-brand-900: #14213D;
	--pt-brand-700: #1E3A6E;
	--pt-brand-600: #2D4F8C;
	--pt-brand-500: #3E68B0;
	--pt-brand-100: #E8EEF9;
	--pt-brand-50: #F5F8FD;
	--pt-accent-600: #D97845;
	--pt-ink-900: #172234;
	--pt-ink-600: #4B5768;
	--pt-ink-300: #B8C2D0;
	--pt-radius: 10px;

	background: #fff;
	border: 1px solid var(--pt-ink-300);
	border-radius: 14px;
	padding: 20px;
	color: var(--pt-ink-900);
	font-size: 16px;
	line-height: 1.6;
}

.pt-calc *,
.pt-calc *::before,
.pt-calc *::after { box-sizing: border-box; }

.pt-calc__title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 4px;
	color: var(--pt-ink-900);
}

.pt-calc__intro {
	font-size: 16px;
	color: var(--pt-ink-600);
	margin: 0 0 18px;
}

.pt-calc__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

/* Two columns only once there is genuinely room for them. */
@media (min-width: 700px) {
	.pt-calc__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}

.pt-calc__field { margin-bottom: 12px; }

.pt-calc__label {
	display: block;
	font-size: 15.5px;
	font-weight: 600;
	margin-bottom: 5px;
}

.pt-calc__label--optional { font-weight: 400; color: var(--pt-ink-600); }

.pt-calc__label span {
	font-weight: 400;
	color: var(--pt-ink-600);
	font-size: 13px;
}

.pt-calc input[type="number"],
.pt-calc select {
	width: 100%;
	/* 16px keeps iOS Safari from zooming the viewport when a field is focused. */
	font-size: 16px;
	font-family: inherit;
	color: var(--pt-ink-900);
	background: #fff;
	padding: 10px 12px;
	border: 1.5px solid var(--pt-ink-300);
	border-radius: var(--pt-radius);
	min-height: 44px;
}

.pt-calc input[type="number"]:focus,
.pt-calc select:focus {
	outline: none;
	border-color: var(--pt-brand-500);
	box-shadow: 0 0 0 3px var(--pt-brand-100);
}

.pt-calc__row { display: flex; gap: 8px; }
.pt-calc__row input { flex: 1 1 auto; min-width: 0; }
.pt-calc__row select { flex: 0 0 88px; width: 88px; }

.pt-calc__submit {
	width: 100%;
	min-height: 48px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: var(--pt-brand-700);
	border: none;
	border-radius: var(--pt-radius);
	padding: 12px 24px;
	cursor: pointer;
	margin-top: 4px;
}

.pt-calc__submit:hover { background: var(--pt-brand-600); }
.pt-calc__submit:focus-visible { outline: 3px solid var(--pt-brand-500); outline-offset: 2px; }

.pt-calc__result {
	background: var(--pt-brand-50);
	border: 1px solid var(--pt-brand-100);
	border-radius: 12px;
	padding: 16px;
}

.pt-calc__placeholder {
	color: var(--pt-ink-600);
	font-size: 16px;
	margin: 0;
}

.pt-calc__figure {
	font-size: clamp(30px, 4vw, 38px);
	font-weight: 700;
	color: var(--pt-brand-700);
	line-height: 1.2;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.pt-calc__figure-alt {
	font-size: 16.5px;
	color: var(--pt-ink-600);
	margin: 2px 0 0;
	font-variant-numeric: tabular-nums;
}

.pt-calc__caption { font-size: 15px; color: var(--pt-ink-600); margin: 10px 0 0; }

.pt-calc__chart { margin: 14px 0 0; }
.pt-calc__chart svg { width: 100%; height: auto; display: block; }

.pt-calc__link {
	display: inline-block;
	margin-top: 12px;
	font-size: 16px;
	font-weight: 600;
	color: var(--pt-brand-700);
}

.pt-calc__error {
	color: #D0473E;
	font-size: 14px;
	margin: 0;
}

.pt-calc__note {
	font-size: 14.5px;
	color: var(--pt-ink-600);
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--pt-brand-100);
}

.pt-calc__note a { color: var(--pt-brand-700); }
