/*
Theme Name: Yeqer Mercado
Theme URI: https://yeqer.com/
Author: Yeqer
Description: A bright Caribbean market-stall theme for recipe and nutrition sites. Flat colour blocks, ink outlines, market-awning details, a randomly rotating Popular Topics board and a "Header" widget area for Analytics / AdSense code printed right after the header. Built for Google Auto Ads: no horizontal overflow, ads break out of grids into their own row, unfilled slots collapse, no sticky header on mobile.
Version: 1.1.0
Requires at least: 6.0
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: yeqer
Tags: blog, food-and-drink, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Karla";
	src: url("assets/fonts/karla.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

/*
 * Size-matched local fallbacks. While the web fonts load (font-display: swap)
 * text is drawn in a system font scaled to the same width and vertical metrics,
 * so the swap does not reflow the page. Values measured against Fraunces 800
 * and Karla 400/700.
 */
@font-face {
	font-family: "Fraunces Fallback";
	src: local("Georgia Bold"), local("Georgia-Bold");
	font-weight: 400 900;
	size-adjust: 96%;
	ascent-override: 101.9%;
	descent-override: 26.6%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Fraunces Fallback Times";
	src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"), local("Tinos Bold"), local("Tinos-Bold");
	font-weight: 400 900;
	size-adjust: 114.5%;
	ascent-override: 85.4%;
	descent-override: 22.3%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Fraunces Fallback Noto";
	src: local("Noto Serif Bold"), local("NotoSerif-Bold");
	font-weight: 400 900;
	size-adjust: 97.7%;
	ascent-override: 100.1%;
	descent-override: 26.1%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Karla Fallback";
	src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"), local("Arimo-Regular");
	font-weight: 400 600;
	size-adjust: 100.7%;
	ascent-override: 91.1%;
	descent-override: 25%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Karla Fallback";
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold");
	font-weight: 700 800;
	size-adjust: 98.4%;
	ascent-override: 93.2%;
	descent-override: 25.6%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Karla Fallback Roboto";
	src: local("Roboto"), local("Roboto-Regular");
	font-weight: 400 600;
	size-adjust: 102%;
	ascent-override: 89.9%;
	descent-override: 24.7%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Karla Fallback Roboto";
	src: local("Roboto Bold"), local("Roboto-Bold");
	font-weight: 700 800;
	size-adjust: 105.1%;
	ascent-override: 87.3%;
	descent-override: 24%;
	line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
	--cream: #fbf3e4;
	--paper: #fffdf8;
	--ink: #1d1a16;
	--ink-soft: #4a433b;
	--palm: #1f4d3a;
	--palm-deep: #163a2b;
	--palm-soft: #2f6b4f;
	--achiote: #c2410c;
	--achiote-hot: #e2552a;
	--sun: #f2b33d;
	--sun-soft: #fbe3ad;
	--hibiscus: #b8325a;
	--sea: #2a7d8c;

	--font-display: "Fraunces", "Fraunces Fallback", "Fraunces Fallback Times", "Fraunces Fallback Noto", Georgia, serif;
	--font-body: "Karla", "Karla Fallback", "Karla Fallback Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;

	--line: 2px solid var(--ink);
	--r-sm: 10px;
	--r-md: 18px;
	--r-lg: 28px;
	--r-xl: 40px;
	--shadow-hard: 6px 6px 0 var(--ink);
	--shadow-hard-sm: 4px 4px 0 var(--ink);

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img, svg, video, iframe, embed, object { max-width: 100%; }
img, svg, video { height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	line-height: 1.08;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--achiote-hot); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px; top: -80px;
	z-index: 100;
	background: var(--ink);
	color: var(--cream);
	padding: 10px 16px;
	border-radius: var(--r-sm);
	text-decoration: none;
	font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main { padding-bottom: clamp(48px, 8vw, 96px); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Components (DaisyUI-style primitives) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 44px;
	padding: .6em 1.15em;
	border: var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: 700 1rem/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-sm); }
.btn:active { transform: none; box-shadow: none; }
.btn-accent { background: var(--achiote); color: #fff; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon .icon { width: 20px; height: 20px; }

.badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: .2em .7em;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	background: var(--sun);
	font: 700 .75rem/1.4 var(--font-body);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.join { display: flex; align-items: stretch; }
.join > * { border-radius: 0; }
.join > *:first-child { border-radius: 999px 0 0 999px; }
.join > *:last-child { border-radius: 0 999px 999px 0; }
.join > * + * { margin-left: -2px; }

.input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 1.1em;
	border: var(--line);
	background: var(--paper);
	color: var(--ink);
	font: 500 1rem var(--font-body);
}
.input::placeholder { color: #7a7066; }
.input:focus-visible { outline-offset: -5px; }

.kicker {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	margin: 0 0 14px;
	font: 700 .8rem/1 var(--font-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--palm);
}
.kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--achiote-hot); box-shadow: 0 0 0 4px var(--sun-soft); }

.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
.section-title::first-letter { font-style: italic; }
.section-rule { flex: 1; height: 10px; background: radial-gradient(circle, var(--ink) 1.6px, transparent 2px) 0 50% / 12px 10px repeat-x; opacity: .5; }
.section-icon {
	display: grid; place-items: center;
	width: 44px; height: 44px; flex: none;
	border: var(--line); border-radius: 50%;
	background: var(--achiote-hot); color: var(--cream);
}

/* ---------- Awning + header ---------- */
.awning {
	height: 22px;
	background: repeating-linear-gradient(90deg, var(--palm) 0 28px, var(--cream) 28px 56px);
	-webkit-mask: radial-gradient(14px 10px at 50% 0, #000 98%, transparent) 0 12px / 28px 10px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 12px no-repeat;
	mask: radial-gradient(14px 10px at 50% 0, #000 98%, transparent) 0 12px / 28px 10px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 12px no-repeat;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--cream) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand-img { height: 44px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }

.primary-nav { margin-left: auto; min-width: 0; }
.nav-list, .primary-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; padding: 4px; border: var(--line); border-radius: 999px; background: var(--paper); }
.nav-list > li { position: relative; }
.nav-list a {
	display: inline-flex; align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s;
}
.nav-list a:hover, .nav-list .current-menu-item > a:not([href*="#"]) { background: var(--sun); }
.nav-list .sub-menu {
	position: absolute; left: 0; top: calc(100% + 8px);
	min-width: 220px; padding: 6px;
	border: var(--line); border-radius: var(--r-md);
	background: var(--paper); box-shadow: var(--shadow-hard-sm);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: .18s var(--ease);
}
/* Menus near the right edge open leftwards so they never stick out of the page. */
.nav-list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-menu a { width: 100%; border-radius: var(--r-sm); }

.header-actions { display: flex; gap: 8px; flex: none; }
.nav-toggle { display: none; }

.search-drawer { border-top: var(--line); background: var(--sun-soft); padding: 18px 0; }
.search-drawer .search-form { max-width: 640px; margin-inline: auto; }

@media (max-width: 880px) {
	/* No sticky header on mobile: Google's top anchor ad owns the top edge there. */
	html { scroll-padding-top: 16px; }
	.site-header { position: relative; }
	.nav-toggle { display: inline-flex; }
	.header-actions { margin-left: auto; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		margin: 0; padding: 16px var(--gutter) 24px;
		background: var(--cream); border-bottom: var(--line);
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; border-radius: var(--r-md); }
	.nav-list a { width: 100%; min-height: 48px; }
	.nav-list .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.brand-img { height: 38px; }
}

/* ---------- Cards ---------- */
.card { min-width: 0; }
.card > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: var(--line);
	border-radius: var(--r-lg);
	background: var(--paper);
	overflow: hidden;
	text-decoration: none;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card > a:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.card > a:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.card-media { position: relative; aspect-ratio: 4 / 3; border-bottom: var(--line); background: var(--sun-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card > a:hover .card-media img { transform: scale(1.04); }

.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; }
.card-title { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.18; overflow-wrap: anywhere; }
.card-excerpt { color: var(--ink-soft); font-size: .98rem; }
.card-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--ink-soft); font-size: .85rem; font-weight: 700; }

/* Fallback tile: never an empty media box */
.media-fallback {
	display: grid; place-items: center;
	width: 100%; height: 100%;
	background:
		radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 18%, transparent 19%),
		radial-gradient(circle at 80% 75%, rgba(0,0,0,.12) 0 22%, transparent 23%),
		var(--palm);
}
.media-fallback span { font: italic 800 clamp(3rem, 8vw, 5rem)/1 var(--font-display); color: var(--cream); }
.media-fallback.tone-1 { background-color: var(--achiote); }
.media-fallback.tone-2 { background-color: var(--sea); }
.media-fallback.tone-3 { background-color: var(--hibiscus); }

/* ---------- Home lead ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 24px; padding-top: clamp(24px, 4vw, 48px); margin-bottom: clamp(40px, 6vw, 72px); }
.lead-side { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr; grid-auto-flow: row dense; gap: 24px; padding-top: 30px; min-width: 0; }
.lead-side .card--pick > a { height: 100%; }

.card--hero > a { display: grid; grid-template-columns: 1fr; border-radius: var(--r-xl); background: var(--palm); color: var(--cream); }
.card--hero .card-media { aspect-ratio: 16 / 10; }
.card--hero .card-body { padding: clamp(20px, 3vw, 34px); gap: 14px; }
.card--hero .card-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.02; }
.card--hero .card-excerpt, .card--hero .card-meta { color: #e9dfcc; }
.card--hero .card-cta { margin-top: 4px; width: fit-content; }
.card--hero > a:hover .card-title { text-decoration-color: var(--sun); }

.card--pick > a { flex-direction: row; border-radius: var(--r-lg); }
.card--pick .card-media { flex: 0 0 42%; aspect-ratio: auto; border-bottom: 0; border-right: var(--line); }
.card--pick:nth-child(1) > a { background: var(--sun-soft); }
.card--pick:nth-child(2) > a { background: #f6d6cb; }
.card--pick .card-title { font-size: 1.3rem; }

@media (max-width: 960px) {
	.lead { grid-template-columns: 1fr; }
	.lead-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; padding-top: 0; }
}
@media (max-width: 600px) {
	.lead-side { grid-template-columns: minmax(0, 1fr); }
	.card--pick .card-excerpt { display: none; }
}

/* ---------- Popular Topics board ---------- */
.popular {
	position: relative;
	margin: clamp(40px, 6vw, 72px) 0;
	padding: clamp(20px, 3.5vw, 40px);
	border: var(--line);
	border-radius: var(--r-xl);
	background:
		radial-gradient(circle, rgba(251, 243, 228, .09) 1.5px, transparent 2px) 0 0 / 18px 18px,
		var(--palm);
	color: var(--cream);
}
.popular .section-title { color: var(--cream); }
.popular .section-rule { background-image: radial-gradient(circle, var(--cream) 1.6px, transparent 2px); }
.popular .section-icon { border-color: var(--cream); }

.popular-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 20px; }
.card--pop > a { color: var(--ink); border-color: var(--ink); }
.card--pop > a:hover { box-shadow: 6px 6px 0 var(--sun); }
.card--pop .card-title { font-size: 1.08rem; }
.card-num {
	position: absolute; left: 12px; top: 12px;
	display: grid; place-items: center;
	width: 46px; height: 46px;
	border: var(--line); border-radius: 50%;
	background: var(--achiote-hot); color: var(--cream);
	font: italic 800 1.05rem/1 var(--font-display);
}
.card--pop:nth-child(4n+2) .card-num { background: var(--sun); color: var(--ink); }
.card--pop:nth-child(4n+3) .card-num { background: var(--sea); }
.card--pop:nth-child(4n+4) .card-num { background: var(--hibiscus); }

@media (max-width: 1000px) { .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
	.popular-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.card--pop > a { flex-direction: row; border-radius: var(--r-md); }
	.card--pop .card-media { flex: 0 0 112px; aspect-ratio: 1; border-bottom: 0; border-right: var(--line); }
	.card--pop .card-num { width: 34px; height: 34px; font-size: .85rem; left: 8px; top: 8px; }
	.card--pop .badge { display: none; }
	.card--pop .card-body { padding: 12px 14px; justify-content: center; }
}

/* ---------- Grids ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 28px 24px; }
/* Counted by card type, so an inserted ad does not change which card is "last". */
@media (max-width: 960px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid > .card:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
	.post-grid > .card:last-of-type:nth-of-type(odd) > a { flex-direction: row; }
	.post-grid > .card:last-of-type:nth-of-type(odd) .card-media { flex: 0 0 50%; aspect-ratio: auto; border-bottom: 0; border-right: var(--line); }
}
@media (max-width: 560px) {
	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.post-grid > .card:last-of-type:nth-of-type(odd) > a { flex-direction: column; }
	.post-grid > .card:last-of-type:nth-of-type(odd) .card-media { aspect-ratio: 4 / 3; border-right: 0; border-bottom: var(--line); }
}

.pager { margin-top: 44px; display: flex; justify-content: center; }
.pager .join { flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .join > * { margin: 0; border-radius: 999px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; min-height: 44px; padding: 0 14px;
	border: var(--line); border-radius: 999px;
	background: var(--paper); font-weight: 700; text-decoration: none;
}
.page-numbers.current { background: var(--ink); color: var(--cream); }
a.page-numbers:hover { background: var(--sun); }
.page-numbers.dots { border-color: transparent; background: none; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); max-width: 820px; }
.page-title { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin: 8px 0 12px; overflow-wrap: anywhere; }
.page-desc { color: var(--ink-soft); font-size: 1.1rem; }
.page-search { margin-top: 18px; max-width: 560px; }
.crumb-home { font-weight: 700; color: var(--palm); text-decoration: none; }
.crumb-home::before { content: "\2190\00a0"; }
.page-head--404 { text-align: center; margin-inline: auto; }
.big-404 { margin: 0; font: italic 900 clamp(6rem, 22vw, 12rem)/.9 var(--font-display); color: var(--palm); }
.big-404 span { color: var(--achiote-hot); }
.page-head--404 .btn { margin-top: 10px; }

.empty { padding: 32px; border: var(--line); border-radius: var(--r-lg); background: var(--paper); max-width: 720px; }
.empty .search-form { margin-top: 16px; }

/* ---------- Single ---------- */
.entry-head { max-width: 920px; text-align: center; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(20px, 3vw, 32px); }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .9rem; font-weight: 700; }
.crumbs a { text-decoration: none; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); }
.crumbs a:hover { background: var(--sun); }
.crumbs .sep { opacity: .4; }
.crumbs [aria-current] { color: var(--ink-soft); max-width: min(18em, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-title { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; line-height: 1; overflow-wrap: anywhere; }
.entry-lede { max-width: 640px; margin: 0 auto 18px; font-size: 1.2rem; color: var(--ink-soft); }
.entry-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--sun-soft); font-weight: 700; font-size: .9rem; }

.entry-figure { margin: 0 auto clamp(28px, 5vw, 48px); max-width: calc(1140px + var(--gutter) * 2); }
.entry-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: var(--line); border-radius: var(--r-xl); box-shadow: 10px 10px 0 var(--palm); }

/* The article is a size container, so full/wide blocks can use its real width (cqi)
   instead of 100vw, which includes the scrollbar and pushes the page sideways. */
.entry { container-type: inline-size; }
.prose { max-width: calc(720px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); font-size: 1.14rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p:first-of-type::first-letter {
	float: left;
	margin: .06em .12em 0 0;
	font: italic 900 4.4em/.8 var(--font-display);
	color: var(--achiote);
}
.prose h2 { margin-top: 2em; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
.prose h2::after { content: ""; display: block; width: 64px; height: 8px; margin-top: 12px; border-radius: 99px; background: var(--sun); }
.prose h3 { margin-top: 1.6em; font-size: 1.45rem; }
.prose a { color: var(--palm); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--sun); }
.prose a:hover { text-decoration-color: var(--achiote-hot); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--achiote-hot); font-size: 1.2em; }
.prose ol li::marker { color: var(--palm); font-family: var(--font-display); font-weight: 800; }
.prose blockquote { margin-inline: 0; padding: 20px 24px; border-left: 8px solid var(--sun); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--paper); font: italic 500 1.25rem/1.5 var(--font-display); }
.prose img, .prose .wp-block-image img { border-radius: var(--r-lg); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); text-align: center; }
/* Wide tables scroll inside their own box (classic-editor tables are wrapped in .table-scroll by PHP). */
.prose .wp-block-table, .prose .table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; overflow-wrap: normal; }
.prose pre { max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1.5px solid #d9cdb8; text-align: left; }
.prose th { background: var(--sun-soft); }
.prose hr { border: 0; height: 10px; background: radial-gradient(circle, var(--ink) 1.6px, transparent 2px) 0 50% / 14px 10px repeat-x; opacity: .4; }
.prose .alignwide { --wide: min(1000px, 100cqi - var(--gutter) * 2); width: var(--wide); max-width: none; margin-inline: calc(50% - var(--wide) / 2); }
.prose .alignfull { width: 100cqi; max-width: none; margin-inline: calc(50% - 50cqi); }
@supports not (width: 1cqi) {
	.prose .alignwide, .prose .alignfull { width: auto; max-width: 100%; margin-inline: 0; }
}
.prose iframe, .prose embed, .prose object, .prose video, .prose figure, .prose .wp-block-embed { max-width: 100%; }

/* Recipe card plugins (WP Recipe Maker, Tasty, Create) */
.prose .wprm-recipe-container,
.prose .tasty-recipes,
.prose .mv-create-card {
	border: var(--line) !important;
	border-radius: var(--r-lg) !important;
	background: var(--paper) !important;
	box-shadow: var(--shadow-hard);
	padding: 24px !important;
	max-width: 100%;
}
.prose .wprm-recipe-name, .prose .tasty-recipes-title { font-family: var(--font-display) !important; }
.prose .wprm-recipe-jump, .prose .wprm-recipe-print { border-radius: 999px !important; }

.entry-foot { margin-top: 36px; display: grid; gap: 28px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { padding: 4px 14px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--paper); }
.tag-chip:hover { background: var(--sun); }
.page-links { display: flex; gap: 8px; font-weight: 700; }

.adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px; }
.adjacent-item { padding: 18px 20px; border: var(--line); border-radius: var(--r-md); background: var(--paper); }
.adjacent-next { text-align: right; grid-column: 2; }
.adjacent-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--achiote); }
.adjacent-item a { font: 700 1.1rem/1.3 var(--font-display); text-decoration: none; }
.adjacent-item a:hover { text-decoration: underline; }
@media (max-width: 600px) { .adjacent { grid-template-columns: minmax(0, 1fr); } .adjacent-next { grid-column: auto; text-align: left; } }

.after-post-widget { text-align: center; }

/* ---------- Comments ---------- */
.comments-wrap { margin-top: 24px; }
.comments { padding: 0; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 20px 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 18px 20px; border: var(--line); border-radius: var(--r-md); background: var(--paper); margin-bottom: 14px; }
.comment-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.comment-avatar { border-radius: 50%; border: var(--line); }
.comment-name a { text-decoration: none; }
.comment-head time { display: block; font-size: .85rem; color: var(--ink-soft); }
.comment-text { overflow-wrap: anywhere; }
.comment-text p { margin: 0 0 .6em; }
.comment-reply-link { font-weight: 700; color: var(--palm); }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 12px 14px; border: var(--line); border-radius: var(--r-sm); background: var(--paper); font: inherit; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Search form ---------- */
.search-form .btn { min-height: 48px; }
@media (max-width: 420px) { .search-form .btn span { display: none; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; background: var(--palm-deep); color: var(--cream); }
.footer-wave {
	position: absolute; left: 0; right: 0; top: -1px;
	height: 18px;
	background: radial-gradient(14px 12px at 50% 0, var(--cream) 98%, transparent) 0 0 / 28px 18px repeat-x;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 32px; padding-top: 72px; padding-bottom: 40px; align-items: start; }
.footer-brand .brand-img { height: 48px; }
.footer-brand p { max-width: 42ch; color: #d9cfbd; margin: 16px 0 0; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.footer-list a, .footer-link {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border: 1.5px solid rgba(251, 243, 228, .45); border-radius: 999px;
	text-decoration: none; font-weight: 700; font-size: .95rem;
	transition: background-color .18s, color .18s;
}
.footer-list a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px dashed rgba(251, 243, 228, .3); font-size: .9rem; color: #cfc4b0; }
.footer-base p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--sun); }
@media (max-width: 760px) {
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.footer-list { justify-content: flex-start; }
}

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky .card-title::before { content: "\2605\00a0"; color: var(--achiote); }
.bypostauthor > .comment-body { border-color: var(--palm); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 10px; }

/* ---------- Google Auto Ads ----------
 * No manual slots: Auto Ads decides placement. These rules only make sure
 * whatever Google injects fits the layout.
 */
/* In a grid or flex row an ad takes a full row of its own (grids use "dense",
   so the cards around it close up instead of leaving holes). */
.google-auto-placed,
ins.adsbygoogle:not([data-anchor-status]):not([data-vignette-loaded]) {
	grid-column: 1 / -1;
	flex: 1 0 100%;
	min-width: 0;
	clear: both;
}
.google-auto-placed { width: 100%; max-width: 100%; }
/* Slots Google could not fill collapse completely. */
ins.adsbygoogle[data-ad-status="unfilled"],
.google-auto-placed:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }

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