/*
Theme Name: BudgetBites
Theme URI: https://budgetbites.example
Author: BudgetBites
Description: A warm, fast, magazine-style recipe theme for budget-friendly cooking. Recipe card, printable recipes, Recipe schema (JSON-LD), homepage sections that fill automatically, and a built-in contact form.
Version: 1.0.0
Requires at least: 6.3
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: budgetbites
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns
*/

/* ========== Tokens ========== */
:root {
	--orange: #E87524;
	--orange-text: #B8520F; /* darker orange for text links (accessible contrast on cream) */
	--brown: #382419;
	--cream: #FFF9F1;
	--white: #FFFFFF;
	--text: #292522;
	--muted: #6B5F57;
	--line: #EADFD2;
	--tint: #FBEFE0;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(56, 36, 25, .06), 0 6px 18px rgba(56, 36, 25, .07);
	--font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brown); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: .75rem 1rem;
	background: var(--brown); color: var(--white); z-index: 1000; top: .5rem; left: .5rem; text-decoration: none;
}
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.container-narrow { width: min(780px, calc(100% - 2rem)); }
.print-only { display: none; }

/* ========== Buttons ========== */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .75rem 1.4rem; border: 2px solid transparent; border-radius: 999px;
	font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: var(--brown); }
.btn-primary:hover { background: var(--brown); color: var(--white); }
.btn-dark { background: var(--brown); color: var(--white); }
.btn-dark:hover { background: var(--orange); color: var(--brown); }
.btn-outline { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.1rem; }

/* ========== Header ========== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.site-branding { flex: 0 0 auto; }
.site-title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--brown); text-decoration: none; letter-spacing: -.01em; }
.site-title { display: inline-flex; align-items: center; gap: .55rem; }
.site-title .logo-text span { color: var(--orange); }
.logo-mark { flex: 0 0 auto; }
.custom-logo { max-height: 48px; width: auto; }
.custom-logo-link { display: inline-block; line-height: 0; }
.primary-nav { margin-left: auto; }
.primary-nav .menu, .footer-nav .menu, .social-list, .chips, .share-list, .featured-facts, .cat-grid { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; gap: .25rem; }
.primary-nav a { display: block; padding: .6rem .95rem; color: var(--text); font-weight: 600; text-decoration: none; border-radius: 999px; }
.primary-nav a:hover { background: var(--tint); color: var(--brown); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_parent > a { background: var(--brown); color: var(--white); }
.header-actions { display: flex; gap: .25rem; }
.icon-btn { background: none; border: 0; padding: .6rem; color: var(--brown); cursor: pointer; border-radius: 50%; line-height: 0; }
.icon-btn:hover { background: var(--tint); }
.nav-toggle { display: none; }
.header-search { border-top: 1px solid var(--line); background: var(--cream); padding: 1rem 0; }

/* ========== Search form ========== */
.search-form { display: flex; gap: .5rem; max-width: 640px; }
.search-field, .newsletter-form input[type="email"], .bb-contact-form input[type="text"], .bb-contact-form input[type="email"], .bb-contact-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .8rem 1.1rem; font: inherit; color: var(--text);
	background: var(--white); border: 2px solid var(--line); border-radius: 999px;
}
.bb-contact-form textarea, .comment-form textarea { border-radius: var(--radius); }
.search-field:focus, .newsletter-form input:focus, .bb-contact-form input:focus, .bb-contact-form textarea:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--orange); outline: none; }

/* ========== Hero ========== */
.hero { position: relative; color: var(--white); background: linear-gradient(135deg, var(--brown) 0%, #5a3622 100%); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(56, 36, 25, .55), rgba(56, 36, 25, .82)); }
.hero:not(.has-image) .hero-overlay { background: radial-gradient(circle at 85% 15%, rgba(232, 117, 36, .35), transparent 55%); }
.hero-inner { position: relative; padding: clamp(4rem, 12vw, 8rem) 0 clamp(5.5rem, 13vw, 9rem); }
.hero-inner > * { max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 7vw, 4.4rem); margin-bottom: .4em; }
.hero-text { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 620px; color: #F6EADD; margin-bottom: 1.6rem; }

/* ========== Search strip ========== */
.search-strip { margin-top: -3.2rem; position: relative; z-index: 2; }
.search-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem clamp(1.2rem, 4vw, 2.2rem); border-top: 4px solid var(--orange); }
.search-card h2 { font-size: 1.35rem; margin-bottom: .75rem; }

/* ========== Sections ========== */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.more-link { font-weight: 700; white-space: nowrap; }
.admin-hint { background: var(--white); border: 2px dashed var(--orange); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--brown); }
.empty-state { text-align: center; padding: 2rem 0; }
.empty-state .search-form { margin: 1rem auto 0; }

.page-hero { background: var(--brown); color: var(--white); padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: #F0E2D3; max-width: 640px; }
.page-hero .search-form { margin-top: 1.25rem; }
.page-hero a:not(.btn) { color: #FFD7B4; }
.archive-desc { color: #F0E2D3; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chips a { display: inline-block; padding: .35rem .9rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; color: var(--white); text-decoration: none; font-size: .95rem; }
.chips a:hover { background: var(--orange); border-color: var(--orange); color: var(--brown); }

/* ========== Recipe cards ========== */
.card-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.recipe-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 3 / 2; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; font-family: var(--font-head); font-size: 1.4rem; color: var(--orange-text); background: var(--tint); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.cat-link { align-self: flex-start; font-size: .9rem; font-weight: 700; text-decoration: none; margin-bottom: .35rem; }
.cat-link:hover { text-decoration: underline; }
.card-title { font-size: 1.25rem; margin-bottom: .45rem; }
.card-title a { color: var(--brown); text-decoration: none; }
.card-title a:hover { color: var(--orange-text); text-decoration: underline; }
.card-excerpt { color: var(--muted); font-size: .98rem; margin-bottom: .9rem; }
.card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9rem; color: var(--muted); }

/* Pagination */
.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.page-numbers { display: inline-block; min-width: 2.6rem; padding: .5rem .9rem; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--brown); text-decoration: none; font-weight: 600; }
a.page-numbers:hover { background: var(--tint); }
.page-numbers.current { background: var(--brown); color: var(--white); border-color: var(--brown); }

/* ========== Categories ========== */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 1rem 1.1rem; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; background: var(--brown); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(56, 36, 25, .05) 20%, rgba(56, 36, 25, .85)); }
.cat-name, .cat-count { position: relative; z-index: 1; }
.cat-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.cat-count { font-size: .9rem; color: #F6EADD; }
.cat-tile:hover .cat-name { text-decoration: underline; }

/* ========== Featured ========== */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-media { display: block; min-height: 280px; background: var(--tint); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: clamp(1.5rem, 4vw, 2.75rem); align-self: center; }
.featured-label { display: inline-block; background: var(--orange); color: var(--brown); font-weight: 700; font-size: .9rem; padding: .2rem .8rem; border-radius: 999px; margin-bottom: .9rem; }
.featured-body h2 a { color: var(--brown); text-decoration: none; }
.featured-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1.4rem; color: var(--muted); font-weight: 600; }

/* ========== About (home) ========== */
.about-short { display: grid; gap: 2rem; align-items: center; max-width: 820px; }
.about-short.has-image { grid-template-columns: 1fr 1fr; max-width: none; }
.about-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }

/* ========== Newsletter ========== */
.newsletter { background: var(--brown); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.newsletter h2 { color: var(--white); }
.newsletter p { color: #F0E2D3; margin: 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.newsletter-form form { display: flex; gap: .5rem; }
.newsletter .admin-hint { color: var(--brown); }

/* ========== Footer ========== */
.site-footer { background: #2A1B12; color: #E9DCCD; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-logo .site-title { color: var(--white); }
.footer-brand p { max-width: 420px; margin-top: .75rem; }
.footer-nav .menu { display: flex; flex-direction: column; gap: .4rem; }
.site-footer a { color: #FFD7B4; }
.site-footer a:hover { color: var(--white); }
.social-list { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 1.2rem 0; font-size: .95rem; }
.footer-bottom p { margin: 0; }

/* ========== Single recipe ========== */
.article-top { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.article-top .cat-link { margin-bottom: .75rem; }
.entry-title { margin-bottom: .4em; }
.byline { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--muted); font-size: .98rem; margin-bottom: 1.2rem; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.fact dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.fact dd { margin: 0; font-weight: 700; color: var(--brown); font-size: 1.05rem; }
.top-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.article-image { margin-bottom: 2rem; }
.article-image img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.article-image figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; text-align: center; }

.entry-content { overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption, .wp-caption-text { color: var(--muted); font-size: .9rem; text-align: center; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.entry-content li { margin-bottom: .35rem; }
.entry-content blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 4px solid var(--orange); font-family: var(--font-head); font-size: 1.2rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { display: block; margin-inline: auto; }
.page-image { margin: 0 0 2rem; }
.page-image img { border-radius: var(--radius); width: 100%; }
.page-article .entry-content { background: var(--white); padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Recipe card */
.recipe-box { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--orange); border-radius: var(--radius); padding: clamp(1.1rem, 4vw, 2rem); margin: 2.5rem 0; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.recipe-box-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.recipe-box-head h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.recipe-summary { color: var(--muted); }
.recipe-box .facts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.recipe-box .fact { background: var(--cream); }
.recipe-columns { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.recipe-box h3 { font-size: 1.35rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); margin-bottom: .9rem; }
.group-title { font-family: var(--font-body); font-size: 1rem; margin: 1.1rem 0 .4rem; color: var(--orange-text); }
.ingredients-list, .steps-list { list-style: none; margin: 0 0 .5rem; padding: 0; }
.ingredients-list li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.ingredients-list label { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; }
.ingredients-list input { margin-top: .45rem; accent-color: var(--orange); width: 1.05rem; height: 1.05rem; flex: none; }
.ingredients-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.steps-wrap { counter-reset: step; }
.steps-list li { position: relative; padding: 0 0 1.1rem 3rem; counter-increment: step; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--orange); color: var(--brown); font-weight: 700; display: grid; place-items: center; }
.recipe-notes, .recipe-nutrition { margin-top: 1.5rem; }
.recipe-nutrition table { width: 100%; max-width: 420px; border-collapse: collapse; }
.recipe-nutrition th, .recipe-nutrition td { padding: .4rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.recipe-nutrition td { text-align: right; font-weight: 700; color: var(--brown); }
.small, .recipe-credit { font-size: .9rem; color: var(--muted); }
.recipe-credit { margin: 1.5rem 0 0; }

/* Share */
.share { margin: 2rem 0 1rem; }
.share-label { display: block; font-weight: 700; color: var(--brown); margin-bottom: .6rem; }
.share-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn { display: inline-block; padding: .5rem 1rem; border: 2px solid var(--brown); border-radius: 999px; background: transparent; color: var(--brown); font: 700 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.share-btn:hover { background: var(--brown); color: var(--white); }
.post-tags a { display: inline-block; margin: 0 .35rem .35rem 0; padding: .15rem .7rem; background: var(--tint); border-radius: 999px; font-size: .9rem; text-decoration: none; }

/* Post navigation */
.post-extras { padding: 2.5rem 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; height: 100%; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--brown); }
.post-navigation a:hover { border-color: var(--orange); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { display: block; font-size: .85rem; color: var(--muted); }
.post-navigation .nav-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }

/* Comments */
.comments { margin-top: 2.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.2rem; }
.comment-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.comment-meta .avatar { float: left; margin-right: .8rem; border-radius: 50%; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit { background: var(--orange); color: var(--brown); border: 0; border-radius: 999px; padding: .75rem 1.5rem; font: 700 1rem var(--font-body); cursor: pointer; }
.comment-form .submit:hover { background: var(--brown); color: var(--white); }

/* ========== Contact form ========== */
.bb-contact { margin-top: 1.5rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .3rem; }
.bb-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.notice-success { background: #E7F4E4; color: #1D4D19; border: 1px solid #A9D6A3; }
.notice-error { background: #FBE7E4; color: #7A1F14; border: 1px solid #E9AFA7; }

/* ========== Gutenberg basics ========== */
.wp-block-image img { height: auto; }
.wp-block-button__link { border-radius: 999px; }
.has-orange-color { color: var(--orange-text); }
.has-orange-background-color { background-color: var(--orange); }
.has-brown-color { color: var(--brown); }
.has-brown-background-color { background-color: var(--brown); }
.has-cream-background-color { background-color: var(--cream); }
.has-charcoal-color { color: var(--text); }
.has-white-color { color: var(--white); }
.has-white-background-color { background-color: var(--white); }
.wp-block-embed iframe { max-width: 100%; }

/* ========== Tablet and mobile ========== */
@media (min-width: 860px) {
	.recipe-columns { grid-template-columns: 5fr 7fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-block; }
	.header-actions { margin-left: auto; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; padding: .75rem 1rem 1rem; gap: .15rem; }
	.primary-nav a { padding: .85rem 1rem; border-radius: 10px; }
	.featured, .newsletter-inner, .about-short.has-image { grid-template-columns: 1fr; }
	.featured-media { min-height: 220px; aspect-ratio: 3 / 2; }
}

@media (max-width: 640px) {
	body { font-size: 1.02rem; }
	.header-inner { min-height: 64px; gap: .5rem; }
	.site-title { font-size: 1.45rem; }
	.search-form { flex-direction: column; }
	.search-form .btn { width: 100%; }
	.newsletter-form form { flex-direction: column; }
	.newsletter-form .btn { width: 100%; }
	.footer-grid { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
	.card-grid, .card-grid-4 { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; text-align: left; }
	.top-actions .btn { flex: 1 1 100%; }
	.alignleft, .alignright { float: none; margin: 1rem auto; display: block; }
	.facts { grid-template-columns: repeat(2, 1fr); }
}

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

/* ========== Print ========== */
@media print {
	body { background: #fff; color: #000; font-size: 12pt; }
	.site-header, .site-footer, .no-print, .related, .newsletter, .comments, .post-extras, .share, .top-actions, .skip-link { display: none !important; }
	.print-only { display: block; }
	a { color: #000; text-decoration: none; }
	.recipe-box { border: 1px solid #999; box-shadow: none; margin: 0; padding: 0; border-top: 3px solid #000; }
	.recipe-columns { grid-template-columns: 1fr 1fr; }
	.steps-list li::before { background: #000; color: #fff; }
	body.print-recipe-only .article-top, body.print-recipe-only .article-image, body.print-recipe-only .entry-body, body.print-recipe-only .post-tags { display: none !important; }
	.card-grid { display: block; }
}
