.tlvcalc {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 28rem;
	/* Top padding is intentionally much smaller than the other sides: this
	   card sits beside a plain text column with no padding of its own, and a
	   full 1.5rem top inset made the form's first label start ~24px lower
	   than the article text next to it, reading as misaligned. */
	padding: 0.25rem 1.5rem 1.5rem;
	border: 1px solid #e2e2e2;
	border-radius: 0.75rem;
	background: #fff;
}

.tlvcalc__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.tlvcalc__field label {
	font-size: 0.875rem;
	font-weight: 600;
}

.tlvcalc__field input {
	padding: 0.625rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
}

.tlvcalc__date {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.tlvcalc__date-part {
	width: 3rem;
	padding: 0.625rem 0;
	font-size: 1rem;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	appearance: textfield;
}

.tlvcalc__date-part--year {
	width: 4.5rem;
}

.tlvcalc__date-part:focus {
	outline: 2px solid #0a2540;
	outline-offset: 1px;
}

.tlvcalc__date-sep {
	color: #999;
	font-weight: 600;
}

.tlvcalc__submit {
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #0a2540;
	border: 0;
	border-radius: 0.5rem;
	cursor: pointer;
}

.tlvcalc__submit:hover {
	background: #123a63;
}

.tlvcalc__hint {
	font-size: 0.75rem;
	color: #0a2540;
}

.tlvcalc__error {
	margin: 0;
	color: #b3261e;
	font-size: 0.875rem;
}

.tlvcalc__result {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	background: #f4f6f8;
	border-radius: 0.5rem;
}

.tlvcalc__result-label {
	font-size: 0.8125rem;
	color: #555;
}

.tlvcalc__result-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0a2540;
}

.tlvcalc__breakdown {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tlvcalc__breakdown:empty {
	display: none;
}

.tlvcalc__breakdown li {
	font-size: 0.8125rem;
	color: #555;
}

.tlvcalc__disclaimer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.tlvcalc__disclaimer p {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #777;
}

.tlvcalc__disclaimer p a {
	color: #313030;
	text-decoration: underline;
}

.tlvcalc__cta,
.tlvcalc__cta:link,
.tlvcalc__cta:visited {
	display: inline-flex;
	align-self: center;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	color: #fff;
	background: #313030;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: background-color 200ms ease;
}

.tlvcalc__cta:hover,
.tlvcalc__cta:visited:hover {
	background: #4a4848;
	color: #fff;
}
