/* Reel Recipe Hub: mobile-first, large type and tap targets for readers 45+.
   Colors follow The Gentle Bite palette; override the variables in Customizer CSS if needed. */

:root {
	--rrh-accent: #b4581c;        /* terracotta, white text on it = 4.6:1 */
	--rrh-accent-dark: #8f4413;   /* links and hover, 6.9:1 on white */
	--rrh-green: #3f5f47;
	--rrh-ink: #2b2522;
	--rrh-muted: #5a4f48;
	--rrh-cream: #fdf3e7;
	--rrh-cream-2: #fbe8d2;
	--rrh-line: #ead8c5;
	--rrh-radius: 14px;
	--rrh-font-ui: Lato, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--rrh-font-head: Lora, Georgia, serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.single-recipe-block,
.reel-master-bundle,
.reel-jump-grid,
.rrh-gameplan { scroll-margin-top: 90px; }

/* ---------- Buttons ---------- */
.rrh-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 14px 22px;
	border-radius: 999px;
	border: 2px solid var(--rrh-accent);
	font-family: var(--rrh-font-ui);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .15s, color .15s, transform .15s;
}
.rrh-btn--solid { background: var(--rrh-accent); color: #fff; }
.rrh-btn--solid:hover, .rrh-btn--solid:focus-visible { background: var(--rrh-accent-dark); border-color: var(--rrh-accent-dark); color: #fff; }
.rrh-btn--outline { background: #fff; color: var(--rrh-accent-dark); }
.rrh-btn--outline:hover, .rrh-btn--outline:focus-visible { background: var(--rrh-cream); color: var(--rrh-accent-dark); }
.rrh-btn:active { transform: translateY(1px); }
.rrh-btn:focus-visible,
.rrh-grid__link:focus-visible,
.rrh-modal__x:focus-visible { outline: 3px solid #1159af; outline-offset: 3px; }
.rrh-btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Component A: jump grid ---------- */
.reel-jump-grid {
	margin: 24px 0 32px;
	padding: 14px 12px;
	background: var(--rrh-cream);
	border-radius: var(--rrh-radius);
}
.rrh-grid__title {
	margin: 0 0 12px;
	font-family: var(--rrh-font-ui);
	font-size: 18px;
	font-weight: 800;
	color: var(--rrh-ink);
	text-align: center;
}
.rrh-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.rrh-grid__item { margin: 0 !important; padding: 0 !important; }
.rrh-grid__item::before, .rrh-grid__item::marker { content: none; }
.rrh-grid__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--rrh-line);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none !important;
	color: var(--rrh-ink) !important;
	box-shadow: 0 1px 3px rgba(60, 35, 15, .08);
}
.rrh-grid__link:hover { border-color: var(--rrh-accent); }
.rrh-grid__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--rrh-cream-2); }
.rrh-grid__img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
.rrh-grid__img--empty { background: linear-gradient(135deg, var(--rrh-cream-2), #f3d2b0); }
.rrh-grid__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--rrh-accent);
	color: #fff;
	font: 800 18px/1 var(--rrh-font-ui);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.rrh-grid__name {
	display: block;
	padding: 10px 12px 12px;
	font-family: var(--rrh-font-ui);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}
@media (min-width: 900px) {
	.rrh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Game plan box (plain HTML, styled here) ---------- */
.rrh-gameplan {
	margin: 0 0 36px;
	padding: 20px 18px;
	border: 2px solid var(--rrh-green);
	border-radius: var(--rrh-radius);
	background: #f3f7f2;
	color: var(--rrh-ink);
	font-size: 19px;
	line-height: 1.6;
}
.rrh-gameplan__title {
	margin: 0 0 12px !important;
	font-family: var(--rrh-font-ui);
	font-size: 22px;
	font-weight: 800;
	color: var(--rrh-green);
}
.rrh-gameplan ul, .rrh-gameplan ol { margin: 0 0 12px; padding-left: 1.2em; }
.rrh-gameplan li { margin: 0 0 10px; }
.rrh-gameplan h3 { margin: 18px 0 8px; font-size: 20px; }
.rrh-gameplan p:last-child { margin-bottom: 0; }

/* ---------- Component B: recipe card ---------- */
.single-recipe-block {
	margin: 40px 0;
	border: 1px solid var(--rrh-line);
	border-radius: var(--rrh-radius);
	background: #fff;
	overflow: hidden;
	color: var(--rrh-ink);
	font-size: 19px;
	line-height: 1.65;
}
.rrh-card__head {
	padding: 18px 18px 14px;
	background: var(--rrh-cream);
	border-bottom: 1px solid var(--rrh-line);
}
.single-recipe-block .rrh-card__title {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
	font-family: var(--rrh-font-head);
	font-size: 26px;
	line-height: 1.25;
	color: var(--rrh-ink);
}
.rrh-card__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -2px;
	border-radius: 999px;
	background: var(--rrh-accent);
	color: #fff;
	font: 800 20px/1 var(--rrh-font-ui);
}
.rrh-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: var(--rrh-line);
	border-bottom: 1px solid var(--rrh-line);
}
.rrh-meta__item {
	margin: 0 !important;
	padding: 10px 14px;
	background: #fff;
	font-family: var(--rrh-font-ui);
	font-size: 17px;
	line-height: 1.35;
}
.rrh-meta__item::before, .rrh-meta__item::marker { content: none; }
.rrh-meta__icon { margin-right: 6px; }
.rrh-meta__label { color: var(--rrh-muted); font-weight: 700; }
.rrh-meta__value { display: block; font-weight: 800; color: var(--rrh-ink); }
@media (min-width: 700px) {
	.rrh-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rrh-card__photo { margin: 0 !important; aspect-ratio: 4 / 3; background: var(--rrh-cream-2); }
.rrh-card__img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
.rrh-card__body { padding: 18px 18px 4px; }
.rrh-card__body > :first-child { margin-top: 0; }
.rrh-card__body h3 {
	margin: 24px 0 10px;
	font-family: var(--rrh-font-ui);
	font-size: 21px;
	font-weight: 800;
	color: var(--rrh-ink);
}
.rrh-card__body p { margin: 0 0 14px; }
.rrh-card__body ul, .rrh-card__body ol { margin: 0 0 16px; padding-left: 1.3em; }
.rrh-card__body li { margin: 0 0 10px; padding-left: 4px; }
.rrh-card__body ol.rrh-steps li::marker { font-weight: 800; color: var(--rrh-accent-dark); }
.rrh-card__body a { color: var(--rrh-accent-dark); font-weight: 700; }

/* Host & make-ahead tip */
.rrh-tip {
	margin: 8px 18px 18px;
	padding: 16px;
	border-left: 5px solid var(--rrh-accent);
	border-radius: 10px;
	background: var(--rrh-cream);
	font-size: 18px;
	line-height: 1.6;
}
.rrh-card__body .rrh-tip { margin: 18px 0; }
.rrh-tip__title {
	margin: 0 0 8px !important;
	font-family: var(--rrh-font-ui);
	font-size: 19px;
	font-weight: 800;
	color: var(--rrh-accent-dark);
}
.rrh-tip__body ul { margin: 0; padding-left: 1.2em; }
.rrh-tip__body li { margin: 0 0 8px; }
.rrh-tip__body > :last-child { margin-bottom: 0; }

/* Action bars */
.recipe-action-bar,
.master-action-bar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 4px 18px 20px;
}
.recipe-action-bar .rrh-btn, .master-action-bar .rrh-btn { margin: 0; }
@media (min-width: 640px) {
	.recipe-action-bar { grid-template-columns: 1fr 1fr; }
}

/* ---------- Component C: bundle box ---------- */
.reel-master-bundle {
	margin: 48px 0 32px;
	border: 2px solid var(--rrh-accent);
	border-radius: var(--rrh-radius);
	background: var(--rrh-cream);
	overflow: hidden;
	color: var(--rrh-ink);
}
.rrh-bundle__inner { display: grid; gap: 18px; padding: 22px 18px 12px; }
.rrh-bundle__preview { margin: 0 auto !important; max-width: 240px; text-align: center; }
.rrh-bundle__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(60, 35, 15, .2);
	transform: rotate(-2deg);
}
.rrh-bundle__preview figcaption { margin-top: 12px; font-size: 17px; }
.rrh-bundle__dl { color: var(--rrh-accent-dark) !important; font-weight: 800; }
.rrh-bundle__kicker {
	margin: 0 0 6px !important;
	font: 800 15px/1.2 var(--rrh-font-ui);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rrh-green);
}
.reel-master-bundle .rrh-bundle__title {
	margin: 0 0 10px !important;
	font-family: var(--rrh-font-head);
	font-size: 25px;
	line-height: 1.3;
	color: var(--rrh-ink);
}
.rrh-bundle__text { margin: 0 !important; font-size: 19px; line-height: 1.6; }
@media (min-width: 700px) {
	.rrh-bundle__inner { grid-template-columns: 220px 1fr; align-items: center; padding: 26px 26px 14px; }
	.master-action-bar { grid-template-columns: 1fr 1fr; padding: 6px 26px 24px; }
}

/* ---------- Email modal ---------- */
.rrh-modal[hidden] { display: none !important; }
.rrh-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.rrh-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 12, 6, .6); }
.rrh-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	overflow-y: auto;
	padding: 28px 20px 24px;
	border-radius: 20px 20px 0 0;
	background: #fff;
	color: var(--rrh-ink);
	font-family: var(--rrh-font-ui);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
	animation: rrh-up .2s ease-out;
}
@media (min-width: 600px) {
	.rrh-modal { align-items: center; padding: 20px; }
	.rrh-modal__dialog { border-radius: 20px; padding: 32px 30px 28px; }
}
@keyframes rrh-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rrh-modal__dialog { animation: none; } }
.rrh-modal__x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rrh-ink);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}
.rrh-modal__x:hover { background: var(--rrh-cream); }
.rrh-modal__kicker {
	margin: 0 0 8px;
	padding-right: 48px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--rrh-green);
}
.rrh-modal__title {
	margin: 0 0 18px !important;
	padding-right: 30px;
	font-family: var(--rrh-font-head);
	font-size: 25px;
	line-height: 1.3;
	color: var(--rrh-ink);
}
.rrh-modal__title strong { color: var(--rrh-accent-dark); }
.rrh-modal__label { display: block; margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.rrh-modal__input {
	display: block;
	width: 100%;
	min-height: 58px;
	margin: 0 0 14px;
	padding: 12px 16px;
	border: 2px solid #8a7a6e;
	border-radius: 12px;
	background: #fff;
	color: var(--rrh-ink);
	font-size: 20px; /* 16px+ stops iOS zooming in */
	box-sizing: border-box;
}
.rrh-modal__input:focus { border-color: var(--rrh-accent); outline: 3px solid rgba(180, 88, 28, .25); outline-offset: 0; }
.rrh-modal__input[aria-invalid="true"] { border-color: #b82105; }
.rrh-modal__note { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--rrh-muted); }
.rrh-modal__note a { color: var(--rrh-accent-dark); }
.rrh-modal__msg { font-size: 18px; line-height: 1.55; }
.rrh-modal__msg:empty { display: none; }
.rrh-modal__msg.is-error { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8a1c0a; font-weight: 700; }
.rrh-modal__msg.is-ok { padding: 16px; border-radius: 12px; background: #eef5ef; color: #1f3d27; }
.rrh-modal__msg .rrh-modal__done { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.rrh-modal__msg iframe { width: 100%; height: 420px; border: 0; margin-top: 10px; }
.rrh-modal__msg .rrh-btn { margin-top: 14px; }
.rrh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
body.rrh-modal-open { overflow: hidden; }

/* Editor-only placeholder (never shown to logged-out readers) */
.rrh-editor-note {
	margin: 12px 18px;
	padding: 14px;
	border: 2px dashed #b82105;
	border-radius: 10px;
	background: #fff6f4;
	color: #8a1c0a;
	font: 700 16px/1.4 var(--rrh-font-ui);
}

/* ---------- Print ---------- */
/* Print-only QR footer (see rrh_print_qr_html) */
.rrh-print-qr { display: none; }

@media print {
	@page { margin: 0.4in; }

	/* Always hidden */
	header:not(.entry-header), footer, nav, aside,
	#masthead, .site-header, #colophon, .site-footer, #secondary, .sidebar,
	.recipe-action-bar, .master-action-bar, .reel-jump-grid, .reel-master-bundle,
	.ad-container, .code-block, .adsbygoogle, iframe,
	.site-comments, .comments-area, #comments, .post-navigation, .entry-related,
	.entry-author, .author-box, .kadence-scroll-to-top, .popup-drawer, [id^="hbagency_"], [id^="HB_"],
	#reel-email-modal, .rrh-editor-note,
	.tgb-tb, .tgb-tbm, .tgb-rbtns, .tgb-newsletter, .tgb-disc, .tgb-kit-g {
		display: none !important;
	}

	body { background: #fff !important; color: #000 !important; font-size: 12pt; }
	/* Collapse theme columns/sidebars so recipes use the full sheet width */
	#wrapper, #inner-wrap, #primary, #main, .content-area, .content-container, .site-container,
	.content-wrap, .site-main, .entry, .entry-content-wrap, .entry-content, .single-content {
		display: block !important; float: none !important; width: auto !important; max-width: none !important;
		margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important;
	}

	.single-recipe-block { margin: 0 0 0.2in; border: 1px solid #999; border-radius: 0; font-size: 10.5pt; line-height: 1.32; color: #000; overflow: visible; }
	.rrh-card__head { background: none; padding: 8pt 10pt; border-bottom: 1px solid #999; }
	.single-recipe-block .rrh-card__title { font-size: 18pt; }
	.rrh-card__num { width: auto; height: auto; background: none; color: #000; font-size: 18pt; font-family: inherit; }
	.rrh-meta { grid-template-columns: repeat(4, 1fr); background: #999; }
	.rrh-meta__item { padding: 4pt 8pt; font-size: 10.5pt; }
	.rrh-card__photo { aspect-ratio: auto; background: none; text-align: center; }
	.rrh-card__img { width: auto; max-width: 100%; height: auto; max-height: 1.1in; margin: 3pt auto !important; }
	.rrh-card__body { padding: 6pt 10pt 0; }
	.rrh-card__body h3 { font-size: 12.5pt; margin: 6pt 0 3pt; }
	.rrh-card__body li { margin: 0 0 2pt; }
	.rrh-card__body ul, .rrh-card__body ol, .rrh-tip ul { margin-top: 0; margin-bottom: 4pt; }
	.rrh-card__body p { margin: 0 0 6pt; }
	/* Printouts keep what you cook from: ingredients, steps, make-ahead box. The "why / buying tip" paragraphs stay on screen. */
	.rrh-card__body > p { display: none; }
	.rrh-card__body ul.rrh-ingredients { columns: 2; column-gap: 0.3in; }
	.rrh-tip { margin: 6pt 10pt 10pt; padding: 6pt 10pt; background: none; border: 1px solid #999; border-left: 4px solid #000; font-size: 10.5pt; }
	.rrh-card__body .rrh-tip { margin: 6pt 0; }
	.rrh-tip__title { color: #000; font-size: 12pt; }
	.rrh-gameplan { background: none; border: 1px solid #999; font-size: 11pt; }
	li, .rrh-meta, .rrh-card__head { break-inside: avoid; page-break-inside: avoid; }
	h2, h3 { break-after: avoid; page-break-after: avoid; }
	a { color: #000 !important; text-decoration: none !important; }

	.rrh-print-qr { display: flex; gap: 0.25in; margin: 2pt 10pt 6pt; padding-top: 6pt; border-top: 1px dashed #999; break-inside: avoid; page-break-inside: avoid; }
	.rrh-qr { flex: 1 1 0; display: flex; align-items: center; gap: 9pt; min-width: 0; }
	.rrh-qr__code { flex: 0 0 0.7in; width: 0.7in; height: 0.7in; }
	.rrh-qr__code svg { display: block; width: 100%; height: 100%; }
	.rrh-qr__text { font-size: 9.5pt; line-height: 1.25; }
	.rrh-qr__text strong { display: block; font-size: 10.5pt; margin-bottom: 1pt; }
	.rrh-qr__text span { display: block; }
	.rrh-qr__url { margin-top: 2pt; font-size: 8.5pt; color: #444; overflow-wrap: anywhere; }

	/* Mode 2 (and Ctrl+P): every recipe on its own sheet */
	body:not(.printing-single-recipe) .single-recipe-block {
		page-break-after: always;
		break-after: page;
	}
	body:not(.printing-single-recipe) .single-recipe-block:last-of-type {
		page-break-after: auto;
		break-after: auto;
	}

	/* "Print These Recipes" button: title, game plan and recipes only, no intro text.
	   JS adds .rrh-print-keep to any wrapper between .entry-content and the recipes. */
	body.rrh-printing-all .entry-content > *:not(.single-recipe-block):not(.rrh-gameplan):not(.rrh-print-keep),
	body.rrh-printing-all .post-thumbnail,
	body.rrh-printing-all .entry-meta,
	body.rrh-printing-all .entry-taxonomies {
		display: none !important;
	}
	body.rrh-printing-all .rrh-gameplan { page-break-after: always; break-after: page; }

	/* Mode 1: only the chosen recipe */
	body.printing-single-recipe .entry-header,
	body.printing-single-recipe .entry-hero,
	body.printing-single-recipe .post-thumbnail,
	body.printing-single-recipe .entry-footer,
	body.printing-single-recipe .entry-content > *:not(.active-print-target):not(.rrh-print-keep),
	body.printing-single-recipe .single-recipe-block:not(.active-print-target) {
		display: none !important;
	}
	body.printing-single-recipe .active-print-target { margin: 0; page-break-after: auto; break-after: auto; }
}
