/* Recipes landing page: editorial layout and responsive collection rhythm. */
body[data-page-kind='recipes'] .review-banner { display: none; }
body[data-page-kind='recipes'] .recipes-landing { max-width: none; padding: 0 var(--page-inset) 96px; overflow: clip; }
body[data-page-kind='recipes'] .recipes-hero,
body[data-page-kind='recipes'] .recipes-occasion,
body[data-page-kind='recipes'] .recipes-browse,
body[data-page-kind='recipes'] .recipes-feature { width: min(100%, var(--page-max)); margin-inline: auto; }

body[data-page-kind='recipes'] .recipes-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 56px; align-items: start;
  min-height: 368px; padding: 56px 0;
}
body[data-page-kind='recipes'] .recipes-hero-copy { order: 1; min-width: 0; }
body[data-page-kind='recipes'] .recipes-hero-art { order: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 200px; }
body[data-page-kind='recipes'] .recipes-hero-art > span { color: var(--muted); font-size: 18px; letter-spacing: .02em; text-transform: uppercase; }
body[data-page-kind='recipes'] .recipes-hero-art img { width: 200px; height: 186px; object-fit: contain; }
body[data-page-kind='recipes'] .recipes-hero-copy .eyebrow { margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; }
body[data-page-kind='recipes'] .recipes-hero-copy h1 { margin-bottom: 8px; font-size: 32px; }
body[data-page-kind='recipes'] .recipes-hero-lead { max-width: 660px; color: var(--muted); font-size: 18px; line-height: 1.5; }
body[data-page-kind='recipes'] .recipes-hero-actions { display: flex; align-items: center; gap: 8px; margin-top: 82px; }
body[data-page-kind='recipes'] .recipes-hero-actions .button { min-height: 49px; padding: 13px 19px; font: 600 16px/1.313 var(--sans); letter-spacing: .063em; }
body[data-page-kind='recipes'] .recipes-search-pill { border-color: var(--paper); background: var(--paper); }

body[data-page-kind='recipes'] .recipes-occasion { padding: 56px 0; }
body[data-page-kind='recipes'] .recipes-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
body[data-page-kind='recipes'] .recipes-section-heading .eyebrow { margin-bottom: 7px; text-transform: uppercase; letter-spacing: .1em; }
body[data-page-kind='recipes'] .recipes-section-heading h2 { font-size: 28px; }
body[data-page-kind='recipes'] .recipes-section-heading .text-link { flex: 0 0 auto; margin-bottom: 8px; }
body[data-page-kind='recipes'] .recipes-card-row { display: flex; gap: 40px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
body[data-page-kind='recipes'] .recipes-card-row::-webkit-scrollbar { display: none; }
body[data-page-kind='recipes'] .recipes-card-row .recipe-card { display: flex; flex: 0 0 calc((100% - 80px) / 3); flex-direction: column; min-width: 0; scroll-snap-align: start; }
body[data-page-kind='recipes'] .recipes-card-row>.recipes-coming-card { align-self: stretch; flex: 0 0 calc((100% - 80px) / 3); min-height: 0; margin: 0; scroll-snap-align: start; box-sizing: border-box; }
body[data-page-kind='recipes'] .recipes-card-row .photo-stage { height: 535px; aspect-ratio: auto; margin-bottom: 16px; }
body[data-page-kind='recipes'] .recipes-card-row .food-photo { height: calc(100% - 16px); }
body[data-page-kind='recipes'] .recipes-card-row .recipe-card h3 { font-size: 20px; line-height: 1.35; min-height: 5.4em; }
body[data-page-kind='recipes'] .recipes-card-row .recipe-card-tags { display: flex; flex-wrap: wrap; align-content: start; gap: 4px; margin-top: auto; min-height: 28px; }
body[data-page-kind='recipes'] .recipes-card-row .recipe-card-tag { padding: 2px 5px; color: var(--tag-blue); background: var(--paper); border-bottom: 1px solid currentColor; font: 14px/1.05 var(--hand); letter-spacing: .08em; text-transform: uppercase; }
body[data-page-kind='recipes'] .recipes-slider-summary { position: relative; display: flex; flex: 0 0 calc((100% - 80px) / 3); flex-direction: column; justify-content: flex-end; gap: 8px; box-sizing: border-box; padding: 20px; scroll-snap-align: start; background: var(--paper); color: var(--brick); text-decoration: none; }
body[data-page-kind='recipes'] .recipes-slider-summary-art { position: absolute; top: 24px; left: 20px; width: calc(100% - 40px); height: 46%; object-fit: contain; mix-blend-mode: multiply; }
body[data-page-kind='recipes'] .recipes-slider-summary-content { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
body[data-page-kind='recipes'] .recipes-slider-summary-content .handwritten { font-size: 22px; line-height: 1.08; text-transform: uppercase; }
body[data-page-kind='recipes'] .recipes-slider-summary strong { color: var(--ink); font: 400 54px/1 var(--serif); }
body[data-page-kind='recipes'] .recipes-slider-summary em { color: var(--muted); font: 14px/1.4 var(--sans); font-style: normal; }
body[data-page-kind='recipes'] .recipes-slider-summary .ui-icon { width: 24px; height: 24px; margin-top: 12px; }

body[data-page-kind='recipes'] .recipes-browse { padding: 0 0 56px; }
body[data-page-kind='recipes'] .recipes-browse > h2 { margin: 0 0 16px; text-align: center; font-size: 28px; }
body[data-page-kind='recipes'] .recipes-tabs { display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 60px; }
body[data-page-kind='recipes'] .recipes-tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex: 0 0 230px; min-width: 0; height: 52px; padding: 0 14px; border-radius: 0; color: var(--muted); background: transparent; font: 18px/1.15 var(--hand); letter-spacing: .1em; text-align: center; text-transform: uppercase; }
body[data-page-kind='recipes'] .recipes-tab::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--tab-fill); -webkit-mask: url('/assets/recipes/folder-tab-ingredients.svg') center / 100% 100% no-repeat; mask: url('/assets/recipes/folder-tab-ingredients.svg') center / 100% 100% no-repeat; pointer-events: none; }
body[data-page-kind='recipes'] .recipes-tab[data-recipes-tab='occasions'] { --tab-fill: #F2E1DA; }
body[data-page-kind='recipes'] .recipes-tab[data-recipes-tab='ingredients'] { --tab-fill: #EBE3D2; }
body[data-page-kind='recipes'] .recipes-tab[data-recipes-tab='types'] { --tab-fill: #F5E6C8; }
body[data-page-kind='recipes'] .recipes-tab[aria-selected='true'] { color: var(--brick); z-index: 3; height: 60px; flex-basis: 220px; }
body[data-page-kind='recipes'] .recipes-tab[aria-selected='true']::before { -webkit-mask-image: url('/assets/recipes/folder-tab-active.svg'); mask-image: url('/assets/recipes/folder-tab-active.svg'); }
body[data-page-kind='recipes'] .recipes-tab + .recipes-tab { margin-left: -24px; }
body[data-page-kind='recipes'] .recipes-browse-panel { padding: 24px; background: var(--envelope); }
body[data-page-kind='recipes'] .recipes-browse-panel[data-recipes-panel='occasions'] { background: #F2E1DA; }
body[data-page-kind='recipes'] .recipes-browse-panel[data-recipes-panel='ingredients'] { background: #EBE3D2; }
body[data-page-kind='recipes'] .recipes-browse-panel[data-recipes-panel='types'] { background: #F5E6C8; }
body[data-page-kind='recipes'] .recipes-browse-grid { display: grid; gap: 16px; }
body[data-page-kind='recipes'] .recipes-browse-grid-occasions { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 230px; }
body[data-page-kind='recipes'] .recipes-browse-grid-occasions .recipes-browse-tile:nth-child(-n+3) { grid-column: span 2; }
body[data-page-kind='recipes'] .recipes-browse-grid-occasions .recipes-browse-tile:nth-child(n+4) { grid-column: span 3; }
body[data-page-kind='recipes'] .recipes-browse-grid-ingredients,
body[data-page-kind='recipes'] .recipes-browse-grid-types { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; }
body[data-page-kind='recipes'] .recipes-browse-tile { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 0; padding: 14px 12px; overflow: hidden; background: #FFFAF0; }
body[data-page-kind='recipes'] .recipes-browse-tile-label { align-self: stretch; color: var(--burgundy); font: 24px/1.2 var(--hand); text-transform: uppercase; }
body[data-page-kind='recipes'] .recipes-browse-tile-label sup { color: var(--muted); font-size: 16px; vertical-align: baseline; }
body[data-page-kind='recipes'] .recipes-browse-tile-art,
body[data-page-kind='recipes'] .recipes-browse-tile-art-discovery { width: 48px; height: 48px; object-fit: contain; }
body[data-page-kind='recipes'] .recipes-browse-tile-motion { display: block; background: transparent; pointer-events: none; }
body[data-page-kind='recipes'] .recipes-browse-tile-arrow { position: absolute; top: 12px; right: 14px; color: var(--ink); font: 20px/1 var(--hand); }
body[data-page-kind='recipes'] .recipes-view-all { display: flex; justify-content: center; gap: 12px; padding-top: 24px; color: var(--brick); font: 18px/1.15 var(--hand); letter-spacing: .1em; text-transform: uppercase; }

body[data-page-kind='recipes'] .recipes-landing > .contact-band { width: 100%; margin: 0; padding-inline: 0; }
body[data-page-kind='recipes'] .recipes-landing > .contact-band + .no-script { margin: 24px auto 0; max-width: var(--page-max); }

@media (max-width: 1000px) {
  body[data-page-kind='recipes'] .recipes-landing { padding-block: 0 56px; }
  body[data-page-kind='recipes'] .recipes-hero { display: flex; flex-direction: column; gap: 24px; min-height: 536px; padding: 32px 0 7px; }
  body[data-page-kind='recipes'] .recipes-hero-art { order: 1; align-self: flex-start; align-items: flex-start; gap: 4px; width: 120px; }
  body[data-page-kind='recipes'] .recipes-hero-art img { width: 120px; height: 112px; }
  body[data-page-kind='recipes'] .recipes-hero-copy { order: 2; }
  body[data-page-kind='recipes'] .recipes-hero-copy .eyebrow { margin-bottom: 16px; }
  body[data-page-kind='recipes'] .recipes-hero-copy h1 { font-size: 28px; }
  body[data-page-kind='recipes'] .recipes-hero-lead { font-size: 18px; }
  body[data-page-kind='recipes'] .recipes-hero-actions { margin-top: 49px; }
  body[data-page-kind='recipes'] .recipes-hero-actions .button { min-height: 49px; padding: 13px 19px; font-size: 16px; }
  body[data-page-kind='recipes'] .recipes-occasion { width: 100%; padding: 32px 0; }
  body[data-page-kind='recipes'] .recipes-section-heading { display: block; margin-bottom: 72px; }
  body[data-page-kind='recipes'] .recipes-section-heading .eyebrow { margin-bottom: 12px; }
  body[data-page-kind='recipes'] .recipes-section-heading h2 { font-size: 24px; }
  body[data-page-kind='recipes'] .recipes-section-heading .text-link { display: inline-flex; margin-top: 8px; }
  body[data-page-kind='recipes'] .recipes-card-row { display: flex; gap: 16px; width: calc(100% + var(--page-gutter)); margin-right: calc(-1 * var(--page-gutter)); overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  body[data-page-kind='recipes'] .recipes-card-row::-webkit-scrollbar { display: none; }
  body[data-page-kind='recipes'] .recipes-card-row .recipe-card { flex: 0 0 304px; }
  body[data-page-kind='recipes'] .recipes-slider-summary {
    flex: 0 0 220px;
    min-height: 405px;
    padding: 18px;
  }
  body[data-page-kind='recipes'] .recipes-slider-summary-art { top: 22px; left: 18px; width: calc(100% - 36px); height: 145px; }
  body[data-page-kind='recipes'] .recipes-card-row .photo-stage { height: 405px; }
  body[data-page-kind='recipes'] .recipes-card-row .recipe-card h3 { font-size: 18px; }
  body[data-page-kind='recipes'] .recipes-browse { width: 100%; padding-bottom: 32px; }
  body[data-page-kind='recipes'] .recipes-browse > h2 { font-size: 24px; }
  body[data-page-kind='recipes'] .recipes-tabs { gap: 2px; }
  body[data-page-kind='recipes'] .recipes-tab { min-width: 0; flex: 1 1 0; padding: 7px 4px; font-size: 18px; letter-spacing: .05em; }
  body[data-page-kind='recipes'] .recipes-tab[aria-selected='true'] { flex-basis: 0; }
  body[data-page-kind='recipes'] .recipes-tab + .recipes-tab { margin-left: 0; }
  body[data-page-kind='recipes'] .recipes-tab:not([aria-selected='true']) { height: 42px; }
  body[data-page-kind='recipes'] .recipes-browse-panel { padding: 12px; }
  body[data-page-kind='recipes'] .recipes-browse-grid { gap: 10px; }
  body[data-page-kind='recipes'] .recipes-browse-grid-occasions,
  body[data-page-kind='recipes'] .recipes-browse-grid-ingredients,
  body[data-page-kind='recipes'] .recipes-browse-grid-types { grid-template-columns: 1fr; grid-auto-rows: 150px; }
  body[data-page-kind='recipes'] .recipes-browse-grid-occasions .recipes-browse-tile:nth-child(n),
  body[data-page-kind='recipes'] .recipes-browse-grid-ingredients .recipes-browse-tile:nth-child(n),
  body[data-page-kind='recipes'] .recipes-browse-grid-types .recipes-browse-tile:nth-child(n) { grid-column: auto; }
  body[data-page-kind='recipes'] .recipes-browse-tile { padding: 10px 12px; }
  body[data-page-kind='recipes'] .recipes-browse-tile-label { font-size: 20px; }
  body[data-page-kind='recipes'] .recipes-browse-tile-art,
  body[data-page-kind='recipes'] .recipes-browse-tile-art-discovery { width: 48px; height: 48px; }
  body[data-page-kind='recipes'] .recipes-browse-tile-arrow { top: 10px; right: 12px; }
}

/* Tablet keeps the desktop hero relationship while retaining compact shell chrome. */
@media (min-width: 701px) and (max-width: 1000px) {
  body[data-page-kind='recipes'] .recipes-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 36px;
    min-height: 400px; padding: 32px 0;
  }
  body[data-page-kind='recipes'] .recipes-hero-copy { order: 1; }
  body[data-page-kind='recipes'] .recipes-hero-art { order: 2; align-self: start; align-items: center; width: 160px; gap: 4px; }
  body[data-page-kind='recipes'] .recipes-hero-art img { width: 160px; height: 150px; }
  body[data-page-kind='recipes'] .recipes-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
  }
  body[data-page-kind='recipes'] .recipes-section-heading .text-link {
    margin-top: 0;
  }
  body[data-page-kind='recipes'] .recipes-tabs { gap: 0; }
  body[data-page-kind='recipes'] .recipes-tab { flex: 0 0 230px; padding-inline: 14px; }
  body[data-page-kind='recipes'] .recipes-tab[aria-selected='true'] { flex-basis: 220px; }
  body[data-page-kind='recipes'] .recipes-tab:not([aria-selected='true']) { height: 52px; }
  body[data-page-kind='recipes'] .recipes-tab + .recipes-tab { margin-left: -24px; }
  body[data-page-kind='recipes'] .recipes-browse-panel { padding: 24px; }
  body[data-page-kind='recipes'] .recipes-browse-grid { gap: 16px; }
  body[data-page-kind='recipes'] .recipes-browse-grid-occasions { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 180px; }
  body[data-page-kind='recipes'] .recipes-browse-grid-occasions .recipes-browse-tile:nth-child(-n+3) { grid-column: span 2; }
  body[data-page-kind='recipes'] .recipes-browse-grid-occasions .recipes-browse-tile:nth-child(n+4) { grid-column: span 3; }
  body[data-page-kind='recipes'] .recipes-browse-grid-ingredients,
  body[data-page-kind='recipes'] .recipes-browse-grid-types { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; }
  body[data-page-kind='recipes'] .recipes-browse-tile-label { font-size: 24px; }
}

@media (max-width: 360px) {
  body[data-page-kind='recipes'] .recipes-card-row .recipe-card { flex-basis: 280px; }
}

/* Folder tabs rise into their selected state without changing layout width. */
body[data-page-kind='recipes'] .recipes-tab,body[data-page-kind='recipes'] .recipes-tab[aria-selected='true'],body[data-page-kind='recipes'] .recipes-tab:not([aria-selected='true']) { height:60px;flex:1 1 0;transition:color 180ms ease-out; }
body[data-page-kind='recipes'] .recipes-tab::before { transform:scaleY(.86);transform-origin:bottom;transition:transform 220ms cubic-bezier(.22,1,.36,1); }
body[data-page-kind='recipes'] .recipes-tab[aria-selected='true']::before { transform:scaleY(1); }
@media(hover:hover) and (pointer:fine) { body[data-page-kind='recipes'] .recipes-tab:hover { color:var(--brick); }body[data-page-kind='recipes'] .recipes-tab:not([aria-selected='true']):hover::before { transform:scaleY(.94); } }
body[data-page-kind='recipes'] .recipes-tab:active::before { transform:scaleY(.96); }
@media(max-width:600px) { body[data-page-kind='recipes'] .recipes-tab,body[data-page-kind='recipes'] .recipes-tab[aria-selected='true'],body[data-page-kind='recipes'] .recipes-tab:not([aria-selected='true']) { height:48px; } }
@media(prefers-reduced-motion:reduce) { body[data-page-kind='recipes'] .recipes-tab,body[data-page-kind='recipes'] .recipes-tab::before { transition:none; } }
@media(min-width:1001px){
 body[data-page-kind='recipes'] .recipes-browse-tile-art,body[data-page-kind='recipes'] .recipes-browse-tile-art-discovery{width:96px;height:96px}
}
body[data-page-kind='recipes'] .recipes-tabs:has(:focus-visible) .recipes-tab::before{transition:none}

/* Horizontal stacks keep a narrow edge of each earlier recipe in view. */
body[data-page-kind='recipes'] .recipes-card-row.is-card-stack{isolation:isolate;scroll-snap-type:none;padding-block:6px 12px}
body[data-page-kind='recipes'] #main .recipes-card-row.is-card-stack>*{position:sticky;left:var(--stack-inset);box-shadow:none}
body[data-page-kind='recipes'] #main .recipes-card-row.is-card-stack>.recipe-card{box-sizing:border-box;padding:16px;background:var(--ground)}
body[data-page-kind='recipes'] .recipes-card-row.is-card-stack::after{content:"";flex:0 0 max(0px,calc(100% - var(--stack-last-width) - var(--stack-end) - var(--stack-gap)))}
body[data-page-kind='recipes'] .recipes-browse-tile-art.recipes-browse-tile-scene{width:min(60%,170px);height:130px;object-fit:contain;mix-blend-mode:multiply}
@media(max-width:700px){
 body[data-page-kind='recipes'] .recipes-browse-tile-art.recipes-browse-tile-scene{width:75%;height:100px}
}

/* Pale padded cards overlap directly, with no cast shadow. */
body[data-page-kind='recipes'] #main .recipes-card-row.is-card-stack>.recipe-card:focus-within{background:var(--paper)}
@media(hover:hover) and (pointer:fine){
 body[data-page-kind='recipes'] #main .recipes-card-row.is-card-stack>.recipe-card:hover{background:var(--paper)}
}
@media(max-width:700px){
 body[data-page-kind='recipes'] #main .recipes-card-row.is-card-stack>.recipe-card{padding:12px}
}

/* One illustrated collection card holds the count and the promise of more. */
body[data-page-kind='recipes'] .recipes-slider-summary{background:var(--media);justify-content:space-between}
body[data-page-kind='recipes'] .recipes-slider-summary-visual{display:flex;flex-direction:column;align-items:center;gap:18px}
body[data-page-kind='recipes'] .recipes-slider-summary-art{position:static;width:100%;height:clamp(145px,20vw,260px)}
body[data-page-kind='recipes'] .recipes-slider-more{color:var(--brick);font:18px/1.2 var(--hand);letter-spacing:.08em;text-transform:uppercase;text-align:center}

.recipes-archive-action{display:flex;justify-content:center;padding:16px 0 64px}
