/*
Theme Name: Cooked Curious
Theme URI: https://www.cookedcurious.com/
Author: Cooked Curious
Description: A fast, ad-ready recipe blog theme for Cooked Curious. Dark hero, recipe card grids, WP Recipe Maker and Rank Math support, and a 336px non-sticky sidebar built to Mediavine Journey's sidebar rules.
Version: 1.0.6
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: cookedcurious
*/

/* ---------- Fonts (self-hosted, 41 KB total) ---------- */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/fraunces-500-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--bg: #fbf7f1;
	--surface: #fff;
	--ink: #1f1b17;
	--muted: #6b6259;
	--line: #ece3d7;
	--accent: #c2410c;
	--accent-hover: #a8380a;
	--accent-ink: #b5450a;
	--accent-soft: #fdeee3;
	--dark: #1c1916;
	--dark-2: #2a2521;
	--dark-line: #3a332d;
	--sage: #2f4a3a;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 14px;
	--gutter: 20px;
	--shadow: 0 1px 2px rgba(31, 27, 23, .05), 0 8px 24px rgba(31, 27, 23, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { overflow-wrap: break-word; font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 em, h2 em, h3 em, .site-title em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0; overflow: hidden;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100; padding: 10px 16px;
	background: var(--surface); color: var(--ink); border-radius: 8px;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Ads need 300px of content width on the smallest phones. */
@media (max-width: 359px) { :root { --gutter: 10px; } }

/* ---------- Buttons & forms ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border: 0; border-radius: 999px;
	background: var(--accent); color: #fff;
	font-weight: 600; font-size: 15px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea {
	width: 100%; padding: 12px 14px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.search-form { display: flex; position: relative; }
.search-form input { padding-right: 48px; border-radius: 999px; }
.search-form button {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border: 0; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--accent); color: #fff; cursor: pointer;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.site-branding { flex-shrink: 0; }
.site-title { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.site-title a { color: var(--ink); text-decoration: none; }
.custom-logo { max-height: 56px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	display: block; padding: 10px 12px;
	color: var(--ink); text-decoration: none;
	font-size: 15px; font-weight: 600;
	border-radius: 8px;
}
.site-nav .menu a:hover { color: var(--accent-ink); background: var(--accent-soft); }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--accent-ink); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
	list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	width: 42px; height: 42px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.menu-toggle { display: none; }
.header-search { padding: 14px 0 18px; border-top: 1px solid var(--line); }
.header-search .search-form { max-width: 640px; margin: 0 auto; }

@media (max-width: 960px) {
	.header-inner { min-height: 64px; gap: 8px; }
	.site-title { font-size: 24px; }
	.menu-toggle { display: grid; }
	.header-actions { margin-left: auto; }
	.header-cta { display: none; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--surface); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
	}
	.nav-open .site-nav { display: block; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}

/* ---------- Shared bits ---------- */
.kicker {
	margin: 0 0 10px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent-ink);
}
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.section-head > div { flex: 1 1 200px; min-width: 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0; }
.section-sub { margin: 6px 0 0; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips > span { font-size: 14px; font-weight: 600; margin-right: 4px; }
.chip {
	padding: 6px 14px; border-radius: 999px;
	font-size: 14px; text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .22); color: #f3ede6;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips-light .chip { border-color: var(--line); color: var(--ink); background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background: radial-gradient(60% 80% at 80% 40%, #3a2a1f 0%, rgba(28, 25, 22, 0) 70%), var(--dark);
	color: #e9e2da;
	padding: 72px 0 112px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-no-image { grid-template-columns: minmax(0, 760px); }
.hero .kicker { color: #ff8a4c; }
.hero-title { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; margin-bottom: 20px; }
.hero-title em { color: #ff7a33; }
.hero-text { font-size: 18px; max-width: 34em; color: #cfc6bc; margin-bottom: 28px; }

.hero-search {
	display: flex; align-items: center; gap: 8px;
	max-width: 560px; padding: 6px 6px 6px 18px; margin-bottom: 20px;
	background: #fff; border-radius: 999px; color: var(--muted);
}
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 10px 4px; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 122, 51, .6); }

.hero-plate { position: relative; display: block; justify-self: center; width: min(100%, 500px); text-decoration: none; }
.hero-plate img {
	width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
	box-shadow: 0 0 0 12px rgba(255, 255, 255, .06), 0 30px 60px rgba(0, 0, 0, .5);
}
.badge {
	position: absolute; background: #fff; color: var(--ink);
	border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	font-size: 14px; line-height: 1.25;
}
.badge-count {
	top: 6%; right: -2%; width: 112px; height: 112px; border-radius: 50%;
	display: grid; place-content: center; text-align: center; padding: 10px;
}
.badge-count strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; }
.badge-title { left: -4%; bottom: 8%; max-width: 250px; padding: 12px 16px; font-weight: 600; }
.badge-title small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; fill: var(--bg); }

@media (max-width: 900px) {
	.hero { padding: 40px 0 84px; }
	.hero-inner { grid-template-columns: 1fr; gap: 36px; }
	.hero-plate { width: min(84%, 420px); }
	.badge-count { width: 92px; height: 92px; font-size: 12px; right: -6%; }
	.badge-count strong { font-size: 24px; }
	.badge-title { left: -8%; max-width: 210px; font-size: 13px; }
}
@media (max-width: 520px) {
	.hero-search { flex-wrap: wrap; border-radius: 18px; padding: 6px; }
	.hero-search > svg { display: none; }
	.hero-search input { padding: 10px 12px; }
	.hero-search .btn { width: 100%; justify-content: center; }
}

/* ---------- Category strip ---------- */
.cat-strip { padding: 24px 0 8px; }
.cat-list {
	display: flex; gap: 28px;
	list-style: none; margin: 0; padding: 4px 0 8px;
	overflow-x: auto; scrollbar-width: none;
}
.cat-list::-webkit-scrollbar { display: none; }
.cat-list li { flex: 0 0 auto; }
/* Centre a short row without clipping a long one when it scrolls. */
.cat-list li:first-child { margin-left: auto; }
.cat-list li:last-child { margin-right: auto; }
.cat-list a { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 104px; text-decoration: none; color: var(--ink); }
.cat-thumb {
	width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center;
	background: var(--accent-soft); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line);
	transition: box-shadow .15s;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-initial { font-family: var(--serif); font-size: 36px; color: var(--accent); }
.cat-list a:hover .cat-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.cat-name { font-size: 14px; font-weight: 600; text-align: center; line-height: 1.3; }
@media (max-width: 600px) {
	.cat-list { gap: 6px; }
	.cat-list a { width: 82px; }
	.cat-thumb { width: 70px; height: 70px; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.grid { gap: 14px; }
	.grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--accent); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--accent-ink); }
.card-title { font-size: 19px; line-height: 1.25; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); }
.card-meta { display: flex; gap: 14px; margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.star { color: #f5a524; }
@media (max-width: 760px) {
	.card-body { padding: 10px 12px 14px; }
	.card-title { font-size: 16px; }
	.card-cat { font-size: 12px; letter-spacing: .04em; }
}

/* ---------- Spotlight band ---------- */
.spotlight { background: var(--dark); color: #d9d1c8; padding: 64px 0; }
.spotlight-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.spotlight .kicker { color: #ff8a4c; }
.spotlight-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.spotlight-title a { color: #fff; text-decoration: none; }
.spotlight-title a:hover { color: #ffb48a; }
.spotlight-meta { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0 0 24px; color: #fff; font-weight: 600; }
.spotlight-meta li { display: inline-flex; align-items: center; gap: 6px; }
.spotlight-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
@media (max-width: 900px) {
	.spotlight { padding: 44px 0; }
	.spotlight-inner { grid-template-columns: 1fr; gap: 28px; }
	.spotlight-media { order: -1; }
}

/* ---------- About band ---------- */
.about-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 440px 1fr; gap: 64px; align-items: center; }
.about-no-image { grid-template-columns: minmax(0, 760px); }
.about-media { position: relative; margin: 0 18px 18px 0; }
.about-media::before {
	content: ""; position: absolute; inset: 24px -18px -18px 24px;
	background: var(--accent); border-radius: 24px; z-index: 0;
}
.about-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.about-copy .section-title { margin-bottom: 16px; }
.about-copy > p { font-size: 18px; color: var(--muted); max-width: 36em; }
.perks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.perks span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 900px) {
	.about-inner { grid-template-columns: 1fr; gap: 40px; }
	.about-media { max-width: 360px; }
}

/* ---------- Newsletter ---------- */
.newsletter-band { background: var(--accent); color: #fff; padding: 48px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.newsletter-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.newsletter-band p { margin: 0; opacity: .92; }
.newsletter-form { display: flex; gap: 8px; flex: 0 1 460px; }
.newsletter-form input { border-radius: 999px; border: 0; padding: 14px 20px; color: var(--ink); }
.newsletter-band .btn { background: var(--dark); flex-shrink: 0; }
.newsletter-band .btn:hover { background: #000; }
@media (max-width: 760px) {
	.newsletter-inner { flex-direction: column; align-items: stretch; }
	.newsletter-form { flex-basis: auto; flex-wrap: wrap; }
	.newsletter-form .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9b0a6; font-size: 15px; padding-top: 56px; }
.site-footer a { color: #e9e2da; text-decoration: none; }
.site-footer a:hover { color: #ff8a4c; }
.site-footer .site-title a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-about p { margin: 16px 0 20px; max-width: 30em; }
.footer-title { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-news .newsletter-form { flex-direction: column; }
.footer-news input { border-radius: 10px; background: var(--dark-2); border: 1px solid var(--dark-line); color: #fff; }
.footer-news .btn { justify-content: center; }
.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--dark-line); font-size: 14px;
}
.footer-bottom p { margin: 0; }
.legal-nav ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.social { display: flex; gap: 8px; }
.social a {
	width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	background: var(--accent-soft); color: var(--accent-ink);
}
.social a:hover { background: var(--accent); color: #fff; }
.social-footer a { background: var(--dark-2); color: #fff; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Archive header ---------- */
.archive-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.archive-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 10px; }
.archive-desc { max-width: 46em; color: var(--muted); font-size: 18px; }
.archive-desc p:last-child { margin-bottom: 0; }
.archive-header .chips { margin-top: 18px; }
.archive-search { max-width: 520px; margin-top: 16px; }

.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center;
	border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 600;
}
.page-numbers.current, .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { background: none; border: 0; }
.empty-state { max-width: 520px; margin: 0 auto; text-align: center; }

/* ---------- Post layout ----------
   Sidebar: 336px, no padding, no sticky. It stretches to the full height of the
   post (grid default) so the ad script's sticky sidebar ad has room to travel.
   Nothing above it uses overflow:hidden, which would break position:sticky. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 56px; padding-top: 32px; padding-bottom: 64px; }
.layout-narrow { display: block; max-width: 840px; }
.content-area { min-width: 0; }
.sidebar { width: 336px; min-width: 300px; }
@media (max-width: 1023px) {
	.layout { display: block; }
	.sidebar { width: auto; min-width: 0; margin-top: 48px; }
}

.breadcrumbs, .rank-math-breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs p, .rank-math-breadcrumb p { margin: 0; }
.breadcrumbs a, .rank-math-breadcrumb a { color: var(--muted); }
.breadcrumbs .separator, .breadcrumbs span[aria-hidden] { margin: 0 4px; opacity: .6; }

.entry-header { margin-bottom: 28px; }
.entry-title { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.1; margin-bottom: 16px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.entry-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.author-chip { display: inline-flex; align-items: center; gap: 10px; }
.author-chip img { border-radius: 50%; width: 36px; height: 36px; }
.disclosure { margin: 18px 0 0; padding: 10px 14px; font-size: 14px; color: var(--muted); background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }

/* ---------- Post content ---------- */
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.75em; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.35em; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.1em; margin-top: 1.4em; font-family: var(--sans); font-weight: 700; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote {
	margin-left: 0; padding: 16px 22px;
	background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0;
	font-family: var(--serif); font-size: 1.1em;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-button__link { background: var(--accent); border-radius: 999px; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content .has-background { padding: 20px 24px; border-radius: 12px; }

/* ---------- Easy Table of Contents ---------- */
.entry-content #ez-toc-container {
	width: 100%; padding: 18px 22px; margin-bottom: 1.6em;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none;
	font-size: 16px; line-height: 1.5;
}
.entry-content #ez-toc-container .ez-toc-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.entry-content #ez-toc-container a { color: var(--ink); text-decoration: none; }
.entry-content #ez-toc-container a:hover { color: var(--accent-ink); text-decoration: underline; }
.entry-content #ez-toc-container li { margin-bottom: 0; }
.entry-content #ez-toc-container li a { display: inline-block; padding: 5px 0; }

/* ---------- WP Recipe Maker ---------- */
.wprm-recipe-container { margin: 2.2em 0; }
.entry-content .wprm-recipe { border-radius: 16px; }
.entry-content .wprm-recipe img { border-radius: 12px; }
.wprm-recipe-jump, .wprm-recipe-print, .wprm-recipe-pin {
	border-radius: 999px !important; font-weight: 600; text-decoration: none !important;
}
.wprm-recipe-snippet { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.4em; }
/* Small phones: the card's 40px padding leaves no room for the section tabs. */
@media (max-width: 420px) {
	.entry-content .wprm-layout-container.wprm-padding-40 { padding: 22px 18px; }
	.entry-content .wprm-recipe-jump-to-section { padding: 5px 8px; }
}

/* ---------- Post footer ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tags a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.author-box { display: flex; gap: 20px; padding: 24px; margin: 32px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { border-radius: 50%; flex-shrink: 0; width: 88px; height: 88px; }
.author-name { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.author-box p { font-size: 16px; color: var(--muted); }
.related { margin: 48px 0; }
.related .section-title { margin-bottom: 20px; }
@media (max-width: 560px) {
	.author-box { flex-direction: column; gap: 12px; }
	.related .grid-3 > :nth-child(3) { display: none; }
}

/* ---------- Comments ---------- */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 20px 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 4px 0 8px; }
.comment-metadata a { color: var(--muted); }
.reply a { font-size: 14px; font-weight: 600; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes { font-size: 14px; color: var(--muted); }

/* ---------- Sidebar widgets ---------- */
.widget { margin-bottom: 32px; font-size: 16px; }
.widget-title { font-size: 20px; margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget-about { padding: 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.widget-about-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.widget-about .widget-title { font-size: 22px; }
.widget-about p { color: var(--muted); font-size: 15px; }
.widget-about .social { justify-content: center; margin-bottom: 16px; }
.widget-cats li a {
	display: flex; justify-content: space-between; padding: 10px 0;
	border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.widget-cats li a:hover { color: var(--accent-ink); }
.mini-list { display: grid; gap: 14px; }
.mini-list a { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.mini-list a:hover { color: var(--accent-ink); }
.mini-list img { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }

/* Core widgets / blocks dropped into the sidebar */
.widget .wp-block-heading, .widget h2 { font-size: 20px; }
.widget .wp-block-search__inside-wrapper { position: relative; }
.widget .wp-block-search__input { border-radius: 999px; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); }
.widget .wp-block-search__button { margin-left: 6px; border: 0; border-radius: 999px; padding: 0 18px; background: var(--accent); color: #fff; font-weight: 600; }
.widget .wp-block-search__label { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget .mini-list li, .widget-cats li { padding: 0; border: 0; }
.widget li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.widget li a:hover { color: var(--accent-ink); }

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .sidebar, .related, .comments, .author-box, .breadcrumbs, .rank-math-breadcrumb { display: none !important; }
	.layout { display: block; padding: 0; }
	body { background: #fff; }
}

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