.sos-recipe-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
}

.sos-recipe-summary__item {
	min-width: 0;
	padding: 18px 14px;
	text-align: center;
	background: #f7faf8;
	border: 1px solid #dfe6e1;
	border-radius: 12px;
}

.sos-recipe-summary__label {
	display: block;
	margin-bottom: 5px;
	color: #2f6f55;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.sos-recipe-summary__value {
	display: block;
	color: #222222;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.sos-recipe-ingredients {
	margin: 0;
	padding-left: 1.25em;
	color: #343934;
	font-size: 17px;
	line-height: 1.8;
}

.sos-recipe-ingredients li + li {
	margin-top: 7px;
}

.sos-recipe-method {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: sos-recipe-step;
}

.sos-recipe-method li {
	position: relative;
	counter-increment: sos-recipe-step;
	padding: 0 0 24px 54px;
	color: #343934;
	font-size: 17px;
	line-height: 1.75;
}

.sos-recipe-method li:last-child {
	padding-bottom: 0;
}

.sos-recipe-method li::before {
	content: counter(sos-recipe-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #2f6f55;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

@media (max-width: 781px) {
	.sos-recipe-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sos-recipe-method li {
		padding-left: 48px;
	}
}

@media (max-width: 420px) {
	.sos-recipe-summary {
		grid-template-columns: 1fr 1fr;
		gap: 9px;
	}

	.sos-recipe-summary__item {
		padding: 15px 10px;
	}

	.sos-recipe-summary__value,
	.sos-recipe-ingredients,
	.sos-recipe-method li {
		font-size: 16px;
	}
}


/* Recipe-page quick links and in-page anchors */
#recipe,
#adapt-this-recipe {
	scroll-margin-top: 110px;
}

.sos-recipe-quicklinks {
	margin-top: 24px;
}

.sos-recipe-quicklinks .wp-block-button__link {
	transition:
		background-color .18s ease,
		color .18s ease,
		border-color .18s ease,
		transform .18s ease;
}

.sos-recipe-quicklinks .wp-block-button__link:hover,
.sos-recipe-quicklinks .wp-block-button__link:focus-visible {
	transform: translateY(-1px);
}

.sos-recipe-quicklinks .sos-recipe-quicklinks__primary .wp-block-button__link:hover,
.sos-recipe-quicklinks .sos-recipe-quicklinks__primary .wp-block-button__link:focus-visible {
	background-color: #245844 !important;
	border-color: #245844 !important;
	color: #ffffff !important;
}

.sos-recipe-quicklinks .sos-recipe-quicklinks__secondary .wp-block-button__link:hover,
.sos-recipe-quicklinks .sos-recipe-quicklinks__secondary .wp-block-button__link:focus-visible {
	background-color: #eaf4ee !important;
	border-color: #bdd6c7 !important;
	color: #245844 !important;
}

/* Optional estimated nutrition section */
.sos-recipe-nutrition {
	padding: 64px 24px;
	text-align: center;
	background: #ffffff;
}

.sos-recipe-nutrition__eyebrow {
	margin: 0 0 8px;
	color: #2f6f55;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.sos-recipe-nutrition__title {
	margin: 0;
	color: #222222;
	font-size: clamp(2rem, 4vw, 2.7rem);
	font-weight: 500;
}

.sos-recipe-nutrition__serving {
	margin: 8px 0 28px;
	color: #676d67;
	font-size: 15px;
}

.sos-recipe-nutrition__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: min(820px, 100%);
	margin: 0 auto;
}

.sos-recipe-nutrition__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	text-align: left;
	background: #f7faf8;
	border: 1px solid #dfe6e1;
	border-radius: 10px;
}

.sos-recipe-nutrition__item span {
	color: #596059;
	font-size: 14px;
}

.sos-recipe-nutrition__item strong {
	color: #222222;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.sos-recipe-nutrition__note {
	width: min(760px, 100%);
	margin: 22px auto 0;
	color: #777d77;
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 781px) {
	.sos-recipe-nutrition {
		padding: 54px 24px;
	}

	.sos-recipe-nutrition__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.sos-recipe-nutrition__grid {
		grid-template-columns: 1fr;
	}
}


/* Recipe category link */
.sos-recipe-category-wrap {
	margin: 0 0 16px;
	text-align: center;
}

.sos-recipe-category-link {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 13px;
	background: #edf6f1;
	border: 1px solid #cfe1d7;
	border-radius: 999px;
	color: #2f6f55;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
}

.sos-recipe-category-link:hover,
.sos-recipe-category-link:focus-visible {
	background: #e2f0e8;
	color: #245844;
}

/* Plugin-generated quick actions */
.sos-recipe-quick-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.sos-recipe-quick-actions__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 17px;
	border: 1px solid #bdd6c7;
	border-radius: 10px;
	background: #ffffff;
	color: #245844;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.sos-recipe-quick-actions__button--primary {
	background: #2f6f55;
	border-color: #2f6f55;
	color: #ffffff;
}

.sos-recipe-quick-actions__button:hover,
.sos-recipe-quick-actions__button:focus-visible {
	background: #2f6f55;
	border-color: #2f6f55;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 7px 18px rgba(47, 111, 85, 0.16);
}

.sos-recipe-quick-actions__button--primary:hover,
.sos-recipe-quick-actions__button--primary:focus-visible {
	background: #eaf4ee;
	border-color: #bdd6c7;
	color: #245844;
}

/* Compact cooking details */
.sos-recipe-details {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
	margin: 18px auto 0;
}

.sos-recipe-details__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 11px;
	background: #ffffff;
	border: 1px solid #e2e7e3;
	border-radius: 999px;
	color: #5d655f;
	font-size: 13px;
	line-height: 1.2;
}

.sos-recipe-details__item strong {
	color: #2f6f55;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Optional equipment section */
.sos-recipe-equipment {
	padding: 54px 24px;
	text-align: center;
	background: #ffffff;
}

.sos-recipe-equipment__title {
	margin: 0 0 24px;
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	font-weight: 500;
}

.sos-recipe-equipment__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	width: min(920px, 100%);
	margin: 0 auto;
}

/* Keep short equipment lists visually intentional rather than left-stranded. */
.sos-recipe-equipment__grid--1 {
	grid-template-columns: minmax(0, 221px);
	justify-content: center;
}

.sos-recipe-equipment__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 221px));
	justify-content: center;
}

.sos-recipe-equipment__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 221px));
	justify-content: center;
}

.sos-recipe-equipment__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 76px;
	padding: 16px;
	background: #f7faf8;
	border: 1px solid #dfe6e1;
	border-radius: 12px;
	color: #343934;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

/* Related recipes */
.sos-related-recipes {
	padding: 64px 24px 72px;
	background: #ffffff;
}

.sos-related-recipes__inner {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.sos-related-recipes__eyebrow {
	margin: 0 0 8px;
	color: #2f6f55;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
}

.sos-related-recipes__title {
	margin: 0 0 34px;
	font-size: clamp(2rem, 4vw, 2.7rem);
	font-weight: 500;
	text-align: center;
}

.sos-related-recipes .sos-recipe-library__description {
	display: none;
}

.sos-related-recipes .sos-recipe-library__body {
	padding: 20px;
}

.sos-related-recipes__more {
	margin: 28px 0 0;
	text-align: center;
}

.sos-related-recipes__more a {
	color: #2f6f55;
	font-weight: 700;
	text-decoration: none;
}

.sos-related-recipes__more a:hover,
.sos-related-recipes__more a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 781px) {
	.sos-recipe-equipment__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.sos-recipe-quick-actions__button {
		flex: 1 1 100%;
	}

	.sos-recipe-equipment__grid {
		grid-template-columns: 1fr 1fr;
	}
}


/* =========================================================
   RECIPE VISUAL REFINEMENTS — 0.10.1
   ========================================================= */

/* Section eyebrow used by the richer recipe layouts */
.sos-recipe-section-eyebrow,
.sos-recipe-equipment__eyebrow {
	margin: 0 0 8px;
	color: #2f6f55;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-align: center;
	text-transform: uppercase;
}

.sos-recipe-equipment__eyebrow {
	margin-bottom: 7px;
}

/* Clear air-fryer compatibility status */
.sos-recipe-details__item--air-fryer-yes {
	background: #eaf4ee !important;
	border-color: #a9cdb9;
	color: #245844;
	font-weight: 700;
}

.sos-recipe-details__item--air-fryer-yes strong,
.sos-recipe-details__item--air-fryer-yes span {
	color: #245844;
}

.sos-recipe-details__item--air-fryer-no {
	background: #fff7ec !important;
	border-color: #e4cba6;
	color: #6a5538;
	font-weight: 700;
}

.sos-recipe-details__item--air-fryer-no strong,
.sos-recipe-details__item--air-fryer-no span {
	color: #6a5538;
}

/* Why-this-works cards */
.sos-recipe-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: min(980px, 100%);
	margin: 0 auto;
}

.sos-recipe-feature-card {
	position: relative;
	min-height: 100%;
	padding: 28px 24px 25px;
	text-align: center;
	background: #ffffff;
	border: 1px solid #dfe6e1;
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(32, 54, 43, 0.04);
}

.sos-recipe-feature-card__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #eaf4ee;
	color: #2f6f55;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
}

.sos-recipe-feature-card h3 {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 600;
}

.sos-recipe-feature-card p {
	margin: 0;
	color: #626862;
	font-size: 15px;
	line-height: 1.65;
}

/* Tip and storage cards */
.sos-recipe-tip-grid,
.sos-recipe-storage-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	width: min(920px, 100%);
	margin: 0 auto;
}

.sos-recipe-tip-card,
.sos-recipe-storage-card {
	min-height: 100%;
	padding: 24px 24px 23px;
	background: #ffffff;
	border: 1px solid #dfe6e1;
	border-radius: 14px;
}

.sos-recipe-tip-card {
	border-top: 3px solid #8eb9a2;
}

.sos-recipe-storage-card {
	border-color: #eadfce;
	box-shadow: 0 7px 18px rgba(83, 64, 37, 0.035);
}

.sos-recipe-tip-card h3,
.sos-recipe-storage-card h3 {
	margin: 0 0 9px;
	color: #245844;
	font-size: 18px;
	font-weight: 650;
	text-align: center;
}

.sos-recipe-storage-card h3 {
	color: #604f38;
}

.sos-recipe-tip-card p,
.sos-recipe-storage-card p {
	margin: 0;
	color: #626862;
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
}

/* Centred, card-style recipe FAQs */
.sos-recipe-faqs .wp-block-details {
	width: min(780px, 100%);
	margin: 0 auto 12px;
	padding: 0 20px;
	background: #ffffff;
	border: 1px solid #dfe6e1;
	border-radius: 12px;
}

.sos-recipe-faqs .wp-block-details summary {
	position: relative;
	padding: 17px 34px;
	cursor: pointer;
	list-style: none;
	color: #2d322e;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
}

.sos-recipe-faqs .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.sos-recipe-faqs .wp-block-details summary::marker {
	content: "";
}

.sos-recipe-faqs .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	color: #2f6f55;
	font-size: 21px;
	font-weight: 400;
}

.sos-recipe-faqs .wp-block-details[open] summary::after {
	content: "−";
}

.sos-recipe-faqs .wp-block-details p {
	width: min(680px, 100%);
	margin: 0 auto;
	padding: 0 12px 20px;
	color: #626862;
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
}

@media (max-width: 781px) {
	.sos-recipe-feature-grid {
		grid-template-columns: 1fr;
		max-width: 620px;
	}

	.sos-recipe-tip-grid,
	.sos-recipe-storage-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.sos-recipe-faqs .wp-block-details {
		padding: 0 14px;
	}

	.sos-recipe-faqs .wp-block-details summary {
		padding-left: 24px;
		padding-right: 30px;
	}
}


/* =========================================================
   RECIPE VISUAL REFINEMENTS — 0.10.2
   ========================================================= */

/* Keep all three quick actions visually equal until hover/focus. */
.sos-recipe-quick-actions__button--primary {
	background: #ffffff;
	border-color: #bdd6c7;
	color: #245844;
}

.sos-recipe-quick-actions__button--primary:hover,
.sos-recipe-quick-actions__button--primary:focus-visible {
	background: #2f6f55;
	border-color: #2f6f55;
	color: #ffffff;
}

/* Abstract-style Why This Recipe Works panel. */
.sos-recipe-why-section {
	background: #ffffff;
}

.sos-recipe-why-panel {
	width: min(1040px, 100%);
	margin: 0 auto;
	padding: 38px 34px 34px;
	background: #fffaf2;
	border: 1px solid #e4dfd5;
	border-top: 3px solid #8eb9a2;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(75, 61, 39, 0.05);
}

/* WordPress flow-layout margins can offset every grid child except the first.
   The grids use their own gap, so remove those block margins explicitly. */
.sos-recipe-feature-grid,
.sos-recipe-tip-grid,
.sos-recipe-storage-grid {
	align-items: stretch;
}

.sos-recipe-feature-grid > *,
.sos-recipe-tip-grid > *,
.sos-recipe-storage-grid > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.sos-recipe-feature-card,
.sos-recipe-tip-card,
.sos-recipe-storage-card {
	box-sizing: border-box;
	height: 100%;
}

/* Give the practical cards a little more contrast without making them heavy. */
.sos-recipe-tip-card {
	background: #f7faf8;
	border-color: #cfe1d7;
	box-shadow: 0 7px 18px rgba(47, 111, 85, 0.04);
}

.sos-recipe-storage-card {
	background: #ffffff;
	border-color: #e4d2b8;
	border-top: 3px solid #d6b983;
	box-shadow: 0 7px 18px rgba(83, 64, 37, 0.045);
}

/* FAQ cards: more breathing room and a softer, accessible focus treatment. */
.sos-recipe-faqs .wp-block-details {
	padding-left: 24px;
	padding-right: 24px;
}

.sos-recipe-faqs .wp-block-details summary {
	padding: 21px 44px;
}

.sos-recipe-faqs .wp-block-details summary:focus {
	outline: none;
}

.sos-recipe-faqs .wp-block-details summary:focus-visible {
	outline: 2px solid #8eb9a2;
	outline-offset: 4px;
	border-radius: 9px;
	background: #f7faf8;
}

.sos-recipe-faqs .wp-block-details[open] {
	border-color: #cfe1d7;
}

.sos-recipe-faqs .wp-block-details p {
	padding: 4px 18px 23px;
}

/* Final recipe CTA uses the same hover treatment as the other green CTAs. */
.sos-recipe-final-cta .wp-block-button__link {
	transition:
		background-color .18s ease,
		color .18s ease,
		border-color .18s ease,
		transform .18s ease;
}

.sos-recipe-final-cta .wp-block-button__link:hover,
.sos-recipe-final-cta .wp-block-button__link:focus-visible {
	background: #eaf4ee !important;
	border-color: #eaf4ee !important;
	color: #245844 !important;
	transform: translateY(-1px);
}

@media (max-width: 781px) {
	.sos-recipe-why-panel {
		padding: 30px 20px 24px;
	}
}

@media (max-width: 480px) {
	.sos-recipe-faqs .wp-block-details {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sos-recipe-faqs .wp-block-details summary {
		padding: 19px 34px 19px 22px;
	}
}

/* =========================================================
   INTERACTIVE COOKING CARD — 0.10.3
   ========================================================= */

/* Treat Ingredients & Method as one coherent recipe card. */
#recipe > .wp-block-columns {
	gap: 0 !important;
	margin-top: 0 !important;
	padding: 18px;
	background: #ffffff;
	border: 1px solid #e4dfd5;
	border-radius: 22px;
	box-shadow: 0 12px 30px rgba(75, 61, 39, 0.055);
	overflow: hidden;
}

#recipe > .wp-block-columns > .wp-block-column {
	margin-block-start: 0 !important;
}

#recipe > .wp-block-columns > .wp-block-column > .wp-block-group {
	min-height: 100%;
	padding: 20px 24px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

#recipe > .wp-block-columns > .wp-block-column + .wp-block-column {
	border-left: 1px solid #e7e5df;
}

.sos-recipe-checklist__hint {
	margin: -8px 0 18px;
	color: #7a817a;
	font-size: 13px;
	line-height: 1.55;
	text-align: center;
}

/* Ingredient checklist */
.sos-recipe-ingredients {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sos-recipe-ingredients li + li {
	margin-top: 5px;
}

.sos-recipe-ingredient {
	border-radius: 8px;
	transition: background-color .16s ease;
}

.sos-recipe-ingredient label {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 5px 7px;
	cursor: pointer;
	border-radius: 8px;
}

.sos-recipe-ingredient label:hover {
	background: #f7faf8;
}

.sos-recipe-ingredient__checkbox {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin: 4px 0 0;
	accent-color: #2f6f55;
	cursor: pointer;
}

.sos-recipe-ingredient__checkbox:focus-visible {
	outline: 2px solid #8eb9a2;
	outline-offset: 3px;
}

.sos-recipe-ingredient__text {
	min-width: 0;
	color: #343934;
	font-size: 17px;
	line-height: 1.65;
	transition: color .16s ease, opacity .16s ease;
}

.sos-recipe-ingredient.is-complete .sos-recipe-ingredient__text {
	color: #8a908a;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	text-decoration-color: #788078;
	opacity: .78;
}

/* Method progress */
.sos-recipe-method {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.sos-recipe-method li {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 0 0 22px;
	color: #343934;
	font-size: 17px;
	line-height: 1.72;
	counter-increment: none;
}

.sos-recipe-method li::before {
	content: none !important;
	display: none !important;
}

.sos-recipe-method__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid #2f6f55;
	border-radius: 50%;
	background: #2f6f55;
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.sos-recipe-method__toggle:hover {
	transform: translateY(-1px);
	background: #245844;
	border-color: #245844;
}

.sos-recipe-method__toggle:focus-visible {
	outline: 2px solid #8eb9a2;
	outline-offset: 3px;
}

.sos-recipe-method__text {
	padding-top: 5px;
	transition: color .16s ease, opacity .16s ease;
}

.sos-recipe-method li.is-complete .sos-recipe-method__toggle {
	background: #eaf4ee;
	border-color: #bdd6c7;
	color: #245844;
}

.sos-recipe-method li.is-complete .sos-recipe-method__number {
	font-size: 0;
}

.sos-recipe-method li.is-complete .sos-recipe-method__number::after {
	content: "✓";
	font-size: 18px;
	font-weight: 700;
}

.sos-recipe-method li.is-complete .sos-recipe-method__text {
	color: #8a908a;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	text-decoration-color: #788078;
	opacity: .78;
}

/* Small reset controls under each checklist. */
.sos-recipe-progress-reset {
	appearance: none;
	margin: 18px auto 0;
	padding: 8px 11px;
	display: block;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #2f6f55;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.sos-recipe-progress-reset:hover,
.sos-recipe-progress-reset:focus-visible {
	background: #eaf4ee;
	color: #245844;
}

.sos-recipe-progress-reset:focus-visible {
	outline: 2px solid #8eb9a2;
	outline-offset: 2px;
}

.sos-recipe-progress-reset:disabled {
	visibility: hidden;
	pointer-events: none;
}

@media (max-width: 781px) {
	#recipe > .wp-block-columns {
		display: block;
		padding: 10px 16px;
	}

	#recipe > .wp-block-columns > .wp-block-column > .wp-block-group {
		padding: 24px 8px !important;
	}

	#recipe > .wp-block-columns > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid #e7e5df;
	}

	.sos-recipe-method li {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 9px;
		padding-bottom: 20px;
	}

	.sos-recipe-method__toggle {
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 420px) {
	.sos-recipe-ingredient__text,
	.sos-recipe-method li {
		font-size: 16px;
	}
}


/* =========================================================
   RECIPE BROWSING + ICONS + CALLOUTS — 0.11.0
   ========================================================= */

/* Recipe-fact icons */
.sos-recipe-summary__icon,
.sos-recipe-details__icon,
.sos-recipe-callout__svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #2f6f55;
}

.sos-recipe-summary__icon {
	width: 25px;
	height: 25px;
	margin: 0 auto 8px;
}

.sos-recipe-summary__icon svg,
.sos-recipe-details__icon svg,
.sos-recipe-callout__svg svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sos-recipe-summary__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Clickable recipe browse dimensions and practical cooking metadata. */
a.sos-recipe-details__item {
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color .18s ease,
		border-color .18s ease,
		color .18s ease,
		transform .18s ease;
}

.sos-recipe-details__item--browse:hover,
.sos-recipe-details__item--browse:focus-visible {
	background: #eaf4ee !important;
	border-color: #a9cdb9;
	color: #245844;
	transform: translateY(-1px);
	outline: none;
}

.sos-recipe-details__item--browse:hover strong,
.sos-recipe-details__item--browse:hover span,
.sos-recipe-details__item--browse:focus-visible strong,
.sos-recipe-details__item--browse:focus-visible span {
	color: #245844;
}

.sos-recipe-details__icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.sos-recipe-details__item--air-fryer-yes .sos-recipe-details__icon,
.sos-recipe-details__item--air-fryer-no .sos-recipe-details__icon {
	color: inherit;
}

/* Optional quality and money-saving callouts. */
.sos-recipe-callouts {
	padding: 16px 24px 64px;
	background: #f7faf8;
}

.sos-recipe-callouts__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: min(960px, 100%);
	margin: 0 auto;
}

.sos-recipe-callouts--count-1 .sos-recipe-callouts__inner {
	grid-template-columns: 1fr;
	max-width: 720px;
}

.sos-recipe-callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	min-height: 100%;
	padding: 26px 28px;
	border: 1px solid;
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(32, 54, 43, 0.035);
}

.sos-recipe-callout--quality {
	background: #fffaf2;
	border-color: #e4d2b8;
}

.sos-recipe-callout--cost {
	background: #eaf4ee;
	border-color: #bcd7c8;
}

.sos-recipe-callout__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(47, 111, 85, .16);
}

.sos-recipe-callout__svg {
	width: 23px;
	height: 23px;
}

.sos-recipe-callout--quality .sos-recipe-callout__svg {
	color: #8a6b3e;
}

.sos-recipe-callout__eyebrow {
	margin: 0 0 5px;
	color: #2f6f55;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.sos-recipe-callout--quality .sos-recipe-callout__eyebrow {
	color: #80633c;
}

.sos-recipe-callout__title {
	margin: 0 0 8px;
	color: #222222;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
}

.sos-recipe-callout__text {
	margin: 0;
	color: #596059;
	font-size: 15px;
	line-height: 1.7;
}

@media (max-width: 781px) {
	.sos-recipe-callouts {
		padding-right: 18px;
		padding-left: 18px;
	}

	.sos-recipe-callouts__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.sos-recipe-callout {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.sos-recipe-callout__icon {
		margin: 0 auto;
	}
}


/* =========================================================
   RECIPE HERO, UNITS, ALLERGENS + NUTRITION — 0.12.0
   ========================================================= */

/* Breadcrumbs */
.sos-recipe-breadcrumbs {
	width: min(1120px, calc(100% - 48px));
	margin: 34px auto 18px;
}

.sos-recipe-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sos-recipe-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #7a817b;
	font-size: 14px;
	line-height: 1.4;
}

.sos-recipe-breadcrumbs li:not(:last-child)::after {
	content: "→";
	color: #a2aaa4;
}

.sos-recipe-breadcrumbs a {
	color: #69716b;
	text-decoration: none;
	transition: color .18s ease;
}

.sos-recipe-breadcrumbs a:hover,
.sos-recipe-breadcrumbs a:focus-visible {
	color: #2f6f55;
	text-decoration: underline;
}

/* Merged image + summary hero */
.sos-recipe-hero {
	padding: 0 24px 68px;
	background: #ffffff;
}

.sos-recipe-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	width: min(1120px, 100%);
	margin: 0 auto;
	overflow: hidden;
	background: #eef6f1;
	border: 1px solid #dce8e0;
	border-radius: 24px;
	box-shadow: 0 16px 38px rgba(32, 54, 43, .07);
}

.sos-recipe-hero__media {
	min-height: 100%;
	background: #e5efe9;
}

.sos-recipe-hero__image,
.sos-recipe-hero__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 620px;
	aspect-ratio: 4 / 5;
}

.sos-recipe-hero__image {
	object-fit: cover;
	object-position: center;
}

.sos-recipe-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	color: #2f6f55;
	font-weight: 700;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
}

.sos-recipe-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 46px 48px;
}

.sos-recipe-hero__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0 0 18px;
}

.sos-recipe-hero__terms a {
	position: relative;
	color: #2f6f55;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.35;
	text-decoration: none;
	text-transform: uppercase;
}

.sos-recipe-hero__terms a:not(:last-child)::after {
	content: "·";
	position: relative;
	margin-left: 12px;
	color: #94aa9d;
}

.sos-recipe-hero__terms a:hover,
.sos-recipe-hero__terms a:focus-visible {
	color: #1f513e;
	text-decoration: underline;
}

.sos-recipe-hero__title {
	margin: 0;
	color: #222222;
	font-size: clamp(2.35rem, 4.8vw, 4rem);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.05;
}

.sos-recipe-hero__description {
	margin: 20px 0 0;
	color: #58615a;
	font-size: 17px;
	line-height: 1.7;
}

/* Facts become compact icon-led tiles inside the hero. */
.sos-recipe-hero .sos-recipe-summary {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin-top: 28px;
}

.sos-recipe-hero .sos-recipe-summary--count-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sos-recipe-hero .sos-recipe-summary__item {
	padding: 12px 8px;
	background: rgba(255,255,255,.78);
	border-color: #d7e4db;
	border-radius: 11px;
}

.sos-recipe-hero .sos-recipe-summary__icon {
	width: 21px;
	height: 21px;
	margin-bottom: 5px;
}

.sos-recipe-hero .sos-recipe-summary__label {
	font-size: 9.5px;
}

.sos-recipe-hero .sos-recipe-summary__value {
	font-size: 13px;
}

.sos-recipe-hero .sos-recipe-quick-actions {
	justify-content: flex-start;
	margin-top: 24px;
}

.sos-recipe-hero .sos-recipe-quick-actions__button {
	min-height: 46px;
	padding: 10px 15px;
}

.sos-recipe-hero .sos-recipe-details {
	justify-content: flex-start;
	margin-top: 18px;
}

.sos-recipe-hero .sos-recipe-details__item {
	background: rgba(255,255,255,.72);
}

/* Allergens: useful context, not a guarantee. */
.sos-recipe-allergens {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #d5e3da;
	color: #59615b;
	font-size: 12.5px;
	line-height: 1.55;
}

.sos-recipe-allergens__icon {
	display: inline-flex;
	width: 19px;
	height: 19px;
	color: #7f6740;
}

.sos-recipe-allergens__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sos-recipe-allergens p {
	margin: 0;
}

.sos-recipe-allergens__note {
	margin-top: 4px !important;
	color: #777e78;
}

/* Ingredient unit switch */
.sos-recipe-checklist__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.sos-recipe-checklist__toolbar .sos-recipe-checklist__hint {
	margin: 0;
}

.sos-recipe-unit-switch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	background: #f2f5f3;
	border: 1px solid #dfe6e1;
	border-radius: 999px;
}

.sos-recipe-unit-switch > span {
	padding: 0 6px 0 8px;
	color: #69716b;
	font-size: 11px;
	font-weight: 700;
}

.sos-recipe-unit-switch button {
	min-height: 30px;
	padding: 5px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #546057;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.sos-recipe-unit-switch button:hover,
.sos-recipe-unit-switch button:focus-visible,
.sos-recipe-unit-switch button.is-active {
	background: #2f6f55;
	color: #ffffff;
	outline: none;
}

/* Round the whole callout treatment, not only the individual cards. */
.sos-recipe-callouts {
	background: #ffffff;
}

.sos-recipe-callouts__inner {
	padding: 18px;
	background: #f7faf8;
	border: 1px solid #e2e9e4;
	border-radius: 24px;
}

/* Nutrition cards with optional % Daily Value. */
.sos-recipe-nutrition__grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.sos-recipe-nutrition__item {
	overflow: hidden;
	padding: 0 !important;
	background: #ffffff;
	border: 1px solid #dfe6e1;
	border-radius: 16px;
	text-align: center;
}

.sos-recipe-nutrition__item strong {
	display: block;
	padding: 18px 8px 10px;
	color: #2f6f55;
	font-size: 19px;
	line-height: 1.2;
}

.sos-recipe-nutrition__item > span {
	display: block;
	padding: 0 7px 10px;
	color: #5f6861;
	font-size: 12px;
	line-height: 1.3;
}

.sos-recipe-nutrition__item small {
	display: block;
	padding: 7px 6px;
	background: #eaf4ee;
	color: #2f6f55;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
}

@media (max-width: 980px) {
	.sos-recipe-hero__inner {
		grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	}

	.sos-recipe-hero__content {
		padding: 34px 30px;
	}

	.sos-recipe-hero .sos-recipe-summary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sos-recipe-nutrition__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 781px), (hover: none) and (pointer: coarse) {
	.sos-recipe-breadcrumbs {
		width: calc(100% - 36px);
		margin-top: 24px;
	}

	.sos-recipe-hero {
		padding-right: 18px;
		padding-bottom: 54px;
		padding-left: 18px;
	}

	.sos-recipe-hero__inner {
		grid-template-columns: 1fr;
		border-radius: 20px;
	}

	.sos-recipe-hero__image,
	.sos-recipe-hero__placeholder {
		min-height: 0;
		aspect-ratio: 4 / 5;
	}

	.sos-recipe-hero__content {
		padding: 30px 24px 32px;
	}

	.sos-recipe-hero__title {
		font-size: clamp(2.2rem, 10vw, 3.2rem);
	}

	.sos-recipe-hero .sos-recipe-summary,
	.sos-recipe-hero .sos-recipe-summary--count-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sos-recipe-hero .sos-recipe-summary--count-5 .sos-recipe-summary__item:last-child {
		grid-column: 1 / -1;
	}

	.sos-recipe-hero .sos-recipe-quick-actions {
		justify-content: stretch;
	}

	.sos-recipe-hero .sos-recipe-quick-actions__button {
		flex: 1 1 100%;
	}

	.sos-recipe-hero .sos-recipe-details {
		justify-content: center;
	}

	.sos-recipe-checklist__toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.sos-recipe-nutrition__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================
   LAYOUT POLISH + RESPONSIVE FIXES — 0.12.1
   ========================================================= */

/* The merged hero is intended to be a substantial 50/50 visual component. */
.sos-recipe-hero__inner {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: min(1120px, 100%);
}

.sos-recipe-hero__media {
	min-height: 0;
	aspect-ratio: 4 / 5;
}

.sos-recipe-hero__image,
.sos-recipe-hero__placeholder {
	height: 100%;
	min-height: 0;
	aspect-ratio: auto;
}

.sos-recipe-hero__title {
	font-size: clamp(2.15rem, 3.8vw, 3.45rem);
}

/* Ingredient units: keep the label and two choices legible in the narrower
 * Ingredients column rather than allowing individual words to wrap. */
.sos-recipe-checklist__toolbar {
	align-items: center;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.sos-recipe-unit-switch {
	display: grid;
	grid-template-columns: auto minmax(62px, 1fr) minmax(50px, .8fr);
	width: min(265px, 100%);
	gap: 3px;
}

.sos-recipe-unit-switch > span,
.sos-recipe-unit-switch button {
	white-space: nowrap;
}

.sos-recipe-unit-switch > span {
	display: flex;
	align-items: center;
	padding-left: 10px;
}

.sos-recipe-unit-switch button {
	width: 100%;
	padding-right: 12px;
	padding-left: 12px;
}

/* Restore the broader callout band from 0.11.x. The top edge remains square
 * so it visually joins the pale-green Recipe Notes section; only the bottom
 * edge is rounded. */
.sos-recipe-callouts {
	padding: 0 24px 64px;
	background: #f7faf8;
	border-top: 1px solid #cfe2d6;
}

.sos-recipe-callouts__inner {
	width: min(1040px, 100%);
	padding: 18px 18px 22px;
	background: #f7faf8;
	border: 1px solid #cfe2d6;
	border-top: 0;
	border-radius: 0 0 24px 24px;
}

.sos-recipe-callout {
	padding: 30px 30px;
}

/* Nutrition needs more horizontal room than the original shortcode container
 * offered. Four columns give the label and %DV enough space to wrap cleanly. */
.sos-recipe-nutrition__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: min(940px, 100%);
	gap: 12px;
}

.sos-recipe-nutrition__item {
	min-width: 0;
	overflow: hidden;
}

.sos-recipe-nutrition__item strong,
.sos-recipe-nutrition__item > span,
.sos-recipe-nutrition__item small {
	box-sizing: border-box;
	width: 100%;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

.sos-recipe-nutrition__item > span {
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 980px) {
	.sos-recipe-hero__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sos-recipe-nutrition__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 781px), (hover: none) and (pointer: coarse) {
	.sos-recipe-hero__inner {
		grid-template-columns: 1fr;
	}

	.sos-recipe-hero__media {
		aspect-ratio: 4 / 5;
	}

	.sos-recipe-callouts {
		padding-right: 18px;
		padding-left: 18px;
	}

	.sos-recipe-callouts__inner {
		width: min(720px, 100%);
	}
}

@media (max-width: 620px) {
	.sos-recipe-nutrition__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 390px) {
	.sos-recipe-nutrition__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   RECIPE PAGE POLISH — 0.12.2
   ========================================================= */

/* Keep "Measurements" as a plain label. Only Metric and US are interactive. */
.sos-recipe-unit-control {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
}

.sos-recipe-unit-control__label {
	color: #69716b;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.sos-recipe-unit-switch {
	display: inline-grid;
	grid-template-columns: repeat(2, minmax(66px, 1fr));
	gap: 3px;
	width: auto;
	min-width: 148px;
	padding: 3px;
	background: #f2f5f3;
	border: 1px solid #dfe6e1;
	border-radius: 999px;
}

.sos-recipe-unit-switch button {
	width: 100%;
	min-height: 32px;
	padding: 5px 14px;
	white-space: nowrap;
}

/* Restore the compact pale-green panel around the two callout cards.
 * It visually continues the Recipe Notes treatment, but only the lower
 * corners are rounded as requested. */
.sos-recipe-callouts {
	box-sizing: border-box;
	width: min(960px, calc(100% - 48px));
	max-width: 960px;
	margin: 0 auto 64px;
	padding: 16px 18px 20px;
	background: #f7faf8;
	border: 1px solid #cfe2d6;
	border-top: 0;
	border-radius: 0 0 24px 24px;
}

.sos-recipe-callouts__inner {
	width: 100%;
	max-width: none;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.sos-recipe-callout {
	padding: 30px 30px;
}

/* Nine nutrition values fit naturally as a 3 × 3 desktop grid. */
.sos-recipe-nutrition__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: min(900px, 100%);
	gap: 12px;
}

.sos-recipe-nutrition__item {
	display: flex;
	flex-direction: column;
	min-height: 108px;
}

.sos-recipe-nutrition__item strong {
	padding-top: 17px;
	font-size: 20px;
}

.sos-recipe-nutrition__item > span {
	min-height: 34px;
	padding-right: 10px;
	padding-left: 10px;
	font-size: 13px;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.sos-recipe-nutrition__item small {
	margin-top: auto;
}

@media (max-width: 781px), (hover: none) and (pointer: coarse) {
	.sos-recipe-unit-control {
		flex-wrap: wrap;
		gap: 8px 10px;
	}

	.sos-recipe-callouts {
		width: calc(100% - 36px);
		margin-bottom: 54px;
		padding: 14px;
	}

	.sos-recipe-nutrition__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.sos-recipe-nutrition__grid {
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   RECIPE PAGE WIDTH + CALLOUT POLISH — 0.12.3
   ========================================================= */

/* Keep an even pale-green gap around the two editorial callout cards. */
.sos-recipe-callouts {
	display: block;
	padding: 18px;
}

.sos-recipe-callouts__inner {
	align-items: stretch;
}

.sos-recipe-callout {
	height: auto;
	min-height: 0;
}



/* =========================================================
   STRUCTURAL WIDE-SECTIONS — 0.12.7
   ========================================================= */

/*
 * The plugin now wraps Hero, Nutrition and Practical Cooking Notes shortcode blocks in a genuine
 * WordPress alignfull group on the server. This avoids every viewport-width,
 * negative-margin and transform workaround used in 0.12.1–0.12.6.
 */
.sos-recipe-wide-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
}

.sos-recipe-wide-wrap > .wp-block-shortcode {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.sos-recipe-wide-wrap .sos-recipe-hero,
.sos-recipe-wide-wrap .sos-recipe-nutrition,
.sos-recipe-wide-wrap .sos-recipe-practical-notes {
	box-sizing: border-box;
	position: static !important;
	left: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	transform: none !important;
}

.sos-recipe-hero__inner {
	width: min(1120px, calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.sos-recipe-nutrition__grid,
.sos-recipe-nutrition__note {
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 781px), (hover: none) and (pointer: coarse) {
	.sos-recipe-hero__inner {
		width: 100%;
	}
}


/* =========================================================
   0.13.0 COOKING WORKSPACE
   ========================================================= */

.sos-recipe-cook-tools {
	position: relative;
	width: min(980px, 100%);
	margin: -10px auto 28px;
	padding: 18px;
	background: #ffffff;
	border: 1px solid #dfe6e1;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(32, 57, 45, 0.05);
}

.sos-recipe-cook-tools__primary,
.sos-recipe-cook-tools__actions,
.sos-recipe-serving-control,
.sos-recipe-personal-notes__footer,
.sos-recipe-timer-tray,
.sos-recipe-timer-tray__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.sos-recipe-cook-tools__primary {
	justify-content: space-between;
}

.sos-recipe-cook-tools__actions {
	justify-content: center;
	margin-top: 12px;
}

.sos-recipe-cook-tools button,
.sos-recipe-serving-control input {
	font: inherit;
}

.sos-recipe-cook-tools__cook-mode,
.sos-recipe-cook-tools__actions button,
.sos-recipe-serving-control button,
.sos-recipe-timer-start,
.sos-recipe-ingredient-tools__menu button {
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid #cfe1d7;
	border-radius: 9px;
	background: #ffffff;
	color: #245844;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color .18s ease,
		color .18s ease,
		border-color .18s ease,
		transform .18s ease;
}

.sos-recipe-cook-tools__cook-mode {
	background: #2f6f55;
	border-color: #2f6f55;
	color: #ffffff;
}

.sos-recipe-cook-tools__cook-mode:hover,
.sos-recipe-cook-tools__cook-mode:focus-visible,
.sos-recipe-cook-tools__actions button:hover,
.sos-recipe-cook-tools__actions button:focus-visible,
.sos-recipe-serving-control button:hover,
.sos-recipe-serving-control button:focus-visible,
.sos-recipe-timer-start:hover,
.sos-recipe-timer-start:focus-visible,
.sos-recipe-ingredient-tools__menu button:hover,
.sos-recipe-ingredient-tools__menu button:focus-visible {
	background: #eaf4ee;
	border-color: #bdd6c7;
	color: #245844;
	transform: translateY(-1px);
}

.sos-recipe-serving-control {
	justify-content: center;
	padding: 5px;
	background: #f7faf8;
	border: 1px solid #dfe6e1;
	border-radius: 12px;
}

.sos-recipe-serving-control__label {
	margin: 0 3px 0 6px;
	color: #596059;
	font-size: 13px;
	font-weight: 700;
}

.sos-recipe-serving-control button {
	min-width: 36px;
	min-height: 34px;
	padding: 5px 9px;
	background: #ffffff;
}

.sos-recipe-serving-control input {
	width: 58px;
	height: 34px;
	padding: 4px 6px;
	text-align: center;
	border: 1px solid #cfd8d2;
	border-radius: 8px;
	color: #222222;
	background: #ffffff;
	font-weight: 700;
	-moz-appearance: textfield;
}

.sos-recipe-serving-control input::-webkit-outer-spin-button,
.sos-recipe-serving-control input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.sos-recipe-serving-control__reset {
	font-size: 12px !important;
}

.sos-recipe-serving-note,
.sos-recipe-cook-status {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.5;
}

.sos-recipe-serving-note {
	color: #7a5d1d;
}

.sos-recipe-cook-status {
	min-height: 1.5em;
	color: #2f6f55;
}

.sos-recipe-personal-notes {
	margin-top: 14px;
	border-top: 1px solid #e5e9e6;
	padding-top: 12px;
}

.sos-recipe-personal-notes summary {
	width: fit-content;
	margin: 0 auto;
	color: #2f6f55;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.sos-recipe-personal-notes__body {
	margin-top: 12px;
}

.sos-recipe-personal-notes label {
	display: block;
	margin-bottom: 6px;
	color: #596059;
	font-size: 13px;
	font-weight: 650;
}

.sos-recipe-personal-notes textarea {
	width: 100%;
	min-height: 96px;
	padding: 11px 12px;
	resize: vertical;
	border: 1px solid #cfd8d2;
	border-radius: 10px;
	background: #ffffff;
	color: #252925;
	font: inherit;
	line-height: 1.55;
}

.sos-recipe-personal-notes textarea:focus-visible,
.sos-recipe-serving-control input:focus-visible {
	outline: 3px solid rgba(47, 111, 85, 0.22);
	outline-offset: 2px;
}

.sos-recipe-personal-notes__footer {
	justify-content: space-between;
	margin-top: 7px;
	color: #777d77;
	font-size: 12px;
}

.sos-recipe-personal-notes__footer button {
	min-height: 30px;
	padding: 4px 9px;
	background: transparent;
	border: 0;
	color: #2f6f55;
	font-weight: 700;
	cursor: pointer;
}


#recipe-ingredients,
#recipe-method {
	scroll-margin-top: 110px;
}

.sos-recipe-timer-start.is-active {
	background: #eaf4ee;
	border-color: #8eb9a2;
	color: #245844;
}

/* Contextual ingredient actions stay compact until deliberately opened. */
.sos-recipe-ingredient__row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.sos-recipe-ingredient__row > label {
	flex: 1 1 auto;
	min-width: 0;
}

.sos-recipe-ingredient-tools {
	position: relative;
	flex: 0 0 auto;
}

.sos-recipe-ingredient-tools summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	border: 1px solid #d8e2dc;
	border-radius: 999px;
	background: #ffffff;
	color: #2f6f55;
	font-weight: 800;
	letter-spacing: 1px;
	cursor: pointer;
	list-style: none;
}

.sos-recipe-ingredient-tools summary::-webkit-details-marker {
	display: none;
}

.sos-recipe-ingredient-tools[open] summary {
	background: #eaf4ee;
	border-color: #bdd6c7;
}

.sos-recipe-ingredient-tools__menu {
	position: absolute;
	right: 0;
	top: 34px;
	z-index: 20;
	display: grid;
	gap: 6px;
	min-width: 132px;
	padding: 8px;
	background: #ffffff;
	border: 1px solid #d7e0da;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(32, 57, 45, 0.14);
}

.sos-recipe-ingredient-tools__menu button {
	width: 100%;
	min-height: 34px;
	text-align: left;
	white-space: nowrap;
	font-size: 12px;
}

/* Method content can now contain a timer action beneath the authored step. */
.sos-recipe-method__content {
	min-width: 0;
}

.sos-recipe-method__timers {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 9px;
}

.sos-recipe-timer-start {
	min-height: 34px;
	padding: 6px 10px;
	font-size: 12px;
}

/* Fixed timer tray and lightweight cooking navigation. */
.sos-recipe-sticky-nav {
	position: fixed;
	left: 50%;
	bottom: 16px;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid #d7e0da;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(32, 57, 45, 0.16);
	backdrop-filter: blur(8px);
}

.sos-recipe-sticky-nav[hidden] {
	display: none !important;
}

.sos-recipe-sticky-nav a,
.sos-recipe-sticky-nav button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #245844;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.sos-recipe-sticky-nav a:hover,
.sos-recipe-sticky-nav a:focus-visible,
.sos-recipe-sticky-nav button:hover,
.sos-recipe-sticky-nav button:focus-visible {
	background: #eaf4ee;
	color: #245844;
}

.sos-recipe-timer-tray {
	position: fixed;
	right: 18px;
	bottom: 76px;
	z-index: 9999;
	justify-content: space-between;
	width: min(390px, calc(100vw - 36px));
	padding: 12px 14px;
	background: #245844;
	border: 1px solid #2f6f55;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(25, 57, 44, 0.24);
	color: #ffffff;
}

.sos-recipe-timer-tray[hidden] {
	display: none !important;
}

.sos-recipe-timer-tray.is-complete {
	background: #fff5d6;
	border-color: #e3c66c;
	color: #3e3315;
}

.sos-recipe-timer-tray__main {
	display: grid;
	gap: 2px;
}

.sos-recipe-timer-tray__label {
	font-size: 12px;
	font-weight: 650;
	opacity: .9;
}

.sos-recipe-timer-tray__time {
	font-size: 23px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sos-recipe-timer-tray__actions {
	margin-left: auto;
}

.sos-recipe-timer-tray__actions button {
	min-height: 32px;
	padding: 5px 8px;
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.sos-recipe-timer-tray.is-complete .sos-recipe-timer-tray__actions button {
	border-color: rgba(62,51,21,.25);
}

/* Optional make-ahead and doneness guidance. */
.sos-recipe-practical-notes {
	padding: 56px 24px 60px;
	text-align: center;
	background: #f7faf8;
}

.sos-recipe-practical-notes__eyebrow {
	margin: 0 0 8px;
	color: #2f6f55;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
}

.sos-recipe-practical-notes__title {
	margin: 0 0 28px;
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	font-weight: 500;
}

.sos-recipe-practical-notes__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	width: min(900px, 100%);
	margin: 0 auto;
}

/* A lone guidance card should sit in the middle of the section. */
.sos-recipe-practical-notes__grid--1 {
	grid-template-columns: minmax(0, 443px);
	justify-content: center;
}

.sos-recipe-practical-note {
	padding: 22px 24px;
	background: #ffffff;
	border: 1px solid #dfe6e1;
	border-radius: 14px;
}

.sos-recipe-practical-note--doneness {
	border-color: #d7c486;
	background: #fffaf2;
}

.sos-recipe-practical-note h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
}

.sos-recipe-practical-note p {
	margin: 0;
	color: #626862;
	line-height: 1.65;
}

.sos-recipe-practical-note__value {
	margin-bottom: 7px !important;
	color: #245844 !important;
	font-size: 18px;
	font-weight: 750;
}

/* Cook Mode turns only the recipe card into a full-screen cooking workspace. */
body.sos-cook-mode-active {
	overflow: hidden !important;
}

body.sos-cook-mode-active #recipe {
	position: fixed !important;
	inset: 0 !important;
	z-index: 100000 !important;
	width: 100vw !important;
	max-width: none !important;
	height: 100dvh !important;
	margin: 0 !important;
	padding: 28px 24px 90px !important;
	overflow-y: auto !important;
	background: #fffaf2 !important;
}

body.sos-cook-mode-active #recipe > * {
	width: min(1180px, 100%);
	margin-left: auto;
	margin-right: auto;
}

body.sos-cook-mode-active #recipe .sos-recipe-cook-tools {
	position: sticky;
	top: 0;
	z-index: 30;
	margin-top: 0;
	box-shadow: 0 8px 24px rgba(32, 57, 45, .10);
}

body.sos-cook-mode-active #recipe .wp-block-columns {
	align-items: stretch;
}

body.sos-cook-mode-active #recipe .wp-block-column > .wp-block-group {
	height: 100%;
}

body.sos-cook-mode-active #recipe .sos-recipe-ingredient__text,
body.sos-cook-mode-active #recipe .sos-recipe-method__text {
	font-size: 18px;
	line-height: 1.75;
}

body.sos-cook-mode-active #recipe .sos-recipe-ingredient label {
	min-height: 42px;
}

body.sos-cook-mode-active #recipe .sos-recipe-method__toggle {
	width: 42px;
	height: 42px;
}

body.sos-cook-mode-active .sos-recipe-sticky-nav {
	display: none !important;
}

body.sos-cook-mode-active .sos-recipe-timer-tray {
	z-index: 100010;
}

/* Four hero actions remain balanced after Cook Mode is added. */
.sos-recipe-hero .sos-recipe-quick-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
}

@media (max-width: 900px) {
	.sos-recipe-cook-tools__primary {
		justify-content: center;
	}

	.sos-recipe-practical-notes__grid {
		grid-template-columns: 1fr;
	}

	.sos-recipe-hero .sos-recipe-quick-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.sos-recipe-cook-tools {
		padding: 15px;
	}

	.sos-recipe-cook-tools__primary,
	.sos-recipe-cook-tools__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sos-recipe-serving-control {
		width: 100%;
	}

	.sos-recipe-cook-tools__cook-mode,
	.sos-recipe-cook-tools__actions button {
		width: 100%;
	}

	.sos-recipe-ingredient-tools__menu {
		right: -4px;
	}

	.sos-recipe-timer-tray {
		left: 12px;
		right: 12px;
		bottom: 66px;
		width: auto;
	}

	.sos-recipe-sticky-nav {
		bottom: 8px;
		max-width: calc(100vw - 16px);
	}

	body.sos-cook-mode-active #recipe {
		padding: 18px 14px 80px !important;
	}

	body.sos-cook-mode-active #recipe .wp-block-columns {
		display: block;
	}

	body.sos-cook-mode-active #recipe .wp-block-column + .wp-block-column {
		margin-top: 18px;
	}

	body.sos-cook-mode-active #recipe .sos-recipe-ingredient__text,
	body.sos-cook-mode-active #recipe .sos-recipe-method__text {
		font-size: 17px;
	}
}

@media (max-width: 480px) {
	.sos-recipe-sticky-nav a,
	.sos-recipe-sticky-nav button {
		padding: 6px 8px;
		font-size: 11px;
	}

	.sos-recipe-timer-tray {
		align-items: flex-start;
	}

	.sos-recipe-timer-tray__actions {
		gap: 5px;
	}

	.sos-recipe-hero .sos-recipe-quick-actions {
		grid-template-columns: 1fr 1fr;
	}
}


/* =========================================================
   0.13.1 COOKING WORKSPACE REFINEMENTS
   ========================================================= */

.sos-recipe-checklist__subhint {
	margin: 6px 0 0;
	color: #6a716a;
	font-size: 12px;
	line-height: 1.5;
}

.sos-recipe-cook-tools {
	padding: 18px 18px 16px;
}

.sos-recipe-cook-tools__intro {
	margin: 0 0 12px;
	color: #5d655d;
	font-size: 13px;
	line-height: 1.55;
	text-align: center;
}

.sos-recipe-cook-tools__primary {
	justify-content: space-between;
	gap: 10px 14px;
}

.sos-recipe-cook-tools__primary-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.sos-recipe-unit-control--cook-tools {
	padding: 5px;
	background: #f7faf8;
	border: 1px solid #dfe6e1;
	border-radius: 12px;
}

.sos-recipe-personal-notes {
	margin-top: 12px;
	padding-top: 10px;
}

.sos-recipe-personal-notes summary {
	padding: 6px 10px;
	border: 1px solid #d7e0da;
	border-radius: 999px;
	background: #f7faf8;
}

.sos-recipe-personal-notes__body {
	max-width: 720px;
	margin: 12px auto 0;
}

.sos-recipe-personal-notes textarea {
	min-height: 84px;
}

.sos-recipe-ingredient__row {
	align-items: center;
	gap: 10px;
}

.sos-recipe-ingredient-tools summary,
.sos-recipe-ingredient-tool-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 5px 10px;
	border: 1px solid #d8e2dc;
	border-radius: 999px;
	background: #ffffff;
	color: #2f6f55;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}

.sos-recipe-ingredient-tools summary {
	width: auto;
	height: auto;
	margin-top: 0;
	letter-spacing: normal;
}

.sos-recipe-ingredient-tools summary:hover,
.sos-recipe-ingredient-tools summary:focus-visible,
.sos-recipe-ingredient-tool-button:hover,
.sos-recipe-ingredient-tool-button:focus-visible {
	background: #eaf4ee;
	border-color: #bdd6c7;
	color: #245844;
}

.sos-recipe-ingredient-tools__menu {
	min-width: 184px;
}

.sos-recipe-ingredient-tools__menu button {
	white-space: normal;
}

.sos-recipe-timer-start.is-active {
	background: #245844;
	border-color: #245844;
	color: #ffffff;
}

.sos-recipe-timer-start.is-paused {
	background: #fffaf2;
	border-color: #d7c486;
	color: #6d5618;
}

.sos-recipe-timer-start.is-complete {
	background: #fff5d6;
	border-color: #e3c66c;
	color: #5b4812;
}

.sos-recipe-sticky-nav button.is-active {
	background: #245844;
	color: #ffffff;
}

.sos-recipe-timer-tray {
	display: grid;
	gap: 10px;
	align-items: stretch;
	justify-content: stretch;
	max-height: min(65vh, 520px);
	overflow-y: auto;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.sos-recipe-timer-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: min(390px, calc(100vw - 36px));
	padding: 12px 14px;
	background: #245844;
	border: 1px solid #2f6f55;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(25, 57, 44, 0.24);
	color: #ffffff;
}

.sos-recipe-timer-card.is-complete {
	background: #fff5d6;
	border-color: #e3c66c;
	color: #3e3315;
}

.sos-recipe-timer-card__main {
	display: grid;
	gap: 2px;
}

.sos-recipe-timer-card__label {
	font-size: 12px;
	font-weight: 650;
	opacity: .92;
}

.sos-recipe-timer-card__time {
	font-size: 23px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sos-recipe-timer-card__state {
	font-size: 12px;
	font-weight: 700;
}

.sos-recipe-timer-card__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
}

.sos-recipe-timer-card__actions button {
	min-height: 32px;
	padding: 5px 8px;
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.sos-recipe-timer-card.is-complete .sos-recipe-timer-card__actions button {
	border-color: rgba(62, 51, 21, .25);
}

.sos-recipe-practical-notes {
	padding: 52px 24px 56px;
}

.sos-recipe-practical-notes__title {
	margin-bottom: 22px;
}

.sos-recipe-practical-note {
	padding: 18px 20px;
}

.sos-recipe-practical-note h3 {
	font-size: 18px;
}

.sos-recipe-practical-note p {
	font-size: 15px;
}

@media (max-width: 900px) {
	.sos-recipe-cook-tools__primary {
		justify-content: center;
	}

	.sos-recipe-cook-tools__primary-left {
		justify-content: center;
	}
}

@media (max-width: 781px) {
	.sos-recipe-cook-tools__actions {
		margin-top: 10px;
	}

	.sos-recipe-timer-card {
		width: min(100%, calc(100vw - 24px));
	}
}

@media (max-width: 640px) {
	.sos-recipe-ingredient__row {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.sos-recipe-ingredient-tools,
	.sos-recipe-ingredient-tool-button {
		margin-left: 34px;
	}

	.sos-recipe-cook-tools__intro,
	.sos-recipe-serving-note,
	.sos-recipe-cook-status {
		text-align: left;
	}

	.sos-recipe-timer-tray {
		right: 12px;
		bottom: 72px;
	}

	.sos-recipe-timer-card {
		flex-direction: column;
		align-items: stretch;
	}

	.sos-recipe-timer-card__actions {
		justify-content: flex-start;
		margin-left: 0;
	}
}


/* =========================================================
   0.13.2 BUGFIX / POLISH
   ========================================================= */

.sos-recipe-method-checklist .sos-recipe-checklist__subhint {
	text-align: center;
}

.sos-recipe-timer-tray {
	width: min(320px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	overflow-x: hidden;
	justify-items: stretch;
}

.sos-recipe-timer-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	gap: 10px;
}

.sos-recipe-timer-card__label {
	font-size: 11px;
}

.sos-recipe-timer-card__time {
	font-size: 19px;
}

.sos-recipe-timer-card__state {
	font-size: 11px;
}

.sos-recipe-timer-card__actions {
	gap: 6px;
}

.sos-recipe-timer-card__actions button {
	min-height: 28px;
	padding: 4px 7px;
	font-size: 11px;
}

@media (max-width: 640px) {
	.sos-recipe-timer-tray {
		width: min(300px, calc(100vw - 20px));
		max-width: calc(100vw - 20px);
	}
}


/* =========================================================
   0.13.3 COOK MODE + TIMER FIXES
   ========================================================= */

/* In Cook Mode the full utility panel should scroll normally. Only the
 * compact primary controls remain available at the top of the screen. */
body.sos-cook-mode-active #recipe .sos-recipe-cook-tools {
	position: relative !important;
	top: auto !important;
	z-index: auto !important;
	margin-top: 0 !important;
	box-shadow: 0 8px 24px rgba(32, 57, 45, .06) !important;
	padding-top: 18px;
}

body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__primary {
	position: fixed;
	top: 12px;
	left: 50%;
	z-index: 100020;
	box-sizing: border-box;
	width: min(760px, calc(100vw - 24px));
	margin: 0;
	padding: 8px 10px;
	transform: translateX(-50%);
	background: rgba(255,255,255,.98);
	border: 1px solid #d7e0da;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(32,57,45,.14);
	backdrop-filter: blur(8px);
}

body.sos-cook-mode-active #recipe {
	padding-top: 86px !important;
}

/* Keep the timer tray compact and guarantee no horizontal scrolling. */
.sos-recipe-timer-tray {
	box-sizing: border-box;
	overflow-x: clip !important;
}

.sos-recipe-timer-card,
.sos-recipe-timer-card * {
	box-sizing: border-box;
}

@media (max-width: 640px) {
	body.sos-cook-mode-active #recipe {
		padding-top: 128px !important;
	}

	body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__primary {
		align-items: stretch;
		width: calc(100vw - 16px);
		padding: 7px;
	}

	body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__primary-left {
		justify-content: flex-start;
	}
}


/* =========================================================
   0.13.4 MOVABLE COOK CONTROLS + TIMER TICK FIX
   ========================================================= */

.sos-recipe-cook-tools__move {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 5px 9px;
	border: 1px dashed #9fb9aa;
	border-radius: 9px;
	background: #f7faf8;
	color: #245844;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.sos-recipe-cook-tools__move:hover,
.sos-recipe-cook-tools__move:focus-visible {
	background: #eaf4ee;
	border-color: #7da98f;
}

.sos-recipe-cook-tools__move.is-dragging {
	cursor: grabbing;
	background: #dfeee5;
}

body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__move {
	display: inline-flex;
}

body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__primary.is-user-positioned {
	margin: 0 !important;
}

@media (max-width: 640px) {
	body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__move {
		order: -2;
	}
}


/* =========================================================
   0.13.7 TIMER COMPLETION TEST
   ========================================================= */


@keyframes sos-recipe-timer-shake {
	0%, 100% { transform: translateX(0); }
	10% { transform: translateX(-9px) rotate(-0.8deg); }
	20% { transform: translateX(9px) rotate(0.8deg); }
	30% { transform: translateX(-8px) rotate(-0.6deg); }
	40% { transform: translateX(8px) rotate(0.6deg); }
	50% { transform: translateX(-6px) rotate(-0.4deg); }
	60% { transform: translateX(6px) rotate(0.4deg); }
	70% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
	90% { transform: translateX(-2px); }
}

.sos-recipe-timer-card.is-shaking {
	animation: sos-recipe-timer-shake 0.85s ease-in-out 2;
	transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
	.sos-recipe-timer-card.is-shaking {
		animation: none;
	}
}


/* =========================================================
   0.14.0 INGREDIENT GROUPS + RESPONSIVE POLISH
   ========================================================= */

.sos-recipe-ingredient-group {
	list-style: none;
	margin: 22px 0 8px;
	padding: 8px 0 5px;
	border-bottom: 1px solid #e5ebe7;
	color: #2f6f55;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sos-recipe-ingredient-group:first-child {
	margin-top: 8px;
}

.sos-recipe-method__timers {
	justify-content: flex-end;
}

/* Keep contextual actions available but visually quieter on pointer devices. */
@media (min-width: 782px) and (hover: hover) and (pointer: fine) {
	.sos-recipe-ingredient__row > .sos-recipe-ingredient-tools,
	.sos-recipe-ingredient__row > .sos-recipe-ingredient-tool-button {
		opacity: .42;
		transition: opacity .16s ease, background-color .18s ease, border-color .18s ease;
	}

	.sos-recipe-ingredient__row:hover > .sos-recipe-ingredient-tools,
	.sos-recipe-ingredient__row:focus-within > .sos-recipe-ingredient-tools,
	.sos-recipe-ingredient__row:hover > .sos-recipe-ingredient-tool-button,
	.sos-recipe-ingredient__row:focus-within > .sos-recipe-ingredient-tool-button {
		opacity: 1;
	}
}

/* Prevent recipe UI controls from creating page-level horizontal overflow. */
body.single-post,
body.single-post .wp-site-blocks,
body.single-post .wp-block-post-content,
body.single-post #recipe {
	overflow-x: clip;
}

.sos-recipe-cook-tools,
.sos-recipe-cook-tools *,
.sos-recipe-checklist,
.sos-recipe-method-checklist,
.sos-recipe-ingredients,
.sos-recipe-method {
	box-sizing: border-box;
	min-width: 0;
}

@media (max-width: 781px) {
	.sos-recipe-ingredient__row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		column-gap: 10px;
		row-gap: 6px;
	}

	.sos-recipe-ingredient__row > label {
		grid-column: 1 / -1;
		width: 100%;
	}

	.sos-recipe-ingredient__row > .sos-recipe-ingredient-tools,
	.sos-recipe-ingredient__row > .sos-recipe-ingredient-tool-button {
		grid-column: 2;
		justify-self: end;
		margin: 0 !important;
		max-width: 100%;
	}

	.sos-recipe-ingredient-tools__menu {
		right: 0;
		left: auto;
		max-width: min(220px, calc(100vw - 48px));
	}

	.sos-recipe-method__timers {
		width: 100%;
		justify-content: flex-end;
	}

	body.sos-cook-mode-active #recipe {
		overflow-x: hidden !important;
	}

	body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__primary {
		max-width: calc(100vw - 16px);
	}
}


/* =========================================================
   0.14.1 MOBILE COOK-MODE MOVE CONTROL
   ========================================================= */

/* Phones cannot meaningfully reposition the floating Cook Mode controls.
 * Keep the drag handle for laptop/desktop pointers, but remove it from
 * portrait and landscape mobile/touch layouts. */
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
	body.sos-cook-mode-active #recipe .sos-recipe-cook-tools__move {
		display: none !important;
	}
}


/* =========================================================
   0.16.1 RECIPE HERO IMAGE TREATMENT
   ========================================================= */

/* Keep the uploaded/source image itself rectangular. The rounded presentation
 * belongs to the site UI so the same source image can be reused elsewhere. */
.sos-recipe-hero__inner {
	gap: 22px;
	padding: 12px;
	overflow: hidden;
}

.sos-recipe-hero__media {
	align-self: center;
	overflow: hidden;
	border-radius: 30px;
}

.sos-recipe-hero__image,
.sos-recipe-hero__placeholder {
	border-radius: inherit;
}

.sos-recipe-hero__content {
	padding: 34px 36px 34px 0;
}

@media (max-width: 980px) and (min-width: 782px) {
	.sos-recipe-hero__inner {
		gap: 16px;
		padding: 10px;
	}

	.sos-recipe-hero__media {
		border-radius: 26px;
	}

	.sos-recipe-hero__content {
		padding: 28px 24px 28px 0;
	}
}

@media (max-width: 781px), (hover: none) and (pointer: coarse) {
	.sos-recipe-hero__inner {
		gap: 0;
		padding: 10px;
	}

	.sos-recipe-hero__media {
		width: 100%;
		border-radius: 24px;
	}

	.sos-recipe-hero__content {
		padding: 28px 14px 22px;
	}
}


/* =========================================================
   SHORT OPTIONAL SECTION ALIGNMENT — 0.16.10
   =========================================================
   Keep incomplete equipment rows visually centred instead of making them
   look as though a fourth card failed to render. */
@media (max-width: 781px) {
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--1 {
		grid-template-columns: minmax(0, 221px);
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 221px));
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--3 {
		grid-template-columns: repeat(2, minmax(0, 221px));
		justify-content: center;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--3 > :last-child {
		grid-column: 1 / -1;
		width: 221px;
		justify-self: center;
	}
}

@media (max-width: 500px) {
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--1,
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--2,
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--3,
	.sos-recipe-practical-notes__grid.sos-recipe-practical-notes__grid--1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--1,
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--2,
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--3 {
		width: min(320px, 100%);
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--3 > :last-child {
		grid-column: auto;
		width: auto;
		justify-self: stretch;
	}
}


/* =========================================================
   RECIPE NOTES BODY COPY — 0.16.9
   =========================================================
   The generated Recipe Notes paragraphs intentionally do not carry an inline
   font-size. Keep the two card bodies aligned with the rest of the recipe's
   non-heading copy while leaving the H2/H3 sizes untouched. */
.sos-recipe-post #adapt-this-recipe + .wp-block-group > .wp-block-columns .wp-block-column > .wp-block-group > p {
	font-size: 15px;
	line-height: 1.7;
}


/* =========================================================
   FIVE-CARD EQUIPMENT BALANCE — 0.16.12
   =========================================================
   Exactly five equipment items use a six-track grid: the first three
   span two tracks each, then the last two occupy the centred middle
   four tracks. This guarantees a real 3 + 2 layout instead of flex
   wrapping to 2 + 2 + 1 at narrower desktop/tablet widths. */
@media (min-width: 501px) {
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 12px;
		width: min(687px, 100%);
		margin-inline: auto;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 > .sos-recipe-equipment__item {
		grid-column: span 2;
		width: auto;
		min-width: 0;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 > .sos-recipe-equipment__item:nth-child(4) {
		grid-column: 2 / span 2;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 > .sos-recipe-equipment__item:nth-child(5) {
		grid-column: 4 / span 2;
	}
}

@media (max-width: 500px) {
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: min(320px, 100%);
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 > .sos-recipe-equipment__item,
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 > .sos-recipe-equipment__item:nth-child(4),
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--5 > .sos-recipe-equipment__item:nth-child(5) {
		grid-column: auto;
		width: auto;
	}
}


/* =========================================================
   SEVEN-CARD EQUIPMENT BALANCE — 0.16.17
   =========================================================
   Exactly seven equipment items should read as 4 + 3 on desktop, with the
   second row truly centred instead of defaulting to a left-aligned 4 + 3 grid. */
@media (min-width: 782px) {
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--7 {
		display: grid;
		grid-template-columns: repeat(8, minmax(0, 1fr));
		gap: 12px;
		width: min(920px, 100%);
		margin-inline: auto;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--7 > .sos-recipe-equipment__item {
		grid-column: span 2;
		width: auto;
		min-width: 0;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--7 > .sos-recipe-equipment__item:nth-child(5) {
		grid-column: 2 / span 2;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--7 > .sos-recipe-equipment__item:nth-child(6) {
		grid-column: 4 / span 2;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--7 > .sos-recipe-equipment__item:nth-child(7) {
		grid-column: 6 / span 2;
	}
}


/* =========================================================
   SIX / EIGHT / NINE-CARD EQUIPMENT BALANCE — 0.16.18
   =========================================================
   Keep common larger equipment counts in intentional, centred rows:
   6 = 3 + 3, 8 = 4 + 4, and 9 = 3 + 3 + 3 on desktop. */
@media (min-width: 782px) {
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--6,
	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--9 {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
		width: min(687px, 100%);
		margin-inline: auto;
	}

	.sos-recipe-equipment__grid.sos-recipe-equipment__grid--8 {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
		width: min(920px, 100%);
		margin-inline: auto;
	}
}
