/* TCB Site 2.1.0 — recipes index (/recipes/ + category/tag archives with .cozy-filter-panel).
   Scope: body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel). Browsers without :has() get the original page.
   Kill switch: TCB_SITE_RECIPES_DISABLE. */

/* ---------- layout: one centred column; hero → search → filters → grid ---------- */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0;
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(28px, 5vw, 56px) 16px clamp(40px, 6vw, 72px) !important;
	box-sizing: border-box;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	grid-column: auto !important;
	grid-row: auto !important;
	position: static !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget:has(.cozy-recipe-hero) { order: 1; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget-search { order: 2; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget:has(.cozy-filter-panel) { order: 3; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget:has(.elementor-posts-container) { order: 4; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget-theme-archive-title:not(:has(h1, h2, .elementor-heading-title)) { display: none !important; }

/* ---------- hero: compact + centred ---------- */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-recipe-hero {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	font-family: var(--tcb-font-body);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-recipe-hero .cozy-hero-kicker {
	margin: 0 0 10px;
	color: var(--tcb-red-deep);
	font-size: 12px !important;
	letter-spacing: 0.14em;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-recipe-hero h1 {
	margin: 0;
	color: var(--tcb-ink);
	font-family: var(--tcb-font-display);
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-recipe-hero > p:last-child {
	max-width: 56ch;
	margin: 12px auto 0;
	color: var(--tcb-muted);
	font-size: 1rem;
	line-height: 1.55;
	text-wrap: pretty;
}

/* ---------- search: one pill (input + button) ---------- */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search,
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search.hidden { display: block !important; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget-search { margin-top: 24px !important; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-form {
	display: flex !important;
	align-items: stretch;
	max-width: 620px;
	margin: 0 auto;
	padding: 5px;
	gap: 6px;
	background: var(--tcb-white, #fff);
	border: 1.5px solid var(--tcb-line);
	border-radius: var(--tcb-r-pill);
	box-shadow: 0 1px 2px rgba(22, 19, 17, 0.05);
	transition: border-color var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease), box-shadow var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-form:focus-within {
	border-color: var(--tcb-ink);
	box-shadow: 0 0 0 3px rgba(246, 166, 35, 0.45);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-label { position: absolute; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-input-wrapper {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-input {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 14px 0 18px !important;
	border: 0 !important;
	border-radius: var(--tcb-r-pill) !important;
	background: transparent !important;
	color: var(--tcb-ink);
	font: 500 1rem/1.2 var(--tcb-font-body);
	box-shadow: none !important;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-input::placeholder { color: #75675a; opacity: 1; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-input-wrapper > svg {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 12px;
	height: 12px;
	transform: translateY(-50%);
	fill: var(--tcb-muted);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-input:placeholder-shown + svg { display: none; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-submit {
	flex: 0 0 auto;
	min-height: 44px;
	margin: 0;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: var(--tcb-r-pill) !important;
	background: var(--tcb-red-deep) !important;
	color: #fff !important;
	font: 700 0.95rem/1 var(--tcb-font-body);
	cursor: pointer;
	transition: background-color var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-submit:hover { background: #a51f17 !important; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-submit:focus-visible { outline: 3px solid var(--tcb-ink); outline-offset: 2px; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-submit svg { display: none; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-submit span { display: inline !important; }

/* ---------- filters: base chip look (no-JS and JS) ---------- */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel {
	position: static !important;
	margin: 22px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-family: var(--tcb-font-body);
	overflow: visible;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel summary {
	padding: 0;
	font-size: inherit;
}
/* no-JS: original <details open>, groups as wrapping chip rows */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel > details > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 4px;
	color: var(--tcb-ink);
	font: 800 1.05rem/1.2 var(--tcb-font-display);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel > details > summary::after { font-size: 1.1rem; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-body { padding: 4px 0 0; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
	border-top: 1px solid var(--tcb-line);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group h3 {
	flex: 0 0 100%;
	margin: 0 0 2px;
	color: var(--tcb-muted);
	font: 700 0.75rem/1.3 var(--tcb-font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group a,
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-clear-filters {
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid var(--tcb-line);
	border-radius: var(--tcb-r-pill);
	background: var(--tcb-white, #fff);
	color: var(--tcb-broth);
	font: 600 0.9rem/1.1 var(--tcb-font-body);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease), background-color var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease), color var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group a > span[aria-hidden="true"] { display: none !important; } /* old fake checkbox */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group a:hover {
	border-color: var(--tcb-broth);
	color: var(--tcb-ink);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group a:focus-visible,
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-clear-filters:focus-visible,
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .tcb-rx-more > summary:focus-visible,
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel > details > summary:focus-visible {
	outline: 3px solid var(--tcb-ink);
	outline-offset: 2px;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group a.is-active,
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group a[aria-current="page"] {
	border-color: var(--tcb-ink);
	background: var(--tcb-ink);
	color: var(--tcb-cream);
	font-weight: 700;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-clear-filters {
	border-style: dashed;
	color: var(--tcb-red-deep);
	text-decoration: none;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-body > .cozy-clear-filters { margin: 0 0 10px; }

/* ---------- enhanced (JS): type chip row + closed "More filters" ---------- */
.tcb-rx-js body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel,
.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.tcb-rx-js body.tcb-rx .tcb-rx-types {
	width: 100%;
	display: flex;
	justify-content: safe center;
}
.tcb-rx-js body.tcb-rx .tcb-rx-types__group,
.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:first-of-type {
	flex-wrap: nowrap;
	max-width: 100%;
	padding: 4px 2px 8px;
	border: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-padding-inline: 16px;
	-webkit-overflow-scrolling: touch;
}
.tcb-rx-js body.tcb-rx .tcb-rx-types__group h3,
.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:first-of-type h3 {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.tcb-rx-js body.tcb-rx .tcb-rx-types__group a,
.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:first-of-type a {
	flex: 0 0 auto;
	min-height: 44px;
}
.tcb-rx-js body.tcb-rx .tcb-rx-more { width: 100%; }
.tcb-rx-js body.tcb-rx .tcb-rx-more > summary,
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-body::after {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: max-content;
	min-height: 44px;
	margin: 0 auto;
	padding: 0 18px;
	border-radius: var(--tcb-r-pill);
	color: var(--tcb-ink);
	font: 700 0.95rem/1 var(--tcb-font-body);
	list-style: none;
	cursor: pointer;
	box-sizing: border-box;
}
.tcb-rx-js body.tcb-rx .tcb-rx-more > summary::-webkit-details-marker { display: none; }
.tcb-rx-js body.tcb-rx .tcb-rx-more > summary::after {
	content: "";
	width: 8px; height: 8px;
	margin-left: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease);
}
.tcb-rx-js body.tcb-rx .tcb-rx-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.tcb-rx-js body.tcb-rx .tcb-rx-more > summary:hover { background: rgba(22, 19, 17, 0.06); }
.tcb-rx-js body.tcb-rx .tcb-rx-more__n {
	display: inline-grid;
	place-items: center;
	min-width: 22px; height: 22px;
	padding: 0 6px;
	border-radius: var(--tcb-r-pill);
	background: var(--tcb-paper);
	border: 1px solid var(--tcb-line);
	color: var(--tcb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	box-sizing: border-box;
}
.tcb-rx-js body.tcb-rx .tcb-rx-more__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 4px 28px;
	margin-top: 10px;
	padding: 18px 22px 20px;
	border: 1px solid var(--tcb-line);
	border-radius: var(--tcb-r-lg, 18px);
	background: var(--tcb-white, #fff);
	text-align: left;
}
.tcb-rx-js body.tcb-rx .tcb-rx-more__grid .cozy-filter-group { border-top: 0; padding: 8px 0; align-content: flex-start; }
.tcb-rx-js body.tcb-rx .tcb-rx-more__grid .cozy-filter-group a { min-height: 44px; }
.tcb-rx-js body.tcb-rx .tcb-rx-more__foot { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--tcb-line); }
.tcb-rx-js body.tcb-rx .tcb-rx-more__foot .cozy-clear-filters { min-height: 44px; }

/* pre-paint (JS on its way): show only the type row + a "More filters" placeholder */
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel > details > summary,
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-body > .cozy-clear-filters,
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:not(:first-of-type) { display: none; }
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 0;
}
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-body::after { content: "More filters"; }

/* ---------- grid ---------- */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero, > .elementor-widget .cozy-filter-panel) > .elementor-widget:has(.elementor-posts-container) { margin-top: clamp(24px, 4vw, 40px) !important; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-posts-container {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px !important;
	margin: 0 !important;
}
@media (max-width: 1024px) {
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-posts-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px !important; }
}
@media (max-width: 767px) {
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-posts-container { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
}

/* ---------- cards ---------- */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-posts-container article.elementor-post {
	--rx-acc: var(--tcb-amber);
	display: flex !important;
	margin: 0 !important;
	width: auto !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-ramen-bowls { --rx-acc: var(--tcb-red); }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-loaded-spuds { --rx-acc: var(--tcb-amber); }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-bao-and-starters { --rx-acc: var(--tcb-red-deep); }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-cozy-classics { --rx-acc: var(--tcb-broth-2); }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-mac-and-cheese { --rx-acc: var(--tcb-yellow); }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-sides-sauces { --rx-acc: var(--tcb-muted); }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-desserts { --rx-acc: #e88aa0; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-bubble-drinks { --rx-acc: #8a5a3c; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post.category-kitchen-tips { --rx-acc: var(--tcb-muted-light); }

body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card {
	position: relative;
	display: flex !important;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--tcb-line) !important;
	border-radius: var(--tcb-r-lg, 18px) !important;
	background: var(--tcb-white, #fff) !important;
	box-shadow: 0 1px 2px rgba(22, 19, 17, 0.04) !important;
	overflow: hidden;
	transition: transform 200ms var(--tcb-ease-out, ease), box-shadow 200ms var(--tcb-ease-out, ease), border-color 200ms var(--tcb-ease-out, ease);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card::before {
	content: "";
	display: block;
	height: 5px;
	background: var(--rx-acc);
	flex: 0 0 auto;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card:hover {
	transform: translateY(-3px);
	border-color: #d6c4a8 !important;
	box-shadow: 0 10px 28px -12px rgba(22, 19, 17, 0.28) !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card:has(.elementor-post__title a:focus-visible) {
	outline: 3px solid var(--tcb-ink);
	outline-offset: 3px;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__thumbnail__link,
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__meta-data { display: none !important; }

body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__badge {
	position: static !important;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 20px 22px 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: var(--tcb-muted) !important;
	font: 700 0.72rem/1.3 var(--tcb-font-body) !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	inset: auto !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__badge::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--rx-acc);
	flex: 0 0 auto;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__text {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 10px 22px 22px !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__title {
	margin: 0 0 8px !important;
	font: 800 1.2rem/1.22 var(--tcb-font-display) !important;
	letter-spacing: -0.015em;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	color: var(--tcb-ink) !important;
	text-decoration: none;
	outline: none;
}
/* stretched link: the whole card opens the recipe (title link is the only interactive target) */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card:hover .elementor-post__title a { color: var(--tcb-red-deep) !important; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__excerpt {
	margin: 0 0 16px !important;
	color: #4f4338;
	font-size: 0.95rem;
	line-height: 1.55;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__excerpt p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin: 0 !important;
	color: inherit !important;
	font: inherit !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__read-more {
	margin-top: auto !important;
	align-self: flex-start;
	color: var(--tcb-red-deep) !important;
	font: 700 0.9rem/1.2 var(--tcb-font-body) !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__read-more span {
	display: inline-block;
	transition: transform 200ms var(--tcb-ease-out, ease);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card:hover .elementor-post__read-more span { transform: translateX(3px); }

/* ---------- pagination: large pills ---------- */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-pagination {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: clamp(32px, 5vw, 48px) 0 0 !important;
	font-family: var(--tcb-font-body);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-pagination .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	margin: 0 !important;
	padding: 0 16px;
	border: 1.5px solid var(--tcb-line);
	border-radius: var(--tcb-r-pill);
	background: var(--tcb-white, #fff);
	color: var(--tcb-ink) !important;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: border-color var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease), background-color var(--tcb-dur-ui, 160ms) var(--tcb-ease-out, ease);
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-pagination a.page-numbers:hover { border-color: var(--tcb-ink); }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-pagination a.page-numbers:focus-visible { outline: 3px solid var(--tcb-ink); outline-offset: 2px; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-pagination .page-numbers.current {
	border-color: var(--tcb-ink);
	background: var(--tcb-ink);
	color: var(--tcb-cream) !important;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-pagination .page-numbers.dots { border-color: transparent; background: none; min-width: 32px; padding: 0; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-recipe-hero { text-align: center; }
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-recipe-hero > p:last-child { margin-left: auto; font-size: 0.95rem; }
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-widget-search .e-search-submit { padding: 0 16px !important; }
	/* 2.1.3: archive template 9009 forces the submit button to width:100%!important on mobile,
	   which squeezed the input to 0px. Stack them: full-width input, full-width button below. */
	body.tcb-rx .elementor-widget-search form.e-search-form { flex-wrap: wrap; row-gap: 10px; }
	body.tcb-rx .elementor-widget-search .e-search-input-wrapper { flex: 1 0 100% !important; min-width: 0; }
	.tcb-rx-js body.tcb-rx .tcb-rx-types__group,
	.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:first-of-type {
		margin-inline: -16px;
		max-width: none;
		width: calc(100% + 32px);
		padding-inline: 16px;
		scrollbar-width: none;
	}
	.tcb-rx-js body.tcb-rx .tcb-rx-types { justify-content: flex-start; }
	.tcb-rx-js body.tcb-rx .tcb-rx-more__grid { grid-template-columns: 1fr; padding: 14px 16px 16px; }
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__text { padding: 8px 18px 18px !important; }
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__badge { margin: 16px 18px 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) *,
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) *::before,
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) *::after { transition: none !important; }
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card:hover { transform: none; }
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__card:hover .elementor-post__read-more span { transform: none; }
}

/* section heading added by recipes.js for a correct outline (screen readers only) */
.tcb-rx .tcb-rx-h2 {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* streaming guard: the filter panel comes after the grid in the HTML. While it is still
   being parsed, reserve its enhanced height (22px margin + 112px panel, measured at 390/768/1440)
   above the grid so nothing jumps when it arrives. */
.tcb-rx-pre body.tcb-rx .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero):not(:has(.cozy-filter-panel)) > .elementor-widget:has(.elementor-posts-container) {
	margin-top: calc(134px + clamp(24px, 4vw, 40px)) !important;
}

/* Elementor's screen-reader text ("Search", "Page") — keep hidden even if widget CSS is late */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-screen-only {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ================= 2.1.1 staging fixes ================= */
/* 1. active chip: beat theme/Elementor link colours (AA: cream on ink ≈ 17:1) */
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a.is-active,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a[aria-current="page"],
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a.is-active:hover,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a[aria-current="page"]:hover,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a.is-active:visited,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a[aria-current="page"]:visited,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a.is-active:focus,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a[aria-current="page"]:focus {
	color: #fbf4ea !important;
	background: var(--tcb-ink, #161311) !important;
	border-color: var(--tcb-ink, #161311) !important;
	-webkit-text-fill-color: #fbf4ea;
}
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel .cozy-filter-group a:not([aria-current]):not(.is-active) {
	color: var(--tcb-broth, #1f1712) !important;
}

/* 2. read-more: Elementor page CSS hides it (.elementor-9009 .elementor-element.elementor-element-ID .elementor-post__read-more) */
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-element .elementor-posts-container article.elementor-post .elementor-post__read-more,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-element .elementor-posts-container article.elementor-post .tcb-rx-rm {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	visibility: visible !important;
	opacity: 1 !important;
	margin-top: auto !important;
}
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-element .elementor-posts-container article.elementor-post .elementor-post__read-more-wrapper {
	display: flex !important;
	margin-top: auto !important;
}

/* 3. category label (inserted by recipes.js above the title); Elementor's badge is replaced */
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__badge { display: none !important; }
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .tcb-rx-cat {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	height: 18px;
	margin: 0 0 8px;
	color: var(--tcb-muted, #5c4e42);
	font: 700 0.72rem/18px var(--tcb-font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .tcb-rx-cat::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--rx-acc);
	flex: 0 0 auto;
}
body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__text { padding-top: 20px !important; }
/* before the script runs, hold the label's space so cards don't grow */
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__text:not(:has(.tcb-rx-cat)) { padding-top: 46px !important; }
@media (max-width: 767px) {
	body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__text { padding-top: 16px !important; }
	.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) article.elementor-post .elementor-post__text:not(:has(.tcb-rx-cat)) { padding-top: 42px !important; }
}

/* 4. chip row: no scrollbar track, right-edge fade; wrap to 2 lines on wide screens */
.tcb-rx-js body.tcb-rx .tcb-rx-types__group::-webkit-scrollbar,
.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:first-of-type::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 1199px) {
	.tcb-rx-js body.tcb-rx .tcb-rx-types__group,
	.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:first-of-type {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
		padding-right: 40px !important;
	}
}
@media (min-width: 1200px) {
	.tcb-rx-js body.tcb-rx .tcb-rx-types__group,
	.tcb-rx-pre body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-group:first-of-type {
		flex-wrap: wrap !important;
		justify-content: center;
		overflow: visible;
	}
	/* streaming guard for the 2-line row (+52px) */
	.tcb-rx-pre body.tcb-rx .elementor-widget-wrap:has(> .elementor-widget .cozy-recipe-hero):not(:has(.cozy-filter-panel)) > .elementor-widget:has(.elementor-posts-container) {
		margin-top: calc(186px + clamp(24px, 4vw, 40px)) !important;
	}
}

/* hold the panel's enhanced height while it is still streaming in */
.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel { min-height: 112px; }
@media (min-width: 1200px) {
	.tcb-rx-pre:not(.tcb-rx-js) body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .cozy-filter-panel { min-height: 164px; }
}
/* centre the "More filters" toggle under the chip row */
html.tcb-rx-js body.tcb-rx .tcb-rx-more { text-align: center; }
html.tcb-rx-js body.tcb-rx .tcb-rx-more > summary { display: inline-flex !important; margin: 0 auto !important; }

/* ================= 2.1.2: read-more as a clean text link =================
   Elementor page CSS (.elementor-9009 .elementor-element.elementor-element-1a3887b9 .elementor-post__read-more)
   gives it an orange pill; red-deep #C4261C on the white card is 5.6:1 (AA). */
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-element .elementor-posts-container article.elementor-post .elementor-post__card .elementor-post__read-more,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-element .elementor-posts-container article.elementor-post .elementor-post__card .elementor-post__read-more:hover,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-element .elementor-posts-container article.elementor-post .elementor-post__card .elementor-post__read-more:focus,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-element .elementor-posts-container article.elementor-post .elementor-post__card .elementor-post__read-more:visited {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #c4261c !important;
	-webkit-text-fill-color: #c4261c;
	font-weight: 700 !important;
	font-size: 0.9rem !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	min-height: 0 !important;
	width: auto !important;
}
/* underline when the card (stretched title link) is hovered or keyboard-focused */
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-posts-container article.elementor-post .elementor-post__card:hover .elementor-post__read-more,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-posts-container article.elementor-post .elementor-post__card:has(a:focus-visible) .elementor-post__read-more {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
}
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-posts-container article.elementor-post .elementor-post__read-more span {
	display: inline-block;
	text-decoration: none;
	transition: transform 180ms var(--tcb-ease-out, ease);
}
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-posts-container article.elementor-post .elementor-post__card:hover .elementor-post__read-more span,
html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-posts-container article.elementor-post .elementor-post__card:has(a:focus-visible) .elementor-post__read-more span { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
	html body.tcb-rx:has(.cozy-recipe-hero, .cozy-filter-panel) .elementor-location-archive .elementor-posts-container article.elementor-post .elementor-post__read-more span { transition: none !important; transform: none !important; }
}
