.hgq[data-hgq-config] {
	width: min(100%, 800px);
	min-height: 440px;
	margin: 0 auto;
	padding: 20px 18px 36px;
}

.hgq__progress {
	height: 5px;
	overflow: hidden;
	border-radius: var(--hgq-pill-radius);
	background: var(--hgq-border);
}
.hgq__progress::after {
	display: block;
	width: var(--hgq-progress);
	height: 100%;
	border-radius: inherit;
	background: var(--hgq-teal);
	content: '';
	transition: width .2s ease;
}
.hgq__controls { min-height: 52px; padding-top: 14px; }
.hgq__back {
	border: 0;
	background: none;
	color: var(--hgq-blue);
	cursor: pointer;
	font-family: var(--hgq-body-font);
	font-size: .9rem;
	font-weight: 700;
}
.hgq__back:hover { color: var(--hgq-dark-blue); text-decoration: underline; }
.hgq__back::before { content: '←'; margin-right: 8px; }
.hgq__screen { min-height: 390px; padding: 28px 0 32px; }
.hgq__screen > .hgq__question { margin-bottom: 16px; }
.hgq__screen > .hgq__body { margin-bottom: 20px; }
.hgq .hgq__footnote {
	margin-top: 18px;
	color: var(--hgq-muted);
	font-size: .75rem;
	line-height: 1.6;
}
.hgq .hgq__footnote a { color: var(--hgq-blue); text-decoration: underline; }
.hgq .hgq__followup { margin-top: 20px; }
.hgq button.hgq__followup {
	display: block;
	width: 100%;
	padding: 16px;
	border: 1px solid var(--hgq-border);
	border-radius: var(--hgq-control-radius);
	background: var(--hgq-bg);
	text-align: left;
	cursor: pointer;
}
.hgq .hgq__followup-hint { display: block; margin-top: 8px; color: var(--hgq-blue); font-size: .8rem; }
.hgq .hgq__footnote a:focus-visible,
.hgq button.hgq__followup:focus-visible { outline: 3px solid var(--hgq-gold); outline-offset: 3px; }

.hgq__why {
	display: block;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid rgba(46, 184, 122, .18);
	border-radius: var(--hgq-box-radius);
	background: linear-gradient(180deg, rgba(46, 184, 122, .06), rgba(46, 184, 122, .03));
	color: var(--hgq-muted);
	font-size: .96rem;
	line-height: 1.75;
}
.hgq__why::before {
	display: block;
	margin-bottom: 3px;
	color: var(--hgq-teal);
	content: 'Why we ask';
	font-family: var(--hgq-heading-font);
	font-size: .7rem;
	font-weight: var(--hgq-heading-weight);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.hgq__options { display: grid; gap: 12px; margin: 22px 0; }
.hgq .hgq__options--tiles {
	--hgq-columns: 2;
	--hgq-tile-image-cap: 130px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
}
.hgq .hgq__options--tiles > .hgq__option {
	flex: 0 0 calc((100% - (var(--hgq-columns, 2) - 1) * 12px) / var(--hgq-columns, 2));
	min-width: 0;
	padding: 10px 12px;
	font-size: 15px;
	font-weight: 600;
}
.hgq__option {
	position: relative;
	display: block;
	width: 100%;
	min-height: 62px;
	overflow: hidden;
	padding: 15px 18px;
	border: 2px solid var(--hgq-border);
	border-radius: var(--hgq-control-radius);
	background: #fff;
	color: var(--hgq-text);
	cursor: pointer;
	font-family: var(--hgq-body-font);
	font-size: 1rem;
	font-weight: 700;
	text-align: left;
	transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.hgq__option:hover {
	border-color: var(--hgq-blue);
	box-shadow: 0 5px 16px rgba(14, 74, 134, .08);
	transform: translateY(-1px);
}
.hgq__option.is-selected {
	border-color: var(--hgq-teal);
	background: #f3fbf7;
	box-shadow: inset 0 0 0 1px var(--hgq-teal);
}
.hgq__option.is-selected::after {
	position: absolute;
	right: 12px;
	top: 12px;
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border-radius: 50%;
	background: var(--hgq-teal);
	color: #fff;
	content: '✓';
	font-size: .8rem;
}
.hgq .hgq__options > .hgq__option--image {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 0;
}
.hgq .hgq__option-label { display: block; padding: 10px 12px; }
.hgq .hgq__option img {
	display: block;
	flex: 0 0 auto;
	width: min(calc(100% - 16px), calc(var(--hgq-tile-image-cap, 150px) * var(--hgq-image-ratio, 1)));
	max-width: 100%;
	max-height: var(--hgq-tile-image-cap, 150px);
	height: auto;
	margin: 8px auto 0;
	object-fit: contain;
	object-position: top;
}
.hgq .hgq__screen:has(.hgq__options .is-image-loading) { visibility: hidden; }
.hgq .hgq__screen--choice { container: hgq-choice / inline-size; padding: 16px 0 24px; }
.hgq .hgq__screen--choice > .hgq__question { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.hgq .hgq__screen--choice > .hgq__body { margin-bottom: 12px; }
.hgq .hgq__screen--choice .hgq__why { padding: 12px 14px; font-size: 15px; margin-bottom: 12px; }
.hgq .hgq__screen--choice .hgq__options { margin: 12px 0; }
.hgq:has(> .hgq__screen--choice) > .hgq__controls { min-height: 36px; padding-top: 8px; }
@container hgq-choice (min-width: 700px) {
	.hgq .hgq__options--tiles {
		--hgq-columns: var(--hgq-desktop-columns, 2);
		--hgq-tile-image-cap: 150px;
	}
}

.hgq__screen--info {
	padding: 20px;
	border: 1px solid rgba(46, 184, 122, .18);
	border-radius: var(--hgq-box-radius);
	background: linear-gradient(180deg, rgba(46, 184, 122, .06), rgba(46, 184, 122, .03));
}
.hgq__image {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 20px;
	border-radius: var(--hgq-control-radius);
}
.hgq img.is-unavailable { display: none; }
.hgq__image-warning {
	margin-bottom: 20px;
	padding: 12px;
	border-left: 3px solid var(--hgq-red);
	background: #fff0f0;
}
.hgq__screen--info .hgq__button { margin-top: 6px; }
.hgq__screen--choice .hgq__button { margin-top: 4px; }
.hgq__screen--loader .hgq__question { text-align: center; }
.hgq__steps { display: grid; gap: 9px; margin: 24px 0; list-style: none; }
.hgq__steps li {
	padding: 11px 14px;
	border: 1px solid var(--hgq-border);
	border-radius: var(--hgq-control-radius);
	background: #fff;
	color: var(--hgq-muted);
}
.hgq__steps li.is-complete { border-color: rgba(46, 184, 122, .35); color: var(--hgq-text); }
.hgq__steps li.is-complete::before { content: '✓'; margin-right: 10px; color: var(--hgq-teal); }
.hgq__prompt {
	margin: 22px 0 14px;
	padding: 14px 16px;
	border: 1px solid rgba(46, 184, 122, .18);
	border-radius: var(--hgq-box-radius);
	background: linear-gradient(180deg, rgba(46, 184, 122, .06), rgba(46, 184, 122, .03));
	font-family: var(--hgq-heading-font);
	font-size: 1.12rem;
	font-weight: var(--hgq-heading-weight);
}
.hgq__prompt-buttons { display: flex; gap: 10px; }
.hgq__prompt-buttons .hgq__button { flex: 1; }
.hgq__skeleton-heading,
.hgq__skeleton-option { border-radius: 8px; background: var(--hgq-bg); }
.hgq__skeleton-heading { width: 82%; height: 38px; margin: 16px 0 28px; }
.hgq__skeleton-option { width: 100%; height: 58px; margin-bottom: 12px; }
.hgq__error { margin-bottom: 14px; color: var(--hgq-red); line-height: 1.5; }
.hgq-notice { padding: 8px 12px; border-left: 4px solid var(--hgq-red); }

@media (max-width: 600px) {
	.hgq[data-hgq-config] { padding: 16px 16px 28px; }
	.hgq__screen { padding-top: 20px; }
	.hgq__screen--info { padding: 16px; }
	.hgq__prompt-buttons { flex-direction: column; }
}

.hgq .hgq__footnote strong, .hgq .hgq-profile-block__body strong { font-weight: 800; }
