/* DOM order already matches the visual order on both breakpoints, so no
   reordering is needed: a plain vertical stack on mobile, and on desktop
   the image sits beside a single .page-recipe__content column that holds
   everything else. With no image, .page-recipe__content is the only child
   and fills the width on its own. */
.page-recipe__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-recipe__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-recipe__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

@media screen and (max-width: 767px) {
  /* "Transparent header (mobile)" is on: drop the section's top padding so
     the image tucks right up under the now-transparent header. The header's
     own overlap is handled by component-header-overlay.js / header.liquid. */
  .page-recipe.has-transparent-header--mobile.wrapper-spacing--v {
    padding-top: 0;
  }
  /* Full-bleed on mobile (the "recipe card" design), with the bottom edge
     clipped into a wave — same masking technique as .wave-mask/.wave-mask-shift
     in custom.css (SVG mask-image, preserveAspectRatio: none), mirrored
     vertically since those clip the TOP of a section rather than the bottom
     of an image. */
  .page-recipe__image {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1512 800' preserveAspectRatio='none'%3E%3Cpath d='M0 780.2L63 783.5C126 786.8 252 793.4 378 793.4C504 793.4 630 786.8 756 783.5C882 780.2 1008 780.2 1134 783.5C1260 786.8 1386 793.4 1449 796.7L1512 800V0H0Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1512 800' preserveAspectRatio='none'%3E%3Cpath d='M0 780.2L63 783.5C126 786.8 252 793.4 378 793.4C504 793.4 630 786.8 756 783.5C882 780.2 1008 780.2 1134 783.5C1260 786.8 1386 793.4 1449 796.7L1512 800V0H0Z' fill='black'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
  }
  .page-recipe__image img {
    border-radius: 0;
  }
}

.page-recipe__description {
  font-size: 20px;
  color: var(--color-dark-accent);
}
@media screen and (min-width: 768px) {
  .page-recipe__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
  .page-recipe__content {
    flex: 1 1 auto;
    min-width: 0;
  }
  /* Sticks the image in place while the content column scrolls past it —
     same mechanism as the PDP product gallery (.product-sticky-wrapper /
     .product-sticky in template-product.min.css). */
  .page-recipe__image {
    flex: 0 0 45%;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .page-recipe__description {
    font-size: 24px;
  }
}

.page-recipe__byline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-main-accent);
}

.page-recipe__description.rte {
  margin-bottom: 50px;
}
@media screen and (max-width: 767px) {
  .page-recipe__description.rte {
    margin-bottom: 41px;
  }
}
.page-recipe__description p:last-of-type {
  margin-bottom: 0;
}
.page-recipe__section {
  margin-bottom: 2rem;
}
.page-recipe__section-title {
  margin: 0 0 1rem;
  color: var(--color-main-accent);
}

.page-recipe__ingredients,
.page-recipe__instructions {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-dark-accent);
}
.page-recipe__ingredients li,
.page-recipe__instructions li {
  position: relative;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
  padding-left: 28px;
}
@media screen and (max-width: 767px) {
  .page-recipe__ingredients li,
  .page-recipe__instructions li {
    margin-bottom: 6px;
  }
}
.page-recipe__ingredients li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%236dbb2c' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5c0-2.5 2-4.5 4.5-4.5 1.74 0 3.41 1 4.07 2.36C11.09 5 12.76 4 14.5 4 17 4 19 6 19 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/></svg>");
}

/* Instructions render as a numbered list with a filled circular badge per
   step (CSS counter, not the native list marker, so the badge can be
   styled). */
.page-recipe__instructions {
  counter-reset: page-recipe-step;
}
.page-recipe__instructions li {
  counter-increment: page-recipe-step;
  padding-left: 36px;
}
.page-recipe__instructions li:before {
  content: counter(page-recipe-step);
  position: absolute;
  left: 0;
  top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-main-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

.page-recipe__nutrition {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.page-recipe__nutrition li {
  margin-bottom: 0.5rem;
}
.page-recipe__nutrition-label {
  font-weight: 700;
}

.page-recipe__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
@media screen and (max-width: 767px) {
  .page-recipe__meta {
    justify-content: space-evenly;
    padding: 22px 1rem;
    background-color: var(--color-dark-accent);
    color: var(--color-light-accent);
    margin-left: -15px;
    margin-right: -15px;
    width: 100vw;
  }
}
.page-recipe__meta-item {
  display: flex;
  gap: .5rem;
}
@media screen and (min-width: 768px) {
  .page-recipe__meta-item {
    background-color: var(--color-dark-accent);
    color: var(--color-light-accent);
    padding: 4px 2rem;
    border-radius: 100px;
  }
}
.page-recipe__meta-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 18px;
  line-height: 1.6;
}
.page-recipe__meta-value {
  font-size: 18px;
  line-height: 1.6;
}
@media screen and (max-width: 767px) {
  .page-recipe__meta-label,
  .page-recipe__meta-value {
    font-size: 14px;
  }
}
.page-recipe__ingredients a {
  font-weight: 600;
  color: var(--color-main-accent);
  text-decoration: underline;
}

.page--title.template-title {
  text-align: left;
  color: var(--color-main-accent);
}

.page-recipe__content .template-title--wrapper {
  margin-bottom: 4px;
}
@media screen and (max-width: 767px) {
  .page-recipe__content .template-title--wrapper {
    margin-bottom: 0;
  }
}

/* "More Recipes" bar — full-bleed to the viewport edges regardless of any
   padding on ancestors (same colour scheme as the instruction step badges:
   white on var(--color-main-accent)). */
.page-recipe__nav {
  margin-top: 3rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--color-main-accent);
  color: #fff;
}
.page-recipe__nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.75rem 1rem;
}
.page-recipe__nav-label {
  font-family: var(--heading-font-stack);
  font-weight: 700;
  font-size: 37px;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
}
.page-recipe__nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.page-recipe__nav-arrow svg {
  display: block;
  width: 40px;
  height: 40px;
}
@media screen and (max-width: 767px) {
  .page-recipe__nav-inner {
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
  .page-recipe__nav-label {
    font-size: 24px;
  }
}