/* Product page: loads after site.css and runs in the order the page is read. */

/* Ground wrapper: one block of yellow or petrol between header and footer. */
.hold-ground { flex: 1 0 auto; }
.band-short { padding-block: clamp(1.5rem, 5vh, 3rem); }

/* Opening: words and the plate-or-room switch at left, the cut photograph at right, tops level. */
.start-product {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--measure-part) clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.5rem, 4vh, 3rem);
}
.say-product { flex: 1 1 20rem; }
.name-product { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; }
.say-product h1 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
.say-product .say-slogan { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.show-picture { flex: 1.4 1 30rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.show-picture .hold-photo img { aspect-ratio: 16 / 10; max-height: 56vh; }
.js .show-picture .hold-photo img { cursor: zoom-in; }
.show-picture .name-photo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; }
.ask-closer {
  padding: 0;
  font: inherit;
  font-family: var(--face-board);
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Plate-or-room switch: two hand-cut tabs, one picked, one a plain link. */
.flip-pair { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.flip-cell { flex: 1 1 12rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.flip-tab {
  display: inline-flex;
  align-items: center;
  min-height: var(--measure-tap);
  padding: 0.45rem 1.5rem 0.55rem 1.25rem;
  font-family: var(--face-board);
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--tone-type);
  background: transparent;
  box-shadow: inset 0 0 0 0.125rem currentColor;
  clip-path: polygon(0 10%, 5% 0, 56% 4%, 61% 0, 100% 6%, 97% 55%, 100% 100%, 28% 94%, 3% 100%);
  transition: color 180ms, background-color 180ms;
}
.flip-cell:nth-child(2) .flip-tab { clip-path: polygon(0 4%, 34% 0, 38% 6%, 100% 0, 98% 48%, 100% 94%, 64% 100%, 60% 92%, 4% 100%, 1% 50%); }
a.flip-tab:hover { color: var(--tone-floor); background: var(--tone-type); }
.flip-tab:focus-visible { outline-offset: -0.4rem; }
.flip-tab.picked {
  color: var(--tone-floor);
  background: var(--tone-type);
  box-shadow: inset 0 calc(-1 * var(--measure-bar)) 0 var(--tone-bar);
}
.say-flip { font-size: var(--step-fine); line-height: 1.35; }

/* Account and particulars: the paragraphs at left, the numbered facts as a column beside them. */
.pair-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--measure-part) clamp(1.5rem, 5vw, 4rem);
}
.pair-body > .set-copy { flex: 1 1 24rem; }
.pair-body .set-copy p { font-size: 1.125rem; }
.hold-facts { flex: 1 1 24rem; }
.list-facts .name-dish { flex: 0 0 7.5rem; }
.read-spec { flex: 1 1 10rem; font-size: 1.0625rem; }
@media (max-width: 40em) {
  .list-facts .name-dish { flex: 1 1 0; }
  .read-spec { flex-basis: 100%; padding-left: calc(var(--measure-number) + 1rem); }
}

/* Call band: the heading at left, one action row at right, everything at 17px. */
.close-product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--measure-part) 2.5rem;
}
.pass-row { justify-content: flex-start; gap: 0.5rem 2rem; }
.pass-row .pass-way { font-size: 1.0625rem; }
@media (min-width: 48em) {
  .pass-row { flex: 1 1 auto; justify-content: flex-end; }
}

/* Leading on: one wide picture and two equal ones at a shared height, tops level, captions under their own picture. */
.list-onward {
  display: flex;
  flex-direction: column;
  gap: 1.5rem clamp(1rem, 2.5vw, 2rem);
  padding: 0;
  list-style: none;
}
.pick-onward { min-width: 0; }
.pick-onward .hold-photo img { aspect-ratio: 4 / 3; }
@media (min-width: 48em) {
  .list-onward {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    align-items: start;
  }
  .pick-onward .hold-photo img { height: clamp(12rem, 22vw, 18rem); aspect-ratio: auto; }
}
.pick-onward .hold-photo a { display: block; }
.pick-onward .name-photo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.pick-onward h3 a { text-decoration: none; }
.pick-onward h3 a:hover { text-decoration: underline; }
.read-price { font-size: var(--step-read); }

/* Enlarged picture: a dialog the page script writes. */
.show-closer {
  --tone-floor: var(--tone-char);
  --tone-type: var(--tone-griddle);
  --tone-focus: var(--tone-griddle);
  width: min(92vw, 72rem);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  color: var(--tone-type);
  background: var(--tone-floor);
  border: 0;
  clip-path: polygon(0 1%, 30% 0, 100% 1.5%, 100% 99%, 70% 100%, 0 98.5%);
}
.show-closer::backdrop { background: rgb(17 35 38 / 0.88); }
.hold-closer { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; }
.hold-closer img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  filter: grayscale(1);
}
