/*
Theme Name: YumDay
Theme URI: https://example.com/
Author: YumDay Recipes
Description: Light, fast recipe theme. System fonts, no framework, no jQuery, built-in recipe card with Recipe schema, Jump/Print buttons and ad-ready layout.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 7.1
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: yumday
*/

/* ---------- Tokens ---------- */
:root {
	--red: #D62828;
	--red-hover: #B91F1F;
	--ink: #111111;
	--muted: #666666;
	--line: #E5E5E5;
	--soft: #F7F7F7;
	--white: #FFFFFF;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
	--col: 760px;
	--r: 10px;
	--r-btn: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.7 var(--sans); overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--red); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-hover); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.icon { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (max-width: 640px) { body { font-size: 17px; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--white); color: var(--ink); z-index: 100; border: 1px solid var(--ink); border-radius: var(--r-btn); }

/* ---------- Buttons and links ---------- */
.btn, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: var(--r-btn);
	border: 1px solid var(--red); background: var(--red); color: var(--white);
	font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover, .comment-form .submit:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--red); border-color: var(--red); }
.btn--ghost .icon { color: var(--red); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.textlink { font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* ---------- Search form ---------- */
form.search { display: flex; width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); overflow: hidden; }
form.search:focus-within { border-color: var(--ink); }
form.search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; font: 400 16px var(--sans); color: var(--ink); outline: 0; }
form.search input::placeholder { color: #8a8a8a; }
form.search button { border: 0; padding: 0 20px; background: var(--red); color: var(--white); font: 600 16px var(--sans); cursor: pointer; }
form.search button:hover { background: var(--red-hover); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-brand { flex: none; }
.custom-logo { max-height: 52px; width: auto; }
.site-logo { display: block; line-height: 0; }
.site-logo img { height: 48px; width: auto; }
.site-logo--footer img { height: 40px; }
.site-title { display: inline-grid; grid-template-columns: auto auto; line-height: 1; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.site-title__a { color: var(--ink); }
.site-title__b { color: var(--red); }
.site-title__sub { grid-column: 1 / -1; font-size: 11px; letter-spacing: .42em; color: var(--ink); margin-top: 4px; font-weight: 600; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 16px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--red); }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current-post-ancestor > a { border-bottom-color: var(--red); }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(17,17,17,.08); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.site-tools { display: flex; align-items: center; gap: 4px; }
.pop { position: static; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-btn); color: var(--ink); cursor: pointer; }
.icon-btn:hover, .pop[open] > .icon-btn { background: var(--soft); }
.icon-btn .icon { width: 22px; height: 22px; }
.pop__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px; box-shadow: 0 12px 24px rgba(17,17,17,.06); }
.site-search .pop__panel form.search { margin: 0 auto; max-width: 640px; }
.nav-toggle { display: none; }
.mobile-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 17px; }
.mobile-nav .sub-menu a { padding-left: 16px; color: var(--muted); }
@media (max-width: 979px) {
	.site-nav { display: none; }
	.nav-toggle { display: block; }
	.site-tools { margin-left: auto; }
	.site-header__inner { min-height: 64px; }
	.custom-logo { max-height: 44px; }
	.site-logo img { height: 40px; }
}

/* ---------- Homepage ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 28px; }
.hero > * { min-width: 0; }
@media (min-width: 900px) {
	.hero { grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
	.hero--solo { grid-template-columns: minmax(0, 720px); }
}
.hero__title { margin-bottom: 14px; }
.hero__lede { color: var(--muted); font-size: 1.125rem; max-width: 34em; margin-bottom: 20px; }
.hero form.search { margin-bottom: 14px; }
.feature__media { display: block; border-radius: 12px; overflow: hidden; background: var(--soft); aspect-ratio: 3 / 2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__meta { margin: 14px 0 4px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.feature__title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 0; }
.feature__title a { color: var(--ink); text-decoration: none; }
.feature__title a:hover { color: var(--red); }

.cat-row { padding-top: 8px; padding-bottom: 8px; }
.cat-row__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 12px; }
.cat-row a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); text-align: center; }
.cat-row__img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.cat-row__img--empty { display: flex; align-items: center; justify-content: center; font: 400 28px var(--serif); color: var(--red); }
.cat-row__label { font-size: 15px; line-height: 1.3; font-weight: 600; }
.cat-row a:hover .cat-row__label { color: var(--red); }
@media (max-width: 899px) {
	.cat-row { padding-left: 0; padding-right: 0; }
	.cat-row__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none; }
	.cat-row__list::-webkit-scrollbar { display: none; }
	.cat-row li { flex: 0 0 84px; scroll-snap-align: start; }
	.cat-row a { width: 84px; }
	.cat-row__label { font-size: 14px; }
}

.block { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }

.meet { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.meet__img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.meet__text p { color: #333; }
@media (max-width: 640px) { .meet { grid-template-columns: 1fr; text-align: center; justify-items: center; } .meet__img { width: 140px; height: 140px; } }

.pin-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.pin-row h2 { margin-bottom: 4px; }
.pin-row p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .pin-row { flex-direction: column; text-align: center; padding: 24px 16px; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 979px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.grid { gap: 20px 14px; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 > :nth-child(3) { display: none; }
}
.card { min-width: 0; }
.card__media { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: block; width: 100%; height: 100%; }
.card__time { position: absolute; left: 8px; bottom: 8px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 13px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.card__body { padding-top: 10px; }
.card__cat { font-size: 13px; color: var(--muted); text-decoration: none; }
.card__cat:hover { color: var(--red); }
.card__title { font: 600 1.0625rem/1.35 var(--sans); margin: 3px 0 0; letter-spacing: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--red); }
.card__excerpt { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 640px) {
	.card__cat, .card__excerpt { display: none; }
	.card__title { font-size: 15px; margin-top: 0; }
}

/* ---------- Lists, archives ---------- */
.list-page { padding-bottom: 8px; }
.archive-head { text-align: center; padding: 40px 0 28px; }
.archive-head h1 { margin-bottom: 10px; }
.archive-head__desc { max-width: 640px; margin: 0 auto; color: var(--muted); }
.archive-head__search { display: flex; justify-content: center; margin-top: 18px; }
.empty { text-align: center; color: var(--muted); padding: 24px 0 48px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.page-numbers:hover { border-color: var(--red); color: var(--red); }
.page-numbers.current { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Post layout ---------- */
.layout--post { max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 0 16px; }
@media (min-width: 1100px) {
	.layout--post.has-sidebar { max-width: 1160px; display: grid; grid-template-columns: minmax(0, var(--col)) 300px; gap: 56px; justify-content: center; padding: 0 24px; }
}
.layout__side { display: none; }
@media (min-width: 1100px) {
	.layout__side { display: block; padding-top: 64px; }
	.sidebar .widget { margin-bottom: 32px; font-size: 16px; }
	.sidebar .widget:last-child { position: sticky; top: 24px; }
	.widget__title { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
	.sidebar ul { list-style: none; padding: 0; }
	.sidebar li { padding: 6px 0; border-bottom: 1px solid var(--line); }
}
.layout__main { min-width: 0; }

.crumbs { text-align: center; font-size: 14px; color: var(--muted); padding: 20px 0 14px; line-height: 1.5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs__sep { margin: 0 4px; color: #b3b3b3; }

.entry__head { background: var(--soft); border-radius: 12px; padding: 28px 24px; text-align: center; margin-bottom: 20px; }
.entry__title { margin-bottom: 12px; }
.entry__meta { margin: 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry__meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.entry__meta a:hover { color: var(--red); }
.entry__meta span[aria-hidden] { margin: 0 6px; }
@media (max-width: 640px) { .entry__head { padding: 22px 16px; } }
/* Phones: breadcrumbs stay on one line (the title is right below anyway). */
@media (max-width: 640px) { .crumbs > span.crumbs__sep:nth-last-of-type(2), .crumbs > span[aria-current] { display: none; } }

.entry__hero { margin: 0 0 16px; }
.entry__hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }

.recipe-jump { display: flex; justify-content: center; flex-wrap: nowrap; gap: 12px; margin: 0 0 28px; }
@media (max-width: 639px) { .recipe-jump { gap: 8px; } .recipe-jump .btn { padding: 0 14px; font-size: 15px; } }
@media (max-width: 359px) { .recipe-jump .btn { padding: 0 10px; font-size: 14px; gap: 6px; } .recipe-jump .icon { width: 16px; height: 16px; } }

/* Content */
.entry__content > * { max-width: 100%; }
.entry__content h2 { margin-top: 1.8em; }
.entry__content h3 { font: 600 1.15rem/1.35 var(--sans); margin: 1.6em 0 .5em; letter-spacing: 0; }
.entry__content ul { padding-left: 1.2em; }
.entry__content ul li::marker { color: var(--red); }
.entry__content ol li::marker { color: var(--red); font-weight: 600; }
.entry__content li { margin-bottom: .4em; }
.entry__content figure { margin: 1.6em 0; }
.entry__content img { border-radius: var(--r); }
.entry__content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry__content blockquote { margin: 1.6em 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: italic 400 1.2rem/1.5 var(--serif); }
.entry__content a { font-weight: 600; }
.entry__content .alignwide, .entry__content .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; width: 100%; }
.entry__content iframe, .entry__content video, .entry__content embed { max-width: 100%; }
.entry__content pre { overflow-x: auto; white-space: pre-wrap; }
.entry__content .wp-block-table { overflow-x: auto; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.6em 0; }
.entry__content th, .entry__content td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.entry__content details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.entry__content summary { cursor: pointer; font-weight: 600; }
/* "Tips list" block style: short red dash, hairline between items */
.entry__content ul.is-style-tips { list-style: none; padding: 0; }
.entry__content ul.is-style-tips li { position: relative; padding: 10px 0 10px 24px; margin: 0; border-bottom: 1px solid var(--line); }
.entry__content ul.is-style-tips li:last-child { border-bottom: 0; }
.entry__content ul.is-style-tips li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 12px; height: 2px; background: var(--red); }

/* Time strip */
.time-strip { list-style: none; margin: 28px 0; padding: 14px 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.time-strip li { margin: 0; padding: 0 8px; }
.time-strip li + li { border-left: 1px solid var(--line); }
.time-strip__label { display: block; font-size: 13px; color: var(--muted); }
.time-strip__value { display: block; font: 400 1.35rem/1.3 var(--serif); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
	.time-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.time-strip li:nth-child(odd) { border-left: 0; }
	.time-strip li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
}
.nutrition-line { margin: -12px 0 28px; text-align: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Recipe card ---------- */
.recipe-card { margin: 48px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; scroll-margin-top: 16px; }
.recipe-card__head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 24px; border-bottom: 1px solid var(--line); background: var(--soft); }
.recipe-card__img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; border: 4px solid var(--white); }
.recipe-card__title { font-size: clamp(1.5rem, 3.4vw, 1.875rem); margin: 0 0 8px; }
.recipe-card__summary { color: var(--muted); max-width: 34em; margin: 0 0 16px; }
.recipe-card__meta { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.recipe-card__meta li { display: flex; flex-direction: column; align-items: center; }
.recipe-card__meta span { font-size: 13px; color: var(--muted); }
.recipe-card__meta strong { font: 400 1.2rem/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.recipe-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.recipe-card__block { padding: 28px 32px 0; }
.recipe-card__block h3 { text-align: center; font-size: 1.5rem; margin-bottom: 16px; }
.recipe-card__block h4 { font: 600 16px/1.4 var(--sans); margin: 18px 0 4px; }
.recipe-card__divider { height: 0; margin: 28px 32px 0; border-top: 1px solid var(--line); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.checklist input { flex: none; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--red); cursor: pointer; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; min-height: 30px; padding: 2px 0 18px 44px; margin: 0; }
.steps li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--white); font: 600 15px/30px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.recipe-card__notes ul { padding-left: 1.2em; }
.recipe-card__notes li::marker { color: var(--red); }
.recipe-card__nutrition { margin: 20px 32px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.recipe-card__credit { margin: 12px 32px 0; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
	.recipe-card__head { padding: 26px 16px 20px; }
	.recipe-card__block { padding: 24px 16px 0; }
	.recipe-card__divider { margin: 24px 16px 0; }
	.recipe-card__nutrition, .recipe-card__credit { margin-left: 16px; margin-right: 16px; }
	.recipe-card__meta { gap: 10px 20px; }
}

/* ---------- After the post ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 36px 0; }
.share__label { width: 100%; text-align: center; font-size: 14px; color: var(--muted); }
.related { margin-top: 40px; }
.related h2 { margin-bottom: 18px; }
.post-navigation { margin: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 18px 0; text-decoration: none; color: var(--ink); }
.post-navigation a:hover .post-nav__title { color: var(--red); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; font-size: 13px; color: var(--muted); }
.post-nav__title { display: block; font-weight: 600; line-height: 1.35; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-box__img { border-radius: 50%; }
.author-box__name { margin: 0; font-weight: 600; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__bio { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- Comments ---------- */
.comments { margin: 48px 0 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; color: var(--muted); }
.comment-meta a { color: var(--muted); text-decoration: none; }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.reply a { font-size: 14px; font-weight: 600; }
.comment-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-btn); font: 400 16px var(--sans); color: var(--ink); background: var(--white); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ink); outline: 0; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-reply-title small { margin-left: 8px; font-size: 14px; }

/* ---------- Pages ---------- */
.page-wrap { max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 0 16px; }
.page-head { text-align: center; padding: 40px 0 20px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--soft); border-top: 1px solid var(--line); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 2fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.site-footer__about p { color: var(--muted); margin: 14px 0 16px; max-width: 26em; }
.site-title--footer { font-size: 24px; }
.site-footer__h { font: 600 15px/1.4 var(--sans); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__cats { columns: 2; column-gap: 24px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer .btn--ghost { color: var(--ink); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.menu--inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.menu--inline li { margin: 0; }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__cats { columns: 2; } }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--muted); }
.sticky, .bypostauthor { outline: 0; }
.page-links { margin: 24px 0; font-weight: 600; }

/* ---------- Ad slots (no layout jump) ---------- */
.layout__main .code-block, .entry__content .code-block { text-align: center; margin-left: auto !important; margin-right: auto !important; clear: both; }
.ezoic-ad, [id^="ezoic-pub-ad-placeholder"] { margin-left: auto; margin-right: auto; text-align: center; }

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

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .recipe-jump, .share, .related, .post-navigation, .author-box, .comments, .layout__side, .crumbs, .recipe-card__actions, .code-block, .ezoic-ad { display: none !important; }
	body { font-size: 12pt; }
	html.print-recipe body * { visibility: hidden; }
	html.print-recipe #recipe, html.print-recipe #recipe * { visibility: visible; }
	html.print-recipe #recipe { position: absolute; left: 0; top: 0; width: 100%; margin: 0; border: 0; }
	.recipe-card__head { background: none; }
	.checklist input { display: none; }
	a { color: #000; text-decoration: none; }
}

/* ---------- Recipe index: category chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 640px) {
	.chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 16px -16px 0; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
}
