/* Prices: the leader ledger, the photo mounts beside it, and the worked check on an orange slip. */

/* OPENING ON PHONES: the h1 plate gets the full width so it reads whole; the lane keeps a short label beside the question. */
@media (max-width: 47.99rem) {
  .opening .row__q { display: contents; }
  .opening .plate--h1 {
    grid-column: 1 / -1; justify-self: start;
    max-width: 100%;
    margin-top: 1rem;
    padding: 1.15rem 1rem .8rem;
    font-size: 1.125rem;
  }
  .opening .q-short {
    grid-column: 1; grid-row: 2;
    padding-top: clamp(1.5rem, 6vh, 4rem);
    font-size: var(--t-small); line-height: 1.3;
  }
  .opening .row__a { grid-column: 2; grid-row: 2; padding-left: .75rem; }
}

/* NO DEAD GREEN: the opening question closes tight, and the plates row opens tight, so the first price sits high in the first window. */
.opening .row__a { padding-bottom: clamp(.5rem, 1.5vh, 1rem); }
.row--plates .row__q, .row--plates .row__a { padding-top: clamp(.5rem, 1.5vh, 1rem); }

/* PRICE GRID: the three plates sit beside the steak, the substitutions beside the two-egg plate; each photograph takes the whole width of the right column and starts level with the block it belongs to. */
.pricegrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}
.pricegrid > * { min-width: 0; }
.pricegrid > .mount { width: 100%; }
.pricegrid > .tear { grid-column: 1 / -1; margin: 0; }
.pricegrid__plates > * + *,
.pricegrid__subs > * + * { margin-top: 1rem; }
.pricegrid__subs > .perf { margin-top: 1.75rem; }
.mount--steak { order: -1; }
@media (min-width: 62rem) {
  .pricegrid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .mount--steak { order: 0; }
}

/* LEADERS: the name keeps its own column and wraps inside it; the dotted run goes from the end of its last line to the price. Each row is a link to the dish's own page. */
.leaders { list-style: none; padding: 0; margin: 0; }
.leaders li { padding-block: .8rem; }
.leaders li:first-child { padding-top: .4rem; }
.leader { display: flex; align-items: flex-end; gap: .6rem; }
.leader__name {
  flex: 0 1 auto; min-width: 0;
  max-width: 55%;
  font-size: var(--t-lead); line-height: 1.25;
  background: none;
  text-decoration: underline;
  text-decoration-thickness: .125rem;
  text-underline-offset: .16em;
}
.leader__name:hover, .leader__name:focus-visible { text-decoration-thickness: .1875rem; }
.leader__dots {
  flex: 1 1 2.5rem; min-width: 2.5rem;
  margin-bottom: .45rem;
  border-bottom: .2rem dotted currentColor;
}
.leader__price {
  flex: none;
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.leader__line { margin-top: .35rem; font-size: var(--t-small); line-height: 1.4; max-width: 34rem; }
.leaders--sub li { padding-block: .6rem; }
.leaders--sub .leader__name { font-size: var(--t-body); }
.leaders--sub .leader__price { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.leader__unit { font-size: var(--t-small); }
.note { max-width: 36rem; }

/* THE CHECK: one orange slip, notched at the top, perforated at the bottom, written in Kalam like a server's ticket. */
.ticket {
  max-width: 34rem;
  padding: 1.75rem clamp(1rem, 3vw, 1.75rem) .4rem;
  font-family: var(--hand);
}
.ticket__lines { list-style: none; margin: 0; padding: 0; }
.ticket__lines li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0 1rem;
  padding: .2rem 0;
  font-size: var(--t-note); line-height: 1.3;
}
.ticket__lines li span:last-child { white-space: nowrap; }
.ticket .tear { margin-top: 1rem; }
.ticket__total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0 .9rem;
  margin-top: .6rem;
  font-size: var(--t-note); line-height: 1.2;
}
.ticket__sum { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.1; }
.ticket .perf { margin: .9rem 0 .5rem; }
.check__text > * + * { margin-top: 1.1rem; }
.check__text .facts { margin-top: 1.25rem; }
.check__text .facts dd { white-space: nowrap; }
@media (max-width: 47.99rem) {
  .check__text .facts > div { flex-wrap: wrap; gap: 0 1rem; }
}
