/*
Theme Name: Izbilir Mercado
Theme URI: https://izbilir.com/
Author: izbilir.com
Description: A warm, market-ticket recipe theme made for izbilir.com. Papel picado header, recipe "ticket" cards, rotating Popular Topics beside or under every post, and a Header widget area printed right after the header for analytics and ad code.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: izbilir
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, grid-layout
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #F7EFE2;
	--paper-2: #EFE2CC;
	--card: #FFFBF4;
	--ink: #2B1A12;
	--ink-2: #5B4537;
	--ink-3: #8A7262;
	--chile: #B4321E;
	--chile-d: #8E2414;
	--marigold: #F29F05;
	--marigold-l: #FFD27A;
	--pumpkin: #E36414;
	--agave: #1E5B52;
	--agave-d: #153F39;
	--rosa: #D9487A;
	--line: rgba(43, 26, 18, .16);

	--f-display: "Calistoga", "Georgia", serif;
	--f-body: "Karla", "Helvetica Neue", Arial, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--r-lg: 22px;
	--r-md: 14px;
	--r-sm: 8px;
	--wrap: 1280px;
	--gut: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--marigold-l); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; z-index: 999;
	top: 10px; left: 10px; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm);
}

.btn {
	display: inline-flex; align-items: center; gap: .5em; min-height: 46px;
	padding: .7em 1.25em; border: 0; border-radius: 999px;
	font: 700 .95rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none;
	transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--chile { background: var(--chile); color: #fff; box-shadow: 0 3px 0 var(--chile-d); }
.btn--chile:hover { background: var(--chile-d); transform: translateY(-1px); }
.btn--chile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--chile-d); }

.chip {
	display: inline-flex; align-items: center; min-height: 32px; padding: .2em .8em;
	border: 1.5px solid var(--ink); border-radius: 999px;
	font: 700 .78rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
	transition: background-color .18s, color .18s;
}
.chip:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--paper); }

/* Papel picado: a string of cut-paper flags. */
.picado {
	height: 54px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='336' height='54' viewBox='0 0 336 54'%3E%3Cpath d='M0 3 H336' stroke='%232B1A12' stroke-width='2'/%3E%3Cg%3E%3Cpath d='M6 3h72v38c-4 0-4 6-9 6s-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6z' fill='%23B4321E'/%3E%3Cpath d='M90 3h72v38c-4 0-4 6-9 6s-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6z' fill='%23F29F05'/%3E%3Cpath d='M174 3h72v38c-4 0-4 6-9 6s-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6z' fill='%231E5B52'/%3E%3Cpath d='M258 3h72v38c-4 0-4 6-9 6s-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6-4 6-9 6-5-6-9-6z' fill='%23D9487A'/%3E%3C/g%3E%3Cg fill='%23F7EFE2'%3E%3Ccircle cx='42' cy='20' r='6'/%3E%3Ccircle cx='42' cy='9' r='2.5'/%3E%3Ccircle cx='42' cy='31' r='2.5'/%3E%3Ccircle cx='31' cy='20' r='2.5'/%3E%3Ccircle cx='53' cy='20' r='2.5'/%3E%3Cpath d='M126 12l8 8-8 8-8-8z'/%3E%3Ccircle cx='112' cy='20' r='2.5'/%3E%3Ccircle cx='140' cy='20' r='2.5'/%3E%3Cpath d='M210 13a7 7 0 1 1 0 14a5 5 0 1 0 0-14z'/%3E%3Ccircle cx='198' cy='31' r='2'/%3E%3Ccircle cx='222' cy='9' r='2'/%3E%3Cpath d='M294 11l2.6 6 6.4.6-4.8 4.2 1.4 6.2-5.6-3.3-5.6 3.3 1.4-6.2-4.8-4.2 6.4-.6z'/%3E%3C/g%3E%3C/svg%3E")
		repeat-x left top / 336px 54px;
	transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) {
	.picado { animation: sway 7s ease-in-out infinite alternate; }
	@keyframes sway { from { background-position-x: 0; } to { background-position-x: 14px; } }
}

.header-bar {
	display: flex; align-items: center; gap: 24px;
	min-height: 84px; padding-block: 10px 14px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand svg, .brand .brand-img { height: 46px; width: auto; }
.brand:hover svg circle:first-of-type { transform-origin: center; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border-radius: 999px; font-weight: 700; text-decoration: none;
	transition: background-color .18s var(--ease);
}
.nav-list a:hover, .nav-list .current-menu-item > a { background: var(--paper-2); }
.nav-list .sub-menu { list-style: none; padding: 8px; margin: 0; position: absolute; min-width: 220px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-md); display: none; }
.nav-list li { position: relative; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }

.header-tools { display: flex; gap: 8px; margin-left: auto; }
.main-nav + .header-tools { margin-left: 0; }
.tool-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
	background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
	font-weight: 700; transition: background-color .18s, color .18s;
}
.tool-btn:hover, .tool-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

.search-drawer { border-top: 1.5px dashed var(--line); padding-block: 18px; background: var(--paper); }
.search-form { display: flex; gap: 10px; max-width: 720px; }
.search-field {
	flex: 1; min-width: 0; min-height: 50px; padding: 0 20px;
	border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card);
	font: inherit; color: var(--ink);
}
.search-field::placeholder { color: var(--ink-3); }

@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-block: 1.5px solid var(--ink); padding: 12px var(--gut) 18px; }
	.main-nav.is-open { display: block; }
	.nav-list { flex-direction: column; }
	.nav-list .sub-menu { position: static; display: block; border: 0; background: none; padding-left: 16px; }
	.header-tools, .main-nav + .header-tools { margin-left: auto; }
	.brand svg, .brand .brand-img { height: 38px; }
}
@media (max-width: 420px) {
	.tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.tool-btn { width: 46px; padding: 0; justify-content: center; }
}

/* ---------- Masthead / page heads ---------- */
.masthead { position: relative; padding-block: clamp(28px, 6vw, 72px) clamp(20px, 3vw, 36px); overflow: hidden; }
.masthead::after {
	content: ""; position: absolute; right: -60px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%);
	background: radial-gradient(circle, var(--chile) 0 13%, transparent 13.5%),
		conic-gradient(from 0deg, var(--marigold) 0 6%, var(--pumpkin) 6% 12.5%, var(--marigold) 12.5% 18.5%, var(--pumpkin) 18.5% 25%, var(--marigold) 25% 31%, var(--pumpkin) 31% 37.5%, var(--marigold) 37.5% 43.5%, var(--pumpkin) 43.5% 50%, var(--marigold) 50% 56%, var(--pumpkin) 56% 62.5%, var(--marigold) 62.5% 68.5%, var(--pumpkin) 68.5% 75%, var(--marigold) 75% 81%, var(--pumpkin) 81% 87.5%, var(--marigold) 87.5% 93.5%, var(--pumpkin) 93.5% 100%);
	border-radius: 50%; opacity: .9; z-index: 0;
	-webkit-mask: radial-gradient(circle, #000 64%, transparent 64.5%);
	mask: radial-gradient(circle, #000 64%, transparent 64.5%);
}
.masthead > * { position: relative; z-index: 1; }
.masthead-kicker {
	display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
	background: var(--agave); color: var(--paper);
	font: 700 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.masthead-title { max-width: 15ch; font-size: clamp(2.4rem, 6.4vw, 5.2rem); margin: 0; }
.masthead-title::first-line { color: var(--chile); }
@media (max-width: 700px) { .masthead::after { width: 150px; height: 150px; right: -60px; top: 22%; } .masthead-title { max-width: 11ch; } }

.page-head { padding-block: clamp(28px, 5vw, 56px) 20px; }
.page-title { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0; }
.archive-desc { max-width: 60ch; color: var(--ink-2); margin-top: 12px; }
.notfound .search-form { margin-top: 18px; }

/* ---------- Lead (newest post) ---------- */
.lead {
	display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: clamp(32px, 5vw, 56px);
	background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-lg); overflow: hidden;
}
.lead-media { display: block; height: 100%; min-height: 320px; background: var(--paper-2); }
.lead-media img, .lead-media .media-stand-in { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lead:hover .lead-media img { transform: scale(1.03); }
.lead-body { position: relative; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; border-left: 2px dashed var(--line); }
.lead-title { font-size: clamp(1.7rem, 3.2vw, 2.7rem); margin: 14px 0 12px; }
.lead-title a { text-decoration: none; background: linear-gradient(var(--marigold-l), var(--marigold-l)) left 88% / 0 30% no-repeat; transition: background-size .35s var(--ease); }
.lead-title a:hover { background-size: 100% 30%; }
.lead-excerpt { color: var(--ink-2); font-size: 1.1rem; }
.lead-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 24px; font-family: var(--f-mono); font-size: .85rem; }
.lead-facts b { color: var(--chile); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.lead-body > a { text-decoration: none; margin-top: auto; }
.stamp {
	display: inline-block; padding: 6px 12px; transform: rotate(-3deg);
	border: 2px solid var(--chile); border-radius: 6px; color: var(--chile);
	font: 700 .8rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 860px) {
	.lead { grid-template-columns: 1fr; }
	.lead-media { min-height: 0; aspect-ratio: 4 / 3; }
	.lead-body { border-left: 0; border-top: 2px dashed var(--line); }
}

/* ---------- Ticket cards ---------- */
.ticket-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: 1fr; }
@media (min-width: 600px) { .ticket-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ticket-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .ticket-grid { grid-template-columns: repeat(4, 1fr); } }

.ticket {
	position: relative; display: flex; flex-direction: column;
	background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-lg); overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ticket:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 6px 8px 0 var(--marigold); }
.ticket:nth-child(3n+2):hover { box-shadow: 6px 8px 0 var(--agave); }
.ticket:nth-child(3n):hover { box-shadow: 6px 8px 0 var(--rosa); }
.ticket > a, .lead > a, .pop-card > a { text-decoration: none; }
.ticket > a { display: block; }
.ticket-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.ticket-media img, .ticket-media .media-stand-in { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ticket:hover .ticket-media img { transform: scale(1.04); }
.ticket-body { position: relative; flex: 1; padding: 20px 20px 22px; border-top: 2px dashed var(--line); }
.ticket-body::before, .ticket-body::after {
	content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--paper); border: 1.5px solid var(--ink);
}
.ticket-body::before { left: -12px; }
.ticket-body::after { right: -12px; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font: 700 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.ticket-no { color: var(--chile); }
.ticket-serv { padding: 5px 9px; border-radius: 999px; background: #E3EFEC; color: var(--agave-d); }
.ticket-title { font-size: 1.32rem; margin: 0 0 8px; }
.ticket-title a { text-decoration: none; }
.ticket-title a:hover { color: var(--chile); }
.ticket-excerpt { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.55; }

.media-stand-in {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
	font: 400 clamp(3rem, 8vw, 5rem)/1 var(--f-display); color: var(--paper);
	background:
		radial-gradient(circle at 25% 25%, rgba(255,255,255,.18) 0 14%, transparent 15%),
		radial-gradient(circle at 75% 75%, rgba(255,255,255,.18) 0 14%, transparent 15%),
		var(--agave);
	background-size: 60px 60px, 60px 60px, auto;
}

/* ---------- Pagination ---------- */
.pagination { margin-block: clamp(32px, 5vw, 56px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px;
	border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card);
	font: 700 .9rem/1 var(--f-mono); text-decoration: none;
}
.page-numbers.current { background: var(--ink); color: var(--paper); }
a.page-numbers:hover { background: var(--marigold); }
.page-numbers.dots { border-color: transparent; background: none; }

/* ---------- Popular Topics ---------- */
.popular { margin-block: clamp(40px, 6vw, 80px); }
.popular-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.popular-kicker { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--marigold); color: var(--chile); font-size: 1.3rem; line-height: 1; }
.popular-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.popular-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pop-card > a { display: flex; text-decoration: none; height: 100%; }
.pop-media { display: block; overflow: hidden; background: var(--paper-2); }
.pop-media img, .pop-media .media-stand-in { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pop-card > a:hover .pop-media img { transform: scale(1.06); }
.pop-no { display: block; font: 700 .78rem/1 var(--f-mono); letter-spacing: .1em; color: var(--chile); }
.pop-title { display: block; font: 400 1.08rem/1.25 var(--f-display); }
.pop-card > a:hover .pop-title { color: var(--chile); }

/* Band: full-width grid on a coloured mat. */
.popular--band {
	padding: clamp(22px, 4vw, 44px); border-radius: calc(var(--r-lg) + 8px);
	background:
		radial-gradient(circle at 12px 12px, rgba(30, 91, 82, .14) 2.5px, transparent 3px) 0 0 / 24px 24px,
		var(--paper-2);
}
.popular--band .popular-list { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .popular--band .popular-list { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.popular--band .pop-card > a { flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-md); overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.popular--band .pop-card > a:hover { transform: translateY(-3px); box-shadow: 5px 6px 0 var(--chile); }
.popular--band .pop-media { aspect-ratio: 1 / 1; }
.popular--band .pop-body { position: relative; flex: 1; padding: 22px 14px 16px; }
.popular--band .pop-no {
	position: absolute; top: -18px; left: 12px; display: grid; place-items: center; width: 36px; height: 36px;
	border-radius: 50%; background: var(--marigold); color: var(--ink); border: 1.5px solid var(--ink);
}
@media (max-width: 480px) {
	.popular--band .popular-list { gap: 12px; }
	.popular--band .pop-title { font-size: .98rem; }
}

/* Aside: compact rows beside the article. */
.popular--aside { margin-block: 0 32px; }
.popular--aside .popular-list { grid-template-columns: 1fr; gap: 12px; counter-reset: pt; }
.popular--aside .pop-card > a { align-items: center; gap: 14px; padding: 10px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-md); transition: background-color .18s, transform .18s var(--ease); }
.popular--aside .pop-card > a:hover { background: #FFF3DA; transform: translateX(3px); }
.popular--aside .pop-media { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; }
.popular--aside .pop-media .media-stand-in { font-size: 2rem; }
.popular--aside .pop-body { min-width: 0; }
.popular--aside .pop-no { margin-bottom: 6px; }
.popular--aside .pop-title { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Single ---------- */
.reading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: clamp(18px, 3vw, 36px); }
@media (min-width: 1100px) {
	.reading { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 64px; }
	.entry, .reading-comments { max-width: 780px; grid-column: 1; }
	.side { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 600px) and (max-width: 1099px) {
	.popular--aside .popular-list { grid-template-columns: repeat(2, 1fr); }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; font: 700 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--chile); text-decoration: underline; }
.entry-title { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 22px; }
.entry-facts { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0 0 28px; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--card); overflow: hidden; width: fit-content; max-width: 100%; }
.entry-facts li { padding: 12px 18px; border-right: 1.5px dashed var(--line); font-weight: 700; }
.entry-facts li:last-child { border-right: 0; }
.entry-facts span { display: block; margin-bottom: 4px; font: 700 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--chile); }
.entry-hero { margin: 0 0 36px; position: relative; }
.entry-hero img { width: 100%; border-radius: var(--r-lg); border: 1.5px solid var(--ink); }
.entry-hero::before {
	content: ""; position: absolute; z-index: 1; top: -12px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(-2deg);
	background: rgba(242, 159, 5, .75); border-radius: 3px;
}

.entry-content { font-size: 1.125rem; line-height: 1.75; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.4em; }
.entry-content h4 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; }
.entry-content a { color: var(--chile); text-decoration-color: var(--marigold); }
.entry-content a:hover { color: var(--chile-d); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--marigold); content: "✿  "; font-size: .9em; }
.entry-content ol li::marker { color: var(--chile); font-family: var(--f-mono); font-weight: 700; }
.entry-content img, .entry-content figure img { border-radius: var(--r-md); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: .9rem; color: var(--ink-3); text-align: center; margin-top: 8px; }
.entry-content blockquote { margin: 2em 0; padding: 18px 24px; border-left: 6px solid var(--agave); background: #E3EFEC; border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 1.2rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--paper-2); }
.entry-content hr { border: 0; border-top: 2px dashed var(--line); margin: 2.5em 0; }
.entry-content .alignwide { margin-inline: calc(-1 * min(6vw, 60px)); max-width: none; }
.entry-content iframe { max-width: 100%; }
.page-links { margin: 2em 0; font-family: var(--f-mono); }

.entry-foot { margin-top: 40px; padding-top: 24px; border-top: 2px dashed var(--line); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: block; height: 100%; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--card); text-decoration: none; transition: background-color .18s; }
.post-navigation a:hover { background: #FFF3DA; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-kicker { display: block; font: 700 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chile); margin-bottom: 6px; }
.nav-title { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; }
@media (max-width: 600px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

.side-widgets .widget, .side-widgets > * { margin-bottom: 28px; }
.widget-title, .side-widgets h2, .footer-widgets h2 { font-size: 1.3rem; }
.side-widgets ul, .side-widgets ol, .footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.side-widgets li { padding: 8px 0; border-bottom: 1.5px dashed var(--line); }
.side-widgets a { text-decoration: none; font-weight: 700; }
.side-widgets a:hover { color: var(--chile); text-decoration: underline; }
.wp-block-search__label { display: block; font-weight: 700; margin-bottom: 8px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font: inherit; color: var(--ink); }
.wp-block-search__button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--chile); color: #fff; font-weight: 700; }
.wp-block-search__button:hover { background: var(--chile-d); }

/* ---------- Comments ---------- */
.reading-comments { margin-top: 48px; }
.comments { margin-top: 0; }
.comments-title, .comment-reply-title { font-size: 1.7rem; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: clamp(14px, 4vw, 40px); }
.comment-card { padding: 18px 20px; margin-bottom: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); }
.comment-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.comment-head img { border-radius: 50%; }
.comment-name { display: block; }
.comment-time { font: 500 .78rem/1 var(--f-mono); color: var(--ink-3); }
.comment-reply-link { font: 700 .8rem/1 var(--f-mono); text-transform: uppercase; color: var(--chile); }
.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 16px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--card); font: inherit; color: var(--ink);
}
.comment-form p { margin-bottom: 16px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

.empty-note { padding: 40px 0; }

/* ---------- Footer ---------- */
.site-footer { --logo-ink: #F7EFE2; position: relative; margin-top: clamp(40px, 6vw, 80px); background: var(--agave-d); color: #EFE6D6; }
.footer-scallop {
	position: absolute; top: -15px; left: 0; right: 0; height: 16px;
	background: radial-gradient(circle at 16px 16px, var(--agave-d) 15.5px, transparent 16px) repeat-x 0 0 / 32px 16px;
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-block: 56px 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand svg, .footer-brand .brand-img { height: 52px; }
.footer-tagline { margin-top: 16px; max-width: 36ch; color: #D6CBB7; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-list a { display: inline-block; padding: 8px 0; color: #F7EFE2; text-decoration: none; font-weight: 700; }
.footer-list a:hover { color: var(--marigold); text-decoration: underline; }
.footer-widgets .widget-title { color: var(--marigold); }
.footer-widgets a { color: #F7EFE2; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px 28px; border-top: 1.5px dashed rgba(247, 239, 226, .25); font: 500 .85rem/1.4 var(--f-mono); }
.footer-base p { margin: 0; }
.footer-base a { color: #F7EFE2; text-decoration: none; }
.footer-base a:hover { color: var(--marigold); }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* ---------- WordPress core bits ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption, .gallery-caption { max-width: 100%; }
.sticky, .bypostauthor { }
.wp-block-image img { height: auto; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ticket:hover, .pop-card > a:hover { transform: none !important; }
}
