/* Every material keeps its photograph, authored text and reading action when filtered. */
.recipe-chooser { margin-block: clamp(1.5rem, 3vw, 2.5rem) 2rem; }
.recipe-chooser[hidden], [data-recipe-opening][hidden], [data-recipe-feature][hidden], .recipe-editorial-pair[hidden], .recipe-record-directory[hidden], .recipe-record[hidden], .recipes-page #meals[hidden], .recipes-page .recipe-jump[hidden] { display: none; }
.recipe-chooser h2 { margin: 0 0 1rem; font: 400 clamp(1.75rem, 1.35rem + 1.1vw, 2.5rem) / 1.15 var(--serif); }
.recipe-ingredients { display: flex; flex-wrap: wrap; gap: .4rem .75rem; }
.recipe-ingredients button { display: inline-flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: var(--text-interface); line-height: 1.3; cursor: pointer; }
.recipe-ingredients button span { color: var(--muted); font-size: .8em; font-variant-numeric: tabular-nums; }
.recipe-ingredients button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.recipe-ingredients button[aria-pressed="true"] span { color: inherit; }
.recipe-ingredients button:hover { border-color: var(--ink); }
.recipe-filter-status { margin: 1rem 0 0; color: var(--muted); font-size: var(--text-meta); }
.recipe-record-directory { margin-top: var(--recipe-space); }
.recipes-page .about-preview { margin-top: var(--recipe-space); padding-bottom: 0; }
.recipes-page[data-ingredient]:not([data-ingredient="all"]) [data-recipe-opening][hidden] + .recipe-record-directory { margin-top: 0; }
.recipe-record-heading { margin-bottom: 2rem; }
.recipes-page[data-recipe-count="1"] .recipe-record-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.recipe-record-heading h2 { margin: 0; font: 400 clamp(2.25rem, 1.65rem + 1.7vw, 3.5rem) / 1.1 var(--serif); }
.recipe-record-heading p, .recipe-record-meta { margin: 0; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.recipe-records { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--recipe-space); }
.recipe-record { min-width: 0; display: grid; grid-template-columns: var(--photo-copy-columns); gap: var(--photo-copy-gap); align-items: start; scroll-margin-top: 6rem; }
.recipe-record-copy { min-width: 0; }
.recipe-record-copy .recipe-record-meta { margin-bottom: 1.3rem; }
.recipe-record-story { display: block; min-height: 44px; color: var(--ink); text-decoration: none; }
.recipe-record-photo img { display: block; width: 100%; height: auto; }
.recipe-record-photo { display: block; min-height: 44px; }
.recipe-record h3 { margin: 0; font: 400 clamp(2.5rem, 1.4rem + 2.7vw, 4rem) / 1.08 var(--serif); text-wrap: balance; overflow-wrap: anywhere; }
.recipe-record-story:is(:hover, :focus-visible) h3 { color: var(--text-link); }
.recipe-record-excerpt { max-width: 46ch; margin-top: 1.75rem; }
.recipe-record-excerpt p { margin: 0 0 .85rem; text-wrap: pretty; }
.recipe-record-excerpt p:last-child { margin-bottom: 0; }
.recipe-record-read { margin-top: 1.25rem; }
.recipe-record-products { container: recipe-products / inline-size; display: grid; gap: .5rem; margin-top: 1.25rem; }
.recipe-record-product { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: first baseline; gap: .2rem .65rem; min-width: 0; min-height: 44px; padding-block: .3rem; color: var(--text-link); text-decoration: none; font-size: var(--text-interface); font-weight: 400; }
.recipe-record-product::before { position: absolute; inset-inline: 0; top: calc(.3rem + .85em); border-bottom: 1px dotted var(--muted); content: ""; opacity: .55; pointer-events: none; }
.recipe-record-product__label { position: relative; z-index: 1; min-width: 0; }
.recipe-record-product__name { background: var(--paper); box-shadow: .65rem 0 0 var(--paper); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.recipe-record-product__price { position: relative; z-index: 1; display: inline-flex; align-items: first baseline; gap: .65rem; max-width: 100%; background: var(--paper); box-shadow: -.65rem 0 0 var(--paper); color: var(--muted); }
@container recipe-products (max-width: 16em) {
  .recipe-record-product { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .recipe-record-product::before { content: none; }
  .recipe-record-product__price { justify-self: start; flex-wrap: wrap; box-shadow: none; }
}
.recipe-record-product:hover > span:first-child { color: var(--text-link); }
@media (hover: hover) { .recipe-record-product:hover > span:first-child { text-decoration: underline; text-underline-offset: .2em; } }
@media (width <= 46rem) {
  .recipe-record { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .recipe-record h3 { font-size: clamp(2.25rem, 1.5rem + 4vw, 2.75rem); }
  .recipe-record-heading { margin-bottom: 1.5rem; }
  .recipe-chooser { margin-bottom: 1.25rem; }
  .recipe-chooser h2 { margin-bottom: .75rem; }
  .recipe-filter-status { margin-top: .5rem; }
}
@media (width <= 28rem) {
  /* A discretionary hyphen must not push an enlarged bound phrase past the edge. */
  .recipe-record h3 { hyphens: none; }
  .recipe-record-product__price { flex-wrap: wrap; }
}
@media (forced-colors: active) { .recipe-ingredients button[aria-pressed="true"] { outline: 2px solid Highlight; } }
