.sampler-lede {
  margin-bottom: clamp(18px, 2vw, 30px);
}

.pick-side .pick-caption h2 { overflow-wrap: anywhere; }

.sample-sheets details:first-child {
  border-top: 1px solid var(--bar-rule);
}

.sample-sheets summary::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-inline: 5px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.sample-sheets details[open] > summary::after {
  content: "";
  width: 8px;
  height: 14px;
  margin-inline: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  background: none;
  transform: translateY(-2px) rotate(45deg);
}

.sample-sheets summary[aria-disabled="true"] {
  cursor: default;
}

.menu-table-photo {
  display: block;
  width: 100%;
  height: auto;
}

.sample-sheets details:not([open]) .menu-table-photo {
  display: none;
}

@media screen and (min-width: 861px) {
  .service-menus {
    --photo-width: 55.5%;
    position: relative;
    grid-template-columns: minmax(0, 1fr) var(--photo-width);
    column-gap: clamp(28px, 4.4vw, 78px);
    align-items: center;
  }

  /* Reserve the photograph's space while keeping it inside its own disclosure. */
  .service-menus::after {
    content: "";
    aspect-ratio: 3 / 2;
  }

  .menu-table-photo {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    width: var(--photo-width);
    transform: translateY(-50%);
  }
}

@media screen and (max-width: 860px) {
  .service-menus {
    display: block;
  }

  .menu-table-photo {
    margin-block: 12px 8px;
  }
}

@media screen and (max-width: 740px) {
  .recipe-shell {
    --page-gutter: clamp(16px, 4.8vw, 28px);
    width: calc(100% - 2 * var(--page-gutter));
    overflow-wrap: anywhere;
  }

  .edition-heading { padding-block: 1.15rem .8rem; }
  .edition-heading h1,
  .dish-heading h1 {
    font-size: clamp(2.9rem, 2.3rem + 3vw, 4.25rem);
    line-height: 1;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  .edition-heading p {
    max-width: 48ch;
    margin-top: .48rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .library-tools { display: block; margin: 0 0 .35rem; }
  .occasion-filter {
    margin-inline: calc(-1 * var(--page-gutter));
    padding: .25rem var(--page-gutter);
    flex-wrap: nowrap;
    gap: .35rem;
    overflow-x: auto;
    scroll-padding-inline: var(--page-gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--bar-rule) transparent;
  }
  .occasion-filter button {
    flex: none;
    padding: .5rem .85rem;
    line-height: 1.2;
    font-size: .94rem;
  }
  .occasion-filter button:focus-visible { outline-offset: 1px; }
  .jump-sampler { font-size: .94rem; }

  .pick-lead {
    display: block;
    margin-inline: calc(-1 * var(--page-gutter));
    margin-bottom: .9rem;
    aspect-ratio: auto;
  }
  .pick-lead::after { content: none; }
  .pick-lead .pick-image {
    position: relative;
    inset: auto;
    z-index: auto;
    aspect-ratio: 1.65;
    mask-image: linear-gradient(to bottom, black calc(100% - 3rem), transparent);
  }
  .pick-lead .pick-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .5rem;
    align-items: end;
    margin-block-start: -1.65rem;
    padding: 0 var(--page-gutter) 1.15rem;
  }
  .pick-lead .pick-caption > :not(.pick-open) { grid-column: 1; }
  .pick-lead h2 {
    margin-block: .15rem .2rem;
    font-size: clamp(2.8rem, 2.4rem + 2.8vw, 4.3rem);
    letter-spacing: -.028em;
  }
  .pick-lead .pick-open { position: static; grid-area: 2 / 2 / 4; }

  .pick-side { display: flex; flex-wrap: wrap; gap: .9rem; }
  .pick-side .pick-image { flex: 2 1 min(100%, 6.7rem); align-self: center; height: auto; }
  .pick-side .pick-caption { flex: 3 1 min(100%, 9rem); }
  .pick-side h2,
  .pick-library .pick-caption h2 {
    font-size: clamp(1.8rem, 1.45rem + 1.8vw, 2.4rem);
    line-height: 1.04;
    letter-spacing: -.02em;
  }
  .pick-side .pick-caption p,
  .pick-library .pick-caption p { font-size: .875rem; }
  .pick-side .pick-flavour,
  .pick-library .pick-flavour { font-size: .94rem; }
  .library-grid, .recipe-selection[data-filtered] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, 34%)), 1fr));
    gap: 1.7rem 1rem;
  }
  .pick-library .pick-image { aspect-ratio: 1.4; }

  .back-to-menu { font-size: 1rem; }
  .dish-cover {
    display: flex;
    flex-direction: column;
    margin-inline: calc(-1 * var(--page-gutter));
    padding: 0;
  }
  .dish-cover::after { content: none; }
  .dish-scene {
    position: relative;
    order: -1;
    z-index: auto;
    height: auto;
    aspect-ratio: 1.9;
  }
  .dish-heading {
    align-self: stretch;
    padding: 1rem var(--page-gutter) 1.15rem;
  }
  .dish-heading h1 { margin-block: .24rem .35rem; }
  .dish-intro { max-width: 45ch; line-height: 1.5; }
  .dish-meta { font-size: .94rem; font-weight: 600; }

  .workbench {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 1.6rem 2rem;
    gap: 1.75rem;
  }
  .workbench h2 { font-size: 2.3rem; }
  .measures {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem .75rem;
  }
  .measures > :is(ul, p) { flex-basis: 100%; }
  .portion-switch { margin: 0; min-inline-size: 0; flex-wrap: wrap; }
  .portion-switch legend,
  .bar-note, .batch-note { font-size: .96rem; }
  .portion-switch legend { padding-inline-end: .5rem; }
  .portion-switch span { min-width: max(45px, 2.5rem); height: auto; min-height: max(44px, 2.5rem); font-size: 1rem; }
  .measures-list { margin: .15rem 0 0; }
  .measures-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding-block: .63rem;
    line-height: 1.4;
  }
  .measures-list strong {
    font-size: 1.125rem;
    text-align: end;
    white-space: normal;
    max-width: 10ch;
  }
  .method li, .table-service p { font-size: 1.0625rem; line-height: 1.55; }
  .method { margin-top: .75rem; }
  .method li { padding-left: 1.75rem; }
  .menu-quote blockquote { line-height: 1.22; }
}

.recipe-search { width: min(19rem, 100%); min-width: 0; }
.recipe-search input { min-width: 0; width: 100%; font-size: 1rem; }
.recipe-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  color: var(--bar-sub);
  font-size: .94rem;
}
.recipe-feedback:has(button:not([hidden])) { margin-block: .25rem .65rem; }
#reset-recipes {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--bar-accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.ingredient-product {
  color: var(--bar-accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
@media (max-width: 740px) {
  .recipe-search { width: 100%; margin-bottom: .4rem; }
  .measures-list li:has(.ingredient-product) { padding-block: 0; }
  .ingredient-product { display: inline-flex; align-items: center; min-height: 44px; }
}
