/**
 * Recipe template styles.
 *
 * Uses the locked Meifeida palette and the system font stack from global.css.
 */

/* Hide the default WordPress byline on recipe templates. */
.single-jgy_recipe .entry-meta,
.post-type-archive-jgy_recipe .entry-meta,
.tax-jgy_recipe_category .entry-meta {
	display: none;
}

/* --------------------------------------------------------------------------
   Meta bar and toolbar
   -------------------------------------------------------------------------- */

.jgy-recipe-meta {
	align-items: center;
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	margin: 0 0 18px;
	padding: 18px 22px;
}

.jgy-recipe-badge {
	background-color: var(--jgy-accent);
	border-radius: 999px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 5px 10px;
	text-transform: uppercase;
}

.jgy-recipe-meta__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0;
}

.jgy-recipe-meta__item {
	margin: 0;
}

.jgy-recipe-meta__item dt {
	color: var(--jgy-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jgy-recipe-meta__item dd {
	color: var(--jgy-primary);
	font-size: 15px;
	font-weight: 600;
	margin: 2px 0 0;
}

.jgy-recipe-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 0 0 32px;
}

.jgy-recipe-print {
	background-color: var(--jgy-primary);
	border: 1px solid var(--jgy-primary);
	border-radius: var(--jgy-radius);
	color: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.jgy-recipe-print:hover,
.jgy-recipe-print:focus {
	background-color: var(--jgy-accent);
	border-color: var(--jgy-accent);
	color: #ffffff;
}

.jgy-recipe-bookmark {
	color: var(--jgy-muted);
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */

.jgy-recipe-lead {
	color: var(--jgy-primary);
	font-size: 19px;
	line-height: 1.65;
}

.jgy-recipe-finished {
	margin: 0 0 32px;
}

.jgy-recipe-finished img {
	border-radius: var(--jgy-radius-lg);
	display: block;
	height: auto;
	width: 100%;
}

.jgy-recipe-ingredients {
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	margin: 32px 0;
	padding: 26px 30px;
}

.jgy-recipe-ingredients h2 {
	margin-top: 0;
}

.jgy-recipe-ingredients h3 {
	color: var(--jgy-accent);
	font-size: 13px;
	letter-spacing: 0.08em;
	margin: 22px 0 8px;
	text-transform: uppercase;
}

.jgy-recipe-ingredients ul {
	margin: 0 0 8px;
	padding-left: 20px;
}

.jgy-recipe-ingredients li {
	margin-bottom: 4px;
}

.jgy-recipe-instructions {
	margin: 40px 0;
}

.jgy-recipe-step {
	align-items: center;
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	display: grid;
	gap: 18px 28px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin: 0 0 22px;
	padding: 24px;
}

.jgy-recipe-step > h3 {
	grid-column: 1 / -1;
	margin: 0;
}

.jgy-recipe-step .wp-block-image {
	margin: 0;
}

.jgy-recipe-step img {
	border-radius: 8px;
	display: block;
	height: auto;
	width: 100%;
}

.jgy-recipe-step p {
	margin: 0;
}

.jgy-recipe-sample-note {
	color: var(--jgy-muted);
	font-size: 13px;
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Video placeholder
   -------------------------------------------------------------------------- */

.jgy-recipe-video {
	margin: 40px 0;
}

.jgy-recipe-video__placeholder {
	align-items: center;
	aspect-ratio: 16 / 9;
	background-color: var(--jgy-subtle);
	border: 1px dashed var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	color: var(--jgy-muted-strong);
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.jgy-recipe-video__placeholder p {
	margin: 0;
}

.jgy-recipe-video__play {
	align-items: center;
	background-color: var(--jgy-accent);
	border-radius: 50%;
	display: inline-flex;
	height: 54px;
	justify-content: center;
	position: relative;
	width: 54px;
}

.jgy-recipe-video__play::after {
	border-bottom: 10px solid transparent;
	border-left: 16px solid #ffffff;
	border-top: 10px solid transparent;
	content: "";
	display: block;
	margin-left: 5px;
}

/* --------------------------------------------------------------------------
   Why this pan
   -------------------------------------------------------------------------- */

.jgy-recipe-why {
	background-color: var(--jgy-surface);
	border-left: 4px solid var(--jgy-accent);
	border-radius: var(--jgy-radius);
	margin: 36px 0;
	padding: 24px 28px;
}

.jgy-recipe-why h2 {
	margin-top: 0;
}

.jgy-recipe-why ul {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */

.jgy-recipe-product {
	align-items: center;
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	display: grid;
	gap: 24px;
	grid-template-columns: 220px minmax(0, 1fr);
	margin: 40px 0;
	padding: 24px;
}

.jgy-recipe-product__media img {
	border-radius: 8px;
	display: block;
	height: auto;
	width: 100%;
}

.jgy-recipe-product__eyebrow {
	color: var(--jgy-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.jgy-recipe-product__title {
	font-size: 24px;
	margin: 0 0 8px;
}

.jgy-recipe-product__price {
	color: var(--jgy-accent);
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}

.jgy-recipe-product__sample {
	color: var(--jgy-muted);
	font-size: 12px;
	font-weight: 400;
}

.jgy-recipe-product__cta {
	background-color: var(--jgy-primary);
	border-radius: var(--jgy-radius);
	color: #ffffff;
	display: inline-block;
	font-weight: 600;
	padding: 12px 22px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.jgy-recipe-product__cta:hover,
.jgy-recipe-product__cta:focus {
	background-color: var(--jgy-accent);
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Archive cards and product cross-link
   -------------------------------------------------------------------------- */

.jgy-recipe-card-meta {
	color: var(--jgy-muted);
	font-size: 13px;
	margin-top: 8px;
}

.jgy-pdp-recipe {
	color: var(--jgy-muted);
	font-size: 14px;
	margin: 0 0 18px;
}

.jgy-pdp-recipe span {
	font-weight: 600;
}

.jgy-pdp-recipe a {
	color: var(--jgy-accent);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.jgy-recipe-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		padding: 16px 18px;
	}

	.jgy-recipe-meta__list {
		gap: 10px 20px;
	}

	.jgy-recipe-step {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.jgy-recipe-product {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.jgy-recipe-product__media {
		max-width: 220px;
	}
}

/* --------------------------------------------------------------------------
   Print: keep the title, meta bar, ingredients and steps only
   -------------------------------------------------------------------------- */

@media print {
	.site-header,
	.site-footer,
	.ast-breadcrumbs,
	.ast-breadcrumbs-wrapper,
	.post-thumb,
	.entry-meta,
	.jgy-recipe-toolbar,
	.jgy-recipe-product,
	.jgy-recipe-video,
	.jgy-recipe-why,
	.jgy-recipe-intro,
	.jgy-recipe-finished,
	.jgy-recipe-disclaimer,
	.jgy-recipe-card-meta,
	.jgy-pdp-recipe {
		display: none !important;
	}

	body {
		background: #ffffff !important;
		color: #000000 !important;
		font-size: 12pt;
	}

	.site-content .ast-container {
		display: block;
		max-width: none;
		padding: 0;
	}

	.entry-title {
		font-size: 20pt;
		margin: 0 0 10pt;
	}

	.jgy-recipe-meta {
		background: #ffffff !important;
		border: 1px solid #000000;
		border-radius: 0;
		color: #000000;
		display: block;
		margin: 0 0 12pt;
		padding: 8pt 10pt;
	}

	.jgy-recipe-badge {
		background: none;
		color: #000000;
		padding: 0;
	}

	.jgy-recipe-meta__list {
		display: flex;
		gap: 6pt 18pt;
		margin-top: 4pt;
	}

	.jgy-recipe-meta__item dt,
	.jgy-recipe-meta__item dd {
		color: #000000;
	}

	.jgy-recipe-ingredients {
		background: #ffffff !important;
		border: 1px solid #000000;
		border-radius: 0;
		padding: 10pt;
	}

	.jgy-recipe-step {
		background: #ffffff !important;
		border: 1px solid #cccccc;
		border-radius: 0;
		break-inside: avoid;
		grid-template-columns: 44% 1fr;
		page-break-inside: avoid;
		padding: 8pt;
	}

	.jgy-recipe-step img {
		max-width: 100%;
	}

	.jgy-recipe-ingredients a,
	.jgy-recipe-instructions a {
		color: #000000;
		text-decoration: none;
	}
}
