/* ESG Health Check — palette: primary #1C7A93, white, black only */
.esg-hc {
	--esg-primary: #1c7a93;
	--esg-black: #0a0a0a;
	--esg-white: #ffffff;
	--esg-touch-min: 2.75rem; /* ~44px — minimum comfortable tap target */
	box-sizing: border-box;
	color: var(--esg-black);
	font-family: inherit;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.esg-hc *,
.esg-hc *::before,
.esg-hc *::after {
	box-sizing: border-box;
}

.esg-hc-surface {
	max-width: min(40rem, 100%);
	margin-left: auto;
	margin-right: auto;
	padding: clamp(1.25rem, 4vw, 2rem);
	background: var(--esg-white);
	border: 1px solid rgba(10, 10, 10, 0.12);
	border-radius: 4px;
	min-width: 0; /* prevents flex/grid children from forcing horizontal scroll */
}

/* Assessment: loading overlay */
.esg-hc-assessment {
	position: relative;
	min-height: 12rem;
}

.esg-hc-assessment-loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 2rem 1.5rem;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 4px;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.esg-hc-assessment-loader--hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.esg-hc-spinner {
	width: 2.75rem;
	height: 2.75rem;
	border: 3px solid rgba(10, 10, 10, 0.12);
	border-top-color: var(--esg-primary);
	border-radius: 50%;
	animation: esg-hc-spin 0.75s linear infinite;
}

@keyframes esg-hc-spin {
	to {
		transform: rotate(360deg);
	}
}

.esg-hc-loader-text {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--esg-black);
	text-align: center;
}

.esg-hc-assessment-inner {
	position: relative;
	z-index: 1;
}

.esg-hc-heading,
.esg-hc h2.esg-hc-heading {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 600;
	color: var(--esg-black);
}

.esg-hc-subheading,
.esg-hc h3.esg-hc-subheading {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--esg-black);
}

.esg-hc-text,
.esg-hc p.esg-hc-text {
	margin: 0 0 1rem;
	color: var(--esg-black);
}

.esg-hc-muted {
	margin: 0;
	color: rgba(10, 10, 10, 0.62);
	font-size: 0.9rem;
}

.esg-hc-step-label {
	font-weight: 600;
	margin: 0 0 1rem;
	font-size: 0.95rem;
}

.esg-hc-step-label--hidden {
	display: none;
}

.esg-hc-progress-wrap {
	height: 4px;
	background: rgba(10, 10, 10, 0.12);
	border-radius: 2px;
	margin-bottom: 1.25rem;
	overflow: hidden;
}

.esg-hc-progress-bar {
	height: 100%;
	width: 0%;
	background: var(--esg-primary);
	transition: width 0.25s ease;
}

.esg-hc-cat-title {
	margin: 0 0 1rem;
	font-size: clamp(1rem, 2.8vw, 1.15rem);
	font-weight: 600;
	color: var(--esg-primary);
	line-height: 1.35;
	word-break: break-word;
}

.esg-hc-q {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

.esg-hc-q:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.esg-hc-q-title {
	margin: 0 0 0.35rem;
	font-weight: 600;
	font-size: 1rem;
}

.esg-hc-q-hint {
	margin: 0 0 0.75rem;
	color: rgba(10, 10, 10, 0.62);
	font-size: 0.875rem;
}

.esg-hc-likert {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.5rem;
}

.esg-hc-likert--3 .esg-hc-likert-opt {
	flex: 1 1 5rem;
}

.esg-hc-likert--3 .esg-hc-likert-opt span {
	font-size: 0.9rem;
	line-height: 1.25;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	white-space: normal;
}

.esg-hc-likert-opt {
	cursor: pointer;
	flex: 1 1 auto;
	min-width: 2.5rem;
	text-align: center;
}

.esg-hc-likert-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.esg-hc-likert-opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--esg-touch-min);
	padding: 0.55rem 0.35rem;
	border: 1px solid var(--esg-black);
	border-radius: 3px;
	font-weight: 600;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	touch-action: manipulation;
}

.esg-hc-likert-opt input:focus-visible + span {
	outline: none;
	background: var(--esg-black);
	color: var(--esg-white);
	border-color: var(--esg-black);
}

.esg-hc-likert-opt input:checked + span {
	background: var(--esg-primary);
	border-color: var(--esg-primary);
	color: var(--esg-white);
}

.esg-hc-likert-opt input:focus-visible:checked + span {
	background: var(--esg-black);
	border-color: var(--esg-black);
	color: var(--esg-white);
}

.esg-hc-yesno {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.esg-hc-yesno-opt {
	cursor: pointer;
	flex: 1 1 8rem;
}

.esg-hc-yesno-opt input {
	position: absolute;
	opacity: 0;
}

.esg-hc-yesno-opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--esg-touch-min);
	padding: 0.65rem 1rem;
	text-align: center;
	border: 1px solid var(--esg-black);
	border-radius: 3px;
	font-weight: 600;
	touch-action: manipulation;
}

.esg-hc-yesno-opt input:focus-visible + span {
	outline: none;
	background: var(--esg-black);
	color: var(--esg-white);
	border-color: var(--esg-black);
}

.esg-hc-yesno-opt input:checked + span {
	background: var(--esg-primary);
	color: var(--esg-white);
	border-color: var(--esg-primary);
}

.esg-hc-yesno-opt input:focus-visible:checked + span {
	background: var(--esg-black);
	border-color: var(--esg-black);
	color: var(--esg-white);
}

.esg-hc-textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(10, 10, 10, 0.3);
	border-radius: 3px;
	font: inherit;
	resize: vertical;
	min-height: 4.5rem;
	margin-top: 0.5rem;
}

.esg-hc-textarea:focus {
	outline: none;
	border-color: var(--esg-primary);
	box-shadow: 0 0 0 1px var(--esg-primary);
}

.esg-hc-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
	flex-wrap: wrap;
}

.esg-hc-nav--hidden {
	display: none;
}

.esg-hc-step-body--hidden {
	display: none;
}

.esg-hc-shake {
	animation: esg-hc-shake 0.35s ease;
}

@keyframes esg-hc-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-4px);
	}
	75% {
		transform: translateX(4px);
	}
}

.esg-hc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--esg-touch-min);
	padding: 0.65rem 1.25rem;
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border-radius: 3px;
	border: 1px solid transparent;
	cursor: pointer;
	touch-action: manipulation;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.esg-hc-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.esg-hc-btn--primary {
	background: var(--esg-primary);
	color: var(--esg-white);
	border-color: var(--esg-primary);
}

.esg-hc-btn--primary:hover:not(:disabled) {
	background: var(--esg-black);
	border-color: var(--esg-black);
	color: var(--esg-white);
}

.esg-hc-btn--ghost {
	background: transparent;
	color: var(--esg-black);
	border-color: var(--esg-black);
}

.esg-hc-btn--ghost:hover:not(:disabled) {
	border-color: var(--esg-primary);
	color: var(--esg-primary);
}

.esg-hc-btn:focus {
	outline: none;
}

.esg-hc-btn:focus-visible:not(:disabled) {
	background: var(--esg-black);
	color: var(--esg-white);
	border-color: var(--esg-black);
}

.esg-hc-btn--block {
	width: 100%;
}

.esg-hc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.esg-hc-notice {
	max-width: 40rem;
	margin: 0 auto;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(10, 10, 10, 0.15);
	border-radius: 4px;
	background: var(--esg-white);
}

.esg-hc-card {
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(10, 10, 10, 0.1);
	border-radius: 4px;
}

.esg-hc-total {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--esg-primary);
	margin: 0.35rem 0 0.75rem;
}

.esg-hc-total-label {
	font-weight: 600;
	color: var(--esg-black);
	margin-right: 0.25rem;
}

.esg-hc-scores-parent-wrap {
	margin-bottom: 0.5rem;
}

.esg-hc-score-parent-block {
	margin-bottom: 1.25rem;
}

.esg-hc-score-parent-block:last-child {
	margin-bottom: 0;
}

.esg-hc-score-parent-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--esg-primary);
}

.esg-hc-summary-inline {
	margin: 0 0 0.75rem;
}

.esg-hc-gauge-wrap {
	display: grid;
	grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
	gap: 0.75rem;
	margin: 0.25rem 0 1rem;
}

.esg-hc-gauge-card {
	display: flex;
	justify-content: center;
}

.esg-hc-gauge {
	--esg-pct: 0%;
	width: 6.25rem;
	height: 6.25rem;
	border-radius: 50%;
	background: conic-gradient(var(--esg-primary) var(--esg-pct), rgba(10, 10, 10, 0.12) 0);
	display: grid;
	place-items: center;
	position: relative;
}

.esg-hc-assessment-toplink {
	margin: 0 0 0.25rem;
	text-align: right;
}

.esg-hc-assessment-dashlink {
	min-height: auto;
	padding: 0.3rem 0.45rem;
}

.esg-hc-gauge::after {
	content: '';
	position: absolute;
	inset: 0.62rem;
	border-radius: 50%;
	background: var(--esg-white);
	border: 1px solid rgba(10, 10, 10, 0.12);
}

.esg-hc-gauge-letter,
.esg-hc-gauge-value {
	position: relative;
	z-index: 1;
	display: block;
	text-align: center;
}

.esg-hc-gauge-letter {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--esg-primary);
	line-height: 1.1;
}

.esg-hc-gauge-value {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--esg-black);
	line-height: 1.2;
}

.esg-hc-score-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.esg-hc-score-list--children {
	margin-top: 0.35rem;
	margin-bottom: 0.75rem;
	padding-left: 0.85rem;
	border-left: 3px solid rgba(10, 10, 10, 0.12);
}

.esg-hc-score-row--child .esg-hc-score-name {
	font-size: 0.9rem;
	font-weight: 500;
}

.esg-hc-score-row--rollup .esg-hc-score-name {
	font-weight: 600;
}

.esg-hc-score-row {
	display: grid;
	grid-template-columns: minmax(0, 8rem) 1fr auto;
	gap: 0.5rem 0.65rem;
	align-items: center;
	margin-bottom: 0.65rem;
	font-size: 0.9rem;
}

.esg-hc-score-name {
	font-weight: 600;
}

.esg-hc-score-bar {
	display: block;
	height: 7px;
	background: rgba(10, 10, 10, 0.1);
	border-radius: 3px;
	overflow: hidden;
	position: relative;
}

.esg-hc-score-bar::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--esg-pct, 0%);
	max-width: 100%;
	background: var(--esg-primary);
	transition: width 0.35s ease;
}

.esg-hc-score-val {
	font-weight: 700;
	min-width: 3rem;
	text-align: right;
}

.esg-hc-dashboard-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.esg-hc-dashboard-header-aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.esg-hc-dashboard-extlink {
	max-width: 19rem;
	text-align: right;
	white-space: normal;
}

.esg-hc-dashboard-header .esg-hc-heading {
	margin-bottom: 0;
}

.esg-hc-dashboard-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.esg-hc-logout {
	flex-shrink: 0;
}

.esg-hc-answer-parent-block {
	margin-bottom: 1.5rem;
}

.esg-hc-answer-parent-block:last-child {
	margin-bottom: 0;
}

.esg-hc-answers--grouped {
	margin-top: 0.35rem;
}

.esg-hc-link {
	display: inline-block;
	margin-top: 0.5rem;
	font-weight: 600;
	color: var(--esg-primary);
	text-decoration: underline;
}

.esg-hc-link:hover {
	color: var(--esg-black);
}

.esg-hc-history {
	list-style: none;
	margin: 0;
	padding: 0;
}

.esg-hc-history li {
	margin-bottom: 0.25rem;
}

.esg-hc-history-link {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.6rem 0;
	text-decoration: none;
	color: var(--esg-black);
	border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.esg-hc-history-link:hover {
	color: var(--esg-primary);
}

.esg-hc-history-date {
	font-size: 0.9rem;
}

.esg-hc-history-score {
	font-weight: 700;
	color: var(--esg-primary);
}

.esg-hc-back {
	display: inline-block;
	margin-bottom: 1rem;
	font-weight: 600;
	color: var(--esg-primary);
	text-decoration: none;
}

.esg-hc-back:hover {
	text-decoration: underline;
	color: var(--esg-black);
}

.esg-hc-answers {
	margin: 0;
	padding-left: 1.15rem;
}

.esg-hc-answer {
	margin-bottom: 1rem;
}

.esg-hc-answer-q {
	margin: 0 0 0.2rem;
	font-weight: 600;
}

.esg-hc-answer-meta {
	margin: 0 0 0.35rem;
}

.esg-hc-answer-a {
	margin: 0;
	padding: 0.55rem 0.65rem;
	background: rgba(10, 10, 10, 0.04);
	border-radius: 3px;
	border-left: 3px solid var(--esg-primary);
}

/* Registration wizard */
.esg-hc-reg-steps--hidden {
	display: none;
}

.esg-hc-reg-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.esg-hc-badge {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--esg-black);
	border-radius: 2px;
}

.esg-hc-choice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin: 1rem 0 1.25rem;
}

.esg-hc-choice {
	cursor: pointer;
	display: block;
	margin: 0;
}

.esg-hc-choice input {
	position: absolute;
	opacity: 0;
}

.esg-hc-choice span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--esg-touch-min);
	padding: 0.85rem 0.75rem;
	border: 1px solid var(--esg-black);
	border-radius: 3px;
	text-align: center;
	font-weight: 600;
	touch-action: manipulation;
}

.esg-hc-choice input:focus-visible + span {
	outline: none;
	background: var(--esg-black);
	color: var(--esg-white);
	border-color: var(--esg-black);
}

.esg-hc-choice input:checked + span {
	background: var(--esg-primary);
	border-color: var(--esg-primary);
	color: var(--esg-white);
}

.esg-hc-choice input:focus-visible:checked + span {
	background: var(--esg-black);
	border-color: var(--esg-black);
	color: var(--esg-white);
}

.esg-hc-text-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	min-height: var(--esg-touch-min);
	padding: 0.45rem 0.65rem;
	font: inherit;
	font-weight: 600;
	color: var(--esg-primary);
	cursor: pointer;
	text-decoration: underline;
	touch-action: manipulation;
}

.esg-hc-text-btn:hover {
	color: var(--esg-black);
}

.esg-hc-text-btn:focus {
	outline: none;
}

.esg-hc-text-btn:focus-visible {
	background: var(--esg-black);
	color: var(--esg-white);
	padding: 0.45rem 0.65rem;
	border-radius: 2px;
	text-decoration: none;
}

.esg-hc-form .esg-hc-field {
	display: block;
	margin-bottom: 0.9rem;
}

.esg-hc-form .esg-hc-field > span {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.esg-hc-form input[type='text'],
.esg-hc-form input[type='email'],
.esg-hc-form input[type='password'],
.esg-hc-form select {
	width: 100%;
	padding: 0.6rem 0.65rem;
	border: 1px solid rgba(10, 10, 10, 0.3);
	border-radius: 3px;
	font: inherit;
}

.esg-hc-form input:focus,
.esg-hc-form select:focus {
	outline: none;
	border-color: var(--esg-primary);
	box-shadow: 0 0 0 1px var(--esg-primary);
}

.esg-hc-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

.esg-hc-form-error {
	margin: 0.5rem 0 0;
	padding: 0.5rem 0.65rem;
	background: rgba(10, 10, 10, 0.06);
	border-left: 3px solid var(--esg-black);
	font-size: 0.9rem;
}

.esg-hc-form-error--hidden {
	display: none;
}

/* Login (wp_login_form) */
.esg-hc-login form label {
	display: block;
	margin-bottom: 0.75rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.esg-hc-login form input[type='text'],
.esg-hc-login form input[type='password'] {
	width: 100%;
	padding: 0.6rem 0.65rem;
	margin-top: 0.25rem;
	border: 1px solid rgba(10, 10, 10, 0.3);
	border-radius: 3px;
	font: inherit;
}

.esg-hc-login form input:focus {
	outline: none;
	border-color: var(--esg-primary);
	box-shadow: 0 0 0 1px var(--esg-primary);
}

.esg-hc-login form .login-remember {
	font-weight: 400;
}

.esg-hc-login form .login-remember input {
	margin-right: 0.35rem;
}

.esg-hc-login form .login-submit input.button {
	margin-top: 0.5rem;
	padding: 0.65rem 1.25rem;
	font: inherit;
	font-weight: 600;
	background: var(--esg-primary);
	color: var(--esg-white);
	border: 1px solid var(--esg-primary);
	border-radius: 3px;
	cursor: pointer;
}

.esg-hc-login form .login-submit input.button:hover {
	background: var(--esg-black);
	border-color: var(--esg-black);
}

.esg-hc-login form .login-submit input.button:focus {
	outline: none;
}

.esg-hc-login form .login-submit input.button:focus-visible {
	background: var(--esg-black);
	border-color: var(--esg-black);
	color: var(--esg-white);
}

.esg-hc-result--hidden {
	display: none;
}

.esg-hc-result:focus {
	outline: none;
}

.esg-hc-result .esg-hc-btn {
	margin-top: 1rem;
}

/* -------------------------------------------------------------------------
   Mobile & narrow viewports (≤639px)
   Safe areas, touch targets, single-column layouts, no horizontal overflow
   ------------------------------------------------------------------------- */
@media (max-width: 639px) {
	.esg-hc-surface {
		padding-top: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-top, 0px));
		padding-right: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-right, 0px));
		padding-bottom: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-bottom, 0px));
		padding-left: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left, 0px));
		border-radius: 4px;
	}

	.esg-hc-heading,
	.esg-hc h2.esg-hc-heading {
		font-size: clamp(1.2rem, 5vw, 1.55rem);
		word-break: break-word;
		hyphens: auto;
	}

	.esg-hc-subheading,
	.esg-hc h3.esg-hc-subheading {
		font-size: 1rem;
	}

	.esg-hc-notice {
		padding-left: max(1rem, env(safe-area-inset-left, 0px));
		padding-right: max(1rem, env(safe-area-inset-right, 0px));
	}

	.esg-hc-card {
		padding: 0.85rem 1rem;
	}

	/* Dashboard + submission toolbar */
	.esg-hc-dashboard-header {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.esg-hc-dashboard-header-aside {
		flex-direction: column;
		align-items: stretch;
		justify-content: stretch;
		width: 100%;
		gap: 0.65rem;
	}

	.esg-hc-dashboard-header-aside .esg-hc-btn {
		width: 100%;
		justify-content: center;
	}

	.esg-hc-dashboard-extlink {
		max-width: none;
		width: 100%;
		text-align: left;
		justify-content: flex-start;
	}

	.esg-hc-dashboard-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.85rem;
	}

	.esg-hc-dashboard-toolbar .esg-hc-back {
		margin-bottom: 0;
		order: -1;
	}

	.esg-hc-dashboard-toolbar .esg-hc-logout {
		align-self: stretch;
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.esg-hc-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.esg-hc-actions .esg-hc-btn {
		width: 100%;
		justify-content: center;
	}

	/* Assessment: primary action at bottom, full-width */
	.esg-hc-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
		margin-top: 1.5rem;
		padding-top: 0.25rem;
	}

	.esg-hc-nav .esg-hc-btn {
		width: 100%;
		justify-content: center;
	}

	.esg-hc-assessment {
		min-height: 10rem;
	}

	.esg-hc-assessment-loader {
		padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 1.5rem max(1rem, env(safe-area-inset-left, 0px));
	}

	/* Likert: stack for readable labels + larger taps */
	.esg-hc-likert {
		flex-direction: column;
		gap: 0.5rem;
	}

	.esg-hc-likert--3 .esg-hc-likert-opt {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
	}

	.esg-hc-likert-opt {
		min-width: 0;
		width: 100%;
	}

	.esg-hc-yesno {
		flex-direction: column;
	}

	.esg-hc-yesno-opt {
		flex: 1 1 auto;
		width: 100%;
	}

	.esg-hc-textarea {
		font-size: 16px; /* avoids iOS zoom-on-focus for inputs <16px */
	}

	.esg-hc-form input[type='text'],
	.esg-hc-form input[type='email'],
	.esg-hc-form input[type='password'],
	.esg-hc-form select {
		min-height: var(--esg-touch-min);
		font-size: 16px;
	}

	.esg-hc-reg-header {
		flex-wrap: wrap;
		gap: 0.5rem;
		align-items: flex-start;
	}

	.esg-hc-choice-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.esg-hc-field-row {
		grid-template-columns: 1fr;
	}

	/* History row: date + score wrap cleanly */
	.esg-hc-history-link {
		flex-wrap: wrap;
		align-items: center;
		padding: 0.75rem 0;
		min-height: var(--esg-touch-min);
	}

	.esg-hc-history-date {
		flex: 1 1 auto;
		min-width: 0;
		word-break: break-word;
	}

	.esg-hc-history-score {
		flex-shrink: 0;
		margin-left: auto;
	}

	.esg-hc-score-row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.esg-hc-gauge-wrap {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.esg-hc-gauge {
		width: min(100%, 5.1rem);
		height: auto;
		aspect-ratio: 1 / 1;
		margin-inline: auto;
	}

	.esg-hc-gauge::after {
		inset: 0.5rem;
	}

	.esg-hc-assessment-toplink {
		text-align: left;
		margin-bottom: 0.5rem;
	}

	.esg-hc-score-val {
		justify-self: start;
		text-align: left;
	}

	.esg-hc-answers {
		padding-left: 1rem;
	}

	.esg-hc-answer-q {
		word-break: break-word;
		hyphens: auto;
	}

	/* Login form */
	.esg-hc-login form .login-submit input.button {
		width: 100%;
		min-height: var(--esg-touch-min);
		margin-top: 0.75rem;
	}

	.esg-hc-login form input[type='text'],
	.esg-hc-login form input[type='password'] {
		min-height: var(--esg-touch-min);
		font-size: 16px;
	}

	.esg-hc-result .esg-hc-btn {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.esg-hc-spinner {
		animation: none;
	}

	.esg-hc-shake {
		animation: none;
	}

	.esg-hc-progress-bar,
	.esg-hc-score-bar::after {
		transition: none;
	}
}
