/* About: A recipe's details on the website and in the editor (HQ R-201): the facts at a glance, headings over the
   ingredients and steps, a step's photo and tip, and variations, serving, storage and questions after the method. */

.recipe-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5px;
  margin: 0;
  overflow: hidden;
  border: 2px solid #191919;
  border-radius: 14px;
  background: #191919;
}

/* On the website the frame is no grid: the glance and the notes after the method keep the layout's own gap. */
.recipe-story .recipe-layout-frame > :is(.recipe-glance, .recipe-extras) {
  margin-top: var(--recipe-gap, 24px);
}

.recipe-glance-fact {
  flex: 1 1 7.5rem;
  min-width: 0;
  padding: 10px 14px 12px;
  background: #fff4e9;
}

.recipe-glance dt {
  color: #5d4940;
  font:
    700 13px / 1 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recipe-glance dd {
  margin: 6px 0 0;
  font:
    700 clamp(22px, 4cqw, 30px) / 1.05 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.recipe-group-title {
  margin: 1.1rem 0 0;
  color: #9f2c08;
  font:
    700 19px / 1.1 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recipe-layout-section > .recipe-group-title:first-of-type,
.recipe-layout-section > div:first-of-type > .recipe-group-title {
  margin-top: 0.75rem;
}

.recipe-step-photo {
  display: block;
  width: min(100%, 26rem);
  aspect-ratio: 4 / 3;
  margin: 0.6rem 0 0.2rem;
  object-fit: cover;
  border-radius: 12px;
}

.recipe-step-tip {
  margin: 0.5rem 0 0.2rem;
  padding: 8px 12px;
  border-left: 3px solid #ff4258;
  border-radius: 0 10px 10px 0;
  background: #fff4e9;
  font-size: 0.95em;
  line-height: 1.35;
}

.recipe-step-tip b {
  margin-right: 0.35em;
  color: #9f2c08;
  font:
    600 1.25em / 1 "Caveat",
    cursive;
}

.recipe-extras {
  display: grid;
  gap: clamp(20px, 4cqw, 36px);
  min-width: 0;
}

.recipe-extra ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25em;
}

.recipe-extra li {
  margin-block: 0.4em;
  overflow-wrap: anywhere;
}

.recipe-extra li::marker {
  color: #d9132a;
}

.recipe-faq {
  border-bottom: 1px dashed rgb(25 25 25 / 35%);
}

.recipe-faq summary {
  padding: 0.6rem 0;
  cursor: pointer;
  font-weight: 750;
  list-style-position: outside;
}

.recipe-faq p {
  margin: 0 0 0.75rem;
}

@container (min-width: 560px) {
  .recipe-extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-extras > .recipe-faqs {
    grid-column: 1 / -1;
  }
}
