/* ============================================================
   STORE OVERRIDES: KungFu Dumpling (Richmond) #47
   Store-level only, loaded LAST (after sen-v1.css) on /menu and /our-food.
   Never edit the generated NS files for store fixes (Atlas 2026-12-01 07:33, #42 precedent).
   ============================================================ */

/* F1 (Dennis R1): /menu category buttons were nowrap + ellipsis, so 3 of 7 labels were cut off
   in the 250px sidebar at 1024-1920. Labels wrap instead; size and padding unchanged, so a
   button is never shorter than before (one-line labels keep their height). */
:root .menu-buttons .menu-button {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* F2 (Dennis R1): on /our-food, text-only plates sat in the same grid row as photo plates and
   stretched to the photo height (big blank cards). Photo plates now have their own grid
   (flex-wrap, centred, never a blank slot); the text-only dishes follow as a compact list. */
:root .plates-track--photo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
:root .plates-track--photo > .plate { flex: 0 1 360px; }
/* exactly 4 photo plates = an even 2 x 2, never 3 + 1 */
:root .plates-track--photo:has(> .plate:nth-child(4):last-child) {
  max-width: calc(2 * 360px + 1.25rem);
  margin-inline: auto;
}
@media (max-width: 600px) {
  :root .plates-track--photo > .plate { flex-basis: 100%; }
}

.dish-list {
  list-style: none;
  margin: 1.75rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  column-gap: 2.25rem;
}
/* short lists: auto-fit leaves no empty column; cap the width so 1-2 entries never stretch past ~75ch */
.dish-list:not(:has(> li:nth-child(3))) { max-width: calc(52rem + 2.25rem); }
.dish-list:not(:has(> li:nth-child(2))) { max-width: 26rem; }
.dish-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.dish-list h3 {
  grid-column: 1;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.dish-list .dish-list__price {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
  font-size: 1rem;
  color: var(--chili-dark);
  white-space: nowrap;
}
.dish-list p {
  grid-column: 1 / -1;
  margin: 0.3rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--sv-body, var(--muted));
}
