/* Balanced recipe header introduced with the compact information rail. */
.ays-recipe__header {
  padding: 5rem 0 3.5rem;
}

.ays-recipe__intro {
  align-items: center;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.ays-recipe__copy {
  align-self: center;
}

.ays-recipe__image {
  align-self: center;
  box-shadow: 0 16px 40px rgba(45, 57, 30, .08);
}

.ays-recipe__image img {
  aspect-ratio: 16 / 10;
}

.ays-recipe__metrics {
  display: grid;
  margin-top: 1.65rem;
  overflow: hidden;
  border: 1px solid #cbd5b9;
  border-radius: var(--ays-radius-md);
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--ays-shadow-sm);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ays-recipe__metric {
  display: flex;
  min-width: 0;
  min-height: 5.3rem;
  align-items: center;
  padding: .85rem 1.15rem;
  gap: .75rem;
}

.ays-recipe__metric + .ays-recipe__metric {
  border-left: 1px solid #d8dfcc;
}

.ays-recipe__metric-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--ays-olive-800);
  background: var(--ays-olive-100);
  flex: 0 0 auto;
  place-items: center;
}

.ays-recipe__metric--energy .ays-recipe__metric-icon {
  color: #fff;
  background: var(--ays-gold-600);
}

.ays-recipe__metric-icon svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ays-recipe__metric > span:last-child {
  display: grid;
  min-width: 0;
  gap: .06rem;
}

.ays-recipe__metric strong {
  color: var(--ays-olive-950);
  font-family: var(--ays-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.ays-recipe__metric strong small {
  color: var(--ays-olive-700);
  font-family: var(--ays-sans);
  font-size: .66rem;
  font-weight: 850;
  text-transform: lowercase;
}

.ays-recipe__metric > span:last-child > small {
  color: var(--ays-muted);
  font-size: .69rem;
  line-height: 1.25;
}

.ays-recipe__metrics-note {
  margin: 0;
  padding: .46rem 1.15rem;
  border-top: 1px solid #d8dfcc;
  color: var(--ays-muted);
  background: rgba(255, 255, 255, .5);
  font-size: .6rem;
  line-height: 1.4;
  grid-column: 1 / -1;
}

.ays-recipe__metric-pending {
  display: grid;
  align-content: center;
  margin: 0;
  padding: .75rem 1rem;
  border-left: 1px solid #d8dfcc;
  color: var(--ays-muted);
  background: rgba(184, 134, 45, .07);
  font-size: .69rem;
  line-height: 1.45;
  grid-column: span 2;
}

.ays-recipe__metric-pending strong {
  color: var(--ays-olive-900);
}

.ays-recipe__body {
  padding-block: 3.75rem 5rem;
}

@media (max-width: 800px) {
  .ays-recipe__header {
    padding: 2.5rem 0;
  }

  .ays-recipe__intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .ays-recipe__metrics {
    margin-top: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ays-recipe__metric {
    min-height: 4.5rem;
    padding: .7rem .8rem;
    grid-column: span 2;
  }

  .ays-recipe__metric--energy {
    border-top: 1px solid #d8dfcc;
    grid-column: span 3;
  }

  .ays-recipe__metric:not(.ays-recipe__metric--energy) + .ays-recipe__metric--energy {
    border-left: 0;
  }

  .ays-recipe__metrics-note {
    padding-inline: .8rem;
  }

  .ays-recipe__metric-pending {
    border-top: 1px solid #d8dfcc;
    border-left: 0;
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .ays-recipe__header {
    padding: 1.35rem 0 1.15rem;
  }

  .ays-recipe__intro {
    gap: .9rem;
  }

  .ays-recipe__metrics {
    margin-top: .8rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ays-recipe__metric {
    min-height: 4rem;
    padding: .55rem .42rem;
    gap: .38rem;
  }

  .ays-recipe__metric-icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .ays-recipe__metric-icon svg {
    width: .9rem;
    height: .9rem;
  }

  .ays-recipe__metric strong {
    font-size: 1.08rem;
  }

  .ays-recipe__metric strong small {
    font-size: .53rem;
  }

  .ays-recipe__metric > span:last-child > small {
    font-size: .55rem;
  }

  .ays-recipe__metrics-note {
    padding: .4rem .55rem;
    font-size: .52rem;
  }

  .ays-recipe__metric-pending {
    padding: .55rem;
    font-size: .58rem;
  }

  .ays-recipe__body {
    padding-block: 1.65rem 2rem;
  }
}
