/* Thai Baan: taps, the language control and Thai mode. Loaded after style.css and theme.css; the header's layout is menu.css. */

/* No double-tap zoom: a tap is a tap. Pinch zoom stays for people who need it. */
:where(html, body, a, button, input, select, textarea, label, summary, [role="button"], .food-card) { touch-action: manipulation; }

/* The language control is one design-system button (two languages) or select (more), on the venue's dark tokens (data-theme="dark"
   data-venue="thaibaan" on <html>: the page is dark-only, while chockers.css follows the phone's scheme and drew black on black).
   The button holds every language's name in one cell and hides the unused ones, so it keeps one width in every language. */
.lang-select .ck-btn { display: grid; justify-items: center; }
.lang-select .ck-btn > span { grid-area: 1 / 1; }
.lang-select .ck-btn > [aria-hidden="true"] { visibility: hidden; }
.lang-select .ck-select { min-inline-size: calc(var(--space-6) * 3 + var(--space-1)); }   /* shortcut: a select is as wide as its chosen name; this floor fits names up to Svenska. Widen it when a longer name joins the list. */

/* Thai mode: item names are translated in place, so the separate Thai-name line would repeat them. */
html[data-lang="th"] .name-th { display: none; }

/* The logo word stays on a phone while the search is used or a Book or Stamps button shows (style.css hides it there). */
@media (max-width: 719px) {
  .hero:has(.search-bar:focus-within) .brand-word, .hero:has(.hero-book:not([hidden])) .brand-word, .hero:has(.hero-stamps:not([hidden])) .brand-word { display: initial; }
}
