/* /table — Tonight's Tray */
.gh-tb-head { background: var(--ink); color: var(--rice); padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(20px, 3vw, 36px); }
.gh-tb-head__inner { max-width: var(--max); margin: 0 auto; }
.gh-tb-head .gh-kicker { color: var(--seal); }
.gh-tb-head h1 { margin: 0; font-weight: 860; font-stretch: 68%; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .9; }
.gh-tb-head .gh-lede { color: rgba(243, 236, 223, .82); }

.gh-tb {
  max-width: var(--max); margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.gh-tb__plan { position: sticky; top: 16px; display: grid; gap: 18px; }
.gh-tb__planbox { background: var(--ink); padding: clamp(10px, 2vw, 22px); }
.gh-tb__svg { width: 100%; height: auto; }
.gh-tb__seatbowl { cursor: pointer; }
.gh-tb__out { background: var(--surface); border: 1.5px solid var(--fg); padding: 18px 20px; }
.gh-tb__outhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gh-tb__out h2 { margin: 0; font-weight: 840; font-stretch: 76%; text-transform: uppercase; font-size: 26px; }
.gh-tb__tray { display: block; margin: 12px 0 0; padding: 14px 16px; background: var(--ink); color: var(--rice); font-size: 17px; line-height: 1.5; }
.gh-tb__tray strong { color: var(--seal); }
.gh-tb__lines { list-style: none; margin: 12px 0 0; padding: 0; }
.gh-tb__lines li { display: grid; grid-template-columns: 7.5em auto 1fr; gap: 4px 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15.5px; }
.gh-tb__who { font-weight: 750; overflow-wrap: anywhere; }
.gh-tb__stop { font-weight: 900; font-family: var(--f-zh); white-space: nowrap; }
.gh-tb__amt { color: var(--fg-2); }
.gh-tb__allergens { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--chili); background: var(--bg); font-size: 14px; line-height: 1.45; }
.gh-tb__fine { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.gh-tb__fine a { color: var(--link); }
.gh-tb__actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gh-tb__status { margin: 10px 0 0; min-height: 1.2em; font-weight: 650; font-size: 14.5px; }

.gh-tb__form { display: grid; gap: 16px; }
.gh-tb__dish { display: grid; gap: 8px; }
.gh-tb__dish label { font-weight: 750; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.gh-tb__dish select { min-height: 50px; padding: 0 12px; border: 1.5px solid var(--fg); background: var(--surface); color: var(--fg); border-radius: 0; font-size: 17px; font-weight: 650; }
.gh-tb__dishnote { margin: 0; font-size: 15px; color: var(--fg-2); }
.gh-tb__dishnote [data-dishzh] { font-weight: 900; margin-right: 6px; color: var(--accent); }
.gh-tb__seats { display: grid; gap: 12px; }
.gh-seat { margin: 0; padding: 14px 16px 12px; border: 1.5px solid var(--fg); background: var(--surface); display: grid; gap: 10px; min-width: 0; }
.gh-seat > legend { font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; padding: 0 6px; }
.gh-seat__name { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; }
.gh-seat__name input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--rule-strong); background: var(--bg); color: var(--fg); border-radius: 0; font-size: 16px; font-weight: 650; }
.gh-seat__scale { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 4.6rem repeat(4, 1fr); gap: 4px; align-items: stretch; min-width: 0; }
.gh-seat__scale legend { float: left; padding: 0; font-size: 13px; font-weight: 700; align-self: center; }
.gh-seat__scale legend [lang] { font-size: 16px; font-weight: 900; }
.gh-seat__scale label { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 44px; padding: 6px 2px 5px; border: 1.5px solid var(--rule-strong); cursor: pointer; font-weight: 900; font-size: 16px; line-height: 1.15; text-align: center; background: var(--bg); }
.gh-seat__scale small { display: block; font-family: var(--f-ui); font-size: 11px; line-height: 1.2; }
.gh-seat__py { font-weight: 600; }
.gh-seat__en { font-weight: 700; font-stretch: 88%; letter-spacing: .02em; }
.gh-seat__scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gh-seat__scale label:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.gh-seat__scale:not(.gh-seat__scale--ma) label:nth-of-type(4):has(input:checked) { background: var(--chili); border-color: var(--chili); color: var(--steam); }
.gh-seat__scale--ma label:has(input:checked) { background: var(--hj); border-color: var(--hj); color: var(--steam); }
.gh-seat__scale label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.gh-seat__scale label.is-off { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.gh-seat__floor { margin: 0; font-size: 13.5px; color: var(--muted); }
.gh-tb__seatbtns:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-tb__sticky { display: none; }
.gh-tb__noscript { margin: 0; padding: 12px 14px; border: 1.5px dashed var(--fg); font-size: 15px; }
.gh-tb-ref .gh-lede { margin-bottom: 18px; }
.gh-tb-ref__more { margin-top: 18px; }
.gh-tb-print { display: none; }

@media (max-width: 960px) {
  .gh-tb { grid-template-columns: 1fr; }
  .gh-tb__plan { position: static; }
  .gh-tb__planbox { max-width: 560px; margin: 0 auto; width: 100%; }
  /* the result lives below the form on narrow screens, so a slim total rides along while you edit */
  .gh-tb__sticky:not([hidden]) {
    display: block; position: sticky; bottom: 0; z-index: 5; margin: 0; padding: 10px 14px;
    background: var(--ink); color: var(--rice); font-size: 14px; line-height: 1.4; border-top: 2px solid var(--chili);
  }
  .gh-tb__sticky strong { color: var(--seal); }
  /* keyboard focus never hides under the sticky total (WCAG 2.4.11) */
  html:has(.gh-tb__sticky:not([hidden])) { scroll-padding-bottom: 110px; }
}
@media (max-width: 360px) {
  .gh-seat { padding-inline: 8px; }
  .gh-seat__scale label { padding-inline: 0; }
}
@media (max-width: 560px) {
  .gh-seat__scale { grid-template-columns: repeat(4, 1fr); }
  .gh-seat__scale legend { float: none; grid-column: 1 / -1; margin-bottom: 2px; }
  .gh-tb__lines li { grid-template-columns: 1fr auto; }
  .gh-tb__amt { grid-column: 1 / -1; }
}

@media print {
  .gh-tb-head, .gh-tb__form, .gh-tb__sticky, .gh-tb__actions, .gh-tb__status, .gh-paper, .gh-tb__plan { display: none !important; }
  .gh-tb { display: block; padding: 0; }
  .gh-tb-print { display: block !important; color: #000; }
  .gh-tb-print__tray { border: 2px solid #000; padding: 16px; margin-bottom: 18px; font-size: 13pt; }
  .gh-tb-print__title { font-weight: 800; font-size: 18pt; margin: 0 0 8px; }
  .gh-tb-print__allergens { font-size: 10pt; margin: 10px 0 0; }
  .gh-tb-print__foot { font-size: 9pt; margin: 10px 0 0; }
  .gh-tb-print__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; break-before: page; }
  .gh-tb-card { border: 1px dashed #000; padding: 28px 20px; min-height: 4.6in; display: grid; align-content: center; justify-items: center; text-align: center; break-inside: avoid; }
  .gh-tb-card p { margin: 4px 0; }
  .gh-tb-card__name { font-size: 22pt; font-weight: 800; }
  .gh-tb-card__heat { font-family: var(--f-zh); font-weight: 900; font-size: 54pt; line-height: 1; }
  .gh-tb-card__py, .gh-tb-card__ma { font-size: 11pt; }
  .gh-tb-card__amt { font-size: 10.5pt; max-width: 3.2in; }
}
