.ghp-calculator {
	--ghp-primary: #006ba6;
	--ghp-primary-dark: #004e78;
	--ghp-accent: #2f9e44;
	--ghp-warning: #b7791f;
	--ghp-danger: #b42318;
	--ghp-ink: #1f2937;
	--ghp-muted: #667085;
	--ghp-soft: #f4f7fb;
	--ghp-border: #d9e2ec;
	--ghp-surface: #ffffff;
	--ghp-complete: #eef2f6;
	--ghp-radius: 8px;
	--ghp-space-1: 0.25rem;
	--ghp-space-2: 0.5rem;
	--ghp-space-3: 0.75rem;
	--ghp-space-4: 1rem;
	--ghp-space-5: 1.25rem;
	--ghp-space-6: 1.5rem;
	--ghp-shadow: 0 14px 40px rgba(31, 41, 55, 0.12);
	color: var(--ghp-ink);
	font-family: inherit;
	max-width: 980px;
}

.ghp-calculator *,
.ghp-calculator *::before,
.ghp-calculator *::after {
	box-sizing: border-box;
}

.ghp-form {
	background: var(--ghp-surface);
	border: 1px solid var(--ghp-border);
	border-radius: var(--ghp-radius);
	box-shadow: var(--ghp-shadow);
	padding: var(--ghp-space-5);
}

.ghp-form__header {
	margin-bottom: var(--ghp-space-5);
}

.ghp-title {
	color: var(--ghp-ink);
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0 0 var(--ghp-space-2);
}

.ghp-lead,
.ghp-help,
.ghp-disclaimer,
.ghp-card__description,
.ghp-progress__text,
.ghp-cta__text {
	color: var(--ghp-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
}

.ghp-field {
	display: grid;
	gap: var(--ghp-space-2);
}

.ghp-label {
	color: var(--ghp-ink);
	font-size: 0.98rem;
	font-weight: 700;
}

.ghp-date-fieldset {
	border: 0;
	display: grid;
	gap: var(--ghp-space-3);
	margin: 0;
	min-inline-size: 0;
	padding: 0;
}

.ghp-select-row {
	display: grid;
	gap: var(--ghp-space-2);
}

.ghp-select-label {
	color: var(--ghp-ink);
	font-size: 0.9rem;
	font-weight: 700;
}

.ghp-input {
	-webkit-appearance: none;
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--ghp-border);
	border-radius: var(--ghp-radius);
	color: var(--ghp-ink);
	font: inherit;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	width: 100%;
}

.ghp-select {
	background-image:
		linear-gradient(45deg, transparent 50%, var(--ghp-muted) 50%),
		linear-gradient(135deg, var(--ghp-muted) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 50%,
		calc(100% - 12px) 50%;
	background-repeat: no-repeat;
	background-size: 6px 6px, 6px 6px;
	padding-right: 2.5rem;
}

.ghp-input:focus {
	border-color: var(--ghp-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ghp-primary) 18%, transparent);
	outline: 0;
}

.ghp-input[aria-invalid="true"] {
	border-color: var(--ghp-danger);
}

.ghp-sr-only {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ghp-error {
	color: var(--ghp-danger);
	font-size: 0.92rem;
	font-weight: 700;
	margin: 0;
}

.ghp-actions {
	display: flex;
	flex-direction: column;
	gap: var(--ghp-space-3);
	margin-top: var(--ghp-space-5);
}

.ghp-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--ghp-radius);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: var(--ghp-space-2);
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 0.75rem 1rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghp-button:focus-visible {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ghp-primary) 22%, transparent);
	outline: 0;
}

.ghp-button:hover {
	transform: translateY(-1px);
}

.ghp-button--primary {
	background: var(--ghp-primary);
	color: #ffffff;
}

.ghp-button--primary:hover,
.ghp-button--primary:focus {
	background: var(--ghp-primary-dark);
	color: #ffffff;
}

.ghp-button--secondary {
	background: #ffffff;
	border-color: var(--ghp-border);
	color: var(--ghp-ink);
}

.ghp-button__icon {
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	display: inline-flex;
	font-size: 1rem;
	height: 1.25rem;
	justify-content: center;
	line-height: 1;
	width: 1.25rem;
}

.ghp-results {
	margin-top: var(--ghp-space-5);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms ease, transform 220ms ease;
}

.ghp-results.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ghp-summary {
	background: linear-gradient(135deg, color-mix(in srgb, var(--ghp-primary) 10%, #ffffff), #ffffff 62%);
	border: 1px solid color-mix(in srgb, var(--ghp-primary) 26%, var(--ghp-border));
	border-radius: var(--ghp-radius);
	box-shadow: var(--ghp-shadow);
	display: grid;
	gap: var(--ghp-space-5);
	padding: var(--ghp-space-5);
}

.ghp-kicker,
.ghp-due-label {
	color: var(--ghp-primary-dark);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 var(--ghp-space-2);
	text-transform: uppercase;
}

.ghp-summary__title {
	color: var(--ghp-ink);
	font-size: 1.7rem;
	line-height: 1.2;
	margin: 0 0 var(--ghp-space-4);
}

.ghp-due-date {
	color: var(--ghp-primary-dark);
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.ghp-status {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: var(--ghp-radius);
	color: var(--ghp-warning);
	font-weight: 700;
	margin: var(--ghp-space-4) 0 0;
	padding: var(--ghp-space-3);
}

.ghp-progress {
	align-self: end;
	display: grid;
	gap: var(--ghp-space-2);
}

.ghp-progress__bar {
	background: #dbe7f1;
	border-radius: 999px;
	height: 0.8rem;
	overflow: hidden;
}

.ghp-progress__fill {
	background: linear-gradient(90deg, var(--ghp-primary), var(--ghp-accent));
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 360ms ease;
}

.ghp-grid {
	display: grid;
	gap: var(--ghp-space-4);
	grid-template-columns: 1fr;
	margin-top: var(--ghp-space-5);
}

.ghp-card {
	align-items: start;
	background: var(--ghp-surface);
	border: 1px solid var(--ghp-border);
	border-radius: var(--ghp-radius);
	display: grid;
	gap: var(--ghp-space-3);
	grid-template-columns: auto 1fr;
	min-height: 132px;
	padding: var(--ghp-space-4);
	transition: border-color 160ms ease, transform 160ms ease;
}

.ghp-card:hover {
	border-color: color-mix(in srgb, var(--ghp-primary) 34%, var(--ghp-border));
	transform: translateY(-1px);
}

.ghp-card.is-completed {
	background: var(--ghp-complete);
	opacity: 0.66;
}

.ghp-card.is-completed .ghp-card__date {
	text-decoration: line-through;
}

.ghp-card.is-soon {
	border-color: color-mix(in srgb, var(--ghp-accent) 45%, var(--ghp-border));
	box-shadow: 0 10px 28px rgba(47, 158, 68, 0.12);
}

.ghp-card__icon {
	align-items: center;
	background: color-mix(in srgb, var(--ghp-primary) 10%, #ffffff);
	border-radius: var(--ghp-radius);
	color: var(--ghp-primary);
	display: inline-flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.ghp-card__icon svg {
	fill: none;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 24px;
}

.ghp-card__body {
	min-width: 0;
}

.ghp-card__top {
	align-items: start;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ghp-space-2);
	justify-content: space-between;
}

.ghp-card__title {
	color: var(--ghp-ink);
	font-size: 1rem;
	line-height: 1.25;
	margin: 0;
}

.ghp-card__date {
	color: var(--ghp-primary-dark);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	margin: var(--ghp-space-2) 0;
}

.ghp-badge {
	background: color-mix(in srgb, var(--ghp-accent) 14%, #ffffff);
	border: 1px solid color-mix(in srgb, var(--ghp-accent) 34%, #ffffff);
	border-radius: 999px;
	color: #20642f;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	padding: 0.35rem 0.5rem;
	white-space: nowrap;
}

.ghp-card.is-completed .ghp-badge {
	background: #ffffff;
	border-color: var(--ghp-border);
	color: var(--ghp-muted);
}

.ghp-cta {
	align-items: center;
	background: var(--ghp-soft);
	border: 1px solid var(--ghp-border);
	border-radius: var(--ghp-radius);
	display: flex;
	flex-direction: column;
	gap: var(--ghp-space-3);
	margin-top: var(--ghp-space-5);
	padding: var(--ghp-space-4);
}

.ghp-disclaimer {
	font-size: 0.85rem;
	font-style: italic;
	margin-top: var(--ghp-space-5);
}

@media (min-width: 480px) {
	.ghp-actions {
		flex-direction: row;
	}

	.ghp-button {
		width: auto;
	}
}

@media (min-width: 768px) {
	.ghp-form,
	.ghp-summary {
		padding: var(--ghp-space-6);
	}

	.ghp-summary {
		grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
	}

	.ghp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ghp-cta {
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	.ghp-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ghp-title {
		font-size: 1.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ghp-button,
	.ghp-card,
	.ghp-results,
	.ghp-progress__fill {
		transition: none;
	}

	.ghp-button:hover,
	.ghp-card:hover {
		transform: none;
	}
}

@media print {
	.ghp-calculator {
		--ghp-shadow: none;
		max-width: none;
	}

	.ghp-form,
	.ghp-actions {
		display: none;
	}

	.ghp-results[hidden] {
		display: block;
	}

	.ghp-summary,
	.ghp-card,
	.ghp-cta {
		break-inside: avoid;
		box-shadow: none;
	}

	.ghp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
