/*
Theme Name: Magiczne Gary
Theme URI: https://magicznegary.pl/
Author: Magiczne Gary
Description: Ciepły, nowoczesny motyw dla bloga z wegetariańskimi i wegańskimi przepisami. Duża wyszukiwarka na żywo, kategorie w formie chipsów, czytelne przepisy i wydruk.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magiczne-gary
*/

:root {
	--mg-cream: #FBF6EE;
	--mg-cream-2: #F4EBDD;
	--mg-paper: #FFFDF9;
	--mg-green: #2F5D3A;
	--mg-green-dark: #22462B;
	--mg-green-soft: #E3EDE2;
	--mg-tomato: #E4572E;
	--mg-tomato-text: #B23C17;
	--mg-mustard: #F2B134;
	--mg-mustard-soft: #FCEBC4;
	--mg-ink: #2B2A28;
	--mg-ink-soft: #5E5A54;
	--mg-line: #E8DECF;
	--mg-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .07);
	--mg-shadow-hover: 0 2px 4px rgba(60, 40, 20, .08), 0 18px 40px rgba(60, 40, 20, .13);
	--mg-radius: 20px;
	--mg-radius-sm: 12px;
	--mg-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--mg-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mg-wrap: 1180px;
	--mg-narrow: 760px;
	--mg-gutter: clamp(16px, 4vw, 32px);
	--mg-focus: 0 0 0 3px var(--mg-paper), 0 0 0 6px var(--mg-mustard);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--mg-cream);
	color: var(--mg-ink);
	font-family: var(--mg-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: var(--mg-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--mg-tomato-text);
}

h1,
h2,
h3,
h4 {
	font-family: var(--mg-serif);
	font-optical-sizing: auto;
	font-weight: 600;
	line-height: 1.15;
	color: var(--mg-green-dark);
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: none;
	box-shadow: var(--mg-focus);
	border-radius: 8px;
}

button,
input {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.mg-skip:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--mg-green);
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
}

.mg-wrap {
	width: 100%;
	max-width: var(--mg-wrap);
	margin-inline: auto;
	padding-inline: var(--mg-gutter);
}

.mg-wrap--narrow {
	max-width: calc(var(--mg-narrow) + 2 * var(--mg-gutter));
}

.mg-main {
	display: block;
	min-height: 60vh;
}

.mg-main:focus {
	box-shadow: none;
}

.mg-header {
	position: relative;
	z-index: 10;
	background: rgba(251, 246, 238, .92);
	border-bottom: 1px solid var(--mg-line);
	backdrop-filter: saturate(1.2) blur(8px);
	-webkit-backdrop-filter: saturate(1.2) blur(8px);
}

@supports (position: sticky) {
	.mg-header {
		position: sticky;
		top: 0;
	}
	.admin-bar .mg-header {
		top: 32px;
	}
}

.mg-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 72px;
	padding-block: 10px;
}

.mg-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 0 1 auto;
}

.mg-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--mg-green-dark);
	min-width: 0;
}

.mg-brand__logo {
	width: 48px;
	height: 45px;
	flex: none;
	transition: transform .4s ease;
}

.mg-brand__link:hover .mg-brand__logo {
	transform: rotate(-6deg) scale(1.05);
}

.mg-brand .custom-logo-link {
	display: inline-flex;
	flex: none;
}

.mg-brand .custom-logo {
	max-height: 52px;
	width: auto;
}

.mg-brand__name {
	font-family: var(--mg-serif);
	font-weight: 700;
	font-size: 1.45rem;
	line-height: 1.1;
	color: var(--mg-green-dark);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mg-header__search {
	margin-left: auto;
	flex: 0 1 340px;
	min-width: 0;
}

.mg-nav {
	border-top: 1px solid var(--mg-line);
}

.mg-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.mg-menu::-webkit-scrollbar {
	display: none;
}

.mg-menu li {
	flex: none;
}

.mg-menu a {
	display: inline-block;
	padding: 12px 12px;
	font-size: .95rem;
	font-weight: 500;
	color: var(--mg-ink-soft);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.mg-menu a:hover,
.mg-menu .current-menu-item > a,
.mg-menu .current-cat > a {
	color: var(--mg-green);
	border-bottom-color: var(--mg-tomato);
}

.mg-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.mg-search__input {
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0 48px 0 18px;
	border: 1.5px solid var(--mg-line);
	border-radius: 999px;
	background: var(--mg-paper);
	font-size: .975rem;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}

.mg-search__input::placeholder {
	color: #8A847B;
}

.mg-search__input:focus-visible,
.mg-search__input:focus {
	border-color: var(--mg-green);
	box-shadow: 0 0 0 4px rgba(47, 93, 58, .14);
	border-radius: 999px;
}

.mg-search__btn {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--mg-green);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .2s;
}

.mg-search__btn:hover {
	background: var(--mg-tomato-text);
}

.mg-search__btn:focus-visible {
	border-radius: 50%;
}

.mg-search__btn svg,
.mg-bigsearch__icon svg {
	width: 18px;
	height: 18px;
}

.mg-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 7vw, 84px) 0 clamp(32px, 5vw, 56px);
	background:
		radial-gradient(1200px 400px at 50% -10%, rgba(242, 177, 52, .18), transparent 60%),
		radial-gradient(600px 300px at 90% 100%, rgba(228, 87, 46, .08), transparent 70%),
		radial-gradient(600px 300px at 5% 90%, rgba(47, 93, 58, .08), transparent 70%),
		var(--mg-cream);
}

.mg-hero__inner {
	position: relative;
	text-align: center;
	z-index: 1;
}

.mg-hero__pot {
	width: clamp(84px, 12vw, 120px);
	height: auto;
	margin: 0 auto 14px;
	display: block;
	animation: mg-float 6s ease-in-out infinite;
}

.mg-hero__title {
	font-size: clamp(2.5rem, 7vw, 4.6rem);
	font-weight: 700;
	letter-spacing: -.025em;
	margin-bottom: .2em;
	color: var(--mg-green-dark);
}

.mg-hero__sub {
	max-width: 620px;
	margin: 0 auto 30px;
	font-size: clamp(1rem, 2.2vw, 1.15rem);
	color: var(--mg-ink-soft);
}

.mg-hero__sparks {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.mg-spark {
	position: absolute;
	color: var(--mg-mustard);
	width: 22px;
	height: 22px;
	opacity: .85;
	animation: mg-twinkle 4s ease-in-out infinite;
}

.mg-spark--1 { top: 14%; left: 9%; width: 26px; height: 26px; }
.mg-spark--2 { top: 26%; right: 11%; width: 18px; height: 18px; animation-delay: 1s; }
.mg-spark--3 { bottom: 22%; left: 16%; width: 14px; height: 14px; animation-delay: 2s; color: var(--mg-tomato); opacity: .55; }
.mg-spark--4 { top: 10%; right: 26%; width: 12px; height: 12px; animation-delay: 1.6s; }
.mg-spark--5 { bottom: 16%; right: 8%; width: 24px; height: 24px; animation-delay: .6s; color: var(--mg-green); opacity: .35; }

@keyframes mg-twinkle {
	0%, 100% { transform: scale(1) rotate(0deg); opacity: .85; }
	50% { transform: scale(.65) rotate(25deg); opacity: .4; }
}

@keyframes mg-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.mg-bigsearch {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 760px;
	margin: 0 auto;
	background: var(--mg-paper);
	border: 2px solid var(--mg-line);
	border-radius: 999px;
	box-shadow: 0 10px 40px rgba(47, 93, 58, .12), 0 2px 6px rgba(60, 40, 20, .05);
	transition: border-color .2s, box-shadow .2s;
}

.mg-bigsearch:focus-within {
	border-color: var(--mg-green);
	box-shadow: 0 0 0 5px rgba(47, 93, 58, .13), 0 14px 44px rgba(47, 93, 58, .16);
}

.mg-bigsearch__icon {
	position: absolute;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--mg-green);
	display: flex;
	pointer-events: none;
}

.mg-bigsearch__icon svg {
	width: 22px;
	height: 22px;
}

.mg-bigsearch__input {
	flex: 1;
	min-width: 0;
	height: 68px;
	padding: 0 12px 0 60px;
	border: 0;
	background: transparent;
	font-size: 1.15rem;
	border-radius: 999px;
	-webkit-appearance: none;
	appearance: none;
}

.mg-bigsearch__input::placeholder {
	color: #8A847B;
}

.mg-bigsearch__input:focus,
.mg-bigsearch__input:focus-visible {
	box-shadow: none;
}

.mg-bigsearch__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.mg-bigsearch__btn {
	flex: none;
	height: 54px;
	margin-right: 7px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--mg-green);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background .2s, transform .2s;
}

.mg-bigsearch__btn:hover {
	background: var(--mg-green-dark);
}

.mg-bigsearch__btn:active {
	transform: scale(.97);
}

.mg-bigsearch__btn:focus-visible {
	border-radius: 999px;
}

.mg-chips {
	margin: 26px auto 0;
	max-width: 900px;
}

.mg-chips__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.mg-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1.5px solid var(--mg-line);
	border-radius: 999px;
	background: var(--mg-paper);
	color: var(--mg-ink);
	font-size: .92rem;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.2;
	transition: border-color .2s, background .2s, color .2s, transform .2s;
}

.mg-chip:hover {
	border-color: var(--mg-green);
	color: var(--mg-green);
	transform: translateY(-1px);
}

.mg-chip:focus-visible {
	border-radius: 999px;
}

.mg-chip__count {
	font-size: .78rem;
	font-weight: 600;
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--mg-cream-2);
	color: var(--mg-ink-soft);
	text-align: center;
}

.mg-chip.is-active {
	background: var(--mg-green);
	border-color: var(--mg-green);
	color: #fff;
}

.mg-chip.is-active .mg-chip__count {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.mg-section {
	padding: clamp(32px, 5vw, 56px) 0;
}

.mg-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 24px;
}

.mg-section__title {
	position: relative;
	font-size: clamp(1.6rem, 3.4vw, 2.1rem);
	margin: 0;
	padding-left: 30px;
}

.mg-section__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	background: var(--mg-mustard);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.mg-live__status {
	margin: 0;
	color: var(--mg-ink-soft);
	font-size: .95rem;
}

.mg-live[aria-busy="true"] .mg-grid {
	opacity: .5;
	transition: opacity .2s;
}

.mg-live__more {
	text-align: center;
	margin: 32px 0 0;
}

.mg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: clamp(16px, 2.4vw, 28px);
}

.mg-card {
	min-width: 0;
}

.mg-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--mg-paper);
	border-radius: var(--mg-radius);
	overflow: hidden;
	box-shadow: var(--mg-shadow);
	color: inherit;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}

.mg-card__link:hover {
	transform: translateY(-4px);
	box-shadow: var(--mg-shadow-hover);
	color: inherit;
}

.mg-card__link:focus-visible {
	border-radius: var(--mg-radius);
}

.mg-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mg-cream-2);
}

.mg-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.mg-card__link:hover .mg-card__img {
	transform: scale(1.04);
}

.mg-card__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 30% 25%, rgba(242, 177, 52, .25), transparent 45%),
		radial-gradient(circle at 75% 80%, rgba(47, 93, 58, .14), transparent 50%),
		var(--mg-cream-2);
}

.mg-card__phsvg {
	width: 42%;
	height: auto;
	opacity: .9;
}

.mg-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 20px;
	flex: 1;
}

.mg-card__cat {
	align-self: flex-start;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mg-tomato-text);
}

.mg-card__title {
	font-size: 1.22rem;
	line-height: 1.25;
	margin: 0;
	color: var(--mg-ink);
	overflow-wrap: anywhere;
}

.mg-card__link:hover .mg-card__title {
	color: var(--mg-green);
}

.mg-card__date {
	margin-top: auto;
	padding-top: 4px;
	font-size: .85rem;
	color: var(--mg-ink-soft);
}

.mg-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.mg-badge--draft {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--mg-mustard);
	color: #3A2A05;
}

.mg-badge--inline {
	position: static;
}

.mg-pagination {
	margin-top: 40px;
}

.mg-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.mg-pagination a,
.mg-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--mg-paper);
	border: 1.5px solid var(--mg-line);
	color: var(--mg-ink);
	font-weight: 500;
	text-decoration: none;
}

.mg-pagination a:hover {
	border-color: var(--mg-green);
	color: var(--mg-green);
}

.mg-pagination .current {
	background: var(--mg-green);
	border-color: var(--mg-green);
	color: #fff;
}

.mg-pagination .dots {
	border: 0;
	background: transparent;
	min-width: 20px;
	padding: 0 4px;
}

.mg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1.5px solid var(--mg-green);
	border-radius: 999px;
	background: var(--mg-green);
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.mg-btn:hover {
	background: var(--mg-green-dark);
	border-color: var(--mg-green-dark);
	color: #fff;
}

.mg-btn:focus-visible {
	border-radius: 999px;
}

.mg-btn--ghost {
	background: transparent;
	color: var(--mg-green);
}

.mg-btn--ghost:hover {
	background: var(--mg-green-soft);
	color: var(--mg-green-dark);
}

.mg-btn--print {
	background: var(--mg-paper);
	color: var(--mg-green);
	border-color: var(--mg-line);
	padding: 9px 16px;
}

.mg-btn--print:hover {
	border-color: var(--mg-green);
	background: var(--mg-green-soft);
	color: var(--mg-green-dark);
}

.mg-btn--edit {
	padding: 9px 16px;
	border-color: var(--mg-line);
}

.mg-pagehead {
	padding: clamp(36px, 6vw, 64px) 0 8px;
	text-align: center;
	background: radial-gradient(900px 300px at 50% -20%, rgba(242, 177, 52, .16), transparent 60%);
}

.mg-pagehead__kicker {
	margin: 0 0 8px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mg-tomato-text);
}

.mg-pagehead__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	overflow-wrap: anywhere;
}

.mg-pagehead__desc {
	max-width: 640px;
	margin: 0 auto 8px;
	color: var(--mg-ink-soft);
}

.mg-pagehead__desc p {
	margin: 0;
}

.mg-pagehead__search {
	max-width: 520px;
	margin: 22px auto 0;
}

.mg-pagehead__search .mg-search__input {
	height: 52px;
	font-size: 1.02rem;
}

.mg-pagehead__search .mg-search__btn {
	width: 44px;
	height: 44px;
}

.mg-empty {
	text-align: center;
	color: var(--mg-ink-soft);
	padding: 24px 0;
}

.mg-empty__pot,
.mg-404__pot {
	width: 120px;
	height: auto;
	margin: 0 auto 12px;
	display: block;
}

.mg-404__inner {
	text-align: center;
}

.mg-404__pot {
	width: 150px;
	transform: rotate(-12deg);
}

.mg-404 .mg-chips {
	margin-bottom: 28px;
}

.mg-recipe__head {
	padding-top: clamp(32px, 5vw, 56px);
	text-align: center;
}

.mg-recipe__title {
	font-size: clamp(2.1rem, 5.4vw, 3.6rem);
	font-weight: 700;
	letter-spacing: -.02em;
	margin: 14px 0 16px;
	overflow-wrap: anywhere;
}

.mg-recipe__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 16px;
	color: var(--mg-ink-soft);
	font-size: .95rem;
}

.mg-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.mg-tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--mg-green-soft);
	color: var(--mg-green-dark);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}

.mg-tag:hover {
	background: var(--mg-green);
	color: #fff;
}

.mg-tag:focus-visible {
	border-radius: 999px;
}

.mg-tags--soft {
	justify-content: flex-start;
}

.mg-tags--soft .mg-tag {
	background: var(--mg-cream-2);
	color: var(--mg-ink-soft);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	font-size: .88rem;
}

.mg-recipe__hero {
	margin: clamp(24px, 4vw, 40px) auto 0;
	max-width: calc(1040px + 2 * var(--mg-gutter));
}

.mg-recipe__img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
	border-radius: calc(var(--mg-radius) + 4px);
	box-shadow: var(--mg-shadow);
}

.mg-recipe__tags {
	padding-bottom: 8px;
}

.mg-content {
	padding-top: clamp(28px, 4vw, 44px);
	padding-bottom: clamp(24px, 4vw, 40px);
	font-size: 1.125rem;
	line-height: 1.8;
	overflow-wrap: break-word;
}

.mg-content > * {
	margin-top: 0;
	margin-bottom: 1.15em;
}

.mg-content h2 {
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	margin-top: 1.6em;
	padding-bottom: .35em;
	border-bottom: 2px dashed var(--mg-line);
}

.mg-content h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.45rem);
	margin-top: 1.4em;
}

.mg-content h4 {
	font-size: 1.15rem;
	margin-top: 1.2em;
}

.mg-content strong,
.mg-content b {
	color: var(--mg-ink);
	font-weight: 600;
}

.mg-content ul,
.mg-content ol {
	padding: 22px 26px 22px 30px;
	background: var(--mg-paper);
	border-radius: var(--mg-radius);
	box-shadow: var(--mg-shadow);
}

.mg-content ul ul,
.mg-content ol ol,
.mg-content ul ol,
.mg-content ol ul {
	box-shadow: none;
	background: transparent;
	padding: 6px 0 0 22px;
	margin: 0;
}

.mg-content ul {
	list-style: none;
	padding-left: 26px;
}

.mg-content ul > li {
	position: relative;
	padding-left: 24px;
}

.mg-content ul > li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .72em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mg-tomato);
	box-shadow: 0 0 0 3px rgba(228, 87, 46, .16);
}

.mg-content ul ul > li::before {
	background: var(--mg-mustard);
	box-shadow: none;
	width: 7px;
	height: 7px;
}

.mg-content ol {
	list-style: none;
	counter-reset: mg-step;
	padding-left: 22px;
}

.mg-content ol > li {
	position: relative;
	counter-increment: mg-step;
	padding-left: 46px;
	min-height: 32px;
}

.mg-content ol > li::before {
	content: counter(mg-step);
	position: absolute;
	left: 0;
	top: .2em;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--mg-mustard-soft);
	color: var(--mg-green-dark);
	font-family: var(--mg-serif);
	font-weight: 700;
	font-size: .95rem;
	line-height: 30px;
	text-align: center;
}

.mg-content li + li {
	margin-top: .45em;
}

.mg-content li > p {
	margin: 0;
}

.mg-content blockquote {
	margin-inline: 0;
	padding: 18px 22px;
	border-left: 4px solid var(--mg-mustard);
	background: var(--mg-mustard-soft);
	border-radius: 0 var(--mg-radius-sm) var(--mg-radius-sm) 0;
	font-style: italic;
}

.mg-content img {
	border-radius: var(--mg-radius-sm);
}

.mg-content figure {
	margin-inline: 0;
}

.mg-content figcaption {
	font-size: .88rem;
	color: var(--mg-ink-soft);
	text-align: center;
	margin-top: 8px;
}

.mg-content hr {
	border: 0;
	height: 24px;
	margin: 2em 0;
	background: radial-gradient(circle, var(--mg-mustard) 3px, transparent 4px) center / 24px 24px repeat-x;
	opacity: .7;
}

.mg-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	display: block;
	overflow-x: auto;
}

.mg-content th,
.mg-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--mg-line);
	text-align: left;
}

.mg-content iframe {
	width: 100%;
}

.alignleft {
	float: left;
	margin: .3em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: .3em 0 1em 1.4em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: .88rem;
	color: var(--mg-ink-soft);
}

.mg-related {
	background: linear-gradient(180deg, transparent, var(--mg-cream-2) 140px);
	margin-top: 16px;
}

.mg-fridge {
	max-width: 760px;
	margin: 18px auto 0;
	text-align: left;
}

.mg-fridge__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.mg-fridge__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border: 1.5px dashed var(--mg-green);
	border-radius: 999px;
	background: var(--mg-green-soft);
	color: var(--mg-green-dark);
	font-weight: 600;
	font-size: .98rem;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}

.mg-fridge__toggle:hover {
	background: #D4E4D3;
}

.mg-fridge__toggle:focus-visible {
	border-radius: 999px;
}

.mg-fridge.is-open .mg-fridge__toggle {
	border-style: solid;
	background: var(--mg-green);
	color: #fff;
}

.mg-fridge__caret {
	transition: transform .2s;
}

.mg-fridge.is-open .mg-fridge__caret {
	transform: rotate(180deg);
}

.mg-fridge__badge {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--mg-tomato-text);
	color: #fff;
	font-size: .8rem;
	line-height: 1.5;
	text-align: center;
}

.mg-picked {
	list-style: none;
	margin: 0;
	padding: 0;
	display: contents;
}

.mg-pick {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 8px 0 16px;
	border: 1.5px solid var(--mg-tomato-text);
	border-radius: 999px;
	background: var(--mg-paper);
	color: var(--mg-tomato-text);
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
}

.mg-pick:hover {
	background: #FBE6DE;
}

.mg-pick:focus-visible {
	border-radius: 999px;
}

.mg-pick__x {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(178, 60, 23, .12);
}

.mg-fridge__clear {
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--mg-ink-soft);
	font-size: .92rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.mg-fridge__clear:hover {
	color: var(--mg-tomato-text);
}

.mg-fridge__panel {
	margin-top: 12px;
	padding: 18px;
	background: var(--mg-paper);
	border: 1.5px solid var(--mg-line);
	border-radius: var(--mg-radius);
	box-shadow: var(--mg-shadow);
}

.mg-fridge__hint {
	margin: 0 0 12px;
	font-size: .92rem;
	color: var(--mg-ink-soft);
}

.mg-fridge__filter {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1.5px solid var(--mg-line);
	border-radius: var(--mg-radius-sm);
	background: var(--mg-cream);
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}

.mg-fridge__filter:focus,
.mg-fridge__filter:focus-visible {
	border-color: var(--mg-green);
	box-shadow: 0 0 0 4px rgba(47, 93, 58, .14);
	border-radius: var(--mg-radius-sm);
}

.mg-fridge__list {
	list-style: none;
	margin: 12px 0 0;
	padding: 2px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 300px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mg-ing {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px 0 14px;
	border: 1.5px solid var(--mg-line);
	border-radius: 999px;
	background: var(--mg-paper);
	font-size: .95rem;
	cursor: pointer;
	user-select: none;
	transition: border-color .2s, background .2s;
}

.mg-ing:hover {
	border-color: var(--mg-green);
}

.mg-ing__box {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.mg-ing:has(.mg-ing__box:focus-visible) {
	box-shadow: var(--mg-focus);
}

.mg-ing__count {
	font-size: .76rem;
	font-weight: 600;
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--mg-cream-2);
	color: var(--mg-ink-soft);
	text-align: center;
}

.mg-ing.is-checked {
	background: var(--mg-green);
	border-color: var(--mg-green);
	color: #fff;
}

.mg-ing.is-checked .mg-ing__count {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.mg-fridge__empty {
	margin: 12px 0 0;
	color: var(--mg-ink-soft);
	font-size: .95rem;
}

.mg-fridge__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
}

.mg-live {
	scroll-margin-top: 140px;
}

.mg-sentinel {
	height: 1px;
}

.mg-feed__note {
	margin: 28px 0 0;
	text-align: center;
	font-size: .92rem;
	color: var(--mg-ink-soft);
}

.mg-feed__note.is-end::before,
.mg-feed__note.is-end::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 10px;
	vertical-align: 1px;
	background: var(--mg-mustard);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.mg-feed__note.is-loading::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid var(--mg-line);
	border-top-color: var(--mg-green);
	border-radius: 50%;
	animation: mg-spin .8s linear infinite;
}

@keyframes mg-spin {
	to { transform: rotate(360deg); }
}

.mg-recipe__ings {
	padding: 4px 0 18px;
}

.mg-recipe__ingslabel {
	margin: 0 0 10px;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mg-ink-soft);
}

.mg-tags--ing {
	justify-content: flex-start;
}

.mg-tag--ing {
	background: var(--mg-paper);
	border: 1.5px solid var(--mg-line);
	color: var(--mg-green-dark);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	font-size: .9rem;
	padding: 6px 14px;
}

.mg-tag--ing:hover {
	border-color: var(--mg-green);
}

.mg-footer {
	background: var(--mg-green-dark);
	color: rgba(255, 255, 255, .82);
	padding: 36px 0;
	margin-top: 24px;
	font-size: .92rem;
}

.mg-related + .mg-footer {
	margin-top: 0;
}

.mg-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
}

.mg-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mg-serif);
	font-size: 1.2rem;
	font-weight: 600;
	color: #fff;
}

.mg-footer__spark {
	width: 18px;
	height: 18px;
	color: var(--mg-mustard);
}

.mg-footer__note,
.mg-footer__copy {
	margin: 0;
}

.mg-footer a {
	color: #fff;
}

@media (max-width: 782px) {
	.admin-bar .mg-header {
		top: 0;
		position: relative;
	}
}

@media (max-width: 720px) {
	.mg-header__inner {
		flex-wrap: wrap;
		gap: 10px;
		min-height: 0;
		padding-block: 12px;
	}
	.mg-header__search {
		flex: 1 1 100%;
		margin-left: 0;
	}
	.mg-brand__logo {
		width: 40px;
		height: 37px;
	}
	.mg-brand__name {
		font-size: 1.25rem;
	}
	.mg-bigsearch__input {
		height: 58px;
		padding-left: 48px;
		font-size: 1rem;
	}
	.mg-bigsearch__icon {
		left: 18px;
	}
	.mg-bigsearch__btn {
		height: 46px;
		padding: 0 18px;
		margin-right: 6px;
	}
	.mg-chips {
		margin-top: 20px;
	}
	.mg-chips__list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding: 4px 4px 10px;
		margin-inline: calc(-1 * var(--mg-gutter));
		padding-inline: var(--mg-gutter);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.mg-chips__list::-webkit-scrollbar {
		display: none;
	}
	.mg-chips__list li {
		flex: none;
	}
	.mg-content {
		font-size: 1.06rem;
	}
	.mg-fridge__bar {
		justify-content: flex-start;
	}
	.mg-fridge__toggle {
		flex: 1 1 100%;
		justify-content: center;
	}
	.mg-fridge__panel {
		padding: 14px;
	}
	.mg-fridge__list {
		max-height: 46vh;
	}
	.mg-content ul,
	.mg-content ol {
		padding: 18px 16px 18px 14px;
	}
	.mg-content ul > li {
		padding-left: 22px;
	}
	.mg-content ol > li {
		padding-left: 40px;
	}
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
	.mg-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 420px) {
	.mg-bigsearch__btn {
		width: 46px;
		padding: 0;
		font-size: 0;
		position: relative;
	}
	.mg-bigsearch__btn::before {
		content: "";
		position: absolute;
		inset: 0;
		margin: auto;
		width: 12px;
		height: 12px;
		border-top: 3px solid #fff;
		border-right: 3px solid #fff;
		transform: translateX(-2px) rotate(45deg);
	}
	.mg-bigsearch__input {
		padding-left: 44px;
	}
	.mg-bigsearch__icon {
		left: 16px;
	}
	.mg-card__title {
		font-size: 1.15rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	@page {
		margin: 16mm;
	}
	body {
		background: #fff;
		color: #000;
		font-size: 11.5pt;
	}
	.mg-header,
	.mg-footer,
	.mg-related,
	.mg-recipe__tags,
	.mg-recipe__ings,
	.mg-btn,
	.mg-skip,
	#wpadminbar,
	.mg-hero__sparks {
		display: none !important;
	}
	.mg-wrap,
	.mg-wrap--narrow {
		max-width: none;
		padding: 0;
	}
	.mg-recipe__head {
		padding-top: 0;
		text-align: left;
	}
	.mg-recipe__title {
		font-size: 24pt;
		margin: 6pt 0;
		color: #000;
	}
	.mg-recipe__meta,
	.mg-tags {
		justify-content: flex-start;
	}
	.mg-tag {
		background: none;
		padding: 0;
		color: #444;
	}
	.mg-recipe__hero {
		margin: 10pt 0 0;
	}
	.mg-recipe__img {
		max-height: 7cm;
		width: auto;
		max-width: 100%;
		box-shadow: none;
		border-radius: 6pt;
	}
	.mg-content {
		padding: 12pt 0 0;
		font-size: 11.5pt;
		line-height: 1.55;
	}
	.mg-content ul,
	.mg-content ol {
		box-shadow: none;
		background: none;
		padding: 0 0 0 4pt;
	}
	.mg-content ul > li::before {
		box-shadow: none;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	.mg-content ol > li::before {
		background: none;
		border: 1px solid #999;
	}
	.mg-content h2,
	.mg-content h3 {
		color: #000;
		break-after: avoid;
		border: 0;
	}
	.mg-content li,
	.mg-content img {
		break-inside: avoid;
	}
	a {
		color: #000;
		text-decoration: none;
	}
}
