/*
Theme Name: Christine Avanti
Theme URI: https://www.christineavanti.com
Author: Christine Avanti
Description: Block theme for christineavanti.com — a recipe-led site built around category discovery. Fraunces/Outfit/Caveat type system, magenta and plum palette.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 0.9.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: christine-avanti
Tags: blog, food-and-drink, block-patterns, full-site-editing
*/

/* -------------------------------------------------------------
   Base
   ------------------------------------------------------------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Visible focus for keyboard users — accessibility requirement */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--magenta);
	outline-offset: 2px;
	border-radius: 4px;
}

.ca-skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 9999;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--ink);
	color: #fff;
	border-radius: 999px;
}

/* Images never cause layout shift */
.wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------- */

.ca-announce {
	background: var(--wp--preset--color--ink);
	color: #fff;
	text-align: center;
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
	padding: 0.35rem 1rem;
}

.ca-announce em {
	color: var(--wp--preset--color--yellow);
	font-style: normal;
}

/* -------------------------------------------------------------
   Masthead
   ------------------------------------------------------------- */

/*
 * The whole header sticks, not its children: a sticky child can only travel
 * inside its own parent, and the template-part wrapper is only as tall as
 * the header itself, so it would never move.
 */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.ca-masthead { border-bottom: 1px solid var(--wp--preset--color--pink-tint); }

.ca-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 0;
	flex-wrap: wrap;
}

.ca-logo {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(1.6rem, 2.6vw, 1.875rem);
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0;
}

.ca-logo a { color: var(--wp--preset--color--ink); text-decoration: none; }
.ca-logo .ca-logo__accent { color: var(--wp--preset--color--magenta); }

.ca-tagline {
	font-family: var(--wp--preset--font-family--script);
	font-size: 1.125rem;
	color: var(--wp--preset--color--plum);
	margin: 0.2rem 0 0;
	line-height: 1;
}

/* Nav -------------------------------------------------------- */

.ca-nav ul {
	display: flex;
	gap: 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.ca-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	white-space: nowrap;
}

.ca-nav a:hover { color: var(--wp--preset--color--magenta-text); }

/* Search ----------------------------------------------------- */

/* No margin-left:auto — the row is space-between, so the nav sits
   between the brand and the search rather than hugging the logo. */
.ca-search {
	position: relative;
	display: flex;
	align-items: center;
}

.ca-search__icon {
	position: absolute;
	left: 0.95rem;
	width: 17px;
	height: 17px;
	color: var(--wp--preset--color--muted);
	pointer-events: none;
}

.ca-search input[type="search"] {
	border: 1px solid var(--wp--preset--color--pink-tint);
	background: var(--wp--preset--color--soft);
	border-radius: 999px;
	padding: 0.6rem 1.1rem 0.6rem 2.6rem;
	font-family: inherit;
	font-size: 0.9375rem;
	width: 230px;
	color: var(--wp--preset--color--ink);
}

.ca-search input[type="search"]::placeholder { color: var(--wp--preset--color--muted); }

/* Mobile nav toggle (CSS only, no JS) ------------------------- */

.ca-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.ca-nav-button {
	display: none;
	order: 3;
	margin-left: auto;
	width: 30px;
	cursor: pointer;
	padding: 6px 0;
}

.ca-nav-button span {
	display: block;
	height: 2px;
	background: var(--wp--preset--color--ink);
	margin: 5px 0;
	border-radius: 2px;
}

/* Tablet: nav collapses to the toggle, search stays in the bar */
@media (max-width: 1100px) {
	.ca-nav-button { display: block; }
	.ca-nav { display: none; order: 5; width: 100%; }
	.ca-nav-toggle:checked ~ .ca-nav { display: block; }
	.ca-nav ul { flex-direction: column; gap: 0.9rem; padding: 0.75rem 0 1.25rem; }
	.ca-search { order: 4; width: 100%; margin: 0.5rem 0 0; }
	.ca-search input[type="search"] { width: 100%; }
}

/*
 * Mobile: the reference drops the search out of the bar and into the
 * opened menu, so the bar is just logo + toggle.
 */
@media (max-width: 767px) {
	.ca-search { display: none; }
	.ca-nav-toggle:checked ~ .ca-search { display: flex; margin-top: 0.75rem; }
	.ca-masthead__inner { gap: 0; }
}

/* -------------------------------------------------------------
   Buttons / links
   ------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link,
.ca-btn {
	display: inline-block;
	border-radius: 999px;
	padding: 0.75rem 1.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
}

/* Default button: near-black, as in the reference */
.wp-block-button__link,
.ca-btn {
	background: var(--wp--preset--color--ink-deep);
	color: #fff;
}

/* Magenta variant: the About CTA and the footer YouTube button */
.ca-btn--pink,
.is-style-pink .wp-block-button__link {
	background: var(--wp--preset--color--magenta);
	color: #fff;
}

.wp-block-button__link:hover,
.ca-btn:hover { background: var(--wp--preset--color--plum); color: #fff; }
.ca-btn--pink:hover,
.is-style-pink .wp-block-button__link:hover { background: var(--wp--preset--color--plum); }

/* -------------------------------------------------------------
   Eyebrow / section headings
   ------------------------------------------------------------- */

.ca-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta-text);
	margin: 0 0 0.35rem;
}

.ca-script {
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	color: var(--wp--preset--color--plum);
	line-height: 1;
	margin: 0 0 0.25rem;
}

.ca-mark {
	background: linear-gradient(transparent 58%, var(--wp--preset--color--yellow) 58%);
	padding: 0 0.1em;
}

/* -------------------------------------------------------------
   Rails
   ------------------------------------------------------------- */

.ca-rail__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.6rem;
}

.ca-rail__head h2 { margin: 0; }

.ca-seeall {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta-text);
	white-space: nowrap;
	text-decoration: none;
}

.ca-card .wp-block-post-featured-image {
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 0;
	background: var(--wp--preset--color--pink-tint);
	aspect-ratio: 1 / 1;
}

.ca-card .wp-block-post-title {
	font-size: 1.125rem;
	line-height: 1.375;
	font-weight: 400;
	letter-spacing: -0.01em;
	margin: 0.25rem 0 0;
}

.ca-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.ca-card .wp-block-post-title a:hover { color: var(--wp--preset--color--magenta-text); }

.ca-card .wp-block-post-terms {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta);
	margin: 1rem 0 0;
}

.ca-card .wp-block-post-terms a { color: var(--wp--preset--color--magenta); text-decoration: none; }

/* -------------------------------------------------------------
   Category circles
   ------------------------------------------------------------- */

.ca-circles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.25rem 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 600px) { .ca-circles { grid-template-columns: repeat(4, 1fr); } }

.ca-circle { text-align: center; }
.ca-circle a { text-decoration: none; display: block; }

.ca-circle__img {
	display: block;
	width: 100%;
	max-width: 165px;
	margin: 0 auto 0.9rem;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--wp--preset--color--pink-card);
}

.ca-circle__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ca-circle__label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}

.ca-circle a:hover .ca-circle__label { color: var(--wp--preset--color--magenta-text); }

/* -------------------------------------------------------------
   Diet band
   ------------------------------------------------------------- */

.ca-diet { background: var(--wp--preset--color--plum); color: #fff; }
.ca-diet .ca-script { color: var(--wp--preset--color--yellow); }
.ca-diet h2 { color: #fff; margin: 0; }

.ca-pill {
	display: inline-block;
	padding: 0.7rem 1.6rem;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ca-pill:hover,
.ca-pill:focus-visible { background: #fff; border-color: #fff; color: var(--wp--preset--color--plum); }

/* -------------------------------------------------------------
   Hero  (geometry matched to the reference: 705x361 image, card
   inset 24px over its lower edge, 36px/45px headline)
   ------------------------------------------------------------- */

.ca-hero { background: var(--wp--preset--gradient--hero); }

.ca-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0.35rem 0 1.5rem;
}

@media (max-width: 600px) { .ca-hero__title { font-size: 1.875rem; } }

.ca-hero__feature { position: relative; }

.ca-hero__feature .wp-block-post-featured-image {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: 24px;
	overflow: hidden;
	margin: 0;
	background: rgba(255, 255, 255, 0.35);
}

.ca-hero__feature .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ca-hero__card {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 24px;
	padding: 24px;
	border-radius: 20px;
	background: rgba(254, 251, 253, 0.95);
}

.ca-hero__card .wp-block-post-title {
	font-size: 1.75rem;
	line-height: 1.15;
	margin: 0 0 0.4rem;
}

.ca-hero__card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.ca-hero__card .wp-block-post-excerpt { margin: 0; font-size: 0.9375rem; }
.ca-hero__card .wp-block-post-excerpt__excerpt { margin: 0; }
.ca-hero__card .ca-eyebrow { font-size: 0.72rem; }

/* "NEW" cards in the hero right column */
.ca-newlist { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

.ca-newflag {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(254, 251, 253, 0.7);
	border-radius: 20px;
	padding: 12px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.ca-newflag:hover { background: rgba(255, 255, 255, 0.95); }

.ca-newflag__thumb {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	overflow: hidden;
}

.ca-newflag__thumb:empty { display: none; }
.ca-newflag__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ca-newflag__tag {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta);
	margin-bottom: 0.1rem;
}

.ca-newflag__title {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.0625rem;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}

/*
 * Mobile hero: greeting and headline lead, then the featured recipe below.
 * The reference drops the featured card on narrow screens, but that is a
 * rendering fault in the prototype rather than a design decision.
 */
@media (max-width: 781px) {
	.ca-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
	.ca-hero .wp-block-columns { gap: 1.75rem; flex-wrap: wrap; }
	.ca-hero .wp-block-column { flex-basis: 100% !important; }
	.ca-hero .wp-block-column:first-child { order: 2; }

	.ca-hero__feature .wp-block-post-featured-image { aspect-ratio: 4 / 3; }

	.ca-hero__card {
		left: 16px;
		right: 16px;
		bottom: 16px;
		padding: 18px;
		border-radius: 16px;
	}

	.ca-hero__card .wp-block-post-title { font-size: 1.5rem; }
	.ca-hero__card .wp-block-post-excerpt { display: none; }
}

/* -------------------------------------------------------------
   Recipe index filters
   ------------------------------------------------------------- */

.ca-filters {
	background: var(--wp--preset--color--pink-tint);
	border-radius: 24px;
	padding: 1.5rem;
	margin: 2.5rem 0 3rem;
}

.ca-filters__row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.ca-filters__row:last-child { margin-bottom: 0; }

.ca-filters__label {
	flex: 0 0 80px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--plum);
}

.ca-chip {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #e9dee4;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
}

.ca-chip:hover { background: var(--wp--preset--color--pink-card); }
.ca-chip.is-active { background: var(--wp--preset--color--magenta); border-color: var(--wp--preset--color--magenta); color: #fcfcfc; }

.ca-index__count { color: var(--wp--preset--color--muted); font-size: 0.875rem; line-height: 1.4286; margin: 0.5rem 0 0; }

/* -------------------------------------------------------------
   About strip
   ------------------------------------------------------------- */

.ca-about {
	background: var(--wp--preset--color--pink-card);
	border-radius: 24px;
	overflow: hidden;
}

.ca-about .wp-block-columns { gap: 0; margin: 0; align-items: stretch; }
.ca-about .wp-block-column { margin: 0; }

.ca-about__media {
	display: flex;
	align-self: stretch;
	min-height: 420px;
}

.ca-about__media img,
.ca-about__media .ca-about__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}
.ca-about__panel { padding: 3rem; }

@media (max-width: 781px) { .ca-about__panel { padding: 2rem; } }

/* -------------------------------------------------------------
   YouTube call to action
   ------------------------------------------------------------- */

.ca-ytcta {
	background: var(--wp--preset--color--yellow);
	border-radius: 24px;
	padding: 3rem 1.5rem;
	text-align: center;
}

.ca-ytcta h2 { margin: 0 0 0.5rem; }

/* -------------------------------------------------------------
   About page imagery (matched to the reference: 4:5 portrait,
   24px radius, press strip capped at 1112px)
   ------------------------------------------------------------- */

.ca-aboutimg { display: block; width: 100%; }

.ca-aboutimg--christine-avanti-portrait {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	height: auto;
}

.ca-aboutimg--as-seen-on-christine-avanti {
	max-width: 820px;
	margin-inline: auto;
	height: auto;
}

/*
 * The homepage card opts out entirely. height:100% cannot resolve against a
 * flex parent with no definite height, so the image fell back to its natural
 * 1500px. Absolute positioning against the column always resolves.
 */
.ca-about__media {
	position: relative;
	display: block;
	/* Square, like the reference — this is what sets the card height
	   and stops object-fit:cover cropping the bottom of the photo. */
	aspect-ratio: 1 / 1;
}

.ca-about__media > p { position: absolute; inset: 0; margin: 0; }

.ca-about__media img,
.ca-about__media .ca-about__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	aspect-ratio: auto;
	object-fit: cover;
	border-radius: 0;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */

.ca-footer {
	background: var(--wp--preset--color--ink-deep);
	color: #fff;
	padding-top: var(--wp--preset--spacing--60);
}

.ca-footer .ca-logo a { color: #fff; }
.ca-footer .ca-tagline { color: var(--wp--preset--color--magenta); }

.ca-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: var(--wp--preset--spacing--50);
}

@media (min-width: 782px) {
	.ca-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}

.ca-footer h2 {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--body);
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 1rem;
}

.ca-footer ul { list-style: none; padding: 0; margin: 0; }
.ca-footer li { margin-bottom: 0.5rem; }

.ca-footer a:not(.ca-btn) {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9375rem;
	text-decoration: none;
}

.ca-footer a:not(.ca-btn):hover { color: var(--wp--preset--color--magenta); }

/* Footer button is magenta and sentence case, as in the reference */
.ca-footer .ca-btn {
	background: var(--wp--preset--color--magenta);
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.9375rem;
	padding: 0.5rem 1.25rem;
}

.ca-footer .ca-btn:hover { background: #fff; color: var(--wp--preset--color--ink-deep); }

.ca-footer__blurb {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9375rem;
	margin: 1rem 0 1.4rem;
	max-width: 32ch;
}

.ca-colophon {
	text-align: center;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
	padding: 1.5rem 0;
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* -------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------
   Single recipe post
   ------------------------------------------------------------- */

.ca-single .wp-block-post-title {
	font-size: 3.75rem;
	line-height: 1.25;
	font-weight: 400;
	margin: 0.5rem 0 0;
}

@media (max-width: 781px) { .ca-single .wp-block-post-title { font-size: 2.25rem; } }

.ca-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin: 0 0 0.25rem;
}

.ca-pills a {
	background: var(--wp--preset--color--pink-card);
	color: var(--wp--preset--color--magenta);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	text-decoration: none;
}

.ca-pills a:hover { background: var(--wp--preset--color--magenta); color: #fff; }
.ca-pills .wp-block-post-terms__separator { display: none; }

.ca-byline {
	text-align: center;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
	margin: 0.75rem 0 1.5rem;
}

.ca-single .wp-block-post-content {
	font-size: 1.075rem;
	line-height: 1.8;
}

.ca-single .wp-block-post-content h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.ca-single .wp-block-post-content h3 { font-size: 1.375rem; margin-top: 2rem; }

/* Related posts */

.ca-related { margin-top: 4rem; }
.ca-related h2 { font-size: 1.875rem; margin: 0 0 1.5rem; }

.ca-related__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 782px) { .ca-related__grid { grid-template-columns: repeat(4, 1fr); } }

.ca-relcard a { text-decoration: none; display: block; }

.ca-related__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--pink-tint);
	margin-bottom: 0.75rem;
}

.ca-related__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ca-related__term {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta-text);
	margin-bottom: 0.2rem;
}

.ca-related__title {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	line-height: 1.25;
	color: var(--wp--preset--color--ink);
}

.ca-relcard a:hover .ca-related__title { color: var(--wp--preset--color--magenta-text); }

/* Jump to recipe — one magenta button, WPRM's own pair hidden */

.wprm-recipe-snippet { display: none !important; }

.ca-jumpwrap { display: flex; justify-content: center; margin: 0 0 2.5rem; }

.ca-jump-btn {
	background: var(--wp--preset--color--magenta);
	color: #fff;
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-block;
}

.ca-jump-btn:hover { background: var(--wp--preset--color--plum); color: #fff; }

/* -------------------------------------------------------------
   Recipe index header, matched to the reference
   ------------------------------------------------------------- */

.wp-block-query-title {
	font-size: 3rem;
	line-height: 1;
	font-weight: 400;
	letter-spacing: -0.01em;
	margin: 0.5rem 0 0;
}

.ca-card.wp-block-post-template {
	gap: 2.5rem 1.25rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 781px) {
	.wp-block-query-title { font-size: 2.25rem; }
	.ca-card.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Archive pagination */

.ca-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 3.5rem;
}

.ca-pager__label {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

.ca-pager__link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--magenta-text);
	text-decoration: none;
}

.ca-pager__link:hover { text-decoration: underline; }

/* --------------------------------------------------------------
   Post body prose — lists, quotes, tables
   -------------------------------------------------------------- */
.entry-content ul li::marker,
.entry-content ol li::marker {
	color: var(--wp--preset--color--magenta);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content .wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--magenta);
	padding: 0.25rem 0 0.25rem 1.5rem;
	margin: 2.5rem 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3125rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--wp--preset--color--plum);
}

.entry-content .wp-block-quote p {
	font-size: inherit;
	line-height: inherit;
	margin: 0;
}

.entry-content .wp-block-image {
	margin: 2.5rem 0;
}

.entry-content .wp-block-image img {
	border-radius: 20px;
}

.entry-content .wp-block-image figcaption,
.entry-content .wp-block-table figcaption {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--plum);
	text-align: center;
	margin-top: 0.75rem;
}

.entry-content .wp-block-table {
	margin: 2.5rem 0;
}

.entry-content .wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.entry-content .wp-block-table th {
	background: var(--wp--preset--color--pink-tint);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--plum);
	text-align: left;
	padding: 0.75rem 1rem;
	border: 0;
}

.entry-content .wp-block-table td {
	padding: 0.75rem 1rem;
	border: 0;
	border-top: 1px solid #ece2e8;
	font-size: 0.9375rem;
}

/* --------------------------------------------------------------
   Flatsome compatibility layouts (old builder posts)
   -------------------------------------------------------------- */
.ca-fs-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.ca-fs-col {
	flex: 1 1 calc(var(--ca-fs-span, 100%) - 1.5rem);
	min-width: min(100%, 240px);
}

.ca-fs-col > :first-child,
.ca-fs-textbox > :first-child,
.ca-fs-banner__text > :first-child {
	margin-top: 0;
}

.ca-fs-image,
.ca-fs-imagebox img,
.ca-fs-banner img {
	margin: 0 0 1rem;
}

.ca-fs-image img,
.ca-fs-imagebox img,
.ca-fs-banner img {
	width: 100%;
	height: auto;
	border-radius: 20px;
	display: block;
}

.ca-fs-slider {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	margin: 1.5rem 0;
}

.ca-fs-slider > * {
	flex: 0 0 80%;
	scroll-snap-align: start;
}

.ca-fs-video {
	margin: 2rem 0;
}

.ca-fs-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: 20px;
}

.ca-fs-divider {
	border: 0;
	border-top: 1px solid #ece2e8;
	margin: 2rem 0;
}

.ca-fs-posts {
	margin: 2rem 0;
}

.ca-single .wp-block-post-content .ca-related__title {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
}

.ca-fs-posts {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.ca-fs-col .ca-fs-posts {
	grid-template-columns: 1fr;
	margin: 0 0 1rem;
}

/* WordPress auto-paragraphs leave stray <br>/<p> between Flatsome columns. */
.ca-fs-row > br,
.ca-fs-row > p:empty,
.ca-fs-col > br:first-child,
.ca-fs-col > p:empty {
	display: none;
}

/* Card tile for posts with no photo at all. */
.ca-noimg {
	display: block;
	aspect-ratio: 1 / 1;
	width: 100%;
	background: var(--wp--preset--color--pink-tint) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23F12B93%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 13.87A4 4 0 0 1 7.41 6a5.11 5.11 0 0 1 1.05-1.54 5 5 0 0 1 7.08 0A5.11 5.11 0 0 1 16.59 6 4 4 0 0 1 18 13.87V21H6Z%27/%3E%3Cline x1=%276%27 x2=%2718%27 y1=%2717%27 y2=%2717%27/%3E%3C/svg%3E") center / 22% no-repeat;
}

/* Hero feature: the post template is a <ul>; drop the browser list indent so
   the photo and the overlay card share the same edges. */
.ca-hero__feature,
ul.ca-hero__feature {
	padding: 0;
	margin-left: 0;
	list-style: none;
}

/* Launch fixes */
.wp-block-post-content:has(> .ca-fs-section, > .ca-fs-text, > .ca-fs-row) {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
	box-sizing: border-box;
}
.ca-fs-text,
.ca-fs-col {
	min-width: 0;
	overflow-wrap: break-word;
}
@media (max-width: 849px) {
	.ca-fs-col {
		--ca-fs-span: 100% !important;
		flex-basis: 100% !important;
		max-width: 100% !important;
	}
}
@media (max-width: 600px) {
	.ca-fs-text [style*="font-size"] {
		font-size: inherit !important;
	}
}
.wprm-recipe-block-container-pills .wprm-recipe-details-label {
	margin-right: 0.35em;
}

/* Aligned images inside old posts */
.wp-block-post-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
	max-width: 50%;
	height: auto;
}
.wp-block-post-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
	max-width: 50%;
	height: auto;
}
.wp-block-post-content img.aligncenter {
	display: block;
	margin-inline: auto;
}
.wp-block-post-content::after {
	content: "";
	display: table;
	clear: both;
}
.wp-block-post-content :is(h2, h3, h4, hr, .wprm-recipe-container) {
	clear: both;
}
@media (max-width: 600px) {
	.wp-block-post-content .alignleft,
	.wp-block-post-content .alignright {
		float: none;
		display: block;
		margin: 1em auto;
		max-width: 100%;
	}
}

/* Recipe card photo keeps a steady size */
.wprm-recipe .ca-head-media {
	flex: 0 0 auto;
	width: min(260px, 100%);
}
.wprm-recipe .ca-head-media .wprm-recipe-image,
.wprm-recipe .ca-head-media img {
	width: 100% !important;
	max-width: 100% !important;
}
.wprm-recipe .ca-head-media img {
	height: auto !important;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}
