/* =========================================================================
   MENUS — tabs, ruled dish rows, shortlist tray
   The dish row is the signature element: a printed banquet card, with the
   selection control built into the line rather than bolted onto a card.
   ========================================================================= */

.menu-tabs {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--hairline);
}

.menu-tablist {
  display: flex;
  gap: clamp(6px, 2vw, 28px);
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-tablist::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  position: relative;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 2px;
  font-family: var(--font-display);
  font-size: var(--h4);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.menu-tab:hover {
  color: var(--charcoal);
}

.menu-tab[aria-selected="true"] {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

.menu-tab .tab-count {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--burgundy);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}

@media (max-width: 1000px) {
  .menu-tabs {
    top: var(--header-height-mobile);
  }
}

/* ---- Direction header ---- */
.menu-direction-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 52px);
  border-bottom: var(--hairline);
  align-items: start;
}

.menu-direction-head .standfirst {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--burgundy);
  margin-bottom: var(--space-4);
  max-width: 34ch;
}

.planning-notes {
  background: var(--cream);
  border: var(--hairline);
  padding: var(--space-5);
}

.planning-notes h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: var(--space-4);
}

.planning-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.planning-notes li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 10px;
}

.planning-notes li:last-child {
  margin-bottom: 0;
}

.planning-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--brass);
}

@media (max-width: 880px) {
  .menu-direction-head {
    grid-template-columns: 1fr;
  }
}

/* ---- Courses ---- */
.course {
  padding-block: clamp(28px, 3.5vw, 44px);
  border-bottom: var(--hairline);
}

.course:last-of-type {
  border-bottom: 0;
}

.course-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}

.course-head h3 {
  font-size: var(--h3);
}

.course-head p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---- The dish row ---- */
.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
}

.dish-row {
  margin: 0;
  border-bottom: var(--hairline);
}

.dish-button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--space-4);
  width: 100%;
  background: none;
  border: 0;
  padding: 16px 12px 16px 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}

.dish-button:hover {
  background: rgba(125, 24, 56, 0.035);
}

.dish-mark {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--paper);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease);
}

.dish-mark svg {
  width: 13px;
  height: 13px;
}

.dish-button:hover .dish-mark {
  border-color: var(--burgundy);
}

.dish-button[aria-pressed="true"] .dish-mark {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--paper);
}

.dish-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  width: 100%;
}

.dish-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.25;
}

.dish-button[aria-pressed="true"] .dish-name {
  color: var(--burgundy);
}

/* Leader dots, the way a printed menu sets a line. */
.dish-leader {
  flex: 1;
  min-width: 18px;
  height: 1px;
  align-self: flex-end;
  margin-bottom: 6px;
  background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1px);
  background-size: 5px 1px;
  background-repeat: repeat-x;
}

.dish-signature {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.dish-description {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: 5px;
  max-width: 68ch;
}

.dish-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--brass-ink);
  margin-top: 4px;
}

.dish-tags {
  margin-top: 9px;
}

@media (max-width: 560px) {
  .dish-line {
    flex-wrap: wrap;
  }
  .dish-leader {
    display: none;
  }
  .dish-name {
    font-size: var(--text-lg);
  }
}

/* ---- Shortlist tray ---- */
.tray-wrap {
  position: sticky;
  bottom: 0;
  z-index: 45;
  margin-top: var(--space-6);
}

.tray {
  background: var(--charcoal);
  color: var(--cream);
  border-top: 2px solid var(--brass);
  padding: var(--space-4) 0 var(--space-5);
}

.tray-inner {
  display: grid;
  gap: var(--space-4);
}

.tray-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.tray-count {
  font-family: var(--font-display);
  font-size: var(--h4);
  color: var(--paper);
}

.tray-count strong {
  color: var(--brass);
  font-weight: 600;
}

.tray-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tray-clear {
  background: none;
  border: 1px solid rgba(244, 238, 228, 0.4);
  color: var(--cream);
  padding: 9px 14px;
  font-size: var(--text-xs);
  font-weight: 650;
  cursor: pointer;
  border-radius: var(--radius);
  min-height: 40px;
}

.tray-clear:hover {
  border-color: var(--cream);
  color: var(--white);
}

.tray-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 132px;
  overflow-y: auto;
}

.tray-chips li {
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 238, 228, 0.1);
  border: 1px solid rgba(244, 238, 228, 0.24);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: var(--text-xs);
  color: var(--cream);
}

.chip button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: rgba(244, 238, 228, 0.75);
  cursor: pointer;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
}

.chip button:hover {
  background: var(--burgundy);
  color: var(--white);
}

.tray-empty {
  font-size: var(--text-sm);
  color: rgba(244, 238, 228, 0.75);
  margin: 0;
}

@media (max-width: 720px) {
  .tray-wrap {
    margin-bottom: 0;
  }
  .tray-actions {
    margin-left: 0;
    width: 100%;
  }
  .tray-actions .button {
    flex: 1;
  }
}

/* ---- Menu disclaimer ---- */
.menu-disclaimer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-disclaimer li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.menu-disclaimer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--burgundy);
}
