.sgs-tmhc {
	--sgs-ink: #0b1a1e;
	--sgs-teal: #084c4f;
	--sgs-accent: #13fdda;
	--sgs-paper: #f8fafa;
	--sgs-mist: #e8f5f3;
	--sgs-line: #c8dedd;
	--sgs-muted: #536a70;
	--sgs-white: #ffffff;
	--sgs-tmhc-scroll-offset: 82px;
	box-sizing: border-box;
	color: var(--sgs-ink);
	font-family: Poppins, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	margin: 2px auto;
	max-width: 980px;
	overflow-anchor: none;
}

.sgs-tmhc *,
.sgs-tmhc *::before,
.sgs-tmhc *::after {
	box-sizing: inherit;
	overflow-anchor: none;
}

.sgs-tmhc__panel {
	background: var(--sgs-paper);
	border: 1px solid var(--sgs-line);
	border-radius: 22px;
	box-shadow: 0 22px 60px rgba(11, 26, 30, 0.11);
	overflow: hidden;
	padding: clamp(12px, 2vw, 20px);
	position: relative;
}

.sgs-tmhc__panel::before {
	background: linear-gradient(90deg, var(--sgs-accent), var(--sgs-teal));
	content: "";
	height: 6px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.sgs-tmhc__brand-row,
.sgs-tmhc__step-row,
.sgs-tmhc__actions,
.sgs-tmhc__total,
.sgs-tmhc__success {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.sgs-tmhc__brand {
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.sgs-tmhc__framework {
	color: var(--sgs-teal);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.sgs-tmhc__progress {
	margin: 7px 0 12px;
}

.sgs-tmhc__progress-track {
	background: #dce9e8;
	border-radius: 999px;
	height: 7px;
	overflow: hidden;
}

.sgs-tmhc__progress-track span {
	background: var(--sgs-teal);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 240ms ease;
}

.sgs-tmhc__eyebrow,
.sgs-tmhc__section-label {
	color: var(--sgs-teal);
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 10px 0 5px;
	text-transform: uppercase;
}

.sgs-tmhc h2 {
	color: var(--sgs-ink);
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(1.7rem, 3.5vw, 2.65rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin: 0 0 8px;
	max-width: 820px;
	text-transform: uppercase;
}

.sgs-tmhc h2:focus {
	outline: none;
}

.sgs-tmhc__lead {
	color: #294147;
	font-size: clamp(1.02rem, 2vw, 1.22rem);
	margin: 0 0 10px;
	max-width: 780px;
}

.sgs-tmhc__instruction,
.sgs-tmhc__small,
.sgs-tmhc__privacy {
	color: var(--sgs-muted);
}

.sgs-tmhc__instruction {
	margin: 0 0 6px;
}

.sgs-tmhc__small,
.sgs-tmhc__privacy {
	font-size: 0.9rem;
}

.sgs-tmhc__small {
	margin: 8px 0;
}

.sgs-tmhc__privacy {
	margin: 5px 0;
}

.sgs-tmhc__score-key {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, 1fr);
	margin: 10px 0;
}

.sgs-tmhc__score-key span {
	align-items: center;
	background: var(--sgs-white);
	border: 1px solid var(--sgs-line);
	border-radius: 14px;
	display: flex;
	font-size: 0.9rem;
	gap: 10px;
	padding: 8px;
}

.sgs-tmhc__score-key strong {
	align-items: center;
	background: var(--sgs-teal);
	border-radius: 50%;
	color: var(--sgs-white);
	display: inline-flex;
	flex: 0 0 32px;
	height: 32px;
	justify-content: center;
}

.sgs-tmhc__step-row {
	gap: 20px;
}

.sgs-tmhc__step-row .sgs-tmhc__eyebrow {
	margin: 0;
}

.sgs-tmhc__live-score {
	background: var(--sgs-ink);
	border-radius: 999px;
	color: var(--sgs-white);
	font-size: 0.82rem;
	font-weight: 700;
	padding: 8px 14px;
}

.sgs-tmhc__section-label {
	background: var(--sgs-teal);
	border-radius: 999px;
	color: var(--sgs-white);
	display: inline-block;
	padding: 6px 14px;
}

.sgs-tmhc__question {
	background: var(--sgs-white);
	border: 1px solid var(--sgs-line);
	border-radius: 16px;
	margin: 6px 0;
	min-width: 0;
	padding: 10px;
	scroll-margin-top: calc(var(--sgs-tmhc-scroll-offset) + 8px);
}

.sgs-tmhc__question legend {
	display: flex;
	font-weight: 650;
	gap: 12px;
	line-height: 1.45;
	padding: 0 6px;
	width: 100%;
}

.sgs-tmhc__question legend > span {
	align-items: center;
	background: var(--sgs-mist);
	border-radius: 50%;
	color: var(--sgs-teal);
	display: inline-flex;
	flex: 0 0 28px;
	font-size: 0.82rem;
	height: 28px;
	justify-content: center;
}

.sgs-tmhc__choices {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 7px;
}

.sgs-tmhc__choice {
	align-items: center;
	background: var(--sgs-paper);
	border: 2px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	min-height: 50px;
	padding: 6px 8px;
	transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.sgs-tmhc__choice:hover {
	border-color: var(--sgs-teal);
	transform: translateY(-1px);
}

.sgs-tmhc__choice:has(input:checked) {
	background: var(--sgs-mist);
	border-color: var(--sgs-teal);
}

.sgs-tmhc__choice:has(input:focus-visible) {
	box-shadow: 0 0 0 3px rgba(19, 253, 218, 0.45);
	outline: 2px solid var(--sgs-ink);
	outline-offset: 2px;
}

.sgs-tmhc__choice input {
	accent-color: var(--sgs-teal);
	flex: 0 0 auto;
	height: 20px;
	width: 20px;
}

.sgs-tmhc__choice-number {
	align-items: center;
	background: var(--sgs-teal);
	border-radius: 50%;
	color: var(--sgs-white);
	display: inline-flex;
	flex: 0 0 28px;
	font-weight: 800;
	height: 28px;
	justify-content: center;
}

.sgs-tmhc__choice strong,
.sgs-tmhc__choice small {
	display: block;
}

.sgs-tmhc__choice small {
	color: var(--sgs-muted);
	font-size: 0.72rem;
	line-height: 1.25;
}

.sgs-tmhc__note {
	background: var(--sgs-mist);
	border-left: 5px solid var(--sgs-teal);
	border-radius: 0 14px 14px 0;
	margin: 10px 0;
	padding: 10px 12px;
}

.sgs-tmhc__actions {
	gap: 14px;
	margin-top: 12px;
	scroll-margin-top: calc(var(--sgs-tmhc-scroll-offset) + 8px);
}

.sgs-tmhc__button {
	align-items: center;
	border: 2px solid var(--sgs-ink);
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.94rem;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 50px;
	padding: 13px 22px;
	text-decoration: none;
	transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sgs-tmhc__button:hover {
	transform: translateY(-1px);
}

.sgs-tmhc__button:focus-visible,
.sgs-tmhc__text-button:focus-visible,
.sgs-tmhc a:focus-visible,
.sgs-tmhc input:focus-visible {
	box-shadow: 0 0 0 4px rgba(19, 253, 218, 0.45);
	outline: 2px solid var(--sgs-ink);
	outline-offset: 2px;
}

.sgs-tmhc__button--primary {
	background: var(--sgs-ink);
	color: var(--sgs-white);
	margin-left: auto;
}

.sgs-tmhc__button--primary:hover {
	background: var(--sgs-teal);
	color: var(--sgs-white);
}

.sgs-tmhc__button--secondary {
	background: transparent;
	color: var(--sgs-ink);
}

.sgs-tmhc__button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
	transform: none;
}

.sgs-tmhc__gate {
	max-width: 720px;
}

.sgs-tmhc__field {
	margin: 10px 0;
}

.sgs-tmhc__field label {
	display: block;
	font-weight: 700;
	margin-bottom: 7px;
}

.sgs-tmhc__field input {
	background: var(--sgs-white);
	border: 1px solid #81979c;
	border-radius: 10px;
	color: var(--sgs-ink);
	font: inherit;
	min-height: 52px;
	padding: 11px 13px;
	width: 100%;
}

.sgs-tmhc__consent {
	align-items: flex-start;
	background: var(--sgs-white);
	border: 1px solid var(--sgs-line);
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	font-size: 0.92rem;
	gap: 11px;
	margin: 12px 0 6px;
	padding: 10px;
}

.sgs-tmhc__consent input {
	accent-color: var(--sgs-teal);
	flex: 0 0 auto;
	height: 21px;
	margin-top: 2px;
	width: 21px;
}

.sgs-tmhc__privacy a,
.sgs-tmhc__text-button {
	color: var(--sgs-teal);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sgs-tmhc__hp {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

.sgs-tmhc__error {
	background: #fff1f0;
	border: 1px solid #b42318;
	border-radius: 10px;
	color: #7a271a;
	font-weight: 650;
	margin: 10px 0;
	padding: 10px 12px;
}

.sgs-tmhc__success {
	background: var(--sgs-mist);
	border: 1px solid var(--sgs-line);
	border-radius: 14px;
	gap: 12px;
	justify-content: flex-start;
	margin: 10px 0 12px;
	padding: 10px 12px;
}

.sgs-tmhc__success > span {
	align-items: center;
	background: var(--sgs-teal);
	border-radius: 50%;
	color: var(--sgs-white);
	display: inline-flex;
	flex: 0 0 34px;
	font-weight: 900;
	height: 34px;
	justify-content: center;
}

.sgs-tmhc__success p {
	font-weight: 650;
	margin: 0;
}

.sgs-tmhc__result-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, 1fr);
	margin: 12px 0 8px;
}

.sgs-tmhc__result-card {
	background: var(--sgs-white);
	border: 1px solid var(--sgs-line);
	border-radius: 14px;
	padding: 10px;
}

.sgs-tmhc__result-card.is-lowest {
	background: var(--sgs-mist);
	border: 2px solid var(--sgs-teal);
}

.sgs-tmhc__result-card span,
.sgs-tmhc__result-card strong {
	display: block;
}

.sgs-tmhc__result-card span {
	color: var(--sgs-teal);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.sgs-tmhc__result-card strong {
	font-family: Montserrat, Arial, sans-serif;
	font-size: 1.35rem;
	margin-top: 8px;
}

.sgs-tmhc__total {
	background: var(--sgs-ink);
	border-radius: 14px;
	color: var(--sgs-white);
	font-family: Montserrat, Arial, sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	margin-bottom: 12px;
	padding: 12px 14px;
}

.sgs-tmhc__fixes {
	background: var(--sgs-white);
	border: 1px solid var(--sgs-line);
	border-radius: 16px;
	padding: 12px;
}

.sgs-tmhc__fixes h3,
.sgs-tmhc__next-step strong {
	font-family: Montserrat, Arial, sans-serif;
}

.sgs-tmhc__fixes h3 {
	font-size: 1.15rem;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.sgs-tmhc__action-intro {
	color: var(--sgs-muted);
	font-size: 0.9rem;
	margin: 0 0 10px;
}

.sgs-tmhc__fixes article + article {
	border-top: 1px solid var(--sgs-line);
	margin-top: 15px;
	padding-top: 15px;
}

.sgs-tmhc__fixes h4 {
	color: var(--sgs-teal);
	font-size: 0.9rem;
	margin: 0 0 5px;
}

.sgs-tmhc__fixes p {
	margin: 0;
}

.sgs-tmhc__next-step {
	align-items: center;
	background: var(--sgs-teal);
	border-radius: 16px;
	color: var(--sgs-white);
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr auto;
	margin-top: 12px;
	padding: 12px;
}

.sgs-tmhc__next-step p {
	margin: 0;
}

.sgs-tmhc__next-step .sgs-tmhc__button {
	background: var(--sgs-accent);
	border-color: var(--sgs-accent);
	color: var(--sgs-ink);
	white-space: nowrap;
}

.sgs-tmhc__text-button {
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
	margin-top: 8px;
	padding: 8px 0;
}

@media (max-width: 760px) {
	.sgs-tmhc {
		--sgs-tmhc-scroll-offset: 68px;
		margin: 0 auto;
	}

	.sgs-tmhc__panel {
		border-radius: 16px;
		padding: 12px 10px;
	}

	.sgs-tmhc__brand-row,
	.sgs-tmhc__step-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.sgs-tmhc__framework {
		line-height: 1.45;
	}

	.sgs-tmhc__score-key,
	.sgs-tmhc__choices,
	.sgs-tmhc__result-grid,
	.sgs-tmhc__next-step {
		grid-template-columns: 1fr;
	}

	.sgs-tmhc__question {
		padding: 10px 8px;
	}

	.sgs-tmhc__choice {
		min-height: 50px;
	}

	.sgs-tmhc__actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.sgs-tmhc__button,
	.sgs-tmhc__button--primary {
		margin-left: 0;
		width: 100%;
	}

	.sgs-tmhc__next-step .sgs-tmhc__button {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgs-tmhc *,
	.sgs-tmhc *::before,
	.sgs-tmhc *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
