/* Recipe detail — craving-first (2026-10-28). Mobile-first, grocery-green, no retailer logos. */
:root {
  --bk-rd-green: #1f6b3a;
  --bk-rd-green-soft: #e8f5ec;
  --bk-rd-ink: var(--ds-ink, #1a1f1c);
  --bk-rd-muted: var(--ds-ink-2, #5a655e);
  --bk-rd-radius: 22px;
  --bk-rd-shadow: 0 12px 32px rgba(20, 40, 28, .12);
}

body[data-route=recipe] #view {
  max-width: 720px;
  margin-inline: auto;
}

body[data-route=recipe] .bk-rd-back {
  display: inline-block;
  margin: 4px 0 12px;
  font-weight: 600;
  color: var(--bk-rd-green);
  text-decoration: none;
}

/* Vertical stack: photo → title/hook → (ingredients/steps follow outside hero) */
body[data-route=recipe] #view > .bk-rd > .hero.bk-rd-hero,
body[data-route=recipe] #view > .hero.bk-rd-hero,
body[data-route=recipe] .bk-rd-hero.hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  background: transparent !important;
  color: var(--bk-rd-ink) !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
body[data-route=recipe] .bk-rd-hero::after { display: none !important; }
body[data-route=recipe] .bk-rd-hero h1,
body[data-route=recipe] .bk-rd-hero p,
body[data-route=recipe] .bk-rd-hero .meta,
body[data-route=recipe] .bk-rd-hero b {
  color: var(--bk-rd-ink) !important;
}

body[data-route=recipe] .bk-rd-photo {
  margin: 0;
  width: 100%;
}
body[data-route=recipe] #recipe-img,
body[data-route=recipe] .bk-rd-img {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--bk-rd-radius) !important;
  box-shadow: var(--bk-rd-shadow);
  display: block;
  background: var(--bk-rd-green-soft);
}

body[data-route=recipe] .bk-rd-head h1 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--bk-rd-ink) !important;
}

body[data-route=recipe] .bk-rd-hook,
body[data-route=recipe] .bk-hungry-lede {
  font-size: 1.08rem;
  line-height: 1.45;
  margin: 0 0 10px;
  max-width: 40rem;
  color: var(--bk-rd-muted) !important;
  font-weight: 500;
}

body[data-route=recipe] .bk-rd-meta {
  margin: 0 0 12px;
  color: var(--bk-rd-muted) !important;
}

body[data-route=recipe] .bk-rd-cta {
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body[data-route=recipe] .bk-rd-cta .btn {
  border-radius: 12px;
}
body[data-route=recipe] .bk-rd-cta .btn:not(.alt) {
  background: var(--bk-rd-green);
}

body[data-route=recipe] .bk-rd-ings,
body[data-route=recipe] .bk-rd-steps {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--bk-rd-green) 14%, var(--ds-border, #e2e8e4));
  background: var(--ds-surface, #fff);
  box-shadow: 0 4px 16px rgba(20, 40, 28, .05);
}
body[data-route=recipe] .bk-rd-ings h2,
body[data-route=recipe] .bk-rd-steps h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--bk-rd-green);
}
body[data-route=recipe] .bk-rd-ol {
  padding-left: 1.25rem;
  margin: 0;
}
body[data-route=recipe] .bk-rd-ol li {
  margin: 0 0 12px;
  line-height: 1.45;
  padding-left: 4px;
}
body[data-route=recipe] .bk-rd-ol li::marker {
  font-weight: 700;
  color: var(--bk-rd-green);
}

/* Deal chips stay grocery-green, not retailer-branded */
body[data-route=recipe] ul.ing li.deal {
  background: var(--bk-rd-green-soft);
  border-radius: 10px;
}

body[data-route=recipe] .bk-rd-more {
  margin-top: 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bk-rd-green-soft) 55%, var(--ds-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--bk-rd-green) 18%, transparent);
}
body[data-route=recipe] .bk-rd-more > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--bk-rd-green);
  padding: 4px 2px;
  list-style: none;
}
body[data-route=recipe] .bk-rd-more > summary::-webkit-details-marker { display: none; }
body[data-route=recipe] .bk-rd-more > summary::before {
  content: "＋ ";
  font-weight: 800;
}
body[data-route=recipe] .bk-rd-more[open] > summary::before { content: "－ "; }
body[data-route=recipe] .bk-rd-more-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 760px) {
  body[data-route=recipe] #view { max-width: 820px; }
  body[data-route=recipe] #recipe-img,
  body[data-route=recipe] .bk-rd-img {
    aspect-ratio: 16 / 10;
    border-radius: 26px !important;
  }
}

html[data-scheme=dark] body[data-route=recipe] .bk-rd-ings,
html[data-scheme=dark] body[data-route=recipe] .bk-rd-steps {
  background: var(--ds-surface-2, #1c221f);
}
html[data-scheme=dark] body[data-route=recipe] ul.ing li.deal {
  background: color-mix(in srgb, var(--bk-rd-green) 25%, #1c221f);
}
html[data-scheme=dark] body[data-route=recipe] .bk-rd-more {
  background: color-mix(in srgb, var(--bk-rd-green) 18%, #1c221f);
}
