/*
 * Warm near-white palette with subtle peach tint (#fdf9f6).
 * Accent is terra-cotta red (#c66944), not Kadence palette14 bright orange (#f7630c).
 * Override WPRM Meadow sage-green tokens (#747B2D / #F3F4EC) inside adjuster embeds.
 */
.wprm-recipe-template-meadow,
.wprm-recipe-container {
	--wprmia-accent: #c66944;
	--wprmia-coral: #ec9a6a;
	--wprmia-bg: #fdf9f6;
	--wprmia-border: #f5e8dc;
	--wprmia-radius: 12px;
	--wprmia-control-height: 36px;
}

:root {
	--wprmia-accent: #c66944;
	--wprmia-coral: #ec9a6a;
	--wprmia-bg: #fdf9f6;
	--wprmia-border: #f5e8dc;
	--wprmia-radius: 12px;
	--wprmia-control-height: 36px;
}

/* Meadow template palette remap — scoped to pages with adjuster embed */
.wprmia-has-recipe .wprm-recipe-container,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-template-meadow {
	--meadow-accent-color: var(--wprmia-accent, #c66944) !important;
	--meadow-main-background-color: var(--wprmia-bg, #fdf9f6) !important;
	--meadow-list-border-color: var(--wprmia-border, #f5e8dc) !important;
}

.wprmia-has-recipe .wprm-recipe-container .meadow-main,
.wprmia-has-recipe .wprm-recipe-container .meadow-main.wprm-layout-container {
	--wprm-layout-container-background-color: var(--wprmia-bg, #fdf9f6) !important;
	background-color: var(--wprmia-bg, #fdf9f6) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-template-meadow {
	border-top-color: var(--wprmia-border, #f5e8dc) !important;
}

.wprmia-has-recipe .wprm-recipe-container .meadow-header-accent {
	--wprm-layout-container-text-color: var(--wprmia-accent, #c66944) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-jump-to-section-container {
	--wprm-jump-to-section-text-color: var(--wprmia-accent, #c66944) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-toggle-pills-container {
	--wprm-toggle-pills-active-background: var(--wprmia-accent, #c66944) !important;
	--wprm-toggle-pills-active-border: var(--wprmia-accent, #c66944) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-toggle-switch-slider {
	--switch-on-color: var(--wprmia-accent, #c66944) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-details-container-pills {
	--pill-background-color: var(--wprmia-accent, #c66944) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-table-borders-top-bottom,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-block-container-table {
	border-color: var(--wprmia-border, #f5e8dc) !important;
}

.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-container {
	border-bottom-color: var(--wprmia-border, #f5e8dc) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-value,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-unit,
.wprmia-has-recipe .wprm-recipe-container .wprm-color-accent,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredient-amount,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredient-unit {
	color: var(--wprmia-accent, #c66944) !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-call-to-action,
.wprmia-has-recipe .wprm-recipe-container .wprm-call-to-action-simple,
.wprmia-has-recipe .wprm-recipe-container .wprm-spacer:has(+ .wprm-call-to-action),
.wprmia-has-recipe .wprm-recipe-container .meadow-main-right > .wprm-spacer:last-child {
	display: none !important;
}

#wpd-post-rating .wpd-star,
#wpd-post-rating svg .wpd-star {
	fill: var(--wprmia-accent, #c66944);
}

#wpd-post-rating .wpd-rating-value .wpdrv,
#wpd-post-rating .wpd-rating-title {
	color: var(--wprmia-accent, #c66944);
}

/*
 * Recipe card chrome — header meta stack + jump-to-section bar.
 *
 * The Meadow header (Total Time rule + fact pills) and the jump nav below it
 * are rendered by two unrelated WPRM components. They are unified here into a
 * single centred meta stack: filled accent pills state the facts, outlined
 * pills of the same shape navigate. Jump alignment/scroll come from inline
 * template vars, so !important is required to win over them.
 */
.wprmia-has-recipe .wprm-recipe-container .meadow-header-meta .wprm-spacer {
	height: 14px !important;
}

.wprmia-has-recipe .wprm-recipe-container .meadow-header-meta .wprm-recipe-times-container {
	padding: 10px 0;
	line-height: 1.35;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-details-container-pills {
	gap: 8px;
	justify-content: center !important;
	--pill-padding-vertical: 6px;
	--pill-padding-horizontal: 14px;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-details-container-pills .wprm-recipe-meta-container-pill {
	line-height: 1.3;
}

.wprmia-has-recipe .wprm-recipe-container .meadow-header.wprm-padding-40 {
	padding-bottom: 24px;
}

.wprmia-has-recipe .wprm-recipe-container .meadow-main.wprm-padding-40 {
	padding-top: 24px;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-jump-to-section-container {
	--wprm-jump-to-section-gap: 8px;
	--wprm-jump-to-section-background: #fff;
	--wprm-jump-to-section-borderwidth: 1px;
	--wprm-jump-to-section-border: var(--wprmia-border, #f5e8dc);
	--wprm-jump-to-section-border-radius: 999px;
	--wprm-jump-to-section-vertical-padding: 7px;
	--wprm-jump-to-section-horizontal-padding: 15px;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	overflow: visible !important;
	mask-image: none !important;
	-webkit-mask-image: none !important;
	margin: 0 0 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--wprmia-border, #f5e8dc);
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-jump-to-section-container.wprm-recipe-jump-to-section-icon-above .wprm-recipe-jump-to-section {
	flex-direction: row !important;
}

.wprmia-has-recipe .wprm-recipe-container a.wprm-recipe-jump-to-section {
	gap: 7px;
	align-items: center;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(122, 85, 66, 0.05);
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wprmia-has-recipe .wprm-recipe-container a.wprm-recipe-jump-to-section .wprm-recipe-jump-to-section-icon {
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-size: 15px !important;
}

.wprmia-has-recipe .wprm-recipe-container a.wprm-recipe-jump-to-section:hover,
.wprmia-has-recipe .wprm-recipe-container a.wprm-recipe-jump-to-section:focus-visible {
	background-color: color-mix(in srgb, var(--wprmia-accent, #c66944) 10%, #fff);
	border-color: color-mix(in srgb, var(--wprmia-accent, #c66944) 35%, #fff);
	color: var(--wprmia-accent, #c66944);
	transform: translateY(-1px);
}

.wprmia-has-recipe .wprm-recipe-container a.wprm-recipe-jump-to-section:focus-visible {
	outline: 2px solid var(--wprmia-accent, #c66944);
	outline-offset: 2px;
}

/* Phones: three equal cards in one row — pills side by side would wrap */
@media (max-width: 599px) {
	.wprmia-has-recipe .wprm-recipe-container .meadow-header.wprm-padding-40 {
		padding-bottom: 20px;
	}

	.wprmia-has-recipe .wprm-recipe-container .meadow-main.wprm-padding-40 {
		padding-top: 20px;
	}

	.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-jump-to-section-container {
		--wprm-jump-to-section-border-radius: 14px;
		--wprm-jump-to-section-horizontal-padding: 6px;
		--wprm-jump-to-section-vertical-padding: 8px;
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px !important;
		margin-bottom: 1rem;
		padding-bottom: 1rem;
	}

	.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-jump-to-section-container.wprm-recipe-jump-to-section-icon-above .wprm-recipe-jump-to-section {
		flex-direction: column !important;
	}

	.wprmia-has-recipe .wprm-recipe-container a.wprm-recipe-jump-to-section {
		justify-content: center;
		gap: 3px;
		font-size: 0.6875rem;
		text-align: center;
	}

	.wprmia-has-recipe .wprm-recipe-container a.wprm-recipe-jump-to-section .wprm-recipe-jump-to-section-icon {
		font-size: 15px !important;
	}
}

body.wprm-print .wprmia-edit-gate,
body.wprm-print .wprmia-wake-lock {
	display: none !important;
}

@media print {
	.wprmia-edit-gate,
	.wprmia-wake-lock {
		display: none !important;
	}
}

/* Vertical rhythm between major recipe sections (Ingredients, Spices, Method, Nutrition) */
.wprmia-has-recipe .wprm-recipe-container {
	--wprmia-section-gap: 2rem;
	--wprmia-spices-method-extra: 1.5rem;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredients-container,
.wprmia-has-recipe .wprm-recipe-container .wprmia-seasonings-section,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-instructions-container,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-shortcode-container,
.wprmia-has-recipe .wprm-recipe-container [id^="recipe-"][id$="-nutrition"] {
	margin-top: var(--wprmia-section-gap);
}

.wprmia-has-recipe .wprm-recipe-container .meadow-main > .wprmia-nutrition-moved:first-child,
.wprmia-has-recipe .wprm-recipe-container .meadow-main > .meadow-main-columns:first-child {
	margin-top: 0;
}

.wprmia-has-recipe .wprm-recipe-container .meadow-main-left > .wprm-recipe-ingredients-container:first-child:not(.wprmia-seasonings-section) {
	margin-top: 0;
}

.wprmia-has-recipe .wprm-recipe-container .meadow-main > .wprmia-nutrition-moved + .meadow-main-columns {
	margin-top: var(--wprmia-section-gap);
}

/* Extra vertical space between Spices and Method when seasonings are shown */
.wprmia-has-recipe .wprm-recipe-container:has(.wprmia-seasonings-section:not([hidden])) .wprm-recipe-instructions-container {
	margin-top: calc(var(--wprmia-section-gap) + var(--wprmia-spices-method-extra));
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-header.wprm-recipe-ingredients-header,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-header.wprm-recipe-instructions-header,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-header.wprm-recipe-nutrition-header {
	margin-bottom: 0.75rem;
}

/* Hide WPRM Meadow expandable chevrons in Ingredients & Nutrition — keep sections open */
.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-ingredients .wprm-internal-container-toggle,
.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-nutrition .wprm-internal-container-toggle {
	display: none !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-ingredients.wprm-expandable-container,
.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-nutrition.wprm-expandable-container {
	max-height: none !important;
	overflow: visible !important;
	mask-image: none !important;
	-webkit-mask-image: none !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-ingredients .wprm-expandable-content,
.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-nutrition .wprm-expandable-content {
	display: block !important;
}

@media (min-width: 900px) {
	.wprmia-has-recipe .wprm-recipe-container .meadow-main-right > .wprm-recipe-instructions-container:first-child {
		margin-top: 0;
	}
}

@media (max-width: 899px) {
	.wprmia-has-recipe .wprm-recipe-container {
		--wprmia-section-gap: 1.5rem;
		--wprmia-spices-method-extra: 1.5rem;
		--wprmia-control-height: 44px;
	}

	.wprmia-has-recipe .wprm-recipe-container .meadow-main-columns.wprm-column-rows-recipe-900 {
		row-gap: 0 !important;
		gap: 0 !important;
	}

	.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredients-container,
	.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-ingredients,
	.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredient-group,
	.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredients {
		width: 100%;
		max-width: 100%;
	}
}

.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-show-more,
.wprmia-has-recipe .wprm-recipe-container .wprmia-controls-row,
.wprmia-has-recipe .wprm-recipe-container .wprmia-amount-controls,
.wprmia-has-recipe .wprm-recipe-container .wprmia-omitted-panel,
.wprmia-has-recipe .wprm-recipe-container .wprmia-restore-btn {
	--wprmia-accent: #c66944;
	--wprmia-coral: #ec9a6a;
	--wprmia-bg: #fdf9f6;
	--wprmia-border: #f5e8dc;
}

/* Ingredient row: name + controls on one line when they fit; controls wrap below long names */
li.wprm-recipe-ingredient.wprmia-bound {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
}

.wprmia-ingredient-primary {
	display: block;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	width: auto;
}

/* WPRM's own amount/unit spans are the read-only display outside edit mode */
li.wprm-recipe-ingredient.wprmia-bound > .wprmia-native-amount-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25em;
	flex: 0 0 auto;
	white-space: nowrap;
}

li.wprm-recipe-ingredient.wprmia-bound > .wprmia-native-amount {
	flex: 0 0 auto;
	white-space: nowrap;
}

li.wprm-recipe-ingredient.wprmia-bound > .wprm-recipe-ingredient-name,
li.wprm-recipe-ingredient.wprmia-bound > .wprm-recipe-ingredient-details,
li.wprm-recipe-ingredient.wprmia-bound > .wprm-recipe-ingredient-text,
.wprmia-ingredient-primary > .wprm-recipe-ingredient-name,
.wprmia-ingredient-primary > .wprm-recipe-ingredient-details,
.wprmia-ingredient-primary > .wprm-recipe-ingredient-text {
	display: inline;
	min-width: 0;
	max-width: 100%;
	word-break: normal;
	overflow-wrap: anywhere;
	hyphens: manual;
	white-space: normal;
}

.wprmia-controls-row {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	flex: 0 0 auto;
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	gap: 0;
	box-sizing: border-box;
	padding: 2px;
	border: 1px solid color-mix(in srgb, var(--wprmia-accent) 22%, var(--wprmia-border));
	border-radius: var(--wprmia-radius);
	background: color-mix(in srgb, var(--wprmia-bg) 88%, #fff);
	font-size: 0.875em;
	line-height: 1.2;
}

/* Portion +/- + gram input — attached as one control group */
.wprmia-portion-controls {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex: 0 0 auto;
	width: fit-content;
	max-width: max-content;
	min-width: 0;
	padding: 0 2px 0 0;
	border: 0;
	border-right: 1px solid color-mix(in srgb, var(--wprmia-accent) 18%, var(--wprmia-border));
	border-radius: 0;
	background: transparent;
	font-size: inherit;
	line-height: inherit;
}

.wprmia-portion-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-width: 0;
	max-width: none;
	padding: 0 2px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wprmia-portion-notes {
	font-size: inherit;
	line-height: inherit;
	opacity: 1;
}

.wprmia-portion-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wprmia-control-height);
	height: var(--wprmia-control-height);
	min-width: var(--wprmia-control-height);
	min-height: var(--wprmia-control-height);
	padding: 0;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
	border-radius: 999px;
	background: #fff;
	color: var(--wprmia-accent);
	font: inherit;
	font-size: 1.15em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wprmia-portion-btn:hover,
.wprmia-portion-btn:focus {
	background: var(--wprmia-accent);
	border-color: var(--wprmia-accent);
	color: #fff;
	outline: none;
}

.wprmia-portion-btn:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
}

.wprmia-portion-btn:active {
	transform: scale(0.96);
}

/* Rows without snapshot controls — align with bound rows */
li.wprm-recipe-ingredient:not(.wprmia-bound) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
	padding-right: 0;
	position: relative;
}

li.wprm-recipe-ingredient:not(.wprmia-bound)::after {
	content: '—';
	align-self: flex-end;
	opacity: 0.35;
	font-size: 0.875em;
	pointer-events: none;
	padding: 8px 0;
}

.wprmia-amount-controls {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	flex-shrink: 0;
	padding: 0 4px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: inherit;
	line-height: inherit;
}

.wprmia-controls-row:not(:has(.wprmia-portion-controls)) .wprmia-amount-controls {
	padding: 0 4px;
}

.wprmia-controls-row:has(.wprmia-portion-controls) .wprmia-amount-input,
.wprmia-controls-row:has(.wprmia-portion-controls) .wprmia-amount-controls input[type="number"] {
	border: 1px solid color-mix(in srgb, var(--wprmia-accent) 12%, var(--wprmia-border));
	border-left: 0;
	border-radius: 0 calc(var(--wprmia-radius) - 2px) calc(var(--wprmia-radius) - 2px) 0;
	background: #fff;
	box-shadow: inset 0 1px 2px color-mix(in srgb, var(--wprmia-border) 40%, transparent);
}

.wprmia-amount-controls .wprmia-amount-btn {
	display: none !important;
}

.wprmia-amount-unit-label {
	font-size: inherit;
	font-weight: 500;
	opacity: 0.9;
	min-width: 1.25em;
	padding: 0 2px;
	color: inherit;
}

.wprmia-amount-input,
.wprmia-amount-controls input[type="number"] {
	width: 4.5rem;
	min-width: 3.25rem;
	height: var(--wprmia-control-height);
	padding: 0 6px;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--wprmia-accent) 15%, var(--wprmia-border));
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: inherit;
	line-height: 1.2;
	text-align: center;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.wprmia-amount-input:focus,
.wprmia-amount-controls input[type="number"]:focus {
	outline: none;
}

.wprmia-amount-input:focus-visible,
.wprmia-amount-controls input[type="number"]:focus-visible {
	border-color: var(--wprmia-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
}

.wprmia-controls-row:has(.wprmia-portion-controls) .wprmia-amount-input:focus-visible,
.wprmia-controls-row:has(.wprmia-portion-controls) .wprmia-amount-controls input[type="number"]:focus-visible {
	border-color: var(--wprmia-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
}

.wprmia-amount-input::-webkit-outer-spin-button,
.wprmia-amount-input::-webkit-inner-spin-button,
.wprmia-amount-controls input[type="number"]::-webkit-outer-spin-button,
.wprmia-amount-controls input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wprmia-amount-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wprmia-control-height);
	height: var(--wprmia-control-height);
	min-width: var(--wprmia-control-height);
	min-height: var(--wprmia-control-height);
	padding: 0;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
	border-radius: 999px;
	background: #fff;
	color: var(--wprmia-accent);
	font: inherit;
	font-size: 1.15em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wprmia-amount-btn:hover,
.wprmia-amount-btn:focus {
	background: var(--wprmia-accent);
	border-color: var(--wprmia-accent);
	color: #fff;
	outline: none;
}

.wprmia-amount-btn:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
}

.wprmia-amount-btn:active {
	transform: scale(0.96);
}

/* Smaller typography inside Meadow blocks */
.wprm-block-text-smaller li.wprm-recipe-ingredient.wprmia-bound .wprmia-controls-row,
.wprm-recipe-template-meadow li.wprm-recipe-ingredient.wprmia-bound .wprmia-controls-row {
	font-size: 0.8125em;
}

.wprmia-ingredient-omitted {
	display: none !important;
}

.wprmia-restore-row {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	margin: 1em 0 0;
	box-sizing: border-box;
}

.wprmia-restore-row[hidden] {
	display: none !important;
}

.wprmia-restore-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4em 0.85em;
	border: 1px solid color-mix(in srgb, var(--wprmia-accent) 45%, transparent);
	border-radius: 999px;
	background: transparent;
	color: var(--wprmia-accent);
	font: inherit;
	font-size: 0.8125em;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wprmia-restore-btn:hover,
.wprmia-restore-btn:focus {
	background: color-mix(in srgb, var(--wprmia-accent) 12%, #fff);
	border-color: var(--wprmia-accent);
	color: var(--wprmia-accent);
	outline: none;
}

.wprmia-restore-btn:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
}

.wprmia-restore-btn:active {
	transform: scale(0.98);
}

.wprmia-omitted-panel {
	margin: 0.75em 0 0;
	padding: 0.75em 1em;
	border-top: 1px dashed color-mix(in srgb, var(--wprmia-accent, #c66944) 35%, transparent);
	border-radius: 0 0 var(--wprmia-radius) var(--wprmia-radius);
	background: color-mix(in srgb, var(--wprmia-bg) 72%, #fff);
	font-size: 0.875em;
}

.wprmia-omitted-panel[hidden] {
	display: none !important;
}

.wprmia-omitted-title {
	font-weight: 600;
	margin: 0 0 0.35em;
	color: var(--wprmia-accent);
}

.wprmia-omitted-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wprmia-omitted-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	padding: 0.25em 0;
}

.wprmia-omitted-restore {
	border: 0;
	background: none;
	color: var(--wprmia-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	font: inherit;
	padding: 0.25em 0;
}

.wprmia-omitted-restore:hover,
.wprmia-omitted-restore:focus {
	color: color-mix(in srgb, var(--wprmia-accent) 75%, #000);
}

.wprmia-seasonings-section[hidden] {
	display: none !important;
}

.wprmia-seasonings-section .wprm-recipe-ingredients li.wprm-recipe-ingredient.wprmia-seasoning-item {
	padding-right: 0;
}

.wprmia-seasonings-section .wprm-recipe-ingredients li.wprm-recipe-ingredient.wprmia-seasoning-item::after {
	content: none;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-details-container-pills .wprm-recipe-detail,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-details-container-pills .wprm-recipe-detail-container {
	color: #fff !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-toggle.wprm-toggle-active,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-adjustable-servings.wprm-toggle-active {
	background: var(--wprmia-accent, #c66944) !important;
	border-color: var(--wprmia-accent, #c66944) !important;
	color: #fff !important;
}

.wprmia-hidden-duplicate {
	display: none !important;
}

.wprmia-nutrition-moved {
	margin-bottom: 0;
	width: 100%;
	max-width: 100%;
}

.wprmia-nutrition-moved .wprm-nutrition-label-container {
	width: 100%;
}

/* Nutrition block — full recipe width, 2-column grid, label left / value right.
 * auto-fit collapses to 1 col when each cell would be < ~17.5rem (avoids crush).
 * WPRM grouped CSS sets white-space:nowrap on rows — override so labels can wrap. */
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-shortcode-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-nutrition,
.wprmia-has-recipe .wprm-recipe-container .wprm-internal-container-nutrition .wprm-expandable-content {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text,
.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-accordion__inner {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	column-gap: clamp(0.75rem, 3vw, 2rem);
	row-gap: 0.35rem;
	width: 100% !important;
	max-width: 100% !important;
	justify-content: stretch !important;
	justify-items: stretch;
	align-items: stretch;
	box-sizing: border-box;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container-grouped .wprm-nutrition-label-text-nutrition-container,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-container:not(.wprm-nutrition-label-text-nutrition-container-empty) {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	flex: 1 1 auto !important;
	flex-basis: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	justify-content: flex-start;
	align-items: baseline;
	gap: 0.5em;
	column-gap: 0.5em;
	row-gap: 0;
	box-sizing: border-box;
	white-space: normal !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
	hyphens: none !important;
	position: relative;
	float: none !important;
	overflow: hidden;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-container-empty {
	display: none !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-label,
.wprmia-has-recipe .wprm-recipe-container .wprmp-nutrition-label-block-nutrient-name {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	text-align: left;
	position: static !important;
	float: none !important;
	left: auto !important;
	right: auto !important;
	/* Wrap at word boundaries only (e.g. Net Carbohydrates); never mid-word. */
	white-space: normal !important;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	-webkit-hyphens: none !important;
	hyphens: none !important;
	overflow: hidden;
}

.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-value-group,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-value-unit-container {
	display: inline-flex !important;
	align-items: baseline;
	flex: 0 0 auto;
	flex-wrap: nowrap !important;
	justify-content: flex-end;
	gap: 0;
	min-width: 0;
	margin-left: auto;
	white-space: nowrap !important;
	text-align: right;
	position: static !important;
	float: none !important;
	left: auto !important;
	right: auto !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-no-dv .wprm-nutrition-label-text-nutrition-daily,
.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-no-dv .wprmp-nutrition-label-block-nutrient-daily,
.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-no-dv .wprmia-nutrition-dv {
	display: none !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-value-group .wprm-nutrition-label-text-nutrition-value,
.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-value-group .wprm-nutrition-label-text-nutrition-unit,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-value,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-unit,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-daily {
	position: static !important;
	float: none !important;
	left: auto !important;
	right: auto !important;
	flex: 0 0 auto;
	white-space: nowrap !important;
}

.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-dv,
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-daily,
.wprmia-has-recipe .wprm-recipe-container .wprmp-nutrition-label-block-nutrient-daily {
	font-size: 0.72em !important;
	font-weight: 500;
	line-height: 1;
	color: color-mix(in srgb, var(--wprmia-accent, #c66944) 58%, #999) !important;
	white-space: nowrap !important;
}

/* Default nutrients last. Primary macros must beat this selector's specificity. */
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprm-nutrition-label-text-nutrition-container {
	order: 50;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprm-nutrition-label-text-nutrition-container-calories {
	order: 1;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprm-nutrition-label-text-nutrition-container-protein {
	order: 2;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprm-nutrition-label-text-nutrition-container-carbohydrates {
	order: 3;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprm-nutrition-label-text-nutrition-container-fat {
	order: 4;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprm-nutrition-label-text-nutrition-container-sugar {
	order: 5;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprm-nutrition-label-text-nutrition-container-fiber {
	order: 6;
}

/* After macros (1–6), before leftover nutrients (50). Button before micros. */
.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprmia-nutrition-show-more {
	grid-column: 1 / -1;
	order: 10;
}

.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text > .wprmia-nutrition-accordion {
	grid-column: 1 / -1;
	order: 30;
}

.wprm-recipe-instruction-image img,
.wprm-recipe-instruction-image img.wprm-recipe-instruction-image-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--wprmia-radius, 12px);
	margin-top: 10px;
}

/*
 * Method instructions: match post body readability (entry-content ~20px / 1.8).
 * Older readers struggled with the smaller WPRM default (~16px).
 */
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-instruction-text,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-instruction-text p,
.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-instruction-text span {
	font-size: 1.25rem;
	line-height: 1.8;
}

/* Step images fill the Method column (no tiny centered thumbs). */
.wprm-recipe-container .wprm-recipe-instruction-media,
.wprm-recipe-container .wprm-recipe-instruction-image {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/*
 * Method step numbers: always-visible terracotta circles.
 * Flex on the <li> suppresses native <ol> markers, so these badges are required.
 */
.wprm-recipe-container .wprmia-step-number,
.wprm-recipe-container .wprm-recipe-instruction-number {
	display: flex !important;
	order: -3;
	flex: 0 0 2rem;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wprmia-accent, #c66944) 22%, transparent);
	color: var(--wprmia-accent, #c66944);
	font: inherit;
	font-weight: 700;
	line-height: 1;
	visibility: visible !important;
	opacity: 1 !important;
}

/*
 * Method step hairline: space above and below so the rule is not flush
 * against the instruction text or the next checkbox / number / image.
 */
.wprm-recipe-container li.wprm-recipe-instruction {
	--wprmia-step-rule-gap: 1rem;
}

.wprm-recipe-container li.wprm-recipe-instruction:not(:last-child) {
	border-bottom: none;
}

.wprm-recipe-container li.wprm-recipe-instruction:not(:last-child)::after {
	content: "";
	display: block;
	flex: 1 1 100%;
	grid-column: 1 / -1;
	order: 99;
	width: 100%;
	height: 0;
	margin-top: var(--wprmia-step-rule-gap, 1rem);
	margin-bottom: var(--wprmia-step-rule-gap, 1rem);
	border: 0;
	border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	pointer-events: none;
}

.wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item .wprmia-checklist-checkbox {
	margin-right: 0.2rem;
}

/* Mobile: full-width step images; do not hide numbers */
@media (max-width: 767px) {
	.wprm-recipe-container .wprm-recipe-instruction-media,
	.wprm-recipe-container .wprm-recipe-instruction-image {
		display: block;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.wprm-recipe-container .wprm-recipe-instruction-image img,
	.wprm-recipe-container .wprm-recipe-instruction-image img.wprm-recipe-instruction-image-img {
		width: 100%;
		max-width: 100%;
	}

	/* Ingredient adjuster — mobile layout & iOS input zoom fix */
	.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredients,
	.wprmia-has-recipe .wprm-recipe-container .wprm-recipe-ingredient-group,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient {
		max-width: 100%;
		overflow-x: visible;
	}

	/* iOS Safari auto-zooms inputs below 16px — set explicitly on mobile */
	.wprmia-amount-input,
	.wprmia-amount-controls input[type="number"] {
		font-size: 16px;
		-webkit-text-size-adjust: 100%;
		touch-action: manipulation;
	}

	.wprm-block-text-smaller li.wprm-recipe-ingredient.wprmia-bound .wprmia-amount-input,
	.wprm-recipe-template-meadow li.wprm-recipe-ingredient.wprmia-bound .wprmia-amount-input,
	.wprm-block-text-smaller li.wprm-recipe-ingredient.wprmia-bound .wprmia-amount-controls input[type="number"],
	.wprm-recipe-template-meadow li.wprm-recipe-ingredient.wprmia-bound .wprmia-amount-controls input[type="number"] {
		font-size: 16px;
	}

	.wprmia-portion-btn,
	.wprmia-amount-btn {
		touch-action: manipulation;
	}
}

/* Narrow phones only: stack edit controls under the name */
@media (max-width: 639px) {
	li.wprm-recipe-ingredient.wprmia-bound {
		align-items: stretch;
		gap: 8px;
		max-width: 100%;
		overflow-x: visible;
	}

	.wprmia-ingredient-primary {
		flex: 1 1 100%;
		min-width: 0;
		max-width: 100%;
	}

	.wprmia-controls-row {
		display: flex;
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		margin-left: 0;
		justify-content: space-between;
		flex-wrap: nowrap;
		box-sizing: border-box;
		touch-action: manipulation;
	}

	.wprmia-portion-controls {
		max-width: none;
		min-width: 0;
		flex: 1 1 auto;
		overflow: hidden;
	}

	.wprmia-portion-label {
		min-width: 0;
		max-width: 7rem;
		flex: 0 1 auto;
		font-size: 0.9em;
	}

	.wprmia-amount-controls {
		flex: 0 0 auto;
		flex-shrink: 0;
		padding-right: 2px;
	}

	.wprmia-amount-unit-label {
		flex-shrink: 0;
	}
}

/* Desktop: [1] [☐], then image, then instruction text (stacked) */
@media (min-width: 768px) {
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img),
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		column-gap: 0.85rem;
		row-gap: 0.4rem;
		margin-bottom: 0;
		list-style: none;
	}

	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img) .wprmia-step-number,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) .wprmia-step-number,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img) .wprm-recipe-instruction-number,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) .wprm-recipe-instruction-number {
		order: -3;
		margin-right: 0;
		align-self: flex-start;
	}

	/* Checklist: checkbox sits right of the step number, not after the image */
	.wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item:has(.wprm-recipe-instruction-image img) .wprmia-checklist-checkbox,
	.wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item:has(.wprm-recipe-instruction-media img) .wprmia-checklist-checkbox {
		order: -2;
		align-self: flex-start;
		margin-top: 0.55em;
		margin-right: 0.2rem;
	}

	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img) .wprm-recipe-instruction-media,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img) .wprm-recipe-instruction-image,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) .wprm-recipe-instruction-media,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) .wprm-recipe-instruction-image {
		order: 1;
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		margin: 0;
	}

	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img) .wprm-recipe-instruction-text,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) .wprm-recipe-instruction-text {
		order: 2;
		flex: 1 1 100%;
		min-width: 0;
		align-self: flex-start;
		margin-top: 0;
		margin-bottom: 0 !important;
	}

	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img) .wprm-recipe-instruction-image img,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img) .wprm-recipe-instruction-image img.wprm-recipe-instruction-image-img,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) .wprm-recipe-instruction-image img,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img) .wprm-recipe-instruction-image img.wprm-recipe-instruction-image-img {
		margin-top: 0;
	}

	/* Image-only steps: still full Method-column width */
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img):not(:has(.wprm-recipe-instruction-text:not(:empty))) .wprm-recipe-instruction-media,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img):not(:has(.wprm-recipe-instruction-text:not(:empty))) .wprm-recipe-instruction-image,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img):not(:has(.wprm-recipe-instruction-text:not(:empty))) .wprm-recipe-instruction-media,
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img):not(:has(.wprm-recipe-instruction-text:not(:empty))) .wprm-recipe-instruction-image {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}
}

@media print {
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-image img),
	.wprm-recipe-container li.wprm-recipe-instruction:has(.wprm-recipe-instruction-media img),
	.wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item {
		display: list-item !important;
		list-style: decimal !important;
	}

	.wprm-recipe-container .wprmia-step-number {
		display: none !important;
	}

	.wprm-recipe-container li.wprm-recipe-instruction .wprm-recipe-instruction-media,
	.wprm-recipe-container li.wprm-recipe-instruction .wprm-recipe-instruction-image {
		order: unset !important;
		flex: unset !important;
		max-width: 100% !important;
		margin: 5px 0 8px !important;
	}

	.wprm-recipe-container li.wprm-recipe-instruction .wprm-recipe-instruction-text {
		order: unset !important;
		flex: unset !important;
	}

	.wprm-recipe-container li.wprm-recipe-instruction:not(:last-child)::after {
		content: none;
		display: none;
	}
}

.wprm-nutrition-label-text-nutrition-value.wprmia-nutrition-dirty,
.wprmp-nutrition-label-block-nutrient-value.wprmia-nutrition-dirty,
.wprm-recipe-calories.wprmia-nutrition-dirty,
.wprm-recipe-protein.wprmia-nutrition-dirty,
.wprm-recipe-fat.wprmia-nutrition-dirty,
.wprm-recipe-carbohydrates.wprmia-nutrition-dirty {
	animation: wprmia-nutrition-pulse 0.85s ease;
}

@keyframes wprmia-nutrition-pulse {
	0% {
		background-color: transparent;
	}
	35% {
		background-color: color-mix(in srgb, var(--wprmia-coral) 55%, transparent);
	}
	100% {
		background-color: color-mix(in srgb, var(--wprmia-coral) 25%, transparent);
	}
}

/* Nutrition accordion — primary macros visible, micros behind expand */
.wprmia-nutrition-show-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	width: 100%;
	margin: 0.75em 0 0;
	padding: 0.55em 1em;
	border: 1px solid color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
	border-radius: var(--wprmia-radius);
	background: color-mix(in srgb, var(--wprmia-bg) 68%, #fff);
	color: var(--wprmia-accent);
	font: inherit;
	font-size: 0.875em;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wprmia-nutrition-show-more:hover,
.wprmia-nutrition-show-more:focus {
	background: var(--wprmia-accent);
	border-color: var(--wprmia-accent);
	color: #fff;
	outline: none;
}

.wprmia-nutrition-show-more:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wprmia-accent) 35%, transparent);
}

.wprmia-nutrition-accordion {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
	margin-top: 0;
}

.wprmia-nutrition-accordion--open {
	max-height: 4000px;
	opacity: 1;
	margin-top: 0.5em;
}

.wprmia-nutrition-accordion[hidden] {
	display: block !important;
	max-height: 0;
	opacity: 0;
	margin-top: 0;
}

.wprmia-nutrition-accordion-ready .wprmia-nutrition-primary {
	flex-shrink: 0;
}

.wprmia-nutrition-accordion__inner .wprm-nutrition-label-text-nutrition-container,
.wprmia-nutrition-accordion__inner .wprmp-nutrition-label-block-nutrient {
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
}

@media (max-width: 599px) {
	.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-container.wprm-nutrition-label-container-grouped-text,
	.wprmia-has-recipe .wprm-recipe-container .wprmia-nutrition-accordion__inner {
		column-gap: 0.65rem;
	}

	.wprmia-has-recipe .wprm-recipe-container .wprm-nutrition-label-text-nutrition-container:not(.wprm-nutrition-label-text-nutrition-container-empty) {
		font-size: 0.875em;
		gap: 0.4em;
		column-gap: 0.4em;
	}
}

/*
 * Checked checklist: strike + mute ingredient name/grams and method text.
 * Must beat `.wprm-recipe-ingredient-amount { color: accent !important }`
 * and WPRM/theme instruction color (including nested spans).
 */
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-ingredient-name,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-ingredient-name *,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-ingredient-text,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-ingredient-text *,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-ingredient-details,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-ingredient-amount,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-ingredient-unit,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprmia-native-amount,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprmia-native-amount-wrap,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprm-adjustable,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-item.wprmia-checklist-checked .wprmia-ingredient-primary,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-instruction-text,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-instruction-text * {
	color: #8a7a70 !important;
	opacity: 0.72 !important;
	text-decoration: line-through !important;
	text-decoration-color: #8a7a70 !important;
	text-decoration-thickness: 2px;
	text-decoration-skip-ink: none;
}

.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item.wprmia-checklist-checked .wprmia-step-number,
.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-item.wprmia-checklist-checked .wprm-recipe-instruction-number {
	color: #8a7a70 !important;
	opacity: 0.55 !important;
	background: color-mix(in srgb, #8a7a70 18%, transparent);
}

@media print {
	.wprmia-nutrition-show-more {
		display: none !important;
	}

	.wprmia-nutrition-accordion,
	.wprmia-nutrition-accordion[hidden] {
		display: block !important;
		max-height: none !important;
		opacity: 1 !important;
		overflow: visible !important;
		margin-top: 0 !important;
	}

	.wprmia-amount-controls,
	.wprmia-portion-btn,
	.wprmia-restore-row,
	.wprmia-omitted-panel {
		display: none !important;
	}

	/* Keep the notes label — only the control chrome is meaningless on paper. */
	.wprmia-controls-row,
	.wprmia-portion-controls {
		margin-left: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		font-size: inherit !important;
	}

	.wprmia-ingredient-omitted {
		display: none !important;
	}

	.wprmia-checklist-checkbox {
		display: none !important;
	}

	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-name,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-name *,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-text,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-text *,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-details,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-amount,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-unit,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprmia-native-amount,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprmia-native-amount-wrap,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-adjustable,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprmia-ingredient-primary,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-checked .wprm-recipe-instruction-text,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-checked .wprm-recipe-instruction-text *,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-checked .wprmia-step-number,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-instruction.wprmia-checklist-checked .wprm-recipe-instruction-number {
		text-decoration: none !important;
		opacity: 1 !important;
		color: inherit !important;
	}

	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-amount,
	.wprmia-has-recipe .wprm-recipe-container li.wprm-recipe-ingredient.wprmia-checklist-checked .wprm-recipe-ingredient-unit {
		color: var(--wprmia-accent, #c66944) !important;
	}

	body.wprm-print .wprm-recipe-ingredient-amount,
	body.wprm-print .wprm-recipe-ingredient-unit {
		display: inline !important;
	}
}

/* WPRM dedicated print page — hide adjuster controls, keep adjusted values visible */
body.wprm-print.wprmia-print-active .wprmia-controls-row,
body.wprm-print.wprmia-print-active .wprmia-amount-controls,
body.wprm-print.wprmia-print-active .wprmia-portion-controls,
body.wprm-print.wprmia-print-active .wprmia-restore-row,
body.wprm-print.wprmia-print-active .wprmia-omitted-panel {
	display: none !important;
}

body.wprm-print.wprmia-print-active .wprmia-ingredient-omitted {
	display: none !important;
}

body.wprm-print.wprmia-print-active .wprm-recipe-ingredient-amount,
body.wprm-print.wprmia-print-active .wprm-recipe-ingredient-unit {
	display: inline !important;
}

/*
 * Print page ingredients: DOM is amount → unit → notes → name (after adjuster
 * wraps the name). On-screen card uses flex order inside .wprmia-recipe-wrap;
 * /wprm_print/ does not. When the row stacks, force name first, then grammage.
 */
body.wprm-print li.wprm-recipe-ingredient,
body.wprm-print li.wprm-recipe-ingredient.wprmia-bound {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: baseline;
	column-gap: 0.35em;
	row-gap: 0.15em;
}

body.wprm-print li.wprm-recipe-ingredient > .wprmia-ingredient-primary,
body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-name,
body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-details,
body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-text {
	order: 1;
	flex: 1 1 100%;
	min-width: 0;
	max-width: 100%;
}

body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-amount,
body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-unit,
body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-notes,
body.wprm-print li.wprm-recipe-ingredient > .wprmia-native-amount,
body.wprm-print li.wprm-recipe-ingredient > .wprmia-native-amount-wrap {
	order: 2;
	flex: 0 0 auto;
}

body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-amount,
body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-unit,
body.wprm-print li.wprm-recipe-ingredient > .wprm-recipe-ingredient-notes,
body.wprm-print li.wprm-recipe-ingredient > .wprmia-native-amount {
	display: inline !important;
}

@media (max-width: 480px) {
	.wprmia-portion-label {
		min-width: 0;
		max-width: 4.75rem;
		font-size: 0.85em;
	}

	.wprmia-portion-btn,
	.wprmia-amount-btn {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}

	.wprmia-amount-input,
	.wprmia-amount-controls input[type="number"] {
		width: 3.5rem;
		min-width: 2.75rem;
		font-size: 16px;
	}

	.wprmia-controls-row {
		padding: 1px;
		gap: 0;
	}
}

/*
 * Site-wide rounded images (Feast/Spoon ~12px).
 * Loaded globally with the plugin; circular avatars stay 50%.
 */
.entry-content img,
.entry-content .wp-block-image img,
.fsri-list img,
.fsri-image img,
.feast-recipe-index img,
.feast-category-index img,
.feast-category-index-list img,
.post-thumbnail img,
.entry-featured-image img,
.wp-block-post-featured-image img,
.wprm-recipe-image img,
.wprm-recipe-header img,
.wprmia-card img,
.wprmia-results img,
.ntfy-recipe-card__media img {
	border-radius: 12px;
}

.entry-content img.feast-image-round,
.feast-image-round,
.feast-category-index img.feast-image-round,
.entry-content img.wprmia-circle-img,
.wprmia-circle-img,
.wprmia-circle-img img,
.wprmia-circle-item img {
	border-radius: 50% !important;
}

/* iOS Safari auto-zooms inputs below 16px — WordPress mobile breakpoint */
@media (max-width: 781px) {
	.wprmia-amount-input,
	.wprmia-amount-controls input[type='number'] {
		font-size: 16px;
	}
}

/*
 * WP Consent cookie banner — NTF cream / terracotta.
 * Plugin paints navy + gold via inline CSS vars on #wpconsent-root;
 * !important is required to beat those inline custom properties.
 */
#wpconsent-root {
	--wpconsent-background: #fff3eb !important;
	--wpconsent-text: #3d2f28 !important;
	--wpconsent-outline-color: rgba(61, 47, 40, 0.18) !important;
	--wpconsent-accept-bg: #c66944 !important;
	--wpconsent-accept-color: #ffffff !important;
	--wpconsent-cancel-bg: #ffffff !important;
	--wpconsent-cancel-color: #c66944 !important;
	--wpconsent-preferences-bg: #ffffff !important;
	--wpconsent-preferences-color: #c66944 !important;
	--wpconsent-close-color: #3d2f28 !important;
	--wpconsent-focus-outline-color: #c66944 !important;
}

#wpconsent-banner-holder.wpconsent-banner-holder,
#wpconsent-banner-holder .wpconsent-banner,
#wpconsent-preferences-modal .wpconsent-preferences-content {
	background: #fff3eb !important;
	background-color: #fff3eb !important;
	color: #3d2f28 !important;
}

#wpconsent-banner-holder .wpconsent-banner-message,
#wpconsent-banner-holder .wpconsent-banner-message a,
#wpconsent-banner-title,
#wpconsent-preferences-title,
#wpconsent-preferences-modal,
#wpconsent-preferences-modal .wpconsent-cookie-category-text,
#wpconsent-preferences-modal .wpconsent_preferences_panel_description,
#wpconsent-preferences-modal .wpconsent-category-description,
#wpconsent-preferences-modal .wpconsent-preferences-header-close,
#wpconsent-preferences-modal .wpconsent-always-active,
#wpconsent-preferences-modal .wpconsent-checkbox-label {
	color: #3d2f28 !important;
}

#wpconsent-banner-holder .wpconsent-banner-message a,
#wpconsent-preferences-modal a {
	color: #c66944 !important;
	text-decoration-color: color-mix(in srgb, #c66944 55%, transparent);
}

#wpconsent-root .wpconsent-banner-button {
	border-radius: 999px !important;
	font-weight: 600;
}

#wpconsent-accept-all.wpconsent-banner-button,
#wpconsent-root .wpconsent-banner-button.wpconsent-accept-all,
#wpconsent-root .wpconsent-banner-button.wpconsent-accept-cookies.wpconsent-accept-all,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-accept-all {
	background: #c66944 !important;
	background-color: #c66944 !important;
	color: #fff !important;
	border: 1px solid #c66944 !important;
}

#wpconsent-accept-all.wpconsent-banner-button:hover,
#wpconsent-root .wpconsent-banner-button.wpconsent-accept-all:hover,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-accept-all:hover {
	background-color: color-mix(in srgb, #c66944 88%, #000) !important;
	border-color: color-mix(in srgb, #c66944 88%, #000) !important;
	color: #fff !important;
}

#wpconsent-cancel-all.wpconsent-banner-button,
#wpconsent-preferences-all.wpconsent-banner-button,
#wpconsent-root .wpconsent-banner-button.wpconsent-cancel-all,
#wpconsent-root .wpconsent-banner-button.wpconsent-preferences-all,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-cancel-all,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-preferences-all {
	background: #fff !important;
	background-color: #fff !important;
	color: #c66944 !important;
	border: 1px solid #c66944 !important;
}

#wpconsent-cancel-all.wpconsent-banner-button:hover,
#wpconsent-preferences-all.wpconsent-banner-button:hover,
#wpconsent-root .wpconsent-banner-button.wpconsent-cancel-all:hover,
#wpconsent-root .wpconsent-banner-button.wpconsent-preferences-all:hover,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-cancel-all:hover,
#wpconsent-preferences-modal .wpconsent-banner-button.wpconsent-preferences-all:hover {
	background: #fff3eb !important;
	background-color: #fff3eb !important;
	color: #c66944 !important;
	border-color: #c66944 !important;
}

#wpconsent-root .wpconsent-preferences-checkbox-toggle input:checked + .wpconsent-preferences-checkbox-toggle-slider {
	background-color: #c66944 !important;
}

#wpconsent-root .wpconsent-powered-by,
#wpconsent-root .wpconsent-powered-by-text,
#wpconsent-root .wpconsent-preferences-powered-by {
	color: #3d2f28 !important;
	opacity: 0.55;
}

#wpconsent-root .wpconsent-icon-logo-mono,
#wpconsent-root .wpconsent-powered-by svg,
#wpconsent-root .wpconsent-powered-by svg path {
	fill: #3d2f28 !important;
	stroke: #3d2f28;
	color: #3d2f28 !important;
}

.wpconsent-consent-floating-button {
	background-color: #c66944 !important;
	color: #fff !important;
	border-radius: 999px !important;
}

.wpconsent-consent-floating-button:hover {
	background-color: color-mix(in srgb, #c66944 88%, #000) !important;
}

/* Keep screen on — cook-mode toggle above Method */
.wprmia-wake-lock {
	margin: var(--wprmia-section-gap, 2rem) 0 0.85rem;
}

.wprmia-has-recipe .wprm-recipe-container:has(.wprmia-seasonings-section:not([hidden])) .wprmia-wake-lock {
	margin-top: calc(var(--wprmia-section-gap) + var(--wprmia-spices-method-extra));
}

.wprmia-has-recipe .wprm-recipe-container .wprmia-wake-lock + .wprm-recipe-instructions-container,
.wprmia-has-recipe .wprm-recipe-container .wprmia-wake-lock + .wprmia-recipe-tip,
.wprmia-has-recipe .wprm-recipe-container:has(.wprmia-wake-lock) .wprm-recipe-instructions-container {
	margin-top: 0.75rem;
}

@media (min-width: 900px) {
	.wprmia-has-recipe .wprm-recipe-container .meadow-main-right > .wprmia-wake-lock:first-child {
		margin-top: 0;
	}
}

.wprmia-wake-lock-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.7rem 1.15rem;
	background: #fff;
	color: var(--wprmia-accent, #c66944);
	border: 1.5px solid var(--wprmia-accent, #c66944);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(122, 85, 66, 0.08);
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wprmia-wake-lock-btn .wprmia-wake-lock-icon {
	flex-shrink: 0;
}

.wprmia-wake-lock-btn:hover {
	background: #fff3eb;
}

.wprmia-wake-lock-btn:focus-visible {
	outline: 2px solid var(--wprmia-accent, #c66944);
	outline-offset: 2px;
}

.wprmia-wake-lock-btn.is-on,
.wprmia-wake-lock-btn.is-pending {
	background: var(--wprmia-accent, #c66944);
	color: #fff;
	border-color: var(--wprmia-accent, #c66944);
	box-shadow: 0 1px 2px rgba(122, 85, 66, 0.16);
}

.wprmia-wake-lock-btn.is-on:hover,
.wprmia-wake-lock-btn.is-pending:hover {
	background: color-mix(in srgb, var(--wprmia-accent, #c66944) 88%, #000);
	border-color: color-mix(in srgb, var(--wprmia-accent, #c66944) 88%, #000);
}

@media (min-width: 900px) {
	.wprmia-wake-lock-btn {
		width: auto;
		min-width: 14rem;
		max-width: 100%;
	}
}
