/* ============================================================
   Recipe detail page (§12). Hero + band reuse .gp-spot-* from
   browse-v3.css; this adds the body, the Serves control and the
   right-side "How many portions?" drawer.
   ============================================================ */
.rp-hero{ position:relative; padding-top:14px; }
.rp-back{ display:inline-flex; align-items:center; gap:6px; font:700 13px/1 var(--font-body); color:var(--muted); text-decoration:none; margin-bottom:12px; }
.rp-back:hover{ color:var(--green-dk); }
.rp-back svg{ width:18px; height:18px; }
.rp-hero h1.gp-spot-title{ font-size:clamp(23px,2.7vw,34px); }
.rp-price{ font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--accent,#c9791f); margin-top:6px; }

/* band captions + categories (band grid comes from .gp-spot-band) */
.rp-band-cap{ font:700 10.5px/1 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.rp-cats{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.rp-cat{ display:inline-flex; align-items:center; gap:7px; background:rgba(74,124,89,.12); color:var(--green-dk); font:700 12.5px/1 var(--font-body); padding:8px 13px; border-radius:999px; text-decoration:none; }
.rp-cat svg{ width:15px; height:15px; }

/* §12 zone 2 — action bar sticky under the nav once the hero passes */
.rp-actionbar{ position:fixed; left:0; right:0; top:56px; z-index:930;
  background:rgba(255,255,255,.94); backdrop-filter:blur(10px); border-bottom:1px solid var(--hairline);
  transform:translateY(-130%); transition:transform .28s ease; }
.rp-actionbar.show{ transform:none; }
.rp-actionbar .in{ max-width:1720px; margin:0 auto; padding:9px clamp(20px,4vw,64px); display:flex; align-items:center; gap:12px; }
.rp-actionbar .t{ font-family:var(--font-display); font-weight:700; font-size:15.5px; color:var(--navy-800); margin-right:auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-actionbar .gp-btn{ padding:9px 16px; font-size:13px; }
.rp-iconbtn{ width:38px; height:38px; flex:0 0 auto; border-radius:50%; border:1px solid var(--hairline); background:var(--paper); color:var(--navy-800); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.rp-iconbtn svg{ width:18px; height:18px; }
.rp-iconbtn.is-saved{ background:var(--green); color:#fff; border-color:var(--green); }
@media (max-width:600px){ .rp-actionbar .t{ font-size:13.5px; } .rp-actionbar .gp-btn .lbl{ display:none; } }

/* §12 zone 3 — body: ingredients sticky (300–360px) + method fluid */
.rp-body{ display:grid; grid-template-columns:1fr 400px; gap:44px; margin:34px 0 8px; align-items:start; }
.rp-col-ing > * + *{ margin-top:16px; }
.rp-ing{ background:#eff5eb; border:1px solid var(--hairline); border-radius:12px; padding:20px; }
.rp-col-ing{ position:sticky; top:92px; }
.rp-ing h2,.rp-method h2{ font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--navy-800); margin:0 0 14px; }
div#rp-method {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}


/* Serves card + Edit (opens the drawer) */
.rp-serves-card{ display:flex; align-items:center; gap:12px; background:#eff5eb; border:1px solid var(--hairline); border-radius:12px; padding:12px 14px; }
.rp-serves-ic{ width:40px; height:40px; flex:0 0 auto; border-radius:50%; background:rgba(74,124,89,.14); color:var(--green-dk); display:flex; align-items:center; justify-content:center; }
.rp-serves-ic svg{ width:20px; height:20px; }
.rp-serves-tx b{ display:block; font-family:var(--font-display); font-weight:700; font-size:16px; color:var(--navy-800); line-height:1.1; }
.rp-serves-tx span{ font:600 12px/1 var(--font-mono); color:var(--muted); }
.rp-serves-edit{ margin-left:auto; display:inline-flex; align-items:center; gap:7px; border:1px solid var(--green); background:rgba(74,124,89,.1); color:var(--green-dk); font:700 13px/1 var(--font-body); padding:9px 15px; border-radius:999px; cursor:pointer; }
.rp-serves-edit svg{ width:15px; height:15px; }
.rp-serves-edit:hover{ background:var(--green); color:#fff; }

.rp-ing-group h3{ font:600 11px/1 var(--font-mono); letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin:16px 0 6px; }
.rp-ing-list{ list-style:none; margin:0; padding:0; }
.rp-ing-list li{padding:10px 0; border-bottom:1px dashed var(--hairline); font-size:14.5px; color:var(--ink); align-items:baseline; }
.rp-ing-list li:last-child{ border-bottom:none; }
.rp-ing-list li::before{ content:""; flex:0 0 auto; width:7px; height:7px; margin-top:6px; border-radius:50%; background:var(--green); }
.rp-ing-list .amt{ padding-right: 4px; flex:0 0 auto; min-width:96px; font-weight:700; color:var(--navy-800); font-variant-numeric:tabular-nums; }

.rp-ing-actions{ display:flex; gap:10px; margin-top:16px; }
.rp-ing-actions .gp-btn{ flex:1 1 auto; justify-content:center; padding:11px 14px; font-size:13.5px; }
.rp-btn-outline{ background:var(--paper); color:var(--green-dk); border:1.5px solid var(--green); }
.rp-btn-outline:hover{ background:rgba(74,124,89,.08); }

/* method (numbered, phase-labelled, heat/duration bold) */
.rp-method .rp-step{ display:flex; gap:16px; padding:16px 0; border-bottom:1px solid var(--hairline); }
.rp-method .rp-step:last-child{ border-bottom:none; }
.rp-step .num{ flex:0 0 34px; height:34px; border-radius:50%; background:var(--navy-800); color:#fff; font-family:var(--font-display); font-weight:700; display:flex; align-items:center; justify-content:center; }
.rp-step .body{ font-size:15.5px; line-height:1.62; color:#2f3a33; }
.rp-step .phase{ font:700 11.5px/1 var(--font-mono); letter-spacing:.04em; text-transform:uppercase; color:var(--green-dk); margin-right:4px; }
.rp-step .body b{ color:var(--navy-800); }

.rp-note{ margin-top:22px; background:var(--cream-100); border-radius:12px; padding:16px 18px; font-size:13.5px; color:var(--muted); line-height:1.55; }
.rp-note b{ color:var(--navy-800); }
.rp-similar{ margin-top:10px; }
@media (max-width:900px){ .rp-body{ grid-template-columns:1fr; gap:26px; } .rp-col-ing{ position:static; } }

/* ---- right-side "How many portions?" drawer (Bootstrap offcanvas) ---- */
#servesDrawer.offcanvas-end{ width:min(440px,92vw); }
#servesDrawer .offcanvas-header{ border-bottom:1px solid var(--hairline); }
#servesDrawer .offcanvas-title{ font-family:var(--font-display); font-weight:700; font-size:22px; color:var(--navy-800); }
.rp-portions-sub{ color:var(--muted); font-size:14.5px; margin:2px 0 20px; }
.rp-portions-label{ display:flex; align-items:center; gap:12px; font:700 11px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:8px 0 14px; }
.rp-portions-label::after{ content:""; flex:1 1 auto; height:1px; background:var(--hairline); }
.rp-portion-row{ display:flex; align-items:center; gap:14px; border:1px solid var(--hairline); border-radius:14px; padding:14px 16px; margin-bottom:12px; }
.rp-portion-id{ min-width:0; }
.rp-portion-id b{ display:block; font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--navy-800); line-height:1.15; }
.rp-portion-id span{ font-size:13px; color:var(--muted); }
.rp-portion-row .rp-stepper{ margin-left:auto; }
.rp-stepper{ display:inline-flex; align-items:center; gap:10px; }
.rp-stepper button{ width:44px; height:44px; border-radius:12px; border:none; background:rgba(74,124,89,.14); color:var(--green-dk); font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.rp-stepper button.inc{ background:var(--green); color:#fff; }
.rp-stepper button:hover{ filter:brightness(.96); }
.rp-stepper .n{ min-width:26px; text-align:center; font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--navy-800); }
.rp-portions-note{ font-weight:700; color:var(--navy-800); font-size:13.5px; line-height:1.5; margin:18px 0; }
.rp-portions-add,.rp-portions-cancel{ width:100%; border:none; border-radius:14px; font:700 15px/1 var(--font-body); padding:16px; cursor:pointer; }
.rp-portions-add{ background:var(--green); color:#fff; margin-bottom:10px; }
.rp-portions-add:disabled{ background:rgba(74,124,89,.16); color:var(--green-dk); cursor:not-allowed; }
.rp-portions-cancel{ background:var(--cream-100); color:var(--navy-800); }

@media (max-width:760px){ .rp-hero .gp-spot-top{ grid-template-columns:1fr; } }
