.recipe-detail-page {
  min-height: 70vh;
  padding: 44px 0 76px;
  background: linear-gradient(135deg, #f7f4ec 0%, #fbfaf6 48%, #edf2e8 100%);
  color: #263322;
}

.recipe-detail-page__container { max-width: 1320px; }

.recipe-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #3b4834;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.recipe-detail-back i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d7dfd0;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  transition: transform .2s ease, background-color .2s ease;
}

.recipe-detail-back:hover { color: #243a25; text-decoration: none; }
.recipe-detail-back:hover i { transform: translateX(-3px); background: #edf3e9; }

.recipe-detail-card {
  overflow: hidden;
  border: 1px solid rgba(58, 72, 52, .1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(42, 59, 38, .1);
}

.recipe-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
  min-height: 410px;
  background: #edf2e8;
}

.recipe-detail-hero--no-image { grid-template-columns: 1fr; min-height: 0; }

.recipe-detail-hero__media { min-height: 100%; overflow: hidden; background: #dfe8d8; }
.recipe-detail-hero__media img { display: block; width: 100%; height: 100%; min-height: 410px; object-fit: cover; }

.recipe-detail-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 76px);
}

.recipe-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-bottom: 17px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #526849;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.recipe-detail-eyebrow i { color: #9b7c34; font-size: 15px; }
.recipe-detail-hero h1 { max-width: 680px; margin: 0; color: #20361f; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(37px, 4.1vw, 61px); font-weight: 500; line-height: 1.05; }
.recipe-detail-hero p { max-width: 590px; margin: 22px 0 0; color: #5e6e5a; font-size: 16px; line-height: 1.75; }

.recipe-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.recipe-detail-meta div { min-width: 118px; padding: 12px 15px; border: 1px solid rgba(65, 85, 57, .13); border-radius: 12px; background: rgba(255, 255, 255, .66); }
.recipe-detail-meta dt { display: flex; align-items: center; gap: 6px; margin: 0; color: #71806b; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.recipe-detail-meta dt i { color: #9d7c30; font-size: 15px; }
.recipe-detail-meta dd { margin: 5px 0 0; color: #2f432e; font-size: 14px; font-weight: 800; }

.recipe-detail-body { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); }
.recipe-detail-panel { padding: clamp(30px, 4vw, 56px); }
.recipe-detail-panel--ingredients { background: #fbfaf6; border-right: 1px solid #e5e9e0; }
.recipe-detail-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 27px; }
.recipe-detail-section-heading > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; background: #e7efe2; color: #365735; font-size: 21px; }
.recipe-detail-section-heading small { display: block; margin-bottom: 3px; color: #a47c2b; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.recipe-detail-section-heading h2 { margin: 0; color: #243b24; font-family: Georgia, 'Times New Roman', serif; font-size: 31px; font-weight: 500; }

.recipe-detail-ingredients { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.recipe-detail-ingredients li { display: flex; align-items: flex-start; gap: 10px; color: #52604e; font-size: 15px; line-height: 1.5; }
.recipe-detail-ingredients i { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; margin-top: 1px; border-radius: 50%; background: #dce9d6; color: #355c36; font-size: 12px; }

.recipe-detail-nutrition { margin-top: 34px; padding-top: 27px; border-top: 1px solid #e1e6dc; }
.recipe-detail-nutrition h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #2f482f; font-size: 13px; font-weight: 800; }
.recipe-detail-nutrition h3 i { color: #a47d2d; font-size: 18px; }
.recipe-detail-nutrition > div { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-detail-nutrition span { padding: 7px 10px; border: 1px solid #dce5d5; border-radius: 999px; background: #f1f6ed; color: #4d6549; font-size: 12px; font-weight: 700; }

.recipe-detail-directions { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.recipe-detail-directions li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.recipe-detail-directions li > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #3b4834; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.recipe-detail-directions p { margin: 5px 0 0; color: #5d6b58; font-size: 16px; line-height: 1.7; }

@media (max-width: 767.98px) {
  .recipe-detail-page { padding: 24px 0 44px; }
  .recipe-detail-page__container { padding-right: 16px; padding-left: 16px; }
  .recipe-detail-back { margin-bottom: 16px; font-size: 10px; }
  .recipe-detail-card { border-radius: 20px; }
  .recipe-detail-hero, .recipe-detail-body { grid-template-columns: 1fr; }
  .recipe-detail-hero__media img { min-height: 245px; height: 245px; }
  .recipe-detail-hero__content, .recipe-detail-panel { padding: 28px 23px; }
  .recipe-detail-hero h1 { font-size: 38px; }
  .recipe-detail-hero p { margin-top: 16px; font-size: 14px; }
  .recipe-detail-meta { gap: 8px; margin-top: 23px; }
  .recipe-detail-meta div { flex: 1 1 100px; min-width: 0; padding: 10px; }
  .recipe-detail-panel--ingredients { border-right: 0; border-bottom: 1px solid #e5e9e0; }
  .recipe-detail-section-heading { margin-bottom: 22px; }
  .recipe-detail-section-heading h2 { font-size: 27px; }
  .recipe-detail-directions { gap: 19px; }
  .recipe-detail-directions p { font-size: 14px; }
}
