/*
Theme Name:   The Redhead Baker
Theme URI:    https://theredheadbaker.com
Description:  Lightweight Kadence child theme for The Redhead Baker. Self-hosts Newsreader and Work Sans, adds homepage patterns and block styles. Colors, header and footer are set in the Kadence Customizer.
Author:       Coleen Hill
Template:     kadence
Version:      1.7.0
Requires at least: 6.6
Requires PHP: 7.4
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  redhead-baker
*/

/* ==========================================================================
   1. Fonts (self-hosted, Latin subset, variable weight)
   ========================================================================== */

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-roman.woff2") format("woff2");
	font-weight: 400 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
	font-weight: 400 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Work Sans";
	src: url("assets/fonts/work-sans.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Tokens
   The nine core colors come from the Kadence global palette (Customizer).
   Hex values after each var() are fallbacks only.
   ========================================================================== */

:root {
	--rhb-caramel: var(--global-palette1, #9a6528);
	--rhb-teal: var(--global-palette2, #296662);
	--rhb-ink: var(--global-palette3, #302d26);
	--rhb-brown: var(--global-palette4, #6e3b1f);
	--rhb-muted: var(--global-palette5, #726c61);
	--rhb-rule: var(--global-palette6, #d8d1c3);
	--rhb-tan: var(--global-palette7, #efe9dc);
	--rhb-cream: var(--global-palette8, #f8f5ee);
	--rhb-paper: var(--global-palette9, #fafaf9);

	/* Colors outside the nine palette slots */
	--rhb-footer: #2b1d14;
	--rhb-footer-muted: #d8c8ba;
	--rhb-footer-rule: #705b4c;
	--rhb-announce-text: #eee8da;

	--rhb-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--rhb-sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;

	/* Hand fonts to Kadence so its own components use them too */
	--global-body-font-family: var(--rhb-sans);
	--global-heading-font-family: var(--rhb-serif);

	--rhb-wrap: 1296px;
	--rhb-gutter: clamp(20px, 5vw, 72px);
	--rhb-tracking: 0.12em;
}

body {
	font-family: var(--rhb-sans);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rhb-serif);
}

/* ==========================================================================
   3. Header (Kadence header builder elements)
   ========================================================================== */

.rhb-announce {
	font-family: var(--rhb-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-announce-text);
}

.site-branding .site-title {
	font-family: var(--rhb-serif);
	font-weight: 500;
	font-size: 25px;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--rhb-brown);
}

.site-branding .site-description {
	margin-top: 5px;
	font-family: var(--rhb-sans);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-muted);
}

/* ==========================================================================
   4. Shared type and link styles (also available as block styles)
   ========================================================================== */

.is-style-rhb-eyebrow,
.rhb-eyebrow {
	font-family: var(--rhb-sans);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-caramel);
}

.is-style-rhb-eyebrow a,
.is-style-rhb-meta a {
	color: inherit;
	text-decoration: none;
}

.is-style-rhb-meta,
.rhb-meta {
	font-family: var(--rhb-sans);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-muted);
}

.is-style-rhb-lede {
	font-size: 18px;
	line-height: 1.65;
	color: var(--rhb-muted);
}

.is-style-rhb-section-title {
	font-family: var(--rhb-serif);
	font-size: clamp(30px, 3.2vw, 39px);
	font-weight: 400;
	line-height: 1.2;
	color: var(--rhb-ink);
}

/* Arrow links: on a paragraph (wrapping a link) or on a Read More block */
.is-style-rhb-link a,
a.is-style-rhb-link,
.is-style-rhb-link-warm a,
a.is-style-rhb-link-warm {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--rhb-sans);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--rhb-teal);
}

.is-style-rhb-link-warm a,
a.is-style-rhb-link-warm {
	color: var(--rhb-caramel);
}

.is-style-rhb-link a::after,
a.is-style-rhb-link::after,
.is-style-rhb-link-warm a::after,
a.is-style-rhb-link-warm::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.is-style-rhb-link a:hover::after,
a.is-style-rhb-link:hover::after,
.is-style-rhb-link-warm a:hover::after,
a.is-style-rhb-link-warm:hover::after {
	transform: translateX(4px);
}

.is-style-rhb-link a:hover,
a.is-style-rhb-link:hover,
.is-style-rhb-link-warm a:hover,
a.is-style-rhb-link-warm:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Buttons */
.wp-block-button.is-style-rhb-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 24px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid var(--rhb-caramel);
	border-radius: 0;
	background: var(--rhb-caramel);
	color: var(--rhb-cream);
	font-family: var(--rhb-sans);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wp-block-button.is-style-rhb-arrow .wp-block-button__link::after {
	content: "";
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}

.wp-block-button.is-style-rhb-arrow .wp-block-button__link:hover {
	background: var(--rhb-brown);
	border-color: var(--rhb-brown);
	color: var(--rhb-cream);
}

.wp-block-button.is-style-rhb-pill .wp-block-button__link,
.wp-block-button.is-style-rhb-pill-active .wp-block-button__link {
	padding: 11px 22px;
	border: 1px solid var(--rhb-rule);
	border-radius: 2px;
	background: var(--rhb-cream);
	color: var(--rhb-muted);
	font-family: var(--rhb-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
}

.wp-block-button.is-style-rhb-pill,
.wp-block-button.is-style-rhb-pill-active {
	flex: 0 0 auto;
}

.wp-block-button.is-style-rhb-pill .wp-block-button__link,
.wp-block-button.is-style-rhb-pill-active .wp-block-button__link {
	white-space: nowrap;
}

.wp-block-button.is-style-rhb-pill .wp-block-button__link:hover {
	border-color: var(--rhb-caramel);
	color: var(--rhb-caramel);
}

.wp-block-button.is-style-rhb-pill-active .wp-block-button__link {
	border-color: var(--rhb-caramel);
	background: var(--rhb-caramel);
	color: var(--rhb-cream);
}

/* ==========================================================================
   5. Homepage sections
   Each pattern is a full-width group with .rhb-section; its content sits in
   .rhb-wrap, which sets the 1296px measure and side gutters.
   ========================================================================== */

.rhb-section {
	position: relative;
	color: var(--rhb-ink);
}

body .rhb-section :is(p, h1, h2, h3, h4, figure, ul) {
	margin: 0;
}

/* Classic themes wrap Group contents in an extra div. Make it invisible to
   layout so the flex/grid rules below work with or without it. */
.rhb-section .wp-block-group__inner-container {
	display: contents;
}

/* Inline highlight inside headings (e.g. "good baking.") */
.rhb-section mark.has-inline-color {
	background: none;
}

.rhb-section a {
	text-decoration: none;
}

.rhb-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--rhb-wrap) + 2 * var(--rhb-gutter));
	margin-inline: auto !important;
	padding-inline: var(--rhb-gutter);
}

.rhb-section--paper { background: var(--rhb-paper); }
.rhb-section--tan { background: var(--rhb-tan); }

.rhb-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.rhb-section__head .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* ---------- 5a. Hero ---------- */

.rhb-hero {
	padding-block: 56px;
}

.rhb-hero .rhb-wrap {
	display: grid;
	grid-template-columns: minmax(0, 534px) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}

.rhb-hero__intro {
	display: flex;
	flex-direction: column;
	gap: 27px;
}

.rhb-hero .rhb-display {
	font-family: var(--rhb-serif);
	font-size: clamp(42px, 4.65vw, 67px);
	font-weight: 400;
	line-height: 1.14;
	letter-spacing: -0.01em;
	color: var(--rhb-ink);
}

.rhb-hero .is-style-rhb-lede {
	max-width: 478px;
}

.rhb-hero .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 26px;
}

.rhb-hero .wp-block-buttons + .is-style-rhb-link-warm,
.rhb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 26px;
}

.rhb-signature {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 12px;
	font-family: var(--rhb-serif);
	font-size: 13px;
	font-style: italic;
	color: var(--rhb-teal);
}

.rhb-signature::before {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--rhb-caramel);
}

/* Featured recipe: sticky post with its image and an annotation card */
.rhb-feature .wp-block-post-template,
.rhb-grid .wp-block-post-template,
.rhb-lessons .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhb-feature .wp-block-post {
	position: relative;
	margin: 0;
}

.rhb-feature .wp-block-post-featured-image {
	margin: 0;
	height: 566px;
}

.rhb-feature .wp-block-post-featured-image :is(a, img) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rhb-feature__card {
	position: absolute;
	left: 24px;
	bottom: 24px;
	box-sizing: border-box;
	width: 292px;
	max-width: calc(100% - 48px);
	padding: 23px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-cream);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rhb-feature__card .wp-block-post-title {
	font-family: var(--rhb-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.25;
}

.rhb-feature__card .wp-block-post-title a {
	color: var(--rhb-ink);
}

.rhb-feature__card .wp-block-post-excerpt,
.rhb-feature__card .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rhb-muted);
}

/* ---------- 5b. Principles strip ---------- */

.rhb-principles {
	border-block: 1px solid var(--rhb-rule);
}

.rhb-principles .rhb-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	min-height: 77px;
	padding-block: 20px;
}

.rhb-principles p {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-ink);
}

.rhb-principles p::before {
	content: "";
	flex: none;
	width: 19px;
	height: 19px;
	background: var(--rhb-caramel);
	-webkit-mask: url("assets/icons/asterisk.svg") center / contain no-repeat;
	mask: url("assets/icons/asterisk.svg") center / contain no-repeat;
}

/* ---------- 5c. Recipe discovery ---------- */

.rhb-recipes {
	padding-block: 72px 78px;
}

.rhb-recipes .rhb-wrap {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.rhb-recipes .wp-block-buttons.rhb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rhb-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 30px;
}

.rhb-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rhb-card__media {
	position: relative;
}

.rhb-card .wp-block-post-featured-image {
	margin: 0;
}

.rhb-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 7 / 5;
	object-fit: cover;
}

/* The bookmark icon was removed. This hides it on pages built from the
   earlier pattern until it's deleted in the editor. */
.rhb-card__save {
	display: none !important;
}

.rhb-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rhb-card .wp-block-post-title {
	min-height: 2.6em;
	font-family: var(--rhb-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
}

.rhb-card .wp-block-post-title a {
	color: var(--rhb-ink);
}

.rhb-card .wp-block-post-title a:hover {
	color: var(--rhb-caramel);
}

.rhb-card__learn {
	display: flex;
	gap: 10px;
	margin: 0;
	padding-top: 15px;
	border-top: 1px solid var(--rhb-rule);
}

.rhb-card__learn::before {
	content: "";
	flex: none;
	width: 16px;
	height: 18px;
	background: var(--rhb-caramel);
	-webkit-mask: url("assets/icons/lightbulb.svg") center / contain no-repeat;
	mask: url("assets/icons/lightbulb.svg") center / contain no-repeat;
}

.rhb-card__learn .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rhb-muted);
}

/* ---------- 5d. The Baking Lab ---------- */

.rhb-lab {
	padding-block: 68px;
}

.rhb-lab .rhb-wrap {
	display: flex;
	flex-direction: column;
	gap: 38px;
}

.rhb-notebook {
	display: grid;
	grid-template-columns: 492px minmax(0, 1fr);
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-cream);
}

.rhb-notebook__figure {
	display: flex;
	flex-direction: column;
	padding: 26px;
}

.rhb-notebook__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.rhb-notebook__figure .wp-block-image {
	flex: 1;
	display: grid;
	place-items: center;
	margin: 12px 0 !important;
}

.rhb-notebook__figure .wp-block-image img {
	max-width: 100%;
	height: auto;
}

.rhb-notebook__figure .wp-element-caption {
	margin: 0;
	font-family: var(--rhb-serif);
	font-size: 14px;
	font-style: italic;
	text-align: center;
	color: var(--rhb-muted);
}

.rhb-notebook__story {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 38px 44px;
	border-left: 1px solid var(--rhb-rule);
}

.rhb-notebook__story h3 {
	font-family: var(--rhb-serif);
	font-size: clamp(28px, 2.6vw, 34px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--rhb-ink);
}

.rhb-notebook__story p:not([class]) {
	font-size: 16px;
	line-height: 1.6;
	color: var(--rhb-muted);
}

.rhb-temps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.rhb-temps .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rhb-temps .rhb-temp {
	font-family: var(--rhb-serif);
	font-size: 24px;
	line-height: 1.1;
	color: var(--rhb-caramel);
}

.rhb-temps .is-style-rhb-meta {
	color: var(--rhb-ink);
}

.rhb-temps p:last-child {
	font-size: 12px;
	line-height: 1.4;
	color: var(--rhb-muted);
}

/* Lessons 01–03: numbered automatically */
.rhb-lessons .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 36px;
	counter-reset: rhb-lesson;
}

.rhb-lessons .wp-block-post {
	display: flex;
	align-items: center;
	gap: 16px;
	counter-increment: rhb-lesson;
}

.rhb-lessons .wp-block-post::before {
	content: counter(rhb-lesson, decimal-leading-zero);
	font-family: var(--rhb-serif);
	font-size: 28px;
	font-style: italic;
	line-height: 1;
	color: var(--rhb-caramel);
}

.rhb-lessons .wp-block-post .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rhb-lessons .wp-block-post-terms {
	font-size: 9px;
}

.rhb-lessons .wp-block-post-title {
	font-family: var(--rhb-serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
}

.rhb-lessons .wp-block-post-title a {
	color: var(--rhb-ink);
}

.rhb-lessons .wp-block-post-title a:hover {
	color: var(--rhb-caramel);
}

/* ---------- 5e. Meet the pastry chef ---------- */

.rhb-chef {
	padding-block: 80px;
}

.rhb-chef .rhb-wrap {
	display: grid;
	grid-template-columns: minmax(0, 455px) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
	max-width: calc(1220px + 2 * var(--rhb-gutter));
}

.rhb-chef__portrait {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rhb-chef__portrait .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 455 / 408;
	object-fit: cover;
}

.rhb-chef__portrait .wp-element-caption {
	margin: 14px 0 0;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-muted);
}

.rhb-chef__story {
	display: flex;
	flex-direction: column;
	gap: 23px;
}

.rhb-chef__story h2 {
	font-family: var(--rhb-serif);
	font-size: clamp(32px, 2.8vw, 40px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--rhb-ink);
}

.rhb-chef__story p:not([class]) {
	font-size: 16px;
	line-height: 1.7;
	color: var(--rhb-muted);
}

.rhb-signoff {
	font-family: var(--rhb-serif);
	font-size: 25px;
	font-style: italic;
	color: var(--rhb-caramel);
}

/* ---------- 5f. Newsletter ---------- */

.rhb-newsletter {
	padding-block: 54px;
	border-block: 1px solid var(--rhb-rule);
	scroll-margin-top: 120px;
}

.rhb-newsletter .rhb-wrap {
	display: grid;
	grid-template-columns: 144px minmax(0, 480px) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.rhb-newsletter__sketch img {
	display: block;
	width: 144px;
	height: auto;
}

.rhb-newsletter__copy {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.rhb-newsletter__copy h2 {
	font-family: var(--rhb-serif);
	font-size: clamp(28px, 2.4vw, 34px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--rhb-ink);
}

.rhb-newsletter__copy p:not([class]) {
	font-size: 15px;
	line-height: 1.6;
	color: var(--rhb-muted);
}

.rhb-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.rhb-newsletter__form .rhb-fineprint {
	font-size: 11px;
	color: var(--rhb-teal);
}

/* Kadence Form block, restyled: label, field, then a full-width button below */
.rhb-newsletter__form :is(.kb-form, .kb-advanced-form, form),
.rhb-newsletter__form .wp-block-kadence-advanced-form .kb-advanced-form {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}

/* Field wrappers only (Form Adv + simple Form). Kadence also puts .kb-field
   on the input itself, so never target that class here. */
.rhb-newsletter__form :is(.kb-adv-form-field, .kadence-blocks-form-field):not(.kb-submit-field) {
	flex: 0 0 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

/* Keep the input at its own height inside Kadence's column wrapper */
.rhb-newsletter__form :is(.kb-adv-form-field, .kadence-blocks-form-field) input {
	flex: 0 0 auto;
}

/* Kadence's own field margin would push the button out of line */
.rhb-newsletter__form .kb-adv-form-field > :is(input, label),
.rhb-newsletter__form .kadence-blocks-form-field > input {
	margin-top: 0;
	margin-bottom: 0;
}

.rhb-newsletter__form label {
	margin-bottom: 13px !important;
}

.rhb-newsletter__form label {
	display: block;
	margin-bottom: 13px;
	font-family: var(--rhb-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-ink);
}

.rhb-newsletter__form input[type="email"],
.rhb-newsletter__form input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 54px;
	padding: 0 17px;
	border: 1px solid var(--rhb-rule);
	border-radius: 0;
	background: var(--rhb-cream);
	font-family: var(--rhb-sans);
	font-size: 14px;
	color: var(--rhb-ink);
	box-shadow: none;
}

.rhb-newsletter__form input::placeholder {
	color: var(--rhb-teal);
	opacity: 1;
}

.rhb-newsletter__form input:focus {
	outline: 2px solid var(--rhb-teal);
	outline-offset: -2px;
	border-color: var(--rhb-teal);
}

.rhb-newsletter__form .kb-submit-field {
	flex: 0 0 auto;
	align-self: stretch;
	margin: 0 !important;
	padding: 0 !important;
}

.rhb-newsletter__form :is(button, input[type="submit"], .kb-forms-submit) {
	width: 100%;
	justify-content: center;
	height: 54px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: var(--rhb-caramel);
	color: var(--rhb-cream);
	font-family: var(--rhb-sans);
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.rhb-newsletter__form :is(button, input[type="submit"], .kb-forms-submit):hover {
	background: var(--rhb-brown);
}

/* ==========================================================================
   6. Footer content (blocks placed in Kadence footer widget areas)
   ========================================================================== */

.site-footer :is(.rhb-footer-brand, .rhb-footer-tagline, .rhb-footer-label, .rhb-footer-motto) {
	margin: 0;
}

.site-footer .rhb-footer-brand {
	font-family: var(--rhb-serif);
	font-size: 30px;
	line-height: 1.2;
	color: var(--global-palette8, #f8f5ee);
}

.site-footer .rhb-footer-tagline {
	margin-top: 16px !important;
	max-width: 430px;
	font-family: var(--rhb-serif);
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
	color: var(--rhb-footer-muted);
}

.site-footer .rhb-footer-label {
	margin-bottom: 13px !important;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-footer-muted);
}

.site-footer .rhb-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .rhb-footer-links li {
	margin: 0 0 13px;
	font-size: 13px;
}

.site-footer .rhb-footer-links a {
	color: var(--global-palette8, #f8f5ee);
	text-decoration: none;
}

.site-footer .rhb-footer-links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer .rhb-footer-motto {
	font-family: var(--rhb-serif);
	font-size: 23px;
	font-style: italic;
	line-height: 1.45;
	color: var(--global-palette8, #f8f5ee);
}

.site-footer .rhb-legal {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-footer-muted);
}

/* ==========================================================================
   7. Create recipe card — light touch; colors and layout live in
   Create's own settings. Only aligns the fonts with the site.
   ========================================================================== */

.mv-create-card {
	font-family: var(--rhb-sans);
}

.mv-create-card :is(.mv-create-title, h2, h3) {
	font-family: var(--rhb-serif);
	font-weight: 400;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.rhb-hero .rhb-wrap,
	.rhb-chef .rhb-wrap {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.rhb-feature .wp-block-post-featured-image {
		height: clamp(380px, 60vw, 566px);
	}

	.rhb-notebook {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-notebook__story {
		border-left: 0;
		border-top: 1px solid var(--rhb-rule);
	}

	.rhb-newsletter .rhb-wrap {
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 32px;
	}

	.rhb-newsletter__sketch img {
		width: 110px;
	}

	.rhb-newsletter__form {
		grid-column: 1 / -1;
	}

	.rhb-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rhb-hero,
	.rhb-recipes,
	.rhb-lab,
	.rhb-chef {
		padding-block: 48px;
	}

	.rhb-principles .rhb-wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.rhb-grid .wp-block-post-template,
	.rhb-lessons .wp-block-post-template,
	.rhb-temps {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-feature__card {
		position: static;
		width: auto;
		max-width: none;
		border-top: 0;
	}

	.rhb-feature .wp-block-post-featured-image {
		height: 320px;
	}

	.rhb-recipes .wp-block-buttons.rhb-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.rhb-notebook__story {
		padding: 28px 24px;
	}

	.rhb-newsletter .rhb-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-newsletter__sketch {
		display: none;
	}
}

/* ==========================================================================
   9. Small extras
   ========================================================================== */

/* Visible reminder until the Kadence form replaces it */
.rhb-form-placeholder {
	padding: 14px 16px;
	border: 1px dashed var(--rhb-caramel);
	font-size: 13px;
	line-height: 1.5;
	color: var(--rhb-muted);
}

/* Arrow after the newsletter submit label (button elements only) */
.rhb-newsletter__form button::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 16px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}

/* ==========================================================================
   10. Recipes page (pattern: Recipe archive)
   ========================================================================== */

.rhb-archive__intro {
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 640px;
}

.rhb-section .rhb-archive__title {
	font-family: var(--rhb-serif);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 400;
	line-height: 1.15;
	color: var(--rhb-ink);
}

.rhb-archive__grid .wp-block-post-template {
	row-gap: 56px;
}

/* Page numbers under any recipe grid */
.rhb-section .wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
	font-family: var(--rhb-sans);
	font-size: 14px;
}

.rhb-section .wp-block-query-pagination a,
.rhb-section .wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-cream);
	color: var(--rhb-muted);
	text-decoration: none;
	box-sizing: border-box;
}

.rhb-section .wp-block-query-pagination a:hover {
	border-color: var(--rhb-caramel);
	color: var(--rhb-caramel);
}

.rhb-section .wp-block-query-pagination .page-numbers.current {
	border-color: var(--rhb-caramel);
	background: var(--rhb-caramel);
	color: var(--rhb-cream);
}

.rhb-section .wp-block-query-pagination .page-numbers.dots {
	border: 0;
	background: none;
	min-width: 0;
}

.rhb-section .wp-block-query-pagination-numbers {
	display: flex;
	gap: 8px;
}

/* ==========================================================================
   11. Category and tag pages (Kadence's own archive cards)
   Layout, columns and image ratio come from the Customizer; this only
   matches the type and colors to the homepage cards.
   ========================================================================== */

body:is(.archive, .blog, .search) .loop-entry {
	background: transparent;
	box-shadow: none;
}

body:is(.archive, .blog, .search) .loop-entry .entry-content-wrap {
	padding: 18px 0 0;
}

.loop-entry .entry-taxonomies,
.loop-entry .entry-taxonomies a {
	font-family: var(--rhb-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-caramel);
	text-decoration: none;
}

.loop-entry .entry-title {
	margin: 10px 0 0;
	font-family: var(--rhb-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
}

.loop-entry .entry-title a {
	color: var(--rhb-ink);
	text-decoration: none;
}

.loop-entry .entry-title a:hover {
	color: var(--rhb-caramel);
}

.loop-entry .entry-summary {
	margin-top: 12px;
	padding-top: 15px;
	border-top: 1px solid var(--rhb-rule);
	font-size: 13px;
	line-height: 1.5;
	color: var(--rhb-muted);
}

.loop-entry .entry-summary p {
	margin: 0;
}

/* Archive heading: "Cookies, Bars and Brownies" etc. */
body.archive .entry-hero .page-title,
body.archive .archive-title {
	font-family: var(--rhb-serif);
	font-weight: 400;
	color: var(--rhb-ink);
}

body.archive .archive-description {
	color: var(--rhb-muted);
}

@media (max-width: 767px) {
	.rhb-archive__grid .wp-block-post-template {
		row-gap: 40px;
	}
}

/* ==========================================================================
   12. The Baking Lab page (pattern: The Baking Lab — notebook page)
   A notebook, not a photo grid: latest lesson as a spread, then a
   numbered, text-only index on the tan Lab background.
   ========================================================================== */

.rhb-labpage {
	padding-block: 64px 72px;
}

.rhb-labpage .rhb-wrap {
	display: flex;
	flex-direction: column;
	gap: 44px;
}

.rhb-labpage__intro {
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 680px;
}

.rhb-section .rhb-labpage__title {
	font-family: var(--rhb-serif);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 400;
	line-height: 1.15;
	color: var(--rhb-ink);
}

.rhb-labpage__title em {
	font-style: italic;
	color: var(--rhb-caramel);
}

/* Latest lesson: reuses the homepage notebook spread */
.rhb-lab-latest .wp-block-post-template,
.rhb-lab-index .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhb-labpage__latest .rhb-notebook__figure {
	gap: 16px;
}

.rhb-labpage__latest .wp-block-post-featured-image {
	margin: 0;
	flex: 1;
}

.rhb-labpage__latest .wp-block-post-featured-image :is(a, img) {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
}

.rhb-labpage__latest .wp-block-post-title {
	font-family: var(--rhb-serif);
	font-size: clamp(28px, 2.6vw, 34px);
	font-weight: 400;
	line-height: 1.25;
}

.rhb-labpage__latest .wp-block-post-title a {
	color: var(--rhb-ink);
}

.rhb-labpage__latest .wp-block-post-excerpt,
.rhb-labpage__latest .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rhb-muted);
}

/* The numbered index */
.rhb-labindex {
	padding-block: 68px 78px;
}

.rhb-labindex .rhb-wrap {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.rhb-lab-index .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 56px;
	counter-reset: rhb-lab;
	border-top: 1px solid var(--rhb-rule);
}

.rhb-lab-index .wp-block-post {
	counter-increment: rhb-lab;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 0 16px;
	align-items: start;
	padding: 24px 0;
	border-bottom: 1px solid var(--rhb-rule);
}

.rhb-lab-index .wp-block-post::before {
	content: counter(rhb-lab, decimal-leading-zero);
	font-family: var(--rhb-serif);
	font-size: 34px;
	font-style: italic;
	line-height: 1;
	color: var(--rhb-caramel);
}

.rhb-lesson {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rhb-lesson .wp-block-post-title {
	font-family: var(--rhb-serif);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.3;
}

.rhb-lesson .wp-block-post-title a {
	color: var(--rhb-ink);
}

.rhb-lesson .wp-block-post-title a:hover {
	color: var(--rhb-caramel);
}

.rhb-lesson .wp-block-post-excerpt,
.rhb-lesson .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--rhb-muted);
}

.rhb-labindex .wp-block-query-pagination {
	margin-top: 40px;
}

@media (max-width: 1024px) {
	.rhb-labpage__latest .wp-block-post-featured-image :is(a, img) {
		min-height: 240px;
	}
}

@media (max-width: 767px) {
	.rhb-labpage,
	.rhb-labindex {
		padding-block: 48px;
	}

	.rhb-lab-index .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-lab-index .wp-block-post {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.rhb-lab-index .wp-block-post::before {
		font-size: 28px;
	}
}

/* ==========================================================================
   13. Recipe card time + difficulty line (added by the theme)
   ========================================================================== */

.rhb-card .rhb-card__meta {
	margin: 0;
	color: var(--rhb-muted);
}

.rhb-card__sep {
	margin: 0 0.6em;
	color: var(--rhb-rule);
}


/* ==========================================================================
   14. Newsletter band under single posts
   Fits the post's content column instead of spanning the full window.
   ========================================================================== */

.single-post .entry-content .rhb-newsletter {
	width: auto;
	max-width: none;
	margin: 56px 0 0 !important;
	padding: 32px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-paper);
	left: auto;
	right: auto;
	transform: none;
}

.single-post .entry-content .rhb-newsletter .rhb-wrap {
	max-width: none;
	padding-inline: 0;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 20px 28px;
}

.single-post .entry-content .rhb-newsletter__sketch img {
	width: 96px;
}

.single-post .entry-content .rhb-newsletter__copy h2 {
	font-size: clamp(24px, 2.4vw, 30px);
}

.single-post .entry-content .rhb-newsletter__form {
	grid-column: 1 / -1;
}

@media (max-width: 600px) {
	.single-post .entry-content .rhb-newsletter {
		padding: 24px 20px;
	}

	.single-post .entry-content .rhb-newsletter .rhb-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-post .entry-content .rhb-newsletter__sketch {
		display: none;
	}
}

/* ==========================================================================
   15. Post templates (Recipe, Baking Lab lesson)
   ========================================================================== */

/* Writer's notes: only ever seen in the editor (removed on the live site) */
.rhb-editor-note {
	padding: 10px 14px !important;
	border: 1px dashed var(--rhb-caramel);
	background: #fff8ec;
	font-family: var(--rhb-sans);
	font-size: 13px !important;
	line-height: 1.5;
	color: var(--rhb-muted);
}

.rhb-editor-note::before {
	content: "Note to self · not published — ";
	font-weight: 600;
	color: var(--rhb-caramel);
}

/* Callout boxes */
.rhb-callout {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 36px 0 !important;
	padding: 22px 26px;
	border: 1px solid var(--rhb-rule);
	border-left: 3px solid var(--rhb-caramel);
	background: var(--rhb-cream);
}

.rhb-callout > *,
.rhb-callout .wp-block-group__inner-container > * {
	margin: 0 !important;
}

.rhb-callout p:not(.is-style-rhb-eyebrow) {
	font-size: 16px;
	line-height: 1.6;
	color: var(--rhb-ink);
}

/* Some themes wrap group contents in an extra div; make it invisible to
   layout so callouts, photo grids and the comparison row work either way. */
:is(.rhb-callout, .rhb-steps, .rhb-glance, .rhb-faq) .wp-block-group__inner-container {
	display: contents;
}

.rhb-callout .is-style-rhb-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rhb-callout--learn .is-style-rhb-eyebrow::before,
.rhb-callout--tip .is-style-rhb-eyebrow::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("assets/icons/lightbulb.svg") center / contain no-repeat;
	mask: url("assets/icons/lightbulb.svg") center / contain no-repeat;
}

.rhb-callout--tip {
	border-left-color: var(--rhb-teal);
}

.rhb-callout--tip .is-style-rhb-eyebrow {
	color: var(--rhb-teal);
}

.rhb-callout--tip .is-style-rhb-eyebrow::before {
	-webkit-mask-image: url("assets/icons/asterisk.svg");
	mask-image: url("assets/icons/asterisk.svg");
}

.rhb-callout--answer {
	background: var(--rhb-tan);
}

.rhb-callout--answer p:not(.is-style-rhb-eyebrow) {
	font-family: var(--rhb-serif);
	font-size: 20px;
	line-height: 1.45;
}

.rhb-callout--lab,
.rhb-callout--recipes {
	border-left-color: var(--rhb-teal);
	background: var(--rhb-paper);
}

.rhb-callout .rhb-callout__title {
	font-family: var(--rhb-serif);
	font-size: 22px;
	line-height: 1.3;
}

/* Lists */
.rhb-checklist,
.rhb-ingredient-notes,
.rhb-recipe-links {
	padding-left: 1.2em;
}

.rhb-checklist li,
.rhb-ingredient-notes li,
.rhb-takeaways li {
	margin-bottom: 10px;
}

.rhb-checklist li::marker,
.rhb-ingredient-notes li::marker,
.rhb-recipe-links li::marker {
	color: var(--rhb-caramel);
}

.rhb-takeaways {
	padding-left: 1.6em;
}

.rhb-takeaways li::marker {
	font-family: var(--rhb-serif);
	font-style: italic;
	font-size: 1.2em;
	color: var(--rhb-caramel);
}

.rhb-recipe-links {
	margin: 0;
}

.rhb-recipe-links a {
	font-family: var(--rhb-serif);
	font-size: 19px;
	color: var(--rhb-ink);
}

.rhb-recipe-links a:hover {
	color: var(--rhb-caramel);
}

/* Step-by-step photos: two across, one on phones */
.rhb-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 20px;
}

.rhb-steps .wp-block-image {
	margin: 0 !important;
}

.rhb-steps .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rhb-steps .wp-element-caption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
	color: var(--rhb-muted);
}

.rhb-steps .wp-element-caption strong {
	font-family: var(--rhb-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 16px;
	color: var(--rhb-caramel);
}

/* Troubleshooting */
.rhb-faq h3 {
	margin: 24px 0 6px !important;
	font-family: var(--rhb-serif);
	font-size: 20px;
	font-weight: 400;
	color: var(--rhb-ink);
}

.rhb-faq p {
	margin: 0 0 8px !important;
}

/* Baking Lab lesson pieces */
.rhb-fieldnote {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--rhb-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-caramel);
}

.rhb-fieldnote::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--rhb-rule);
}

.rhb-figure {
	margin: 36px 0 !important;
	padding: 20px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-cream);
	text-align: center;
}

.rhb-figure img {
	margin: 0 auto;
}

.rhb-figure .wp-element-caption {
	margin-top: 14px;
	font-family: var(--rhb-serif);
	font-size: 14px;
	font-style: italic;
	color: var(--rhb-muted);
}

.rhb-glance {
	margin: 28px 0 !important;
	padding: 24px 0;
	border-block: 1px solid var(--rhb-rule);
}

.rhb-glance p {
	margin: 0 !important;
}

.rhb-glance .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (max-width: 600px) {
	.rhb-glance {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

.rhb-pullquote {
	margin: 40px 0 !important;
	padding: 4px 0 4px 24px !important;
	border-left: 2px solid var(--rhb-caramel) !important;
	background: none;
	quotes: none;
}

.rhb-pullquote p {
	font-family: var(--rhb-serif);
	font-size: clamp(24px, 2.6vw, 30px);
	font-style: italic;
	line-height: 1.35;
	color: var(--rhb-ink);
}

.entry-content .rhb-signoff,
.editor-styles-wrapper .rhb-signoff {
	margin-top: 40px;
}

@media (max-width: 600px) {
	.rhb-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-callout {
		padding: 18px 20px;
	}
}

/* ==========================================================================
   16. Baking Lab post header (title + intro left, featured image right)
   Body class rhb-lab-post is added to Baking Lab posts only.
   ========================================================================== */

/* Hide Kadence's own title area and top image on these posts */
.rhb-lab-post .article-post-thumbnail,
.rhb-lab-post .entry-hero,
.rhb-lab-post .single-entry .entry-content-wrap > .entry-header {
	display: none !important;
}

/* Let the header sit right under the site header */
.rhb-lab-post .content-area {
	margin-top: 0;
}

.rhb-lab-post .single-entry .entry-content-wrap {
	padding-top: 0;
}

/* Full-width tan band, content centered at the site width */
.rhb-labhero {
	position: relative;
	box-sizing: border-box;
	width: calc(100vw - var(--scrollbar-offset, 0px));
	max-width: none;
	margin: 0 0 48px calc(50% - 50vw + var(--scrollbar-offset, 0px) / 2) !important;
	padding: 28px var(--rhb-gutter) 56px;
	border-bottom: 1px solid var(--rhb-rule);
	background: var(--rhb-tan);
}

.rhb-labhero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
	gap: 56px;
	align-items: center;
	max-width: var(--rhb-wrap);
	margin: 0 auto;
}

.rhb-labhero--no-image .rhb-labhero__inner {
	grid-template-columns: minmax(0, 760px);
}

.rhb-labhero__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rhb-labhero p,
.rhb-labhero h1,
.rhb-labhero figure {
	margin: 0;
}

.rhb-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 18px;
	font-family: var(--rhb-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--rhb-muted);
}

.rhb-crumbs a {
	color: var(--rhb-muted);
	text-decoration: none;
}

.rhb-crumbs a:hover {
	color: var(--rhb-caramel);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rhb-crumbs span[aria-hidden] {
	color: var(--rhb-rule);
}

.rhb-crumbs [aria-current] {
	color: var(--rhb-ink);
}

.rhb-labhero__label {
	font-family: var(--rhb-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-caramel);
}

.rhb-labhero__title {
	font-family: var(--rhb-serif);
	font-size: clamp(40px, 5vw, 68px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--rhb-ink);
}

.rhb-labhero__intro {
	max-width: 520px;
	font-family: var(--rhb-sans);
	font-size: 18px;
	line-height: 1.6;
	color: var(--rhb-muted);
}

.rhb-labhero__figure {
	padding: 18px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-cream);
}

.rhb-labhero__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
}

.rhb-labhero__figure figcaption {
	margin-top: 12px;
	font-family: var(--rhb-serif);
	font-size: 14px;
	font-style: italic;
	text-align: center;
	color: var(--rhb-muted);
}

@media (max-width: 900px) {
	.rhb-labhero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.rhb-labhero {
		padding-bottom: 40px;
	}
}

/* "In this field guide" bar under the Baking Lab post header */
.rhb-labhero:has(+ .rhb-guide) {
	margin-bottom: 0 !important;
}

.rhb-guide {
	box-sizing: border-box;
	width: calc(100vw - var(--scrollbar-offset, 0px));
	max-width: none;
	margin: 0 0 48px calc(50% - 50vw + var(--scrollbar-offset, 0px) / 2) !important;
	padding: 0 var(--rhb-gutter);
	border-bottom: 1px solid var(--rhb-rule);
	background: var(--rhb-paper);
}

.rhb-guide__inner {
	display: flex;
	align-items: center;
	gap: 16px 40px;
	max-width: var(--rhb-wrap);
	min-height: 64px;
	margin: 0 auto;
	padding: 14px 0;
}

.rhb-guide .rhb-guide__label {
	flex: none;
	margin: 0;
	font-family: var(--rhb-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-muted);
}

.rhb-guide .rhb-guide__list {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhb-guide__list li {
	margin: 0;
}

.rhb-guide__list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--rhb-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--rhb-teal);
	text-decoration: none;
}

.rhb-guide__list a::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	transform: rotate(90deg);
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}

.rhb-guide__list a:hover {
	color: var(--rhb-caramel);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Land a little below the top edge when jumping to a section */
.rhb-lab-post .entry-content h2[id] {
	scroll-margin-top: 32px;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(body.rhb-lab-post) {
		scroll-behavior: smooth;
	}
}

@media (max-width: 900px) {
	.rhb-guide__inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px 0;
	}

	.rhb-guide .rhb-guide__list {
		flex-direction: column;
		justify-content: flex-start;
		gap: 12px;
	}
}

/* ==========================================================================
   17. Recipe posts (body class rhb-recipe-post)
   ========================================================================== */

/* Hide Kadence's own title area, top image and "Similar Posts" row */
.rhb-recipe-post .article-post-thumbnail,
.rhb-recipe-post .entry-hero,
.rhb-recipe-post .single-entry .entry-content-wrap > .entry-header,
.rhb-recipe-post .entry-related {
	display: none !important;
}

.rhb-recipe-post .content-area {
	margin-top: 0;
}

.rhb-recipe-post .single-entry .entry-content-wrap {
	padding-top: 0;
}

/* Full-width band helper (header, stats, bands in the template, next bakes) */
.rhb-rhero,
.rhb-stats,
.rhb-bleed {
	position: relative;
	box-sizing: border-box;
	width: calc(100vw - var(--scrollbar-offset, 0px));
	max-width: none;
	margin-left: calc(50% - 50vw + var(--scrollbar-offset, 0px) / 2) !important;
	margin-right: 0 !important;
	padding-inline: var(--rhb-gutter);
}

/* ---------- Header ---------- */

.rhb-rhero {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-block: 28px 48px;
	background: var(--rhb-paper);
}

.rhb-rhero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
	gap: 56px;
	align-items: center;
	max-width: var(--rhb-wrap);
	margin: 0 auto;
}

.rhb-rhero--no-image .rhb-rhero__inner {
	grid-template-columns: minmax(0, 760px);
}

.rhb-rhero__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rhb-rhero p,
.rhb-rhero h1,
.rhb-rhero figure {
	margin: 0;
}

.rhb-rhero .rhb-crumbs {
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: var(--rhb-tracking);
	font-size: 10px;
}

.rhb-rhero__title {
	font-family: var(--rhb-serif);
	font-size: clamp(42px, 5vw, 72px);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--rhb-ink);
}

.rhb-rhero__intro {
	max-width: 520px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--rhb-muted);
}

.rhb-rhero__tagline {
	font-family: var(--rhb-serif);
	font-size: 16px;
	font-style: italic;
	color: var(--rhb-teal);
}

.rhb-rhero__figure {
	overflow: hidden;
}

.rhb-rhero__img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

/* Buttons */
.rhb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rhb-actions + .rhb-actions {
	margin-top: -6px;
}

.rhb-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-paper);
	font-family: var(--rhb-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--rhb-ink);
	text-decoration: none;
	box-sizing: border-box;
}

.rhb-btn:hover {
	border-color: var(--rhb-caramel);
	color: var(--rhb-caramel);
}

.rhb-btn--solid {
	border-color: var(--rhb-caramel);
	background: var(--rhb-caramel);
	color: var(--rhb-cream);
}

.rhb-btn--solid:hover {
	border-color: var(--rhb-brown);
	background: var(--rhb-brown);
	color: var(--rhb-cream);
}

.rhb-btn--small {
	min-height: 36px;
	padding: 0 14px;
	font-size: 12px;
	color: var(--rhb-muted);
}

.rhb-btn__icon {
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}

.rhb-btn--down .rhb-btn__icon {
	transform: rotate(90deg);
}

/* ---------- Stats bar ---------- */

.rhb-stats {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	border-block: 1px solid var(--rhb-rule);
	background: var(--rhb-paper);
}

.rhb-stats__inner {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	max-width: var(--rhb-wrap);
	margin: 0 auto;
	padding: 0;
}

.rhb-stats__item {
	padding: 16px 20px;
	border-left: 1px solid var(--rhb-rule);
}

.rhb-stats__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.rhb-stats dt {
	margin: 0 0 6px;
	font-family: var(--rhb-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-muted);
}

.rhb-stats dd {
	margin: 0;
	font-family: var(--rhb-serif);
	font-size: 20px;
	line-height: 1.2;
	color: var(--rhb-ink);
}

/* Contents bar sits right under the stats bar on recipe posts */
.rhb-stats + .rhb-guide {
	border-top: 0;
}

/* ---------- Template pieces ---------- */

.rhb-bleed {
	margin-block: 48px !important;
	padding-block: 48px;
}

.rhb-bleed > .rhb-bleed__inner,
.rhb-bleed > .wp-block-group__inner-container > .rhb-bleed__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.rhb-band--tan {
	background: var(--rhb-tan);
}

/* Band with an intro column and two/three content columns */
.rhb-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr));
	gap: 24px 48px;
	align-items: start;
}

.rhb-band__grid--two {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
}

.rhb-band__grid > *,
.rhb-band__grid .wp-block-group__inner-container > * {
	margin-top: 0 !important;
}

.rhb-band__grid h2 {
	margin: 8px 0 0 !important;
	font-family: var(--rhb-serif);
	font-size: clamp(26px, 2.6vw, 32px);
	font-weight: 400;
	line-height: 1.2;
	color: var(--rhb-ink);
}

.rhb-band__grid h3 {
	margin: 0 0 8px !important;
	font-family: var(--rhb-serif);
	font-size: 19px;
	font-weight: 400;
	color: var(--rhb-ink);
}

.rhb-band__grid p:not([class*="is-style"]) {
	font-size: 14px;
	line-height: 1.6;
	color: var(--rhb-muted);
}

.rhb-band__col {
	padding-top: 4px;
	border-top: 1px solid var(--rhb-rule);
}

/* Section with eyebrow + H2 in the post column */
.rhb-recipe-post .entry-content > .is-style-rhb-eyebrow {
	margin: 56px 0 8px;
}

.rhb-recipe-post .entry-content > .is-style-rhb-eyebrow + h2 {
	margin-top: 0;
}

/* Bordered panel (tools, swaps, reader note) */
.rhb-panel {
	margin: 48px 0 !important;
	padding: 32px 36px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-paper);
}

.rhb-panel > *:first-child,
.rhb-panel .wp-block-group__inner-container > *:first-child {
	margin-top: 0 !important;
}

.rhb-panel > *:last-child,
.rhb-panel .wp-block-group__inner-container > *:last-child {
	margin-bottom: 0 !important;
}

.rhb-panel h2 {
	margin: 8px 0 12px !important;
}

/* Numbered list with a title line per item (01, 02…) */
.rhb-numlist {
	margin: 20px 0 0 !important;
	padding: 0 !important;
	list-style: none;
	counter-reset: rhb-num;
}

.rhb-numlist li {
	position: relative;
	margin: 0;
	padding: 14px 0 14px 48px;
	border-top: 1px solid var(--rhb-rule);
	counter-increment: rhb-num;
	font-size: 14px;
	line-height: 1.55;
	color: var(--rhb-muted);
}

.rhb-numlist li::before {
	content: counter(rhb-num, decimal-leading-zero);
	position: absolute;
	top: 12px;
	left: 0;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rhb-tan);
	font-family: var(--rhb-serif);
	font-size: 13px;
	font-style: italic;
	color: var(--rhb-caramel);
}

.rhb-numlist li strong {
	display: block;
	margin-bottom: 2px;
	font-family: var(--rhb-serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--rhb-ink);
}

/* Reader note */
.rhb-panel--quote {
	border-left: 3px solid var(--rhb-caramel);
	background: var(--rhb-cream);
}

.rhb-panel .rhb-quote {
	margin: 10px 0 12px !important;
	font-family: var(--rhb-serif);
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.3;
	color: var(--rhb-ink);
}

/* ---------- "Your next good bake" ---------- */

.entry-content .rhb-next {
	padding-block: 64px 72px;
	border-top: 1px solid var(--rhb-rule);
}

.rhb-next .rhb-wrap {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-inline: 0;
}

.rhb-next .rhb-section__head p,
.rhb-next .rhb-section__head h2 {
	margin: 0;
}

.rhb-next .rhb-section__head > div {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---------- Create recipe card on recipe posts ---------- */

.rhb-recipe-post .mv-create-card {
	position: relative;
	box-sizing: border-box;
	width: calc(100vw - var(--scrollbar-offset, 0px));
	max-width: none !important;
	margin: 56px 0 0 calc(50% - 50vw + var(--scrollbar-offset, 0px) / 2) !important;
	padding: 56px var(--rhb-gutter) 64px !important;
	border: 0 !important;
	border-block: 1px solid var(--rhb-rule) !important;
	background: var(--rhb-paper) !important;
	box-shadow: none !important;
	text-align: left !important;
	font-family: var(--rhb-sans);
	color: var(--rhb-ink);
}

.rhb-recipe-post .mv-create-card .mv-create-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
	grid-auto-flow: row dense;
	gap: 0 56px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-wrapper > * {
	grid-column: 1 / -1;
}

.rhb-recipe-post .mv-create-card .mv-create-wrapper > .mv-create-ingredients {
	grid-column: 1;
}

.rhb-recipe-post .mv-create-card .mv-create-wrapper > .mv-create-instructions {
	grid-column: 2;
}

/* Card header: eyebrow, title, rating, print */
.rhb-recipe-post .mv-create-card .mv-create-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 8px 24px;
	margin: 0 0 32px !important;
	padding: 0 0 24px !important;
	border-bottom: 1px solid var(--rhb-rule);
	background: none !important;
	text-align: left !important;
}

.rhb-recipe-post .mv-create-card .mv-create-header::before {
	content: "The recipe  /  Weights, not guesswork";
	grid-column: 1 / -1;
	white-space: pre;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--rhb-tracking);
	text-transform: uppercase;
	color: var(--rhb-caramel);
}

.rhb-recipe-post .mv-create-card .mv-create-image {
	display: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-header > * {
	grid-column: 1;
	margin: 0 !important;
}

.rhb-recipe-post .mv-create-card .mv-create-title-primary {
	font-family: var(--rhb-serif) !important;
	font-size: clamp(30px, 3vw, 38px) !important;
	font-weight: 400 !important;
	line-height: 1.15;
	text-transform: none !important;
	color: var(--rhb-ink) !important;
}

/* Times stay in the card (print, search) but read quietly */
.rhb-recipe-post .mv-create-card .mv-create-times {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	border: 0 !important;
	font-size: 12px;
	color: var(--rhb-muted);
}

.rhb-recipe-post .mv-create-card .mv-create-time {
	padding: 0 !important;
	border: 0 !important;
	text-transform: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-print-form {
	grid-column: 2 !important;
	grid-row: 2 / span 3;
	align-self: end;
}

.rhb-recipe-post .mv-create-card .mv-create-button,
.rhb-recipe-post .mv-create-card .mv-create-print-button {
	min-height: 44px;
	padding: 0 18px !important;
	border: 1px solid var(--rhb-rule) !important;
	border-radius: 0 !important;
	background: var(--rhb-paper) !important;
	font-family: var(--rhb-sans) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--rhb-ink) !important;
	box-shadow: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-print-button:hover {
	border-color: var(--rhb-caramel) !important;
	color: var(--rhb-caramel) !important;
}

/* Section titles inside the card */
.rhb-recipe-post .mv-create-card .mv-create-title-secondary {
	margin: 0 0 18px !important;
	font-family: var(--rhb-serif) !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--rhb-ink) !important;
}

.rhb-recipe-post .mv-create-card .mv-create-ingredients h4,
.rhb-recipe-post .mv-create-card .mv-create-instructions h4 {
	margin: 22px 0 8px !important;
	font-family: var(--rhb-sans) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: var(--rhb-tracking) !important;
	text-transform: uppercase !important;
	color: var(--rhb-caramel) !important;
}

/* Ingredients: ruled list with a small square */
.rhb-recipe-post .mv-create-card .mv-create-ingredients ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-ingredients li {
	position: relative;
	margin: 0 !important;
	padding: 9px 0 9px 26px !important;
	border-bottom: 1px solid var(--rhb-rule);
	font-size: 14px;
	line-height: 1.45;
	list-style: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-ingredients li::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 0;
	width: 11px;
	height: 11px;
	border: 1px solid var(--rhb-rule);
	background: var(--rhb-cream);
}

/* Method: big italic numbers that continue across step groups */
.rhb-recipe-post .mv-create-card .mv-create-instructions {
	counter-reset: rhb-step;
}

.rhb-recipe-post .mv-create-card .mv-create-instructions ol {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-instructions ol > li {
	position: relative;
	margin: 0 !important;
	padding: 16px 0 16px 60px !important;
	border-top: 1px solid var(--rhb-rule);
	counter-increment: rhb-step;
	font-size: 15px;
	line-height: 1.65;
	list-style: none !important;
}

.rhb-recipe-post .mv-create-card .mv-create-instructions ol > li::before {
	content: counter(rhb-step, decimal-leading-zero);
	position: absolute;
	top: 12px;
	left: 0;
	font-family: var(--rhb-serif);
	font-size: 30px;
	font-style: italic;
	line-height: 1;
	color: var(--rhb-caramel);
}

/* Notes, nutrition, social: quiet boxes across the full width */
.rhb-recipe-post .mv-create-card .mv-create-notes,
.rhb-recipe-post .mv-create-card .mv-create-nutrition {
	margin-top: 32px !important;
	padding: 20px 24px !important;
	border: 1px solid var(--rhb-rule) !important;
	background: var(--rhb-cream) !important;
	font-size: 14px;
	color: var(--rhb-muted);
}

.rhb-recipe-post .mv-create-card .mv-create-social {
	margin-top: 32px !important;
	padding: 20px 0 0 !important;
	border-top: 1px solid var(--rhb-rule) !important;
	background: none !important;
	color: var(--rhb-muted);
}

.rhb-recipe-post .mv-create-card .mv-create-footer {
	max-width: 1100px;
	margin: 24px auto 0;
	background: none !important;
	font-size: 11px;
	color: var(--rhb-muted);
}

/* ---------- Recipe posts on smaller screens ---------- */

@media (max-width: 1024px) {
	.rhb-stats__inner {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rhb-stats__item:nth-child(3n + 1) {
		padding-left: 0;
		border-left: 0;
	}

	.rhb-band__grid,
	.rhb-band__grid--two {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.rhb-band__grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.rhb-rhero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.rhb-rhero__figure {
		order: -1;
		margin: 0 calc(var(--rhb-gutter) * -1) !important;
	}

	.rhb-recipe-post .mv-create-card .mv-create-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-recipe-post .mv-create-card .mv-create-wrapper > .mv-create-ingredients,
	.rhb-recipe-post .mv-create-card .mv-create-wrapper > .mv-create-instructions {
		grid-column: 1;
	}

	.rhb-recipe-post .mv-create-card .mv-create-instructions {
		margin-top: 32px;
	}
}

@media (max-width: 600px) {
	.rhb-stats__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rhb-stats__item:nth-child(3n + 1) {
		padding-left: 20px;
		border-left: 1px solid var(--rhb-rule);
	}

	.rhb-stats__item:nth-child(2n + 1) {
		padding-left: 0;
		border-left: 0;
	}

	.rhb-band__grid,
	.rhb-band__grid--two {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-panel {
		padding: 24px 20px;
	}

	.rhb-recipe-post .mv-create-card .mv-create-header {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhb-recipe-post .mv-create-card .mv-create-print-form {
		grid-column: 1 !important;
		grid-row: auto;
	}

	.rhb-recipe-post .mv-create-card .mv-create-instructions ol > li {
		padding-left: 44px !important;
	}

	.rhb-recipe-post .mv-create-card .mv-create-instructions ol > li::before {
		font-size: 24px;
	}
}

/* ---------- Recipe / Lab post fixes ---------- */

/* See through group wrappers some themes add, so band grids work */
:is(.rhb-bleed, .rhb-band__grid, .rhb-panel) > .wp-block-group__inner-container {
	display: contents;
}

/* Images keep their crop even when WordPress sets a height attribute */
.rhb-rhero__img,
.rhb-card .wp-block-post-featured-image img {
	height: auto;
}

/* One continuous page surface instead of a boxed article */
:is(.rhb-recipe-post, .rhb-lab-post) .single-entry.content-bg {
	background: transparent;
	box-shadow: none;
}
