/*
Theme Name: MTC Smokehouse
Theme URI: https://www.manthatscooking.com/
Description: Smokehouse theme for Man That's Cooking. Charcoal and ember with light and dark modes, recipe heroes with the stats strip, and a restyle of the MTC Recipe plugin's card. The plugin owns the recipe card markup, JSON-LD and social tags; this theme only styles them.
Author: Man That's Cooking
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: mtc-smokehouse
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #f5efe5;
	--band: #ece3d4;
	--surface: #fffaf2;
	--ink: #1d1a17;
	--ink2: #3f3730;
	--muted: #6b5e51;
	--line: #ddd0bd;
	--line2: #c9b9a2;
	--ember: #c2410c;
	--ember-hover: #a8380a;
	--on-ember: #ffffff;
	--link: #b03a0a;
	--tag: #9a3412;
	--photo: #d9c7ad;
	--stripe: rgba(29, 26, 23, 0.05);
	--chip: #fffaf2;
	--panel: #fffaf2;
	--panel-ink: #1d1a17;
	--panel-muted: #5c5046;
	--panel-line: #e6dccb;
	--chip-bg: #fbe3d3;
	--chip-ink: #9a3412;
	--shadow: 0 12px 32px rgba(29, 26, 23, 0.16);

	/* Header and footer stay charcoal in both modes. */
	--char: #141210;
	--char-2: #1f1b18;
	--char-line: #4a4038;
	--char-ink: #f3ebdd;
	--char-muted: #b9ab98;
	--fire: #e8632b;

	--display: "Oswald", "Arial Narrow", Impact, sans-serif;
	--body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #1a1714;
		--band: #221e1a;
		--surface: #221e1a;
		--ink: #f3ebdd;
		--ink2: #d6cabb;
		--muted: #b9ab98;
		--line: #3a322b;
		--line2: #5a4a3e;
		--ember: #e8632b;
		--ember-hover: #f07a46;
		--on-ember: #1a1714;
		--link: #f08a4b;
		--tag: #e8b48f;
		--photo: #3a2e25;
		--stripe: rgba(255, 255, 255, 0.035);
		--chip: #2e2823;
		--panel: #f3ebdd;
		--panel-ink: #1a1714;
		--panel-muted: #5c5046;
		--panel-line: #d8ccb8;
		--chip-bg: #3a2a20;
		--chip-ink: #f5b48c;
		--shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #1a1714;
	--band: #221e1a;
	--surface: #221e1a;
	--ink: #f3ebdd;
	--ink2: #d6cabb;
	--muted: #b9ab98;
	--line: #3a322b;
	--line2: #5a4a3e;
	--ember: #e8632b;
	--ember-hover: #f07a46;
	--on-ember: #1a1714;
	--link: #f08a4b;
	--tag: #e8b48f;
	--photo: #3a2e25;
	--stripe: rgba(255, 255, 255, 0.035);
	--chip: #2e2823;
	--panel: #f3ebdd;
	--panel-ink: #1a1714;
	--panel-muted: #5c5046;
	--panel-line: #d8ccb8;
	--chip-bg: #3a2a20;
	--chip-ink: #f5b48c;
	--shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
a { color: var(--link); }
a:hover { color: var(--ember-hover); }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 2px; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.15; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.sh-skip {
	position: absolute; left: 16px; top: -80px; z-index: 100;
	padding: 12px 16px;
	background: var(--fire); color: var(--char);
	font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em;
}
.sh-skip:focus { top: 12px; color: var(--char); }

.sh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Shared bits */
.sh-kicker {
	margin: 0;
	font-family: var(--display); font-weight: 500; font-size: 14px;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--tag);
}
.sh-tags {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 0;
	font-family: var(--display); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
}
.sh-tag {
	display: inline-flex; align-items: center; min-height: 32px;
	padding: 4px 10px; border: 1px solid var(--line2);
	color: var(--tag); text-decoration: none;
}
a.sh-tag:hover { border-color: var(--tag); color: var(--tag); }
.sh-tag--hot { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
a.sh-tag--hot:hover { background: var(--ember-hover); border-color: var(--ember-hover); color: var(--on-ember); }
.sh-tags__date { color: var(--muted); }

.sh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.sh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 22px;
	border: 1px solid var(--line2); background: transparent; color: var(--ink);
	font-family: var(--display); font-weight: 500; font-size: 16px;
	letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
	cursor: pointer;
}
.sh-btn:hover { border-color: var(--ink); color: var(--ink); }
.sh-btn--hot { background: var(--ember); border-color: var(--ember); color: var(--on-ember); font-weight: 600; }
.sh-btn--hot:hover { background: var(--ember-hover); border-color: var(--ember-hover); color: var(--on-ember); }

.sh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sh-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	background: var(--chip); border: 1px solid var(--line2);
	color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none;
}
.sh-chip:hover, .sh-chip.is-current { border-color: var(--ember); color: var(--ink); box-shadow: inset 0 -3px 0 var(--ember); }

.sh-badge {
	position: absolute; left: 12px; bottom: 12px;
	padding: 4px 9px;
	background: var(--ember); color: var(--on-ember);
	font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ==========================================================================
   Header (charcoal in both modes)
   ========================================================================== */
.sh-header { background: var(--char); color: var(--char-ink); border-bottom: 3px solid var(--fire); position: relative; z-index: 30; }
.sh-header__in { min-height: 80px; display: flex; align-items: center; gap: 28px; }
.sh-brand { display: flex; align-items: center; gap: 12px; color: var(--char-ink); text-decoration: none; min-width: 0; }
.sh-brand:hover { color: var(--char-ink); }
.sh-brand__mark { color: var(--fire); display: flex; }
.sh-brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.sh-brand__name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.sh-brand__tag { margin-top: 5px; font-size: 13px; color: var(--char-muted); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

.sh-nav { margin-left: auto; }
.sh-nav__list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sh-nav__list > li > a, .sh-nav__drop {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
	font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--char-ink); text-decoration: none; cursor: pointer;
}
.sh-nav__list > li > a:hover, .sh-nav__drop:hover, .sh-nav__list > li > a[aria-current] { color: var(--fire); }
.sh-nav__list .current-menu-item > a { color: var(--fire); }

.sh-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sh-header-search .sh-search__input { width: 190px; border-color: var(--char-line); background: var(--char-2); color: var(--char-ink); }
.sh-header-search .sh-search__input::placeholder { color: var(--char-muted); }

.sh-iconbtn {
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--char-line); background: transparent; color: var(--char-ink);
	cursor: pointer; padding: 0;
}
.sh-iconbtn:hover { color: var(--fire); border-color: var(--fire); }

.sh-theme-toggle { display: none; }
.sh-js .sh-theme-toggle { display: flex; }
.sh-icon-sun { display: none; }
:root[data-theme="dark"] .sh-icon-sun { display: block; }
:root[data-theme="dark"] .sh-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .sh-icon-sun { display: block; }
	:root:not([data-theme="light"]) .sh-icon-moon { display: none; }
}

/* Popovers use <details>, so menus and search work without JavaScript. */
.sh-pop { position: relative; }
.sh-pop > summary { list-style: none; }
.sh-pop > summary::-webkit-details-marker { display: none; }
.sh-pop[open] > summary { color: var(--fire); border-color: var(--fire); }
.sh-pop[open] > summary svg { transition: transform 0.15s; }
.sh-pop--drop[open] > summary svg { transform: rotate(180deg); }
.sh-pop__panel {
	position: absolute; right: 0; top: calc(100% + 12px);
	width: 360px; padding: 14px;
	background: var(--char); border: 1px solid var(--char-line); border-top: 3px solid var(--fire);
	box-shadow: var(--shadow); color: var(--char-ink);
}
.sh-pop--drop .sh-pop__panel { left: 0; right: auto; width: 280px; }
.sh-drop-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sh-drop-list .sh-chip { width: 100%; background: transparent; border: 0; color: var(--char-ink); font-family: var(--body); }
.sh-drop-list .sh-chip:hover, .sh-drop-list .sh-chip.is-current { background: var(--char-2); color: var(--fire); box-shadow: none; }
.sh-pop--search, .sh-pop--menu { display: none; }

.sh-pop__panel .sh-search__input { border-color: var(--char-line); background: var(--char-2); color: var(--char-ink); }
.sh-menu__list { margin: 0 0 8px; padding: 0; list-style: none; }
.sh-menu__list a {
	display: flex; align-items: center; min-height: 48px; padding: 0 8px;
	font-family: var(--display); font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--char-ink); text-decoration: none;
}
.sh-menu__list a:hover { color: var(--fire); }
.sh-menu__label { margin: 14px 0 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--char-muted); }
.sh-pop__panel .sh-chips { gap: 8px; }
.sh-pop__panel .sh-chip { background: var(--char-2); border-color: var(--char-line); color: var(--char-ink); font-size: 15px; }
.sh-pop__panel .sh-chip:hover { border-color: var(--fire); color: var(--char-ink); }

/* Search form */
.sh-search { display: flex; align-items: stretch; }
.sh-search__input {
	flex: 1; min-width: 0; height: 44px; padding: 0 14px;
	border: 1px solid var(--line2); border-right: 0; background: var(--surface); color: var(--ink);
	font: inherit; font-size: 16px; border-radius: 0;
}
.sh-search__input:focus { outline: 2px solid var(--fire); outline-offset: -2px; }
.sh-search__btn {
	width: 48px; height: 44px; display: flex; align-items: center; justify-content: center;
	border: 0; background: var(--fire); color: var(--char); cursor: pointer; flex-shrink: 0;
}
.sh-search__btn:hover { background: #f07a46; }

/* ==========================================================================
   Home
   ========================================================================== */
.sh-hero { padding: 56px 0 64px; }
.sh-hero__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sh-hero__media, .sh-posthero__media {
	display: block; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
	background-color: var(--photo);
	background-image: repeating-linear-gradient(135deg, var(--stripe) 0 14px, transparent 14px 28px);
}
.sh-hero__media img, .sh-posthero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-hero__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sh-hero__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 60px; line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em; }
.sh-hero__title a { color: var(--ink); text-decoration: none; }
.sh-hero__title a:hover { color: var(--ember); }
.sh-hero__summary { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink2); }

.sh-strip {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
	margin: 0; background: var(--line);
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sh-strip__tile { background: var(--bg); padding: 12px 12px 12px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-strip__tile + .sh-strip__tile { padding-left: 12px; }
.sh-strip dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sh-strip dd { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.15; }

.sh-band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.sh-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.sh-band__col { display: flex; flex-direction: column; gap: 16px; }
.sh-band__col--wide { grid-column: 1 / -1; }
.sh-band__h { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tag); }

.sh-section { padding: 64px 0 24px; }
.sh-section__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-bottom: 28px; padding-bottom: 12px; border-bottom: 3px solid var(--ember);
}
.sh-section__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; text-transform: uppercase; letter-spacing: 0.02em; }
.sh-section__more { font-family: var(--display); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 10px 0; }

/* Recipe grid and cards */
.sh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sh-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.sh-card__media {
	position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
	background-color: var(--photo);
	background-image: repeating-linear-gradient(135deg, var(--stripe) 0 14px, transparent 14px 28px);
}
.sh-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sh-card:hover .sh-card__media img { transform: scale(1.03); }
.sh-card__noimg { display: block; width: 100%; height: 100%; }
.sh-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.sh-card__meta { margin: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sh-card__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.1; text-transform: uppercase; }
.sh-card__title a { color: var(--ink); text-decoration: none; }
.sh-card__title a:hover { color: var(--ember); }
.sh-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.sh-card { position: relative; }
.sh-card__summary { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink2); }
.sh-card__stat {
	margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line);
	font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}

/* Ad bands: widgets placed in the theme's widget areas */
.sh-adband { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0; min-width: 0; overflow: hidden; }
.sh-adband .sh-widget { max-width: 100%; }
.sh-adband .sh-widget__title { display: none; }

/* Pagination */
.navigation.pagination { margin-top: 40px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.navigation.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 48px; min-height: 48px; padding: 0 14px;
	border: 1px solid var(--line2); background: var(--surface); color: var(--ink);
	font-family: var(--display); font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.navigation.pagination a.page-numbers:hover { border-color: var(--ember); color: var(--ink); }
.navigation.pagination .page-numbers.current { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.navigation.pagination .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ==========================================================================
   Lists (categories, search, older pages)
   ========================================================================== */
.sh-listhead { padding: 48px 0 32px; border-bottom: 1px solid var(--line); background: var(--band); }
.sh-listhead .sh-wrap { display: flex; flex-direction: column; gap: 10px; }
.sh-listhead__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; text-transform: uppercase; }
.sh-listhead__desc { max-width: 760px; color: var(--ink2); }
.sh-listhead__desc p { margin: 0; }
.sh-listhead__count { margin: 0; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sh-listhead__search { max-width: 520px; margin-top: 8px; }

.sh-listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 64px; }
.sh-listing.has-rail { grid-template-columns: minmax(0, 1fr) 300px; }
.sh-listing.has-rail .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-rail { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.sh-rail .sh-widget__title {
	margin: 0 0 10px; padding-bottom: 8px; border-bottom: 3px solid var(--ember);
	font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase;
}
.sh-rail ul { margin: 0; padding: 0; list-style: none; }
.sh-rail li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sh-rail li a { text-decoration: none; }
.sh-rail img { display: block; }

.sh-none { display: flex; flex-direction: column; gap: 24px; }
.sh-none__msg { margin: 0; font-size: 20px; color: var(--ink2); }
.sh-none__search { max-width: 520px; }
.sh-none__h { font-size: 30px; margin-top: 16px; }

/* ==========================================================================
   Single recipe post
   ========================================================================== */
.sh-posthero { padding: 48px 0 40px; }
.sh-posthero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.sh-posthero__in.no-media { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.sh-posthero__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sh-posthero__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 0.98; text-transform: uppercase; }
.sh-posthero__intro { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink2); }

.sh-article { max-width: 832px; } /* 768px text column plus gutters */
.sh-article > .sh-adband { margin-bottom: 24px; }
.sh-entry { font-size: 18px; line-height: 1.7; color: var(--ink2); }
.sh-entry > :first-child { margin-top: 0; }
.sh-entry p, .sh-entry ul, .sh-entry ol, .sh-entry blockquote, .sh-entry figure, .sh-entry table { margin: 0 0 1.15em; }
.sh-entry h1, .sh-entry h2, .sh-entry h3, .sh-entry h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); }
.sh-entry h1 { font-size: 34px; margin: 1.3em 0 0.5em; }
.sh-entry h2 { font-size: 30px; margin: 1.4em 0 0.5em; }
.sh-entry h3 { font-size: 24px; margin: 1.3em 0 0.45em; }
.sh-entry h4 { font-size: 20px; margin: 1.2em 0 0.4em; }
.sh-entry b, .sh-entry strong { color: var(--ink); }
.sh-entry img { display: block; margin: 1.5em 0; }
.sh-entry .aligncenter { margin-left: auto; margin-right: auto; }
.sh-entry blockquote { padding: 14px 18px; border-left: 4px solid var(--ember); background: var(--band); color: var(--ink2); }
.sh-entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.sh-entry iframe { display: block; max-width: 100%; }
.sh-entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.sh-entry th, .sh-entry td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 1em; } }

.sh-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; }
.sh-postnav__link {
	display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
	background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.sh-postnav__link:hover { border-color: var(--ember); color: var(--ink); }
.sh-postnav__link--next { grid-column: 2; text-align: right; }
.sh-postnav__dir { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sh-postnav__title { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.15; text-transform: uppercase; }

.sh-related { padding-top: 56px; }

/* Comments */
.sh-comments { padding: 48px 0 64px; display: flex; flex-direction: column; gap: 16px; }
.sh-comments__title { margin: 0; padding-bottom: 8px; border-bottom: 3px solid var(--ember); font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.sh-comments__list, .sh-comments__list .children { list-style: none; margin: 0; padding: 0; }
.sh-comments__list .children { margin-left: 24px; padding-left: 16px; border-left: 2px solid var(--line); }
.sh-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sh-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sh-comments .comment-author .avatar { border-radius: 50%; }
.sh-comments .comment-author .says { display: none; }
.sh-comments .comment-metadata { font-size: 13px; }
.sh-comments .comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; min-height: 46px; padding: 10px 12px;
	border: 1px solid var(--line2); background: var(--surface); color: var(--ink);
	font: inherit; font-size: 16px; border-radius: 0;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 15px; color: var(--muted); }

/* ==========================================================================
   Recipe card (markup from mtc-recipe-plugin's templates/card.php).
   Selectors start with .sh-entry so they outrank the plugin's card.css.
   ========================================================================== */
.sh-entry .mtc-card {
	--mtc-accent: var(--ember);
	--mtc-accent-soft: var(--chip-bg);
	--mtc-line: var(--line);
	--mtc-muted: var(--muted);
	--mtc-surface: var(--band);
	--mtc-radius: 0;
	margin: 48px 0 8px;
	padding: 22px 0 0;
	border: 0;
	border-top: 3px solid var(--ember);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-size: 17px;
	scroll-margin-top: 16px;
}
.sh-entry .mtc-card h2, .sh-entry .mtc-card h3, .sh-entry .mtc-card h4 { font-family: var(--display); text-transform: uppercase; color: var(--ink); letter-spacing: 0.02em; }
.sh-entry .mtc-card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: start; }
.sh-entry .mtc-card__kicker { grid-column: 1; margin: 0; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.16em; color: var(--tag); }
.sh-entry .mtc-card__title { grid-column: 1; margin: 0; font-size: 34px; font-weight: 700; line-height: 1.05; }
.sh-entry .mtc-card__summary { grid-column: 1; margin: 4px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
/* On a post the hero already shows this summary; the card keeps it for print. */
@media screen { .single .sh-entry .mtc-card__summary { display: none; } }
.sh-entry .mtc-card__actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.sh-entry .mtc-card__actions a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
	border: 1px solid var(--line2); color: var(--ink); text-decoration: none;
	font-family: var(--display); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
}
.sh-entry .mtc-card__actions a:hover { border-color: var(--ink); }
.sh-entry .mtc-card__actions img { display: inline; margin: 0; }

.sh-entry .mtc-card__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-radius: 0; background: var(--line); border-color: var(--line); }
.sh-entry .mtc-card__stat { padding: 16px 18px; background: var(--band); }
.sh-entry .mtc-card__stat dt { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.sh-entry .mtc-card__stat dd { margin-top: 4px; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.15; }

.sh-entry .mtc-card__facts { gap: 8px 26px; margin-top: 18px; font-size: 16px; }
.sh-entry .mtc-card__facts dd { font-weight: 700; color: var(--ink); }

.sh-entry .mtc-card__body { gap: 36px; margin-top: 28px; }
.sh-entry .mtc-card__body h3 { margin: 0; padding-bottom: 8px; font-size: 24px; font-weight: 700; border-bottom: 3px solid var(--ember); }

/* Ingredients: a cream "butcher paper" panel, cream in dark mode too. */
.sh-entry .mtc-card__ingredients { padding: 20px 20px 10px; background: var(--panel); color: var(--panel-ink); color-scheme: light; }
.sh-entry .mtc-card__ingredients h3 { color: var(--panel-ink); border-bottom-color: var(--panel-ink); }
.sh-entry .mtc-card .mtc-card__ingredients h4 { margin: 18px 0 2px; color: #9a3412; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; }
.sh-entry .mtc-card .mtc-card__ingredients li { padding: 10px 0; border-bottom: 1px solid var(--panel-line); font-size: 17px; line-height: 1.4; }
.sh-entry .mtc-card__ingredients label { gap: 12px; align-items: flex-start; }
.sh-entry .mtc-card__check { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #c2410c; }
.sh-entry .mtc-card__check:checked + span, .sh-entry .mtc-card__optional { color: var(--panel-muted); }

/* Steps: numbered ember squares, sections as small caps headings. */
.sh-entry .mtc-card .mtc-card__steps h4 { margin: 22px 0 2px; color: var(--tag); font-size: 15px; font-weight: 600; letter-spacing: 0.16em; }
.sh-entry .mtc-card .mtc-card__steps li { margin: 0; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; color: var(--ink); }
.sh-entry .mtc-card .mtc-card__steps li::before {
	top: 14px; width: 34px; height: 34px; border-radius: 0;
	background: var(--ember); color: var(--on-ember);
	font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 34px;
}
.sh-entry .mtc-card__chips { gap: 6px; margin-top: 8px; }
.sh-entry .mtc-card__chip { padding: 2px 10px; border-radius: 0; background: var(--chip-bg); color: var(--chip-ink); font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }

.sh-entry .mtc-card__tips, .sh-entry .mtc-card__video, .sh-entry .mtc-card__share { margin-top: 32px; padding-top: 0; border-top: 0; }
.sh-entry .mtc-card__tips h3, .sh-entry .mtc-card__video h3 { margin: 0 0 14px; font-size: 24px; font-weight: 700; }
.sh-entry .mtc-card .mtc-card__tips li { padding: 12px 16px; border-radius: 0; border-left: 4px solid var(--ember); background: var(--band); color: var(--ink2); }
.sh-entry .mtc-card__tips strong { color: var(--tag); font-family: var(--display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sh-entry .mtc-card__video { scroll-margin-top: 16px; }
.sh-entry .mtc-card__embed { background: var(--photo); }
.sh-entry .mtc-card__embed iframe { margin: 0; }

.sh-entry .mtc-card__share { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.sh-entry .mtc-card__share h3 { margin: 0; font-size: 20px; font-weight: 600; }
.sh-entry .mtc-card .mtc-card__share-list { gap: 10px; }
.sh-entry .mtc-card .mtc-share a, .sh-entry .mtc-card .mtc-share button {
	min-height: 44px; padding: 0 18px; border-radius: 0;
	border-color: var(--line2); background: var(--surface); color: var(--ink);
	font-family: var(--body); font-size: 15px; font-weight: 600;
}
.sh-entry .mtc-card .mtc-share a:hover, .sh-entry .mtc-card .mtc-share button:hover { border-color: var(--ink); }
.sh-entry .mtc-card .mtc-share--pinterest a { border-color: #e60023; background: #e60023; color: #fff; }
.sh-entry .mtc-card .mtc-share--facebook a { border-color: #1877f2; background: #1877f2; color: #fff; }
.sh-entry .mtc-card .mtc-share img { display: inline; margin: 0; }

/* ==========================================================================
   Footer (charcoal in both modes)
   ========================================================================== */
.sh-footer { margin-top: 48px; background: var(--char); color: var(--char-ink); border-top: 3px solid var(--fire); }
.sh-footer a { color: var(--char-muted); text-decoration: none; }
.sh-footer a:hover { color: var(--fire); }
.sh-footer__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 0.8fr); gap: 40px; padding-top: 44px; padding-bottom: 32px; }
.sh-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.sh-footer__name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.sh-footer__tag { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--char-muted); }
.sh-footer__social { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.sh-footer__social a, .sh-footer__cats a, .sh-footer__links a { display: inline-block; padding: 6px 0; }
.sh-footer__h { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--char-ink); }
.sh-footer__cats ul { columns: 3; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.sh-footer__links ul { margin: 0; padding: 0; list-style: none; }
.sh-footer__base { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--char-line); font-size: 13px; color: var(--char-muted); }

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 1100px) {
	.sh-header-search { display: none; }
	.sh-pop--search { display: block; }
	.sh-hero__title { font-size: 50px; }
	.sh-posthero__title { font-size: 46px; }
	.sh-listing.has-rail { grid-template-columns: minmax(0, 1fr); }
	.sh-listing.has-rail .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.sh-nav, .sh-brand__tag { display: none; }
	.sh-tools { margin-left: auto; }
	.sh-pop--menu { display: block; }
	.sh-grid, .sh-listing.has-rail .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sh-footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sh-footer__cats { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 860px) {
	.sh-wrap { padding: 0 16px; }
	.sh-header__in { min-height: 64px; gap: 12px; }
	.sh-brand__mark svg { width: 26px; height: 26px; }
	.sh-brand__name { font-size: 20px; }
	.sh-tools { gap: 4px; }
	.sh-iconbtn { border-color: transparent; }
	.sh-pop__panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; max-height: calc(100vh - 86px); overflow-y: auto; }
	.admin-bar .sh-pop__panel { top: 116px; }

	.sh-hero { padding: 0 0 40px; }
	.sh-hero .sh-wrap { padding: 0; }
	.sh-hero__in, .sh-posthero__in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.sh-hero__text { padding: 0 16px; }
	.sh-hero__title { font-size: 40px; }
	.sh-hero__summary, .sh-posthero__intro { font-size: 18px; }
	.sh-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sh-strip__tile, .sh-strip__tile + .sh-strip__tile { padding: 12px; }
	.sh-band__in { grid-template-columns: minmax(0, 1fr); }
	.sh-section { padding-top: 48px; }
	.sh-section__title { font-size: 32px; }
	.sh-grid, .sh-listing.has-rail .sh-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.sh-listhead { padding: 32px 0 24px; }
	.sh-listhead__title { font-size: 38px; }

	.sh-posthero { padding: 0 0 32px; }
	.sh-posthero .sh-wrap { padding: 0; }
	.sh-posthero__text { padding: 0 16px; order: 2; }
	.sh-posthero__media { order: 1; }
	.sh-posthero__in.no-media .sh-posthero__text { padding-top: 28px; }
	.sh-posthero__title { font-size: 36px; line-height: 1.02; }
	.sh-entry { font-size: 17px; }

	.sh-entry .mtc-card__head { grid-template-columns: minmax(0, 1fr); }
	.sh-entry .mtc-card__actions { grid-column: 1; grid-row: auto; margin-top: 10px; }
	.sh-entry .mtc-card__title { font-size: 28px; }
	.sh-entry .mtc-card__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sh-entry .mtc-card__stat { padding: 12px 14px; }
	.sh-entry .mtc-card__stat dd { font-size: 20px; }
	.sh-entry .mtc-card__ingredients { margin: 0 -16px; padding: 18px 16px 8px; }
	.sh-entry .mtc-card .mtc-card__steps li { padding-left: 48px; font-size: 17px; }
	.sh-entry .mtc-card .mtc-share--pinterest, .sh-entry .mtc-card .mtc-share--facebook { flex: 1 1 calc(50% - 10px); }
	.sh-entry .mtc-card .mtc-share--pinterest a, .sh-entry .mtc-card .mtc-share--facebook a { width: 100%; justify-content: center; }

	.sh-postnav { grid-template-columns: minmax(0, 1fr); }
	.sh-postnav__link--next { grid-column: auto; text-align: left; }
	.sh-footer__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.sh-footer__cats { grid-row: auto; }
	.sh-footer__cats ul { columns: 2; }
}

@media (max-width: 420px) {
	.sh-header__in { gap: 8px; }
	.sh-brand { gap: 8px; }
	.sh-brand__mark svg { width: 22px; height: 22px; }
	.sh-brand__name { font-size: 17px; letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; }
	.sh-tools { gap: 0; }
	.sh-iconbtn { width: 42px; }
}

/* ==========================================================================
   Print (WP-Print has its own print page; this covers the browser's print)
   ========================================================================== */
@media print {
	.sh-header, .sh-footer, .sh-adband, .sh-postnav, .sh-related, .sh-comments, .sh-actions, .sh-skip { display: none !important; }
	body { background: #fff; color: #000; }
	.sh-posthero__media { display: none; }
	.sh-posthero__in { grid-template-columns: 1fr; }
	.sh-entry .mtc-card__ingredients { background: none; padding: 0; }
	.sh-entry .mtc-card .mtc-card__steps li::before { background: none; color: #000; border: 1px solid #000; }
	.sh-entry .mtc-card__stat { background: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sh-card__media img { transition: none; }
	.sh-card:hover .sh-card__media img { transform: none; }
}
