.recipe-hero {
  --navigation-accent: var(--brand-ink);
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  background: var(--brand-soft);
  color: var(--ink);
}

.recipe-hero .masthead .brand img { filter: none; }

.recipe-hero-inner {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding: clamp(30px, 4vw, 64px) var(--inset) clamp(36px, 4.65vw, 74px);
}

.recipe-intro {
  grid-row: auto;
  justify-items: start;
  gap: clamp(20px, 2.25vw, 32px);
  padding: 0;
  text-align: left;
}

.recipe-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--muted);
}

.recipe-breadcrumb a:is(:hover, :focus-visible),
.recipe-byline a:is(:hover, :focus-visible) {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.recipe-hero .recipe-intro h1 {
  font-size: clamp(3rem, 6.15vw, 6.25rem);
  text-wrap: initial;
  text-shadow: none;
}

.recipe-intro h1 em { display: block; }

.recipe-intro > .recipe-intro-text {
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 400;
  line-height: 1.58;
}

.recipe-byline {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .88rem;
  line-height: 1.45;
}

.recipe-byline img { border-radius: 50%; }
.recipe-byline a { display: block; font-weight: 700; }
.recipe-byline time { color: var(--muted); }
.recipe-intro .pill-expand { transform: none; }
.recipe-intro .pill { min-height: 44px; font-size: .9rem; }

.recipe-cover { overflow: hidden; border-radius: var(--radius); }
.recipe-cover img { width: 100%; height: auto; aspect-ratio: 1.17; object-fit: cover; }

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(30px, 6vw, 100px);
}

.recipe-ingredients {
  position: sticky;
  top: max(96px, calc(env(safe-area-inset-top) + 85px));
  padding: clamp(23px, 3vw, 42px);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.recipe-ingredients ul {
  display: grid;
  gap: 12px;
  margin-block-start: 20px;
  padding-inline-start: 1.15em;
  line-height: 1.55;
}

.recipe-ingredients li::marker { color: var(--brand-ink); }

.recipe-ingredients h3 { margin-top: 20px; font-size: 1.12rem; line-height: 1.35; }
.recipe-ingredients p { margin-top: 12px; line-height: 1.55; }
.recipe-ingredients h3 + ul, .recipe-ingredients ul + ul { margin-top: 12px; }
.recipe-ingredients-long { position: static; }

.recipe-layout-wide {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.recipe-prose { color: var(--muted); line-height: 1.62; }
.recipe-prose > * + * { margin-top: 1em; }
.recipe-prose h2, .recipe-prose h3, .recipe-prose h4 { color: var(--ink); }
.recipe-prose h2:not(:first-child, .family-subheading) { margin-top: clamp(24px, 3vw, 46px); }
.recipe-prose :is(h3, .family-subheading) { font-size: clamp(1.12rem, 1.7vw, 1.55rem); line-height: 1.3; }
.recipe-prose h4 { font-size: 1.05rem; }
:is(.blw-article, .family-article) { font-size: clamp(1rem, 1.35vw, 1.15rem); }
:is(.blw-article, .family-article) h2:not(.family-subheading) { font-size: clamp(1.7rem, 2.85vw, 2.55rem); line-height: 1.14; }
:is(.blw-article, .family-article) .recipe-video { margin-top: 1.5em; }
.family-post-hero .recipe-intro h1 { font-size: clamp(2.55rem, 5.2vw, 5.25rem); }
.family-rating {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3em 1em;
  padding: .8em 1em;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--ink);
}
.family-rating-stars { margin-inline-end: .6em; color: var(--brand-ink); }
.family-video-portrait { max-width: 360px; }
.family-video-portrait.recipe-video iframe { aspect-ratio: 9 / 16; }
.recipe-prose :is(ul, ol):not(.recipe-steps) { padding-inline-start: 1.25em; }
.recipe-prose :is(ul, ol):not(.recipe-steps) li + li { margin-top: .45em; }
.recipe-prose a:not(.pill) { text-decoration: underline; text-underline-offset: .2em; }
.recipe-prose a:not(.pill):is(:hover, :focus-visible) { color: var(--brand-ink); }
.recipe-prose figure { margin-inline: 0; }
.recipe-prose img { width: auto; height: auto; max-width: 100%; border-radius: var(--radius); }
.recipe-prose figcaption { margin-top: .4em; font-size: .9rem; }
.recipe-prose blockquote { margin-inline: 0; padding-inline-start: 1.15rem; border-inline-start: 3px solid var(--brand); }
.recipe-article-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 12px); }
.recipe-article-gallery figure { margin: 0; }
.recipe-article-gallery img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }

.recipe-prose > .recipe-affiliate {
  container-type: inline-size;
  margin-block-start: clamp(26px, 4vw, 48px);
  padding: clamp(19px, 2.8vw, 40px);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--ink);
}

.recipe-affiliate-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.recipe-affiliate-copy { display: grid; justify-items: start; gap: 12px; }
.recipe-affiliate-copy .recipe-affiliate-kicker {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.45;
}
.recipe-prose .recipe-affiliate h3 {
  font-size: clamp(1.95rem, 3.25vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -.06em;
}
.recipe-affiliate h3 em { display: block; }
.recipe-affiliate-copy > p:last-child { max-width: 40ch; line-height: 1.48; }
.recipe-affiliate-actions { display: grid; gap: 9px; }
.recipe-affiliate-coupon, .recipe-affiliate-product {
  padding: 11px 12px 11px 14px;
  border-radius: 14px;
  background: var(--white);
}
.recipe-affiliate-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.recipe-affiliate-coupon > div { min-width: 0; }
:is(.recipe-affiliate-coupon, .recipe-affiliate-product) p { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.recipe-affiliate-product strong { display: block; margin-top: 3px; line-height: 1.3; }
.recipe-affiliate-coupon code {
  display: block;
  margin-top: 3px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  user-select: all;
}
.recipe-affiliate-coupon-long code { font-size: .96rem; }
.recipe-affiliate-coupon .pill { min-height: 44px; padding-inline: 12px; background: var(--brand-soft); color: var(--ink); }
.recipe-affiliate-link { width: 100%; min-height: 46px; background: var(--ink); color: var(--white); }
.recipe-affiliate-help { font-size: .82rem; line-height: 1.4; }
.recipe-affiliate-disclosure {
  margin-block-start: 22px;
  padding-block-start: 13px;
  border-block-start: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-size: .82rem;
  line-height: 1.4;
}

@container (max-width: 540px) {
  .recipe-affiliate-body { grid-template-columns: minmax(0, 1fr); }
}

.recipe-step-detail { grid-column: 2; min-width: 0; }
.recipe-step-detail > * + * { margin-top: .65em; }
.recipe-steps-flow .recipe-step-detail h3 { font: 700 1.08rem / 1.45 var(--font-body); }
.recipe-steps-flow .recipe-step-detail :is(ul, ol) li { display: list-item; padding: 0; border: 0; counter-increment: none; }
.recipe-steps-flow .recipe-step-detail :is(ul, ol) li::before { content: none; }

.recipe-steps {
  display: grid;
  margin: clamp(17px, 2vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.recipe-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 5px 15px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.recipe-steps li:first-child { border-top: 1px solid var(--line); }

.recipe-steps li::before {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  content: counter(step);
  font-size: .88rem;
}

.recipe-steps h3 { font: 700 1.08rem / 1.45 var(--font-body); }
.recipe-steps p, .recipe-notes p { color: var(--muted); line-height: 1.62; }
.recipe-video { margin-block-start: clamp(22px, 3vw, 40px); }

.recipe-video iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: var(--dark);
}

.recipe-video a {
  display: inline-block;
  margin-block-start: 12px;
  color: var(--muted);
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.recipe-video a:is(:hover, :focus-visible) { color: var(--brand-ink); }

.recipe-notes {
  display: grid;
  gap: 12px;
  margin-block-start: clamp(32px, 4vw, 62px);
  padding-inline-start: clamp(15px, 2vw, 29px);
  border-inline-start: 3px solid var(--brand);
}

.recipe-content .recipe-notes h2 { font-size: clamp(1.6rem, 2.25vw, 2.15rem); }

.recipe-related .action-link .action-label { box-shadow: none; }

.recipe-related .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 20px);
  padding: 0;
  list-style: none;
}

.recipe-related .post-card { width: 100%; min-height: 168px; aspect-ratio: 1.43; }

@media (max-width: 830px) {
  .recipe-hero .masthead .menu-toggle:not([hidden]) {
    background: var(--brand);
    color: var(--ink);
  }
  .recipe-hero .masthead .menu-toggle:is(:hover, :focus-visible) { color: var(--white); }
  .recipe-hero-inner { gap: var(--gap); }
  .recipe-hero .recipe-intro h1 { font-size: clamp(2.6rem, 6.5vw, 4rem); }
}

@media (max-width: 650px) {
  .recipe-hero-inner, .recipe-layout { grid-template-columns: minmax(0, 1fr); }
  .recipe-hero-inner { gap: 27px; }
  .recipe-hero .recipe-intro h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .recipe-ingredients { position: static; }
}

.recipe-hero.recipe-hero-long .recipe-intro h1 {
  font-size: clamp(2.35rem, 4.65vw, 4.9rem);
  line-height: 1.06;
}

@media (max-width: 520px) {
  .recipe-related .post-grid { grid-template-columns: minmax(0, 1fr); }
  .recipe-related .post-card { aspect-ratio: 1.75; }
}
