/* Recipe detail page. Shared shell, navigation, contact band and footer remain
 * foundation-owned; this file owns the recipe's editorial composition. */
body[data-page-kind='recipe'] main { background: var(--ground); }
body[data-page-kind='recipe'] .review-banner { display: none; }

body[data-page-kind='recipe'] .recipe-hero,
body[data-page-kind='recipe'] .recipe-utility-strip,
body[data-page-kind='recipe'] .cooking-layout,
body[data-page-kind='recipe'] .recipe-memory,
body[data-page-kind='recipe'] .recipe-more {
  width: var(--page-width);
  margin-inline: auto;
}

body[data-page-kind='recipe'] .recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 514px) minmax(0, 514px);
  grid-template-areas: 'copy image' 'details image';
  grid-template-rows: max-content minmax(0, 1fr);
  align-content: start;
  gap: 0 72px;
  padding: 56px 0;
}
.recipe-hero-copy { grid-area: copy; min-width: 0; }
.recipe-hero-details { grid-area: details; min-width: 0; align-self: start; padding-top: 141px; }
.recipe-hero-image { grid-area: image; position: relative; min-width: 0; width: 100%; height: 682px; overflow: visible; }
.recipe-hero-image > .food-photo,
.recipe-hero-image > .photo-pending { width: 100%; height: 100%; object-fit: cover; transform: none; }
.recipe-hero-image > .food-photo { filter: contrast(1.03) saturate(.95); }
.recipe-hero-image .recipe-image-stamp { position: absolute; top: 0; right: -90px; z-index: 2; width: 78px; height: 100px; object-fit: contain; }
.recipe-hero-image::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .055; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E"); background-size: 180px 180px; }
.recipe-media-links { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.recipe-media-links > * { pointer-events: auto; }
.instagram-attribution { position: absolute; right: 50%; bottom: 27px; display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px); min-height: 49px; padding: 10px 12px 10px 9px; background: var(--paper); box-shadow: 0 2px 8px rgba(47,39,35,.08); transform: translateX(50%); font-size: 16px; line-height: 1.35; }
.instagram-attribution img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.instagram-attribution a { text-decoration: underline; text-underline-offset: 3px; }
.recipe-film { position: absolute; right: 16px; bottom: 16px; }
.recipe-film video { display: block; width: min(100%, 514px); margin-top: 12px; }
.recipe-media-links .recipe-film + p { position: absolute; right: 16px; bottom: 16px; }

body[data-page-kind='recipe'] .recipe-hero-copy .text-link { display: inline-flex; align-items: center; gap: 4px; }
.recipe-hero-copy .text-link .ui-icon { width: 16px; height: 16px; }
.recipe-hero-copy .recipe-date { margin: 72px 0 12px; color: var(--muted); font: 18px/1.1 var(--hand); letter-spacing: .13em; text-transform: uppercase; }
.recipe-hero-copy h1 { max-width: none; margin: 0; font: 400 32px/1.2 var(--serif); letter-spacing: 0; }
.recipe-facts { display: grid; gap: 8px; width: min(100%, 350px); margin: 0 0 24px; }
.recipe-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; }
.recipe-facts dt { color: var(--muted); font: 700 14px/1 var(--hand); letter-spacing: .13em; text-transform: uppercase; }
.recipe-facts dd { min-width: 0; margin: 0; font: 600 16px/1.313 var(--sans); letter-spacing: .06em; text-align: right; white-space: normal; }
.recipe-begin-cooking { width: max-content; min-width: 189px; }
.recipe-begin-cooking .ui-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.recipe-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#ingredients{scroll-margin-top:12px}
.review-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body[data-page-kind='recipe'] .recipe-utility-strip { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; min-height: 59px; padding: 0 20px; background: var(--paper); }
.recipe-tags-block { display: flex; align-items: center; gap: 14px; min-width: 0; }
.recipe-tag-label { color: var(--muted); font: 700 14px/1 var(--hand); letter-spacing: .13em; text-transform: uppercase; }
.recipe-tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.recipe-tag { display: inline-block; padding: 3px 6px; color: var(--brick); background: var(--ground); border-bottom: 1px solid currentColor; font: 16px/1.05 var(--hand); letter-spacing: .08em; text-transform: uppercase; }
.recipe-tag-blue { color: var(--tag-blue); }
.recipe-actions { display: flex; align-items: stretch; gap: 0; margin-left: auto; }
.recipe-actions .button { min-height: 59px; padding: 10px 20px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 700 13px/1.1 var(--sans); white-space: nowrap; }
.recipe-actions .button:hover { color: var(--brick); }
.recipe-actions .ui-icon { width: 20px; height: 20px; }

body[data-page-kind='recipe'] .cooking-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; align-items: start; padding: 56px 0; }
.cooking-layout { --ingredients-top: 116px; --cooking-band-height: 144px; }
.cooking-layout > aside { min-width: 0; }
.cooking-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 12px; }
.cooking-eyebrow { margin: 0; color: var(--muted); font: 18px/1.1 var(--hand); letter-spacing: .13em; text-transform: uppercase; }
.cooking-layout .section-heading, .method-heading { min-height: 55px; margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cooking-layout .section-heading h2,
.method-heading h2 { font-size: 28px; line-height: 1.2; }
.cooking-label-row .quiet { padding: 4px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.ingredient-controls { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: var(--cooking-band-height); padding: 16px 12px; border-bottom: 1px solid var(--line); }
.units { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0; }
.units button { position: relative; padding: 8px 2px; border: 0; background: transparent; font: 16px/1.313 var(--sans); letter-spacing: .04em; }
.units button[aria-pressed='true'] { font-weight: 600; }
.units button[aria-pressed='true']::after { display: none; }
.units button svg { position:absolute;left:0;bottom:0;width:100%;height:8px;fill:none;stroke:var(--brick);stroke-width:1.6;stroke-linecap:round;opacity:0;transition:opacity 160ms ease-out;pointer-events:none; }
.units button[aria-pressed='true'] svg { opacity:1; }
.units button:focus-visible { outline:2px solid var(--brick);outline-offset:3px; }
.recipe-allergen-guide { padding:20px 0 8px;border-bottom:1px solid var(--line); }
.recipe-allergen-guide .eyebrow { margin:0 0 12px;color:var(--brick);font-size:15px;text-transform:uppercase; }
.recipe-allergen-guide ul { display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none; }
.recipe-allergen-guide li { display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 8px;background:var(--wheat);font:13px/1.3 var(--sans); }
.recipe-allergen-guide img { width:24px;height:24px;object-fit:contain; }
.recipe-allergen-guide>p:last-child { margin:12px 0 8px;color:var(--muted);font:12px/1.45 var(--sans); }
.ingredient-group { margin: 24px 0 0; padding: 24px; background: var(--wheat); }
.ingredient-group h3 { margin-bottom: 12px; font: 400 20px/1.2 var(--serif); }
.ingredient-group ul { margin: 0; padding: 0; list-style: none; }
.ingredient-group li { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font: 16px/1.55 var(--sans); }
.ingredient-group li:last-child { border-bottom: 0; }
.ingredient-group label { display: grid; grid-template-columns: 20px 100px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; cursor: pointer; }
.ingredient-group input { width: 18px; height: 18px; margin: 2px 0; accent-color: var(--burgundy); }
.ingredient-group input:checked ~ span { opacity: .55; text-decoration: line-through; }
.ingredient-group .amount { min-width: 0; font-size: 14px; }
.ingredient-group small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.ingredient-list-connected { margin-top: 24px; }
.ingredient-list-connected .ingredient-group { margin: 0; }
.ingredient-list-connected .ingredient-group + .ingredient-group { margin-top: 16px; }
.method { min-width: 0; }
.method-heading { display: flex; align-items: center; justify-content: space-between; gap:20px; }
.method-illustration { flex:none;width:104px;height:78px;object-fit:contain; }
@media(max-width:700px){.method-illustration{width:80px;height:60px}}
.method > .recipe-note { margin-bottom: 24px; }
.method > section { margin: 0; }
.method > section + section { margin-top: 0; }
.method > section > h3 { margin: 24px 0 0; font-size: 20px; }
.method ol { margin: 0; padding: 0; list-style: none; }
.method li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.method .step-number { color: var(--brick); font: 400 24px/1 var(--hand); }
.method li p { font: 400 16px/1.75 var(--sans); }
.method li h4 { margin-bottom: 8px; font-size: 18px; }
.recipe-note { padding: 24px 16px; border-left: 3px solid var(--burgundy); background: color-mix(in srgb, var(--wheat) 84%, var(--ground)); }
.recipe-note-label { margin-bottom: 12px; color: var(--brick); font: 18px/1.3 var(--hand); letter-spacing: .13em; text-transform: uppercase; }
.recipe-note p:not(.recipe-note-label) { font: 14px/1.55 var(--sans); }
.recipe-note p + p { margin-top: 12px; }
.method > .recipe-note-remember { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; border-left: 2px solid var(--brick); background: #F2E1DA; }
.recipe-note-remember .recipe-note-label { margin: 0; font: 400 18px/1.6 var(--hand); letter-spacing: .04em; }
.recipe-note-cue { display: flex; align-items: center; gap: 8px; min-width: 0; }
.recipe-note-cue img { flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; }
.recipe-note-chip { min-width: 0; padding: 3px 6px; background: var(--paper); color: var(--muted); font: 400 16px/1.4 var(--hand); letter-spacing: .04em; text-transform: uppercase; }
.recipe-note-remember > p { margin: 0; }
.recipe-timing-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:16px 24px;min-height:var(--cooking-band-height);margin:0 0 24px;padding-block:24px;border-bottom:1px solid var(--line); }
.recipe-timing-summary > div { min-width:0; }
.recipe-timing-summary dt { display:flex;align-items:center;gap:8px;margin-bottom:8px;color:var(--muted);font:16px/1.2 var(--hand);letter-spacing:.1em;text-transform:uppercase; }
.recipe-timing-summary .ui-icon { width:20px;height:20px; }
.recipe-timing-summary dd { margin:0;padding-left:28px;color:var(--ink);font:16px/1.5 var(--sans); }
.recipe-time-cue { margin-top:16px;align-items:flex-start; }
.recipe-time-cue .ui-icon { margin-top:3px;flex-basis:20px;width:20px;height:20px; }
.recipe-time-cue .recipe-note-chip { overflow-wrap:normal; }
@media print { .recipe-timing-summary { break-inside:avoid; } }

/* A tall list scrolls with the page until its last item is visible; a short list stays beside the method. */
@media screen and (min-width:701px) {
  .cooking-layout > [data-sticky-ingredients] { position:sticky;top:var(--ingredients-sticky-offset,var(--ingredients-top)); }
}
@media (min-width:1600px) { .cooking-layout { --ingredients-top:24px; } }

.recipe-note-pro { border-left: 2px solid var(--brick); background: rgba(237,231,212,.62); }
.recipe-note-plain { border: 0; border-block: 1px solid var(--line); background: transparent; }
.step-note { margin: 16px 0 0; padding: 16px; border-left: 2px solid var(--brick); background: rgba(237,231,212,.62); }
.step-note .recipe-note-label { margin-bottom: 6px; font-size: 16px; }
.step-note p:not(.recipe-note-label) { font: 14px/1.55 var(--sans); }
.kitchen-notes { display: grid; gap: 16px; margin-top: 24px; }
body[data-page-kind='recipe'] .recipe-orit-quote { width:var(--page-width);margin:0 auto 72px;padding:18px;background:repeating-linear-gradient(135deg,var(--wheat) 0 14px,var(--ground) 14px 28px); }
.recipe-orit-quote-card { position:relative;display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:center;gap:28px;min-height:250px;padding:36px 42px;background:var(--paper); }
.recipe-orit-quote-copy { position:relative;z-index:1;min-width:0; }
.recipe-orit-quote-mark { display:block;height:80px;color:var(--brick);font:120px/.75 var(--serif); }
.recipe-orit-quote blockquote { max-width:30ch;margin:4px 0 18px;color:var(--ink);font:400 clamp(22px,2.3vw,30px)/1.35 var(--serif); }
.recipe-orit-quote .recipe-note-label { margin:0;color:var(--brick);font-size:18px;letter-spacing:.08em;text-transform:uppercase; }
.recipe-orit-quote-illustration { display:block;width:100%;height:auto;max-height:220px;object-fit:contain;transform:rotate(-4deg); }

body[data-page-kind='recipe'] .recipe-memory { padding: 40px; background: var(--wheat); border-block: 1px solid var(--line); }
.recipe-memory h2 { margin: 8px 0 16px; font-size: 30px; }
.recipe-memory > p:last-child { max-width: 70ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
body[data-page-kind='recipe'] .recipe-more { padding: 56px 0; }
.recipe-more .section-heading { margin-bottom: 32px; }
.recipe-more .section-heading h2 { font-size: 28px; }
.recipe-more .section-heading { align-items:flex-end;flex-wrap:wrap; }
.recipe-more .section-heading .eyebrow { margin:0 0 8px;color:var(--muted);font:18px/1.1 var(--hand);letter-spacing:.13em;text-transform:uppercase; }
.recipe-more-actions { display:flex;align-items:center;gap:20px;flex-wrap:wrap; }
.recipe-more .recipe-grid { gap: 52px 24px; }
.recipe-more .recipe-card { display:flex;flex-direction:column; }
.recipe-more .photo-link { display:flex;flex-direction:column;flex:1; }
.recipe-more .recipe-card h3 { flex:1;font-size: 20px; line-height: 1.35;transition:color 180ms ease-out; }
.recipe-more .food-photo { transition:transform 240ms var(--ease); }
.recipe-card-cta { display:none;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-block:12px;border-bottom:1px solid var(--line);font:14px/1.5 var(--sans);transition:color 180ms ease-out,border-color 180ms ease-out; }
.recipe-card-cta .ui-icon { transition:transform 200ms var(--ease); }
.recipe-more .photo-link:focus-visible :is(h3,.recipe-card-cta) { color:var(--brick); }
.recipe-more .photo-link:active .food-photo { transform:rotate(0) scale(.985); }
@media (hover:hover) and (pointer:fine) {
  .recipe-more .photo-link:hover .food-photo { transform:rotate(0) translateY(-4px); }
  .recipe-more .photo-link:hover h3 { color:var(--brick);text-decoration:none; }
  .recipe-more .photo-link:hover .recipe-card-cta { color:var(--brick);border-color:var(--brick); }
  .recipe-more .photo-link:hover .recipe-card-cta .ui-icon { transform:translateY(-2px) rotate(-35deg); }
}
@media (prefers-reduced-motion:reduce) {
  .recipe-more .food-photo,.recipe-card-cta .ui-icon { transition:none;animation:none!important;transform:none!important; }
}
.recipe-more .recipe-card .photo-stage { flex:none;width:100%;height:auto;min-height:0;aspect-ratio:351 / 450; }
.recipe-more .photo-stage > :is(.food-photo,.photo-pending) { position:absolute;inset:0;width:100%;height:calc(100% - 16px); }
.recipe-more .recipe-card .recipe-card-tags { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 12px; }
.recipe-more .recipe-card-tag { display: inline-block; padding: 3px 4px; color: var(--brick); background: var(--paper); font: 18px/1 var(--hand); letter-spacing: .055em; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; }
.recipe-more .recipe-card-tag-blue { color: var(--tag-blue); }

@media (min-width: 701px) and (max-width: 1000px) {
  .cooking-layout { --ingredients-top:100px; }
  .cooking-layout .section-heading h2, .method-heading h2 { font-size:24px; }
  .recipe-timing-summary { gap:16px 12px; }
  .recipe-timing-summary dd { padding-left:0;font-size:14px; }
  .recipe-timing-summary dt { font-size:14px;gap:6px;letter-spacing:.06em; }
  .recipe-timing-summary .ui-icon { width:16px;height:16px; }
  body[data-page-kind='recipe'] .recipe-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 42vw); gap: 0 32px; padding: 48px 0 40px; }
  .recipe-hero-details { padding-top: 40px; }
  .recipe-hero-image { height: min(56vw, 480px); }
  .recipe-hero-image .recipe-image-stamp { top: 8px; right: 8px; width: 64px; height: 82px; }
  .recipe-hero-copy h1 { font-size: 32px; }
  body[data-page-kind='recipe'] .recipe-utility-strip { min-height: 59px; padding-inline: 12px; }
  body[data-page-kind='recipe'] .cooking-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 48px 0 56px; }
  .ingredient-group { padding: 20px; }
  .ingredient-group label { grid-template-columns: 20px 76px minmax(0,1fr); gap: 10px; }
  body[data-page-kind='recipe'] .recipe-more { padding-block: 56px; }
  .recipe-more .recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; padding-bottom: 0; }
  .recipe-more .recipe-card { min-width: 0; }
}

@media (max-width: 700px) {
  .recipe-card-cta { display:flex; }
  .cooking-layout > aside, .cooking-layout > .method { width:100%; }
  body[data-page-kind='recipe'] .recipe-hero { display: flex; flex-direction: column; gap: 32px; padding: 40px 0 32px; }
  .recipe-hero-copy { display: contents; }
  .recipe-hero-copy > .text-link { order: 1; }
  .recipe-hero-copy > .recipe-date { order: 2; margin: 48px 0 -20px; }
  .recipe-hero-copy > h1 { order: 3; }
  .recipe-hero-image { order: 5; height: calc((100vw - 48px) * 4 / 3); min-height: 0; aspect-ratio: auto; }
  .recipe-hero-details { order: 6; align-self: stretch; width: 100%; padding-top: 0; }
  .recipe-hero-image .recipe-image-stamp { top: 8px; right: 8px; width: 64px; height: 82px; }
  .recipe-hero-copy h1 { max-width: none; font-size: 28px; line-height: 1.2; }
  .recipe-facts { width: 100%; gap: 4px; margin-bottom: 24px; }
  .recipe-facts > div { min-width: 0; padding: 6px 0; }
  .recipe-facts dt { font-size: 14px; }
  .recipe-facts dd { min-width: 0; font-size: 16px; white-space: normal; }
  .recipe-begin-cooking { width: max-content; }
  .instagram-attribution { right: 50%; bottom: 16px; padding: 10px 12px 10px 9px; font-size: 16px; }
  body[data-page-kind='recipe'] .recipe-utility-strip { display: flex; flex-direction: column; gap: 12px; min-height: 100px; padding: 14px; }
  .recipe-tags-block { min-height: 24px; }
  .recipe-actions { width: 100%; min-height: 48px; margin-left: 0; }
  .recipe-actions .button { flex: 1; min-height: 48px; padding-inline: 8px; font-size: 13px; }
  body[data-page-kind='recipe'] .cooking-layout { display: flex; flex-direction: column; gap: 40px; padding: 40px 0; }
  .cooking-layout .section-heading h2, .method-heading h2 { font-size: 24px; }
  .ingredient-group { padding: 20px; }
  .ingredient-group label { grid-template-columns: 24px 74px minmax(0,1fr); gap: 10px; }
  .ingredient-group input { width: 22px; height: 22px; }
  .recipe-timing-summary { gap:16px 12px; }
  .recipe-timing-summary dt { font-size:14px;gap:6px;letter-spacing:.06em; }
  .recipe-timing-summary .ui-icon { width:16px;height:16px; }
  .recipe-timing-summary dd { padding-left:0;font-size:14px; }
  .method li { grid-template-columns: 32px minmax(0,1fr); gap: 16px; padding: 24px 0; }
  .method li p { font-size: 16px; line-height: 1.75; }
  .recipe-note { padding: 18px 16px; }
  body[data-page-kind='recipe'] .recipe-orit-quote { margin-bottom:40px;padding:10px; }
  .recipe-orit-quote-card { grid-template-columns:minmax(0,1fr);gap:8px;padding:24px; }
  .recipe-orit-quote-mark { height:60px;font-size:94px; }
  .recipe-orit-quote blockquote { max-width:none;font-size:23px; }
  .recipe-orit-quote-illustration { justify-self:end;width:180px;max-height:135px; }
  body[data-page-kind='recipe'] .recipe-memory { padding: 24px; }
  body[data-page-kind='recipe'] .recipe-more { padding: 32px 0; }
  .recipe-more .section-heading { margin-bottom: 32px; }
  .recipe-more .section-heading h2 { font-size: 24px; }
  .recipe-more .section-heading .text-link { font-size: 13px; }
  .recipe-more .recipe-grid { display: flex; flex-direction: column; gap: 40px; }
  .recipe-more .recipe-card .photo-stage { aspect-ratio: 342 / 456; }
  .recipe-more .recipe-card h3 { font-size: 18px; }
}

@media (min-width: 1001px) and (max-width: 1300px) {
  .recipe-hero-image .recipe-image-stamp { right: 8px; }
}

/* Give the tags and actions their own space at tablet and phone widths. */
@media(max-width:1000px){
  body[data-page-kind='recipe'] .recipe-utility-strip{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:8px;min-height:0;padding:14px 16px}
  .recipe-tags-block{display:block;min-width:0}
  .recipe-tag-list{gap:6px 10px}
  .recipe-actions{display:flex;justify-content:flex-end;width:100%;margin:0;padding-top:8px;border-top:1px solid var(--line)}
  .recipe-actions .button{min-height:44px;padding:8px 14px}
}
@media(max-width:700px){
  .recipe-actions .button{flex:1}
}

@media print {
  body[data-page-kind='recipe'] .recipe-hero { display: block; width: auto; padding: 24px 0; }
  body[data-page-kind='recipe'] .recipe-hero-image,
  body[data-page-kind='recipe'] .recipe-utility-strip,
  body[data-page-kind='recipe'] .recipe-actions,
  body[data-page-kind='recipe'] .recipe-more,
  body[data-page-kind='recipe'] .contact-band { display: none !important; }
  body[data-page-kind='recipe'] .recipe-hero-details { padding-top: 24px; }
  body[data-page-kind='recipe'] .cooking-layout { display: block; width: auto; padding: 24px 0; }
  body[data-page-kind='recipe'] .cooking-layout > aside { margin-bottom: 24px; }
  .ingredient-controls { display:none; }
  .ingredient-list { height:auto !important;overflow:visible !important; }
  .recipe-timing-summary { min-height:0;padding-block:12px; }
  .ingredient-group { break-inside: avoid; padding: 0; background: none; }
  .ingredient-list-connected { margin-top:0;background:none; }
  .ingredient-list-connected .ingredient-group { padding:0; }
  .ingredient-list-connected .ingredient-group + .ingredient-group { margin-top:0; }
  .ingredient-group input { appearance: none; border: 1px solid #000; }
  .method li { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page-kind='recipe'] .food-photo { transition: none; }
  .units button svg { transition:none; }
}

/* Keep related card titles and tags aligned without squeezing their labels. */
.recipe-more .recipe-grid { align-items:stretch; }
.recipe-more .recipe-card h3 { text-align:left; }
.recipe-more .recipe-card .recipe-card-tags { min-height:70px;align-content:flex-start;align-items:flex-start;gap:6px; }
.recipe-more .recipe-card-tag { max-width:100%;font-size:16px;line-height:1.25;white-space:normal;overflow-wrap:normal; }
@media(max-width:700px) { .recipe-more .recipe-card .recipe-card-tags { min-height:0; } }

/* A recipe to pass on: the reverse of a kitchen postcard. */
.recipe-postcard{width:var(--page-width);margin:40px auto;position:relative;display:grid;grid-template-columns:1.1fr 1fr;gap:40px;padding:40px;background:var(--wheat);border:0;isolation:isolate}
.recipe-postcard::before{content:"";position:absolute;inset:10px;border:0;pointer-events:none;z-index:-1}
.recipe-postcard-story{align-self:center}
.recipe-postcard .eyebrow{color:var(--brick);text-transform:uppercase;font-size:17px;margin:0 0 16px}
.recipe-postcard h2{font:clamp(26px,3vw,38px)/1.15 var(--serif);margin:0 0 18px}
.recipe-postcard-description{font-size:16px;line-height:1.6;color:var(--muted);max-width:42ch}
.recipe-postcard-date{font-size:16px!important;text-transform:uppercase;margin-top:24px;color:var(--muted)}
.recipe-postcard-address{position:relative;border-left:0;padding-left:32px;padding-top:106px;min-width:0}
.recipe-postcard-stamp{position:absolute;right:0;top:0;rotate:4deg;object-fit:contain}
.recipe-postcard-to{font-size:19px;text-transform:uppercase;margin:0 0 12px}
.recipe-postcard-facts{margin:0 0 24px}
.recipe-postcard-facts>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.4}
.recipe-postcard-facts dt{color:var(--muted)}
.recipe-postcard-facts dd{margin:0;text-align:right}
.recipe-postcard-send{max-width:100%;white-space:normal;font-size:17px;line-height:1.25;text-align:left;gap:12px;margin-top:24px}
.recipe-postcard-status{font-size:13px;line-height:1.4;margin:12px 0 0;min-height:1.4em;color:var(--muted)}
@media(max-width:700px){.recipe-postcard{grid-template-columns:1fr;gap:24px;padding:28px}.recipe-postcard-address{border-left:0;border-top:0;padding:90px 0 0}.recipe-postcard-stamp{top:14px;width:50px;height:64px}.recipe-postcard-to{font-size:17px}.recipe-postcard-send{font-size:16px}}
@media print{.recipe-postcard{display:none}}

.recipe-postcard-story{align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}
.recipe-postcard-story .food-photo{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transform:none;rotate:none}
.recipe-postcard-signature{font:24px/1.2 var(--hand);color:var(--brick);margin:18px 0 0;rotate:-2deg}
.recipe-postcard-address{padding-top:106px}
.recipe-postcard-address .recipe-postcard-date{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}
.recipe-postcard-send .postcard-plane{flex:none;width:24px;height:24px}
@media(max-width:700px){.recipe-postcard-story .food-photo{aspect-ratio:4/3}.recipe-postcard-address{padding-top:90px}.recipe-postcard-signature{font-size:22px}}

/* Perforated paper belongs to the background, leaving focus outlines unclipped. */
.recipe-postcard{--postcard-edge:linear-gradient(#000 0 0) center/calc(100% - 12px) calc(100% - 12px) no-repeat,radial-gradient(circle at 10px 0,transparent 5px,#000 5.5px) top/20px 6px repeat-x,radial-gradient(circle at 10px 6px,transparent 5px,#000 5.5px) bottom/20px 6px repeat-x,radial-gradient(circle at 0 10px,transparent 5px,#000 5.5px) left/6px 20px repeat-y,radial-gradient(circle at 6px 10px,transparent 5px,#000 5.5px) right/6px 20px repeat-y;background:none;border:0;rotate:.6deg}
.recipe-postcard::before{inset:0;border:0;background:var(--wheat);mask:var(--postcard-edge)}
.recipe-postcard::after{content:"";position:absolute;z-index:0;inset:0;background:url('/assets/menu-creased-paper.webp') center/135% 135% no-repeat;mask:var(--postcard-edge);mix-blend-mode:multiply;opacity:.5;pointer-events:none}
.recipe-postcard>*{position:relative;z-index:1}
.recipe-postcard-photo-window{overflow:hidden;aspect-ratio:4/3;position:relative}
.recipe-postcard-photo-window .food-photo{height:100%;aspect-ratio:auto;transform:scale(1.22);transition:none;transform-origin:center}
@media(prefers-reduced-motion:reduce){.recipe-postcard{rotate:0deg}.recipe-postcard-photo-window .food-photo{transform:none}}

.recipe-postcard-trigger{display:flow-root}

/* The note stays in place as the share postcard passes over its lower edge. */
.recipe-paper-stack{width:var(--page-width);margin:40px auto 72px}
.recipe-paper-stack .recipe-postcard-trigger{position:relative;z-index:2;margin-top:-28px;filter:drop-shadow(0 9px 12px #35241823)}
.recipe-paper-stack .recipe-postcard{width:100%;margin:0}
body[data-page-kind='recipe'] .recipe-paper-stack .recipe-orit-quote{position:sticky;top:108px;z-index:1;width:calc(100% - 24px);margin:0 auto;rotate:-.8deg}
.recipe-paper-stack .recipe-orit-quote-card{padding-bottom:64px}
@media(min-width:1600px){body[data-page-kind='recipe'] .recipe-paper-stack .recipe-orit-quote{top:24px}}
@media(max-width:700px){
  .recipe-paper-stack{margin:32px auto 48px}
  .recipe-paper-stack .recipe-postcard-trigger{margin-top:-18px}
  body[data-page-kind='recipe'] .recipe-paper-stack .recipe-orit-quote{top:88px;width:calc(100% - 12px)}
  .recipe-paper-stack .recipe-orit-quote-card{padding-bottom:40px}
}
@media(max-height:600px){body[data-page-kind='recipe'] .recipe-paper-stack .recipe-orit-quote{position:relative;top:auto}}

@media(max-width:700px){
  .recipe-postcard{gap:18px;padding:24px;rotate:0deg}
  .recipe-postcard-photo-window{overflow:hidden}
  .recipe-postcard-photo-window .food-photo{border:8px solid var(--paper);box-shadow:0 8px 22px #35241824}
  .recipe-postcard-stamp{top:34px;right:34px;z-index:3;width:58px;height:74px;filter:drop-shadow(0 4px 8px #35241820)}
  .recipe-postcard-signature,
  .recipe-postcard .eyebrow{display:none}
  .recipe-postcard-address{position:static;padding:4px 0 0}
  .recipe-postcard h2{margin-bottom:12px;font-size:26px}
  .recipe-postcard-description{font-size:15px;line-height:1.55}
}
