.recipe-page { min-height: calc(100vh - 78px); }
.recipe-shell { max-width: 1320px; margin: 0 auto; padding: 34px clamp(20px, 5vw, 62px) 105px; }
.recipe-breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.recipe-breadcrumbs a { color: var(--sage); }
.recipe-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.recipe-hero-image { min-height: 430px; max-height: 470px; background: linear-gradient(135deg,#edf2ec,#f7f4ed); }
.recipe-hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity .18s ease; }
.recipe-hero-image img.is-loaded { opacity: 1; }
.recipe-summary { padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.recipe-labels { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-label { padding: 7px 11px; border-radius: 999px; color: var(--sage); background: var(--sage-light); font-size: 11px; font-weight: 700; }
.recipe-summary h1 { font-size: clamp(38px, 4vw, 56px); }
.recipe-description { margin: 18px 0 23px; color: #59645d; font-size: 15px; line-height: 1.65; }
.recipe-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #4e5a52; font-size: 14px; font-weight: 600; line-height: 1.6; }
.recipe-fact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.recipe-fact + .recipe-fact:not([hidden])::before { margin-right: 2px; color: #a6ada8; content: "•"; }
.recipe-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.recipe-actions button { padding: 10px 15px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: .2s ease; }
.recipe-actions button:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-light); }
.difficulty-dot { display: none; }
.difficulty-easy::before { content: "🟢"; }
.difficulty-medium::before { content: "🟡"; }
.difficulty-hard::before { content: "🔴"; }
#temperature-fact { font-size: 0; }
#temperature-fact::before { margin-right: 2px; color: #a6ada8; content: "• 🔥"; font-size: 14px; }
#temperature-text { font-size: 14px; }
.recipe-content { margin-top: 54px; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(36px, 6vw, 80px); }
.recipe-sidebar { position: sticky; top: 104px; }
.recipe-section h2 { margin-bottom: 25px; font-size: 38px; }
.recipe-sidebar #ingredients-title { margin-bottom: 14px; }
.servings-control { width: fit-content; margin-bottom: 20px; padding: 4px; display: grid; grid-template-columns: 34px minmax(82px, auto) 34px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.servings-control button { width: 34px; height: 34px; border: 0; border-radius: 8px; color: var(--sage); background: var(--sage-light); cursor: pointer; font-size: 20px; }
.servings-control button:hover { color: white; background: var(--sage); }
.servings-control button:disabled { cursor: default; opacity: .35; }
.servings-control strong { padding: 0 8px; text-align: center; white-space: nowrap; color: var(--ink); }
.ingredient-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ingredient-list li { padding: 14px 0; display: grid; grid-template-columns: 90px 1fr; gap: 15px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.ingredient-list .ingredient-group-title { grid-template-columns:1fr; margin-top:10px; padding:13px 0 8px; border-bottom:0; color:var(--sage-dark); font:700 17px "Playfair Display",serif; }
.ingredient-list .ingredient-group-title:first-child { margin-top:0; }
.ingredient-amount { color: var(--ink); font-size: 14px; font-weight: 700; }
.ingredient-separator { color: var(--muted); font-weight: 400; }
.ingredient-name { color: #4f5952; }
.nutrition-card { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--sage-light); }
.nutrition-heading { margin-bottom: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nutrition-heading h3 { margin: 0; font: 700 23px "Playfair Display", serif; }
.nutrition-heading span { color: var(--muted); font-size: 11px; }
.nutrition-grid { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nutrition-grid div { padding: 10px; border-radius: 10px; background: rgba(255,253,249,.78); }
.nutrition-grid dt { color: var(--muted); font-size: 11px; }
.nutrition-grid dd { margin: 4px 0 0; color: var(--ink); font-weight: 700; }
.step-list { display: grid; gap: 13px; }
.recipe-step { padding: 23px 24px; display: grid; grid-template-columns: 42px 1fr; gap: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--sage); font: 700 17px "Playfair Display", serif; }
.recipe-step h3 { margin: 2px 0 8px; font: 700 23px "Playfair Display", serif; }
.recipe-step p { margin: 0; color: var(--muted); line-height: 1.7; }
.step-image { margin: 20px 0 2px; overflow: hidden; border-radius: 15px; background: var(--sage-light); }
.step-image img { width: 100%; max-height: 430px; display: block; object-fit: cover; }
.recipe-step.has-step-image { padding-bottom: 25px; }
.step-gallery { margin:20px 0 2px; display:grid; gap:10px; }
.step-gallery.single { grid-template-columns:1fr; }
.step-gallery.multiple { grid-template-columns:repeat(2,minmax(0,1fr)); }
.step-gallery-item { padding:0; overflow:hidden; border:0; border-radius:15px; background:var(--sage-light); cursor:zoom-in; }
.step-gallery-item img { width:100%; height:210px; display:block; object-fit:cover; transition:transform .2s; }
.step-gallery.single img { height:auto; max-height:430px; }
.step-gallery-item:hover img { transform:scale(1.015); }
.recipe-lightbox { width:min(94vw,1100px); max-width:none; max-height:92vh; padding:0; overflow:visible; border:0; border-radius:16px; background:#111; }
.recipe-lightbox::backdrop { background:rgba(11,18,14,.82); backdrop-filter:blur(3px); }
.recipe-lightbox img { width:100%; max-height:88vh; display:block; border-radius:16px; object-fit:contain; }
.lightbox-close { position:absolute; z-index:2; top:-13px; right:-13px; width:36px; height:36px; border:1px solid rgba(255,255,255,.45); border-radius:50%; background:#fff; color:var(--ink); font-size:25px; line-height:30px; cursor:pointer; }
.recipe-tips { margin-top: 54px; padding: 34px; border-radius: 22px; background: var(--sage-light); }
.recipe-tips h2 { font-size: 34px; }
.recipe-tips ul { margin: 22px 0 0; padding-left: 20px; }
.recipe-tips li { margin: 10px 0; color: #4f5e53; line-height: 1.65; }
.recipe-videos { margin-top: 50px; }
.recipe-videos h2 { margin-bottom: 22px; }
.recipe-video-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.recipe-video-links a { min-height: 72px; padding: 13px 15px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); transition: .2s ease; }
.recipe-video-links a:hover { border-color: var(--sage); transform: translateY(-2px); }
.recipe-video-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--sage); }
.recipe-video-icon svg { width: 18px; height: 18px; fill: currentColor; }
.recipe-video-links small, .recipe-video-links strong { display: block; }
.recipe-video-links small { margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.recipe-video-links strong { font-size: 14px; }
.recipe-video-arrow { color: var(--sage); font-size: 18px; }
.recipe-missing { padding: 60px 24px; text-align: center; color: var(--muted); }
.related-recipes { margin-top: 68px; }
.related-recipes > h2 { margin-bottom: 21px; font-size: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.related-card { min-width: 0; padding-bottom: 14px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--white); transition: .2s ease; }
.related-card:hover { border-color: var(--sage); transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card img { width: 100%; height: 240px; display: block; object-fit: cover; }
.related-card span, .related-card h3, .related-card p { margin-left: 14px; margin-right: 14px; }
.related-card span { margin-top: 12px; display: block; color: var(--sage); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.related-card h3 { margin-top: 5px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font: 700 19px/1.2 "Playfair Display", serif; }
.related-card p { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 12px; }

@media (max-width: 940px) {
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-hero-image { min-height: 380px; max-height: 420px; }
  .recipe-summary { padding: 36px; }
  .recipe-content { grid-template-columns: 1fr; }
  .recipe-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .recipe-page { min-height: calc(100vh - 66px); }
  .recipe-shell { padding: 22px 14px 75px; }
  .recipe-hero { border-radius: 20px; }
  .recipe-hero-image { min-height: 290px; max-height: 320px; }
  .recipe-summary { padding: 28px 22px 32px; }
  .recipe-summary h1 { font-size: 38px; }
  .recipe-description { font-size: 15px; }
  .recipe-facts { gap: 6px; font-size: 13px; }
  .recipe-content { margin-top: 42px; padding: 0 7px; }
  .recipe-section h2 { font-size: 33px; }
  .recipe-step { padding: 19px 17px; grid-template-columns: 35px 1fr; gap: 12px; }
  .step-number { width: 35px; height: 35px; }
  .step-image { margin-top: 17px; border-radius: 13px; }
  .has-step-image .step-image { width: calc(100% + 47px); margin-left: -47px; }
  .step-image img { max-height: 390px; }
  .step-gallery { width:calc(100% + 47px); margin-left:-47px; gap:7px; }
  .step-gallery.multiple { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .step-gallery-item { border-radius:11px; }
  .step-gallery-item img { height:145px; }
  .step-gallery.single img { height:auto; max-height:390px; }
  .recipe-lightbox { width:96vw; }
  .recipe-tips { margin-top: 42px; padding: 25px 22px; }
  .recipe-video-links { grid-template-columns: 1fr; }
  .related-recipes { margin-top: 56px; padding: 0 7px; }
  .related-recipes > h2 { font-size: 33px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card img { height: clamp(220px, 68vw, 260px); }
}

@media print {
  .site-header, .site-footer, .recipe-actions, .recipe-videos, .related-recipes, .servings-control { display: none !important; }
  .recipe-shell { max-width: none; padding: 0; }
  .recipe-hero { box-shadow: none; border: 1px solid var(--line); }
  .recipe-content { display: block; }
  .recipe-sidebar { position: static; margin-bottom: 35px; }
  .recipe-step { break-inside: avoid; }
}
