/* ------------------------------------------------------------------
   BellyShake. Near-black canvas, cream type, shop-sign yellow bands (DESIGN.md), plus a warm
   accent palette taken from the shop's own photos and printed menu board.
   One language per page: Thai at "/" and English at "/en/".
   ------------------------------------------------------------------ */
:root {
  /* Surfaces and neutrals */
  --walnut: #0d0c08;       /* near-black canvas (was a brown walnut; the sign is pure black on yellow) */
  --bark: #25220f;
  --cork: #3b3720;
  --driftwood: #6c5f51;
  --cream: #ffedd7;
  --cream-soft: #dccab1;   /* secondary text: tinted from the cream, never gray */

  /* Accents. Each is used for one job so colour carries meaning. */
  --sign: #f9df50;         /* the yellow of the roadside shop sign; ink on it is 14:1 */
  --ink: #111111;          /* the sign's black, for type on the yellow bands */
  --ember: #f9df50;        /* primary accent: highlights, filled buttons, active tab (the sign yellow) */
  --honey: #cbb55e;        /* rating stars and counts: a quieter gold, so the full sign yellow stays on actions */
  --latte: #d9a273;        /* americano, coffee beans */
  --matcha: #a3c96b;       /* matcha */
  --berry: #f28ba2;        /* chocolate and soda */
  --celadon: #8ccfc4;      /* tea */

  --font: system-ui, -apple-system, "SF Pro Text", Roboto, "Noto Sans Thai", "Segoe UI", sans-serif;

  /* Type scale: five roles. Thai needs taller lines than Latin, so leading is set per language. */
  --fs-display: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);   /* 40 → 68 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);       /* 28 → 44 */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);      /* 20 → 26 */
  --fs-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);     /* 17 → 20 */
  --fs-small: 0.9375rem;                                  /* 15 */
  --fs-label: 0.8125rem;                                  /* 13 */

  --space-1: 8px; --space-2: 12px; --space-3: 16px; --space-4: 24px; --space-5: 32px; --space-6: 48px;
  --space-section: clamp(56px, 9vw, 104px);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --measure: 36em;         /* readable line length for Thai and English paragraphs */
}
html[lang="th"] { --lh-display: 1.2; --lh-heading: 1.3; --lh-body: 1.7; --lh-small: 1.55; }
html[lang="en"] { --lh-display: 1.05; --lh-heading: 1.15; --lh-body: 1.55; --lh-small: 1.45; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--walnut); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--walnut); color: var(--cream); font-family: var(--font); font-size: var(--fs-body); font-weight: 400; line-height: var(--lh-body); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ember); color: var(--walnut); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.skip-link { position: absolute; left: var(--gutter); top: -100px; background: var(--cream); color: var(--walnut); padding: var(--space-2) var(--space-3); border-radius: 12px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* Roles */
.section { padding: var(--space-section) var(--gutter); border-top: 1px dashed var(--cork); }
.section > * + * { margin-top: var(--space-4); }
.h-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 600; }
.h-heading { font-size: var(--fs-h2); line-height: var(--lh-heading); font-weight: 600; }
.body { max-width: var(--measure); font-size: var(--fs-body); line-height: var(--lh-body); }
.label { font-size: var(--fs-label); line-height: 1.4; font-weight: 600; color: var(--cream-soft); }
html[lang="en"] .label { text-transform: uppercase; letter-spacing: 0.06em; }
.divider { border: 0; border-top: 1px dashed var(--cork); margin: var(--space-3) 0; }

/* Buttons: the cream pill is the one primary action, the outlined pill is secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; font: inherit; font-size: var(--fs-small); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn-filled { background: var(--sign); color: var(--ink); border: 0; border-radius: 36px; transition: background-color 0.2s ease; }
@media (hover: hover) { .btn-filled:hover { background: var(--cream); } }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--cream-soft); border-radius: 22.5px; padding: 10px 24px; transition: border-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--ember); color: var(--ember); } }

/* Header and navigation */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 12px var(--gutter); background: var(--walnut); }
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 1 auto; min-width: 0; }
.brand img { height: clamp(18px, 5.4vw, 28px); width: auto; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.site-nav { display: flex; gap: var(--space-4); }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: var(--fs-small); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.2s ease; }
@media (hover: hover) { .site-nav a:hover { color: var(--ember); } }
.lang-switch, .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 22.5px; font: inherit; font-size: var(--fs-label); font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
.lang-switch { min-width: 52px; color: var(--ember); border: 1px solid var(--ember); transition: background-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) { .lang-switch:hover { background: var(--ember); color: var(--walnut); } }
.nav-toggle { display: none; background: transparent; color: var(--cream); border: 1px solid var(--cream-soft); min-width: 44px; padding: 0; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .nav-icon-close, .nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
@media (max-width: 639px) {
  .js .nav-toggle { display: inline-flex; position: relative; z-index: 60; }
  .lang-switch { position: relative; z-index: 60; }
  .js .site-nav { display: none; position: fixed; inset: 0; background: var(--walnut); flex-direction: column; justify-content: center; padding: var(--gutter); gap: var(--space-1); }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-heading); }
}

/* Hero: a looping video behind the copy; the poster frame is the first paint and the fallback */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 30vh) var(--gutter) var(--space-5); padding-top: calc(var(--header-h) + 30svh); }
.hero-media { position: absolute; inset: 0 0 auto 0; height: 66vh; height: 66svh; z-index: -1; background: var(--walnut); }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-video { opacity: 0; transition: opacity 0.9s ease; }
.hero-media.is-playing .hero-video { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 9, 4, 0.35) 0%, rgba(16, 9, 4, 0) 22%, rgba(16, 9, 4, 0.25) 55%, var(--walnut) 100%); }
.media-toggle { position: absolute; right: var(--gutter); bottom: calc(34svh - 8px); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--cream-soft); border-radius: 22.5px; background: rgba(16, 9, 4, 0.7); color: var(--cream); font: inherit; font-size: var(--fs-label); font-weight: 600; cursor: pointer; }
.media-toggle[hidden] { display: none; }
@media (hover: hover) { .media-toggle:hover { border-color: var(--ember); } }
.hero-grid { width: 100%; display: grid; gap: var(--space-4); grid-template-areas: "copy" "side"; }
.hero-copy { grid-area: copy; display: grid; gap: var(--space-2); }
.h1-brand { display: block; margin-bottom: var(--space-2); font-size: var(--fs-label); font-weight: 600; line-height: 1.4; color: var(--cream-soft); }
html[lang="en"] .h1-brand { text-transform: uppercase; letter-spacing: 0.06em; }
.hero-price { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 600; color: var(--cream); }
.hero-side { grid-area: side; display: grid; gap: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hours-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); border: 1px dashed var(--cork); border-radius: 12px; padding: var(--space-3) var(--space-4); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--cream-soft); background: rgba(16, 9, 4, 0.55); }
.hours-landmark { flex: 1 0 100%; color: var(--cream); font-weight: 600; }
@media (min-width: 900px) {
  .hero { align-items: center; justify-content: center; padding: calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-6); }
  .hero-media { inset: 0; height: auto; }
  .hero-shade { background: linear-gradient(90deg, rgba(16, 9, 4, 0.92) 0%, rgba(16, 9, 4, 0.6) 28%, rgba(16, 9, 4, 0.1) 46%, rgba(16, 9, 4, 0.1) 54%, rgba(16, 9, 4, 0.6) 72%, rgba(16, 9, 4, 0.92) 100%), linear-gradient(180deg, rgba(16, 9, 4, 0.45) 0%, rgba(16, 9, 4, 0) 25%, rgba(16, 9, 4, 0) 75%, rgba(16, 9, 4, 0.55) 100%); }
  .media-toggle { bottom: var(--space-4); }
  .hero-grid { grid-template-columns: 1fr 1.1fr 1fr; grid-template-areas: "copy . side"; align-items: center; column-gap: var(--space-4); }
}
@media (max-width: 899px) {
  /* Copy sits at the bottom of the hero, so the top padding is only a floor: keep it small so short phones still fit the hours card above the bar */
  .hero { padding-top: calc(var(--header-h) + 14svh); padding-bottom: calc(var(--space-4) + var(--bar-h) + env(safe-area-inset-bottom)); }
  /* The pause button sits at the top right of the video; anchored to the bottom it collided with the copy on short phones */
  .media-toggle { top: calc(var(--header-h) + var(--space-2)); bottom: auto; }
  /* First visit: the consent banner sits between the hero copy and the action bar, so reserve its height (about 100-120px) */
  html.cookie-open .hero { padding-top: calc(var(--header-h) + 14svh); padding-bottom: calc(var(--space-4) + var(--bar-h) + env(safe-area-inset-bottom) + 132px); }
}
/* Short phones on a first visit: the intro line goes while the consent banner is open, so the hours card and its directions link stay above the banner */
@media (max-width: 899px) and (max-height: 799px) { html.cookie-open .hero-side .body { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .media-toggle { display: none; } }

/* Footer */
.site-footer { border-top: 1px dashed var(--cork); padding: var(--space-6) var(--gutter); }
.footer-inner { display: grid; gap: var(--space-3); }
.footer-inner img { height: 28px; width: auto; }
.legal { font-size: var(--fs-label); line-height: var(--lh-small); color: var(--cream-soft); }

/* Promotions: each offer keeps its own colour */
.promo-card.promo-banner { margin: 0; padding: 0; overflow: hidden; }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-grid { display: grid; gap: var(--space-3); }
.promo-card { --accent: var(--ember); display: grid; text-decoration: none; gap: var(--space-2); align-content: start; padding: var(--space-4); background: var(--bark); border-radius: 12px; }
.promo-birthday { --accent: var(--berry); }
.promo-points { --accent: var(--matcha); }
.promo-card .label { color: var(--cream-soft); }
.promo-headline { font-size: var(--fs-h2); line-height: var(--lh-heading); font-weight: 600; color: var(--accent); }
.promo-card .body { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); }
.promos > .btn { justify-self: start; }
/* Artwork cards: a swipeable strip below 900px (like the photo strips), a three-column row above */
.promo-grid-art { display: flex; gap: var(--space-3); overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter); scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.promo-grid-art::-webkit-scrollbar { display: none; }
.promo-grid-art .promo-card { flex: 0 0 min(78vw, 420px); scroll-snap-align: start; }
.promo-card:active { opacity: 0.88; }
@media (hover: hover) { .promo-card { transition: filter 0.2s ease; } .promo-card:hover { filter: brightness(1.08); } }
@media (min-width: 900px) { .promo-grid, .promo-grid-art { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; } .promo-grid-art .promo-card { flex: none; } }

/* The first-signup offer leads the section: display-size heading, the 50% poster wider than the other two
   (on desktop it spans both rows beside them), and a little more air above, so the section reads as a peak. */
.promos { padding-block: calc(var(--space-section) * 1.2); }
.promos .h-heading { font-size: var(--fs-display); line-height: 1; }
.promo-grid-art { align-items: center; }
.promo-grid-art .promo-first-signup { flex-basis: min(84vw, 560px); }
@media (min-width: 900px) {
  .promo-grid-art { grid-template-columns: 2fr 1fr; align-items: stretch; }
  .promo-grid-art .promo-first-signup { grid-row: span 2; grid-template-rows: minmax(0, 1fr); align-content: stretch; }
}

/* Our chefs: text first, then three photos in a swipeable strip (a row on wide screens) */
.chefs-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.chefs-scroll::-webkit-scrollbar { display: none; }
.chefs-photos { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); }
.chefs-photos > li { flex: 0 0 min(82vw, 440px); scroll-snap-align: start; }
.chefs-photo { margin: 0; display: grid; gap: var(--space-2); }
.chefs-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; height: auto; border-radius: 12px; }
.chefs-photos > li.is-wide { flex-basis: min(92vw, 560px); }
.chefs-photos > li.is-wide img { aspect-ratio: 1184 / 576; object-position: 50% 50%; }
.chefs-photo figcaption { font-size: var(--fs-label); line-height: var(--lh-small); color: var(--cream-soft); }
@media (min-width: 900px) { .chefs-scroll { overflow: visible; margin-inline: 0; padding: 0; } .chefs-photos { align-items: flex-start; } .chefs-photos > li { flex: 1.5 1 0; } .chefs-photos > li.is-wide { flex: 2.05 1 0; } .chefs-photo img, .chefs-photos > li.is-wide img { aspect-ratio: 3 / 2; } .chefs-photos > li.is-wide img { aspect-ratio: 1184 / 576; } }


/* Gallery */
.gallery { padding-left: 0; padding-right: 0; }
.gallery-strip { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 0 var(--gutter); scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-item { margin: 0; flex: 0 0 min(72vw, 360px); scroll-snap-align: start; }
.gallery-item img { width: 100%; height: auto; border-radius: 12px; }

/* Reviews */
.rating-summary { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 48px; color: var(--cream); text-decoration: none; justify-self: start; }
.rating-number { font-size: var(--fs-display); line-height: 1; font-weight: 600; color: var(--honey); }
.rating-detail { display: grid; gap: var(--space-1); }
.stars { display: inline-flex; gap: 4px; color: var(--honey); }
.icon.star { width: 18px; height: 18px; }
.topic-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.topic-chip { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--cream-soft); border-radius: 22.5px; font-size: var(--fs-small); font-weight: 500; text-decoration: none; transition: border-color 0.2s ease; }
.topic-count { color: var(--honey); font-weight: 600; }
@media (hover: hover) { .topic-chip:hover { border-color: var(--ember); } }
/* Review cards: a swipeable strip below 900px (like the promos and photo strips), a three-column row above */
.review-grid { display: flex; gap: var(--space-3); overflow-x: auto; margin: var(--space-4) calc(var(--gutter) * -1) 0; padding: 6px var(--gutter); scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.review-grid::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); background: var(--bark); border-radius: 12px; }
.review-card .label { color: var(--cream-soft); }
.review-card .body { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-1); }
.review-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-small); font-weight: 600; color: var(--cream); text-decoration: underline; text-decoration-color: var(--cream-soft); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.review-note { max-width: var(--measure); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--cream-soft); }
.reviews > .btn { justify-self: start; }
@media (min-width: 900px) { .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; } .review-card { flex: none; } }

/* Menu: a decision flow (start here, drinks | bakery, one category at a time) */
.menu { display: grid; grid-template-columns: minmax(0, 1fr); }
.menu > *, .menu-panel, .menu-drinks, .start, .beans { min-width: 0; }
.sr-only, .js .cat-title, .js .panel-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cat-title, .panel-title { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 600; margin: var(--space-4) 0 var(--space-1); }

.start { display: grid; gap: var(--space-2); }
.start-title { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 600; }
.start-scroll { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.start-scroll::-webkit-scrollbar { display: none; }
.start-row { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); }
.start-row > li { flex: 0 0 156px; scroll-snap-align: start; }
@media (min-width: 900px) { .start-row > li { flex: 1 1 0; min-width: 156px; } }

.photo-card { margin: 0; background: var(--bark); border-radius: 12px; overflow: hidden; display: grid; height: 100%; align-content: start; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.start-card img { aspect-ratio: 1 / 1; }
.photo-card figcaption { padding: var(--space-2) 10px var(--space-3); display: grid; gap: 4px; }
.pc-name { font-size: 0.875rem; line-height: 1.35; font-weight: 500; }
.pc-price { font-size: var(--fs-body); line-height: 1.3; font-weight: 600; color: var(--cream); }
.chef-tag { justify-self: start; margin-top: 4px; padding: 3px 10px; border: 1px solid var(--cream-soft); border-radius: 22.5px; font-size: var(--fs-label); font-weight: 600; line-height: 1.3; color: var(--cream-soft); }

.menu-tabs { display: flex; gap: var(--space-5); margin-top: var(--space-5); border-bottom: 1px dashed var(--cork); }
.menu-tabs button { min-height: 52px; padding: 0 2px; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--cream-soft); font: inherit; font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; cursor: pointer; }
.menu-tabs button[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--ember); }
@media (hover: hover) { .menu-tabs button:hover { color: var(--cream); } }

html:not(.js) .menu-tabs, html:not(.js) .chips, html:not(.js) .js-only { display: none; }
.js .menu-panel:not(.is-active), .js .cat:not(.is-active) { display: none; }

/* Category chips carry the colour of their category */
/* The right padding equals the fade, so the last chip is clear of it once scrolled to the end; before that, chips cut off by the fade say "more this way" */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-3) 48px var(--space-3) var(--gutter); margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { --c: var(--cream-soft); flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-3); background: transparent; border: 1px solid var(--cream-soft); border-radius: 22.5px; color: var(--cream); font: inherit; font-size: var(--fs-small); font-weight: 600; line-height: 1; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 9999px; background: var(--c); }
.chip .icon { width: 14px; height: 14px; color: var(--c); }
.chip[data-cat="cat-recommended"] .icon + * { margin: 0; }
.chip[data-cat="cat-recommended"]::before { display: none; }
.chip[data-cat="cat-americano"] { --c: var(--latte); }
.chip[data-cat="cat-coffee"] { --c: var(--honey); }
.chip[data-cat="cat-matcha"] { --c: var(--matcha); }
.chip[data-cat="cat-non-coffee"] { --c: var(--celadon); }
.chip[data-cat="cat-soda"] { --c: var(--berry); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--walnut); }
.chip[aria-pressed="true"]::before { background: var(--walnut); }
.chip[aria-pressed="true"] .icon { color: var(--walnut); }
@media (hover: hover) { .chip:hover { border-color: var(--c); } }

.beans { display: grid; gap: var(--space-2); margin-bottom: var(--space-2); }
.js .menu-drinks:not([data-active="cat-americano"]):not([data-active="cat-coffee"]) .beans { display: none; }
.beans-list { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
.beans-list::-webkit-scrollbar { display: none; }
.bean-tile { flex: 0 0 168px; display: grid; gap: 6px; align-content: start; padding: var(--space-3); background: var(--bark); border-radius: 12px; }
.bean-name { font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.bean-roast { display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-label); line-height: 1.3; font-weight: 600; color: var(--latte); }
.roast-dots { display: inline-flex; gap: 3px; }
.roast-dot { width: 9px; height: 9px; border: 1px solid var(--latte); border-radius: 9999px; }
.roast-dot.is-on { background: var(--latte); }
.bean-notes { font-size: var(--fs-label); line-height: var(--lh-small); color: var(--cream-soft); }
@media (min-width: 900px) { .beans-list { margin: 0; padding: 0; } .bean-tile { flex: 1 1 0; } }

.menu-list { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px dashed var(--cork); }
.menu-row { display: flex; align-items: baseline; gap: var(--space-2); padding: 14px 0; border-top: 1px dashed var(--cork); min-height: 48px; }
.mr-name { flex: 0 1 auto; font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 500; }
.mr-leader { flex: 1 1 24px; min-width: 24px; align-self: flex-end; height: 0.4em; border-bottom: 1px dotted var(--driftwood); }
.mr-price { flex: 0 0 auto; font-size: var(--fs-body); line-height: var(--lh-heading); font-weight: 600; color: var(--cream); font-variant-numeric: tabular-nums; }
.pick { display: inline-flex; vertical-align: middle; margin-left: 4px; color: var(--cream); }
.pick .icon { width: 14px; height: 14px; }
@media (min-width: 900px) { .menu-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } }

.cat, #cat-bakery { scroll-margin-top: 150px; } /* deep links land with the tabs and chips in view */
.bakery-grid { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 640px) { .bakery-grid { grid-template-columns: repeat(3, 1fr); } }

/* Visit */
.visit-grid { display: grid; gap: var(--space-5); }
.visit-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--bark); background: var(--bark); aspect-ratio: 4 / 3; }
.visit-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.visit-info { display: grid; gap: var(--space-2); align-content: start; }
.visit-go { justify-self: start; margin-top: var(--space-2); }
.landmark { max-width: var(--measure); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--cream-soft); }
.visit-actions { display: grid; gap: var(--space-5); align-content: start; }
.visit-photos { display: flex; gap: var(--space-3); list-style: none; margin: var(--space-4) calc(var(--gutter) * -1) var(--space-5); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.visit-photos::-webkit-scrollbar { display: none; }
.visit-photos li { flex: 0 0 min(62vw, 300px); scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--bark); background: var(--bark); aspect-ratio: 4 / 5; }
.visit-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .visit-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: clamp(220px, 21vw, 320px); margin-inline: 0; padding: 0; overflow: visible; } .visit-photos li { flex: none; aspect-ratio: auto; } .visit-photos li:first-child { grid-row: span 2; } }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.2fr; grid-template-areas: "info map" "actions map"; column-gap: var(--space-6); align-items: start; } .visit-info { grid-area: info; } .visit-actions { grid-area: actions; } .visit-map { grid-area: map; aspect-ratio: auto; height: 100%; min-height: 420px; } }

/* Icon tiles: circular logo buttons with a caption */
.icon { display: block; width: 26px; height: 26px; }
.icon--wide { width: 36px; }
.icon-tile { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-1); width: 80px; text-align: center; color: var(--cream); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.icon-btn { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--cream-soft); border-radius: 9999px; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.icon-btn--logo { border-radius: 14px; overflow: hidden; border: 0; }
.icon-logo { display: block; width: 56px; height: 56px; object-fit: cover; }
.icon-tile--filled .icon-btn { background: var(--bark); border-color: var(--bark); }
.icon-label { font-size: var(--fs-label); line-height: 1.3; font-weight: 600; color: var(--cream-soft); }
@media (hover: hover) { .icon-tile:hover .icon-btn { background: var(--ember); border-color: var(--ember); color: var(--walnut); } }
.tile-group { display: grid; gap: var(--space-3); }
.tile-row { display: grid; grid-template-columns: repeat(auto-fill, 80px); gap: var(--space-4) var(--space-2); justify-content: start; margin-left: -12px; }

/* Cookie banner: bottom sheet, both choices equal in size. */
.cookie-banner { position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 90; max-width: 520px; background: var(--bark); border: 1px solid var(--cork); border-radius: 22.5px; padding: var(--space-4); }
.cookie-banner[hidden] { display: none; }
.cookie-title { font-weight: 600; margin: 0 0 var(--space-1); }
.cookie-text { margin: 0 0 var(--space-3); font-size: var(--fs-small); color: var(--cream-soft); }
.cookie-actions { display: flex; gap: var(--space-2); }
.cookie-actions .btn { flex: 1; }
@media (min-width: 640px) { .cookie-banner { left: auto; right: var(--gutter); } }

/* Legal pages (privacy policy) */
.legal-link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; }
.cookie-text a { color: var(--cream); text-decoration: underline; }
.page-legal .site-header { position: static; background: var(--walnut); }
.legal-page { max-width: 760px; margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-section); }
.legal-page > * + * { margin-top: var(--space-3); }
.legal-section { padding-top: var(--space-4); border-top: 1px dashed var(--cork); }
.legal-section > * + * { margin-top: var(--space-2); }
.legal-section h2 { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 600; color: var(--cream); }
.legal-section ul { padding-left: 1.25em; }
.legal-section li + li { margin-top: var(--space-1); }
.legal-section p, .legal-section li { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); overflow-wrap: anywhere; }

/* FAQ: native <details>, no script needed */
.faq-list { max-width: var(--measure); border-top: 1px dashed var(--cork); }
.faq-item { border-bottom: 1px dashed var(--cork); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; padding: var(--space-2) 0; font-size: var(--fs-body); font-weight: 600; line-height: var(--lh-heading); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: var(--fs-h3); font-weight: 400; line-height: 1; color: var(--cream-soft); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .body { margin: 0 0 var(--space-3); color: var(--cream-soft); }
.faq-item summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* Directions link beside the hours (phones have the action bar instead) */
.hours-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-weight: 600; text-underline-offset: 4px; }

/* Action bar: thumb-reach call, LINE, maps and order on phones */
:root { --bar-h: 64px; }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px max(var(--gutter), env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-right)); background: var(--walnut); border-top: 1px solid var(--cork); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.action-bar.is-away { transform: translateY(100%); }
.ab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; color: var(--cream); text-decoration: none; font-size: var(--fs-label); font-weight: 600; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
.ab-item .icon { width: 22px; height: 22px; }
.ab-item--filled { background: var(--bark); }
.ab-item:active { background: var(--cork); }
.ab-sheet { position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); bottom: calc(100% + 8px); display: grid; min-width: 168px; background: var(--bark); border: 1px solid var(--cork); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.ab-sheet[hidden] { display: none; }
.ab-sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-4); color: var(--cream); font-weight: 600; text-decoration: none; }
.ab-sheet a + a { border-top: 1px dashed var(--cork); }
@media (max-width: 899px) {
  .site-footer { padding-bottom: calc(var(--space-6) + var(--bar-h) + env(safe-area-inset-bottom)); }
  .cookie-banner { bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); }
}
@media (min-width: 900px) { .action-bar { display: none; } }

/* Socials are a quieter row than the order and contact actions */
.tile-group--quiet .icon-btn { width: 44px; height: 44px; border-color: var(--cork); }
.tile-group--quiet .icon .icon, .tile-group--quiet .icon { width: 20px; height: 20px; }
.tile-group--quiet .icon-label { font-weight: 500; }
.tile-group--quiet .tile-row { gap: var(--space-3) var(--space-2); }

/* Cookie banner, slim: one row at every width (text left, both buttons right) so it covers as little of the hero as it can.
   The title stays for assistive tech. */
.cookie-banner { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: 18px; }
.cookie-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cookie-text { margin: 0; flex: 1; font-size: 13px; line-height: 1.4; }
.cookie-actions { flex: 0 0 auto; gap: 6px; }
.cookie-actions .btn { flex: none; min-height: 44px; padding-inline: 14px; font-size: 14px; }
@media (min-width: 900px) { html.cookie-open .media-toggle { bottom: calc(var(--space-4) + 84px); } }
@media (min-width: 640px) { .cookie-banner { display: flex; align-items: center; gap: var(--space-3); max-width: 640px; } .cookie-text { margin: 0; flex: 1; } .cookie-actions { flex: 0 0 auto; } .cookie-actions .btn { flex: none; } }

/* Shop-sign bands: the header, the phone action bar and the footer are the yellow of the roadside sign with its black type. */
.site-header, .site-footer, .action-bar { background: var(--sign); color: var(--ink); }
.site-header a, .site-footer a, .site-footer .legal, .action-bar .ab-item { color: var(--ink); }
.site-header { border-bottom: 0; }
.site-footer { border-top: 0; }
.action-bar { border-top: 0; }
.brand img, .footer-inner img { filter: none; }
.site-nav a { font-weight: 600; }
@media (hover: hover) { .site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); } }
.lang-switch { color: var(--ink); border-color: var(--ink); }
@media (hover: hover) { .lang-switch:hover { background: var(--ink); color: var(--sign); } }
.nav-toggle { color: var(--ink); border-color: var(--ink); }
.js .site-nav { background: var(--sign); }
.ab-item--filled { background: var(--ink); color: var(--sign); }
.action-bar .ab-item--filled { color: var(--sign); }
.ab-item:active { background: rgba(17, 17, 17, 0.14); }
.ab-item--filled:active { background: #2a2a2a; }
.site-header :focus-visible, .site-footer :focus-visible, .action-bar :focus-visible { outline-color: var(--ink); }
.page-legal .site-header { background: var(--sign); }

/* Menu highlight pages (/menu/{slug}/) */
.h-sub { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 600; }
.dish-page { max-width: 1080px; margin: 0 auto; padding: calc(var(--header-h) + var(--space-4)) var(--gutter) var(--space-6); }
.dish-page > * + *, .dish > * + * { margin-top: var(--space-5); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); line-height: 1.3; color: var(--cream-soft); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "›"; margin-right: var(--space-2); color: var(--driftwood); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream-soft); text-underline-offset: 3px; }
.dish-top { display: grid; gap: var(--space-4); align-items: start; }
.dish-photo { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bark); }
.dish-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-copy { display: grid; gap: var(--space-3); align-content: start; }
.dish-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; }
.dish-price { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; color: var(--cream); }
.dish-cat { font-size: var(--fs-small); color: var(--cream-soft); }
.dish-meta .chef-tag { margin-top: 0; }
.dish-beans, .dish-facts, .dish-visit, .dish-related { display: grid; gap: var(--space-3); }
.dish-facts dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0; padding: var(--space-4); background: var(--bark); border-radius: 12px; font-size: var(--fs-small); line-height: var(--lh-small); }
.dish-facts dt { color: var(--cream-soft); font-weight: 600; }
.dish-facts dd { margin: 0; }
.dish-beans .beans-list { margin: 0 calc(var(--gutter) * -1); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px dashed var(--cork); }
.related-list li { border-top: 1px dashed var(--cork); }
.related-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); min-height: 48px; padding: 10px 0; color: var(--cream); text-decoration: none; }
.related-list .rl-price { color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .related-list a:hover .rl-name { text-decoration: underline; text-underline-offset: 4px; } }
.dish-related .btn { justify-self: start; }
@media (min-width: 900px) {
  .dish-top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .dish-beans .beans-list { margin: 0; }
}
@media (max-width: 899px) { .page-dish .site-footer { padding-bottom: calc(var(--space-6) + var(--bar-h) + env(safe-area-inset-bottom)); } }

/* Dish links from the home page menu */
.dish-link { color: inherit; text-decoration: underline; text-decoration-color: var(--driftwood); text-underline-offset: 4px; }
.dish-link:hover { text-decoration-color: currentColor; }
.photo-card { position: relative; }
.photo-card .dish-link::after { content: ""; position: absolute; inset: 0; }

/* Portrait drink photos keep their shape on the dish page instead of being cropped to 4:3 */
.dish-photo--tall img { aspect-ratio: 4 / 5; object-position: 50% 62%; }
@media (min-width: 900px) { .dish-photo--tall { max-width: 460px; } }

/* Thai headings: break between phrases, never leave a single short word alone on the last line */
.h-display, .h-heading, .h-sub { text-wrap: balance; }
html[lang="th"] .h-display, html[lang="th"] .h-heading, html[lang="th"] .h-sub { word-break: auto-phrase; }
.dish-copy .body { text-wrap: pretty; }

.nw { white-space: nowrap; }
