/* CHAAM polish layer: loaded after the theme, so it wins ties. Owner review 2026-11-12.
   1. Logo: clear space on every side, centred in the header, 40-56 px on desktop and 32-44 px on a phone, the strongest mark in the bar.
   2. Sideways rows are sliders (demo/assets/slider.js): gutter-aligned, whole cards, no scrollbar. Rows that fit stay a plain grid.
   3. One image shape per row or grid (same width, same ratio, same rendered height), card bodies pinned to the bottom.
   4. No two boxes touch: every stack, grid and list has a gap from the 4 px scale (16-24 px on a phone, 24-32 px on desktop).
   5. Photographs lead every look's hero and two more sections (all without people).
   6. Clarity: 16 px body type on a phone, plain section labels. */

/* ── 1. logo ────────────────────────────────────────────────────────────────────────────────── */
/* mark 44 px on desktop, 36 px on a phone; every header row is tall enough that the mark has 16 px of air above and below, and the mark stays the largest piece of the bar after its button */
body{--lg-mark:44px;--lg-name:22px;--lg-row:76px}
@media (max-width:720px){body{--lg-mark:36px;--lg-name:19px;--lg-row:68px}}
.hdr .brand,.hdr2 .brand{gap:var(--t-space-3);align-items:center;min-width:0;flex:none}
.hdr .brand .brand-mark,.hdr2 .brand .brand-mark,.hdr2 .sign .brand-mark{width:var(--lg-mark);height:var(--lg-mark);flex:none}
.hdr .brand .wm b,.hdr2 .brand .wm b{font-size:var(--lg-name);white-space:nowrap}
.hdr .brand .wm small,.hdr2 .brand .wm small{white-space:nowrap}
@media (max-width:720px){.hdr .brand .wm small,.hdr2 .brand .wm small{display:none}}
.hdr .wrap{height:var(--lg-row)}
.hdr2 .hv-in,.hv-clockbar .hv-in,.hv-index .hv-in{min-height:var(--lg-row)}
/* the hung sign of the wok look: a plate with the mark and the opening hours, never glued to the top edge */
.hv-signboard .hv-in{min-height:calc(var(--lg-row) + var(--t-space-4));padding-block:var(--t-space-3)}
.hv-signboard .sign{display:flex;align-items:center;gap:var(--t-space-4);padding:var(--t-space-4)}
.hv-signboard .sg-h{max-width:14ch;line-height:1.35}
@media (max-width:1279px){.hv-signboard .sg-h{display:none}}
.hv-signboard .sign .brand-mark{width:var(--lg-mark);height:var(--lg-mark)}
@media (max-width:1080px){.hv-signboard .hv-in{min-height:var(--lg-row);padding-block:var(--t-space-2)}}
@media (max-width:720px){.hv-signboard .sign{padding:var(--t-space-3) var(--t-space-4)}}
/* phones: the lunch clock and the spice switch share the bar with the brand, the basket and the menu button, so they shrink until nothing is cut off (the language is also in the menu drawer) */
@media (max-width:720px){
  .hv-clockbar .lang-stamp{display:none}
  .hv-clockbar .ck-now{margin-inline:auto 0}
  .hv-clockbar .ck-now b{font-size:22px}
  .hv-visitor .seg-lang a{min-width:40px;min-height:48px;padding:0 var(--t-space-2);font-size:13px}
  .hv-clockbar .hv-in,.hv-visitor .hv-in{gap:var(--t-space-2)}
  .hdr2 .brand .wm b{letter-spacing:.1em}
}
/* the garden look floats the brand over the photograph: air on every side and a soft dark top so it reads on any picture */
.hv-corner .hv-in{padding-block:var(--t-space-4);padding-inline:var(--gutter)}
.hv-corner:not(.pin)::before{content:"";position:absolute;left:0;right:0;top:0;height:112px;background:linear-gradient(180deg,rgba(15,20,14,.55),transparent);pointer-events:none}
body:not(.p-home) .hv-corner::before{display:none}

/* ── 5. a photograph leads each hero ────────────────────────────────────────────────────────── */
.kh-phw{padding-bottom:var(--t-space-8)}
.kh-ph{margin:0;width:100%;height:clamp(180px,22vw,300px);overflow:hidden;border-radius:var(--rad-l);background:var(--ph,var(--line))}
.kh-ph img{display:block;width:100%;height:100%;object-fit:cover}
.kh-wok .kh-ph img,.kh-fire .kh-ph img{object-position:50% 60%}
.kh-course .kh-ph img{object-position:50% 55%}
@media (max-width:900px){.kh-ph{height:auto;aspect-ratio:16/9}.kh-phw{padding-bottom:var(--t-space-6)}}

/* photo cards in "come in, or let us come to you" */
.md-cards .mode{overflow:hidden;padding:var(--t-space-6)}
.md-ph{margin:calc(var(--t-space-6)*-1) calc(var(--t-space-6)*-1) var(--t-space-6);aspect-ratio:3/2;overflow:hidden}
.md-ph img{display:block;width:100%;height:100%;object-fit:cover}
.md-cards .mode h3{margin-top:0}
.story .st-ph{margin:0 0 var(--t-space-8);width:100%;height:clamp(180px,22vw,300px);overflow:hidden;border-radius:var(--rad-l)}
.story .st-ph img{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:900px){.story .st-ph{height:auto;aspect-ratio:16/9;margin-bottom:var(--t-space-6)}}

/* ── 2. sideways rows ───────────────────────────────────────────────────────────────────────── */
/* signature dishes: whole cards, three and a peek on a wide screen, then 2.3 and 1.25 */
.rail[data-slider]{display:flex;grid-auto-flow:row;grid-auto-columns:auto;gap:var(--t-space-6);overflow-x:auto;padding:0;margin:0}
.rail[data-slider]>.dish{flex:0 0 calc((100% - var(--t-space-6)*3)/3.4);min-width:0}
@media (max-width:1000px){.rail[data-slider]>.dish{flex-basis:calc((100% - var(--t-space-4))/2.3)}.rail[data-slider]{gap:var(--t-space-4)}}
@media (max-width:720px){
  .rail[data-slider]{margin-inline:calc(var(--gutter)*-1);padding-inline:var(--gutter);--sl-pad:var(--gutter)}
  .rail[data-slider]>.dish{flex-basis:78%}
}
/* one-plate bowls (hero): the same size, round, price tag on each */
.bw-row[data-slider]{display:flex;grid-auto-flow:row;grid-auto-columns:auto;gap:var(--t-space-6);padding:var(--t-space-4) var(--t-space-2) var(--t-space-2);margin:0}
.bw-row[data-slider]>li{flex:0 0 calc((100% - var(--t-space-6)*3)/3.4);min-width:0}
.bw-row figure{width:min(200px,100%);margin-inline:auto}
@media (max-width:1000px){.bw-row[data-slider]>li{flex-basis:calc((100% - var(--t-space-4))/2.3)}}
@media (max-width:720px){
  .bw-row[data-slider]{margin-inline:calc(var(--gutter)*-1);padding-inline:var(--gutter);--sl-pad:var(--gutter)}
  .bw-row[data-slider]>li{flex-basis:72%}
}
/* gallery: every photograph one shape. strip + film = a slider at every width; mosaic = an even grid that becomes a slider on a phone */
.strip[data-slider]{display:flex;grid-template-columns:none;grid-template-rows:none;grid-auto-rows:auto;grid-auto-flow:row;grid-auto-columns:auto;gap:var(--t-space-4);overflow-x:auto;padding:0;margin:0}
.strip[data-slider]>a,.gl-film .strip>a,.gl-mosaic .strip>a{flex:0 0 calc((100% - var(--t-space-4)*2)/3.3);aspect-ratio:3/2;grid-column:auto;grid-row:auto;min-width:0}
.gl-strip .strip[data-slider]>a:first-child,.gl-film .strip>a:first-child{grid-row:auto}
@media (min-width:901px){
  .gl-mosaic .strip[data-slider]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--t-space-4);overflow:visible}
  .gl-mosaic .strip[data-slider]>a{flex:none;aspect-ratio:3/2;grid-column:auto!important;grid-row:auto!important}
}
@media (max-width:900px){.strip[data-slider]>a{flex-basis:calc((100% - var(--t-space-4))/2.3)}}
@media (max-width:720px){
  .strip[data-slider]{margin-inline:calc(var(--gutter)*-1);padding-inline:var(--gutter);--sl-pad:var(--gutter)}
  .strip[data-slider]>a,.gl-film .strip>a,.gl-mosaic .strip>a{flex-basis:78%;grid-column:auto!important;grid-row:auto!important}
}
.strip a img{display:block;width:100%;height:100%;object-fit:cover}
/* the card in focus lifts a little (transform only, off with reduced motion) */
@media (hover:hover) and (prefers-reduced-motion:no-preference){.sl-track>.dish,.sl-track>li{transition:transform .35s cubic-bezier(.2,.7,.2,1)}.sl-track>.dish:hover,.sl-track>li:hover{transform:translateY(calc(var(--t-space-1)*-1))}}
.sl-wrap{--sl-arrow-top:40%;--sl-r:var(--rad-btn);--sl-bg:var(--t-surface,var(--white,#fff));--sl-fg:var(--t-ink,var(--lacquer,#1b1a17));--sl-line:var(--t-line,var(--line,rgba(0,0,0,.16)));--sl-accent:var(--t-accent,var(--k-acc,#a3271f))}
body.th-tasting .sl-wrap,body.th-wok .sl-wrap{--sl-bg:var(--t-surface);--sl-fg:var(--t-ink)}
.gl-strip .sl-wrap,.gl-film .sl-wrap,.gl-mosaic .sl-wrap{--sl-arrow-top:50%}
/* chip-style header strips stay plain scrollers, without a scrollbar */
.hv-tape .hv-strip ul,.hv-chipbar .wrap>div{scrollbar-width:none}
.hv-tape .hv-strip ul::-webkit-scrollbar,.hv-chipbar .wrap>div::-webkit-scrollbar{display:none}

/* garden hero: three photographs of one size; on a phone the first one alone, the copy card below it */
.pn-ph{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;height:auto}
.pn-ph figure,.pn-a,.pn-b,.pn-c{grid-column:auto;grid-row:auto;aspect-ratio:1;border-radius:0 0 var(--rad-l) var(--rad-l)!important}
@media (max-width:900px){
  .pn-ph{grid-template-columns:minmax(0,1fr)}
  .pn-a{aspect-ratio:16/10;border-radius:0!important}
  .pn-b,.pn-c{display:none}
  .kh-panorama .kh-copy{margin:var(--t-space-6) var(--t-space-4) 0}
}

/* ── 3. equal images ────────────────────────────────────────────────────────────────────────── */
.dish figure{aspect-ratio:1}
.pl-tiles img,.sg-grid2 figure img,.kh-menu img,.sg-rows img,.sg-courses img{object-fit:cover}
.sg-grid2 figure{aspect-ratio:16/10}

/* ── 4. gaps ───────────────────────────────────────────────────────────────────────────────── */
.modes{gap:var(--t-space-6)}
.md-strip .modes{gap:var(--t-space-6)}
@media (max-width:900px){.modes,.md-strip .modes{gap:var(--t-space-4)}.md-strip .mode{padding:var(--t-space-4) 0}}
.pl-tiles{gap:var(--t-space-6)}
@media (max-width:900px){.pl-tiles,.sg-grid2{gap:var(--t-space-4)}}

/* ── 6. clarity: 16 px body type on a phone, plain section labels stay visible ───────────────────────────── */
@media (max-width:720px){body{font-size:16px}}

/* slider controls on a phone: page dots are 44 px targets on their own line above the pause and arrow buttons */
@media (max-width:720px){
  .sl-wrap.is-on .sl-ctl{flex-wrap:wrap;justify-content:flex-end}
  .sl-wrap .sl-dots{order:-1;flex:1 0 100%;flex-wrap:wrap;justify-content:flex-start}
  .sl-wrap .sl-dot{width:44px}
  .sl-wrap .sl-dots.is-bar{flex-basis:100%}
}
.sl-wrap .sl-play{width:48px;height:48px;margin-right:0}

/* lunch clock: a label near the right end of the track is drawn to the left of its line, and nothing can widen the page */
.lc{overflow-x:clip}
.lc-now.flip em,.lc-eta.flip em{left:auto;right:6px}
