/* ==========================================================================
   Cocotte theme styles
   Colors, fonts and sizes come from theme.json (var(--wp--preset--...)).
   ========================================================================== */

:root {
	--cl-header-h: 104px;
	--cl-primary: var(--wp--preset--color--primary);
	--cl-accent: var(--wp--preset--color--accent);
	--cl-band: var(--wp--preset--color--band);
	--cl-callout: var(--wp--preset--color--callout);
	--cl-text: var(--wp--preset--color--foreground);
	--cl-muted: var(--wp--preset--color--muted);
	--cl-border: var(--wp--preset--color--border);
	--cl-label: 14px;
}

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.cl-main { margin-top: 0; }

/* Small uppercase label style shared by breadcrumbs, links, actions */
.cl-breadcrumbs,
.cl-link-btn,
.cl-action,
.cl-share__label,
.cl-share__btn,
.cl-terms a,
.wp-block-comment-reply-link {
	font-size: var(--cl-label);
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */
.cl-announcement { padding-top: 7px; padding-bottom: 7px; }
.cl-announcement__inner { gap: 16px; min-height: 32px; }
/* No social links yet: the message stays centered */
.cl-announcement__inner:not(:has(.cl-social)) { justify-content: center !important; text-align: center; }
.cl-announcement p { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.cl-announcement a { color: inherit; text-decoration: none; }
.cl-announcement p a:hover { text-decoration: underline; }
/* Social icons on the right, like The Cookie Rookie's top bar */
.cl-announcement .cl-social { flex: none; flex-wrap: nowrap; margin-right: -10px; }
.cl-announcement .cl-social a { height: 32px; color: inherit; }
.cl-announcement .cl-social a:hover,
.cl-announcement .cl-social a:focus-visible { color: inherit; opacity: 0.7; }
/* Phones: only the message, centered; the icons move into the menu (.cl-nav-social) */
@media (max-width: 599px) {
	.cl-announcement__inner { justify-content: center !important; text-align: center; }
	.cl-announcement .cl-social { display: none; }
}

/* --------------------------------------------------------------------------
   Header (sticky)
   -------------------------------------------------------------------------- */
.cl-sticky {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--background);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.admin-bar .cl-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .cl-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cl-sticky { top: 0; } }
/* Hides while scrolling down, comes back on the way up (theme.js sets nav-up / nav-down, like Salt & Lavender) */
.cl-sticky { transition: transform 0.3s ease; }
body.nav-up .cl-sticky { transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px))); }
@media (prefers-reduced-motion: reduce) { .cl-sticky { transition: none; } }

.cl-header__inner { min-height: var(--cl-header-h); gap: 24px; }
.cl-header__brand { flex-shrink: 0; }
/* Logo box: up to 350 x 72 on desktop; from 975px down, up to 250 x 50 in a 66px header (like The Cookie Rookie) */
.cl-header__brand .wp-block-site-logo img { max-width: 350px; max-height: 72px; width: auto; }
.cl-header__brand .wp-block-site-logo ~ .cl-logo-text { display: none; }
.cl-logo-text { margin: 0; white-space: nowrap; }
.cl-logo-text a { color: var(--cl-text); }

.cl-header__nav { gap: 8px; }
.cl-nav .wp-block-navigation-item__content { padding: 14px 16px; }
.cl-nav .wp-block-navigation__container { gap: 0; }
.cl-nav .wp-block-navigation-item__content:hover { color: var(--cl-accent); }

/* "+" instead of the chevron on items with a dropdown */
.cl-nav .wp-block-navigation__submenu-icon { width: 14px; height: 14px; margin-left: -10px; margin-right: 6px; }
.cl-nav .wp-block-navigation__submenu-icon svg { display: none; }
.cl-nav .wp-block-navigation__submenu-icon::before { content: "+"; font-size: 18px; font-weight: 400; line-height: 14px; }

.cl-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	padding: 8px 0;
	min-width: 220px !important;
}
.cl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	text-transform: none;
	font-weight: 400;
	font-size: 1rem;
	padding: 10px 20px;
	line-height: 1.3;
}

.cl-search .wp-block-search__button {
	background: none;
	color: var(--cl-text);
	padding: 8px;
	margin: 0;
	border: 0;
}
.cl-search .wp-block-search__button svg { width: 26px; height: 26px; min-width: 26px; fill: currentColor; }
.cl-search .wp-block-search__input { border: 1px solid var(--cl-border); border-radius: 3px; padding: 8px 12px; font-size: 1rem; }
.cl-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper { border: 0; }

/* Mobile menu overlay */
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.cl-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.125rem; padding: 12px 0; }
.cl-nav .is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; padding: 0 0 8px 16px !important; }
.cl-nav .is-menu-open .wp-block-navigation__submenu-icon::before { content: none; }
.cl-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.cl-nav .is-menu-open .wp-block-navigation__container,
.cl-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.cl-nav .is-menu-open .wp-block-navigation__container { width: 100%; }
.cl-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--cl-border); }
/* Social icons right under the menu links (phone menu only) */
.cl-nav-social { display: none; }
.cl-nav .is-menu-open .cl-nav-social { display: block; width: 100%; padding-top: 12px; }
.cl-nav .is-menu-open .cl-nav-social .cl-social { justify-content: flex-start; margin-left: -10px; }

/* Below 1080px the five menu links don't fit beside the logo, so tablets and small laptops
   get the menu button and overlay menu too (core only switches at 600px). */
@media (max-width: 1079px) {
	.cl-header__nav .cl-search { order: -1; }
	.cl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.cl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.cl-nav .wp-block-navigation__responsive-container-close:not(.always-shown) { display: flex; }
}
/* The opened header search drops into a full-width row under the header instead of growing
   inside it (on phones that pushed the menu button off the screen; on desktop it pushed the
   menu links onto a second row). On wide screens the text lines up with the page content. */
.cl-header .cl-search,
.cl-header .cl-search .wp-block-search__inside-wrapper { position: static; }
.cl-header .cl-search .wp-block-search__inside-wrapper { width: auto !important; min-width: 0 !important; border: 0; }
.cl-header .cl-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: auto !important;
	margin: 0;
	padding: 12px max(16px, calc((100% - 1168px) / 2));
	border: 0;
	border-top: 1px solid var(--cl-border);
	border-radius: 0;
	background: var(--wp--preset--color--background);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
	font-size: 1rem;
}
@media (max-width: 975px) {
	:root { --cl-header-h: 66px; }
	/* Narrow phones: the logo shrinks so the search and menu buttons always fit */
	.cl-header__brand .wp-block-site-logo img { max-width: min(250px, calc(100vw - 140px)); max-height: 50px; }
}
@media (max-width: 781px) {
	.cl-logo-text { font-size: 2.1rem !important; }
	.cl-header__inner { gap: 8px; }
}

/* --------------------------------------------------------------------------
   Tinted bands (post, page, archive, home hero)
   -------------------------------------------------------------------------- */
.cl-band { padding-top: 24px; padding-bottom: 40px; }
.cl-post-header { padding-bottom: 24px; }
/* Post title band: dark with the kitchen doodle print, like the recipe index bands */
.cl-post-header {
	background-color: var(--wp--preset--color--primary) !important;
	background-image: url(../../../../../../../../themes/cocotte/assets/images/pattern-kitchen.svg);
	background-size: 300px;
	color: var(--wp--preset--color--background);
}
.cl-post-header :is(.cl-title, .cl-breadcrumbs, .cl-breadcrumbs a, .cl-meta a, .cl-link-btn, .cl-action) { color: inherit; }
.cl-post-header .cl-breadcrumbs__sep { color: inherit; opacity: 0.6; }
.cl-post-header :is(.cl-link-btn, .cl-action):hover { color: inherit; opacity: 0.75; }

.cl-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0 0 40px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--cl-primary);
}
.cl-breadcrumbs a { color: var(--cl-primary); text-decoration: underline; text-underline-offset: 3px; }
.cl-breadcrumbs a:hover { text-decoration: none; }
.cl-breadcrumbs a[aria-current] { text-decoration: underline; }
.cl-breadcrumbs__sep { display: inline-flex; color: var(--cl-muted); }

.cl-title,
h1.cl-title {
	margin: 0 0 16px;
	font-size: var(--wp--preset--font-size--colossal);
	text-transform: uppercase;
	line-height: 1.1;
}

/* Post meta line + actions */
.cl-post-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin-top: 8px;
}
.cl-post-meta__info { display: flex; align-items: center; gap: 8px; }
/* flex: none + max-width: none: a long meta line must never squeeze the photo into an oval */
.cl-avatar { flex: none; }
.cl-avatar img { display: block; width: 64px; height: 64px; max-width: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.cl-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}
.cl-meta p { margin: 0; display: inline-flex; align-items: center; gap: 3px; }
.cl-meta a { color: var(--cl-text); }
.cl-meta__comments a { text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.cl-meta__comments a:hover { text-decoration: underline; }

.cl-post-meta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.cl-link-btn {
	display: inline-block;
	padding: 12px 0;
	font-weight: 600;
	line-height: 1.5;
	color: var(--cl-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.cl-link-btn:hover { text-decoration: none; color: var(--cl-primary); }
.cl-source-btn { display: inline-flex; align-items: center; gap: 6px; }
.cl-source-btn svg { flex: none; }
.cl-action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-weight: 500;
	line-height: 1;
	color: var(--cl-text);
	text-decoration: none;
	cursor: pointer;
}
.cl-action:hover { color: var(--cl-accent); }

@media (max-width: 767px) {
	.cl-post-meta { display: block; }
	.cl-post-meta__info { align-items: flex-start; }
	.cl-meta__author,
	.cl-meta__date { flex-basis: 100%; }
	.cl-meta { gap: 6px 10px; padding-top: 4px; }
	.cl-post-meta__actions { margin-top: 8px; gap: 8px 20px; }
	.cl-source-btn { order: 1; flex-basis: 100%; padding: 0 0 4px; }
	.cl-action__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.cl-action svg { width: 22px; height: 22px; }
}

/* --------------------------------------------------------------------------
   Content + sidebar
   -------------------------------------------------------------------------- */
.cl-content-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 736px) 336px;
	justify-content: space-between;
	gap: 40px;
	max-width: 1232px;
	margin: 0 auto;
	padding: 16px 16px 0;
	box-sizing: border-box;
}
@media (max-width: 1023px) {
	.cl-content-sidebar { grid-template-columns: minmax(0, 1fr); max-width: 768px; }
}
.cl-entry { min-width: 0; }
.cl-entry > * { margin-top: 0; margin-bottom: 0; }
.cl-disclosure { font-size: 12px; line-height: 1.85; margin: 0 0 24px !important; }
.cl-disclosure a { color: var(--cl-accent); }

.cl-entry-content > * { margin-top: 16px; margin-bottom: 0; }
.cl-entry-content > :first-child { margin-top: 0; }
.cl-entry-content > h2 { margin-top: 40px; margin-bottom: 0; }
.cl-entry-content > h3 { margin-top: 32px; }
.cl-entry-content > h2 + *,
.cl-entry-content > h3 + * { margin-top: 12px; }
/* Lists: accent arrowheads (S&L); numbered steps keep accent numbers. The recipe card styles its own lists. */
.cl-entry-content :is(ul, ol):not(.wprm-recipe-container *, .wp-block-social-links, .wp-block-gallery, .blocks-gallery-grid) { padding-left: 40px; }
.cl-entry-content li:not(.wprm-recipe-container *) + li { margin-top: 0; }
.cl-entry-content ul:not(.wprm-recipe-container *, .is-style-checks, .wp-block-social-links, .wp-block-gallery, .blocks-gallery-grid, .wp-block-page-list, .wp-block-latest-posts) { list-style: none; }
.cl-entry-content ul:not(.wprm-recipe-container *, .is-style-checks, .wp-block-social-links, .wp-block-gallery, .blocks-gallery-grid, .wp-block-page-list, .wp-block-latest-posts) > li { position: relative; }
.cl-entry-content ul:not(.wprm-recipe-container *, .is-style-checks, .wp-block-social-links, .wp-block-gallery, .blocks-gallery-grid, .wp-block-page-list, .wp-block-latest-posts) > li::before {
	content: "\27A4";
	position: absolute;
	top: 0;
	left: -28px;
	color: var(--cl-accent);
}
.cl-entry-content ol:not(.wprm-recipe-container *) > li::marker { color: var(--cl-accent); font-weight: 700; }

.cl-entry-content figure img { display: block; margin-left: auto; margin-right: auto; }
.cl-entry-content .wp-block-image { position: relative; margin-top: 16px; }

/* "Save" button on post photos (shown on hover, like S&L's Social Pug button) */
.cl-pin-it {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e60023;
	color: #fff !important;
	opacity: 0;
	transition: opacity 0.2s;
}
.wp-block-image:hover .cl-pin-it,
.cl-pin-it:focus-visible { opacity: 1; }
@media (hover: none) { .cl-pin-it { display: none; } }

/* Callout boxes: the "Callout box" style, plus any tinted Group or Columns box in
   older posts (whatever colour or border it was saved with) */
.is-style-callout,
.single-post .cl-entry-content .wp-block-group.has-background:not(.is-style-tip, .feast-top-tip, .is-style-band),
.single-post .cl-entry-content .wp-block-columns.has-background {
	background: var(--cl-callout) !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--cl-text) !important;
	padding: 22.5px 42.75px !important;
	margin-top: 16px;
}
:is(.is-style-callout, .single-post .cl-entry-content .wp-block-group.has-background) > :first-child { margin-top: 0; }
:is(.is-style-callout, .single-post .cl-entry-content .wp-block-group.has-background) > * + * { margin-top: 16px; }
:is(.is-style-callout, .single-post .cl-entry-content .has-background) :is(h2, h3) {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--huge);
}

/* "5-star review" box (pattern cocotte/review): a reader's comment on yellow with the
   kitchen doodle print, after the first photo. Its colours come from here, not from the
   editor's colour setting, so the callout rule above never restyles it. The doodles
   take the text colour (mask), so changing "color" recolours them too. */
.cl-review {
	position: relative;
	isolation: isolate;
	padding: 32px 24px;
	background: #FBC940;
	color: var(--wp--preset--color--foreground);
	text-align: center;
}
.cl-review::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: currentColor;
	-webkit-mask: url(../../../../../../../../themes/cocotte/assets/images/pattern-kitchen.svg) 0 0 / 300px repeat;
	mask: url(../../../../../../../../themes/cocotte/assets/images/pattern-kitchen.svg) 0 0 / 300px repeat;
	pointer-events: none;
}
.cl-entry-content > .cl-review { margin-top: 24px; margin-bottom: 24px; }
.cl-review > * { margin: 0; }
.cl-review > * + * { margin-top: 12px; }
.cl-review__stars { font-size: 1.375rem; line-height: 1; letter-spacing: 3px; }
.cl-review__title { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--big); font-weight: 800; line-height: 1.2; }
.cl-review__quote { font-size: var(--wp--preset--font-size--medium); line-height: 1.75; }
.cl-review__name { font-weight: 700; }
@media (min-width: 768px) {
	.cl-review { padding: 40px 56px; }
}

/* Tip box (pattern cocotte/tip-box, Little Sunny Kitchen style): yellow rounded border, a
   hand-lettered "tip!" on the top-left edge (assets/images/tip-label.svg) and ruler ticks along
   the bottom. Both are drawn here, so any group with the class cl-tip gets them. */
.cl-tip {
	position: relative;
	padding: 30px 24px 32px;
	border: 4px solid #FBC940;
	border-radius: 8px;
	line-height: 1.5;
}
.cl-entry-content > .cl-tip { margin-top: 44px; margin-bottom: 24px; }
.cl-tip::before {
	content: "";
	position: absolute;
	top: -27px;
	left: 14px;
	width: 96px;
	height: 46px;
	padding: 0 10px;
	background: var(--wp--preset--color--background) var(--wpr-bg-7169da18-46a5-4c2c-adbc-ddd7f47fc5f5) no-repeat center / contain;
	background-origin: content-box;
}
.cl-tip::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	bottom: 1px;
	height: 9px;
	background: repeating-linear-gradient(90deg, var(--wp--preset--color--foreground) 0 2px, transparent 2px 5px);
}
.cl-tip > * { margin: 0; }
.cl-tip > * + * { margin-top: 12px; }
@media (max-width: 600px) {
	.cl-tip { padding: 28px 16px 30px; }
}

/* Pro tip box: outlined, title sitting on the top border (S&L "block-tip") */
.is-style-tip,
.single-post .cl-entry-content .feast-top-tip {
	background: var(--wp--preset--color--background) !important;
	border: 3px solid var(--cl-band) !important;
	border-radius: 0 !important;
	color: var(--cl-text) !important;
	padding: 0 40px 40px !important;
	margin-top: 48px !important;
}
.is-style-tip > :is(h2, h3, h4, .is-style-heading):first-child,
.single-post .cl-entry-content .feast-top-tip > :is(h2, h3, h4):first-child {
	display: block;
	width: fit-content;
	margin: calc(-0.6em - 1.5px) 0 0 !important;
	padding: 0 12px;
	background: var(--wp--preset--color--background);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 900;
	line-height: 1.2;
}
:is(.is-style-tip, .feast-top-tip) > * + * { margin-top: 16px; }
:is(.is-style-tip, .feast-top-tip):not(:has(> :is(h2, h3, h4, .is-style-heading):first-child)) { padding-top: 32px !important; }

/* Paragraph "Heading" style (headline look without adding a heading to the outline) */
p.is-style-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 900;
	line-height: 1.2;
}

/* Yoast FAQ block: bold questions between thick tinted rules. theme.js turns each
   question into a toggle (answers stay in the HTML, so search engines still read them). */
.schema-faq { border-bottom: 3px solid var(--cl-band); }
.schema-faq > * + * { margin-top: 16px; }
.schema-faq-question {
	display: block;
	padding: 32px 0 16px;
	border-top: 3px solid var(--cl-band);
	font-family: var(--wp--preset--font-family--system);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
}
.has-band-background-color .schema-faq-question { border-top-color: var(--wp--preset--color--background); }
.schema-faq-answer { margin: 0; padding-bottom: 0; }
.schema-faq--has-toggle .schema-faq-question { position: relative; padding-right: 52px; cursor: pointer; }
.schema-faq-toggle {
	position: absolute;
	top: calc(50% - 15px);
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cl-text);
	cursor: pointer;
	transition: transform 0.2s;
}
.schema-faq-section.active .schema-faq-toggle { transform: rotate(180deg); }

/* Yoast table of contents: tinted box, first 3 links, then "View all" (theme.js) */
.yoast-table-of-contents { background: var(--cl-band); }
.yoast-table-of-contents h2 {
	margin: 0;
	padding: 32px 32px 0;
	font-family: var(--wp--preset--font-family--system);
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
}
.cl-entry-content .yoast-table-of-contents ul { margin: 0; padding: 8px 32px 16px; list-style: none; }
.cl-entry-content .yoast-table-of-contents ul ul { padding: 0 0 0 20px; }
.cl-entry-content .yoast-table-of-contents li::before { content: none !important; }
.yoast-table-of-contents a { color: var(--cl-primary); }
.yoast-table-of-contents [hidden] { display: none; }
.yoast-table-of-contents__footer { display: flex; justify-content: flex-end; padding: 0 32px 16px; }
.yoast-table-of-contents__reveal {
	padding: 12px 0;
	border: 0;
	background: none;
	color: var(--cl-primary);
	font-family: inherit;
	font-size: var(--cl-label);
	font-weight: 600;
	letter-spacing: 0.7px;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-transform: uppercase;
	cursor: pointer;
}
.yoast-table-of-contents__reveal:hover { text-decoration: none; }

/* Quote: thin rules above and below, centered italic (S&L) */
blockquote.wp-block-quote {
	margin-left: 0;
	margin-right: 0;
	padding: 24px 0;
	border-top: 1px solid var(--cl-border);
	border-bottom: 1px solid var(--cl-border);
	font-style: italic;
	text-align: center;
}
blockquote.wp-block-quote > * { margin: 0; }
blockquote.wp-block-quote > * + * { margin-top: 16px; }
blockquote.wp-block-quote cite {
	display: block;
	margin-top: 16px;
	font-size: var(--wp--preset--font-size--tiny);
	font-style: normal;
	font-weight: 700;
}

/* Numbered list "Circled numbers" style */
ol.is-style-fancy { padding-left: 40px; list-style: none; }
ol.is-style-fancy > li { position: relative; }
ol.is-style-fancy > li::before {
	content: counter(list-item);
	position: absolute;
	top: 4px;
	left: -32px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border: 1px solid var(--cl-accent);
	border-radius: 50%;
	color: var(--cl-accent);
	font-size: 14px;
	line-height: 1;
}
ol.is-style-fancy > li + li { margin-top: 8px; }

/* Paragraph "Eyebrow" style: small uppercase label above a heading */
p.is-style-interface {
	font-family: var(--wp--preset--font-family--system);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
}
p.is-style-interface + :is(h1, h2, h3, h4, .wp-block-heading) { margin-top: 4px !important; }

/* Tables */
.cl-entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.6; }
.cl-entry-content .wp-block-table :is(th, td) { padding: 10px 14px; border: 1px solid var(--cl-border); text-align: left; }
.cl-entry-content .wp-block-table thead { border-bottom: 0; }
.cl-entry-content .wp-block-table thead th { background: var(--cl-band); font-weight: 700; }
.cl-entry-content .wp-block-table.is-style-stripes { border-bottom: 0; }
.cl-entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--cl-callout); }

.is-style-band { background: var(--cl-band); padding: 32px 40px; }

ul.is-style-checks { list-style: none; padding-left: 0; }
ul.is-style-checks li { position: relative; padding-left: 30px; }
ul.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.55em;
	width: 14px;
	height: 8px;
	border-left: 3px solid var(--cl-accent);
	border-bottom: 3px solid var(--cl-accent);
	transform: rotate(-45deg);
}

/* Underlined link buttons */
.wp-block-button.is-style-link .wp-block-button__link {
	background: none !important;
	color: var(--cl-primary) !important;
	padding: 12px 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Email signup box */
.cl-subscribe { padding: 32px; margin-top: 24px; }
.cl-subscribe > :first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Recipe grids
   -------------------------------------------------------------------------- */
.cl-listing { margin: 40px 0; }
.cl-listing__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0 16px;
	margin-bottom: 16px;
}
.cl-listing__title { margin: 0; font-size: var(--wp--preset--font-size--huge); }
.cl-listing__header .cl-link-btn { padding: 0; }

.cl-listing__inner { display: grid; gap: 32px; }
.layout-3up .cl-listing__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-4up .cl-listing__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-5up .cl-listing__inner { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.layout-6up .cl-listing__inner { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 16px; }
.layout-sidebar .cl-listing__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }

.cl-card { min-width: 0; }
.cl-card__image {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--cl-callout);
}
.cl-card__image img,
.cl-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.cl-card:hover .cl-card__image img { transform: scale(1.03); }
.cl-card__title,
.cl-grid .wp-block-post-title {
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--system);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	overflow-wrap: break-word;
	hyphens: auto;
}
.cl-card__title a,
.cl-grid .wp-block-post-title a { color: var(--cl-text); text-decoration: none; }
.cl-card__title a:hover,
.cl-grid .wp-block-post-title a:hover { color: var(--cl-accent); }
/* Category label on recipe cards: homepage only (below) */
.cl-card__cat { display: none; }

/* Time and rating row on every recipe card (Yellow Bliss Road style): clock + total
   time on the left, average rating + star on the right. Each part only appears when the
   recipe card has it. Boxed cards add their own padding further down. */
.cl-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px 8px;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.2;
	color: var(--wp--preset--color--foreground);
}
.cl-card__meta .cl-icon { flex: none; color: #FBC940; }
.cl-card__time,
.cl-card__rating { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cl-card__rating { margin-left: auto; }
@media (max-width: 600px) {
	/* Phone rows: keep the time/rating row in the text column beside the photo */
	.style-list .cl-card__image,
	.style-featured .cl-card:not(:first-child) .cl-card__image { grid-row: span 2; }
	.style-list .cl-card__meta,
	.style-featured .cl-card:not(:first-child) .cl-card__meta { grid-column: 2; }
}

/* Homepage recipe cards (Nora Cooks style): white box with a soft shadow, square photo, small
   lowercase category label over a bold Poppins title, equal heights in a row. */
.cl-home .cl-listing .cl-listing__inner { gap: 32px 16px; }
.cl-home .cl-listing .cl-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--background);
	box-shadow: 0 2px 8px rgba(33, 33, 33, 0.1);
}
.cl-home .cl-listing .cl-card__image { aspect-ratio: 1; }
.cl-home .cl-listing .cl-card__cat {
	display: block;
	padding: 16px 16px 0;
	font-family: var(--wp--preset--font-family--system);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
	text-transform: lowercase;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.cl-home .cl-listing .cl-card__cat:hover { text-decoration: underline; }
.cl-home .cl-listing .cl-card__title {
	flex: 1;
	margin: 0;
	padding: 16px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}
.cl-home .cl-listing .cl-card__cat + .cl-card__title { padding-top: 4px; }
/* Time/rating row pinned to the bottom of the card */
.cl-home .cl-listing .cl-card__meta { margin: 0; padding: 0 16px 16px; }
@media (max-width: 600px) {
	.cl-home .cl-listing .cl-listing__inner { gap: 16px 8px; }
	.cl-home .cl-listing .cl-card__title { font-size: 16px; }
	/* Phone rows ("list", and "featured" after the first card): square photo on the left */
	.cl-home .cl-listing.style-list .cl-card,
	.cl-home .cl-listing.style-featured .cl-card:not(:first-child) {
		display: grid;
		grid-template-columns: 138px minmax(0, 1fr);
		grid-template-rows: auto 1fr auto;
		align-items: start;
		gap: 0;
	}
	.cl-home .cl-listing.style-list .cl-card__image,
	.cl-home .cl-listing.style-featured .cl-card:not(:first-child) .cl-card__image { grid-row: 1 / -1; }
	.cl-home .cl-listing.style-list .cl-card__title,
	.cl-home .cl-listing.style-featured .cl-card:not(:first-child) .cl-card__title { margin: 0; }
}

/* Yellow dot pattern behind the right part of each boxed card grid (Yellow Bliss Road):
   small staggered dots every ~20px, showing between and around the white cards. Homepage,
   recipe index and category pages; not the sidebar, and not on phones. */
@media (min-width: 601px) {
	.cl-home .cl-listing:not(.layout-sidebar) .cl-listing__inner,
	.page-template-page-index .cl-listing .cl-listing__inner,
	.category .cl-listing .cl-listing__inner,
	.category .cl-grid {
		position: relative;
		isolation: isolate;
	}
	.cl-home .cl-listing:not(.layout-sidebar) .cl-listing__inner::before,
	.page-template-page-index .cl-listing .cl-listing__inner::before,
	.category .cl-listing .cl-listing__inner::before,
	.category .cl-grid::before {
		content: "";
		position: absolute;
		z-index: -1;
		top: 33px;
		bottom: -27px;
		left: 54%;
		right: -16px;
		background-image:
			radial-gradient(circle, #FBC940 0.75px, transparent 1.15px),
			radial-gradient(circle, #FBC940 0.75px, transparent 1.15px);
		background-size: 20px 20px;
		background-position: 0 0, 10px 10px;
		pointer-events: none;
	}
}

/* "See More" under the cards: phones only (the header link shows on larger screens) */
.cl-listing__more { display: none; margin: 16px 0 0; text-align: right; }
.cl-listing__more .cl-link-btn { padding: 0; }

/* Tablets keep the full number of columns, as on S&L; the sidebar grid widens once
   the sidebar drops under the post. Phone layouts start at 600px. */
@media (max-width: 1023px) {
	.layout-sidebar .cl-listing__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.cl-listing__header .cl-link-btn { display: none; }
	.cl-listing__more { display: block; }
	.cl-listing .cl-listing__inner { grid-template-columns: minmax(0, 1fr) !important; gap: 16px 8px; }
	.layout-sidebar .cl-listing__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 16px; }
	/* Phone styles (S&L): "featured" = big first card then rows, "list" = rows, "grid" = two columns */
	.style-list .cl-card,
	.style-featured .cl-card:not(:first-child) {
		display: grid;
		grid-template-columns: 138px minmax(0, 1fr);
		align-items: start;
		gap: 0 16px;
	}
	.style-list .cl-card__title,
	.style-featured .cl-card:not(:first-child) .cl-card__title { margin-top: 12px; }
	.style-grid .cl-listing__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.cl-card__title,
	.cl-grid .wp-block-post-title { font-size: 20px; }
}

/* Category tiles: 2 across on phones, 3 on small tablets, 4 from 900px (S&L).
   Up to four tiles always share one row from 767px, like S&L's homepage tiles. */
.cl-tiles { display: grid; grid-template-columns: repeat(var(--cl-cols, 2), minmax(0, 1fr)); gap: 8px; }
@media (min-width: 767px) {
	.cl-tiles { --cl-cols: 3; gap: 16px; }
	.cl-tiles:not(:has(> :nth-child(5))) { grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
}
@media (min-width: 900px) { .cl-tiles { --cl-cols: 4; } }
.cl-tile {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--cl-callout);
}
.cl-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cl-tile:hover img { transform: scale(1.03); }
.cl-tile__label {
	position: absolute;
	top: 16px;
	left: 0;
	padding: 8px 12px;
	background: var(--cl-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

/* Category circles ("Explore By"): 3 across on phones, 6 on tablets, 9 from 900px (S&L) */
.cl-circles { display: grid; grid-template-columns: repeat(var(--cl-cols, 3), minmax(0, 1fr)); gap: 8px; }
@media (min-width: 767px) { .cl-circles { --cl-cols: 6; gap: 16px; } }
@media (min-width: 900px) { .cl-circles { --cl-cols: 9; } }
.cl-circle { min-width: 0; color: var(--cl-primary); text-align: center; text-decoration: none; }
.cl-circle__image {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	background: var(--cl-callout);
}
.cl-circle__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cl-circle:hover .cl-circle__image img { transform: scale(1.05); }
.cl-circle__label {
	display: block;
	padding: 8px 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}
.cl-circle:hover .cl-circle__label { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.cl-home-hero { padding-top: 40px; padding-bottom: 40px; }
.cl-home-hero__title {
	margin: 0 0 16px;
	font-size: var(--wp--preset--font-size--huge);
	text-transform: none;
	line-height: 1.1;
}
.cl-home-sections { padding-bottom: 0; }
.cl-home-sections > :first-child { margin-top: 40px; }
/* WordPress zeroes the last block's bottom margin in a group; keep S&L's 40px before a band */
.cl-home-sections > .cl-listing:last-child { margin-bottom: 40px; }

/* Thin rule between back-to-back recipe sections, and above the promo box when a
   section comes right before it (S&L puts an <hr> there; never next to a tinted band).
   Margins collapse, so it sits 40px below one section and 40px above the next. */
.cl-home .cl-listing + .cl-listing,
.cl-home .cl-listing + .cl-sections > .cl-listing:first-child {
	padding-top: 40px;
	border-top: 1px solid var(--cl-band);
}
.cl-home .cl-sections + .cl-promo-band { position: relative; margin-top: 81px; }
.cl-home .cl-sections + .cl-promo-band::before {
	content: "";
	position: absolute;
	top: -41px;
	right: 0;
	left: 0;
	height: 1px;
	background: var(--cl-band);
}
@media (max-width: 767px) {
	.cl-home .cl-sections + .cl-promo-band::before { right: 16px; left: 16px; }
}

/* Tinted full-width homepage bands (About, Explore By) */
.cl-home-band { padding-top: 40px; padding-bottom: 40px; }
.cl-home-band > * { margin-top: 0; margin-bottom: 0; }
.cl-home-band__title { margin: 0 0 16px; font-size: var(--wp--preset--font-size--huge); }

/* About band: photo with a white card overlapping it (S&L "block-about") */
.cl-about-band { position: relative; display: flex; align-items: flex-start; }
.cl-about-band > * { margin: 0; }
/* The Cocotte Girl badge in the corner (S&L has flowers there) */
.cl-about-band::after {
	content: "";
	position: absolute;
	right: 8px;
	bottom: -8px;
	z-index: 2;
	width: 120px;
	height: 120px;
	background: var(--wpr-bg-abf14c27-ac47-451e-b712-ab4ced8ada68) no-repeat center / contain;
	pointer-events: none;
}
@media (max-width: 767px) { .cl-about-band::after { right: 12px; bottom: -32px; width: 80px; height: 80px; } }
.cl-about-band .cl-about-photo { flex: 0 0 300px; margin: 0; }
.cl-about-photo a { display: block; }
.cl-about-band .cl-about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 307; object-fit: cover; }
.cl-about-band__content,
.cl-promo-band__content {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	padding: 40px;
	background: var(--wp--preset--color--background);
	text-align: center;
}
.cl-about-band__content { margin: 24px 0 24px -40px !important; }
:is(.cl-about-band__content, .cl-promo-band__content) > * { margin-top: 0; margin-bottom: 0; }
:is(.cl-about-band__content, .cl-promo-band__content) > * + * { margin-top: 16px; }
:is(.cl-about-band__content, .cl-promo-band__content) p:not(.is-style-heading) { font-size: 16px; line-height: 1.85; }
:is(.cl-about-band__content, .cl-promo-band__content) .wp-block-buttons { justify-content: center; }

/* Promo band inside the content width (S&L cookbook / e-book box) */
.cl-promo-band { display: flex; align-items: center; margin: 40px 0; }
.cl-promo-band > * { margin: 0; }
.cl-promo-band .cl-feature-photo { flex: 0 0 344px; margin: 0; }
.cl-promo-band .cl-feature-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.cl-promo-band__content { margin: 24px 120px 24px -36px !important; }

@media (max-width: 767px) {
	.cl-home-band.cl-about-wrap { padding-top: 0; padding-left: 0; padding-right: 0; }
	.cl-about-band,
	.cl-promo-band { flex-direction: column; align-items: stretch; }
	.cl-about-band .cl-about-photo,
	.cl-promo-band .cl-feature-photo { flex: none; width: 100%; }
	.cl-about-band .cl-about-photo img { aspect-ratio: 1; }
	.cl-about-band__content { margin: -40px 24px 0 !important; padding: 24px; }
	.cl-promo-band { margin: 40px -16px; }
	.cl-promo-band__content { margin: 24px !important; padding: 24px; }
}
.cl-wide { padding-left: 16px; padding-right: 16px; }

/* --------------------------------------------------------------------------
   Archives (category, tag, search, blog): band with title + description side by
   side from 800px, "Popular" row, "All <Category>" and a 4-across grid (S&L)
   -------------------------------------------------------------------------- */
.cl-archive-header__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.cl-archive-header__row .cl-title { margin: 0; }
.cl-archive-header__desc > :first-child { margin-top: 0; }
.cl-archive-header__desc > :last-child { margin-bottom: 0; }
.cl-archive-header__search { max-width: 480px; }
@media (min-width: 800px) { .cl-archive-header__row { grid-template-columns: 360px minmax(0, 1fr); } }

.cl-archive-heading h2 { margin: 40px 0 16px; font-size: var(--wp--preset--font-size--huge); }
.cl-listing + .cl-archive-heading h2 { margin-top: 0; }
/* S&L starts the first row 16px under the band (the "Popular" row on page 1, the grid on later pages) */
.cl-archive .cl-wide > :is(.cl-listing, .cl-query):first-child { margin-top: 16px; }

.cl-grid { gap: 32px !important; }
.cl-grid .wp-block-post-featured-image { margin: 0; overflow: hidden; background: var(--cl-callout); }
.cl-grid .wp-block-post-featured-image img { object-fit: cover; transition: transform 0.35s ease; }
.cl-grid li:hover .wp-block-post-featured-image img { transform: scale(1.03); }
@media (max-width: 600px) { .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 8px !important; } }

/* Pagination: 44px squares, left-aligned, arrows only (S&L) */
.cl-pagination { margin: 32px 0; gap: 8px; }
.cl-pagination .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cl-pagination .page-numbers,
.cl-pagination .wp-block-query-pagination-previous,
.cl-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid var(--cl-primary);
	border-radius: 3px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.7px;
	color: var(--cl-primary);
	text-decoration: none;
	box-sizing: border-box;
}
/* Thin chevron instead of the "»" character */
.cl-pagination :is(.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow) {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
	background: currentColor;
	font-size: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cl-pagination .wp-block-query-pagination-previous-arrow { transform: scaleX(-1); }
.cl-pagination .page-numbers.current,
.cl-pagination a:hover { background: var(--cl-primary); color: #fff; }
.cl-pagination .page-numbers.dots { min-width: 0; padding: 0; border: 0; }

/* --------------------------------------------------------------------------
   Recipe index (The Cookie Rookie layout): dark hero, big category circles,
   search band, numbered Top 10, then All Recipes with filters
   -------------------------------------------------------------------------- */
/* The bands touch each other; the recipe rows keep their own 40px spacing */
.cl-index-hero,
.cl-index-circles,
.cl-index-search { margin-top: 0; margin-bottom: 0; }
/* Dark bands with a faint, dense print of kitchen doodles (assets/images/pattern-kitchen.svg) */
.cl-index-hero,
.cl-index-search {
	padding-top: 40px;
	padding-bottom: 40px;
	background-image: var(--wpr-bg-dfc1c5d4-c4c4-449c-a0bb-97269d983cc1);
	background-size: 300px;
}
.cl-index-hero > * { margin-top: 0; margin-bottom: 0; }
.cl-index-hero > * + * { margin-top: 16px; }
.cl-index-hero__title { color: inherit; }
.cl-index-hero p { font-size: 1.25rem; line-height: 1.75; }
.cl-index-hero a:not(.wp-block-button__link) { color: inherit; }
.cl-index-hero .wp-block-buttons { margin-top: 24px; }
.cl-index-hero__btn .wp-block-button__link { background: var(--cl-accent); color: #fff; }
.cl-index-hero__btn .wp-block-button__link:hover { background: #fff; color: var(--cl-primary); }

.cl-index-circles { padding-top: 40px; padding-bottom: 40px; }
/* No published categories yet: no empty white gap between the dark bands */
.cl-index-circles:not(:has(.cl-circle)) { display: none; }
/* Big round category photos: 3 across on phones, then one row of up to ~7 */
.cl-circles--lg { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 16px; }
.cl-circles--lg .cl-circle { flex: 0 0 calc((100% - 32px) / 3); }
.cl-circles--lg .cl-circle__label { padding-top: 12px; font-size: 13px; }
@media (min-width: 767px) { .cl-circles--lg .cl-circle { flex: 1 1 140px; max-width: 200px; } }

.cl-index-search .wp-block-columns { gap: 24px 48px; margin: 0; }
.cl-index-search__title { margin: 0 0 16px; color: inherit; font-size: var(--wp--preset--font-size--x-large); }
.cl-index-search__form .wp-block-search__inside-wrapper { padding: 4px; border: 0; background: #fff; }
.cl-index-search__form .wp-block-search__input { border: 0; padding: 8px 12px; font-size: 1rem; }
.cl-index-search__form .wp-block-search__button { margin: 0; padding: 8px 12px; border-radius: 0; background: var(--cl-primary); color: #fff; }
.cl-index-search__form .wp-block-search__button svg { fill: currentColor; }
.cl-index-search__label { margin: 0 0 12px; font-size: var(--cl-label); font-weight: 700; }
.cl-index-search__terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0; }
/* Light terracotta on the dark band (7:1 contrast) */
.cl-index-search__terms a { color: #f2b8a4; font-size: var(--cl-label); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-underline-offset: 4px; }
.cl-index-search__terms a:hover { color: #fff; }

/* Numbered Top 10 cards: white card with a soft shadow, number on the photo edge */
.layout-top10 .cl-listing__inner { grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: cl-top; }
@media (max-width: 1023px) { .layout-top10 .cl-listing__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layout-top10 .cl-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--background);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	counter-increment: cl-top;
}
.layout-top10 .cl-card__title { position: relative; flex: 1; margin: 0; padding: 32px 12px 20px; text-align: center; }
.layout-top10 .cl-card__meta { justify-content: center; gap: 4px 16px; margin: 0; padding: 0 12px 18px; }
.layout-top10 .cl-card__rating { margin-left: 0; }
.layout-top10 .cl-card__title::before {
	content: counter(cl-top);
	position: absolute;
	top: 0;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 800;
	transform: translate(-50%, -50%);
}
@media (max-width: 600px) {
	.layout-top10 .cl-listing__inner { gap: 24px 12px !important; }
	.layout-top10 .cl-card__title { padding: 28px 8px 16px; font-size: 17px; }
}

/* Boxed recipe cards (The Cookie Rookie): white box with a soft shadow, like the Top 10,
   and Poppins titles. Every recipe row on the recipe index (All Recipes included) and on
   category pages (the "Popular" row and the main grid). Other pages keep plain cards. */
.cl-listing.cl-recipe-archive__grid .cl-card,
.page-template-page-index .cl-listing:not(.layout-top10) .cl-card,
.category .cl-listing .cl-card,
.category .cl-grid > li {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--background);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.cl-listing.cl-recipe-archive__grid .cl-card__title,
.page-template-page-index .cl-listing:not(.layout-top10) .cl-card__title,
.category .cl-listing .cl-card__title,
.category .cl-grid .cl-card__title { flex: 1; margin: 0; padding: 16px 12px 20px; }
.cl-listing.cl-recipe-archive__grid .cl-card__meta,
.page-template-page-index .cl-listing:not(.layout-top10) .cl-card__meta,
.category .cl-listing .cl-card__meta,
.category .cl-grid .cl-card__meta { margin: 0; padding: 0 12px 16px; }
/* Poppins titles (the Top 10 keeps its own centered layout) */
.cl-listing.cl-recipe-archive__grid .cl-card__title,
.page-template-page-index .cl-listing .cl-card__title,
.category .cl-listing .cl-card__title,
.category .cl-grid .cl-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}
@media (max-width: 600px) {
	.cl-listing.cl-recipe-archive__grid .cl-listing__inner,
	.page-template-page-index .cl-listing:not(.layout-top10) .cl-listing__inner,
	.category .cl-listing .cl-listing__inner { gap: 20px 12px; }
	.category .cl-grid { gap: 20px 12px !important; }
	.cl-listing.cl-recipe-archive__grid .cl-card__title,
	.page-template-page-index .cl-listing:not(.layout-top10) .cl-card__title,
	.category .cl-listing .cl-card__title,
	.category .cl-grid .cl-card__title { padding: 12px 10px 16px; }
	.cl-listing.cl-recipe-archive__grid .cl-card__title,
	.page-template-page-index .cl-listing .cl-card__title,
	.category .cl-listing .cl-card__title,
	.category .cl-grid .cl-card__title { font-size: 15px; }
}

/* Boxed cards (homepage, Top 10, recipe index, category pages): a deeper shadow under the
   card on hover or keyboard focus, like Yellow Bliss Road. Hover-capable screens only so a
   tap on a phone doesn't leave the shadow stuck. */
@media (hover: hover) {
	.cl-home .cl-listing .cl-card,
	.layout-top10 .cl-card,
	.cl-listing.cl-recipe-archive__grid .cl-card,
	.page-template-page-index .cl-listing .cl-card,
	.category .cl-listing .cl-card,
	.category .cl-grid > li { transition: box-shadow 0.15s ease-in-out; }
	.cl-home .cl-listing .cl-card:hover,
	.layout-top10 .cl-card:hover,
	.cl-listing.cl-recipe-archive__grid .cl-card:hover,
	.page-template-page-index .cl-listing .cl-card:hover,
	.category .cl-listing .cl-card:hover,
	.category .cl-grid > li:hover { box-shadow: 0 8px 20px rgba(33, 33, 33, 0.2); }
}
.cl-home .cl-listing .cl-card:focus-within,
.layout-top10 .cl-card:focus-within,
.cl-listing.cl-recipe-archive__grid .cl-card:focus-within,
.page-template-page-index .cl-listing .cl-card:focus-within,
.category .cl-listing .cl-card:focus-within,
.category .cl-grid > li:focus-within { box-shadow: 0 8px 20px rgba(33, 33, 33, 0.2); }

/* All Recipes: filter dropdowns, grid, page numbers */
.cl-recipe-archive { margin: 40px 0; scroll-margin-top: calc(var(--cl-header-h) + 16px); }
.cl-recipe-archive__title { margin: 0 0 24px; font-size: var(--wp--preset--font-size--huge); }
.cl-filters { margin: 0 0 32px; }
.cl-filters__row { display: grid; grid-template-columns: minmax(0, 1fr); border: 3px solid var(--cl-band); }
.cl-filter { position: relative; display: block; }
.cl-filter + .cl-filter { border-top: 1px solid var(--cl-border); }
.cl-filter select {
	box-sizing: border-box;
	width: 100%;
	min-height: 64px;
	padding: 10px 64px 10px 20px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--cl-text);
	font: inherit;
	font-size: 1.125rem;
	font-weight: 500;
	appearance: none;
	cursor: pointer;
}
.cl-filter select:focus-visible { outline: 2px solid var(--cl-accent); outline-offset: -2px; }
.cl-filter::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 16px;
	transform: translateY(-50%);
	pointer-events: none;
}
@media (min-width: 768px) {
	.cl-filters__row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 12px 0; }
	.cl-filter + .cl-filter { border-top: 0; border-left: 1px solid var(--cl-border); }
}
.cl-filters__clear { margin-top: 12px; padding: 0; }
.cl-recipe-archive__empty { margin: 0; color: var(--cl-muted); }
.cl-recipe-archive__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.cl-sidebar { min-width: 0; }
.cl-about-card { margin-bottom: 40px; }
.cl-about-card__image { margin: 0; }
.cl-about-card__image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cl-about-card__box {
	position: relative;
	margin: -40px 24px 0;
	padding: 24px 16px 8px;
	background: var(--wp--preset--color--background);
}
.cl-about-card__box > * { margin-top: 0; margin-bottom: 0; }
.cl-about-card__box > * + * { margin-top: 12px; }
.cl-about-card__title { font-size: var(--wp--preset--font-size--huge); line-height: 1.15; }
.cl-sidebar .cl-listing { margin-top: 0; }
@media (max-width: 1023px) {
	.cl-sidebar { margin-top: 48px; }
	.cl-about-card { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* --------------------------------------------------------------------------
   After post: share, categories, author box
   -------------------------------------------------------------------------- */
.cl-after-post { display: flex; flex-direction: column; margin-top: 40px !important; }
.cl-after-post > * { margin: 0; }

/* Share row: label + plain icons, centered, rule underneath */
.cl-share {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--cl-border);
}
.cl-share__label { font-weight: 500; }
.cl-share__btn { display: inline-flex; padding: 4px; color: var(--cl-text); line-height: 0; }
.cl-share__btn:hover { color: var(--cl-accent); }

/* Category buttons */
.cl-terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px !important; }
.cl-terms .wp-block-post-terms__separator { display: none; }
.cl-terms a {
	display: inline-block;
	padding: 12px 16px;
	border: 1px solid var(--cl-primary);
	border-radius: 3px;
	font-weight: 600;
	line-height: 21px;
	color: var(--cl-primary);
	text-decoration: none;
}
.cl-terms a:hover { background: var(--cl-primary); color: #fff; }

/* Author box: big photo with a white card overlapping it (S&L "block-about") */
.cl-author-box {
	display: flex;
	align-items: flex-start;
	margin: 40px 0 0 !important;
	padding: 40px 0 !important;
}
.cl-author-box > * { margin: 0; }
.cl-author-box__image { flex: 0 0 47%; margin: 0 !important; }
.cl-author-box__image a { display: block; }
.cl-author-box__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 344 / 396;
	object-fit: cover;
	border-radius: 0;
}
.cl-author-box__text {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 24px 0 24px -40px !important;
	padding: 40px;
	background: var(--wp--preset--color--background);
	text-align: center;
}
.cl-author-box__text > * { margin-top: 0; margin-bottom: 0; }
.cl-author-box__text > * + * { margin-top: 16px; }
.cl-author-box__text p:not(.cl-author-box__title) { font-size: 16px; line-height: 1.85; }
.cl-author-box .wp-block-buttons { justify-content: center; }
@media (max-width: 600px) {
	.cl-author-box { flex-direction: column; padding: 0 0 24px !important; }
	.cl-author-box__image { flex: none; width: 100%; }
	.cl-author-box__image img { aspect-ratio: 1; }
	.cl-author-box__text { margin: -40px 24px 0 !important; padding: 32px 24px; }
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.cl-comments { margin-top: 0 !important; }

/* Form */
.cl-comments .comment-respond { margin: 40px 0 30px; padding: 40px; background: var(--cl-band); }
.cl-comments .comment-reply-title {
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 900;
	line-height: 1.2;
}
.cl-comments .comment-reply-title small { display: block; margin-top: 8px; font-family: var(--wp--preset--font-family--system); font-size: 14px; font-weight: 600; }
.cl-comments :is(.comment-notes, .logged-in-as) { margin: 8px 0; font-size: 16px; text-align: center; }
.cl-comments .comment-form > p { margin: 16px 0 0; }
.cl-comments .comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.7px;
	line-height: 1.2;
	text-transform: uppercase;
}
.cl-comments .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	box-sizing: border-box;
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--cl-text);
	border-radius: 0;
	background: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}
.cl-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.cl-comments .comment-form-cookies-consent label { display: inline; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.cl-comments .form-submit { text-align: center; }
/* WPRM star rating in the form: centered row */
.cl-comments .comment-form-wprm-rating { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 0; }
.cl-comments .comment-form-wprm-rating label { display: inline; margin: 0; }

/* List */
.cl-comments .wp-block-comments-title {
	margin: 48px 0 16px;
	font-size: var(--wp--preset--font-size--huge);
	text-align: center;
}
.cl-comments .wp-block-comment-template { margin: 0 0 32px; padding-left: 0; list-style: none; border-bottom: 2px solid var(--cl-band); }
.cl-comments .wp-block-comment-template ol { margin: 0; padding-left: 0; list-style: none; }
.cl-comments .wp-block-comment-template .children > li { margin-top: 4px; }
.cl-comment { position: relative; padding: 24px 0; }
.cl-comment > * { margin-top: 0; margin-bottom: 0; }
.cl-comment .wp-block-comment-author-name { padding-right: 80px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.cl-comment .wp-block-comment-author-name a { color: var(--cl-text); text-decoration: none; }
.cl-comment .wp-block-comment-date { margin-top: 2px; font-size: 14px; line-height: 1.85; }
.cl-comment .wp-block-comment-date a { color: inherit; text-decoration: none; }
.cl-comment .wp-block-comment-content { margin-top: 16px; }
.cl-comment .wp-block-comment-content p { margin: 0; }
.cl-comment .wp-block-comment-content p + p { margin-top: 16px; }
.cl-comment .wp-block-comment-reply-link { position: absolute; top: 32px; right: 16px; margin: 0; line-height: 1.2; }
.cl-comment .wp-block-comment-reply-link a { font-weight: 600; color: var(--cl-primary); text-decoration: underline; }
.wp-block-comment-template .children .cl-comment { margin-left: 24px; }
.wp-block-comment-template .bypostauthor > .cl-comment {
	margin-bottom: 24px;
	padding: 24px;
	border-radius: 8px;
	background: var(--cl-band);
}
.cl-comments .wp-block-comments-pagination { gap: 8px; }
.cl-comments .wp-block-comments-pagination a {
	display: inline-block;
	padding: 12px 16px;
	border-radius: 3px;
	background: var(--cl-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.7px;
	text-decoration: none;
	text-transform: uppercase;
}
.cl-comments .wp-block-comments-pagination a .wp-block-comments-pagination-previous-arrow,
.cl-comments .wp-block-comments-pagination a .wp-block-comments-pagination-next-arrow { display: none; }
@media (max-width: 600px) {
	.cl-comments .comment-respond { padding: 24px 16px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.cl-footer { position: relative; margin-top: 64px; padding-top: 48px; padding-bottom: 40px; }
.cl-backtotop {
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cl-primary);
	color: #fff;
}
.cl-backtotop:hover { background: var(--cl-text); color: #fff; }
.cl-footer__inner { gap: 16px 32px; }
/* Round Cocotte Girl badge (same picture as the About band corner) */
.cl-footer__brand { display: flex; flex: none; flex-direction: column; align-items: center; gap: 12px; }
.cl-footer__badge { display: block; line-height: 0; }
.cl-footer__badge img { display: block; width: 120px; height: 120px; }
/* The badge stays a link home, but the picture can't be saved or dragged: clicks, right-clicks
   and long-presses all land on the link (like noracooks.com's inline SVG footer logo). */
.cl-footer__badge { -webkit-touch-callout: none; }
.cl-footer__badge img { pointer-events: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
/* Social icons right under the badge (The Cookie Rookie footer) */
.cl-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.cl-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--cl-primary); }
.cl-social a:hover,
.cl-social a:focus-visible { color: var(--cl-accent); }
.cl-footer-nav { font-size: 14px; }
.cl-footer-nav .wp-block-navigation-item__content { padding: 6px 10px; }
.cl-footer-nav .wp-block-navigation__submenu-icon,
.cl-footer-nav .wp-block-navigation__submenu-container { display: none !important; }
.cl-copyright { margin: 24px 0 0; font-size: 14px; color: var(--cl-muted); text-align: center; }
@media (max-width: 767px) {
	.cl-footer__inner { justify-content: center !important; text-align: center; }
	.cl-footer__badge img { width: 100px; height: 100px; }
	.cl-footer-nav .wp-block-navigation__container { justify-content: center; }
}

/* As Seen In: above the footer on every page (S&L "block-seen-in") */
.cl-seen-in-area { box-sizing: border-box; max-width: 1232px; margin: 0 auto; padding: 40px 16px; }
.cl-seen-in__rule { height: 1px; margin: 0 0 40px; border: 0; background: var(--cl-band); }
.cl-seen-in { margin-top: 16px; }
.cl-seen-in__title {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--system);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.85;
	text-align: center;
}
.cl-seen-in__wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; }
.cl-seen-in__wrap > div { width: 100px; height: 48px; }
/* Monochrome logos: grey, and white logo backgrounds blend into the page */
.cl-seen-in__wrap img { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; }
@media (max-width: 767px) { .cl-seen-in__title { font-size: 28px; } }
/* With logos the footer follows the logo row directly; without them the homepage's last band meets the footer */
.cl-before-footer:has(.cl-seen-in-area) + footer .cl-footer,
main.cl-home + .cl-before-footer:not(:has(.cl-seen-in-area)) + footer .cl-footer { margin-top: 0 !important; }

/* Draft preview notice (logged-in editors only) */
.cl-preview-pill {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99999;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--cl-text);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cl-preview-pill a { margin-left: 6px; color: #fff; }

/* --------------------------------------------------------------------------
   WP Recipe Maker: keep the jump target below the sticky header
   -------------------------------------------------------------------------- */
.wprm-recipe-container,
#comments { scroll-margin-top: calc(var(--cl-header-h) + 24px); }

/* --------------------------------------------------------------------------
   Ad networks (Mediavine, Raptive)
   Ads go into .entry-content, the recipe card, .sidebar and .comment-list
   (classes added in functions.php). Nothing above them clips or transforms,
   so sticky ads keep working.
   -------------------------------------------------------------------------- */
/* While the header is showing, sticky ads sit below it instead of under it
   (the same fixes Raptive uses on Salt & Lavender-style headers). */
body.nav-down {
	--cl-ad-top: calc(var(--cl-header-h) + var(--wp-admin--admin-bar--height, 0px));
}
body.nav-down .adthrive-sidebar.adthrive-stuck { margin-top: var(--cl-ad-top); }
body.nav-down .adthrive-sticky-sidebar > div,
body.nav-down .adthrive-sticky-container > div { top: var(--cl-ad-top) !important; }
.adthrive-sidebar.adthrive-stuck,
.adthrive-sticky-sidebar > div,
.adthrive-sticky-container > div { transition: margin-top 0.3s ease, top 0.3s ease; }

/* Ads dropped into a recipe grid take a full row instead of one card's column */
.cl-listing__inner > :is(.adthrive-ad, .mv-ad-box, [class*="adthrive-content"]) { grid-column: 1 / -1; }

/* Very narrow phones: 300px-wide ads need 300px of content, so under 360px the
   page edges (and the recipe card) are 10px instead of 16px. */
@media (max-width: 359px) {
	html body { --wp--style--root--padding-left: 10px; --wp--style--root--padding-right: 10px; }
	.cl-content-sidebar,
	.cl-wide,
	.cl-seen-in-area { padding-left: 10px; padding-right: 10px; }
	.cl-entry-content .wprm-recipe-template-cocotte { --clr-pad: 10px; margin-left: -10px; margin-right: -10px; width: calc(100% + 20px); }
}
