.recipe {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-7);
}

.recipe__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.recipe__back:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .recipe__back {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* Hidden from the eye, kept for assistive technology: the arrow alone still has a name. */
  .recipe__back-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.recipe__hero {
  border-radius: var(--radius-3);
  overflow: hidden;
  background: var(--placeholder-bg);
  box-shadow: var(--shadow-2);
}

.recipe__image {
  position: relative;
  display: block;
  width: 100%;
  /* Same fallback as the card: a broken remote image keeps the block instead of collapsing. */
  min-height: 220px;
  max-height: 380px;
  object-fit: cover;
  background: var(--placeholder);
}

/* Only drawn for a failed photo: hides the broken-image icon behind the loading placeholder. */
.recipe__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--placeholder);
}

.recipe__intro {
  margin-top: var(--space-6);
}

.recipe__category {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recipe__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.recipe__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
}

.recipe__author {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.recipe__subtitle {
  margin: var(--space-7) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.recipe__ingredients {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A checklist reads better than bullets here: the visitor is ticking off their own shelves. */
.recipe__ingredient {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-md);
}

.recipe__ingredient::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
}

.recipe__ingredient:last-child {
  border-bottom: 0;
}
