/* Recipe detail page */
.rcp-hero { background: radial-gradient(700px 400px at 90% 10%, rgba(255, 210, 122, .35), transparent 60%), linear-gradient(120deg, var(--bf-green-900), var(--bf-green-700)); color: #fff; padding: 2.5rem 0 3rem; overflow: hidden; }
.rcp-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .6rem; }
.rcp-hero a { color: #ffd27a; }
.rcp-hero .lead { opacity: .85; max-width: 480px; }
.rcp-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.rcp-chips span { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); padding: .4rem .95rem; border-radius: 999px; font-size: .85rem; backdrop-filter: blur(4px); }
.rcp-chips i { color: #ffd27a; margin-right: .35rem; }
.rcp-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.rcp-ghost:hover { background: #fff; color: var(--bf-green-900); border-color: #fff; }
.rcp-plate { position: relative; aspect-ratio: 1; max-width: 380px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a, #f08a1c 60%, #c9650a); box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .3); display: grid; place-items: center; }
.rcp-plate img { width: 80%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .3)); }

.rcp-side { position: sticky; top: 90px; }
.ing-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.ing-list li { border-bottom: 1px dashed var(--bf-line); }
.ing-list li:last-child { border: 0; }
.ing-list label { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; cursor: pointer; }
.ing-list input { position: absolute; opacity: 0; pointer-events: none; }
.ing-list .tick { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--bf-green-500); display: grid; place-items: center; color: transparent; font-size: .7rem; flex: none; transition: all .2s; }
.ing-list input:checked + .tick { background: var(--bf-green-700); border-color: var(--bf-green-700); color: #fff; transform: scale(1.08); }
.ing-list input:focus-visible + .tick { outline: 2px solid var(--bf-orange-500); outline-offset: 2px; }
.ing-list li.done .txt { text-decoration: line-through; color: var(--bf-muted); }
.shop-ing { background: linear-gradient(135deg, var(--bf-green-900), var(--bf-green-700)); color: #fff; border-radius: var(--bf-radius); padding: 1.1rem; display: flex; gap: 1rem; align-items: center; }
.shop-ing img { width: 84px; flex: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }

.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 3px; background: repeating-linear-gradient(to bottom, var(--bf-orange-500) 0 8px, transparent 8px 14px); opacity: .5; }
.step-item { position: relative; padding-left: 62px; margin-bottom: 1.2rem; }
.step-item .num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--bf-orange-500); color: #fff; font-family: var(--bf-font-head); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bf-cream), 0 6px 14px rgba(229, 127, 12, .4); }
.step-card { background: #fff; border: 1px solid var(--bf-line); border-radius: var(--bf-radius); padding: 1.1rem 1.3rem; transition: transform .3s, box-shadow .3s; }
.step-card:hover { transform: translateX(4px); box-shadow: var(--bf-shadow); }
.step-card h3 { font-family: var(--bf-font-body); font-weight: 600; font-size: 1.1rem; margin: 0 0 .3rem; }
.step-card p { margin: 0; color: var(--bf-muted); }
.dur { background: var(--bf-orange-100); color: var(--bf-orange-600); font-size: .78rem; font-weight: 600; padding: .2rem .75rem; border-radius: 999px; align-self: flex-start; }
.rcp-done { display: flex; gap: 1rem; align-items: center; background: var(--bf-green-100); border-radius: var(--bf-radius); padding: 1.1rem 1.3rem; margin-top: 1.5rem; }
.rcp-done i { font-size: 1.8rem; color: var(--bf-green-700); }

/* Cooking mode */
.cook { position: fixed; inset: 0; z-index: 2600; background: linear-gradient(160deg, var(--bf-green-900), #0f2b17); color: #fff; display: flex; flex-direction: column; animation: svIn .25s; }
.cook[hidden] { display: none; }
.cook-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.cook-prog { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.cook-prog b { display: block; height: 100%; background: var(--bf-orange-500); transition: width .4s; }
.cook-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 1rem 1.5rem; max-width: 760px; width: 100%; margin: 0 auto; overflow-y: auto; }
.cook-count { color: #ffd27a; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 600; }
.cook-body h2, .cook-body h3 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); margin: .5rem 0 1rem; }
.cook-body p { font-size: clamp(1.1rem, 3vw, 1.5rem); line-height: 1.6; opacity: .92; }
.cook-timer { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cook-timer[hidden] { display: none; }
.cook-timer span { font-family: var(--bf-font-head); font-size: clamp(3rem, 12vw, 5.5rem); font-variant-numeric: tabular-nums; color: #ffd27a; }
.cook-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); }
.cook-nav .btn-bf-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cook-nav .btn-bf { background: var(--bf-orange-500); border-color: var(--bf-orange-500); }
.cook-nav button { min-width: 120px; justify-content: center; }

@media (max-width: 991px) { .rcp-side { position: static; } .rcp-plate { max-width: 260px; } }
@media (max-width: 575px) { .step-item { padding-left: 54px; } .step-item .num { width: 38px; height: 38px; font-size: 1rem; } .steps::before { left: 18px; } }
@media print {
  .site-header, .topbar, .site-footer, .wa-float, .rcp-hero .btn-bf, .rcp-hero .btn-bf-outline, .shop-ing, .no-print, .cook, #resetIng, .bf-toast-wrap { display: none !important; }
  .rcp-hero { background: none; color: #000; padding: 1rem 0; } .rcp-hero h1, .rcp-hero a { color: #000; } .rcp-plate { display: none; } .rcp-chips span { border-color: #999; color: #000; background: none; }
  .reveal { opacity: 1 !important; transform: none !important; } .step-card { break-inside: avoid; }
}
