/* /recipes/<slug>/ — single recipe page. */

/* Recipe banners are darker (50%) than other pages, and the subtitle box is 80% wide. */
.page-recipe .page-banner::before { background: rgba(0, 0, 0, .5); }
.page-recipe .page-banner__subtitle { width: 80%; max-width: 912px; }

.tiled-warm, .recipe-facts, .recipe-body { background: #f7ebe2 var(--tile) center / contain; }

/* Red label heading, shared look with Home/Recipes */
.label-title {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--red);
  font: 400 42px/1 var(--tanker);
  letter-spacing: 3px;
  text-transform: capitalize;
  text-align: center;
  color: #fff;
}

/* Serves / Total time */
.recipe-facts__in {
  box-sizing: content-box; /* 1200px of content, padding outside it */
  display: flex; align-items: center; gap: 20px;
  max-width: 1140px; margin: 0 auto;
  padding: 25px 30px 0;
}
/* Each fact is as wide as the icon's natural 100px + 15px + its label; the icon
   (57% / 30% of that) and the label then shrink to fit, which is how the old
   image-box widget arrived at its icon sizes. */
.recipe-fact { display: flex; align-items: center; margin: 0; }
.recipe-fact__icon { flex: 0 1 57%; margin-right: 15px; line-height: 0; }
.recipe-fact--time .recipe-fact__icon { flex-basis: 30%; }
.recipe-fact__icon img { display: block; width: auto; max-width: 100%; height: auto; }
.recipe-fact__label { flex: 0 1 100%; font: 400 24px/1.5 var(--ballinger); text-transform: capitalize; color: #000; }

/* Ingredients and directions */
.recipe-body__in {
  box-sizing: content-box; /* 1200px of content, padding outside it */
  display: flex; gap: 20px;
  max-width: 1200px; margin: 0 auto;
  padding: 0 0 75px;
}
.recipe-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; margin-top: 25px; }
.recipe-list { font: 400 21px/1.6 var(--ballinger); color: #000; }
.recipe-list--ingredients { padding-bottom: 30px; }
.recipe-list__items { margin: 0 0 1.5em; padding-left: 42px; list-style: disc; }
ol.recipe-list__items { margin-bottom: 10px; }
ol.recipe-list__items { list-style: decimal; }
.recipe-list .recipe-list__items--joined, .recipe-list .recipe-list__items:last-child { margin-bottom: 0; }
.recipe-list__heading {
  margin: 0;
  font: 400 30px/1.5 Staatliches, cursive;
  text-transform: capitalize;
  color: #276432;
}
.recipe-list__heading--indented { padding-left: 42px; }

.page-recipe .page-banner__title { padding: 0; }

@media (max-width: 1366px) {
  .page-recipe .page-banner__title { padding-top: 100px; }
  .recipe-facts__in { justify-content: center; }
  .recipe-body__in { padding: 0 20px 50px; }
}
@media (max-width: 1200px) {
  .page-recipe .page-banner__title { padding-top: 50px; }
}
@media (max-width: 1024px) {
  .label-title { font-size: 40px; }
}
@media (max-width: 880px) {
  .page-recipe .page-banner__title { padding: 50px 50px 0; }
  .recipe-fact--serves .recipe-fact__icon { flex-basis: 100px; }
  .recipe-body__in { padding: 0 10px 75px; }
}
@media (max-width: 767px) {
  .page-recipe .page-banner { min-height: 60vh; background-position: center; }
  .page-recipe .page-banner__title { padding: 50px 5px 0; font-size: 45px; }
  .page-recipe .page-banner__subtitle { width: 98%; font-size: 20px; line-height: 1.2; padding-bottom: 50px; }

  .recipe-facts__in { flex-wrap: wrap; align-items: center; padding: 25px 0 0; }
  .recipe-fact { flex-direction: column; text-align: center; }
  .recipe-fact__icon, .recipe-fact--serves .recipe-fact__icon { flex: none; width: 50%; margin: 0 0 9px; }
  .recipe-fact--time .recipe-fact__icon { width: 30%; margin-bottom: 8px; }
  .recipe-fact__icon img { width: 100%; }
  .recipe-fact__label { flex: none; font-size: 22px; line-height: 1.3; }

  .recipe-body__in { flex-wrap: wrap; }
  .recipe-col { flex: 1 1 100%; }
  .recipe-col .label-title { width: 95%; align-self: center; font-size: 32px; }
  .recipe-list__heading { font-size: 24px; line-height: 1.3; }
}
