/* =====================================================================
   HP Recipe Card — House of Yumm style
   All colors are variables: edit the block below to re-theme everything.
   ===================================================================== */
.hprc-card {
	--hprc-navy:   #1e3355;
	--hprc-gold:   #c99b3d;
	--hprc-wheat:  #ddc88e;
	--hprc-cream:  #f9f5ef;
	--hprc-border: #e4dcc9;
	--hprc-text:   #1e3355;
	--hprc-white:  #ffffff;

	max-width: 100%;
	margin: 2.2em 0;
	background: var(--hprc-white);
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	overflow: hidden;
	color: var(--hprc-navy);
	font-size: 17px;
	line-height: 1.6;
	box-sizing: border-box;
}
.hprc-card *,
.hprc-card *::before,
.hprc-card *::after { box-sizing: border-box; }

/* Larger, readable body text (colour is inherited from the card palette/theme). */
.hprc-card .hprc-ing-text,
.hprc-card .hprc-step-text,
.hprc-card .hprc-step-text p,
.hprc-card .hprc-note {
	font-size: 18px;
	line-height: 1.65;
}
.hprc-card .hprc-step-title { display: block; margin-bottom: 3px; font-weight: 800; }

/* Dark surfaces (navy top bar + email box) must keep light text even when the
   theme sets a dark content colour. */
.hprc-card .hprc-brand,
.hprc-card .hprc-email-copy h3,
.hprc-card .hprc-email-form label { color: #fff !important; }
.hprc-card .hprc-email-copy p { color: rgba( 255, 255, 255, .9 ) !important; }

/* ---------- Top bar ---------- */
.hprc-topbar {
	background: var(--hprc-navy);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 26px;
}
.hprc-brand {
	color: var(--hprc-white);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 22px;
}
.hprc-actions { display: flex; gap: 8px; }
.hprc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--hprc-gold);
	color: var(--hprc-navy);
	border: none;
	padding: 10px 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 14px;
	cursor: pointer;
	transition: filter .15s ease;
}
.hprc-btn:hover { filter: brightness(1.06); }
.hprc-btn.is-saved { background: var(--hprc-navy); color: var(--hprc-white); box-shadow: inset 0 0 0 2px var(--hprc-gold); }
.hprc-ico { display: inline-flex; }
.hprc-ico svg { width: 16px; height: 16px; display: block; }

/* ---------- Intro ---------- */
.hprc-intro {
	background: var(--hprc-wheat);
	display: flex;
	gap: 34px;
	padding: 34px 40px;
}
.hprc-intro-text { flex: 1 1 auto; min-width: 0; }
.hprc-intro-img {
	flex: 0 0 320px;
	max-width: 320px;
}
.hprc-intro-img img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}
.hprc-title {
	margin: 0 0 14px;
	color: var(--hprc-navy);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 34px;
	line-height: 1.12;
	letter-spacing: .5px;
}

/* ---------- Stars / rating ---------- */
.hprc-rating-line { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hprc-stars {
	position: relative;
	display: inline-block;
	font-size: 20px;
	line-height: 1;
	white-space: nowrap;
}
.hprc-stars-base { color: rgba(33,57,91,.22); }
.hprc-stars-fill {
	position: absolute;
	top: 0; left: 0;
	overflow: hidden;
	color: var(--hprc-gold);
	white-space: nowrap;
}
.hprc-stars-hit { position: absolute; inset: 0; display: flex; }
.hprc-star-hit {
	flex: 1 1 20%;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}
.hprc-rating-text { font-size: 15px; color: var(--hprc-navy); }
.hprc-rating-num { font-weight: 700; }

/* ---------- Meta ---------- */
.hprc-meta { display: flex; flex-wrap: wrap; gap: 26px 40px; margin-bottom: 24px; }
.hprc-meta-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 90px; }
.hprc-meta-item .hprc-ico svg { width: 22px; height: 22px; color: var(--hprc-navy); margin-bottom: 2px; }
.hprc-meta-label { font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .6px; }
.hprc-meta-val { font-size: 16px; }
.hprc-meta-val a { color: var(--hprc-navy); text-decoration: underline; text-decoration-color: var(--hprc-gold); text-underline-offset: 3px; }
.hprc-serv-num { text-decoration: underline; text-decoration-color: var(--hprc-gold); text-underline-offset: 3px; }

.hprc-summary { color: var(--hprc-navy); font-size: 17px; }
.hprc-summary p { margin: 0 0 .8em; }

/* ---------- Email capture ---------- */
.hprc-email {
	background: var(--hprc-navy);
	color: var(--hprc-white);
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	align-items: center;
	justify-content: space-between;
	padding: 26px 34px;
	margin: 30px 40px;
	border-radius: 2px;
}
.hprc-email-copy { flex: 1 1 260px; }
.hprc-email-copy h3 { margin: 0 0 8px; color: var(--hprc-white); text-transform: uppercase; font-size: 24px; font-weight: 800; }
.hprc-email-copy p { margin: 0; color: rgba(255,255,255,.85); font-size: 15px; }
.hprc-email-form { flex: 1 1 320px; }
.hprc-email-form label { display: block; font-size: 12px; letter-spacing: 1px; margin-bottom: 6px; color: var(--hprc-white); }
.hprc-email-row { display: flex; gap: 0; }
.hprc-email-input {
	flex: 1 1 auto;
	border: none;
	padding: 13px 14px;
	font-size: 15px;
	color: var(--hprc-text);
}
.hprc-email-submit {
	background: var(--hprc-gold);
	color: var(--hprc-navy);
	border: none;
	padding: 0 22px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
}
.hprc-email-msg { display: block; margin-top: 8px; font-size: 13px; min-height: 1em; }

/* ---------- Sections ---------- */
.hprc-section { padding: 8px 40px 28px; }
.hprc-section + .hprc-section { border-top: 1px solid #ececec; padding-top: 28px; }
.hprc-section h3 {
	color: var(--hprc-navy);
	text-transform: uppercase;
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 18px;
	letter-spacing: .5px;
}
.hprc-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hprc-section-head h3 { margin: 0 0 18px; }

/* ---------- Scale buttons ---------- */
.hprc-scale { display: inline-flex; }
.hprc-scale-btn {
	background: var(--hprc-white);
	color: var(--hprc-navy);
	border: 2px solid var(--hprc-navy);
	border-right-width: 1px;
	border-left-width: 1px;
	padding: 9px 16px;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}
.hprc-scale-btn:first-child { border-left-width: 2px; }
.hprc-scale-btn:last-child  { border-right-width: 2px; }
.hprc-scale-btn.is-active { background: var(--hprc-navy); color: var(--hprc-white); }

/* ---------- Ingredients ---------- */
.hprc-ingredients { list-style: none; margin: 0; padding: 0; }
.hprc-ing-heading { font-weight: 800; color: var(--hprc-navy); margin: 16px 0 8px; text-transform: uppercase; font-size: 16px; letter-spacing: .5px; }
.hprc-ing { margin: 0 0 10px; }
.hprc-check-wrap { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.hprc-check { position: absolute; opacity: 0; width: 0; height: 0; }
.hprc-check-box {
	flex: 0 0 auto;
	width: 20px; height: 20px;
	margin-top: 3px;
	border: 2px solid var(--hprc-navy);
	border-radius: 3px;
	position: relative;
	transition: background .12s ease;
}
.hprc-check:checked + .hprc-check-box { background: var(--hprc-navy); }
.hprc-check:checked + .hprc-check-box::after {
	content: "";
	position: absolute;
	left: 5px; top: 1px;
	width: 6px; height: 11px;
	border: solid var(--hprc-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.hprc-ing-text { color: var(--hprc-navy); }
.hprc-check:checked ~ .hprc-ing-text { color: #9aa3af; text-decoration: line-through; }
.hprc-amt { font-weight: 600; }
.hprc-iname a { color: var(--hprc-navy); text-decoration: underline; text-decoration-color: var(--hprc-gold); text-underline-offset: 3px; }
.hprc-inote { color: #6b7280; font-style: italic; }

/* ---------- Instructions ---------- */
.hprc-instructions { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.hprc-step-heading { font-weight: 800; color: var(--hprc-navy); margin: 18px 0 10px; text-transform: uppercase; font-size: 16px; }
.hprc-step { display: flex; gap: 14px; margin: 0 0 18px; }
.hprc-step-num {
	flex: 0 0 auto;
	width: 28px; height: 28px;
	background: var(--hprc-gold);
	color: var(--hprc-navy);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 15px;
	margin-top: 2px;
}
.hprc-step-text { color: var(--hprc-navy); }
.hprc-step-text p { margin: 0 0 .6em; }
.hprc-step-text p:last-child { margin-bottom: 0; }

/* ---------- Video ---------- */
.hprc-video { margin: 0 40px 4px; }
.hprc-video-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.hprc-video-frame iframe,
.hprc-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hprc-video-link { display: inline-block; margin: 0 40px; color: var(--hprc-gold); font-weight: 700; }

/* ---------- Diet badges ---------- */
.hprc-diets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.hprc-diet {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hprc-navy);
	background: transparent;
	border: 1.5px solid var(--hprc-gold);
	border-radius: 999px;
	padding: 4px 12px;
	line-height: 1.4;
}
.hprc-season { border-color: var(--hprc-navy); }

/* ---------- Cook mode ---------- */
.hprc-card.hprc-cooking .hprc-step-text,
.hprc-card.hprc-cooking .hprc-ing-text { font-size: 20px; line-height: 1.7; }
.hprc-card.hprc-cooking .hprc-step { padding: 6px 0; }
.hprc-cookmode[aria-pressed="true"] { background: var(--hprc-gold); border-color: var(--hprc-gold); color: #1f1f1f; }
.hprc-notes { list-style: none; margin: 0; padding: 0; }
.hprc-note {
	position: relative;
	padding-left: 28px;
	margin: 0 0 14px;
	color: var(--hprc-navy);
}
.hprc-note:last-child { margin-bottom: 0; }
.hprc-note::before {
	content: "\27A4"; /* gold arrow bullet */
	position: absolute;
	left: 0;
	top: 1px;
	color: var(--hprc-gold);
	font-size: 14px;
	line-height: 1.5;
}
.hprc-note-label { color: var(--hprc-navy); font-weight: 800; }

/* ---------- Nutrition (inline, House of Yumm style) ---------- */
.hprc-nut-sub { font-size: 14px; font-weight: 600; text-transform: none; color: #6b7280; }
.hprc-nutrition-inline {
	margin: 0;
	color: var(--hprc-navy);
	font-size: 16px;
	line-height: 1.85;
}
.hprc-nut-pair { white-space: nowrap; }
.hprc-nut-key { font-weight: 400; }
.hprc-nut-div { color: #cdcdcd; margin: 0 4px; }
.hprc-nutrition-note {
	margin: 16px 0 0;
	font-size: 14px;
	color: #6b7280;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.hprc-intro { flex-direction: column; padding: 24px 20px; }
	.hprc-intro-img { flex-basis: auto; max-width: 100%; order: -1; }
	.hprc-title { font-size: 27px; }
	.hprc-email { margin: 24px 20px; padding: 22px; }
	.hprc-section { padding-left: 20px; padding-right: 20px; }
	.hprc-section h3 { font-size: 23px; }
	.hprc-brand { font-size: 18px; }
}

@media print {
	.hprc-topbar, .hprc-email, .hprc-scale, .hprc-star-hit { display: none !important; }
	.hprc-card { border: none; }
}

/* ---------- Jump to Recipe button (injected at top of post content) ---------- */
.hprc-jtr-wrap {
	--hprc-navy: #1e3355;
	--hprc-gold: #c99b3d;
	margin: 0 0 22px;
}
.hprc-jtr {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--hprc-navy);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 11px 20px;
	border-radius: 6px;
	border: 2px solid var(--hprc-navy);
	transition: background .15s ease, color .15s ease;
	box-shadow: none;
}
.hprc-jtr::before {
	content: "\2193"; /* down arrow */
	font-size: 15px;
	line-height: 1;
}
.hprc-jtr:hover,
.hprc-jtr:focus {
	background: var(--hprc-gold);
	border-color: var(--hprc-gold);
	color: #1f1f1f !important;
}
