/*
Theme Name:   Grandma's Faves Kadence Child
Theme URI:    https://grandmasfaves.com/
Description:  Recipe-blog child theme for Kadence: centered recipe header with Jump to Recipe + star rating, soft mobile hero with Save to Email, featured image, collapsible table of contents, full-width share buttons, related recipes before the recipe card. Styled for WP Recipe Maker and Hubbub (Social Pug).
Author:       Grandma's Faves
Template:     kadence
Version:      1.5.0
Requires PHP: 7.4
License:      GNU General Public License v3.0 or later
Text Domain:  gf-child
*/

/* ==========================================================================
   Brand tokens – change these to re-color the whole theme
   ========================================================================== */
:root {
	--gf-accent: #73405f;        /* Grandma's Faves plum */
	--gf-accent-hover: #5a2f4a;
	--gf-soft: #f5e6ef;          /* light plum background */
	--gf-text: #1f1a1d;
	--gf-muted: #5b5258;
	--gf-ui-font: Arial, Helvetica, sans-serif;
}

/* ==========================================================================
   Site header (Kadence Header Builder) – top bar + menu
   ========================================================================== */
.site-top-header-wrap .site-header-row-container-inner { background: var(--gf-soft); }
.site-top-header-wrap a { color: var(--gf-text); }
.site-top-header-wrap .header-html em,
.site-top-header-wrap .header-html a { font-style: italic; text-decoration: underline; }
.header-social-wrap .social-button { background: var(--gf-accent) !important; color: #fff !important; border-radius: 3px; }
.header-social-wrap .social-button:hover { background: var(--gf-accent-hover) !important; }
.search-toggle-open-container .search-toggle-open { background: var(--gf-accent); color: #fff; border-radius: 3px; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-weight: 600; }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a { color: var(--gf-accent); }

/* ==========================================================================
   Recipe post header
   ========================================================================== */
.gf-recipe-post .gf-post-header {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-areas:
		"crumb  crumb"
		"title  title"
		"meta   meta"
		"jump   rating";
	align-items: center;
	justify-content: center;
	gap: 26px 30px;
	margin: 0 0 30px;
	padding: 18px 0 8px;
	text-align: center;
	font-family: var(--gf-ui-font);
}
.gf-post-header a { text-decoration: none; }
.gf-post-header a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.gf-post-header .gf-breadcrumbs { grid-area: crumb; font-size: 19px; line-height: 1.5; color: var(--gf-accent); overflow-wrap: anywhere; }
.gf-post-header .gf-breadcrumbs a { color: var(--gf-accent); }
.gf-post-header .gf-sep { margin: 0 .2em; }

.gf-recipe-post .gf-post-header h1.entry-title {
	grid-area: title;
	margin: 0;
	font-family: inherit;
	font-size: clamp(34px, 4vw, 60px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--gf-text);
	overflow-wrap: anywhere;
}

.gf-post-header .gf-meta-row { grid-area: meta; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; }
.gf-recipe-post .gf-post-header .entry-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0; }
.gf-post-header .entry-meta > span { display: inline-flex; align-items: baseline; gap: .35em; }
.gf-post-header .entry-meta,
.gf-post-header .gf-comments,
.gf-post-header .gf-rating-label {
	color: var(--gf-muted);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.6;
	text-transform: uppercase;
}
.gf-post-header .entry-meta a { color: inherit; }
.gf-post-header .gf-meta-label { color: var(--gf-accent); font-style: italic; }

.gf-post-header .gf-jump {
	grid-area: jump;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	padding: 15px 22px;
	background: var(--gf-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	transition: background .15s;
}
.gf-post-header .gf-jump > span { font-size: 28px; line-height: 1; }

.gf-post-header .gf-rating { grid-area: rating; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gf-post-header .gf-stars { position: relative; display: inline-block; flex-shrink: 0; color: var(--gf-accent); font-family: var(--gf-ui-font); font-size: 30px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.gf-post-header .gf-stars-full { position: absolute; inset: 0 auto 0 0; overflow: hidden; }

.gf-post-header .gf-save-email { display: none; }
.gf-post-header .gf-save-email[hidden] { display: none !important; }

.gf-post-header .gf-jump:hover,
.gf-post-header .gf-save-email:hover { background: var(--gf-accent-hover); color: #fff; }
.gf-post-header .gf-breadcrumbs a:hover,
.gf-post-header .entry-meta a:hover,
.gf-post-header .gf-comments:hover { color: var(--gf-accent-hover); text-decoration: underline; }

/* Hide WPRM's own jump/print snippet (header already has Jump to Recipe) */
.gf-hide-wprm-snippet .entry-content > .wprm-recipe-snippet { display: none !important; }

/* ==========================================================================
   Featured image + Table of contents
   ========================================================================== */
.gf-recipe-post .gf-intro { margin: 0 0 22px; }
.gf-recipe-post .gf-featured { margin: 0 0 24px; }
.gf-recipe-post .gf-featured img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; }

.gf-recipe-post .gf-toc { margin: 0; border-radius: 3px; background: var(--gf-soft); color: var(--gf-text); font-size: 16px; line-height: 1.6; }
.gf-recipe-post .gf-toc > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px; cursor: pointer; list-style: none;
	font-size: 18px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
}
.gf-recipe-post .gf-toc > summary::-webkit-details-marker { display: none; }
.gf-recipe-post .gf-toc-icon { position: relative; width: 18px; height: 14px; flex: 0 0 18px; }
.gf-recipe-post .gf-toc-icon,
.gf-recipe-post .gf-toc-icon::before,
.gf-recipe-post .gf-toc-icon::after { background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat; }
.gf-recipe-post .gf-toc-icon::before,
.gf-recipe-post .gf-toc-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; }
.gf-recipe-post .gf-toc-icon::before { top: 6px; }
.gf-recipe-post .gf-toc-icon::after  { top: 12px; }
.gf-recipe-post .gf-toc[open] .gf-toc-icon { color: var(--gf-accent); }
.gf-recipe-post .gf-toc nav { padding: 0 20px 20px; }
.gf-recipe-post .gf-toc ul { margin: 0; padding: 0; list-style: none; }
.gf-recipe-post .gf-toc li { display: flex; align-items: baseline; margin: 0 0 8px; font-weight: 700; line-height: 1.5; }
.gf-recipe-post .gf-toc li:last-child { margin-bottom: 0; }
.gf-recipe-post .gf-toc li::before { content: ""; flex: 0 0 9px; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--gf-accent); }
.gf-recipe-post .gf-toc a { color: var(--gf-text); text-decoration: none; box-shadow: inset 0 -2px 0 var(--gf-accent); }
.gf-recipe-post .gf-toc a:hover { color: var(--gf-accent); }
.gf-recipe-post .entry-content h2[id] { scroll-margin-top: 90px; }
.gf-recipe-post .wprm-recipe-container { scroll-margin-top: 90px; }

/* ==========================================================================
   Content typography
   ========================================================================== */
.gf-recipe-post .entry-content h2 { color: var(--gf-text); }
.gf-recipe-post .entry-content h2::after { content: ""; display: block; width: 60px; height: 3px; margin-top: 10px; background: var(--gf-accent); }
.gf-recipe-post .entry-content a:not([class]) { color: var(--gf-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gf-recipe-post .entry-content ul:not([class]) li::marker,
.gf-recipe-post .entry-content ol:not([class]) li::marker { color: var(--gf-accent); font-weight: 700; }

/* ==========================================================================
   Hubbub (Social Pug) – "Share it / Pin it to save it!" content buttons
   ========================================================================== */
.gf-recipe-post #dpsp-content-top,
.gf-recipe-post #dpsp-content-bottom { margin: 0 0 22px !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-networks-btns-wrapper {
	display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
	width: 100% !important; margin: 0 !important; padding: 0 !important; list-style: none;
}
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-networks-btns-wrapper::after { display: none !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-networks-btns-wrapper > li { float: none !important; width: 100% !important; margin: 0 !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-btn {
	display: flex !important; align-items: stretch !important;
	width: 100% !important; height: auto !important; min-height: 56px !important; max-height: none !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: var(--gf-accent) !important; color: #fff !important; font-family: var(--gf-ui-font);
}
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-btn:hover { background: var(--gf-accent-hover) !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-icon {
	position: static !important; display: flex !important; align-items: center; justify-content: center;
	flex: 0 0 52px; width: 52px !important; height: auto !important; border: 0 !important;
	background: rgba(255, 255, 255, .08) !important; transform: none !important;
}
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-icon-inner { position: static !important; transform: none !important; width: auto !important; height: auto !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-icon svg { width: 20px; height: 20px; fill: #fff; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-label {
	display: flex !important; align-items: center; flex: 1; height: auto !important;
	padding: 12px 16px !important; color: #fff !important; font-size: 17px !important; font-weight: 700;
	line-height: 1.3 !important; white-space: normal; opacity: 1 !important; transform: none !important;
}

/* Small "share text" Hubbub prints above the buttons – the buttons already say it */
.gf-recipe-post .entry-content > .dpsp-share-text { display: none; }
.gf-recipe-post #dpsp-content-top .dpsp-total-share-wrapper { display: none !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) { min-height: 0 !important; }

/* Hubbub "Save This" email form */
.gf-recipe-post .dpsp-email-save-this-tool { background: var(--gf-soft) !important; color: var(--gf-text) !important; scroll-margin-top: 100px; }
.gf-recipe-post .dpsp-email-save-this-tool .hubbub-save-this-heading { color: var(--gf-text) !important; }
.gf-recipe-post .dpsp-email-save-this-tool .hubbub-save-this-message { color: var(--gf-muted) !important; }
.gf-recipe-post .dpsp-email-save-this-tool input[type="email"] { background: #fff !important; border-color: var(--gf-accent) !important; color: var(--gf-text) !important; }
.gf-recipe-post .dpsp-email-save-this-tool [type="submit"] { background: var(--gf-accent) !important; color: #fff !important; }
.gf-recipe-post .dpsp-email-save-this-tool [type="submit"]:hover { background: var(--gf-accent-hover) !important; }

/* Floating sidebar share bar */
#dpsp-floating-sidebar .dpsp-network-btn { background: var(--gf-accent) !important; border-color: var(--gf-accent) !important; }
#dpsp-floating-sidebar .dpsp-network-btn:hover { background: var(--gf-accent-hover) !important; }

/* ==========================================================================
   Related recipes (before the recipe card)
   ========================================================================== */
.gf-recipe-post .gf-related { clear: both; margin: 32px 0; }
.gf-recipe-post .entry-content .gf-related-heading { margin: 0 0 18px; color: var(--gf-text); font-family: var(--gf-ui-font); font-size: 20px; font-weight: 700; }
.gf-recipe-post .entry-content .gf-related-heading::after { display: none; }
.gf-recipe-post .entry-content .gf-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.gf-recipe-post .entry-content .gf-related-card { min-width: 0; margin: 0; padding: 0; text-align: center; }
.gf-recipe-post .gf-related-card::marker { content: ""; }
.gf-recipe-post .gf-related-link { display: block; color: var(--gf-text); text-decoration: none; }
.gf-recipe-post .gf-related-link img { display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; margin: 0 auto 6px; }
.gf-recipe-post .gf-related-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--gf-ui-font); font-size: 17px; font-weight: 700; line-height: 1.3; }
.gf-recipe-post .gf-related-title > span { text-decoration: underline; text-decoration-color: var(--gf-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gf-recipe-post .gf-related-link:hover { color: var(--gf-accent); }

/* ==========================================================================
   WP Recipe Maker card accents (works with any WPRM template)
   ========================================================================== */
.gf-recipe-post .wprm-recipe-container .wprm-recipe { border-color: var(--gf-accent) !important; }
.gf-recipe-post .wprm-recipe-container .wprm-recipe-name { color: var(--gf-text); }
.gf-recipe-post .wprm-recipe-container .wprm-recipe-header { color: var(--gf-accent) !important; }
.gf-recipe-post .wprm-recipe-container .wprm-recipe-link.wprm-recipe-print,
.gf-recipe-post .wprm-recipe-container .wprm-recipe-link.wprm-recipe-pin,
.gf-recipe-post .wprm-recipe-container .wprm-recipe-link.wprm-recipe-jump-to-comments,
.gf-recipe-post .wprm-recipe-container .wprm-recipe-link.wprm-block-text-normal.wprm-recipe-link-wide-button {
	background: var(--gf-accent) !important; border-color: var(--gf-accent) !important; color: #fff !important;
}
.gf-recipe-post .wprm-recipe-container .wprm-recipe-link:hover { background: var(--gf-accent-hover) !important; }
.gf-recipe-post .wprm-recipe-container .wprm-rating-star svg polygon,
.gf-recipe-post .wprm-recipe-container .wprm-rating-star svg path { stroke: var(--gf-accent) !important; }
.gf-recipe-post .wprm-recipe-container .wprm-rating-star-full svg polygon,
.gf-recipe-post .wprm-recipe-container .wprm-rating-star-full svg path { fill: var(--gf-accent) !important; }
.gf-recipe-post .wprm-recipe-ingredients li::marker,
.gf-recipe-post .wprm-recipe-instructions li::marker { color: var(--gf-accent); }
.gf-recipe-post .wprm-recipe-ingredient .wprm-checkbox-container input:checked + label::before { background: var(--gf-accent); border-color: var(--gf-accent); }

/* ==========================================================================
   Tasty Recipes card accents
   ========================================================================== */
.gf-recipe-post .tasty-recipes-jump-target { scroll-margin-top: 90px; }
.gf-recipe-post .tasty-recipes { border-color: var(--gf-accent) !important; }
.gf-recipe-post .tasty-recipes h2,
.gf-recipe-post .tasty-recipes h3 { color: var(--gf-text); }
.gf-recipe-post .tasty-recipes h2::after,
.gf-recipe-post .tasty-recipes h3::after { display: none; }
.gf-recipe-post .tasty-recipes .tasty-recipes-ingredients-header h3,
.gf-recipe-post .tasty-recipes .tasty-recipes-instructions-header h3,
.gf-recipe-post .tasty-recipes .tasty-recipes-notes h3,
.gf-recipe-post .tasty-recipes .tasty-recipes-nutrifox h3 { color: var(--gf-accent); text-transform: uppercase; letter-spacing: 1px; }
.gf-recipe-post .tasty-recipes .tasty-recipes-button-wrap a,
.gf-recipe-post .tasty-recipes a.button,
.gf-recipe-post .tasty-recipes .tasty-recipes-scale-button-active { background: var(--gf-accent) !important; border-color: var(--gf-accent) !important; color: #fff !important; }
.gf-recipe-post .tasty-recipes .tasty-recipes-button-wrap a:hover { background: var(--gf-accent-hover) !important; }
.gf-recipe-post .tasty-recipes .tasty-recipes-rating-solid,
.gf-recipe-post .tasty-recipes .tasty-recipes-rating-outline,
.gf-recipe-post .tasty-recipes-ratings-buttons i { color: var(--gf-accent) !important; }
.gf-recipe-post .tasty-recipes li::marker { color: var(--gf-accent); }

/* ==========================================================================
   Sidebar – "Our Latest" cards ([gf_latest] shortcode)
   ========================================================================== */
.gf-latest { display: grid; gap: 16px; }
.gf-latest-title { margin: 0; text-align: center; font-family: var(--gf-ui-font); font-size: 26px; font-weight: 700; color: var(--gf-text); }
.gf-latest-card { display: block; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); color: var(--gf-text); text-decoration: none; text-align: center; transition: box-shadow .15s; }
.gf-latest-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.gf-latest-card span { display: block; padding: 12px 14px; font-size: 18px; line-height: 1.35; }
.gf-latest-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .14); color: var(--gf-accent); }

/* Author box (Kadence "Show Author Box") */
.gf-recipe-post .entry-author { background: var(--gf-soft); padding: 24px; border: 0; }
.gf-recipe-post .entry-author-name a,
.gf-recipe-post .entry-author-profile a { color: var(--gf-accent); }

/* Comment submit button */
.gf-recipe-post .comment-form .submit { background: var(--gf-accent); }
.gf-recipe-post .comment-form .submit:hover { background: var(--gf-accent-hover); }

/* ==========================================================================
   Mobile  (≤ 767px)
   ========================================================================== */
@media (max-width: 767px) {
	.gf-recipe-post .gf-post-header {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"crumb  crumb"
			"title  title"
			"save   save"
			"rating comments"
			"meta   meta";
		justify-content: stretch;
		gap: 11px 8px;
		/* full-bleed soft hero */
		margin: 0 calc(50% - 50vw) 16px;
		padding: 20px 24px 15px;
		background: var(--gf-soft);
		text-align: left;
	}
	.gf-post-header .gf-breadcrumbs { font-size: 14px; line-height: 1.45; color: var(--gf-text); }
	.gf-recipe-post .gf-post-header h1.entry-title { font-size: clamp(24px, 6.7vw, 30px); line-height: 1.2; }

	.gf-post-header .gf-save-email {
		grid-area: save; display: flex; align-items: center; justify-content: center; gap: 10px;
		min-height: 46px; padding: 10px 12px; background: var(--gf-accent); color: #fff;
		font-size: 14px; font-weight: 700; text-transform: uppercase;
	}
	.gf-post-header .gf-jump { display: none; }

	.gf-post-header .gf-meta-row { display: contents; }
	.gf-recipe-post .gf-post-header .entry-meta {
		grid-area: meta; flex-wrap: nowrap; justify-content: center; gap: clamp(6px, 2vw, 14px);
		color: var(--gf-text); font-size: clamp(10px, 2.9vw, 12px); letter-spacing: 0; text-transform: none; white-space: nowrap;
	}
	.gf-post-header .entry-meta > span { gap: .25em; }
	.gf-post-header .gf-comments { grid-area: comments; justify-self: end; align-self: center; color: var(--gf-text); font-size: clamp(9px, 2.6vw, 12px); letter-spacing: .2px; text-transform: none; white-space: nowrap; }

	.gf-post-header .gf-rating { flex-wrap: nowrap; gap: 5px; min-width: 0; white-space: nowrap; }
	.gf-post-header .gf-stars { font-size: clamp(14px, 3.9vw, 19px); letter-spacing: 0; }
	.gf-post-header .gf-rating-label { color: var(--gf-text); font-size: clamp(9px, 2.6vw, 11px); letter-spacing: .2px; }

	body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-networks-btns-wrapper { grid-template-columns: 1fr; }
	body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-btn { min-height: 60px !important; }

	.gf-recipe-post .gf-related { margin: 26px 0; }
	.gf-recipe-post .entry-content .gf-related-heading { font-size: 18px; margin-bottom: 14px; }
	.gf-recipe-post .gf-related-title { font-size: 14px; }
}

/* Optional: hide featured image + TOC on phones (exactly like the reference layout).
   Uncomment to enable.
@media (max-width: 767px) { .gf-recipe-post .gf-intro { display: none; } }
*/

/* Header without rating (jump button only) */
.gf-recipe-post .gf-post-header.gf-no-rating { grid-template-areas: "crumb crumb" "title title" "meta meta" "jump jump"; }
.gf-recipe-post .gf-post-header.gf-no-rating .gf-jump { justify-self: center; }

/* Remove Kadence's dot separators between meta items */
.gf-post-header .entry-meta > span::after,
.gf-post-header .entry-meta > span::before { display: none !important; content: none !important; }

/* Hubbub: left-aligned label, icon centred in its own block */
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-btn { text-align: left !important; justify-content: flex-start !important; overflow: hidden; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-icon { min-height: 56px; left: auto !important; top: auto !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-label { justify-content: flex-start; text-align: left !important; padding-left: 16px !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-icon-inner svg { display: block; width: 20px !important; height: 20px !important; fill: #fff !important; }
/* Hubbub reserves 70px on the right for the share counter – we hide the counter, so drop the space */
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) { padding: 0 !important; width: 100% !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-count { display: none !important; }
body.gf-recipe-post :is(#dpsp-content-top, #dpsp-content-bottom) .dpsp-network-icon { align-self: stretch !important; max-height: none !important; min-height: 60px !important; }

/* "(updated …)" date – shown on mobile only, like the reference layout */
.gf-post-header .gf-updated { display: none !important; }
@media (max-width: 767px) { .gf-post-header .gf-updated { display: inline-flex !important; } }

/* ==========================================================================
   Red "Pin it" reminder boxes
   ========================================================================== */
.gf-recipe-post { --gf-pin: #ce2327; --gf-pin-hover: #991418; }
.gf-recipe-post .gf-pinbox { clear: both; margin: 28px 0; padding: 26px 24px 22px; background: var(--gf-pin); color: #fff; text-align: center; border-radius: 4px; }
.gf-recipe-post .entry-content .gf-pinbox-title { margin: 0 0 6px; color: #fff; font-family: var(--gf-ui-font); font-size: 38px; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: .5px; }
.gf-recipe-post .entry-content .gf-pinbox-text { margin: 0 0 18px; color: #fff; font-family: var(--gf-ui-font); font-size: 15px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .5px; }
.gf-recipe-post .entry-content .gf-pinbox-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	box-sizing: border-box; width: 100%; padding: 13px 20px; border-radius: 4px; background: #fff; color: var(--gf-pin);
	font-family: var(--gf-ui-font); font-size: 18px; font-weight: 800; text-transform: uppercase; text-decoration: none; box-shadow: none;
	transition: background-color .2s, color .2s;
}
.gf-recipe-post .gf-pinbox-btn svg { width: 22px; height: 22px; fill: currentColor; }
.gf-recipe-post .entry-content .gf-pinbox-btn:hover { background: var(--gf-pin-hover); color: #fff; }
.gf-recipe-post .gf-pinbox-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
	.gf-recipe-post .entry-content .gf-pinbox-title { font-size: 30px; }
	.gf-recipe-post .entry-content .gf-pinbox-text { font-size: 13px; }
}
.gf-recipe-post .gf-pinbox { box-sizing: border-box; }

/* PIN button is now a <button>: reset theme button styles, white → red on hover */
.gf-recipe-post .gf-pinbox .gf-pinbox-btn {
	display: flex !important; align-items: center; justify-content: center; gap: 8px;
	box-sizing: border-box; width: 100%; margin: 0; padding: 13px 20px !important;
	border: 2px solid #fff !important; border-radius: 4px !important;
	background: #fff !important; color: var(--gf-pin) !important; box-shadow: none !important;
	font-family: var(--gf-ui-font); font-size: 18px !important; font-weight: 800; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .5px; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.gf-recipe-post .gf-pinbox .gf-pinbox-btn svg { width: 22px; height: 22px; fill: currentColor; transition: fill .2s; }
.gf-recipe-post .gf-pinbox .gf-pinbox-btn:hover,
.gf-recipe-post .gf-pinbox .gf-pinbox-btn:focus-visible { background: var(--gf-pin-hover) !important; color: #fff !important; border-color: #fff !important; }

/* ==========================================================================
   "✦ Want To Save This Recipe?" box (theme fallback for Hubbub Save This)
   ========================================================================== */
.gf-recipe-post .gf-savebox { clear: both; margin: 30px 0; padding: 34px 32px; background: var(--gf-soft); color: var(--gf-text); text-align: center; scroll-margin-top: 100px; }
.gf-recipe-post .entry-content .gf-savebox-title { margin: 0 0 8px; color: var(--gf-text); font-family: var(--gf-ui-font); font-size: 28px; font-weight: 800; line-height: 1.2; }
.gf-recipe-post .entry-content .gf-savebox-text { margin: 0 0 18px; color: var(--gf-muted); font-size: 17px; line-height: 1.5; }
.gf-recipe-post .gf-savebox-form { display: grid; gap: 12px; margin: 0; }
.gf-recipe-post .gf-savebox-form .gf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.gf-recipe-post .gf-savebox-form input[type="email"] {
	box-sizing: border-box; width: 100%; padding: 16px 18px; border: 2px solid var(--gf-accent); border-radius: 0;
	background: #fff; color: var(--gf-text); font-size: 18px; text-align: center;
}
.gf-recipe-post .gf-savebox-form input[type="email"]:focus { outline: 2px solid var(--gf-accent); outline-offset: 2px; }
.gf-recipe-post .gf-savebox-form button[type="submit"] {
	box-sizing: border-box; width: 100%; padding: 18px 10px; border: 0; border-radius: 0;
	background: var(--gf-accent); color: #fff; font-family: var(--gf-ui-font);
	font-size: 24px; font-weight: 900; line-height: 1.2; letter-spacing: .8px; text-transform: uppercase; cursor: pointer;
}
.gf-recipe-post .gf-savebox-form button[type="submit"]:hover { background: var(--gf-accent-hover); }
.gf-recipe-post .gf-savebox-form button[disabled] { opacity: .7; cursor: wait; }
.gf-recipe-post .entry-content .gf-savebox-msg { margin: 0; min-height: 1em; font-size: 15px; font-weight: 700; }
.gf-recipe-post .gf-savebox-msg.is-ok { color: #1d7a3a; }
.gf-recipe-post .gf-savebox-msg.is-error { color: #b82105; }
@media (max-width: 600px) {
	.gf-recipe-post .gf-savebox { padding: 28px 20px; }
	.gf-recipe-post .entry-content .gf-savebox-title { font-size: 23px; }
	.gf-recipe-post .gf-savebox-form button[type="submit"] { font-size: 19px; padding: 15px 10px; }
}

/* Hubbub "Save This" heading/button sizing to match the theme box */
.gf-recipe-post .dpsp-email-save-this-tool { padding: 34px 32px !important; text-align: center; }
.gf-recipe-post .dpsp-email-save-this-tool .hubbub-save-this-heading { font-size: 28px !important; font-weight: 800 !important; }
.gf-recipe-post .dpsp-email-save-this-tool [type="submit"] { width: 100% !important; padding: 18px 0 !important; font-size: 24px !important; font-weight: 900 !important; text-transform: uppercase; border-radius: 0 !important; }
