/* Thai Baan venue theme. Loaded after /style.css — overrides its tokens
   with Thai Baan's own palette, sourced from the real site
   (thaibaanrestaurant.com.au): near-black background, warm gold accent.
   The faces are the venue's own (Lexend, Lancelot: section "Faces" below); the menu page's layout is menu.css.
   Thai Baan is always dark — it does not follow the
   phone's light/dark setting the way the base theme does (LA-10), because
   the venue's own site never goes light either. LA-12/LA-17. */
/* ---- Faces: the venue's own, from thaibaanrestaurant.com.au (SPEC/venue-styling-thaibaan.md 3). Lexend (variable, 300 to 700) for text and
   controls; Lancelot (400) for headings. Self-hosted beside this file with their OFL licences: a customer page never calls Google. A file
   loads only when the page has a glyph in its range; Thai has no glyph in either, so it falls to Sarabun Thai (chockers.css). ---- */
@font-face { font-family: 'Lexend'; src: url('/v/thaibaan/fonts/lexend-latin.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; src: url('/v/thaibaan/fonts/lexend-latin-ext.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lancelot'; src: url('/v/thaibaan/fonts/lancelot-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lancelot'; src: url('/v/thaibaan/fonts/lancelot-latin-ext.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* On html, with the theme: beats :root in chockers.css (layer ck) and the derived venue-theme.css. The staff back office sets no data-theme, so it keeps the system face. */
html[data-venue="thaibaan"][data-theme="dark"] {
  --font-sans: "Lexend", "Sarabun Thai", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-heading: "Lancelot", "Sarabun Thai", Georgia, serif;   /* headings only: never a price, a button or small text */
  --weight-body: 400; --weight-loud: 700;   /* Lexend's cuts: 400, 600, 700 */
  --btn-weight: var(--weight-strong);   /* the venue's button: Lexend 600, mixed case */
  /* Tabs, as the venue's nav links: quiet gold, full gold on hover and when selected, a 2px gold line, no fill and no rule under the row. */
  --tab-ink: color-mix(in srgb, var(--primary-ink) 70%, var(--bg)); --tab-ink-hover: var(--primary-ink); --tab-bg-hover: transparent;
  --tab-bar-hover: var(--primary-ink); --tab-bar-selected: var(--primary-ink); --tab-bar-w-hover: var(--line-1); --tab-bar-w-selected: var(--line-1);
  --tab-weight-selected: var(--weight-strong); --tablist-line-w: 0px;
}
/* ---- Controls: the venue's own shapes over the system's. The venue's button is a full pill (its welcome screen: gold fill, dark text,
   Lexend 600, mixed case). The system draws every control square and has no radius token, so this one rule rounds them: buttons, chips,
   the stepper, a sheet's close button and the menu search. Cards, photos, sheets, tabs and form fields stay square, as on the venue's site. ---- */
html[data-venue="thaibaan"][data-theme="dark"] :is(.ck-btn, .ck-chip, .ck-stepper, .ck-dialog-close, #menu-search) { border-radius: 999px; }
/* "One more" in a stepper (the item sheet, the cart): the gold round button with the dark sign; its hover and press are the page ink. */
html[data-venue="thaibaan"][data-theme="dark"] .ck-stepper > .ck-btn:last-child { --b-bg: var(--primary); --b-ink: var(--on-primary); --b-bg-hover: var(--ink); --b-ink-hover: var(--bg); --b-bg-pressed: var(--ink); --b-ink-pressed: var(--bg); }
/* Headings in the venue's display face. It has one cut (400) and small letters, so a heading is one step larger and never bold or tracked. */
html[data-venue="thaibaan"][data-theme="dark"] :is(.category-heading, .express-section h2, .cart-title) { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: 0; font-synthesis: none; }
html[data-venue="thaibaan"][data-theme="dark"] .category-heading .heading-until { font-family: var(--font-sans); }   /* "until 23:59" is small text: the text face */

:root {
  --bg: #0d0d0d;
  --surface: #1a1a10;
  --fg: #f5f3e8;
  --muted: #9c9781;
  --accent: #cfcb8a;
  --accent-fg: #0d0d0d;
  --border: rgba(207, 203, 138, 0.16);
  --sheet-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  --card-shadow: none;
  --status-ready: #739a83;
  /* Design-system tokens that style.css derives from the system colour
     scheme: pinned to this always-dark palette. */
  --surface-2: #26261a;
  --edge: #8f8b73;
  --danger: #ff8a80;
  --warning: #f0b252;
  --success: #8fbf9f;
  --scrim: rgba(0, 0, 0, 0.75);
  --font-display: var(--font-sans);   /* style.css's old name for names, prices and numbers: the text face (Lexend), never the heading face */
  --font-body: var(--font-sans);
  --radius: 0;
  --radius-pill: 0;
}
/* Venue tokens on the system's controls (SPEC/venue-styling-thaibaan.md 4.3, 6.1, 6.2, 6.5, 8.1). On [data-venue], so a sheet or a
   button that restates data-theme takes them too. One edge width for every control: 2px, the field's. Lines are gold, not white.
   The gold button's hover is the page ink; every other hover is gold (--hl, from venue-theme.css). */
[data-venue="thaibaan"] {
  --link-line-visited: var(--link-line);   /* a visited link keeps the venue's underline: never the system purple (Tamm, 15 Nov 2026) */
  --btn-line-w: var(--line-1);
  --btn-primary-bg-hover: var(--ink); --btn-primary-line-hover: var(--ink);
  --btn-outline-ink: var(--primary-ink); --btn-outline-line: var(--primary-ink); --btn-outline-line-hover: var(--primary-ink);
  --field-bg: var(--surface-2); --field-line: var(--primary-ink);
  --card-line: var(--primary-ink);
}
/* One edge width in the cart: the system draws a button edge at 4px and a field or stepper edge at 2px, which read as two
   systems side by side. This venue draws both at 2px (Tamm, 15 Nov 2026). */
html.cart-page { --btn-line-w: var(--line-1); }
/* Hover in the cart is the venue's row ground, never the system yellow (outline and quiet buttons). */
html.cart-page { --btn-outline-bg-hover: var(--zebra); --btn-outline-ink-hover: var(--ink); --btn-quiet-bg-hover: var(--zebra); --btn-quiet-ink-hover: var(--ink); --btn-quiet-line-hover: var(--zebra); }
/* A focused link in the cart takes the cart's ink ring, never the system's yellow highlighter. */
html.cart-page { --link-bg-focus: transparent; --link-ink-focus: var(--ink); --link-weight-focus: inherit; --link-line-focus: var(--ink); }
/* A chip in the cart (order type, ASAP or Pre-order, a calendar day): the same hover ground; the system's chip hover is its yellow. */
html.cart-page .ck-chip:hover:not(:disabled, [aria-pressed="true"]) { background: var(--zebra); color: var(--ink); }
/* One edge colour: a chip and the stepper take the venue's gold line, as the fields, the cards and the menu's chips and stepper do. */
html.cart-page :is(.ck-chip, .ck-stepper) { border-color: var(--primary-ink); }

/* The wordmark is white-on-transparent; style.css only un-inverts it under
   a dark *system* preference, which this venue overrides. */
.hero .brand-word { filter: none; }

/* Logo lockup B (SPEC/venue-styling-thaibaan.md 9.10): the flame, the script wordmark centred under it. The one centred logo: staff and error pages. */
.venue-lockup { --lockup-mark: 96px; --lockup-word: 160px; --lockup-gap-below: var(--sp-5); display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin: 0 auto var(--lockup-gap-below); }
.venue-lockup img:first-child { height: var(--lockup-mark); width: auto; }
.venue-lockup img + img { width: var(--lockup-word); height: auto; filter: none; }

/* LA-59: photo credits, one muted line under the staff-login link. */
.page-footer .credits { margin: 12px 0 0; font-size: 0.7rem; line-height: 1.5; color: var(--muted); }
.page-footer .credits a { font-size: inherit; }

/* ---- Sheets (LA-27): thaibaanrestaurant.com.au has no rounded corners
   anywhere, so this venue overrides the shared sheet look — square, the item
   photo bleeds to the top edge with the drag handle on it. Shorter
   max-height so the menu stays visibly a sheet on a phone, not a full
   page: the shared 85dvh cap reads as "full page" on a short mobile
   viewport with the browser chrome showing. */
.sheet { border-radius: 0; }
/* LA-62 (LA-27 notes 20:03, 20:07): nothing inside a sheet is rounded
   either: Pay, Add to order, the order-type buttons, the table select,
   the order-type chip and its Change, checkboxes. The .qty circle stays
   (LA-48 note 20:06 asked for a circle). */
.sheet button.primary, .pay-buttons .primary, .pay-buttons .secondary, .pay-buttons .secondary, .order-type-btn, .table-picker select, .table-picker input,
.order-type-chip, .order-type-chip button, input[type="checkbox"] { border-radius: 0; }
/* LA-69: item cards and their photos are square-cornered too. */
.food-card, .food-card img { border-radius: 0; }
/* LA-42 (repeat): on a dark theme, the shared backdrop tint
   (rgba(24,24,27,0.45) over an already near-black --bg) barely darkens
   anything — so on a narrow phone, where the sheet covers most of the
   screen and only a sliver of menu shows above it, there isn't enough
   visible contrast for that sliver to read as "dimmed page behind a
   sheet" rather than "a new full page". A near-opaque black backdrop
   fixes that at any viewport width. The cart sheet also gets a lower cap
   than the shared one, so the header and its logo stay visibly clear
   above it on a phone, not just technically present in a few pixels. */
.sheet-backdrop { background: var(--scrim); }

/* ---- Announcement bar (LA-28): the "urgent message" line Thai Baan shows
   at the very top of the menu page, above the header. One line, no close
   control, in the venue accent — gold text on near-black, matching the
   brand: the bar's own accent colour over the page background, sharp
   corners (Thai Baan's own site has none), and only visible while the
   office has it on with a real message (see announceParams). */
.announce-wrap {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: var(--text-min);
  line-height: var(--lh-small);
}
.announce-wrap[hidden] { display: none; }
.announce-bar {
  display: block;
  padding: 7px 16px;
  text-align: center;
  color: var(--accent-fg);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce-inner {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---- Footer (every page that mounts it: menu, privacy): the system's ground, ink, rule and type. Two sizes: the label (--text-label, caps) and 16px for every other line. Links and the help control share one look. ---- */
.mega-footer { background: var(--footer-bg); color: var(--ink); border-top: var(--line-1) solid var(--nav-line, var(--primary-ink)); font-size: var(--text-min); line-height: var(--lh-small); }
.mega-footer a, .mega-footer .help-btn { color: var(--ink); text-decoration-color: var(--link-line); }
.mega-footer :is(a, .help-btn):hover { text-decoration-color: var(--link-line-hover); text-decoration-thickness: var(--link-line-w-hover); }
.mf-col h2 { color: var(--primary-ink); }   /* SPEC/venue-styling-thaibaan.md 9.6: titles and today's hours are gold */
.mf-name { font-size: var(--text-body); }
.mf-hours dt, .mf-hours dd, .mega-footer .venue-qr, .mf-base { color: var(--ink-muted); }
.mf-hours .today { color: var(--primary-ink); }
.mf-base { border-top: var(--line-1) solid var(--nav-line, var(--primary-ink)); padding-block-start: var(--sp-3); }

/* ---- Thai (html[data-lang="th"], shared/lang-pref.js). Thai has marks above and below the line and no letter-spacing convention:
   tracking breaks the mark positions, and a heading at 1.1 clips a tone mark over a tall vowel. So: no tracking anywhere, and
   1.5 for every heading (Lancelot has no Thai: a Thai heading is Sarabun Thai 400 at the heading size). ---- */
html[data-lang="th"] :is(*, ::before, ::after) { letter-spacing: 0 !important; }
html[data-lang="th"] :is(h1, h2, h3, .category-heading, .status-headline, #upsell .name) { line-height: 1.5; }
