/* HB Cook Timer. Style guide: contexts/heat-beads/docs/2026-09-23-style-guide.md */
.hbct {
	--hbct-yellow: var(--e-global-color-primary, #FFEF00);
	--hbct-white: var(--e-global-color-text, #FFFFFF);
	--hbct-black: var(--e-global-color-087a806, #000000);
	--hbct-grey: var(--e-global-color-hbgrey1, #807E7E);
	--hbct-heading: var(--e-global-typography-primary-font-family, "Hepta Slab"), serif;
	--hbct-body: var(--e-global-typography-text-font-family, "Montserrat"), sans-serif;
	background: var(--hbct-black);
	color: var(--hbct-white);
	font-family: var(--hbct-body);
	border-radius: 16px;
	padding: clamp(20px, 4vw, 40px);
}

.hbct__form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px 24px;
	align-items: end;
}

.hbct__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hbct__field label {
	font-family: var(--hbct-body);
	font-weight: 700;
	font-size: 16px;
	color: var(--hbct-white);
}

.hbct__field select,
.hbct__field input {
	font-family: var(--hbct-body);
	font-weight: 400;
	font-size: 16px;
	color: var(--hbct-black);
	background: var(--hbct-white);
	border: 1px solid var(--hbct-grey);
	border-radius: 8px;
	padding: 12px 14px;
	min-height: 48px;
	width: 100%;
	box-shadow: none;
}

.hbct__field select:focus-visible,
.hbct__field input:focus-visible {
	outline: 2px solid var(--hbct-yellow);
	outline-offset: 1px;
}

.hbct .hbct__field--submit .hbct__submit {
	width: 100%;
	border: 0; /* Hello's reset adds a 1px pink border; the style guide's pill has none and the kit doesn't unset it. */
}

.hbct__error {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--hbct-yellow);
	font-weight: 700;
}

.hbct__results {
	margin-top: 32px;
	border-top: 1px solid var(--hbct-grey);
	padding-top: 32px;
	scroll-margin-top: 120px;
}

.hbct__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.hbct .hbct__step-title {
	font-family: var(--hbct-heading);
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 4px;
	color: var(--hbct-white);
}

.hbct .hbct__step-time {
	font-family: var(--hbct-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--hbct-yellow);
}

.hbct__step-text,
.hbct__disclaimer,
.hbct__tips {
	font-size: 16px;
	line-height: 1.6;
}

.hbct__step-text a,
.hbct__tips a,
.hbct__disclaimer a {
	color: var(--hbct-yellow);
}

.hbct__rundown {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	margin: 32px 0 0;
}

.hbct__rundown dt {
	font-weight: 700;
	font-size: 14px;
	color: var(--hbct-grey);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hbct__rundown dd {
	margin: 4px 0 0;
	font-family: var(--hbct-heading);
	font-weight: 700;
	font-size: 22px;
}

.hbct__tips {
	margin-top: 24px;
}

.hbct__tips summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--hbct-yellow);
}

.hbct__disclaimer {
	margin-top: 24px;
	font-size: 15px;
	color: var(--hbct-white); /* 19/10/2026 (Ben): was grey #807E7E, hard to read on black. */
}

.hbct__error:empty {
	display: none;
}

.hbct .hbct__field [aria-invalid="true"] {
	border-color: var(--hbct-yellow);
	border-width: 2px;
}

.hbct .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hbct [hidden] {
	display: none !important;
}
