/* A quiet, lamp-lit menu (demo: Everest Kitchen). Warm charcoal paper, cream type, one muted brass accent
   kept for prices, active states and small details. The prayer flags are the only colour on the page.
   Type: Cormorant Garamond for headings and dish names, Manrope for everything else.
   Spacing follows one scale (--s1 … --s8); everything aligns to the 20px page gutter. */
:root {
  --bg: #1c1916;             /* warm deep charcoal */
  --raised: #25211d;         /* sheets and menus that sit above the page */
  --cream: #efe6d6;          /* text and dish names */
  --muted: #a99d89;          /* descriptions, notes */
  --faint: #7d7364;
  --line: rgba(239, 230, 214, .1);
  --brass: #c4a06a;          /* the one accent: prices, active states, small details */
  --brass-soft: rgba(196, 160, 106, .4);
  --alert: #c8775f;          /* allergy warnings only, kept muted */
  --alert-ink: #e8b4a3;
  --alert-bg: rgba(200, 119, 95, .09);
  --head: 90px;              /* 50px bar + 40px prayer-flag string */
  --flags: 40px;
  --gutter: 20px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --display: "Cormorant Garamond", "Tiro Devanagari Hindi", Georgia, "Times New Roman", serif;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Kohinoor Devanagari", serif;
  --sans: "Manrope", "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* A very faint handmade-paper grain: fine fibres over soft mottling. */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .94 0 0 0 0 .89 0 0 0 0 .8 0 0 0 .055 0'/%3E%3C/filter%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .84 0 0 0 0 .74 0 0 0 .022 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
@media (min-width: 768px) { :root { --head: 100px; --flags: 50px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + var(--s4)); background: var(--bg); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative; z-index: 0;
}
/* Two fixed layers, painted once so they never repaint on scroll: the paper grain everywhere, and on
   the home page the mountain photo beneath it. The photo is square: on tall phones the sides crop, so
   anchor right of centre; on wide screens the top and bottom crop instead. */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::after { background: var(--paper); }
body.is-home::before {
  background: url("/photos/mountain-bg.jpg") 74% 50% / cover no-repeat;
  opacity: .5; filter: saturate(.6) brightness(.75); transform: translateZ(0);
}
@media (min-aspect-ratio: 1/1) { body.is-home::before { background-position: 50% 8%; } }
body.is-home::after {
  background: var(--paper), linear-gradient(180deg, rgba(28, 25, 22, .35) 0%, rgba(28, 25, 22, .55) 45%, rgba(28, 25, 22, .92) 75%, var(--bg) 100%);
}
/* Sticky bars sit on the same paper as the page, so they never read as a band. */
.topbar::before, .menu-head, .searchbar, .flags { background-color: var(--bg); background-image: var(--paper); }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
/* One heading voice everywhere: Cormorant, medium, upright, cream. */
.display, .brand, .sec-head h1, .sec-head h2, .page-title, .sub-title, .story-section h2, .section h2, .table-note span, .card h3, .entry-name, .qa-head h2, .home-link {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}
/* Small capitals with wide spacing: category labels, eyebrows, field labels. */
.tab, .group-title, .highlights, .cuisines, .info-body h2, .incl-label, .eyebrow, .pick, .qa-label, .note label, .panel-head h2, .allergy-pill {
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
a { color: var(--cream); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
button { -webkit-tap-highlight-color: transparent; font-family: inherit; }
::selection { background: rgba(196, 160, 106, .35); color: var(--cream); }
[lang="ne"], [lang="hi"] { font-family: var(--deva); }
/* Other scripts: Google fonts load when the language is chosen (app.js); system fonts cover the menu labels. */
[lang="bn"] { font-family: "Noto Sans Bengali", "Kohinoor Bangla", "Bangla Sangam MN", sans-serif; }
[lang="bo"] { font-family: "Noto Serif Tibetan", "Kailasa", "Microsoft Himalaya", serif; }
[lang|="zh"] { font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
[lang="ar"] { font-family: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", sans-serif; }
[lang="ko"] { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[lang="bn"] { --display: "Cormorant Garamond", "Noto Serif Bengali", "Kohinoor Bangla", serif; --sans: "Manrope", "Noto Sans Bengali", "Kohinoor Bangla", system-ui, sans-serif; }
html[lang="bo"] { --display: "Cormorant Garamond", "Noto Serif Tibetan", "Kailasa", serif; --sans: "Manrope", "Noto Serif Tibetan", "Kailasa", system-ui, sans-serif; }
/* Cormorant has no Greek, Arabic or Korean letters, so each script gets a serif of its own for headings. */
html[lang="el"] { --display: "Cormorant Garamond", "Noto Serif", Georgia, serif; --sans: "Manrope", "Noto Sans", system-ui, sans-serif; }
html[lang="ar"] { --display: "Cormorant Garamond", "Noto Naskh Arabic", "Geeza Pro", serif; --sans: "Manrope", "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; }
html[lang="ko"] { --display: "Cormorant Garamond", "Noto Serif KR", "AppleMyungjo", serif; --sans: "Manrope", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif; }
html[lang|="zh"] { --display: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif; --sans: "Manrope", "Noto Sans SC", "PingFang SC", system-ui, sans-serif; }
/* Wide letter-spacing breaks up joined letters in Bengali, Devanagari, Tibetan, Chinese and Korean. */
html:is([lang="bn"], [lang="ne"], [lang="hi"], [lang="bo"], [lang|="zh"], [lang="ko"]) :is(.tab, .group-title, .highlights, .cuisines, .info-body h2, .incl-label, .eyebrow, .pick, .qa-label, .note label, .panel-head h2, .allergy-pill) { letter-spacing: .02em; }
/* Arabic letters join up, so no letter-spacing at all, and a little more size for its smaller letters. */
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] body { font-size: 16.5px; }
/* Tibetan script stacks vowels above and below, so it needs a little more size and air. */
html[lang="bo"] body { font-size: 17px; line-height: 1.8; }
html[lang="bo"] .sec-head h1, html[lang="bo"] .sec-head h2, html[lang="bo"] .dish-head h1 { line-height: 1.35; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .f { fill: currentColor; stroke: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s1);
  height: var(--head); padding: 0 max(8px, env(safe-area-inset-right)) var(--flags) max(var(--gutter), env(safe-area-inset-left));
}
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: var(--flags); z-index: -1; pointer-events: none; }
/* On the home page the bar floats over the hero photo and scrolls away with it. */
body.is-home .topbar { position: absolute; left: 0; right: 0; }
body.is-home .topbar::before { bottom: 0; background: linear-gradient(rgba(28, 25, 22, .7), rgba(28, 25, 22, 0)); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto; padding: var(--s1) 0;
  color: var(--cream); text-decoration: none; font-size: 1.55rem; font-weight: 600; white-space: nowrap;
}
.brand-ico { width: 26px; height: 26px; flex: none; color: var(--brass); stroke-width: 1.7; margin-top: -3px; }
/* Prayer flags strung along the bottom of the bar (drawn in prayer-flags.js), on the page's own paper.
   The string fades out at both edges and a very soft shadow sets the cloth just off the page. */
.flags { position: absolute; left: 0; right: 0; bottom: 0; height: var(--flags); overflow: hidden; pointer-events: none; }
body.is-home .flags { background: none; }
.flags canvas {
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .28));
}
.tools { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--cream); cursor: pointer; transition: background .2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(239, 230, 214, .08); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.icon-btn .dot[hidden] { display: none; }
/* Language menu: each language in its own script */
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; z-index: 40; top: calc(100% + var(--s2)); right: 0; width: min(330px, calc(100vw - 24px)); padding: 6px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  animation: drop .25s var(--ease);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  position: relative; display: grid; align-content: center; gap: 1px; width: 100%; min-height: 52px; padding: 4px 26px 4px 12px;
  border: 0; border-radius: 8px; background: none; color: var(--cream); font-size: 1.02rem; line-height: 1.25; text-align: start; cursor: pointer;
}
.lang-menu .lang-en { font: 500 .7rem/1.2 var(--sans); letter-spacing: .02em; color: var(--faint); }
/* Both lines line up on the reading side of the page, also for a right-to-left language name (العربية). */
.lang-menu button > span { justify-self: start; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(239, 230, 214, .06); outline: none; }
.lang-menu button[aria-checked="true"] { color: var(--brass); }
.lang-menu button[aria-checked="true"]::after { content: ""; position: absolute; right: 10px; top: 50%; margin-top: -4px; width: 10px; height: 5px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg) translateY(-2px); }
.lang-draft { margin: 6px 8px; padding-top: var(--s2); border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.45; color: var(--muted); }
.draft { margin: var(--s4) auto 0; max-width: 40ch; font-size: .76rem; line-height: 1.5; color: var(--faint); }
.searchbar {
  position: absolute; inset: 0 0 var(--flags) 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 0 max(10px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  animation: drop .25s var(--ease);
}
.searchbar[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.searchbar input {
  flex: 1; min-width: 0; height: 42px; padding: 0 var(--s4) 0 40px; border-radius: 999px;
  font: 400 1rem/1 var(--sans); color: var(--cream); border: 1px solid var(--line);
  background: rgba(239, 230, 214, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23a99d89' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7.5' cy='7.5' r='5.5'/%3E%3Cpath d='m12 12 4.5 4.5'/%3E%3C/svg%3E") 14px center no-repeat;
  -webkit-appearance: none; appearance: none;
}
.searchbar input::placeholder { color: var(--faint); }
.searchbar input:focus { outline: none; border-color: var(--brass-soft); }
.searchbar input::-webkit-search-cancel-button { display: none; }

/* Allergen filter: a sheet that drops from the top bar */
.filter-panel { position: fixed; z-index: 25; inset: var(--head) 0 0 0; background: rgba(0, 0, 0, .5); animation: fade .25s ease; }
.filter-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.panel-inner {
  max-width: 760px; margin: 0 auto; padding: var(--s5) var(--gutter); background: var(--raised);
  border-radius: 0 0 14px 14px; border: 1px solid var(--line); border-top: 0; animation: drop .3s var(--ease);
}
.panel-inner:focus { outline: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { color: var(--muted); }
.panel-inner .hint { margin: var(--s1) 0 var(--s4); font-size: .92rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 500 .9rem/1 var(--sans); color: var(--cream); background: transparent; border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.chip:hover { border-color: rgba(239, 230, 214, .3); }
.chip[aria-pressed="true"] { background: var(--alert-bg); border-color: var(--alert); color: var(--alert-ink); text-decoration: line-through; }
/* Diets are kept, not avoided: a quiet brass fill instead of the struck-through allergy look. */
.diet-chip[aria-pressed="true"] { background: rgba(196, 160, 106, .14); border-color: var(--brass); color: var(--cream); text-decoration: none; }
.panel-sub { margin: var(--s5) 0 0; font: 500 1.35rem/1.2 var(--display); color: var(--cream); }
.panel-inner { max-height: calc(100vh - var(--head)); max-height: calc(100dvh - var(--head)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; }
/* The count, the allergy reminder and the buttons stay in view while the chips scroll. */
.panel-foot { position: sticky; bottom: 0; margin: var(--s4) calc(-1 * var(--gutter)) 0; padding: var(--s3) var(--gutter) var(--s5); background: var(--raised); border-top: 1px solid var(--line); }
.match-count { margin: 0; font-weight: 600; color: var(--brass); }
.tell-always { margin: 2px 0 0; font-size: .84rem; color: var(--alert-ink); }
.panel-foot .panel-actions { margin-top: var(--s3); }
.filter-tell { display: block; margin-top: 2px; color: var(--alert-ink); }
.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); }
.panel-actions .btn { min-height: 46px; padding: 0 26px; }

main { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) var(--s8); outline: none; }
/* Gentle page moves: a short fade and drift, deeper pages from the right, back from the left. */
main.slide-in { animation: slide-in .45s var(--ease); }
main.slide-back { animation: slide-back .45s var(--ease); }
main.fade-in { animation: enter .4s var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-12px); } }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.loading { text-align: center; color: var(--muted); padding: var(--s8) 0; }

/* The page itself is the menu: no panels, just paper. */
.sheet { padding: 0 0 var(--s6); }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s2); text-decoration: none; cursor: pointer;
  font: 600 .98rem/1 var(--sans); letter-spacing: .01em; padding: 0 var(--s5); min-height: 52px; border-radius: 999px; border: 0;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--cream); color: var(--bg); }
.btn-primary:hover { background: #fbf4e8; }
.btn-secondary { color: var(--cream); background: transparent; border: 1px solid rgba(239, 230, 214, .25); }
.btn-secondary:hover { border-color: rgba(239, 230, 214, .5); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.is-off { opacity: .4; cursor: default; }
.text-link { color: var(--cream); font-weight: 500; text-decoration: underline; text-decoration-color: var(--brass-soft); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--brass); }
.link-btn {
  font: 500 .9rem/1 var(--sans); color: var(--muted); background: none; border: 0; padding: 10px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--cream); }

/* ---------- Home ---------- */
.hero { padding: calc(var(--head) + var(--s7)) 0 var(--s6); text-align: center; }
.hero-inner { max-width: 560px; margin: 0 auto; }
.hero-name { font-size: clamp(3.2rem, 15vw, 5.6rem); line-height: .95; color: var(--cream); text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.hero-alt { margin: var(--s3) 0 0; font-size: 1.25rem; line-height: 1.3; color: var(--muted); }
.tagline { margin: var(--s4) 0 0; font-size: 1rem; color: var(--cream); }
.cuisines { margin: var(--s3) 0 0; color: var(--muted); }
.intro .hero-inner > * { animation: rise 1s var(--ease) both; }
.intro .hero-inner > :nth-child(2) { animation-delay: .08s; }
.intro .hero-inner > :nth-child(3) { animation-delay: .16s; }
.intro .hero-inner > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.home-body { max-width: 440px; margin: 0 auto; text-align: center; }
.home-nav { display: grid; margin-top: var(--s5); border-top: 1px solid var(--line); text-align: left; }
.home-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding: var(--s3) var(--s1);
  border-bottom: 1px solid var(--line); color: var(--cream); text-decoration: none; font-size: 1.65rem; line-height: 1.1;
}
.home-link .arrow { position: relative; flex: none; width: 22px; height: 1px; background: var(--brass); transition: transform .3s var(--ease); }
.home-link .arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid var(--brass); border-right: 1px solid var(--brass); transform: rotate(45deg); }
.home-link:hover .arrow { transform: translateX(4px); }
.home-allergy { margin: var(--s4) 0 0; }
.home-allergy button {
  padding: var(--s2) 0; border: 0; background: none; cursor: pointer; font: 500 .88rem/1.4 var(--sans); color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; transition: color .25s;
}
.home-allergy button:hover { color: var(--cream); text-decoration-color: var(--brass-soft); }
.home-more { display: flex; justify-content: center; gap: var(--s5); margin: var(--s5) 0 0; font-size: .92rem; }
.music { margin: var(--s5) 0 0; font-size: .86rem; color: var(--muted); }
.address { margin: var(--s1) 0 0; font-size: .86rem; color: var(--faint); text-wrap: balance; }
.address a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 4px; }

/* ---------- Section headers: a title and a thin brass line ---------- */
.sec-head { padding: var(--s6) 0 var(--s2); text-align: center; }
.sec-head h1, .sec-head h2 { font-size: clamp(1.9rem, 8vw, 2.3rem); line-height: 1.1; color: var(--cream); }
.sec-head h1::after, .sec-head h2::after { content: ""; display: block; width: 36px; height: 1px; margin: var(--s3) auto 0; background: var(--brass); }
.cat-note { margin: var(--s3) 0 0; font-size: .86rem; color: var(--muted); }
.page-head { padding-top: var(--s5); }
.page-head h1 { font-size: clamp(2.3rem, 10vw, 2.8rem); }
.veg-intro { max-width: 36ch; margin: var(--s3) auto 0; font-size: .92rem; color: var(--muted); }

/* ---------- Menu head: Food / Drinks / Vegetarian and category tabs ---------- */
.menu-head {
  position: sticky; top: var(--head); z-index: 10; margin: 0 calc(-1 * var(--gutter)); padding: var(--s2) var(--gutter) 0;
  border-bottom: 1px solid var(--line);
}
.switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; margin-bottom: var(--s2); border-radius: 999px; border: 1px solid var(--line); }
.switch button {
  min-height: 38px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font: 500 .9rem/1 var(--sans); color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease);
}
.switch button[aria-pressed="true"] { color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass-soft); }
.tabs {
  display: flex; gap: var(--s5); overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) !important; padding: 0 var(--gutter);
  scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 14px 0 15px; min-height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--faint); white-space: nowrap; scroll-snap-align: center; transition: color .25s;
}
.tab:hover { color: var(--cream); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.tab[aria-selected="true"] { color: var(--cream); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.searching .tab[aria-selected="true"] { color: var(--faint); }
.tabs-row { display: flex; align-items: center; gap: var(--s3); }
.tabs-row .tabs { flex: 1; min-width: 0; margin-right: 0 !important; }
.tabs-row.solo { justify-content: flex-end; padding-bottom: var(--s2); }
.allergy-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 var(--s3); border-radius: 999px; cursor: pointer;
  font-size: .62rem; color: var(--muted); background: none; border: 1px solid var(--line); transition: color .25s, border-color .25s;
}
.allergy-pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.allergy-pill:hover { color: var(--brass); border-color: var(--brass-soft); }
.filter-bar { margin: 0 calc(-1 * var(--gutter)); padding: var(--s2) var(--gutter); border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.filter-bar button { padding: 0; border: 0; background: none; cursor: pointer; font: 600 .78rem/1 var(--sans); color: var(--brass); text-decoration: underline; text-decoration-color: var(--brass-soft); text-underline-offset: 3px; }
.searching .tab[aria-selected="true"]::after { transform: scaleX(0); }

/* First-visit hint: one quiet line */
.hint-tip { margin: var(--s4) 0 0; font-size: .8rem; color: var(--muted); text-align: center; animation: enter .5s var(--ease); }
.hint-tip button {
  margin-left: var(--s1); padding: var(--s2) var(--s1); border: 0; background: none; cursor: pointer;
  font: 600 .8rem/1 var(--sans); color: var(--brass); text-decoration: underline; text-decoration-color: var(--brass-soft); text-underline-offset: 4px;
}
.notice { margin: var(--s4) 0 0; padding: 0 0 0 var(--s3); font-size: .82rem; line-height: 1.55; color: var(--muted); border-left: 1px solid var(--brass-soft); }
.hidden-note { margin: var(--s4) 0 var(--s5); font-size: .86rem; color: var(--muted); text-align: center; }
.empty { text-align: center; color: var(--muted); padding: var(--s6) 0; margin: 0; }
.list-body.enter { animation: enter .4s var(--ease); }

/* ---------- Dish cards: photo, name, one line, price and + ---------- */
.cards { margin-top: var(--s3); }
.card { position: relative; display: flex; gap: var(--s4); padding: var(--s5) 26px var(--s5) 0; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
.reveal .card { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal .card.in { opacity: 1; transform: none; }
/* Keyboard focus only: a tap (or focus returning to + after quick add) leaves no box on the card. */
.card:has(:focus-visible) { outline: 1.5px solid var(--brass); outline-offset: 4px; border-radius: 4px; }
/* Chevron: this opens. */
.card::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-top: 1px solid var(--faint); border-right: 1px solid var(--faint); transform: rotate(45deg);
  pointer-events: none; transition: transform .3s var(--ease), border-color .3s;
}
.card:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--brass); }
.card-link { color: inherit; text-decoration: none; outline: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--cream); }
.nm-alt { display: block; margin: 2px 0 0; font-size: .95rem; line-height: 1.35; color: var(--muted); }
.card .desc { margin: var(--s1) 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; gap: var(--s3); margin-top: auto; padding-top: var(--s3); }
.price { font-weight: 600; white-space: nowrap; color: var(--brass); font-variant-numeric: tabular-nums; }
.card-foot .price { font-size: .95rem; }
.card-foot .add { margin-left: auto; }
/* Today's Special: one calm card at the top of the food menu, framed by a thin brass line. */
.specials { display: grid; gap: var(--s3); margin: var(--s5) 0 0; }
.specials[hidden] { display: none; }
.special {
  position: relative; display: flex; align-items: center; gap: var(--s4); padding: var(--s3); border-radius: 12px;
  border: 1px solid var(--brass-soft); background: var(--raised); color: inherit; text-decoration: none;
  transition: border-color .25s;
}
.special:hover { border-color: var(--brass); }
.special:has(.card-link:focus-visible) { outline: 1.5px solid var(--brass); outline-offset: 3px; }
.special .thumb { width: 84px; height: 84px; }
.special-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.special-label { font: 600 .66rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.special-name { font: 500 1.4rem/1.15 var(--display); color: var(--cream); }
.special .price, .special .sold-tag { justify-self: start; margin: 2px 0 0; font-size: .95rem; }
.special-name { display: block; }
.special .add { margin-right: var(--s1); }
/* Dish page without a photo: the section's line drawing on a soft panel. */
.hero-photo { display: grid; place-items: center; }
.hero-photo:not(.has-photo) {
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brass) 14%, var(--raised)) 0, var(--raised) 46%, color-mix(in srgb, var(--bg) 60%, var(--raised)) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-ico { width: 72px; height: 72px; color: color-mix(in srgb, var(--brass) 70%, var(--faint)); stroke-width: 1.2; }
.hero-photo.has-photo .hero-ico { visibility: hidden; }
/* Sold out today (from the Google Sheet): still on the menu, greyed, with a label instead of the +. */
.card.sold-out .thumb, .card.sold-out h3, .card.sold-out .nm-alt, .card.sold-out .desc, .card.sold-out .price, .card.sold-out .card-serves, .card.sold-out .diet { opacity: .45; }
.card.sold-out .thumb { filter: grayscale(1); }
.card.sold-out .card-serves { display: none; }
.sold-tag { flex: none; margin-left: auto; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font: 600 .66rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sold-note { font-size: .74rem; color: var(--muted); }
.card-serves { font-size: .74rem; color: var(--muted); white-space: nowrap; }
/* Dish page: who it feeds and the portion, right under the price. */
.serves-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin: var(--s2) 0 0; font-size: .9rem; color: var(--muted); }
.serves-line .serves { color: var(--cream); font-weight: 600; }
.serves-line .portion::before { content: "·"; margin-right: var(--s2); color: var(--brass); }
.highlights { margin: 0 0 var(--s1); color: var(--brass); font-size: .62rem; }
.group-title { display: flex; align-items: center; gap: var(--s3); margin: var(--s6) 0 0; color: var(--muted); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Photo on food cards: a quiet icon until photos/dishes/<id>.jpg exists */
.thumb {
  position: relative; flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center; color: var(--faint); background: #24201b; box-shadow: inset 0 0 0 1px var(--line);
}
.thumb .ico { width: 36px; height: 36px; stroke-width: 1.3; }
.thumb img, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.has-photo img { opacity: 1; }
/* Photos from many cameras, pulled together with the same gentle warmth as the lamp-lit theme. */
.dish-photo { filter: sepia(.14) saturate(1.04) brightness(.95) contrast(1.03); }
.has-photo .ico { visibility: hidden; }
@media (min-width: 640px) { .thumb { width: 112px; height: 112px; } }

/* Spice, diet and the like: small and quiet, but always there */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: .82rem; color: var(--muted); }
.spice { display: inline-flex; align-items: center; gap: 6px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid var(--brass); }
.pips i.on { background: var(--brass); }
.diet, .vegan-tag {
  display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 3px;
  font: 600 .6rem/1 var(--sans); letter-spacing: .08em; text-decoration: none; text-transform: uppercase;
  color: var(--muted); border: 1px solid rgba(239, 230, 214, .22);
}
/* The vegan label is a word ("Vegan"), so it reads in normal case rather than as capitals. */
.diet.vg { text-transform: none; letter-spacing: .02em; }
.diets { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.flag { font-weight: 500; }

/* + button */
.add {
  position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; cursor: pointer; background: transparent; color: var(--cream); border: 1px solid rgba(239, 230, 214, .3);
  font: 300 1.3rem/1 var(--sans); transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.add:hover { border-color: var(--brass); color: var(--brass); }
.add:active { transform: scale(.94); }
.add.done { background: var(--brass); border-color: var(--brass); color: var(--bg); font-size: .9rem; animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.92); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* ---------- Drinks ---------- */
.bar-banner { margin: var(--s3) 0 var(--s5); text-align: center; }
.age { display: inline-flex; align-items: center; gap: var(--s2); margin: 0; font-size: .8rem; color: var(--muted); }
.age::before {
  content: "21+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--brass-soft); color: var(--brass); font-size: .62rem; font-weight: 700;
}

/* ---------- Dish page ---------- */
.back {
  display: inline-flex; align-items: center; gap: var(--s2); margin: var(--s4) 0 var(--s2); padding: 6px 0;
  text-decoration: none; font-size: .9rem; color: var(--muted);
}
.back:hover { color: var(--cream); }
/* The photo runs edge to edge at the top, with the way back resting on it. */
.dish-top { position: relative; }
.dish-top.with-photo .back {
  position: absolute; z-index: 2; top: var(--s3); left: 0; margin: 0; padding: 6px var(--s3); border-radius: 999px;
  font-size: .82rem; color: var(--cream); background: rgba(28, 25, 22, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-photo { position: relative; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; overflow: hidden; background: #24201b; }
@media (min-width: 640px) { .hero-photo { margin: var(--s3) 0 0; border-radius: 6px; aspect-ratio: 16 / 9; } .dish-top.with-photo .back { top: var(--s5); left: var(--s3); } }
.dish-sheet { padding-top: 0; }
.dish-head { padding: var(--s5) 0 var(--s4); }
.dish-head h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); line-height: 1; color: var(--cream); }
.eyebrow { margin: 0 0 var(--s2); color: var(--faint); }
.eyebrow .hl { color: var(--brass); }
.opt-line { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: var(--s3) 0 0; font-size: .95rem; }
.opt-line span { display: inline-flex; align-items: center; gap: 6px; }
.opt-line .price { font-weight: 600; }
.opt-line .off { opacity: .4; text-decoration: line-through; }
.allergy-line { padding: var(--s4) 0; border-top: 1px solid var(--line); font-size: .9rem; }
.allergy-line p { margin: 0; }
.allergy-line strong { font-weight: 600; color: var(--alert-ink); }
.allergy-line .tell { margin-top: var(--s1); font-size: .82rem; color: var(--muted); }
.folds { border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.fold { border-top: 1px solid var(--line); }
.fold h2 { margin: 0; }
.fold-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 56px; padding: var(--s3) 0;
  border: 0; background: none; cursor: pointer; text-align: left; color: var(--cream); font: 500 1.35rem/1.2 var(--display);
}
/* Draft and sample notes ride along in the row title as a faint caption, not a pill. */
.fold-btn .sample { margin-left: var(--s2); padding: 0; border: 0; font: 600 .58rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); vertical-align: 3px; }
.fold-chev { flex: none; width: 8px; height: 8px; margin-right: var(--s1); border-right: 1px solid var(--brass); border-bottom: 1px solid var(--brass); transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease); }
.fold.open .fold-chev { transform: translateY(2px) rotate(225deg); }
/* Rows slide open and closed; closed content is hidden from screen readers too. */
.fold-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.fold.open .fold-body { grid-template-rows: 1fr; }
.fold-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .4s; }
.fold.open .fold-inner { visibility: visible; transition-delay: 0s; }
/* Body text in the rows matches the description size, well under the row headings. */
.fold-inner { font-size: .92rem; line-height: 1.6; }
.fold-inner > :first-child { margin-top: 0; }
.fold-inner > :last-child { margin-bottom: var(--s5); }
.fold-inner p { margin: 0 0 var(--s5); max-width: 62ch; color: var(--muted); }
.nm-alt.big { margin-top: var(--s2); font-size: 1.25rem; }
.price.big { display: block; margin: var(--s3) 0 0; font-size: 1.2rem; }
.lede { margin: var(--s3) 0 0; font-size: 1rem; line-height: 1.6; color: var(--cream); }
.dish-head .served { margin: var(--s2) 0 0; font-size: .9rem; color: var(--muted); }
.dish-head .meta { margin-top: var(--s4); }
.incl-head { margin: var(--s4) 0 0; }
.incl-label { margin: 0 0 var(--s2); color: var(--muted); }
.incl-list { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.incl-list li:not(:last-child)::after { content: "·"; margin-left: var(--s2); color: var(--brass); }
.added-msg { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.added-msg a { font-weight: 600; color: var(--cream); }
.dish-sheet .notice { margin: 0 0 var(--s2); }
.section { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 var(--s3); font-size: 1.55rem; color: var(--cream); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) 0; }
.section > p { margin: 0; max-width: 62ch; }
.leader { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(239, 230, 214, .18); transform: translateY(-4px); }
.sample {
  display: inline-block; margin-left: var(--s2); padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font: 500 .7rem/1.4 var(--sans); color: var(--brass); border: 1px solid var(--brass-soft);
}
.atag { padding: 2px 8px; border-radius: 3px; border: 1px solid rgba(200, 119, 95, .55); color: var(--alert-ink); font-size: .78rem; font-weight: 600; }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients li.has-allergen { box-shadow: inset 2px 0 0 var(--alert); padding-left: var(--s3); }
.ingredients .atag { font-size: .68rem; padding: 1px 6px; margin-left: var(--s2); vertical-align: 1px; }
.ingredients small { display: block; color: var(--muted); font-size: .86rem; }
.method { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.method li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: var(--s1); margin: 0 0 var(--s3); }
.method li::before { content: counter(step); font: 500 1.4rem/1.1 var(--display); color: var(--brass); }
.add-box { display: grid; gap: var(--s3); padding: 0 0 var(--s5); }
.pairs { display: grid; padding-bottom: var(--s3); }
.pair { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.pair:last-child { border-bottom: 0; }
.pair-ico-wrap { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #24201b; }
.pair-ico { width: 26px; height: 26px; color: var(--faint); stroke-width: 1.4; }
.pair-ico-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair > span:not(.price):not(.pair-ico-wrap) { flex: 1; min-width: 0; }
.pair strong { display: block; font-weight: 600; font-size: .98rem; }
.pair small { display: block; margin-top: 2px; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.pair .price { font-size: .9rem; }
.pair::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: var(--s1); border-top: 1px solid var(--faint); border-right: 1px solid var(--faint); transform: rotate(45deg); }
.coming { color: var(--muted); }
.foot-notes { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); text-align: center; }
.foot-notes p { margin: 0 0 var(--s1); }
.foot-notes .notice { margin: 0 auto var(--s4); max-width: 46ch; text-align: left; }
.panel-inner .notice { margin: 0 0 var(--s4); }

/* Pickers (dish page and My List) */
.pickers { display: grid; gap: var(--s3); }
.pick { display: grid; gap: 6px; color: var(--muted); }
.pick select {
  min-height: 48px; padding: 0 40px 0 14px; border-radius: 8px; font: 500 .98rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--cream);
  background: rgba(239, 230, 214, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c4a06a' stroke-width='1.4'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat;
  border: 1px solid var(--line); -webkit-appearance: none; appearance: none;
}
.pick select:focus { border-color: var(--brass-soft); outline: none; }
.pick select option { background: var(--raised); color: var(--cream); }
.pick-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .95rem; cursor: pointer; }
.pick-check input { width: 20px; height: 20px; accent-color: var(--brass); }

/* ---------- My List ---------- */
.reminder { margin: var(--s4) 0; padding: var(--s3) var(--s4); border-radius: 8px; font-size: .88rem; color: var(--muted); border: 1px solid var(--line); text-align: center; }
.table-note { display: grid; gap: var(--s2); margin: var(--s3) 0 6px; padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.table-note span { font-size: 1.35rem; color: var(--cream); }
.table-note textarea, .note input {
  width: 100%; padding: 11px 14px; border-radius: 8px; font: 400 .98rem/1.4 var(--sans); color: var(--cream);
  background: rgba(239, 230, 214, .04); border: 1px solid var(--line); -webkit-appearance: none; appearance: none;
}
.table-note textarea { resize: vertical; min-height: 64px; }
.note input { min-height: 44px; }
.table-note textarea::placeholder, .note input::placeholder { color: var(--faint); }
.table-note textarea:focus, .note input:focus { border-color: var(--brass-soft); outline: none; }
.my-list > .back { margin-bottom: 0; }
.mylist { list-style: none; padding: 0; margin: 0 0 var(--s2); }
.entry { border-bottom: 1px solid var(--line); }
.entry-row { display: flex; align-items: center; gap: 10px; padding: var(--s3) 0; }
.entry-toggle {
  position: relative; flex: 1; min-width: 0; display: grid; gap: 2px; padding: var(--s1) 22px var(--s1) 0; text-align: left;
  border: 0; background: none; color: inherit; cursor: pointer; font: inherit;
}
.entry-toggle::after {
  content: ""; position: absolute; right: var(--s1); top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1px solid var(--faint); border-bottom: 1px solid var(--faint); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.entry.open .entry-toggle::after { transform: translateY(4px) rotate(225deg); }
.entry-name { font-size: 1.4rem; font-weight: 600; line-height: 1.15; color: var(--cream); }
.entry-sum { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry.open .entry-sum { white-space: normal; }
.entry-warn { font-size: .82rem; font-weight: 600; color: var(--alert-ink); }
.entry-detail { display: grid; gap: 14px; padding: 2px 0 var(--s5); animation: enter .35s var(--ease); }
.entry-detail[hidden] { display: none; }
.detail-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.detail-foot .text-link { font-size: .9rem; }
.note { display: grid; gap: var(--s2); }
.note label { display: grid; gap: 6px; color: var(--muted); }
.note label input { letter-spacing: 0; text-transform: none; }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chip {
  min-height: 34px; padding: 0 var(--s3); border-radius: 999px; cursor: pointer; font: 500 .84rem/1 var(--sans);
  background: transparent; color: var(--cream); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.note-chip:hover { border-color: rgba(239, 230, 214, .3); }
.note-chip[aria-pressed="true"] { background: rgba(196, 160, 106, .14); border-color: var(--brass-soft); color: var(--brass); }
.qty { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--cream); cursor: pointer; font: 300 1.25rem/1 var(--sans); }
.qty button:disabled { color: var(--faint); cursor: default; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Remove: a quiet × on every line, and swipe toward the start of the row to uncover a red Delete. */
:root { --danger: #b4473b; }
.entry-x {
  flex: none; width: 34px; height: 44px; margin-inline-start: -4px; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--faint); cursor: pointer; font: 300 1.35rem/1 var(--sans); transition: color .2s;
}
.entry-x:hover, .entry-x:focus-visible { color: var(--cream); }
.swipe { position: relative; overflow: hidden; touch-action: pan-y; --reveal: 0px; }
.swipe .entry-row { position: relative; transform: translateX(calc(var(--reveal) * -1)); transition: transform .32s var(--ease); }
.swipe-del {
  position: absolute; top: 8px; bottom: 8px; right: 0; width: max(0px, calc(var(--reveal) - 8px)); overflow: hidden;
  display: flex; align-items: center; justify-content: flex-start; padding: 0; border: 0; border-radius: 12px;
  background: var(--danger); color: #fff; font: 600 .9rem/1 var(--sans); letter-spacing: .01em; cursor: pointer; transition: width .32s var(--ease);
}
.swipe-del span { flex: none; width: 80px; text-align: center; white-space: nowrap; }
.swipe.dragging .entry-row, .swipe.dragging .swipe-del { transition: none; }
.entry.leaving { opacity: 0; transition: opacity .18s var(--ease); }
/* "Removed · Undo", for about 4 seconds after any removal. */
.undo-toast {
  position: fixed; z-index: 30; left: 50%; translate: -50% 0; bottom: max(var(--s4), env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 20px; border-radius: 999px;
  background-color: var(--raised); color: var(--cream); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  font: 500 .92rem/1 var(--sans); white-space: nowrap;
}
.undo-toast[hidden] { display: none; }
.undo-toast.in { animation: toast-in .3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.undo-toast .dot-sep { color: var(--faint); }
.undo-toast button {
  min-height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  color: var(--brass); font: 600 .92rem/1 var(--sans); cursor: pointer;
}
.undo-toast button:hover { background: rgba(196, 160, 106, .1); }
body.has-fab .undo-toast { bottom: calc(max(var(--s4), env(safe-area-inset-bottom)) + 60px); }
body.has-toast main { padding-bottom: 104px; }
body.ticket-mode .undo-toast { display: none; }
.list-actions { display: grid; gap: 10px; margin-top: var(--s5); }
.empty-state { display: grid; justify-items: center; gap: var(--s1); padding: var(--s2) 0 0; }
.empty-ico { width: 56px; height: 56px; color: var(--faint); stroke-width: 1.2; }
.empty-state .empty { padding: 0 0 var(--s2); }
.empty-state .btn { width: 100%; margin-top: var(--s2); }

/* ---------- Restaurant info ---------- */
.info-row { display: flex; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.info-ico { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.info-body { min-width: 0; }
.info-body h2 { margin: 0 0 6px; color: var(--muted); }
.info-body p { margin: 0 0 var(--s1); }
.info-link { display: inline-block; padding: 6px 0; font-weight: 500; color: var(--cream); text-decoration: underline; text-decoration-color: var(--brass-soft); text-underline-offset: 5px; }
.info-link:hover { text-decoration-color: var(--brass); }
.info-soon { color: var(--muted); }
.info-dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); margin: 0; }
.info-dl dt { color: var(--muted); }
.info-dl dd { margin: 0; white-space: nowrap; }
.info-review { margin-top: var(--s6); text-align: center; }
/* Reserve a table (demo): a calm button at the top of the info page, and a short form in the theme's colours. */
.reserve-btn { margin: var(--s5) 0 var(--s2); }
.res-intro { margin: var(--s4) 0 var(--s5); color: var(--muted); text-align: center; }
.res-form { display: grid; gap: var(--s4); }
.res-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.res-field input, .res-field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 8px; font: 500 .98rem/1.3 var(--sans); letter-spacing: 0; text-transform: none;
  color: var(--cream); background: color-mix(in srgb, var(--cream) 4%, transparent); border: 1px solid var(--line); -webkit-appearance: none; appearance: none;
}
.res-field textarea { resize: vertical; min-height: 72px; }
.res-field input::placeholder, .res-field textarea::placeholder { color: var(--faint); }
.res-field input:focus, .res-field textarea:focus { border-color: var(--brass-soft); outline: none; }
.res-field [aria-invalid="true"] { border-color: var(--alert); }
.res-field input[type="date"] { display: block; }
.res-missing { margin: 0; font-size: .88rem; color: var(--alert-ink); }
.res-fail { margin: 0; padding: var(--s3); border-radius: 10px; font-size: .9rem; line-height: 1.5; color: var(--alert-ink); background: var(--alert-bg); }
.res-fail[hidden] { display: none; }
.res-fail a { color: inherit; font-weight: 600; }
.btn:disabled { opacity: .6; cursor: progress; }
/* Spam trap: invisible to people, still in the form for bots. Clipped in place rather than pushed off to one side,
   which would make a right-to-left page (Arabic) scroll sideways. */
.res-hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.res-demo { margin: 0; font-size: .8rem; text-align: center; color: var(--faint); }
.res-sent { display: grid; gap: var(--s3); margin-top: var(--s5); padding: var(--s5); border: 1px solid var(--brass-soft); border-radius: 12px; text-align: center; outline: none; }
.res-sent-title { margin: 0 0 var(--s1); font: 500 1.6rem/1.2 var(--display); color: var(--cream); }
.info-review p { margin: 0 0 var(--s3); color: var(--muted); }
.info-review .info-ico { stroke: currentColor; width: 17px; height: 17px; }

/* ---------- Story ---------- */
.story-section { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.story-section:first-of-type { border-top: 0; }
.story-section h2 { margin: 0 0 var(--s2); font-size: 1.6rem; color: var(--cream); }
.story-section p { margin: 0; max-width: 62ch; color: var(--muted); }
.sub-title { margin: var(--s6) 0 var(--s4); font-size: 1.8rem; color: var(--cream); text-align: center; }
.cuisine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin: 0 0 var(--s6); }
.cuisine-card { padding-top: var(--s3); border-top: 1px solid var(--brass-soft); }
.cuisine-card h3 { margin: 0 0 6px; }
.cuisine-card h3 .flag { font: 600 .98rem/1.2 var(--sans); }
.cuisine-card p { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 360px) { .cuisine-grid { grid-template-columns: 1fr; } }

/* ---------- Quick add: options sheet from the bottom ---------- */
.qa {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .5); animation: fade .3s ease; overscroll-behavior: contain;
}
.qa[hidden] { display: none; }
html.qa-open { overflow: hidden; }
.qa-panel {
  display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 86vh; max-height: 86dvh;
  background-color: var(--raised); background-image: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .4); animation: sheet-up .45s var(--ease); outline: none;
}
.qa-panel::before { content: ""; align-self: center; width: 36px; height: 3px; margin: 10px 0 2px; border-radius: 2px; background: rgba(239, 230, 214, .2); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.qa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s3) 6px var(--gutter); }
.qa-head h2 { padding-top: 6px; font-size: 1.8rem; line-height: 1.1; color: var(--cream); }
.qa-head .nm-alt { margin-top: 2px; }
.qa-body { overflow-y: auto; padding: var(--s1) var(--gutter) 6px; }
.qa-group { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.qa-label { margin: 0 0 var(--s3); color: var(--muted); }
.qa-label small { margin-left: 6px; font-size: inherit; color: var(--faint); }
.qa-choices { display: flex; flex-wrap: wrap; gap: var(--s2); }
.qa-choice {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: 999px; cursor: pointer;
  font: 500 .95rem/1.2 var(--sans); color: var(--cream); background: transparent; border: 1px solid var(--line);
  transition: background .2s, border-color .2s, color .2s;
}
.qa-choice .price { font-size: .86rem; }
.qa-choice:hover { border-color: rgba(239, 230, 214, .3); }
.qa-choice[aria-checked="true"] { background: rgba(196, 160, 106, .14); border-color: var(--brass); color: var(--cream); }
.qa-foot { padding: var(--s3) var(--gutter) max(var(--s4), env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.qa-hint { margin: 0 0 10px; text-align: center; font-size: .84rem; color: var(--muted); }
.qa-foot .btn { width: 100%; }

/* ---------- My List: a sticky button at the foot of the screen ---------- */
.fab {
  position: fixed; z-index: 20; left: 50%; translate: -50% 0; bottom: max(var(--s4), env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--cream); color: var(--bg); text-decoration: none; font: 600 .92rem/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45); animation: enter .45s var(--ease);
}
.fab[hidden] { display: none; }
.fab svg { width: 16px; height: 16px; }
.fab.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
body.has-fab main { padding-bottom: 104px; }

/* ---------- Ticket for the server: plain, large, high contrast ---------- */
body.ticket-mode { background: #fff; color: #000; }
body.ticket-mode::before, body.ticket-mode::after, body.ticket-mode .topbar, body.ticket-mode .fab, body.ticket-mode .filter-panel { display: none; }
body.ticket-mode main { max-width: 640px; padding: 0 var(--s4) var(--s6); }
.ticket { font-family: var(--sans); color: #000; padding-top: max(var(--s4), env(safe-area-inset-top)); }
.ticket-head { display: grid; gap: 2px; padding: var(--s3) 0 14px; border-bottom: 3px solid #000; }
.ticket-head strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.ticket-head span, .ticket-head time { font-size: 1rem; color: #333; }
.ticket h2 { font: 800 1.1rem/1 var(--sans); color: #000; margin: 22px 0 6px; padding-bottom: 6px; border-bottom: 1px solid #000; }
.tlines { list-style: none; padding: 0; margin: 0; }
.tlines li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px dashed #999; }
.tlines .tq { font-size: 1.7rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tlines b { display: block; font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.tlines span { display: block; font-size: 1.15rem; color: #222; margin-top: 2px; }
.ticket-avoid { margin: 14px 0 0; padding: var(--s3); border: 3px solid #000; font-size: 1.2rem; }
.ticket-table-note { margin: 14px 0 0; padding: var(--s3); background: #000; color: #fff; font-size: 1.25rem; line-height: 1.35; }
.tlines .tnote {
  display: block; margin-top: 6px; padding: var(--s1) var(--s2); border-left: 4px solid #000;
  font-style: normal; font-size: 1.2rem; font-weight: 600; color: #000; background: #f0f0f0;
}
.ticket-note { margin: var(--s5) 0; font-size: .95rem; color: #333; }
.ticket-close {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 8px;
  background: #000; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.ticket-close:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

/* Phones: the name and four top-bar icons (info, search, filter, language) share one row. */
@media (max-width: 430px) {
  .tools { gap: 0; }
  .icon-btn { width: 38px; }
  .brand { gap: 8px; font-size: 1.4rem; }
  .brand-ico { width: 23px; height: 23px; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.15rem; }
  .icon-btn { width: 35px; }
  .thumb { width: 80px; height: 80px; }
}
@media (max-width: 340px) {
  .icon-btn { width: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Right to left (Arabic) ----------
   With dir="rtl" on the page, rows, tabs and text flow from the right by themselves; these rules flip what was set
   by side (spacing, borders, the little chevrons and the back button on photos). The waiter's ticket stays English. */
html[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .icon-btn .dot { right: auto; left: 9px; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-menu button { padding: 4px 12px 4px 26px; }
html[dir="rtl"] .lang-menu button[aria-checked="true"]::after { right: auto; left: 10px; }
html[dir="rtl"] .home-nav { text-align: right; }
html[dir="rtl"] .home-link .arrow::after { right: auto; left: 0; transform: rotate(-135deg); }
html[dir="rtl"] .tabs-row .tabs { margin-left: 0 !important; }
html[dir="rtl"] .hint-tip button { margin-left: 0; margin-right: var(--s1); }
html[dir="rtl"] .notice { padding: 0 var(--s3) 0 0; border-left: 0; border-right: 1px solid var(--brass-soft); }
html[dir="rtl"] .foot-notes .notice { text-align: right; }
html[dir="rtl"] .card { padding: var(--s5) 0 var(--s5) 26px; }
html[dir="rtl"] .card::after { right: auto; left: 6px; transform: rotate(-135deg); }
html[dir="rtl"] .card:hover::after { transform: translateX(-3px) rotate(-135deg); }
html[dir="rtl"] .card-foot .add, html[dir="rtl"] .sold-tag { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .special .add { margin-right: 0; margin-left: var(--s1); }
html[dir="rtl"] .serves-line .portion::before { margin-right: 0; margin-left: var(--s2); }
html[dir="rtl"] .dish-top.with-photo .back { left: auto; right: 0; }
@media (min-width: 640px) { html[dir="rtl"] .dish-top.with-photo .back { right: var(--s3); } }
html[dir="rtl"] .fold-btn { text-align: right; }
html[dir="rtl"] .fold-btn .sample, html[dir="rtl"] .sample, html[dir="rtl"] .ingredients .atag, html[dir="rtl"] .qa-label small { margin-left: 0; margin-right: var(--s2); }
html[dir="rtl"] .fold-chev { margin-right: 0; margin-left: var(--s1); }
html[dir="rtl"] .incl-list li:not(:last-child)::after { margin-left: 0; margin-right: var(--s2); }
html[dir="rtl"] .ingredients li.has-allergen { box-shadow: inset -2px 0 0 var(--alert); padding-left: 0; padding-right: var(--s3); }
html[dir="rtl"] .pair::after { margin-right: 0; margin-left: var(--s1); transform: rotate(-135deg); }
html[dir="rtl"] .pick select { padding: 0 14px 0 40px; background-position: left 14px center; }
html[dir="rtl"] .entry-toggle { padding: var(--s1) 0 var(--s1) 22px; text-align: right; }
html[dir="rtl"] .entry-toggle::after { right: auto; left: var(--s1); }
html[dir="rtl"] .swipe .entry-row { transform: translateX(var(--reveal)); }
html[dir="rtl"] .swipe-del { right: auto; left: 0; }
html[dir="rtl"] .ticket { direction: ltr; text-align: left; }
