/**
 * Food26 Recipe Testing
 *
 * Contents
 * 1. Box and head (seal, label, title, intro)
 * 2. Key facts
 * 3. Why This Works
 * 4. Test log (rounds, results)
 * 5. Sign-off
 * 6. Smaller screens, editor hint
 *
 * Colours read the Food26 Design Scheme (--inoforest-color-*, --inoforest-custom-*) with the design's values as
 * fallbacks. Rules use two classes; the Style tab's controls use three (or set the variables).
 */

/* 1. Box and head -------------------------------------------------------------------- */
.food26-recipe-testing {
	--food26-rt-primary: var(--inoforest-color-primary, #b23a1e);
	--food26-rt-accent: var(--inoforest-color-accent, #3f6b32);
	--food26-rt-accent-light: var(--inoforest-custom-accent-light, #e9f1e4);
	--food26-rt-heading: var(--inoforest-color-heading, #2b1a12);
	--food26-rt-muted: var(--inoforest-custom-muted, #6e5f55);
	--food26-rt-line: var(--inoforest-color-border, #ece2d6);
	--food26-rt-seal: var(--food26-rt-accent);
	--food26-rt-tile: var(--inoforest-color-surface, #faf4ec);
	margin: 0;
	padding: 40px;
	background-color: #fff;
	border: 1px solid var(--food26-rt-line);
	border-radius: 26px;
	scroll-margin-top: 110px;
}

.food26-recipe-testing__head {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 28px;
}

.food26-recipe-testing .food26-recipe-testing__seal {
	display: grid;
	flex: none;
	place-items: center;
	width: 68px;
	height: 68px;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
	background-color: var(--food26-rt-seal);
	border-radius: 50%;
	box-shadow: 0 0 0 6px var(--food26-rt-accent-light);
}

.food26-recipe-testing__seal svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.food26-recipe-testing .food26-recipe-testing__label {
	display: block;
	font-family: "Caveat", cursive;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--food26-rt-accent);
}

.food26-recipe-testing .food26-recipe-testing__title {
	margin: 2px 0 8px;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	color: var(--food26-rt-heading);
}

.food26-recipe-testing .food26-recipe-testing__intro {
	margin: 0;
}

/* 2. Key facts ------------------------------------------------------------------------ */
.food26-recipe-testing .food26-recipe-testing__facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
}

.food26-recipe-testing__facts li {
	display: grid;
	align-content: start;
	gap: 2px;
	margin: 0;
	padding: 16px 18px;
	background-color: var(--food26-rt-tile);
	border-radius: 16px;
}

.food26-recipe-testing__facts strong {
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: 1.7rem;
	line-height: 1.1;
	color: var(--food26-rt-heading);
}

.food26-recipe-testing__facts span {
	font-size: 0.85rem;
	color: var(--food26-rt-muted);
}

/* 3. Why This Works ---------------------------------------------------------------------- */
.food26-recipe-testing .food26-recipe-testing__subtitle {
	margin: 0 0 16px;
	font-size: 1.45rem;
	color: var(--food26-rt-heading);
}

.food26-recipe-testing__why {
	margin-bottom: 34px;
}

.food26-recipe-testing .food26-recipe-testing__why-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: food26-why;
}

.food26-recipe-testing__why-list li {
	position: relative;
	margin: 0;
	padding: 18px 20px;
	padding-inline-start: 62px;
	border: 1px solid var(--food26-rt-line);
	border-radius: 16px;
	counter-increment: food26-why;
}

.food26-recipe-testing__why-list li::before {
	content: counter(food26-why);
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 18px;
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--food26-rt-primary);
}

.food26-recipe-testing__why-list strong {
	display: block;
	margin-bottom: 4px;
	color: var(--food26-rt-heading);
}

/* 4. Test log ---------------------------------------------------------------------------------- */
.food26-recipe-testing .food26-recipe-testing__log-intro {
	margin: -8px 0 18px;
	color: var(--food26-rt-muted);
}

.food26-recipe-testing .food26-recipe-testing__rounds {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.food26-recipe-testing .food26-recipe-testing__round {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	align-items: start;
	gap: 6px 18px;
	margin: 0;
	padding: 0 0 22px;
}

.food26-recipe-testing__round:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-block: 34px 4px;
	inset-inline-start: 37px;
	border-inline-start: 2px dotted var(--food26-rt-line);
}

.food26-recipe-testing .food26-recipe-testing__num {
	display: grid;
	place-items: center;
	height: 32px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--food26-rt-heading);
	background-color: var(--food26-rt-tile);
	border-radius: 999px;
}

.food26-recipe-testing__body h4 {
	margin: 4px 0;
	font-family: var(--inoforest-font-body-family, inherit);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--food26-rt-heading);
}

.food26-recipe-testing .food26-recipe-testing__body p {
	margin: 0;
}

.food26-recipe-testing .food26-recipe-testing__body .food26-recipe-testing__change {
	margin-top: 6px;
	padding-inline-start: 12px;
	font-size: 0.925rem;
	font-weight: 600;
	color: var(--food26-rt-heading);
	border-inline-start: 3px solid var(--food26-rt-line);
}

.food26-recipe-testing .food26-recipe-testing__result {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	border-radius: 999px;
}

.food26-recipe-testing__result svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.food26-recipe-testing__round--fail .food26-recipe-testing__result {
	color: var(--inoforest-custom-primary-dark, #8e2c15);
	background-color: var(--inoforest-custom-primary-light, #fbeae4);
}

.food26-recipe-testing__round--partly .food26-recipe-testing__result {
	color: var(--food26-rt-heading);
	background-color: var(--inoforest-custom-warm, #f3e9dc);
}

.food26-recipe-testing__round--partly .food26-recipe-testing__result :is(i, svg) {
	color: var(--inoforest-custom-rating, #b7791f);
}

.food26-recipe-testing__round--works .food26-recipe-testing__result,
.food26-recipe-testing__round--final .food26-recipe-testing__result {
	color: var(--food26-rt-accent);
	background-color: var(--food26-rt-accent-light);
}

.food26-recipe-testing .food26-recipe-testing__round--fail .food26-recipe-testing__change {
	border-color: var(--food26-rt-primary);
}

.food26-recipe-testing .food26-recipe-testing__round--partly .food26-recipe-testing__change {
	border-color: var(--inoforest-custom-rating, #b7791f);
}

.food26-recipe-testing .food26-recipe-testing__round--final .food26-recipe-testing__num,
.food26-recipe-testing .food26-recipe-testing__round--final .food26-recipe-testing__result {
	color: #fff;
	background-color: var(--food26-rt-accent);
}

/* 5. Sign-off ------------------------------------------------------------------------------------ */
.food26-recipe-testing .food26-recipe-testing__signoff {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 8px 0 0;
	padding: 16px 20px;
	font-size: 0.95rem;
	background-color: var(--food26-rt-tile);
	border-radius: 16px;
}

.food26-recipe-testing .food26-recipe-testing__avatar {
	flex: none;
	width: 44px;
	height: 44px;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
}

.food26-recipe-testing__signoff strong {
	color: var(--food26-rt-heading);
}

.food26-recipe-testing .food26-recipe-testing__signoff a {
	font-weight: 700;
	color: var(--food26-rt-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 6. Smaller screens, editor hint ------------------------------------------------------------------ */
@media (max-width: 991px) {
	.food26-recipe-testing .food26-recipe-testing__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.food26-recipe-testing .food26-recipe-testing__why-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.food26-recipe-testing {
		padding: 26px 20px;
	}

	.food26-recipe-testing__head {
		gap: 14px;
	}

	.food26-recipe-testing .food26-recipe-testing__seal {
		width: 52px;
		height: 52px;
		font-size: 1.5rem;
		box-shadow: 0 0 0 4px var(--food26-rt-accent-light);
	}

	.food26-recipe-testing .food26-recipe-testing__round {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.food26-recipe-testing__round:not(:last-child)::after {
		inset-inline-start: 31px;
	}

	.food26-recipe-testing .food26-recipe-testing__num {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.food26-recipe-testing__body {
		grid-column: 2;
		grid-row: 1;
	}

	.food26-recipe-testing .food26-recipe-testing__result {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
	}

	.food26-recipe-testing .food26-recipe-testing__signoff {
		align-items: flex-start;
	}
}

.food26-recipe-testing__hint {
	margin: 0;
}
