/**

 * ATM Site Factory — page recipe helpers + single recipe CPT template.

 *

 * Page recipes are mostly config + patterns (see config/page-recipes.json and

 * /patterns). This file holds the few cross-cutting CSS helpers that recipes and

 * patterns rely on. Keep it small — recipe-specific look should come from the

 * Brand Pack + variant classes, not bespoke CSS.

 */



/* Remove the gap between consecutive same-style sections so coloured bands read

   as one continuous block (common in landing/recipe layouts). */

.atm-style--brand + .atm-style--brand,

.atm-style--dark + .atm-style--dark,

.atm-style--accent + .atm-style--accent,

.atm-style--soft + .atm-style--soft {

	padding-top: 0;

}



/* Optional decorative divider used by some recipes between light/soft sections. */

.atm-recipe-divider {

	height: 1px;

	background: var(--atm-color-border);

	border: 0;

	margin: 0;

}



/* -------------------------------------------------------------------------

   Single Recipe CPT — hybrid detail (wireframe 07 IA)

   ------------------------------------------------------------------------- */



.atm-recipe {

	padding-block: var(--atm-space-2xl, 3rem);

	max-width: var(--atm-wide-width, 1200px);

}



.atm-recipe__header {

	margin-bottom: var(--atm-space-lg);

}

.atm-recipe__header-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: var(--atm-space-sm);
}

.atm-recipe__header-main {
	flex: 1 1 16rem;
	min-width: 0;
}

.atm-recipe__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	border: 2px solid var(--atm-color-primary, #183c51);
	background: var(--atm-color-primary, #183c51);
	color: var(--atm-color-cream, #fff5e0);
	font-family: var(--atm-font-body, inherit);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.atm-recipe__back:hover,
.atm-recipe__back:focus-visible {
	background: transparent;
	color: var(--atm-color-primary, #183c51);
	border-color: var(--atm-color-primary, #183c51);
	outline: none;
	transform: translateY(-1px);
}

.atm-recipe__back--top {
	flex: 0 0 auto;
	margin-top: 0.2rem;
}

.atm-recipe__back-wrap {
	display: flex;
	justify-content: center;
	margin: var(--atm-space-xl) 0 var(--atm-space-2xl);
}

.atm-recipe__back--bottom {
	background: transparent;
	color: var(--atm-color-primary, #183c51);
	border-color: var(--atm-color-primary, #183c51);
}

.atm-recipe__back--bottom:hover,
.atm-recipe__back--bottom:focus-visible {
	background: var(--atm-color-primary, #183c51);
	color: var(--atm-color-cream, #fff5e0);
}

.atm-recipe__title {

	margin: 0 0 var(--atm-space-sm);

	font-size: clamp(2rem, 4vw, 2.75rem);

	line-height: 1.1;

}



.atm-recipe__uses {

	margin: 0 0 var(--atm-space-sm);

	font-size: var(--atm-fs-lg, 1.125rem);

	color: var(--atm-color-text-muted);

}



.atm-recipe__breadcrumbs {

	display: flex;

	flex-wrap: wrap;

	align-items: center;

	gap: 0.35rem 0.5rem;

	margin: 0 0 var(--atm-space-md);

	font-size: var(--atm-fs-small);

	color: var(--atm-color-text-muted);

}



.atm-recipe__breadcrumbs a {

	color: inherit;

	text-decoration: none;

}



.atm-recipe__breadcrumbs a:hover,

.atm-recipe__breadcrumbs a:focus-visible {

	color: var(--atm-color-primary);

	text-decoration: underline;

}



.atm-recipe__crumb-sep {

	opacity: 0.7;

}



.atm-recipe__crumb-current {

	color: var(--atm-color-text);

}



.atm-recipe__tags {

	display: flex;

	flex-wrap: wrap;

	gap: 0.5rem;

	margin-top: var(--atm-space-sm);

}



.atm-recipe__tag {

	display: inline-block;

	padding: 0.25rem 0.75rem;

	border-radius: 999px;

	background: var(--atm-color-background-alt, #f5f5f5);

	font-size: var(--atm-fs-xs);

	font-weight: 700;

	letter-spacing: 0.04em;

	text-transform: uppercase;

}



.atm-recipe__tag--occasion {

	background: transparent;

	border: 1px solid var(--atm-color-border);

}



.atm-recipe__media {

	position: relative;

	margin: 0 0 var(--atm-space-md);

	border-radius: var(--atm-radius-md, 8px);

	overflow: hidden;

	background: var(--atm-color-background-alt, #e8e8ea);

}



.atm-recipe__image {

	display: block;

	width: 100%;

	height: auto;

	aspect-ratio: 16 / 9;

	object-fit: cover;

}



.atm-recipe__embed {

	position: relative;

	width: 100%;

	aspect-ratio: 16 / 9;

	background: #111;

}



.atm-recipe__embed iframe {

	position: absolute;

	inset: 0;

	width: 100%;

	height: 100%;

	border: 0;

}



.atm-recipe__video-link {

	position: absolute;

	inset: auto 1rem 1rem auto;

	display: inline-flex;

	align-items: center;

	gap: 0.5rem;

	padding: 0.55rem 0.9rem;

	border-radius: 999px;

	background: color-mix(in srgb, var(--atm-color-primary, #183c51) 92%, #000);

	color: var(--atm-color-cream, #fff5e0);

	text-decoration: none;

	font-size: var(--atm-fs-small);

	font-weight: 700;

	box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);

}



.atm-recipe__video-link:hover,

.atm-recipe__video-link:focus-visible {

	background: var(--atm-color-primary-dark, #122c3c);

	color: var(--atm-color-cream, #fff5e0);

}



.atm-recipe__video-play {

	width: 0;

	height: 0;

	border-style: solid;

	border-width: 0.4rem 0 0.4rem 0.65rem;

	border-color: transparent transparent transparent currentColor;

}



.atm-recipe__video-fallback {

	margin: 0;

	padding: var(--atm-space-xl);

	text-align: center;

}



.atm-recipe__meta {

	margin: 0 0 var(--atm-space-xl);

	font-size: var(--atm-fs-small);

	color: var(--atm-color-text-muted);

}



.atm-recipe__meta-sep {

	margin-inline: 0.35rem;

	opacity: 0.7;

}



.atm-recipe__content {

	margin-bottom: var(--atm-space-xl);

}



.atm-recipe__details {

	margin-bottom: var(--atm-space-2xl);

	padding-block: var(--atm-space-xl);

	border-top: 1px solid var(--atm-color-border, #e6e6e6);

}



.atm-recipe__details-title {

	margin: 0 0 var(--atm-space-lg);

	font-size: clamp(1.75rem, 3vw, 2.25rem);

}



.atm-recipe__details-grid {

	display: grid;

	grid-template-columns: 1fr;

	gap: var(--atm-space-xl);

}



@media (min-width: 768px) {

	.atm-recipe__details-grid {

		grid-template-columns: 1fr 1fr;

		gap: 2rem;

	}

}



.atm-recipe__col h3 {

	margin: 0 0 var(--atm-space-md);

	font-size: var(--atm-fs-xl, 1.25rem);

}



.atm-recipe__rich {

	font-size: var(--atm-fs-base, 1rem);

	line-height: 1.55;

}



.atm-recipe__rich :is(ul, ol) {

	margin: 0;

	padding-left: 1.15rem;

}



.atm-recipe__rich li + li {

	margin-top: 0.5rem;

}



.atm-recipe__rich p {

	margin: 0 0 0.75rem;

}



.atm-recipe__rich p:last-child {

	margin-bottom: 0;

}



.atm-recipe__tip {

	padding: var(--atm-space-lg);

	background: var(--atm-color-background-alt, #fff8e8);

	border-left: 4px solid var(--atm-color-sku-perfect-melt, #f3c55c);

	margin-bottom: var(--atm-space-2xl);

}



.atm-recipe__tip p {

	margin: 0.5rem 0 0;

}



.atm-recipe__shop {
	margin-bottom: var(--atm-space-xl);
	padding-top: var(--atm-space-lg);
}

.atm-recipe__shop--split {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 2px solid var(--atm-color-primary, #183c51);
	background: var(--atm-color-background, #f2e7d9);
	box-shadow: 8px 8px 0 var(--atm-color-primary, #183c51);
}

@media (min-width: 800px) {
	.atm-recipe__shop--split {
		grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 17rem);
		gap: clamp(1.75rem, 4vw, 3rem);
	}
}

.atm-recipe__shop-copy {
	min-width: 0;
}

.atm-recipe__shop--split .atm-recipe__shop-copy {
	position: relative;
	padding-left: 1rem;
}

.atm-recipe__shop--split .atm-recipe__shop-copy::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2rem;
	bottom: 0.2rem;
	width: 0.35rem;
	background: var(--atm-color-sku-perfect-melt, #f3c55c);
	border: 1px solid var(--atm-color-primary, #183c51);
}

.atm-recipe__shop-title {
	margin: 0 0 var(--atm-space-sm);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.atm-recipe__shop--split .atm-recipe__shop-title {
	font-family: var(--atm-font-heading, inherit);
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--atm-color-primary, #183c51);
	margin-bottom: 0.85rem;
}

.atm-recipe__shop-intro {
	margin: 0 0 var(--atm-space-lg);
	font-size: var(--atm-fs-lg, 1.125rem);
	color: var(--atm-color-text-muted);
}

.atm-recipe__shop--split .atm-recipe__shop-intro {
	margin: 0;
	max-width: 28rem;
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	font-weight: 600;
	line-height: 1.45;
	color: var(--atm-color-primary, #183c51);
}

.atm-recipe__shop-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--atm-space-lg);
	max-width: 36rem;
}

.atm-recipe__shop--split .atm-recipe__shop-grid {
	max-width: none;
	justify-items: stretch;
}

.atm-recipe__shop--split .atm-recipe__product-card {
	max-width: none;
	width: 100%;
}

@media (min-width: 640px) {
	.atm-recipe__shop-grid {
		grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	}

	.atm-recipe__shop--split .atm-recipe__shop-grid {
		grid-template-columns: 1fr;
	}
}

/* Match Cultured nav mega-menu product tile (media + title + tagline). */
.atm-recipe__product-card {
	margin: 0;
	max-width: 18rem;
}

.atm-recipe__product-card-link {
	display: block;
	height: 100%;
	padding: 0.45rem;
	border-radius: 0.9rem;
	background: color-mix(in srgb, var(--atm-color-white, #fff5e0) 72%, #fff);
	border: 1px solid color-mix(in srgb, var(--atm-color-primary, #183c51) 10%, transparent);
	text-decoration: none;
	color: inherit;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.atm-recipe__product-card-link:hover,
.atm-recipe__product-card-link:focus-visible {
	background: color-mix(in srgb, var(--atm-color-sku-perfect-melt, #f3c55c) 32%, #fff);
	border-color: color-mix(in srgb, var(--atm-color-primary, #183c51) 22%, transparent);
	transform: translateY(-2px);
	outline: none;
}

.atm-recipe__product-card-inner {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	width: 100%;
}

.atm-recipe__product-card-media {
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 0.75rem;
	overflow: hidden;
	background: var(--atm-color-sku-perfect-melt, #f3c55c);
}

/* SKU brand panels: Perfect Melt yellow, Mexi Shred orange. */
.atm-recipe__product-card--perfect-melt .atm-recipe__product-card-media {
	background: var(--atm-color-sku-perfect-melt, #f3c55c);
}

.atm-recipe__product-card--mexi-shred .atm-recipe__product-card-media {
	background: var(--atm-color-sku-mexi, #f26b21);
}

.atm-recipe__product-card--perfect-melt .atm-recipe__product-card-link:hover,
.atm-recipe__product-card--perfect-melt .atm-recipe__product-card-link:focus-visible {
	background: color-mix(in srgb, var(--atm-color-sku-perfect-melt, #f3c55c) 32%, #fff);
}

.atm-recipe__product-card--mexi-shred .atm-recipe__product-card-link:hover,
.atm-recipe__product-card--mexi-shred .atm-recipe__product-card-link:focus-visible {
	background: color-mix(in srgb, var(--atm-color-sku-mexi, #f26b21) 28%, #fff);
}

.atm-recipe__product-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center 62%;
	padding: 0.55rem 0.45rem 0.15rem;
	transition: transform 0.22s ease;
}

.atm-recipe__product-card-link:hover .atm-recipe__product-card-media img,
.atm-recipe__product-card-link:focus-visible .atm-recipe__product-card-media img {
	transform: scale(1.04);
}

.atm-recipe__product-card-copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0 0.15rem 0.15rem;
}

.atm-recipe__product-card-title {
	font-family: var(--atm-font-heading, inherit);
	font-size: clamp(0.95rem, 1.15vw, 1.15rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--atm-color-primary, #183c51);
	line-height: 1.05;
}

.atm-recipe__product-card-meta {
	font-family: var(--atm-font-body, inherit);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--atm-color-text-muted, #3d4f5c);
	line-height: 1.25;
}

/* Cultured Dairy — cream/navy/yellow language on recipe singles */
.atm-brand--cultured-dairy .atm-recipe__tip {
	background: color-mix(in srgb, var(--atm-color-cream, #fff5e0) 88%, #fff);
	border-left-color: var(--atm-color-sku-perfect-melt, #f3c55c);
}

.atm-brand--cultured-dairy .atm-recipe__breadcrumbs a:hover,
.atm-brand--cultured-dairy .atm-recipe__breadcrumbs a:focus-visible {
	color: var(--atm-color-primary, #183c51);
}

.atm-brand--cultured-dairy .atm-recipe__tag--occasion {

	border-color: color-mix(in srgb, var(--atm-color-primary, #183c51) 22%, transparent);

}


