/**
 * Process — numbered steps, joined as a flow.
 *
 * On the homepage it sits on white between the pantry and the About strip,
 * on the same 1116px column as the category and pantry grids, so the three
 * read as one run. No rules around or between the steps: a dashed gold line
 * runs from each mark to the next, and a gold arrow sits between each pair.
 * The mark is a forest line drawing on cream with a faint gold ring; on
 * hover it turns forest with a cream drawing.
 *
 * Each step draws its own segment of the line, from the middle of its mark
 * to the middle of the next, so the line is right at any count and on any
 * layout. Geometry, in one place:
 *
 *   --zf-pad   the step's top padding
 *   --zf-mark  the mark's diameter
 *   centre of a mark = --zf-pad + --zf-mark / 2 from the top of its step
 */

.sui-farmi .zf-process {
	background: #ffffff;
	padding: clamp(56px, 6vw, 96px) 0 clamp(40px, 4vw, 64px);
}

/* The heading is the categories section's (.heading-left, styled by the
   template and site.css); here it only takes the grids' 1116px column. */
.sui-farmi .zf-process__head {
	max-width: 1116px;
	margin: 0 auto clamp(24px, 2.6vw, 40px);
	text-align: left;
}

.sui-farmi .zf-process__steps {
	--zf-steps: 4;
	--zf-pad: 36px;
	--zf-mark: 120px;
	list-style: none;
	max-width: 1116px;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--zf-steps), minmax(0, 1fr));
}

.sui-farmi .zf-process__step {
	position: relative;
	padding: var(--zf-pad) clamp(16px, 1.8vw, 28px) 8px;
	text-align: center;
}

/* The line: from this mark's centre to the next one's. */
.sui-farmi .zf-process__step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: calc(var(--zf-pad) + var(--zf-mark) / 2);
	left: 50%;
	width: 100%;
	border-top: 2px dashed rgba(212, 175, 55, 0.55);
	z-index: 0;
}

/* The last of a row of four does not reach into the next row. */
.sui-farmi .zf-process__step:nth-child(4n)::before {
	display: none;
}

/* The arrow, on the line, halfway between two marks. */
.sui-farmi .zf-process__arrow {
	position: absolute;
	top: calc(var(--zf-pad) + var(--zf-mark) / 2);
	left: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--sui-gold, #d4af37);
	color: var(--zf-forest, #2a491d);
	box-shadow: 0 0 0 6px #ffffff;
	transform: translate(-50%, -50%);
}

.sui-farmi .zf-process__step:nth-child(4n + 1) .zf-process__arrow {
	display: none;
}

.sui-farmi .zf-process__arrow svg {
	width: 18px;
	height: 18px;
}

.sui-farmi .zf-process__mark {
	position: relative;
	z-index: 1;
	display: inline-grid;
	place-items: center;
	width: var(--zf-mark);
	height: var(--zf-mark);
	margin-bottom: 20px;
	border-radius: 50%;
	background: #f6f1e3;
	color: var(--zf-forest, #2a491d);
	box-shadow: 0 0 0 8px #ffffff;
	transition: background-color 0.35s ease, color 0.35s ease;
}

.sui-farmi .zf-process__mark::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 1px solid rgba(212, 175, 55, 0.4);
}

.sui-farmi .zf-process__mark svg {
	width: 60px;
	height: 60px;
}

.sui-farmi .zf-process__step:hover .zf-process__mark {
	background: var(--zf-forest, #2a491d);
	color: #f6f1e3;
}

.sui-farmi .zf-process__num {
	display: block;
	margin-bottom: 4px;
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 15px;
	color: #8a6a0f;
}

.sui-farmi .zf-process__name {
	margin: 0 0 8px;
	font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
	font-size: clamp(20px, 1rem + 0.4vw, 24px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #22301c;
}

.sui-farmi .zf-process__body {
	margin: 0 auto;
	max-width: 30ch;
	font-size: 15px;
	line-height: 1.65;
	color: #3f4039;
}

/* On a product page it follows the description tabs: less air, a smaller
   head. */
.sui-farmi .zf-process--compact {
	padding: clamp(40px, 4vw, 64px) 0;
}

.sui-farmi .zf-process--compact .zf-process__title {
	font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem) !important;
}

/* Two across: the flow runs along each row. */
@media (max-width: 991px) {
	.sui-farmi .zf-process__steps {
		--zf-mark: 104px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
	}

	.sui-farmi .zf-process__step:nth-child(2n)::before,
	.sui-farmi .zf-process__step:nth-child(2n + 1) .zf-process__arrow {
		display: none;
	}

	.sui-farmi .zf-process__step:nth-child(2n + 1):not(:last-child)::before {
		display: block;
	}

	.sui-farmi .zf-process__step:nth-child(2n) .zf-process__arrow {
		display: grid;
	}
}

/* A phone: one row per step, the mark on the left, and the flow runs down
   through the marks. */
@media (max-width: 575px) {
	.sui-farmi .zf-process__steps {
		--zf-pad: 18px;
		--zf-mark: 68px;
		grid-template-columns: 1fr;
		row-gap: 0;
	}

	.sui-farmi .zf-process__step {
		display: grid;
		grid-template-columns: var(--zf-mark) 1fr;
		column-gap: 20px;
		align-items: start;
		padding: var(--zf-pad) 4px;
		text-align: left;
	}

	.sui-farmi .zf-process__step:not(:last-child)::before,
	.sui-farmi .zf-process__step:nth-child(2n):not(:last-child)::before,
	.sui-farmi .zf-process__step:nth-child(4n):not(:last-child)::before {
		display: block;
		left: calc(4px + var(--zf-mark) / 2);
		width: 0;
		height: 100%;
		border-top: 0;
		border-left: 2px dashed rgba(212, 175, 55, 0.55);
	}

	.sui-farmi .zf-process__step .zf-process__arrow,
	.sui-farmi .zf-process__step:nth-child(2n + 1) .zf-process__arrow,
	.sui-farmi .zf-process__step:nth-child(4n + 1) .zf-process__arrow {
		display: grid;
		/* Midway down the gap between the last mark and this one. */
		top: -18px;
		left: calc(4px + var(--zf-mark) / 2);
		width: 30px;
		height: 30px;
		box-shadow: 0 0 0 4px #ffffff;
		transform: translate(-50%, -50%) rotate(90deg);
	}

	.sui-farmi .zf-process__step:first-child .zf-process__arrow {
		display: none;
	}

	.sui-farmi .zf-process__arrow svg {
		width: 15px;
		height: 15px;
	}

	.sui-farmi .zf-process__mark {
		grid-row: 1 / span 3;
		margin: 0;
		box-shadow: 0 0 0 6px #ffffff;
	}

	.sui-farmi .zf-process__mark::before {
		inset: -5px;
	}

	.sui-farmi .zf-process__mark svg {
		width: 36px;
		height: 36px;
	}

	.sui-farmi .zf-process__num {
		margin: 6px 0 0;
		font-size: 13px;
	}

	.sui-farmi .zf-process__name {
		margin-bottom: 4px;
	}

	.sui-farmi .zf-process__body {
		margin: 0;
		max-width: none;
	}
}

/* A step's own photo, GIF or looping video fills its mark. */
.sui-farmi .zf-process__mark--media {
	/* No overflow clip: the gold ring (::before) sits outside the disc. */
	padding: 0;
	background: #f6f1e3;
}

/* Pinned to the disc, not sized by the grid: in a grid cell a percentage
   height let Firefox grow a portrait clip to its own height, out of the
   circle (Atif saw it on the bottle, 2026-09-21). */
.sui-farmi .zf-process__mark--media img,
.sui-farmi .zf-process__mark--media video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
}
