/* The recipe is a working card on a dark kitchen table. */
.recipe { padding-bottom: 72px; }
.recipe-hero { background: radial-gradient(700px 460px at 82% 15%, #392317, transparent 75%), var(--night); }
.recipe-hero-inner, .recipe-intro, .recipe-tabs, .related { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.recipe-hero-inner { padding-top: 22px; padding-bottom: 46px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--on-night-soft); font-size: .8rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--on-night); }
.recipe-hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: stretch; gap: 32px; min-height: 545px; }
.title-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 22px 4px 22px 0; color: var(--on-night); }
.recipe-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--lantern); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.recipe-mark { width: 6px; height: 26px; flex: none; border-radius: 3px; background: var(--red-bright); box-shadow: 0 0 15px rgba(232, 70, 63, .35); }
.title-card h1 { max-width: 12ch; font-size: clamp(2.7rem, 4.5vw, 4.7rem); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.lead { max-width: 48ch; margin: 22px 0 0; color: var(--on-night-soft); font-size: 1.06rem; line-height: 1.6; }
.facts { display: flex; flex-wrap: wrap; gap: 0; width: 100%; margin: 30px 0 0; padding: 18px 0; border-block: 1px solid rgba(242, 165, 59, .28); }
.fact { display: grid; grid-template-columns: 20px auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; min-width: 120px; padding: 4px 18px 4px 0; color: var(--on-night); }
.fact + .fact { padding-left: 18px; border-left: 1px solid rgba(242, 165, 59, .2); }
.fact .icon { grid-row: 1 / 3; width: 20px; height: 20px; color: var(--lantern); }
.fact dt { color: var(--on-night-soft); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.fact dd { margin: 0; font-size: .93rem; font-weight: 700; }
.fact-calories dd span { display: block; color: var(--on-night-soft); font-size: .74rem; font-weight: 500; }
.nutrition-note { margin: 8px 0 0; color: var(--on-night-soft); font-size: .73rem; line-height: 1.4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 30px; }
.actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; }
.actions .btn .icon { width: 18px; height: 18px; flex: none; }
.actions .btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.actions .btn-ghost { border: 1px solid rgba(243, 232, 214, .55); background: transparent; color: var(--on-night); }
.actions .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.actions .btn[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.actions .btn[aria-pressed="true"] svg path { fill: currentColor; }
.recipe-visual { position: relative; min-width: 0; min-height: 520px; overflow: hidden; border: 1px solid rgba(242, 165, 59, .25); border-radius: 12px 56px 12px 12px; background: var(--wood); box-shadow: 0 24px 55px rgba(0, 0, 0, .35); }
.recipe-photo { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.recipe-gallery { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; padding: 7px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 11px; background: rgba(20, 16, 13, .7); backdrop-filter: blur(8px); }
.recipe-gallery button { width: 58px; height: 58px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .7; }
.recipe-gallery button[aria-pressed="true"] { border-color: var(--lantern); opacity: 1; }
.recipe-gallery button:hover { opacity: 1; }
.recipe-gallery img { width: 100%; height: 100%; object-fit: cover; }
.recipe-visual-empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #754428, #302015 52%, #1c1510); }
.recipe-visual-empty .petals { position: absolute; inset: 0; }
.recipe-visual-symbol { color: rgba(242, 165, 59, .65); }
.recipe-visual-symbol .icon { width: 120px; height: 120px; stroke-width: .8; }
.recipe-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: -14px; margin-bottom: 28px; position: relative; z-index: 1; }
.recipe-intro p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0; color: var(--on-night); }
.recipe-intro strong { font-family: var(--serif); font-size: 1.25rem; }
.recipe-intro p span { color: var(--on-night-soft); font-size: .87rem; }
.recipe-intro a { display: inline-flex; align-items: center; gap: 7px; color: var(--lantern); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.recipe-intro a:hover { text-decoration: underline; }
.recipe-intro .icon { width: 16px; height: 16px; }
.tab-input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: none; }
.recipe-body { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); align-items: start; gap: 20px; }
.panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 36px rgba(0, 0, 0, .25); }
.panel-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-kicker { display: block; margin-bottom: 5px; color: var(--red-dark); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.panel h2 { display: flex; align-items: center; gap: 9px; font-size: 1.8rem; }
.panel h2 .icon { width: 26px; height: 26px; color: var(--red-dark); }
.stepper { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--ink-soft); }
.stepper[hidden] { display: none; }
.stepper button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fffaf0; color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.stepper button:hover { background: #fff; }
.stepper output { min-width: 1.5em; color: var(--ink); font-size: 1rem; font-weight: 700; text-align: center; }
.ingredient-help { margin: 7px 0 0; color: var(--ink-soft); font-size: .85rem; }
.ingredients { margin: 0; padding: 0; list-style: none; }
.ingredients li { border-bottom: 1px solid var(--line); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients label { display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 10px 2px; cursor: pointer; }
.ingredients input { width: 21px; height: 21px; flex: none; margin: 0; accent-color: var(--red); cursor: pointer; }
.ingredients .ingredient-photo { width: 46px; height: 46px; flex: none; border-radius: 6px; object-fit: cover; }
.ingredients .ingredient-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ingredients .name { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; line-height: 1.15; }
.ingredients .ingredient-preparation, .ingredients .ingredient-description { overflow: hidden; color: var(--ink-soft); font-size: .77rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.ingredients .ingredient-availability { color: var(--red-dark); font-size: .72rem; font-weight: 650; line-height: 1.25; }
.ingredients .qty { align-self: center; max-width: 92px; color: var(--ink); font-size: .85rem; font-weight: 700; line-height: 1.2; text-align: right; }
.ingredients input:checked ~ .ingredient-copy { opacity: .5; }
.ingredients input:checked ~ .ingredient-copy .name { text-decoration: line-through; }
.ingredients input:checked ~ .ingredient-photo, .ingredients input:checked ~ .qty { opacity: .5; }
.ingredient-progress { margin-top: 24px; }
.ingredient-progress[hidden] { display: none; }
.ingredient-progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--ink-soft); font-size: .8rem; }
.ingredient-progress-label strong { color: var(--ink); }
.ingredient-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #dacbb3; }
.ingredient-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .2s ease; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 16px; padding: 5px 0 25px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 42px; bottom: 0; left: 21px; width: 1px; background: var(--line); }
.steps .num { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.steps p { margin: 5px 0 0; font-size: 1rem; line-height: 1.65; }
.step-content { min-width: 0; }
.step-help { margin-top: 14px; max-width: 560px; }
.step-help-note { margin: 0 0 12px !important; padding: 10px 14px; border-left: 3px solid var(--red); background: rgba(255,255,255,.08); font-size: .95rem !important; }
.step-help-image { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 12px; }
.step-help-video summary { cursor: pointer; font-weight: 700; color: var(--red); padding: 8px 0; }
.step-help-player { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #111; border-radius: 10px; overflow: hidden; }
.step-help-player iframe { width: 100%; height: 100%; border: 0; }
.step-help-video > a { display: inline-block; margin-top: 8px; font-size: .85rem; }
.cook-cta { display: none; }
.related { margin-top: 48px; }
.related .section-head { color: var(--on-night); }
.related .section-head h2 { font-style: italic; }
.related .see-all { color: #ff8a80; }
.related .card-grid { color: var(--ink); }
.related .recipe-card { padding: 8px 8px 12px; border-radius: 12px; background: var(--paper); }
.related .recipe-card h3, .related .meta { padding-inline: 4px; }
.long { display: inline; }
@media (max-width: 1050px) {
  .recipe-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; min-height: 450px; }
  .recipe-visual, .recipe-photo { min-height: 450px; }
  .fact { min-width: 100px; padding-right: 10px; }
  .fact + .fact { padding-left: 10px; }
  .recipe-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .panel { padding: 22px; }
  .related .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body:has(.recipe) { padding-bottom: calc(var(--tabbar-h) + 76px); }
  .recipe { padding-bottom: 40px; }
  .recipe-hero-inner, .recipe-intro, .recipe-tabs, .related { padding-inline: 14px; }
  .recipe-hero-inner { padding-top: 0; padding-bottom: 24px; }
  .crumbs { display: none; }
  .recipe-hero-grid { display: flex; flex-direction: column; gap: 0; min-height: 0; }
  .recipe-visual { order: -1; min-height: 0; margin-inline: -14px; border: 0; border-radius: 0; box-shadow: none; }
  .recipe-photo { height: auto; min-height: 0; aspect-ratio: 5 / 4; }
  .recipe-visual-empty { min-height: 260px; }
  .recipe-gallery { right: 12px; bottom: 12px; }
  .recipe-gallery button { width: 48px; height: 48px; }
  .title-card { padding: 28px 2px 10px; }
  .recipe-eyebrow { margin-bottom: 15px; }
  .title-card h1 { max-width: 16ch; font-size: clamp(2.4rem, 10vw, 3.7rem); }
  .lead { margin-top: 14px; font-size: .97rem; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; padding-block: 14px; }
  .fact { min-width: 0; padding-right: 12px; grid-template-columns: auto; }
  .fact + .fact { padding-left: 12px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(242, 165, 59, .2); }
  .fact .icon { display: none; }
  .actions { margin-top: 20px; }
  .actions .btn { flex: 1; padding-inline: 10px; }
  .long { display: none; }
  .recipe-intro { margin-top: 0; margin-bottom: 20px; }
  .recipe-intro strong { font-size: 1.1rem; }
  .recipe-intro a { display: none; }
  .tab-list { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 10px 10px 0 0; background: #3a2920; }
  .tab-list label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: var(--on-night); cursor: pointer; font-size: .92rem; font-weight: 700; }
  .tab-list .icon { width: 18px; height: 18px; }
  #tab-ingredients:checked ~ .tab-list label[for="tab-ingredients"],
  #tab-preparation:checked ~ .tab-list label[for="tab-preparation"] { background: var(--paper); color: var(--ink); }
  .tab-input:focus-visible ~ .tab-list { outline: 3px solid var(--lantern); }
  .recipe-body { display: block; }
  .panel { padding: 20px 16px; border-radius: 0 0 12px 12px; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
  #tab-ingredients:checked ~ .recipe-body .panel-steps,
  #tab-preparation:checked ~ .recipe-body .panel-ingredients { display: none; }
  .panel-head { margin-bottom: 15px; }
  .panel h2 { font-size: 1.55rem; }
  .panel-ingredients { padding-bottom: 90px; }
  .cook-cta { position: fixed; z-index: 30; right: 12px; bottom: calc(var(--tabbar-h) + 10px); left: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 10px; background: var(--red); box-shadow: 0 10px 28px rgba(0, 0, 0, .55); color: #fff; cursor: pointer; font-weight: 700; }
  .cook-cta .icon { width: 22px; height: 22px; }
  .related { margin-top: 30px; }
  .related .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .facts { justify-content: space-between; }
  .fact { padding-right: 8px; }
  .fact + .fact { padding-left: 8px; }
  .fact dt { font-size: .6rem; }
  .fact dd { font-size: .78rem; }
  .ingredients label { gap: 10px; }
  .ingredients .ingredient-photo { width: 40px; height: 40px; }
  .ingredients .qty { max-width: 78px; font-size: .78rem; }
}

/* Honest note: nobody has cooked these recipes yet, and the form below asks people to tell us. */
.untested { display: flex; align-items: flex-start; gap: 12px; width: min(1192px, calc(100% - 48px)); margin: 0 auto 24px; padding: 14px 18px; border: 1px solid rgba(242, 165, 59, .45); border-radius: 12px; background: rgba(242, 165, 59, .1); color: var(--on-night); font-size: .92rem; line-height: 1.55; }
.untested .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--lantern); }
.untested p { margin: 0; }
.untested a { color: var(--lantern); font-weight: 700; }
.cooked { width: min(1192px, calc(100% - 48px)); margin: 48px auto 0; padding: 26px 24px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.cooked .section-head h2 { display: flex; align-items: center; gap: 10px; font-style: italic; }
.cooked .section-head .icon { width: 24px; height: 24px; color: var(--red); }
.cooked-form { display: grid; gap: 18px; margin-top: 18px; max-width: 640px; }
.cooked-form fieldset { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.cooked-form legend { margin-bottom: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(43, 30, 22, .3); border-radius: 999px; background: var(--paper-2); font-weight: 600; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.choice span .icon { width: 18px; height: 18px; }
.choice input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--lantern); outline-offset: 2px; }
.cooked-comment { display: grid; gap: 6px; font-weight: 600; }
.cooked-comment small { font-size: inherit; font-weight: 400; color: var(--ink-soft); }
.cooked-comment textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(43, 30, 22, .3); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; resize: vertical; }
.cooked-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cooked-form .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; justify-self: start; min-height: 48px; padding: 0 22px; }
.cooked-form .btn .icon { width: 18px; height: 18px; }
.cooked-msg { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 600; }
.cooked-msg .icon { width: 20px; height: 20px; flex: none; color: var(--red); }
.cooked-ok .icon { color: #2f7d4f; }
@media (max-width: 760px) {
  .untested, .cooked { width: calc(100% - 32px); }
  .cooked { padding-inline: 16px; }
  .choice span { width: 100%; }
  .choice { flex: 1 1 100%; }
  .cooked-form .btn { width: 100%; }
}

/* ---------- Cooking status and tags under the lead (the hero is dark) ---------- */
.recipe-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; }
.recipe-status .status-tested { color: #8fd18f; }
.recipe-status .status-proposal { color: var(--on-night-soft); }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.recipe-tags a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid rgba(243, 232, 214, .3); background: rgba(243, 232, 214, .08); color: var(--on-night);
  font-size: .8rem; font-weight: 600; text-decoration: none;
}
.recipe-tags a::before { content: "#"; margin-right: 2px; color: var(--lantern); }
.recipe-tags a:hover { background: rgba(243, 232, 214, .18); }
.recipe-tags a:focus-visible { outline: 3px solid var(--lantern); outline-offset: 2px; }
