/* ==========================================================================
   The Calorie Hacker: main stylesheet
   ========================================================================== */

:root {
	--tch-primary: #263F20;
	--tch-primary-dark: #1E3219;
	--tch-accent: #C65B2B;
	--tch-accent-dark: #A84A20;
	--tch-secondary: #829E54;
	--tch-secondary-text: #4F6B2E;   /* secondary darkened for text contrast */
	--tch-secondary-tint: #E7EEDA;
	--tch-bg: #FAF8F3;
	--tch-tint: #F1ECE1;
	--tch-wood: #C29360;
	--tch-wood-tint: #EDE3D1;
	--tch-wood-text: #6B5639;
	--tch-text: #242923;
	--tch-muted: #55594F;
	--tch-line: #E6DFD0;
	--tch-white: #FFFFFF;

	--tch-font: "Montserrat", "Montserrat Fallback", "Helvetica Neue", Arial, sans-serif;
	--tch-script: "Caveat Brush", "Segoe Print", cursive;

	--tch-radius: 22px;
	--tch-radius-sm: 14px;
	--tch-pill: 999px;
	--tch-shadow: 0 14px 34px rgba(38, 63, 32, .14);
	--tch-container: 1240px;
	--tch-gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--tch-bg);
	color: var(--tch-text);
	font-family: var(--tch-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
img { display: block; }
a { color: var(--tch-primary); text-underline-offset: .18em; }
a:hover { color: var(--tch-accent); }
h1, h2, h3, h4, h5, h6 { color: var(--tch-primary); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--tch-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tch-secondary-tint); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--tch-white); color: var(--tch-primary); padding: 12px 18px; border-radius: 8px; box-shadow: var(--tch-shadow);
}

.container { width: 100%; max-width: var(--tch-container); margin: 0 auto; padding-inline: var(--tch-gutter); }
.container--narrow { max-width: 820px; }
.script { font-family: var(--tch-script); font-weight: 400; color: var(--tch-accent); line-height: 1; display: block; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-secondary-text); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 26px; border-radius: var(--tch-pill);
	font: 700 16px/1 var(--tch-font); text-decoration: none; cursor: pointer;
	border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--tch-primary); color: var(--tch-bg); }
.btn--primary:hover { background: var(--tch-primary-dark); color: var(--tch-white); }
.btn--accent { background: var(--tch-accent); color: var(--tch-white); font-weight: 800; }
.btn--accent:hover { background: var(--tch-accent-dark); color: var(--tch-white); }
.btn--outline { border-color: var(--tch-primary); color: var(--tch-primary); background: transparent; }
.btn--outline:hover { background: var(--tch-primary); color: var(--tch-bg); }
.text-link { font-weight: 700; }

/* ---------- Top bar ---------- */
.topbar { background: var(--tch-primary); color: var(--tch-bg); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding-block: 8px; }
@media (max-width: 600px) { .topbar { font-size: 11px; letter-spacing: .05em; } .topbar__inner { padding-block: 4px; } }
.social-links { display: flex; gap: 4px; align-items: center; }
.social-links a { color: inherit; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; }
.social-links a:hover { color: var(--tch-wood); }

/* ---------- Header ---------- */
.site-header { background: var(--tch-secondary-tint); border-bottom: 1px solid #D5E0C2; position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.site-logo { display: inline-flex; flex: 0 0 auto; }
.site-logo__img { height: 84px; width: auto; max-width: none; }
.primary-nav { display: flex; align-items: center; gap: 28px; min-width: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { display: block; padding: 8px 0; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a,
.primary-nav .menu .current-menu-ancestor > a { color: var(--tch-accent); border-bottom-color: var(--tch-accent); }
.primary-nav .menu li { position: relative; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: -14px; min-width: 210px; background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: var(--tch-radius-sm); box-shadow: var(--tch-shadow); display: none; }
.primary-nav .sub-menu a { padding: 8px 10px; border: 0; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav__actions { display: flex; gap: 12px; align-items: center; }
.search-toggle, .nav-toggle {
	width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tch-primary); background: transparent; color: var(--tch-primary);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--tch-primary); color: var(--tch-bg); }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.header-search { border-top: 1px solid #D5E0C2; padding-block: 16px; background: var(--tch-secondary-tint); }
.header-search .search-form { max-width: 560px; margin-left: auto; }

@media (max-width: 1060px) {
	.site-logo__img { height: 64px; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
		background: var(--tch-secondary-tint); border-bottom: 1px solid #D5E0C2; padding: 12px var(--tch-gutter) 24px; box-shadow: 0 18px 30px rgba(38, 63, 32, .08);
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { padding: 12px 0; border-bottom: 1px solid var(--tch-line); font-size: 17px; }
	.primary-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; }
.search-form__input {
	flex: 1 1 auto; min-width: 0; height: 50px; border-radius: var(--tch-pill); border: 1.5px solid #D9D1BF;
	padding: 0 20px; font: 500 15px var(--tch-font); background: var(--tch-white); color: var(--tch-text);
}
.search-form__input:focus { border-color: var(--tch-primary); outline: none; box-shadow: 0 0 0 3px var(--tch-secondary-tint); }
.search-form__btn { flex: 0 0 50px; height: 50px; border-radius: 50%; border: 0; background: var(--tch-primary); color: var(--tch-bg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.search-form__btn:hover { background: var(--tch-accent); }

/* ---------- Thumbnails & placeholders ---------- */
.thumb { display: block; overflow: hidden; background: var(--tch-wood-tint); position: relative; }
.thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.thumb:hover .thumb__img { transform: scale(1.04); }
.thumb__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tch-wood); }

/* ---------- Hero ---------- */
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 80px; }
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__kicker { font-size: 34px; }
.hero__title { margin: 0; font-size: clamp(2.4rem, 5vw, 3.25rem); line-height: 1.15; font-weight: 600; }
.hero__text { margin: 0; font-size: 18px; max-width: 520px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.hero__feature { flex: 1 1 460px; min-width: 0; position: relative; padding-bottom: 28px; }
.hero__media { border-radius: 28px; aspect-ratio: 6 / 5; }
.hero__card {
	position: absolute; left: -20px; bottom: 0; max-width: 340px; background: var(--tch-white); border-radius: 20px;
	padding: 20px 24px; box-shadow: var(--tch-shadow); display: flex; flex-direction: column; gap: 6px;
}
.hero__card-title { font-size: 20px; margin: 0; line-height: 1.3; }
.hero__card-title a { text-decoration: none; }
@media (max-width: 700px) {
	.hero__inner { padding-block: 40px 56px; gap: 36px; }
	.hero__card { position: relative; left: auto; margin: -40px 16px 0; }
	.hero__feature { padding-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section--flush { padding-top: 8px; }
.section--tint { background: var(--tch-secondary-tint); }
.section--center { text-align: center; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-head__kicker { font-size: 30px; margin-bottom: 8px; }
.section-head__title { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.section-head__link { font-weight: 700; font-size: 15px; }
.section__more { display: flex; justify-content: center; margin-top: 44px; }
.section-script-title { font-size: 44px; color: var(--tch-primary); margin-bottom: 32px; }
.admin-hint { background: var(--tch-white); border: 1px dashed var(--tch-wood); border-radius: var(--tch-radius-sm); padding: 16px 20px; }

/* ---------- Swap cards ---------- */
.swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.swap-grid--page .swap-card { background: var(--tch-white); border: 1px solid var(--tch-line); }
.swap-card { position: relative; background: var(--tch-bg); border-radius: var(--tch-radius); padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, transform .15s; }
.swap-card:hover { box-shadow: var(--tch-shadow); transform: translateY(-2px); }
.swap-card.is-tested { box-shadow: inset 0 0 0 2px var(--tch-secondary-tint); }
.swap-card__labels { display: flex; flex-wrap: wrap; gap: 6px; }
.swap-card__swap { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.swap-card__swap a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-decoration: none; color: inherit; }
.swap-card__swap a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.swap-card__swap .icon { color: var(--tch-accent); flex: 0 0 auto; }
.swap-card__from { color: var(--tch-muted); text-decoration: line-through; text-decoration-color: var(--tch-accent); text-decoration-thickness: 2px; font-weight: 600; }
.swap-card__to { color: var(--tch-primary); }
.swap-card__ratio { margin: 0; font-size: 13px; color: var(--tch-secondary-text); }
.swap-card__text { margin: 0; font-size: 15px; line-height: 1.55; }
.swap-card__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; font-size: 14px; }
.swap-card__saves { display: inline-flex; align-items: center; gap: 5px; background: var(--tch-primary); color: var(--tch-bg); font-weight: 700; font-size: 13px; padding: 5px 11px; border-radius: var(--tch-pill); }
.swap-card__saves .icon { color: #F2C9A8; }
.swap-card__link { font-weight: 700; color: var(--tch-accent-dark); text-decoration: none; }
.swap-card:hover .swap-card__link { text-decoration: underline; }
.swap-card:focus-within { outline: 3px solid var(--tch-accent); outline-offset: 3px; }

/* Labels */
.tested-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--tch-secondary-text); color: var(--tch-white); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--tch-pill); line-height: 1.3; }
.tested-badge--lg { font-size: 12px; padding: 6px 12px; }
.tested-badge--sm { font-size: 10px; padding: 2px 7px; }
.benefit-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--tch-pill); background: var(--tch-tint); color: var(--tch-primary); line-height: 1.3; text-decoration: none; }
.benefit-chip--lower-calorie { background: #F6DFD3; color: #8A3B17; }
.benefit-chip--higher-protein { background: var(--tch-secondary-tint); color: var(--tch-primary); }
.benefit-chip--lower-fat { background: #FBEBC9; color: #6B4A12; }
.benefit-chip--more-fiber { background: #E1EBD3; color: #3B5222; }
.benefit-chip--lower-sodium { background: #DDE8EE; color: #234459; }
.benefit-chip--budget-friendly { background: var(--tch-wood-tint); color: var(--tch-wood-text); }
.benefit-chip--portion-control { background: #EDE6F3; color: #4B3566; }
a.benefit-chip:hover { box-shadow: inset 0 0 0 1.5px currentColor; }

/* Swap Library page */
.swap-library__head { padding-bottom: 12px; }
.swap-library__intro { font-size: 18px; color: var(--tch-text); max-width: 680px; }
.swap-search { margin-top: 26px; max-width: 720px; }
.swap-search__label { display: block; font-family: var(--tch-script); font-size: 26px; color: var(--tch-primary); margin-bottom: 8px; }
.swap-search__row { display: flex; gap: 10px; flex-wrap: wrap; }
.swap-search__row input { flex: 1 1 260px; min-width: 0; height: 58px; border-radius: var(--tch-pill); border: 2px solid var(--tch-wood); background: var(--tch-white); padding: 0 24px; font: 500 17px var(--tch-font); color: var(--tch-text); }
.swap-search__row input:focus { outline: none; border-color: var(--tch-primary); box-shadow: 0 0 0 4px var(--tch-secondary-tint); }
.swap-search__row .btn { min-height: 58px; }
.swap-filters { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.swap-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swap-filters__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-muted); margin-right: 4px; min-width: 96px; }
.swap-filters .pill { background: transparent; font-family: var(--tch-font); cursor: pointer; }
.swap-filters .pill.is-active, .swap-filters .pill[aria-pressed="true"] { background: var(--tch-primary); color: var(--tch-bg); }
.benefit-chip--filter { font-size: 13px; padding: 8px 14px; min-height: 36px; cursor: pointer; }
.benefit-chip--filter.is-active { box-shadow: inset 0 0 0 2px currentColor; }
.benefit-chip--filter.is-active::before { content: "✓ "; white-space: pre; }
.tested-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-left: 6px; }
.tested-toggle input { width: 18px; height: 18px; accent-color: var(--tch-secondary-text); margin: 0; }
.tested-toggle .tested-badge { font-size: 12px; padding: 6px 12px; }
.swap-results { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--tch-secondary-text); min-height: 1.2em; }
.swap-featured { margin-top: 28px; }
.swap-library__body { padding-block: 40px 88px; display: flex; flex-direction: column; gap: 52px; }
.swap-section { scroll-margin-top: 20px; }
.swap-section__head { margin-bottom: 20px; max-width: 760px; }
.swap-section__title { margin: 0 0 6px; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.swap-section__title a { text-decoration: none; }
.swap-section__title a:hover { color: var(--tch-accent); }
.swap-section__head p { margin: 0; color: var(--tch-muted); }
.swap-empty { text-align: center; padding: 40px 20px; background: var(--tch-white); border: 1px dashed var(--tch-wood); border-radius: var(--tch-radius); }
.swap-empty .script { font-size: 32px; margin-bottom: 8px; }
.swap-empty p { margin: 0 0 14px; }
.swap-empty .btn { margin: 4px; }
.swap-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 28px; font-size: 14px; color: var(--tch-muted); border-top: 1px solid var(--tch-line); padding-top: 24px; }
.swap-legend p { margin: 0; }
.swap-back { margin-top: 40px; }

/* Single swap page */
.swap-page__head { padding-block: 40px 20px; display: flex; flex-direction: column; gap: 12px; }
.swap-page__kicker { font-size: 30px; }
.swap-page__title { margin: 0; font-size: clamp(2.1rem, 4.4vw, 3rem); max-width: 900px; }
.swap-page__labels { display: flex; flex-wrap: wrap; gap: 8px; }
.swap-page__labels .benefit-chip { font-size: 13px; padding: 6px 12px; }
.swap-page__body { display: flex; flex-direction: column; gap: 28px; padding-bottom: 64px; }
.swap-compare { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; background: var(--tch-white); border: 2px solid var(--tch-wood); border-radius: 28px; padding: 24px; }
.swap-compare__side { flex: 1 1 220px; border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.swap-compare__side--old { background: var(--tch-tint); }
.swap-compare__side--new { background: var(--tch-primary); color: var(--tch-bg); }
.swap-compare__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tch-muted); }
.swap-compare__side--new .swap-compare__label { color: #F2C9A8; }
.swap-compare__name { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
.swap-compare__side--old .swap-compare__name { color: var(--tch-muted); }
.swap-compare__side--old s { text-decoration-color: var(--tch-accent); text-decoration-thickness: 3px; }
.swap-compare__ratio { margin: 4px 0 0; font-size: 15px; color: #E3E9D8; }
.swap-compare__arrow { flex: 0 0 auto; align-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tch-accent); color: var(--tch-white); display: flex; align-items: center; justify-content: center; }
.swap-compare__photo { flex: 0 0 160px; margin: 0; }
.swap-compare__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; aspect-ratio: 1; }
@media (max-width: 640px) { .swap-compare__arrow { transform: rotate(90deg); margin: -4px auto; } .swap-compare__photo { flex-basis: 100%; } }
.swap-why { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.swap-saved { flex: 0 1 300px; background: var(--tch-accent); color: var(--tch-white); border-radius: 22px; padding: 22px 24px; }
.swap-saved__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #FFE3D3; }
.swap-saved__value { margin: 6px 0 4px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.swap-saved__basis { margin: 0; font-size: 13px; color: #FFE3D3; }
.swap-why__text { flex: 1 1 340px; }
.swap-why__text p { margin: 0; font-size: 18px; line-height: 1.7; }
.swap-h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.swap-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.swap-list { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 22px; padding: 22px 24px; }
.swap-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.swap-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.swap-list--best .icon { color: var(--tch-secondary-text); flex: 0 0 auto; margin-top: 3px; }
.swap-list__bang { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #FBEBC9; color: #6B4A12; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.swap-action { background: var(--tch-wood-tint); border-radius: 22px; padding: 22px 26px; }
.swap-action__title { font-size: 28px; color: var(--tch-primary); margin-bottom: 6px; }
.swap-action p { margin: 0; font-size: 16px; }
.swap-kitchen__empty { margin: 0; font-size: 16px; }
.swap-page__news { padding-bottom: 72px; }
.swap-page__news .newsletter--inline { margin-top: 0; }

/* Recipe page: swaps used */
.hack-swaps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hack-swaps__list a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: var(--tch-bg); color: var(--tch-text); padding: 10px 16px; border-radius: 14px; text-decoration: none; font-size: 15px; }
.hack-swaps__list a:hover { box-shadow: 0 0 0 2px #F2C9A8; color: var(--tch-primary); }
.hack-swaps__from { color: var(--tch-muted); text-decoration: line-through; text-decoration-color: var(--tch-accent); }
.hack-swaps__list .icon { color: var(--tch-accent); }
.hack-swaps__list strong { color: var(--tch-primary); }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--tch-pill);
	border: 1.5px solid var(--tch-primary); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--tch-primary);
}
.pill:hover, .pill.is-active { background: var(--tch-primary); color: var(--tch-bg); }

/* ---------- Recipe cards (grid) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__thumb { border-radius: 20px; aspect-ratio: 4 / 3; }
.card__badge { position: absolute; top: 14px; left: 14px; }
.badge {
	background: var(--tch-bg); color: var(--tch-primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 7px 12px; border-radius: var(--tch-pill); text-decoration: none; line-height: 1.2;
}
.badge:hover { background: var(--tch-primary); color: var(--tch-bg); }
.card__title { font-size: 21px; font-weight: 700; margin: 4px 0 0; line-height: 1.3; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--tch-accent); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 500; color: var(--tch-muted); }
.card-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.card-meta__time .icon { color: var(--tch-secondary-text); }
.card-meta__cal .icon { color: var(--tch-accent); }
.card-meta__saved { background: var(--tch-secondary-tint); color: var(--tch-secondary-text); font-weight: 700; font-size: 13px; padding: 2px 10px 2px 8px; border-radius: var(--tch-pill); gap: 4px; }
.card-meta__saved .icon { color: var(--tch-secondary-text); }
/* Calories saved banner (recipe facts) */
.cal-saved { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; background: var(--tch-secondary-tint); color: var(--tch-primary); font-size: 16px; line-height: 1.45; }
.cal-saved__icon { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--tch-white); color: var(--tch-secondary-text); display: inline-flex; align-items: center; justify-content: center; }
.cal-saved strong { color: var(--tch-accent-dark); font-weight: 800; }
.cal-saved__pct { color: var(--tch-secondary-text); font-weight: 600; white-space: nowrap; }
/* Classic vs ours meter (Calorie Hack) */
.hack-meter { background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 18px 20px 14px; margin: 0; }
.hack-meter__row { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 12px; margin-bottom: 10px; }
.hack-meter__label { font-size: 14px; font-weight: 700; color: #D7E3C3; }
.hack-meter__bar { display: block; height: 14px; border-radius: 999px; width: var(--w); }
.hack-meter__bar--classic { background: rgba(255, 255, 255, .28); }
.hack-meter__bar--ours { background: #F2C9A8; }
.hack-meter__num { font-weight: 800; color: var(--tch-bg); text-align: right; font-variant-numeric: tabular-nums; }
.hack-meter__note { margin: 4px 0 0; font-size: 13px; color: #C9D2BC; }
@media (max-width: 600px) { .hack-meter__row { grid-template-columns: 90px 1fr 52px; gap: 8px; } }

/* ---------- Category tiles ---------- */
.cat-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cat-tile {
	display: flex; flex-direction: column; align-items: center; gap: 12px; width: 150px; padding: 24px 12px;
	background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: var(--tch-radius);
	font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--tch-shadow); color: var(--tch-primary); }
.cat-tile__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tch-secondary-tint); display: flex; align-items: center; justify-content: center; color: var(--tch-primary); }

/* ---------- About ---------- */
.about { background: var(--tch-white); border-block: 1px solid var(--tch-line); }
.about__inner { max-width: 1100px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 88px; }
.about__photo {
	flex: 0 1 360px; min-width: 0; aspect-ratio: 9 / 10; border-radius: 200px 200px 28px 28px; overflow: hidden;
	background: var(--tch-wood-tint); border: 6px solid var(--tch-wood); display: flex; align-items: center; justify-content: center; color: var(--tch-wood);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__copy { flex: 1 1 420px; min-width: 0; }
.about__kicker { font-size: 46px; margin-bottom: 16px; }
.about__title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.3; }
.about__copy p { font-size: 17px; line-height: 1.7; }

/* ---------- Newsletter ---------- */
.newsletter--band {
	background: var(--tch-primary); color: var(--tch-bg); border-radius: 32px; padding: 56px 48px;
	display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between;
}
.newsletter--band .newsletter__copy { flex: 1 1 360px; }
.newsletter--band .newsletter__form { flex: 1 1 420px; }
.newsletter__title { font-size: 40px; color: #F2C9A8; margin: 0 0 10px; }
.newsletter__copy p { margin: 0; }
.newsletter__form form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter__form input[type="email"] {
	flex: 1 1 220px; min-width: 0; height: 54px; border-radius: var(--tch-pill); border: 0; padding: 0 22px;
	font: 500 16px var(--tch-font); background: var(--tch-bg); color: var(--tch-text);
}
.newsletter__form .btn { min-height: 54px; }
.newsletter__admin-note { background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.5); border-radius: 12px; padding: 12px 16px; margin: 0; font-size: 14px; }
.newsletter--sidebar { background: var(--tch-primary); color: var(--tch-bg); border-radius: var(--tch-radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.newsletter--sidebar .newsletter__title { font-size: 30px; }
.newsletter--sidebar .newsletter__copy p { font-size: 15px; }
.newsletter--sidebar input[type="email"], .newsletter--sidebar .btn { flex-basis: 100%; height: 48px; min-height: 48px; }
@media (max-width: 600px) { .newsletter--band { padding: 40px 24px; } }
/* End-of-post signup (blog, articles, recipes, swaps), same dark green as the homepage/About band */
.newsletter--inline { margin-top: 48px; background: var(--tch-primary); color: var(--tch-bg); border-radius: 26px; padding: 32px 36px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.newsletter--inline .newsletter__icon { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--tch-bg); color: var(--tch-accent); display: flex; align-items: center; justify-content: center; }
.newsletter--inline .newsletter__copy { flex: 1 1 260px; }
.newsletter--inline .newsletter__title { font-size: 32px; margin-bottom: 6px; }
.newsletter--inline .newsletter__copy p { font-size: 15px; }
.newsletter--inline .newsletter__form { flex: 1 1 100%; }
@media (max-width: 600px) { .newsletter--inline { padding: 28px 22px; } }

/* Jetpack Newsletter form → brand styling (overrides Jetpack's inline styles) */
.tch-jetpack-form .wp-block-jetpack-subscriptions__container,
.tch-jetpack-form .wp-block-jetpack-subscriptions { margin: 0 !important; padding: 0 !important; background: none !important; }
.tch-jetpack-form form { margin: 0 !important; display: flex !important; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.tch-jetpack-form .widgettitle, .tch-jetpack-form .widget-title, .tch-jetpack-form #subscribe-text { display: none; }
.newsletter--sidebar .tch-jetpack-form form { flex-direction: column; }
.newsletter--sidebar .tch-jetpack-form p, .newsletter--sidebar .tch-jetpack-form #subscribe-email { flex: 0 0 auto !important; }
.newsletter--sidebar .tch-jetpack-form input[type="email"] { flex-basis: auto; }
.tch-jetpack-form .wp-block-jetpack-subscriptions__form-elements,
.tch-jetpack-form form > div { display: flex !important; flex-wrap: wrap; gap: 12px !important; align-items: stretch; }
.newsletter--sidebar .tch-jetpack-form .wp-block-jetpack-subscriptions__form-elements,
.newsletter--sidebar .tch-jetpack-form form > div { flex-direction: column; }
.tch-jetpack-form p { margin: 0 !important; padding: 0 !important; }
.tch-jetpack-form #subscribe-email, .tch-jetpack-form p:has(input[type="email"]) { flex: 1 1 220px; min-width: 0; }
.tch-jetpack-form input[type="email"] {
	width: 100% !important; height: 54px !important; border-radius: var(--tch-pill) !important; border: 0 !important; padding: 0 22px !important; margin: 0 !important;
	font: 500 16px var(--tch-font) !important; background: var(--tch-bg) !important; color: var(--tch-text) !important; box-shadow: none !important;
}
.tch-jetpack-form input[type="email"]:focus { outline: 3px solid #F2C9A8 !important; outline-offset: 2px; }
.tch-jetpack-form button, .tch-jetpack-form input[type="submit"] {
	height: 54px !important; min-height: 54px; border-radius: var(--tch-pill) !important; border: 0 !important; padding: 0 28px !important; margin: 0 !important; width: auto !important;
	background: var(--tch-accent) !important; color: var(--tch-white) !important; font: 800 16px var(--tch-font) !important; cursor: pointer; white-space: nowrap; line-height: 1 !important;
}
.tch-jetpack-form button:hover, .tch-jetpack-form input[type="submit"]:hover { background: var(--tch-accent-dark) !important; }
.newsletter--sidebar .tch-jetpack-form button, .newsletter--sidebar .tch-jetpack-form input[type="email"] { width: 100% !important; height: 48px !important; min-height: 48px; }
.tch-jetpack-form .jetpack-subscribe-count, .tch-jetpack-form .wp-block-jetpack-subscriptions__subscount { display: none; }
.tch-jetpack-form .success, .tch-jetpack-form .jetpack-subscription-success, .tch-jetpack-form .error {
	border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 15px; background: rgba(255,255,255,.12); color: inherit; margin: 0;
}


/* ---------- Footer ---------- */
.site-footer { background: var(--tch-primary-dark); color: #E9E5DA; }
.site-footer a { color: #E9E5DA; text-decoration: none; }
.site-footer a:hover { color: #F2C9A8; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-block: 64px 36px; }
.footer-wordmark { font-weight: 800; font-size: 22px; color: var(--tch-bg) !important; display: inline-block; margin-bottom: 8px; }
.footer-wordmark span { font-family: var(--tch-script); font-weight: 400; font-size: 30px; color: #E9A57E; }
.site-footer__brand p { font-size: 15px; }
.site-footer__title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-bg); margin-bottom: 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-menu .children { display: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid #36502F; font-size: 13px; color: #C9CDBF; }
.site-footer__hint { font-size: 14px; }

/* ---------- Page headers ---------- */
.page-head { padding-block: 56px 32px; }
.page-head--center { text-align: center; padding-block: 96px; }
.page-head--center .search-form { margin: 24px auto; max-width: 480px; }
.page-head__kicker { font-size: 30px; margin-bottom: 10px; }
/* Recipe "The swap" line: compact pill under the breadcrumb */
.swap-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; }
.swap-line__label { font-size: 26px; line-height: 1; color: var(--tch-accent); }
.swap-line__pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; background: var(--tch-secondary-tint); border-radius: var(--tch-pill); padding: 7px 16px; font-size: 15px; line-height: 1.35; max-width: 100%; }
.swap-line__from { color: var(--tch-muted); text-decoration-color: var(--tch-accent); text-decoration-thickness: 2px; }
.swap-line__arrow { color: var(--tch-accent); display: inline-flex; }
.swap-line__to { color: var(--tch-primary); font-weight: 700; }
@media (max-width: 600px) { .swap-line__pair { border-radius: 16px; } }
.page-head__title { margin: 0; }
.page-head__desc { max-width: 720px; margin-top: 12px; color: var(--tch-muted); }
.page-head__search { max-width: 560px; margin-top: 20px; }
.empty { font-size: 18px; }

/* Pagination */
.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--tch-pill); border: 1.5px solid var(--tch-line); text-decoration: none; font-weight: 600; background: var(--tch-white);
}
.page-numbers.current, .page-numbers:hover { background: var(--tch-primary); border-color: var(--tch-primary); color: var(--tch-bg); }
.page-numbers.dots { border: 0; background: transparent; }

/* ---------- Single post ---------- */
.single-head { padding-block: 40px 8px; display: flex; flex-direction: column; gap: 16px; }
.breadcrumb { font-size: 14px; color: var(--tch-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.single-head__kicker { font-size: 30px; }
.single-head__title { margin: 0; max-width: 900px; font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.15; }
.single-head__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 14px; font-weight: 500; color: var(--tch-muted); }
.single-head__actions { display: inline-flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }

.layout-sidebar { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 28px 88px; }
.entry { flex: 999 1 560px; min-width: 0; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.entry__featured { margin: 0 0 32px; border-radius: 26px; overflow: hidden; background: var(--tch-wood-tint); }
.entry__featured img { width: 100%; }
.entry__content { font-size: 18px; line-height: 1.75; }
.entry__content > * { max-width: 100%; }
.entry__content h2 { margin-top: 1.6em; }
.entry__content img { border-radius: var(--tch-radius-sm); }
.entry__content blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--tch-secondary); font-size: 1.1em; color: var(--tch-primary); }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .4em; }
.entry__content .wp-block-image figcaption { font-size: 14px; color: var(--tch-muted); text-align: center; }
.alignwide { margin-inline: 0; }

.entry__footer { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a { background: var(--tch-secondary-tint); color: var(--tch-primary); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--tch-pill); text-decoration: none; }
.post-navigation .nav-links { justify-content: space-between; gap: 16px; }
.post-navigation .nav-links > div { flex: 1 1 240px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border: 1px solid var(--tch-line); border-radius: var(--tch-radius-sm); background: var(--tch-white); text-decoration: none; font-weight: 700; height: 100%; }
.post-navigation .nav-next a { text-align: right; }

/* ---------- Recipe page ---------- */
.btn--ghost { background: transparent; color: var(--tch-primary); border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.btn--ghost:hover { color: var(--tch-accent); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--tch-pill); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.tag--green { background: var(--tch-secondary-tint); color: var(--tch-primary); }
.tag--wood { background: var(--tch-wood-tint); color: var(--tch-wood-text); }
.recipe-section-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0; }
.recipe-h3 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.entry > section { margin-top: 40px; }

/* Stars */
.stars { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.stars__base { color: #DCD3C2; display: inline-flex; }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--tch-accent); display: inline-flex; white-space: nowrap; }
.stars svg { flex: 0 0 auto; }
.rating-summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--tch-text); }
.rating-summary:hover { color: var(--tch-accent); }
.rating-summary--empty span { color: var(--tch-muted); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.rating-summary--inline { gap: 6px; }
.card-meta__rating .icon { color: var(--tch-accent); fill: var(--tch-accent); }

/* Quick facts */
.recipe-facts { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.recipe-facts__top { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--tch-tint); color: var(--tch-primary); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--tch-pill); }
.chips li:nth-child(n+3) { background: var(--tch-secondary-tint); }
.recipe-facts__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.recipe-id { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-muted); }
.fact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 0; }
.fact-tile { background: var(--tch-bg); border-radius: 16px; padding: 14px 16px; }
.fact-tile dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tch-muted); }
.fact-tile dt .icon { flex: 0 0 auto; }
.fact-tile dt .icon { color: var(--tch-secondary-text); }
.fact-tile dd { margin: 6px 0 0; font-size: 18px; font-weight: 700; color: var(--tch-primary); line-height: 1.25; }
.fact-tile--cal { background: var(--tch-primary); }
.fact-tile--cal dt, .fact-tile--cal dt .icon { color: #D7E3C3; }
.fact-tile--cal dd { color: var(--tch-bg); }
.fact-tile dd small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .8; text-transform: uppercase; margin-top: 2px; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.js-cook-mode[aria-pressed="true"] { background: var(--tch-accent); border-color: var(--tch-accent); color: var(--tch-white); }
.cook-mode-status { margin: -8px 0 0; font-size: 14px; color: var(--tch-secondary-text); font-weight: 600; min-height: 0; }
.cook-mode-status:empty { display: none; }

/* Ingredients + steps */
.recipe-main { background: var(--tch-white); border: 2px solid var(--tch-wood); border-radius: 28px; padding: 36px; scroll-margin-top: 16px; }
.recipe-main__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px dashed var(--tch-wood); }
.recipe-main__kicker { font-size: 28px; }
.recipe-main__title { margin: 4px 0 0; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.servings { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 6px 12px; }
.servings__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-muted); }
.servings__control { display: inline-flex; align-items: center; border: 1.5px solid var(--tch-primary); border-radius: var(--tch-pill); overflow: hidden; }
.servings__btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--tch-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.servings__btn:hover { background: var(--tch-secondary-tint); }
.servings__btn:disabled { opacity: .35; cursor: not-allowed; }
.servings__value { min-width: 40px; text-align: center; font-weight: 800; font-size: 18px; color: var(--tch-primary); }
.servings__reset { border: 0; background: none; color: var(--tch-accent-dark); font: 600 14px var(--tch-font); text-decoration: underline; cursor: pointer; padding: 8px 4px; }
.servings__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--tch-muted); }
.recipe-main__body { display: flex; flex-direction: column; gap: 40px; }
.ing-group + .ing-group { margin-top: 18px; }
.ing-group__title { font-size: 13px; font-weight: 700; color: var(--tch-secondary-text); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.ingredients { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.ingredients li { break-inside: avoid; }
.ingredients label { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; cursor: pointer; padding: 8px 0; border-bottom: 1px solid var(--tch-line); }
.ingredients input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--tch-secondary); }
.ingredients input:checked + .ing-text { text-decoration: line-through; color: var(--tch-muted); }
.ing-amt { color: var(--tch-primary); font-weight: 700; }
.ing-amt.is-scaled { color: var(--tch-accent-dark); }
.ing-note { font-style: normal; color: var(--tch-muted); font-size: 14px; }
.ing-note::before { content: "· "; }
.scaled-note { margin: 12px 0 0; font-size: 13px; color: var(--tch-accent-dark); font-weight: 600; }
.ingredient-note { margin: 18px 0 0; font-size: 14px; background: var(--tch-tint); padding: 12px 16px; border-radius: 12px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 18px; align-items: flex-start; scroll-margin-top: 24px; }
.step__num {
	flex: 0 0 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tch-accent); color: var(--tch-white);
	font: 800 17px var(--tch-font); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
}
.step__num:hover { background: var(--tch-accent-dark); }
.step__num[aria-pressed="true"] { background: var(--tch-secondary); }
.step__num[aria-pressed="true"] span[aria-hidden] { font-size: 0; }
.step__num[aria-pressed="true"]::after { content: ""; width: 14px; height: 8px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -2px); position: absolute; }
.step.is-done .step__body { opacity: .55; }
.step__body { flex: 1 1 auto; min-width: 0; }
.step__title { font-size: 18px; font-weight: 700; margin: 8px 0 8px; color: var(--tch-primary); }
.step__body > p { margin: 0 0 6px; font-size: 16px; line-height: 1.6; }
.step__list { margin: 0 0 10px; padding-left: 1.2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 20px; font-size: 15px; }
.step__list li::marker { color: var(--tch-accent); }
.step__tip { background: var(--tch-secondary-tint); border-radius: 14px; padding: 14px 18px; margin: 12px 0 4px; }
.step__tip-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tch-primary); margin-bottom: 4px; }
.step__tip-label .icon { color: var(--tch-accent); fill: var(--tch-accent); }
.step__tip p { margin: 0; font-size: 15px; }
.step__photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 440px)); gap: 12px; margin-top: 14px; }
.step__photo { margin: 0; }
.step__photo img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.step__photo figcaption { font-size: 13px; color: var(--tch-muted); margin-top: 6px; }

/* Cook Mode: bigger type, one focus area. */
body.cook-mode .step__body > p, body.cook-mode .step__list { font-size: 20px; line-height: 1.6; }
body.cook-mode .step__title { font-size: 22px; }
body.cook-mode .ingredients label { font-size: 19px; }
body.cook-mode .recipe-main { border-color: var(--tch-accent); box-shadow: 0 0 0 6px rgba(198, 91, 43, .12); }

/* The Calorie Hack */
.calorie-hack { background: var(--tch-primary); color: #EEF1E6; border-radius: 30px; padding: 44px 40px; display: flex; flex-direction: column; gap: 28px; }
.calorie-hack__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tch-script); font-size: 30px; color: #F2C9A8; line-height: 1; }
.calorie-hack__badge .icon { fill: #F2C9A8; color: #F2C9A8; }
.calorie-hack__title { color: var(--tch-bg); margin: 10px 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.calorie-hack__intro { margin: 0; font-size: 17px; max-width: 640px; }
.hack-table-wrap { overflow-x: auto; border-radius: 18px; }
.hack-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--tch-bg); color: var(--tch-text); border-radius: 18px; overflow: hidden; font-size: 16px; min-width: 460px; }
.hack-table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 14px 20px; background: var(--tch-tint); color: var(--tch-muted); }
.hack-table th:last-child { background: var(--tch-secondary-tint); color: var(--tch-primary); }
.hack-table td { padding: 14px 20px; border-top: 1px solid var(--tch-line); vertical-align: top; }
.hack-table__old { color: var(--tch-muted); width: 45%; }
.hack-table__old s { text-decoration-color: var(--tch-accent); text-decoration-thickness: 2px; }
.hack-table__new { font-weight: 700; color: var(--tch-primary); }
.hack-table__new .icon { color: var(--tch-secondary-text); vertical-align: -4px; margin-right: 8px; }
.calorie-hack__why { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.calorie-hack__why > div { flex: 999 1 380px; min-width: 0; }
.calorie-hack__h3 { color: var(--tch-bg); font-size: 20px; margin-bottom: 14px; }
.why-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.why-list > div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px 18px; }
.why-list dt { font-weight: 700; color: #F2C9A8; margin-bottom: 2px; }
.why-list dd { margin: 0; font-size: 15px; }
.calorie-hack__photo { flex: 1 1 240px; margin: 0; }
.calorie-hack__photo img { border-radius: 18px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.calorie-hack__photo figcaption { font-size: 13px; margin-top: 8px; color: #C9D2BC; }
.philosophy { margin: 0; padding: 28px 30px; border-radius: 22px; background: var(--tch-bg); color: var(--tch-text); text-align: center; }
.philosophy__label { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tch-secondary-text); }
.philosophy__lead { margin: 0 0 12px; font-family: var(--tch-script); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; color: var(--tch-accent); }
.philosophy__line { margin: 0; font-size: 15px; font-weight: 600; color: var(--tch-primary); }

/* Nutrition */
.recipe-nutrition { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 26px; padding: 32px; }
.recipe-nutrition__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.recipe-nutrition__per { margin: 6px 0 18px; color: var(--tch-muted); font-size: 14px; }
.nutrition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 16px; }
.nutrition-item { border: 1px solid var(--tch-line); border-radius: 14px; padding: 12px 14px; text-align: center; }
.nutrition-item dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tch-muted); }
.nutrition-item dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--tch-primary); }
.nutrition-item--cal { background: var(--tch-primary); border-color: var(--tch-primary); }
.nutrition-item--cal dt { color: #D7E3C3; }
.nutrition-item--cal dd { color: var(--tch-bg); }
.recipe-nutrition__disclaimer { margin: 0; font-size: 13px; color: var(--tch-muted); }

/* Make It a Meal (Build Your Plate) */
.make-meal { background: var(--tch-secondary-tint); border-radius: 26px; padding: 34px 32px; }
.make-meal__kicker { display: block; font-size: 30px; color: var(--tch-accent); line-height: 1.1; }
.make-meal__intro { margin: 10px 0 0; max-width: 680px; }
.make-meal__grid { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; align-items: stretch; }
.make-meal__choices { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.make-meal__label { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tch-secondary-text); margin-bottom: 10px; padding: 0; }
.make-meal__portion { background: var(--tch-white); border-radius: 18px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.make-meal__portion .make-meal__label { margin: 0; flex: 1 0 100%; }
.make-meal__portion-note { font-size: 15px; font-weight: 600; color: var(--tch-primary); }
.make-meal__sides { border: 0; margin: 0; padding: 0; min-width: 0; }
.make-meal__side-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.side-option { position: relative; display: flex; gap: 12px; align-items: flex-start; background: var(--tch-white); border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.side-option:hover { border-color: #CFD9BE; }
.side-option.is-checked, .side-option:has(input:checked) { border-color: var(--tch-secondary); box-shadow: 0 6px 16px rgba(38, 63, 32, .08); }
.side-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tch-primary); flex: 0 0 auto; }
.side-option input:focus-visible { outline: 3px solid var(--tch-accent); outline-offset: 2px; }
.side-option__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-option__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.side-option__name { font-weight: 700; color: var(--tch-primary); }
.side-option__cal { font-size: 13px; font-weight: 800; color: var(--tch-accent); }
.side-option__est { font-weight: 600; font-size: 12px; color: var(--tch-muted); }
.side-option__text { font-size: 14px; color: var(--tch-muted); line-height: 1.45; }
.make-meal__total { flex: 1 1 240px; background: var(--tch-primary); color: var(--tch-bg); border-radius: 22px; padding: 26px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.make-meal__total-label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #D7E3C3; }
.make-meal__total-num { font-size: 56px; font-weight: 800; line-height: 1.05; color: #F2C9A8; font-variant-numeric: tabular-nums; }
.make-meal__total-unit { font-weight: 600; }
.make-meal__breakdown { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #D7E3C3; }
.make-meal__note { margin: 10px 0 0; font-size: 12px; color: #C9D2BC; }
.make-meal__ref { margin: 18px 0 0; font-size: 13px; color: var(--tch-muted); max-width: 760px; }

/* Hack It Again (leftovers) */
.hack-again { border: 2px dashed var(--tch-wood); border-radius: 26px; padding: 32px; }
.hack-again__head { display: flex; align-items: center; gap: 16px; }
.hack-again__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--tch-wood-tint); color: var(--tch-accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hack-again__kicker { display: block; font-size: 26px; color: var(--tch-accent); line-height: 1; }
.hack-again__intro { margin: 14px 0 0; color: var(--tch-muted); }
.hack-again__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hack-again__card { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 18px; padding: 18px 20px; }
.hack-again__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.hack-again__title { font-size: 17px; margin: 0; color: var(--tch-primary); }
.hack-again__cal { font-size: 13px; font-weight: 800; color: var(--tch-accent); background: #FBEDE4; border-radius: var(--tch-pill); padding: 3px 10px; white-space: nowrap; }
.hack-again__card p { margin: 8px 0 0; font-size: 15px; }
@media (max-width: 600px) {
	.make-meal, .hack-again { padding: 24px 18px; border-radius: 22px; }
	.make-meal__total-num { font-size: 46px; }
}

/* Kitchen notes */
.kitchen-notes { background: var(--tch-wood-tint); border-radius: 26px; padding: 34px 32px; }
.kitchen-notes__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.kitchen-notes__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--tch-white); color: var(--tch-wood-text); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.kitchen-notes__title { font-size: 38px; margin: 0; color: var(--tch-primary); }
.kitchen-notes__sub { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tch-wood-text); }
.notes-list { list-style: none; counter-reset: note; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.notes-list li { counter-increment: note; background: var(--tch-bg); border-radius: 18px; padding: 18px 20px 18px 66px; position: relative; }
.notes-list li::before { content: counter(note); position: absolute; left: 18px; top: 12px; font-family: var(--tch-script); font-size: 36px; line-height: 1; color: var(--tch-accent); }
.notes-list__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--tch-primary); }
.notes-list p { margin: 0; font-size: 15px; }

/* Verdict */
.verdict { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 8px 0; }
.verdict__snapshot { flex: 0 1 260px; margin: 0 auto; background: var(--tch-white); padding: 12px 12px 14px; box-shadow: var(--tch-shadow); transform: rotate(-2.5deg); border-radius: 4px; }
.verdict__snapshot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.verdict__snapshot figcaption { font-family: var(--tch-script); font-size: 22px; text-align: center; color: var(--tch-text); margin-top: 8px; line-height: 1.1; }
.verdict__body { flex: 999 1 340px; min-width: 0; }
.verdict__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.verdict__badge { display: inline-flex; align-items: center; gap: 6px; background: var(--tch-accent); color: var(--tch-white); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--tch-pill); }
.verdict__badge .icon { fill: currentColor; }
.verdict__title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-muted); }
.verdict__quote { margin: 0 0 16px; }
.verdict__quote p { margin: 0; font-family: var(--tch-script); font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.1; color: var(--tch-primary); }
.verdict__quote footer { margin-top: 8px; font-weight: 700; color: var(--tch-accent-dark); }
.verdict__rows { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.verdict__label { font-weight: 700; color: var(--tch-primary); margin-right: 6px; }
.verdict__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; }
.verdict__status .tag .icon { fill: currentColor; color: var(--tch-accent); }

/* Storage */
.storage { border-top: 1px solid var(--tch-line); padding-top: 36px; }
.storage__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.storage__list li { display: flex; gap: 14px; align-items: flex-start; background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 18px; padding: 16px 18px; }
.storage__icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--tch-secondary-tint); color: var(--tch-primary); display: flex; align-items: center; justify-content: center; }
.storage__label { font-size: 15px; font-weight: 700; margin: 2px 0 2px; }
.storage__list p { margin: 0; font-size: 15px; }

/* Rating input in the comment form */
.rating-input { border: 0; padding: 0; margin: 0 0 18px; }
.rating-input legend { font-weight: 600; font-size: 14px; color: var(--tch-primary); margin-bottom: 6px; padding: 0; }
.rating-input__hint { color: var(--tch-muted); font-weight: 500; }
.rating-input__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input__stars label { color: #DCD3C2; cursor: pointer; padding: 4px; margin: 0; line-height: 0; border-radius: 8px; }
.rating-input__stars label:hover, .rating-input__stars label:hover ~ label,
.rating-input__stars input:checked ~ label { color: var(--tch-accent); }
.rating-input__stars input:focus-visible + label { outline: 3px solid var(--tch-accent); outline-offset: 2px; }
.comment-rating { margin: 0 0 6px; }

@media (max-width: 600px) {
	.hack-table { min-width: 0; }
	.hack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hack-table tr { display: block; border-top: 1px solid var(--tch-line); padding: 12px 16px; }
	.hack-table tr:first-child { border-top: 0; }
	.hack-table td { display: block; border: 0; padding: 2px 0; width: auto; }
	.hack-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tch-muted); text-decoration: none; }
}
@media (max-width: 640px) {
	.recipe-facts, .recipe-main, .recipe-nutrition, .kitchen-notes { padding: 22px 18px; border-radius: 22px; }
	.calorie-hack { padding: 30px 20px; border-radius: 24px; }
	.step { gap: 12px; }
	.step__num { flex-basis: 38px; height: 38px; }
	.notes-list li { padding-left: 56px; }
}

/* ---------- Sidebar ---------- */
.widget { margin: 0; }
.widget-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.widget ul { padding-left: 1.1em; }
/* Core block widgets in the sidebar */
.sidebar .widget h2, .sidebar .wp-block-heading { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.sidebar .widget ul, .sidebar .widget ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.sidebar .widget li a { font-weight: 600; text-decoration: none; }
.sidebar .widget li a:hover { text-decoration: underline; }
.sidebar .wp-block-search__label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.sidebar .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.sidebar .wp-block-search__input { flex: 1 1 auto; min-width: 0; height: 50px; border-radius: var(--tch-pill); border: 1.5px solid #D9D1BF; padding: 0 20px; font: 500 15px var(--tch-font); background: var(--tch-white); }
.sidebar .wp-block-search__button { height: 50px; margin: 0; border: 0; border-radius: var(--tch-pill); padding: 0 20px; background: var(--tch-primary); color: var(--tch-bg); font: 700 15px var(--tch-font); cursor: pointer; }
.sidebar .wp-block-search__button:hover { background: var(--tch-accent); }
.about-box { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: var(--tch-radius); padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.about-box__photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--tch-wood-tint); border: 4px solid var(--tch-wood); }
.about-box__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-box__kicker { font-size: 32px; }
.about-box p { margin: 0; font-size: 15px; }
.popular__list { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.popular__list a { display: flex; gap: 14px; align-items: center; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.35; }
.popular__thumb { flex: 0 0 76px; height: 76px; border-radius: 14px; }
.popular__thumb .icon { width: 26px; height: 26px; }

/* ---------- Comments ---------- */
.comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--tch-line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: var(--tch-radius-sm); padding: 20px 22px; margin-bottom: 16px; font-size: 16px; }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: 4px 0 10px; }
.comment-metadata a { color: var(--tch-muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1.5px solid #D9D1BF; border-radius: var(--tch-radius-sm); padding: 12px 16px; font: 500 16px var(--tch-font); background: var(--tch-white);
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; }

/* ---------- About page ---------- */
.about-hero { background: var(--tch-white); border-bottom: 1px solid var(--tch-line); }
.about-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 64px 72px; max-width: 1140px; }
.about-hero__photo { flex: 0 1 400px; }
.about-hero__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-hero__copy .about__kicker { margin-bottom: 0; }
.about-hero__title { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.25rem); }
.about-hero__lead { margin: 0; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--tch-primary); font-weight: 500; max-width: 560px; }
.social-links--round { gap: 10px; margin-top: 6px; }
.social-links--round a { width: 44px; height: 44px; border: 1.5px solid var(--tch-primary); color: var(--tch-primary); }
.social-links--round a:hover { background: var(--tch-primary); color: var(--tch-bg); }
/* About page portrait: 4:5, gently rounded, natural colors, crop weighted to the top (keeps hair in frame). */
.about-portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--tch-wood-tint); color: var(--tch-wood); display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px rgba(38, 63, 32, .12); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.about-hero--text .about-hero__inner { padding-block: 56px 48px; }
.about-hero--text .about-hero__copy { flex-basis: 100%; max-width: 820px; }
.about-story__inner { max-width: 1080px; display: flow-root; }
.about-story__photo { float: left; width: min(40%, 380px); margin: 6px 44px 28px 0; }
.about-story__inner > .entry__content { max-width: none; }
@media (max-width: 720px) {
	.about-story__photo { float: none; width: 100%; max-width: 420px; margin: 0 auto 28px; }
}
.about-story .entry__content > p:first-child::first-letter {
	font-family: var(--tch-script); color: var(--tch-accent); float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0;
}
.section--flush-top { padding-top: 0; }
.about-story + .section--tint { margin-top: 0; }
.section-head--center { justify-content: center; text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.value-card { background: var(--tch-bg); border-radius: var(--tch-radius); padding: 32px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.value-card__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tch-secondary-tint); color: var(--tch-primary); display: flex; align-items: center; justify-content: center; }
.value-card:nth-child(2) .value-card__icon { background: #F6DFD3; color: var(--tch-accent-dark); }
.value-card:nth-child(3) .value-card__icon { background: var(--tch-wood-tint); color: var(--tch-wood-text); }
.value-card__title { margin: 0; font-size: 22px; }
.value-card p { margin: 0; font-size: 15px; }
.section--tint + .section--flush-top { padding-top: 80px; }

/* ---------- Contact page ---------- */
.contact-head { padding-bottom: 24px; }
.contact-head__intro { font-size: 18px; color: var(--tch-text); }
.contact-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 96px; }
.contact-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-form-card { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 28px; padding: 36px; scroll-margin-top: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .btn { align-self: flex-start; min-height: 54px; padding: 0 32px; }
.form-row--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--tch-primary); }
.form-field .req { color: var(--tch-accent-dark); }
.form-field input, .form-field select, .form-field textarea {
	width: 100%; border: 1.5px solid #D9D1BF; border-radius: var(--tch-radius-sm); padding: 13px 16px;
	font: 500 16px/1.5 var(--tch-font); color: var(--tch-text); background: var(--tch-bg);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23263F20' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form-field textarea { resize: vertical; min-height: 160px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--tch-primary); box-shadow: 0 0 0 3px var(--tch-secondary-tint); background: var(--tch-white); }
.form-field.has-error input, .form-field.has-error textarea { border-color: #B3261E; background: #FFF8F6; }
.form-error { margin: 0; font-size: 14px; font-weight: 600; color: #B3261E; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--tch-radius-sm); padding: 16px 18px; margin-bottom: 24px; }
.form-notice p { margin: 0; }
.form-notice--success { background: var(--tch-secondary-tint); color: var(--tch-primary); font-weight: 600; }
.form-notice--success .icon { flex: 0 0 auto; margin-top: 2px; }
.form-notice--error { background: #FBE9E6; color: #8C1D18; border: 1px solid #F1C2BB; }
.contact-box { background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: var(--tch-radius); padding: 28px; }
.contact-box--tint { background: var(--tch-secondary-tint); border-color: transparent; }
.contact-box__title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.contact-box__script { font-size: 30px; color: var(--tch-primary); margin-bottom: 8px; }
.contact-box--tint p { margin: 0; font-size: 15px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.contact-list__icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--tch-tint); color: var(--tch-primary); display: flex; align-items: center; justify-content: center; }
.contact-box__note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--tch-line); font-size: 14px; color: var(--tch-muted); }
.contact-about { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--tch-radius); border: 1px solid var(--tch-line); background: var(--tch-white); text-decoration: none; font-size: 15px; }
.contact-about:hover { box-shadow: var(--tch-shadow); }
.contact-about__photo { flex: 0 0 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--tch-wood-tint); border: 3px solid var(--tch-wood); }
.contact-about__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .contact-form-card { padding: 24px 20px; } }

/* ---------- Print ---------- */
@media print {
	/* "Print Recipe": keep only the recipe pieces (title, facts, ingredients, steps, nutrition, notes, storage). */
	body.tch-print-recipe .site-main :is(*):not(:has(.print-keep)):not(.print-keep):not(.print-keep *) { display: none !important; }
	.topbar, .site-header, .site-footer, .sidebar, .comments, .entry__footer, .no-print, .skip-link, .breadcrumb { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	.layout-sidebar, .single-head { padding: 0 !important; display: block !important; }
	.entry > section { margin-top: 14pt; }
	.recipe-facts, .recipe-main, .recipe-nutrition, .kitchen-notes, .storage__list li, .hack-again, .hack-again__card { border: 1px solid #bbb !important; border-radius: 6px !important; padding: 10pt !important; background: #fff !important; box-shadow: none !important; }
	.fact-tile, .fact-tile--cal, .nutrition-item, .nutrition-item--cal, .notes-list li { background: #fff !important; border: 1px solid #ddd; }
	.fact-tile--cal dd, .fact-tile--cal dt, .nutrition-item--cal dd, .nutrition-item--cal dt { color: #000 !important; }
	.step__num { background: #fff !important; color: #000 !important; border: 1px solid #000; }
	.step, .ing-group, .notes-list li { break-inside: avoid; }
	.ingredients input { display: none; }
	.ingredients li label::before { content: "☐"; margin-right: 4px; }
	.ingredients label { border: 0; padding: 1pt 0; font-size: 10pt; }
	.steps { gap: 8pt; }
	.step__body > p, .step__list { margin: 0; font-size: 10pt; line-height: 1.4; }
	.step__title { margin: 2pt 0; font-size: 11pt; }
	.step__tip { padding: 6pt 10pt; margin: 4pt 0; }
	.step__num { flex-basis: 22pt; height: 22pt; font-size: 10pt; }
	.recipe-main__head, .kitchen-notes__head, .recipe-section-title, .recipe-h3 { break-after: avoid; }
	.recipe-main__head { padding-bottom: 8pt; margin-bottom: 10pt; }
	.notes-list li, .storage__list li { padding: 8pt 10pt 8pt 40pt !important; font-size: 10pt; }
	.notes-list li::before { left: 10pt; top: 6pt; font-size: 20pt; }
	.storage__list li { padding-left: 10pt !important; }
	.storage__icon, .kitchen-notes__icon { display: none; }
	a { color: #000; text-decoration: none; }
}

/* ---------- Back to top ---------- */
.to-top {
	position: fixed; z-index: 60; width: 64px; height: 64px;
	right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
	display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none;
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__track { fill: var(--tch-bg); stroke: var(--tch-wood-tint); stroke-width: 4; }
.to-top__progress { fill: none; stroke: var(--tch-secondary); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top__inner {
	position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--tch-accent); color: var(--tch-white);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
	box-shadow: 0 8px 20px rgba(198, 91, 43, .35); transition: background-color .15s, transform .2s;
}
.to-top__inner svg { margin-top: 2px; transition: transform .2s; }
.to-top__label { font-family: var(--tch-script); font-size: 15px; line-height: .8; margin-top: -1px; letter-spacing: .02em; }
.to-top:hover .to-top__inner { background: var(--tch-accent-dark); transform: scale(1.05); }
.to-top:hover .to-top__inner svg { transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--tch-primary); outline-offset: 3px; }
body.cook-mode .to-top__inner { background: var(--tch-primary); box-shadow: 0 8px 20px rgba(38, 63, 32, .3); }
@media (max-width: 600px) { .to-top { width: 56px; height: 56px; right: 14px; bottom: 14px; } .to-top__inner { width: 44px; height: 44px; } .to-top__label { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-visible, .to-top__progress, .to-top__inner, .to-top__inner svg { transition: none; } }
@media print { .to-top { display: none !important; } }

/* ---------- 404 ---------- */
.e404 { overflow: hidden; }
.e404__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 64px; padding-block: 72px 88px; }
.e404__art { position: relative; flex: 0 1 480px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.e404__digit { font-size: clamp(7rem, 16vw, 11rem); font-weight: 600; color: var(--tch-primary); line-height: 1; letter-spacing: -0.04em; }
.e404__plate { width: clamp(8.5rem, 19vw, 13rem); height: auto; flex: 0 0 auto; filter: drop-shadow(0 14px 22px rgba(38, 63, 32, .14)); transform-origin: 50% 50%; }
.e404__art:hover .e404__plate { animation: e404-wobble .9s ease-in-out; }
.e404__spoon { flex: 0 0 auto; width: 40px; height: auto; margin-left: 10px; transform: rotate(14deg) translateY(10px); filter: drop-shadow(0 8px 12px rgba(38, 63, 32, .15)); }
.e404__cats .pill { text-transform: none; letter-spacing: 0; }
.e404__crumbs circle { animation: e404-crumb 3.2s ease-in-out infinite; }
.e404__crumbs circle:nth-child(2n) { animation-delay: .6s; }
.e404__crumbs circle:nth-child(3n) { animation-delay: 1.2s; }
@keyframes e404-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
@keyframes e404-crumb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .e404__art:hover .e404__plate, .e404__crumbs circle { animation: none; } }

.e404__copy { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.e404__kicker { font-size: 34px; }
.e404__title { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.e404__text { margin: 0; font-size: 18px; }
.e404__hack { background: var(--tch-primary); color: var(--tch-bg); border-radius: 18px; padding: 16px 20px; }
.e404__hack-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F2C9A8; margin-bottom: 6px; }
.e404__hack-label .icon { fill: currentColor; }
.e404__hack p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 18px; }
.e404__hack s { color: #C9D2BC; text-decoration-color: var(--tch-accent); text-decoration-thickness: 2px; }
.e404__hack .icon { color: #F2C9A8; }
.e404__hack strong { color: var(--tch-white); }
.e404__search .search-form { max-width: 520px; }
.e404__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.e404__cats { margin-top: 4px; }
@media (max-width: 600px) {
	.e404__inner { padding-block: 40px 64px; }
	.e404__spoon { width: 26px; margin-left: 4px; }
}

/* ---------- Footer credit ---------- */
.made-by { display: inline-flex; align-items: center; gap: 5px; }
.made-by__heart { color: var(--tch-accent); transform-origin: 50% 60%; }
.made-by:hover .made-by__heart { animation: tch-beat .9s ease-in-out infinite; }
.site-footer .made-by a { color: #F2C9A8; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(242, 201, 168, .4); text-underline-offset: .2em; }
.site-footer .made-by a:hover { color: var(--tch-white); text-decoration-color: currentColor; }
@keyframes tch-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .made-by:hover .made-by__heart { animation: none; } }

/* ---------- Blog ---------- */
.blog-head__intro { font-size: 18px; color: var(--tch-text); max-width: 700px; }
.blog-head__intro p { margin: 0; }
.blog-topics { margin-top: 22px; }
.blog-list { display: flex; flex-direction: column; gap: 40px; padding-bottom: 88px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px 28px; }
.article-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.article-card__thumb { border-radius: 20px; aspect-ratio: 16 / 10; }
.article-card__body { display: flex; flex-direction: column; gap: 8px; }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--tch-muted); font-weight: 500; }
.article-card__cat { position: relative; z-index: 1; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tch-accent-dark); text-decoration: none; }
.article-card__cat:hover { text-decoration: underline; }
.article-card__title { margin: 0; font-size: 21px; line-height: 1.3; }
.article-card__title a { text-decoration: none; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover .article-card__title a { color: var(--tch-accent); }
.article-card:focus-within { outline: 3px solid var(--tch-accent); outline-offset: 6px; border-radius: 20px; }
.article-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tch-text); }
.article-card__more { font-size: 14px; font-weight: 700; color: var(--tch-primary); text-decoration: none; }
.article-card:hover .article-card__more { text-decoration: underline; }
.article-card--lg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 28px; padding: 22px; }
.article-card--lg .article-card__thumb { aspect-ratio: 4 / 3; border-radius: 20px; }
.article-card--lg .article-card__body { padding-right: 16px; gap: 12px; }
.article-card--lg .article-card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.article-card--lg .article-card__excerpt { font-size: 17px; }
@media (max-width: 820px) { .article-card--lg { grid-template-columns: 1fr; gap: 18px; padding: 16px; } .article-card--lg .article-card__body { padding: 0 6px 8px; } }
.blog-empty { text-align: center; padding: 48px 20px; background: var(--tch-white); border: 1px dashed var(--tch-wood); border-radius: var(--tch-radius); }
.blog-empty .script { font-size: 34px; margin-bottom: 8px; }
.blog-empty p { margin: 0 0 14px; }
.blog-empty .btn { margin: 4px; }
.blog-news .newsletter--inline { margin-top: 0; }
.home-blog .article-card__thumb { background: var(--tch-wood-tint); }

/* Article page extras */
.author-box { display: flex; gap: 22px; align-items: center; margin-top: 44px; padding: 26px 28px; background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 24px; }
.author-box__photo { flex: 0 0 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--tch-wood-tint); border: 4px solid var(--tch-wood); }
.author-box__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-box__kicker { font-size: 30px; margin-bottom: 4px; }
.author-box__body p { margin: 0 0 6px; font-size: 15px; }
@media (max-width: 560px) { .author-box { flex-direction: column; text-align: center; } }
.article-next { margin-top: 44px; }
.article-next__title { font-size: 34px; color: var(--tch-primary); margin-bottom: 18px; }
.article-next__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 22px; }
.article-next__grid .card__title, .article-next__grid .article-card__title { font-size: 18px; }
.article-next__grid .article-card__excerpt { display: none; }

/* ---------- Grocery list ---------- */
.ingredients-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 6px; }
.ingredients-head .recipe-h3 { margin: 0; }
.grocery-add { gap: 8px; }
.grocery-add.is-added { border-color: var(--tch-secondary); background: var(--tch-secondary-tint); }
.grocery-add.is-flash { background: var(--tch-primary); border-color: var(--tch-primary); color: var(--tch-bg); }
.grocery-view { background: none; border: 0; padding: 4px 2px; font: 700 14px var(--tch-font); color: var(--tch-accent-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.grocery-toggle {
	position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tch-primary); background: var(--tch-white);
	color: var(--tch-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: 0 0 auto;
}
.grocery-toggle:hover, .grocery-toggle[aria-expanded="true"] { background: var(--tch-primary); color: var(--tch-bg); }
.grocery-toggle__count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tch-accent); color: var(--tch-white); font: 800 12px/22px var(--tch-font); text-align: center; }
.grocery-toggle.is-bump { animation: tch-bump .5s ease; }
@keyframes tch-bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .grocery-toggle.is-bump { animation: none; } }
.primary-nav { order: 2; margin-left: auto; }
@media (max-width: 1060px) {
	.header-tools { order: 1; margin-left: auto; }
	.nav-toggle { order: 2; }
}
.grocery-backdrop { position: fixed; inset: 0; background: rgba(30, 50, 25, .45); z-index: 998; opacity: 0; transition: opacity .2s; }
.grocery-backdrop.is-open { opacity: 1; }
.grocery {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 999; background: var(--tch-bg); color: var(--tch-text);
	display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(38, 63, 32, .18); transform: translateX(100%); transition: transform .22s ease;
}
.grocery.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .grocery, .grocery-backdrop { transition: none; } }
html.grocery-open { overflow: hidden; }
.grocery__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 14px; background: var(--tch-secondary-tint); border-bottom: 1px solid #D5E0C2; }
.grocery__kicker { display: block; font-size: 22px; line-height: 1; color: var(--tch-accent); }
.grocery__title { margin: 2px 0 0; font-size: 26px; }
.grocery__close { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--tch-primary); background: var(--tch-white); color: var(--tch-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.grocery__close:hover { background: var(--tch-primary); color: var(--tch-bg); }
.grocery__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 22px 22px; overscroll-behavior: contain; }
.grocery__empty { margin: 24px 0; color: var(--tch-muted); }
.grocery__h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-secondary-text); margin: 20px 0 8px; }
.grocery__recipes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.grocery__recipes li { display: flex; align-items: center; gap: 8px; background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 14px; }
.grocery__recipes a { font-weight: 700; color: var(--tch-primary); flex: 1 1 auto; min-width: 0; }
.grocery__serv { font-size: 12px; color: var(--tch-muted); white-space: nowrap; }
.grocery__x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--tch-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.grocery__x:hover { background: var(--tch-tint); color: var(--tch-accent-dark); }
.grocery__x svg { width: 16px; height: 16px; }
.grocery__list { list-style: none; margin: 0; padding: 0; }
.grocery__list li { display: flex; align-items: flex-start; gap: 6px; border-bottom: 1px solid var(--tch-line); }
.grocery__list label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; flex: 1 1 auto; cursor: pointer; font-size: 15px; line-height: 1.4; }
.grocery__list input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tch-primary); flex: 0 0 auto; }
.grocery__amt { color: var(--tch-primary); }
.grocery__note, .grocery__from { display: block; font-size: 12px; color: var(--tch-muted); margin-top: 2px; }
.grocery__from { color: var(--tch-secondary-text); font-weight: 600; }
.grocery__list li.is-done .grocery__txt { text-decoration: line-through; text-decoration-color: var(--tch-accent); opacity: .55; }
.grocery__own { display: flex; gap: 8px; margin-top: 18px; }
.grocery__own input { flex: 1 1 auto; min-width: 0; height: 44px; border-radius: var(--tch-pill); border: 1.5px solid #CFD9BE; background: var(--tch-white); padding: 0 16px; font: 500 15px var(--tch-font); color: var(--tch-text); }
.grocery__own input:focus { outline: 3px solid var(--tch-secondary); outline-offset: 1px; }
.grocery__foot { border-top: 1px solid var(--tch-line); padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: var(--tch-white); }
.grocery__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grocery__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--tch-pill); border: 1.5px solid var(--tch-primary); background: var(--tch-white); color: var(--tch-primary); font: 700 14px var(--tch-font); text-decoration: none; cursor: pointer; }
.grocery__btn:hover { background: var(--tch-primary); color: var(--tch-bg); }
.grocery__btn--solid { background: var(--tch-primary); color: var(--tch-bg); }
.grocery__btn--solid:hover { background: var(--tch-accent); border-color: var(--tch-accent); }
.grocery__actions--quiet { margin-top: 10px; justify-content: space-between; }
.grocery__link { background: none; border: 0; padding: 4px 0; font: 600 13px var(--tch-font); color: var(--tch-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.grocery__link--danger:hover { color: #A3271C; }
@media print {
	body.tch-print-grocery > *:not(.grocery) { display: none !important; }
	body.tch-print-grocery .grocery { position: static; transform: none; width: auto; box-shadow: none; display: block !important; }
	body.tch-print-grocery .grocery__close, body.tch-print-grocery .grocery__foot, body.tch-print-grocery .grocery__own, body.tch-print-grocery .grocery__x { display: none !important; }
	body.tch-print-grocery .grocery__head { background: none; border-bottom: 2px solid #263F20; padding: 0 0 8pt; }
	body.tch-print-grocery .grocery__body { overflow: visible; padding: 0; }
	body.tch-print-grocery .grocery__list li.is-done { display: none; }
	.grocery, .grocery-backdrop { display: none; }
	body.tch-print-grocery .grocery { display: block !important; }
}

/* ---------- Pinterest ---------- */
.entry__featured.has-pin { position: relative; }
.pin-btn {
	position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px 9px 12px; border-radius: var(--tch-pill);
	background: #E60023; color: #fff; font: 700 15px var(--tch-font); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.pin-btn:hover { background: #AD081B; color: #fff; }
.entry__featured.has-pin:hover .pin-btn, .pin-btn:focus-visible { opacity: 1; transform: none; }
.pin-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: none) { .pin-btn { opacity: 1; transform: none; } }
.btn--pin .icon { color: #E60023; }
.btn--pin:hover .icon { color: currentColor; }

/* ---------- Keep Screen Awake switch ---------- */
.awake { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 12px 16px; background: var(--tch-bg); border: 1px solid var(--tch-line); border-radius: 18px; width: fit-content; max-width: 100%; }
.awake__switch { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--tch-pill); }
.awake__switch:focus-visible { outline: 3px solid var(--tch-accent); outline-offset: 3px; }
.awake__track { position: relative; display: block; width: 58px; height: 32px; border-radius: var(--tch-pill); background: var(--tch-white); border: 2px solid var(--tch-primary); transition: background .2s, border-color .2s; }
.awake__knob {
	position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--tch-primary); color: var(--tch-white);
	display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s, color .2s;
}
.awake__knob .icon { width: 13px; height: 13px; opacity: 0; transition: opacity .2s; }
.awake__switch[aria-checked="true"] .awake__track { background: var(--tch-primary); }
.awake__switch[aria-checked="true"] .awake__knob { transform: translateX(26px); background: #F2C9A8; color: var(--tch-accent-dark); }
.awake__switch[aria-checked="true"] .awake__knob .icon { opacity: 1; }
.awake__text { display: flex; flex-direction: column; gap: 2px; }
.awake__label { font-weight: 700; font-size: 16px; color: var(--tch-primary); cursor: pointer; }
.awake__note { font-size: 13px; color: var(--tch-secondary-text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .awake__track, .awake__knob, .awake__knob .icon { transition: none; } }

/* ---------- Recipe filters ---------- */
.rfilters { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; margin: 0 0 32px; padding: 18px 22px; background: var(--tch-white); border: 1px solid var(--tch-line); border-radius: 22px; }
.rfilters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rfilters__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tch-secondary-text); margin-right: 4px; }
.rfilters__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--tch-pill); border: 1.5px solid #CFD9BE; background: var(--tch-bg); color: var(--tch-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.rfilters__chip:hover { border-color: var(--tch-primary); }
.rfilters__chip.is-on { background: var(--tch-primary); border-color: var(--tch-primary); color: var(--tch-bg); }
.rfilters__result { flex: 1 0 100%; margin: 0; padding-top: 12px; border-top: 1px dashed var(--tch-line); font-weight: 700; color: var(--tch-primary); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rfilters__result a { color: var(--tch-accent-dark); font-weight: 700; }
@media (max-width: 600px) { .rfilters { padding: 16px; gap: 14px; } .rfilters__label { flex: 1 0 100%; } }

/* Swap links inside ingredients */
.ing-swap { display: inline-flex; vertical-align: 1px; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 9px 2px 7px; border-radius: var(--tch-pill); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; line-height: 1.5; }
.ing-swap--from { background: #FBEDE4; color: var(--tch-accent-dark); }
.ing-swap--to { background: var(--tch-secondary-tint); color: var(--tch-secondary-text); }
.ing-swap:hover { text-decoration: underline; }

/* ---------- Recipe Box (favorites) ---------- */
.header-tools { order: 3; display: flex; align-items: center; gap: 10px; }
.header-tools:not(:has(> :not([hidden]))) { display: none; }
.fav-link {
	position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tch-primary); background: var(--tch-white);
	color: var(--tch-accent); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: 0 0 auto;
}
.fav-link .icon { fill: currentColor; }
.fav-link:hover { background: var(--tch-primary); color: #F2C9A8; }
.fav-link__count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tch-primary); color: var(--tch-white); font: 800 12px/22px var(--tch-font); text-align: center; }
.fav-btn--card {
	position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .92); color: var(--tch-accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(38, 63, 32, .18);
}
.fav-btn--card:hover { background: var(--tch-white); transform: scale(1.06); }
.fav-btn--card:focus-visible, .fav-btn--action:focus-visible { outline: 3px solid var(--tch-accent); outline-offset: 2px; }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn--action { gap: 8px; }
.fav-btn--action .icon { color: var(--tch-accent); }
.fav-btn--action[aria-pressed="true"] { background: #FBEDE4; border-color: var(--tch-accent); color: var(--tch-accent-dark); }
.fav-btn.is-pop .icon { animation: tch-pop .35s ease; }
@keyframes tch-pop { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .fav-btn.is-pop .icon { animation: none; } .fav-btn--card:hover { transform: none; } }
.recipe-box__count { font-weight: 700; color: var(--tch-secondary-text); }
.recipe-box__empty { text-align: center; padding: 48px 20px; background: var(--tch-white); border: 1px dashed var(--tch-wood); border-radius: 24px; }
.recipe-box__empty-icon { width: 72px; height: 72px; border-radius: 50%; background: #FBEDE4; color: var(--tch-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.recipe-box__empty p { max-width: 460px; margin: 8px auto 20px; }
.recipe-box__note { margin: 36px 0 0; font-size: 13px; color: var(--tch-muted); text-align: center; }

/* ---------- US / metric toggle ---------- */
.units { display: inline-flex; padding: 3px; border-radius: var(--tch-pill); background: var(--tch-white); border: 1.5px solid var(--tch-primary); gap: 2px; }
.units button { min-width: 64px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--tch-pill); background: transparent; color: var(--tch-primary); font: 700 13px var(--tch-font); cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--tch-primary); color: var(--tch-bg); }
.units button:focus-visible { outline: 3px solid var(--tch-accent); outline-offset: 2px; }
.temp { white-space: nowrap; font-weight: 600; }
.servings--plain { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.servings .units { grid-column: 1 / -1; justify-self: start; }

/* Long words / addresses never overflow recipe cards */
.storage__list li > div, .notes-list li, .hack-again__card, .why-list dd, .step__body, .verdict, .entry__content { min-width: 0; overflow-wrap: anywhere; }
.text-link { color: var(--tch-accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.text-link::after { content: " \2197"; font-size: .85em; text-decoration: none; display: inline-block; }
.calorie-hack .text-link { color: #F2C9A8; }

/* ---------- Food safety card (under Storage & Reheating) ---------- */
.storage__list + .food-safety { margin-top: 18px; }
.storage .recipe-section-title + .food-safety { margin-top: 20px; }
.food-safety { background: var(--tch-secondary-tint); border-radius: 20px; padding: 20px 22px; border-left: 5px solid var(--tch-secondary); }
.food-safety__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.food-safety__badge { width: 40px; height: 40px; border-radius: 50%; background: var(--tch-primary); color: #F2C9A8; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.food-safety__title { margin: 0; font-size: 18px; color: var(--tch-primary); }
.food-safety__rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.food-safety__rules li { display: flex; align-items: center; gap: 10px; background: var(--tch-white); border-radius: 14px; padding: 10px 12px; }
.food-safety__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--tch-bg); color: var(--tch-secondary-text); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.food-safety__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.food-safety__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tch-muted); }
.food-safety__value { font-size: 17px; color: var(--tch-primary); }
.food-safety__source { margin: 14px 0 0; font-size: 14px; }
@media print { .food-safety { border: 1px solid #bbb !important; background: #fff !important; } }

/* ---------- Listen (read aloud) ---------- */
.js-listen .icon { flex: none; }
.tts-on { background: var(--tch-secondary-tint); box-shadow: 0 0 0 6px var(--tch-secondary-tint); border-radius: 6px; transition: background .25s, box-shadow .25s; scroll-margin: 120px; }
.tts {
	position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
	bottom: max(14px, env(safe-area-inset-bottom)); width: min(760px, calc(100% - 24px));
	background: var(--tch-primary); color: var(--tch-white); border-radius: 22px; box-shadow: 0 18px 44px rgba(20, 35, 17, .35);
	padding: 12px 14px 10px; overflow: hidden; animation: tts-in .25s ease;
}
.tts[hidden] { display: none; }
@keyframes tts-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.tts__progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255, 255, 255, .14); }
.tts__progress span { display: block; height: 100%; width: 0; background: var(--tch-secondary); transition: width .4s ease; }
.tts__main { display: flex; align-items: center; gap: 8px; }
.tts__btn, .tts__play {
	flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: inherit; border-radius: 50%;
}
.tts__btn { width: 40px; height: 40px; background: rgba(255, 255, 255, .1); }
.tts__btn:hover { background: rgba(255, 255, 255, .2); }
.tts__play { width: 52px; height: 52px; background: var(--tch-accent); color: var(--tch-white); box-shadow: 0 6px 16px rgba(198, 91, 43, .45); }
.tts__play:hover { background: var(--tch-accent-dark); }
.tts__ico-play, .tts.is-playing .tts__ico-pause { display: inline-flex; }
.tts__ico-pause, .tts.is-playing .tts__ico-play { display: none; }
.tts__ico-play svg { margin-left: 2px; }
.tts__btn:focus-visible, .tts__play:focus-visible, .tts select:focus-visible { outline: 3px solid var(--tch-secondary); outline-offset: 2px; }
.tts__info { flex: 1 1 auto; min-width: 0; padding: 0 6px; display: flex; flex-direction: column; }
.tts__kicker { font-size: 19px; line-height: 1.1; color: #F2C8B1; }
.tts__now { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.tts__close { margin-left: auto; }
.tts__opts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.tts__opt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75); min-width: 0; }
.tts__opt[hidden] { display: none; }
.tts select {
	font: 600 13px/1.2 var(--tch-font); color: var(--tch-white); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--tch-pill); padding: 6px 28px 6px 12px; max-width: 220px; cursor: pointer; appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center;
}
.tts select option { color: var(--tch-text); background: var(--tch-white); }
body.tts-open { padding-bottom: 170px; }
body.tts-open .to-top { display: none; }
@media (max-width: 600px) {
	.tts { bottom: 0; width: 100%; border-radius: 20px 20px 0 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
	@keyframes tts-in { from { opacity: 0; transform: translate(-50%, 24px); } }
	.tts__btn { width: 38px; height: 38px; }
	.tts__play { width: 48px; height: 48px; }
	.tts__info { padding: 0 2px; }
	.tts__opts { gap: 8px; }
	.tts__opt > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.tts select { max-width: 42vw; }
	.tts__opt--voice select { max-width: 34vw; }
}
@media (prefers-reduced-motion: reduce) { .tts { animation: none; } .tts-on { transition: none; } }
@media print { .tts, .js-listen { display: none !important; } .tts-on { background: none; box-shadow: none; } }
.tts__kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
	.tts__opts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
	.tts__opts:has(.tts__opt--voice[hidden]) { grid-template-columns: minmax(0, 1fr) auto; }
	.tts__opt, .tts__opt select { width: 100%; max-width: none !important; }
	.tts__kicker { font-size: 17px; }
}

.about-hero__listen { align-self: flex-start; }
.page-head__listen { margin-top: 16px; }

/* Recipe card tools: Keep Screen Awake + Listen to this recipe */
.recipe-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.recipe-tools .awake { margin: 0; }
.recipe-tools:not(:has(> :not([hidden]))) { display: none; }
.listen-pill {
	display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; max-width: 100%; text-align: left; cursor: pointer;
	font: inherit; color: var(--tch-primary); background: var(--tch-bg); border: 1px solid var(--tch-line); border-radius: 18px;
	transition: background .2s, border-color .2s;
}
.listen-pill[hidden] { display: none; }
.listen-pill:hover { background: var(--tch-secondary-tint); border-color: var(--tch-secondary); }
.listen-pill:focus-visible { outline: 3px solid var(--tch-accent); outline-offset: 3px; }
.listen-pill__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tch-accent); color: var(--tch-white); box-shadow: 0 4px 10px rgba(198, 91, 43, .3); }
.listen-pill__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.listen-pill__label { font-weight: 700; font-size: 16px; }
.listen-pill__note { font-size: 13px; font-weight: 600; color: var(--tch-secondary-text); }
.listen-pill.is-on { background: var(--tch-secondary-tint); border-color: var(--tch-secondary); }
.listen-pill.is-on .listen-pill__icon { animation: tts-pulse 1.6s ease-in-out infinite; }
@keyframes tts-pulse { 50% { box-shadow: 0 0 0 7px rgba(198, 91, 43, .18); } }
@media (prefers-reduced-motion: reduce) { .listen-pill.is-on .listen-pill__icon { animation: none; } }
@media (max-width: 600px) { .recipe-tools > * { width: 100%; } }

/* ---------- Reading time + progress bar ---------- */
.read-time { display: inline-flex; align-items: center; gap: 5px; }
.read-time .icon { color: var(--tch-secondary); }
.read-progress { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 5px; pointer-events: none; --p: 0; }
.read-progress[hidden] { display: none; }
.admin-bar .read-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .read-progress { top: 46px; } }
@media (max-width: 600px) { .admin-bar .read-progress { top: 0; } }
.read-progress__fill {
	position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
	background: linear-gradient(90deg, var(--tch-secondary), var(--tch-accent));
	border-radius: 0 3px 3px 0; box-shadow: 0 1px 6px rgba(198, 91, 43, .35); transition: transform .12s linear;
}
.read-progress.is-done .read-progress__fill { background: var(--tch-secondary); box-shadow: none; }
.read-progress__tag {
	position: absolute; top: 10px; left: max(calc(var(--p) * 100%), 108px); transform: translate(-100%, -4px);
	padding: 4px 10px; border-radius: var(--tch-pill); background: var(--tch-primary); color: var(--tch-white);
	font: 700 12px/1.2 var(--tch-font); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 16px rgba(20, 35, 17, .25);
	opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.read-progress__tag:empty { display: none; }
.read-progress.is-scrolling .read-progress__tag { opacity: 1; transform: translate(-100%, 0); }
@media (prefers-reduced-motion: reduce) { .read-progress__fill, .read-progress__tag { transition: none; } }
@media print { .read-progress { display: none !important; } }
@media (max-width: 600px) {
	.single-head__meta > span[aria-hidden="true"] { display: none; }
	.single-head__meta { column-gap: 16px; }
}

/* ---------- "Made it?" nudge after the recipe ---------- */
.made-it {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
	margin: 28px 0 0; padding: 26px 32px; border-radius: 24px;
	background: var(--tch-secondary-tint); border: 2px dashed var(--tch-secondary);
}
.made-it__copy { flex: 1 1 320px; min-width: 0; }
.made-it__kicker { display: block; font-size: 28px; line-height: 1; color: var(--tch-accent); margin-bottom: 4px; }
.made-it__title { margin: 0 0 6px; font-size: 24px; line-height: 1.2; color: var(--tch-primary); }
.made-it__text { margin: 0; font-size: 15px; color: var(--tch-text); }
.made-it__actions { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.made-it__stars { display: inline-flex; gap: 2px; }
.made-it__star { display: inline-flex; padding: 3px; border-radius: 8px; color: var(--tch-wood); transition: transform .15s ease, color .15s ease; }
.made-it__star svg path { fill: transparent; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s ease; }
.made-it__star.is-lit { color: var(--tch-accent); transform: translateY(-2px) scale(1.08); }
.made-it__star.is-lit svg path { fill: currentColor; }
.made-it__star:focus-visible { outline: 3px solid var(--tch-accent); outline-offset: 1px; }
.made-it__btn { gap: 8px; white-space: nowrap; }
#respond.is-flash { animation: tch-flash 1.6s ease; border-radius: 20px; }
@keyframes tch-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 91, 43, 0); } 25% { box-shadow: 0 0 0 8px rgba(198, 91, 43, .22); } }
@media (max-width: 600px) {
	.made-it { padding: 22px 20px; }
	.made-it__actions { width: 100%; }
	.made-it__btn { width: 100%; justify-content: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .made-it__star, #respond.is-flash { transition: none; animation: none; } }
#respond { scroll-margin-top: 28px; }
@media (max-width: 600px) { .made-it__btn { font-size: 15px; padding-inline: 18px; } }
