/* "Sunday morning light": calm, warm, premium. Warm ivory paper with a faint grain, soft oat cards, deep espresso
   type, one muted terracotta accent for actions and prices, and soft sage only for "First time here?".
   Type: Fraunces for headings and dish names, Inter for everything else; both hosted in /fonts.
   Spacing follows one scale (--s1 … --s8); everything aligns to the 20px page gutter. Mobile first; on a wide
   screen (1024px+) a full desktop layout, or the phone-width column over a blurred photo (Phone view). */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/fraunces-var-latin.woff2") format("woff2");
}
/* Prayer flags: just the five Tibetan syllables (Noto Serif Tibetan) and their romanised names (Manrope). */
@font-face { font-family: "Noto Serif Tibetan"; font-weight: 700; font-display: swap; src: url("/fonts/noto-serif-tibetan-flags.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fonts/manrope-700-flags.woff2") format("woff2"); }
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
}
:root {
  --bg: #faf4ea;             /* warm ivory page */
  --raised: #fffaf3;         /* panels, inputs, the filter and quick-add sheets */
  --oat: #f3e9da;            /* soft oat: cards (favourites, Today's Special, Work from here, desktop dish cards) */
  --oat-edge: #e8d9c4;
  --ink: #2e231c;            /* deep espresso: text and dish names */
  --muted: #74645a;          /* descriptions, notes: warm, never grey */
  --faint: #a89587;          /* chevrons, placeholders, hairline details */
  --line: rgba(46, 35, 28, .1);
  --line-strong: rgba(46, 35, 28, .2);
  --accent: #a85f45;         /* muted terracotta: buttons, +, the My List button, prices */
  --accent-ink: #96533a;     /* the accent as small text on ivory (keeps 4.5:1 contrast) */
  --accent-wash: #f4e3d8;
  --quiet: #8f5d4a;          /* a quieter terracotta for prices and + (5:1 on ivory, 4.6:1 on oat) */
  /* Older names for the accent, so every control follows it. */
  --sage: var(--accent); --sage-ink: var(--accent-ink); --sage-wash: var(--accent-wash);
  --leaf: #55704f;           /* soft sage: "First time here?" only */
  --leaf-wash: #e7ecdc;
  --wood: #efdfcf;           /* oat with a blush of terracotta: letter cards, quiet fills */
  --wood-soft: #f3e9da;
  --wood-edge: #e5cfbb;
  --wood-ink: #96533a;
  --warn: #9a3f2a;           /* allergy warnings only */
  --warn-bg: #f7e3da;
  --caution: #7a4b22;        /* "allergens not confirmed" */
  --caution-bg: #f5e6d0;
  --bar: 3.25rem;           /* the slim header bar (52px at the usual text size; grows with large text) */
  --head: var(--bar);
  --gutter: 20px;
  --col: 480px;              /* the phone-width column on wide screens */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --deva: "Kohinoor Devanagari", "Noto Sans Devanagari", var(--sans);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(46, 35, 28, .06), 0 14px 34px rgba(90, 58, 34, .12);
  --card-shadow: 0 1px 2px rgba(90, 58, 34, .03);   /* barely there: cards rest on the paper */
  /* Lokta (handmade Nepali) paper: photos/lokta-paper.webp, made by tools/photos.py from a scan of a real sheet
     (lokta-scan.jpg): 1600 px, shown at 800 CSS px so it stays sharp on retina screens, tiling with no visible join. */
  --paper: url("/photos/lokta-paper.webp") 0 0 / 800px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 120px); background: var(--bg); color-scheme: light; }
body {
  margin: 0; min-height: 100vh;
  background: var(--paper) repeat var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  overflow-wrap: break-word;   /* long words wrap at large text sizes instead of pushing the page sideways */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
/* One heading voice everywhere: Fraunces at its softest, upright, charcoal. */
.display, .brand, .favs h2, .fav h3, .special h2, .special-body h3, .foot-name, .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, .fold-btn {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 380;
  letter-spacing: -.005em;
}
/* Small labels: sentence case, Inter, a touch heavier. */
.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: .82rem; font-weight: 600; letter-spacing: 0;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
button { -webkit-tap-highlight-color: transparent; font-family: inherit; }
::selection { background: var(--sage-wash); color: var(--ink); }
/* Nepali and Bengali use the phone's own fonts (iOS: Kohinoor; Android: Noto), so nothing loads from elsewhere.
   Latin letters and numbers stay in Inter and Fraunces. The scripts stack marks above and below, so headings get more air. */
html[lang="ne"] { --sans: "Inter", "Kohinoor Devanagari", "Noto Sans Devanagari", "Mukta", system-ui, sans-serif; --display: "Fraunces", "Kohinoor Devanagari", "Noto Serif Devanagari", Georgia, serif; }
html[lang="hi"] { --sans: "Inter", "Kohinoor Devanagari", "Noto Sans Devanagari", "Mukta", system-ui, sans-serif; --display: "Fraunces", "Kohinoor Devanagari", "Noto Serif Devanagari", Georgia, serif; }
/* Chinese and Korean: the phone's own fonts (PingFang / Noto CJK, Apple SD Gothic / Noto KR); headings stay calm. */
html[lang="zh-Hans"] { --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; --display: "Fraunces", "Songti SC", "Noto Serif SC", "PingFang SC", Georgia, serif; }
html[lang="ko"] { --sans: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; --display: "Fraunces", "Nanum Myeongjo", "Noto Serif KR", "Apple SD Gothic Neo", Georgia, serif; }
html:is([lang="ne"], [lang="hi"]) :is(h1, h2, h3, .home-link, .fold-btn, .first-card strong):not([lang="en"]) { line-height: 1.35; }
html:is([lang="ne"], [lang="hi"]) body { line-height: 1.7; }
html:is([lang="zh-Hans"], [lang="ko"]) body { word-break: keep-all; line-break: strict; }
.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(6px, env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 244, 234, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.brand {
  display: block; min-width: 0; margin-right: auto; padding: var(--s1) 0;
  color: var(--ink); text-decoration: none; font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tools { flex: none; display: flex; align-items: center; gap: 2px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background .2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(54, 51, 46, .06); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); box-shadow: 0 0 0 2px var(--bg); }
.icon-btn .dot[hidden] { display: none; }
/* Language menu (hidden while the menu is English only) */
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; z-index: 40; top: calc(100% + var(--s2)); right: 0; width: 220px; padding: 6px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  animation: drop .25s var(--ease);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 14px;
  border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 1.05rem; text-align: left; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--sage-wash); outline: none; }
.lang-menu button[aria-checked="true"] { color: var(--sage-ink); }
.lang-menu button[aria-checked="true"]::after { content: ""; 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 translation line under the header (non-English only), with a quick way back to English. */
.lang-note { display: flex; align-items: center; gap: var(--s3); max-width: 720px; margin: 0 auto; padding: var(--s2) var(--gutter); font-size: .8rem; line-height: 1.4; color: var(--caution); }
.lang-note[hidden] { display: none; }
.lang-note p { flex: 1; margin: 0; }
.lang-note .en { display: block; color: var(--muted); font-size: .74rem; }
.lang-note button { flex: none; min-height: 44px; padding: 0 var(--s3); border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font: 500 .8rem/1 var(--sans); cursor: pointer; }
.searchbar {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 0 max(8px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background: var(--bg); 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(--ink); border: 1px solid var(--line-strong);
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b665d' 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(--sage); box-shadow: 0 0 0 3px var(--sage-wash); }
.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(54, 51, 46, .28); animation: fade .25s ease; }
.filter-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.panel-inner {
  max-width: 760px; margin: 0 auto; padding: var(--s4) var(--gutter) var(--s5); background: var(--raised);
  border-radius: 0 0 20px 20px; box-shadow: var(--shadow); animation: drop .3s var(--ease);
}
.panel-inner:focus { outline: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-right: -10px; }
.panel-head h2 { font: 380 1.5rem/1.2 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.panel-inner .hint { margin: var(--s1) 0 var(--s4); font-size: .92rem; color: var(--muted); }
.panel-sub { margin: var(--s4) 0 var(--s2); font: 600 .9rem/1.3 var(--sans); color: var(--ink); }
.panel-sub + .hint { margin-top: 0; font-size: .86rem; }
.chip.diet-chip[aria-pressed="true"] { background: var(--sage-wash); border-color: var(--sage-ink); color: var(--sage-ink); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 .92rem/1 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong);
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); text-decoration: line-through; }
.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 28px; }

main { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) var(--s5); 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 .32s var(--ease); }
main.slide-back { animation: slide-back .32s var(--ease); }
main.fade-in { animation: enter .3s var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateX(8px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-8px); } }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.loading { text-align: center; color: var(--muted); padding: var(--s8) 0; }

.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 1rem/1.2 var(--sans); padding: var(--s2) var(--s5); min-height: 52px; border-radius: 999px; border: 0; text-align: center;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--sage-ink); color: #fff; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { color: var(--ink); background: transparent; border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--faint); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.is-off { opacity: .4; cursor: default; }
.text-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.text-link:hover { color: var(--sage-ink); }
.link-btn {
  font: 500 .92rem/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(--ink); }

/* ---------- Home: photo, menus and favourites on the first phone screen, no empty gaps ---------- */
.home-fold { display: flex; flex-direction: column; gap: var(--s6); padding-bottom: var(--s2); }
.home-fold > .hero + .home-nav { margin-top: calc(var(--s5) - var(--s6)); }
/* The café photo, edge to edge, with a soft dark gradient at the bottom for the white name. */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  margin: 0 calc(-1 * var(--gutter)); padding: var(--s5) var(--gutter) var(--s4);
  min-height: clamp(126px, 17svh, 177px);
  background: linear-gradient(165deg, #d9b79c 0%, #a8674a 100%);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; animation: drift 20s ease-in-out infinite alternate; }
/* The photo slowly leans in, like light moving across the table. */
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 18, 12, 0) 30%, rgba(27, 18, 12, .32) 100%); }
/* A soft shade gathered behind the name and the lines under it, so they read at once on a bright photo. */
.hero-inner::before {
  content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); bottom: calc(-1 * var(--s4)); width: min(130%, 640px); height: calc(100% + 64px);
  background: radial-gradient(closest-side at 32% 62%, rgba(27, 18, 12, .52), rgba(27, 18, 12, .26) 55%, rgba(27, 18, 12, 0)); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; color: #fffaf3; isolation: isolate; }
/* The name on one line, large and white, sized to the screen width. */
.hero-name {
  font-size: min(13vw, 3.5rem); line-height: 1; font-weight: 380; letter-spacing: -.02em; color: #fffaf3; white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1; text-shadow: 0 1px 12px rgba(27, 18, 12, .35);
}
.hero-alt { margin: var(--s1) 0 0; font-size: 1.05rem; line-height: 1.3; color: rgba(255, 250, 243, .86); }
/* "Brunch & drinks · Jackson Heights" in one small line, then today's open status. */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s2); margin: var(--s2) 0 0; font-size: .95rem; line-height: 1.4; color: rgba(255, 250, 243, .92); }
.hero-meta .sep { opacity: .7; }
.tagline { margin: 0; }
.cuisines { margin: var(--s1) 0 0; font-size: .92rem; color: rgba(255, 250, 243, .86); }
.hero-status { margin: var(--s2) 0 0; }
/* Open now / closed, from openingHours. On the photo it is a small frosted pill. */
.open-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink); }
.hero .open-status {
  padding: 5px 12px 5px 10px; border-radius: 999px; font-size: .86rem; color: #fffaf3;
  background: rgba(255, 250, 243, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 250, 243, .22);
}
.open-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); }
.is-open .open-dot { background: #f3c9a8; box-shadow: 0 0 0 3px rgba(243, 201, 168, .28); }
.is-closed .open-dot { background: var(--faint); box-shadow: none; }
.intro .hero-inner > * { animation: rise .9s var(--ease) both; }
.intro .hero-inner > :nth-child(2) { animation-delay: .08s; }
.intro .hero-inner > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.home-body { max-width: 560px; }
/* Food, Drinks and Vegetarian: text-only rows on a hairline border, with generous padding and a small arrow. */
.home-nav { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.home-link {
  position: relative; display: flex; align-items: center; gap: var(--s4); min-width: 0; min-height: 72px;
  padding: var(--s4) var(--s5); border-radius: 16px; background: rgba(255, 250, 243, .55); border: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none; font-size: min(1.22rem, 5vw); line-height: 1.15;
  transition: border-color .25s var(--ease), background .25s;
}
.home-link:hover { border-color: var(--faint); }
.home-label { flex: 1; min-width: 0; overflow-wrap: normal; }
.home-link .arrow { flex: none; display: grid; place-items: center; width: 20px; height: 20px; transition: transform .3s var(--ease); }
.home-link .arrow::after { content: ""; width: 7px; height: 7px; margin-left: -3px; border-top: 1.4px solid var(--quiet); border-right: 1.4px solid var(--quiet); transform: rotate(45deg); }
.home-link:hover .arrow { transform: translateX(3px); }
/* Work from here: a quiet card under the menu board */
.work { position: relative; margin: var(--s7) 0 0; padding: var(--s5); border-radius: 20px; background: rgba(243, 233, 218, .7); }
.work-sample { margin: calc(-1 * var(--s2)) 0 var(--s3); font-size: .8rem; color: var(--muted); }
.work-ico { position: absolute; top: var(--s5); right: var(--s5); width: 26px; height: 26px; fill: none; stroke: var(--sage-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.work h2 { margin: 0 0 var(--s3); font: 380 1.5rem/1.2 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.work-dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); margin: 0; font-size: .95rem; }
.work-dl dt, .work-dl dd { padding: 10px 0; border-top: 1px solid var(--line); }
.work-dl dt { color: var(--muted); }
.work-dl dd { min-width: 0; margin: 0; padding-left: var(--s4); text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.work-dl .copy-pass { max-width: 100%; }
.work-dl .copy-pass .pw, .work-dl .copy-pass .copy-label { max-width: 100%; overflow-wrap: anywhere; }
/* Wi-Fi password: tap to copy, with the result read out. */
.copy-pass {
  display: inline-grid; justify-items: end; gap: 1px; min-height: 44px; margin: -6px 0; padding: 4px 0 4px var(--s3); border: 0; background: none;
  cursor: pointer; font: inherit; color: var(--ink); text-align: right;
}
.copy-pass .pw { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy-pass .copy-label { font-size: .76rem; font-weight: 600; color: var(--sage-ink); }
/* First time here? A soft sage card on the home page. */
.first-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin: var(--s5) 0 0; padding: var(--s4) var(--s5);
  border-radius: 20px; background: var(--leaf-wash); color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.45;
}
.first-card strong { display: block; margin-bottom: 2px; font: 380 1.4rem/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.first-card .arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--raised); }
.first-card .arrow::after { content: ""; width: 8px; height: 8px; margin-left: -3px; border-top: 1.6px solid var(--leaf); border-right: 1.6px solid var(--leaf); transform: rotate(45deg); }
/* Café favourites: tall photo cards in a row to swipe sideways, running off the right edge to say there is more. */
.favs h2 { font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.fav-row {
  display: flex; align-items: stretch; gap: var(--s3); overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: var(--s3) var(--gutter) var(--s2);
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.fav-row::-webkit-scrollbar { display: none; }
.fav {
  position: relative; flex: 0 0 min(40vw, 150px); display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start;
  padding-bottom: var(--s2); border-radius: 18px; background: var(--oat); box-shadow: var(--card-shadow);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fav:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.fav .thumb { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 22svh; border-radius: 0; box-shadow: none; }
.fav .thumb .mono { font-size: 3.2rem; }
.fav h3, .fav .fav-desc, .fav .fav-foot, .fav .unconfirmed, .fav .sold-tag { margin-left: 10px; margin-right: 10px; }
.fav h3 { font-size: 1.02rem; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-desc { margin-top: -2px; margin-bottom: 0; font-size: .8rem; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-foot .price { font-size: .92rem; }
.fav .unconfirmed { margin-top: 0; }
.fav-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: auto; }
.fav .add { width: 32px; height: 32px; font-size: 1.2rem; }
.home-more { display: flex; gap: var(--s5); margin: var(--s6) 0 0; font-size: .95rem; }
.music { margin: var(--s5) 0 0; font-size: .88rem; color: var(--muted); }
.address { margin: var(--s3) 0 0; font-size: .88rem; color: var(--muted); text-wrap: balance; }
.address a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ---------- Footer: the name and the address ---------- */
.site-foot { max-width: 720px; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); text-align: center; color: var(--muted); }
.site-foot[hidden] { display: none; }
.site-foot::before { content: ""; display: block; height: 1px; margin: 0 0 var(--s6); background: var(--line); }
.foot-name { margin: 0; font-size: 1.2rem; color: var(--ink); }
.foot-addr { margin: 2px 0 0; font-size: .86rem; }
.foot-addr a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
body.has-fab .site-foot { padding-bottom: 112px; }

/* ---------- Section headers ---------- */
.sec-head { padding: var(--s6) 0 var(--s1); }
/* The menu runs section after section: each starts with a clear heading and plenty of space above it. */
.menu-sec + .menu-sec { margin-top: var(--s8); }
.cat-title { margin: var(--s7) 0 0; font: 380 1.25rem/1.2 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.cat-title + .cat-note { margin-top: var(--s1); }
/* Prayer flags (prayer-flags.js, from Everest Kitchen) strung small under "From the Himalayas". The string fades out
   at both ends and a very soft shadow lifts the cloth just off the paper. */
.flags-slot { height: 40px; margin: var(--s2) calc(-1 * var(--gutter)) 0; }
.flags { position: relative; width: 100%; height: 40px; overflow: hidden; pointer-events: 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(40, 32, 20, .16));
}
.sec-head h1, .sec-head h2 { font-size: min(clamp(1.85rem, 8.2vw, 2.25rem), 9.5vw); line-height: 1.05; color: var(--ink); }
.cat-note { margin: var(--s2) 0 0; font-size: .9rem; color: var(--muted); }
.page-head { padding-top: var(--s4); }
.page-head h1 { font-size: min(clamp(2.15rem, 10vw, 2.7rem), 11vw); }
.veg-intro { max-width: 40ch; margin: var(--s3) 0 0; font-size: .92rem; color: var(--muted); }
.vegan-switch {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin: var(--s3) 0 0; padding: 0 var(--s4) 0 6px;
  border: 0; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--oat-edge); cursor: pointer;
  font: 600 .9rem/1 var(--sans); color: #2f5530;
}
.vegan-switch .track { position: relative; width: 38px; height: 24px; border-radius: 999px; background: var(--wood-edge); transition: background .2s; }
.vegan-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s var(--ease); }
.vegan-switch[aria-checked="true"] { background: #e3edda; box-shadow: inset 0 0 0 1px #a9c29b; }
.vegan-switch[aria-checked="true"] .track { background: #4f7a4a; }
.vegan-switch[aria-checked="true"] .track::after { left: 17px; }

/* ---------- Menu head: Food / Drinks switch and category tabs ---------- */
.menu-head {
  position: sticky; top: var(--head); z-index: 10; margin: 0 calc(-1 * var(--gutter)); padding: var(--s1) var(--gutter) 0;
  background: rgba(250, 244, 234, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Row one: Food / Drinks and the Allergies button. Row two: the category tabs, full width. */
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s1) 0; }
.switch { flex: 1 1 220px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wood-soft); }
.switch:has(button:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.switch button {
  min-width: 0; padding: 0 2px; overflow-wrap: break-word;
  min-height: 40px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font: 500 .82rem/1.1 var(--sans); letter-spacing: -.005em; color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
/* The chosen one is marked by colour and a raised chip, not bolder letters (so "Vegetarian" never has to wrap). */
.switch button[aria-pressed="true"] { color: var(--ink); background: var(--raised); box-shadow: 0 1px 3px rgba(84, 66, 40, .16); }
/* Tabs scroll sideways; a soft fade shows on a side only while there are more tabs that way (app.js). */
.tabs {
  --fade-l: 0px; --fade-r: 0px;
  display: flex; gap: var(--s5); overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 var(--s7);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.tabs.fade-start { --fade-l: 44px; }
.tabs.fade-end { --fade-r: 44px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 14px 0 15px; min-height: 44px; border: 0; background: none; cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--muted); white-space: nowrap; scroll-snap-align: center; transition: color .25s;
}
.tab:hover { color: var(--ink); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--sage);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.searching .tab[aria-selected="true"] { color: var(--muted); font-weight: 500; }
.searching .tab[aria-selected="true"]::after { transform: scaleX(0); }
.allergy-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 var(--s4); border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--ink); background: var(--raised); border: 1px solid var(--line-strong); transition: border-color .25s;
}
.allergy-pill.on { color: var(--sage-ink); background: var(--sage-wash); border-color: var(--sage); font-weight: 600; }
.pill-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: .74rem; color: #fff; background: var(--sage-ink); }
.allergy-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.allergy-pill:hover { border-color: var(--sage); }
.filter-bar { margin: 0 calc(-1 * var(--gutter)); padding: var(--s2) var(--gutter); background: var(--sage-wash); font-size: .82rem; color: var(--ink); }
.filter-bar button { padding: 0; border: 0; background: none; cursor: pointer; font: 600 .82rem/1 var(--sans); color: var(--sage-ink); text-decoration: underline; text-underline-offset: 3px; }

/* First-visit hint: one quiet line */
.hint-tip { margin: var(--s4) 0 0; font-size: .84rem; color: var(--muted); 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 .84rem/1 var(--sans); color: var(--sage-ink); text-decoration: underline; text-underline-offset: 4px;
}
.notice { margin: var(--s4) 0 0; padding: 0 0 0 var(--s3); font-size: .84rem; line-height: 1.55; color: var(--muted); border-left: 2px solid var(--wood-edge); }
.hidden-note { margin: var(--s3) 0 0; font-size: .88rem; color: var(--muted); }
.empty { color: var(--muted); padding: var(--s6) 0; margin: 0; }
.list-body.enter { animation: enter .35s var(--ease); }

/* ---------- Dish cards: a wooden board for the photo, name, one line, price and + ---------- */
.cards { margin-top: var(--s2); }
.card { position: relative; display: flex; gap: var(--s4); padding: var(--s5) 22px var(--s5) 0; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
/* Keyboard focus only: a tap (or focus returning to + after quick add) leaves no box on the card. */
.card:has(:focus-visible) { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 6px; }
/* Chevron: this opens. */
.card::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-top: 1.5px solid var(--faint); border-right: 1.5px 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(--sage); }
.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.24rem; line-height: 1.18; color: var(--ink); }
.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: .9rem; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Price, diet label and +; at large text sizes they wrap rather than push the + off the screen. */
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: auto; padding-top: var(--s3); }
.price { font-weight: 500; white-space: nowrap; color: var(--quiet); font-variant-numeric: tabular-nums; }
.card-foot .price { font-size: .98rem; }
.card-foot .add { margin-left: auto; }
.highlights { margin: 0 0 2px; color: var(--sage-ink); font-size: .76rem; }
.group-title { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 0; color: var(--muted); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Items whose allergens aren't confirmed stay on the menu under a filter, with this label. */
.unconfirmed {
  align-self: flex-start; display: inline-flex; align-items: flex-start; gap: 6px; margin: var(--s2) 0 0; padding: 4px 9px 4px 7px; border-radius: 8px;
  font-size: .76rem; font-weight: 600; line-height: 1.35; color: var(--caution); background: var(--caution-bg);
}
.unconfirmed svg { flex: none; width: 14px; height: 14px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Sold out today (set on the staff page): the dish stays on the menu, quietly, and can't be added. */
.sold-tag { align-self: flex-start; margin: var(--s2) 0 0; padding: 3px 10px; border-radius: 8px; font-size: .76rem; font-weight: 600; color: var(--muted); background: rgba(54, 51, 46, .07); }
.is-sold .thumb, .is-sold h3, .is-sold .desc, .is-sold .price { opacity: .55; }
.add:disabled { border-color: var(--line-strong); color: var(--faint); background: transparent; cursor: not-allowed; }

/* Photo frame: the dish photo (4:5), or a warm terracotta card with the dish's first letter until one exists. */
.thumb {
  position: relative; flex: none; align-self: flex-start; width: 84px; height: 105px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; color: var(--accent-ink);
  background: radial-gradient(120% 90% at 30% 15%, #f8e4d6 0%, #eccab5 100%);
}
.mono { font: 400 2.3rem/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; color: var(--accent-ink); opacity: .85; user-select: none; }
.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; }
.has-photo .mono { visibility: hidden; }

/* 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: .86rem; color: var(--muted); }
.spice { display: inline-flex; align-items: center; gap: 6px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--warn); }
.pips i.on { background: var(--warn); }
/* Diet labels, always in words: Vegetarian in sage, Vegan in a deeper green with a small leaf. */
.diet-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px;
  font: 600 .72rem/1 var(--sans); white-space: nowrap; color: var(--leaf); background: var(--leaf-wash);
}
.diet-tag.vegan { color: #2f5530; background: #d9e6cf; }
.diet-tag.gf { color: var(--muted); background: var(--oat); }
.leaf { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.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: 36px; height: 36px; padding: 0;
  border-radius: 50%; cursor: pointer; background: transparent; color: var(--quiet); border: 1px solid rgba(143, 93, 74, .5);
  font: 300 1.35rem/1 var(--sans); transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.add:hover { background: var(--accent-wash); border-color: var(--quiet); }
.add::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.add:active { transform: scale(.94); }
.add.done { background: var(--quiet); border-color: var(--quiet); color: #fff; font-size: .95rem; animation: pop .55s var(--ease); }
/* A small bounce when a dish goes on the list. */
@keyframes pop { 0% { transform: scale(.9); } 45% { transform: scale(1.14); } 70% { transform: scale(.97); } 100% { transform: scale(1); } }

/* ---------- Dish page ---------- */
.back {
  display: inline-flex; align-items: center; gap: var(--s2); margin: var(--s3) 0 0; min-height: 44px; padding: 0 var(--s4) 0 var(--s3);
  border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); background: var(--wood-soft);
}
.back:hover { background: var(--wood); }
/* 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; background: rgba(255, 252, 246, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* The dish photo keeps its 4:5 crop, shown a little shorter so the name follows soon after. */
/* The dish page photo: a wide 4:3 view with little cut away, so the whole dish shows, about 40% of the screen tall. */
.hero-photo { position: relative; margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); height: min(40svh, calc((100vw) * .75)); overflow: hidden; background: var(--wood); }
.hero-photo img { object-fit: cover; }
.photo-credit {
  position: absolute; right: 8px; bottom: 6px; z-index: 1; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 999px;
  font-size: .66rem; line-height: 1.5; color: #fffaf3; background: rgba(30, 20, 13, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dish-sheet { padding-top: 0; }
.dish-head { padding: var(--s5) 0 var(--s5); }
.dish-head h1 { font-size: min(clamp(2.25rem, 10.8vw, 3rem), 10.5vw); line-height: 1; letter-spacing: -.015em; color: var(--ink); }
.eyebrow { margin: 0 0 var(--s2); color: var(--muted); }
.eyebrow .hl { color: var(--sage-ink); }
.opt-line { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; font-size: .92rem; }
.opt-line span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.opt-line .price { font-weight: 500; }
.opt-line .off { opacity: .45; text-decoration: line-through; }
.allergy-line { margin: 0 0 var(--s5); padding: var(--s4); border-radius: 16px; background: var(--oat); font-size: .92rem; }
.allergy-line p { margin: 0; }
.allergy-line strong { font-weight: 600; color: var(--warn); }
.allergy-line .tell { margin-top: var(--s2); font-size: .84rem; 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: 60px; padding: var(--s3) 0;
  border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); font-size: 1.35rem; line-height: 1.2;
}
/* Draft and sample notes ride along in the row title as a small caption. */
.fold-btn .sample { margin-left: var(--s2); padding: 0; border: 0; background: none; font: 500 .74rem/1 var(--sans); color: var(--muted); vertical-align: 3px; }
.fold-chev { flex: none; width: 8px; height: 8px; margin-right: var(--s1); border-right: 1.6px solid var(--sage-ink); border-bottom: 1.6px solid var(--sage-ink); 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; }
.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.25rem; }
.lede { margin: var(--s4) 0 0; max-width: 60ch; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.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(--s2); list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.incl-list li { padding: 4px 12px; border-radius: 999px; background: var(--wood-soft); }
.added-msg { margin: 0; text-align: center; font-size: .92rem; color: var(--muted); }
.added-msg a { font-weight: 600; color: var(--sage-ink); }
.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.4rem; color: var(--ink); 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 var(--line-strong); transform: translateY(-4px); }
.sample {
  display: inline-block; margin-left: var(--s2); padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font: 500 .74rem/1.4 var(--sans); color: var(--muted); background: var(--wood-soft);
}
.atag { padding: 2px 8px; border-radius: 999px; color: var(--warn); background: var(--warn-bg); 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 .atag { font-size: .7rem; padding: 1px 7px; 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(--sage-ink); }
.add-box { display: grid; gap: var(--s3); padding: 0 0 var(--s5); }
/* Goes well with: one or two suggestions, each opening its dish, with its own + */
.goes-with { margin: 0 0 var(--s5); }
.goes-with h2 { margin: 0 0 var(--s1); font: 380 1.45rem/1.2 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.pairs { display: grid; }
.pair { position: relative; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.pair:last-child { border-bottom: 0; }
.pair:has(:focus-visible) { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 6px; }
.pair-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pair-link { color: inherit; text-decoration: none; outline: none; }
.pair-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pair small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pair .unconfirmed { margin-top: var(--s1); }
.pair-ico-wrap { position: relative; flex: none; align-self: flex-start; display: grid; place-items: center; width: 56px; height: 70px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 30% 15%, #f8e4d6 0%, #eccab5 100%); }
.pair-ico-wrap .mono { font-size: 1.6rem; }
.pair-ico-wrap.has-photo .mono { visibility: hidden; }
.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 { margin-top: 2px; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.pair .price { font-size: .92rem; }
.coming { color: var(--muted); }
.foot-notes { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.foot-notes p { margin: 0 0 var(--s1); }
.foot-notes .notice { margin: 0 0 var(--s4); max-width: 52ch; }
.panel-inner .notice { margin: 0 0 var(--s4); }

/* Pickers (dish page and My List) */
.pickers { display: grid; gap: var(--s3); }
/* Grids and selects may shrink below their text, so long choices wrap instead of pushing past the screen at large text. */
.add-box > *, .pickers > *, .pick > *, .entry-detail > *, .list-actions > * { min-width: 0; }
.pick { display: grid; gap: 6px; color: var(--muted); }
.pick select {
  width: 100%; min-height: 50px; padding: 8px 40px 8px 14px; border-radius: 12px; font: 500 1rem/1.2 var(--sans); color: var(--ink); text-overflow: ellipsis;
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a14b30' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat;
  border: 1px solid var(--line-strong); -webkit-appearance: none; appearance: none;
}
.pick select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-wash); outline: none; }
.pick-check { display: flex; align-items: center; gap: 10px; min-height: 42px; font-size: .96rem; cursor: pointer; }
.pick-check input { width: 20px; height: 20px; accent-color: var(--sage-ink); }

/* ---------- My List ---------- */
.reminder { margin: var(--s3) 0 var(--s4); padding: var(--s3) var(--s4); border-radius: 14px; font-size: .88rem; color: var(--ink); background: var(--wood-soft); }
.table-note { display: grid; gap: var(--s2); margin: var(--s5) 0 6px; }
.table-note span { font-size: 1.35rem; color: var(--ink); }
.table-note textarea, .note input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--raised); border: 1px solid var(--line-strong); -webkit-appearance: none; appearance: none;
}
.table-note textarea { resize: vertical; min-height: 68px; }
.note input { min-height: 46px; }
.table-note textarea::placeholder, .note input::placeholder { color: var(--faint); }
.table-note textarea:focus, .note input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-wash); outline: none; }
.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: 1.5px solid var(--faint); border-bottom: 1.5px 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.28rem; line-height: 1.15; color: var(--ink); }
.entry-sum { font-size: .86rem; 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(--warn); }
.entry-warn.unconfirmed-warn { color: var(--caution); }
.entry-price { font-size: .92rem; }
.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: .92rem; }
.note { display: grid; gap: var(--s2); }
.note label { display: grid; gap: 6px; color: var(--muted); }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chip {
  min-height: 40px; padding: 0 var(--s3); border-radius: 999px; cursor: pointer; font: 500 .86rem/1 var(--sans);
  background: var(--raised); color: var(--ink); border: 1px solid var(--line-strong); transition: background .2s, border-color .2s;
}
.note-chip:hover { border-color: var(--faint); }
.note-chip[aria-pressed="true"] { background: var(--sage-wash); border-color: var(--sage); color: var(--sage-ink); }
.qty { flex: none; display: inline-flex; align-items: center; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--sage-ink); cursor: pointer; font: 400 1.25rem/1 var(--sans); }
.qty button:disabled { color: var(--faint); cursor: default; }
.qty output { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.list-actions { display: grid; gap: 10px; margin-top: var(--s5); }
.empty-state { display: grid; justify-items: center; gap: var(--s2); padding: var(--s7) 0 var(--s5); text-align: center; }
.empty-title { font: 380 1.6rem/1.2 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.empty-state .empty { padding: 0 0 var(--s4); }
.empty-state .btn { width: 100%; max-width: 320px; }
/* Swipe a row left to bring a red Delete in from the right edge, like a phone's own lists. */
.swipe { position: relative; overflow: hidden; }
.entry-row { position: relative; touch-action: pan-y; transition: transform .28s var(--ease); }
.swipe-del {
  position: absolute; top: 0; bottom: 0; left: 100%; width: 88px; border: 0; cursor: pointer;
  background: #c4362a; color: #fff; font: 600 .92rem/1 var(--sans);
}
.swipe-del:focus-visible { outline-offset: -4px; outline-color: #fff; }
/* With a mouse there's no swipe: a small Remove link sits beside the quantity instead. */
.row-remove { display: none; flex: none; padding: var(--s2) var(--s1); font-size: .84rem; }
@media (hover: hover) and (pointer: fine) {
  .row-remove { display: inline-block; }
  .swipe-del { display: none; }
}
/* "Removed · Undo": a small dark note above the bottom of the screen for 4 seconds. */
.toast {
  position: fixed; z-index: 70; left: 50%; translate: -50% 0; bottom: max(var(--s5), env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: var(--s2); padding: 6px 6px 6px 18px; border-radius: 999px;
  background: #2e231c; color: #fffaf3; font: 500 .92rem/1 var(--sans); white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(46, 35, 28, .4); animation: enter .3s var(--ease);
}
.toast:empty { display: none; }
.toast-sep { opacity: .6; }
.toast button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 250, 243, .14); color: #fffaf3; font: 600 .92rem/1 var(--sans);
}
.toast button:hover { background: rgba(255, 250, 243, .24); }
body.has-fab .toast { bottom: calc(max(var(--s4), env(safe-area-inset-bottom)) + 62px); }

/* ---------- 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(--sage-ink); stroke-width: 1.5; 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(--ink); text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.info-link:hover { color: var(--sage-ink); }
.info-soon { color: var(--muted); }
.info-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s1) var(--s4); margin: 0; }
.info-dl dt { color: var(--muted); }
.info-dl dd { margin: 0; }
.info-review { margin-top: var(--s6); }
.info-review p { margin: 0 0 var(--s3); color: var(--muted); }
.info-review .info-ico { stroke: currentColor; width: 17px; height: 17px; }

/* ---------- Staff page and owner insights (hidden pages) ---------- */
.staff-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-radius: 14px; background: var(--wood-soft); font-weight: 600; }
.staff-bar .link-btn:disabled { opacity: .4; cursor: default; text-decoration: none; }
.staff-cat h2 { margin: var(--s6) 0 var(--s2); font: 380 1.4rem/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.staff-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; border-bottom: 1px solid var(--line); }
.switch-btn { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 .86rem/1 var(--sans); color: var(--muted); }
.switch-btn .track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--sage); transition: background .2s; }
.switch-btn .track::after { content: ""; position: absolute; top: 3px; left: 21px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s var(--ease); }
.switch-btn[aria-checked="false"] { color: var(--warn); }
.switch-btn[aria-checked="false"] .track { background: var(--faint); }
.switch-btn[aria-checked="false"] .track::after { left: 3px; }
.staff-links { margin: var(--s6) 0 0; }
.insight h2 { margin: var(--s6) 0 var(--s2); font: 380 1.4rem/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank li { counter-increment: r; display: flex; align-items: baseline; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.rank li::before { content: counter(r); width: 20px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank span { flex: 1; min-width: 0; }
.rank b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- First time here? ---------- */
.first .sub-title { text-align: left; margin: var(--s6) 0 0; font-size: 1.6rem; }
.glossary .sample { vertical-align: 4px; }
.gloss { margin: var(--s3) 0 0; }
.gloss > div { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.gloss dt { font: 380 1.3rem/1.2 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.gloss dd { margin: var(--s1) 0 0; max-width: 60ch; color: var(--muted); }
.gloss .text-link { font-size: .9rem; white-space: nowrap; }

/* ---------- 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(--ink); }
.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(--ink); }
.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: 2px solid var(--wood-edge); }
.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: .9rem; 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(54, 51, 46, .32); 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: var(--raised); border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(84, 66, 40, .18); animation: sheet-up .45s var(--ease); outline: none;
}
.qa-panel::before { content: ""; align-self: center; width: 40px; height: 4px; margin: 10px 0 2px; border-radius: 2px; background: var(--line-strong); }
@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(--ink); }
.qa-head .nm-alt { margin-top: 2px; }
.qa-note { margin: var(--s1) 0 0; font-size: .9rem; color: var(--muted); }
.qa-total { margin-left: var(--s2); padding-left: var(--s3); border-left: 1px solid rgba(255, 255, 255, .4); font-weight: 600; font-variant-numeric: tabular-nums; }
.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(--ink); }
.qa-label small { margin-left: 6px; font-size: inherit; font-weight: 500; color: var(--muted); }
.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(--ink); background: var(--bg); border: 1px solid var(--line-strong);
  transition: background .2s, border-color .2s, color .2s;
}
.qa-choice .price { font-size: .86rem; font-weight: 500; color: var(--muted); }
.qa-choice:hover { border-color: var(--faint); }
.qa-choice[aria-checked="true"] { background: var(--sage-wash); border-color: var(--sage-ink); color: var(--sage-ink); box-shadow: inset 0 0 0 1px var(--sage-ink); }
.qa-choice[aria-checked="true"] .price { color: var(--sage-ink); }
.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: .86rem; 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: 50px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font: 600 .95rem/1 var(--sans); white-space: nowrap;
  box-shadow: 0 10px 28px -6px rgba(120, 52, 30, .5); 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); } }
/* The count ticks up: the new number rises into place. */
.fab-n { display: inline-block; font-variant-numeric: tabular-nums; }
.fab-n.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(70%); } }

/* ---------- Ticket for the server: plain, large, high contrast ---------- */
body.ticket-mode { background: #fff; color: #000; }
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; }
.tlines .tsold { font-weight: 700; color: #000; text-decoration: underline; }
/* After the ticket, back in the café's own colours: a calm invitation to review. */
.review-card { margin: var(--s7) 0 0; padding: var(--s5); border-radius: 20px; background: var(--bg); color: var(--ink); text-align: center; }
.review-card h2 { margin: 0; font: 380 1.5rem/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.review-card p { margin: var(--s2) 0 var(--s4); color: var(--muted); font-size: .95rem; }
.review-card .review-ph { margin: var(--s3) 0 0; font-size: .8rem; }

/* Small phones */
/* Narrow phones (iPhone SE, small Android): the name and four icons share one row without cutting the name. */
@media (max-width: 380px) {
  .brand { font-size: 1.15rem; }
  .tools .icon-btn { width: 40px; }
}
@media (max-width: 340px) {
  .home-link .arrow { display: none; }   /* the whole card is the link; the label needs the room */
  .brand { font-size: 1.04rem; }
  .tools .icon-btn { width: 36px; }
}
@media (max-width: 360px) {
  .thumb { width: 72px; height: 90px; }
}
/* ---------- Gentle motion ---------- */
/* Cards lift a little under the finger. */
.card, .pair { transition: transform .25s var(--ease); }
.card:active, .pair:active { transform: translateY(-2px); }
.fav:active, .home-link:active, .first-card:active { transform: translateY(-3px); box-shadow: 0 16px 28px -18px rgba(74, 40, 22, .6); }
.first-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
/* Sections below the first screen fade up as they scroll into view (app.js marks them). */
.reveal.pending { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Phone view: a phone-width column on a slightly deeper sheet of the same paper ----------
   Tablets (700–1023px) always; 1024px and wider when the guest picks "Phone view" in the top bar. */
@media (min-width: 700px) and (max-width: 1023.98px) {
  html { background: linear-gradient(rgba(96, 64, 40, .09), rgba(96, 64, 40, .09)), var(--paper) repeat #e9dcc8; }
  body { position: relative; max-width: var(--col); margin: 0 auto; box-shadow: 0 0 0 1px rgba(46, 35, 28, .08), 0 24px 60px rgba(43, 25, 15, .12); }
  main { padding-left: var(--gutter); padding-right: var(--gutter); }
  .filter-panel { left: calc(50% - var(--col) / 2); right: calc(50% - var(--col) / 2); }
  .qa-panel { max-width: var(--col); }
  .fav { flex-basis: 150px; }
  .hero-name { font-size: 3.6rem; }
  .home-link { font-size: 1.2rem; }
}
@media (min-width: 1024px) {
  html.phone-view { background: linear-gradient(rgba(96, 64, 40, .09), rgba(96, 64, 40, .09)), var(--paper) repeat #e9dcc8; }
  html.phone-view body { position: relative; max-width: var(--col); margin: 0 auto; box-shadow: 0 0 0 1px rgba(46, 35, 28, .08), 0 24px 60px rgba(43, 25, 15, .12); }
  html.phone-view main { padding-left: var(--gutter); padding-right: var(--gutter); }
  html.phone-view .filter-panel { left: calc(50% - var(--col) / 2); right: calc(50% - var(--col) / 2); }
  html.phone-view .qa-panel { max-width: var(--col); }
  html.phone-view .fav { flex-basis: 150px; }
  html.phone-view .hero-name { font-size: 3.6rem; }
  html.phone-view .home-link { font-size: 1.2rem; }
}

/* ---------- Today's Special: a wide oat card under the menu buttons ---------- */
.special h2 { font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.special-card {
  position: relative; display: flex; gap: var(--s4); margin-top: var(--s3); padding: var(--s3); border-radius: 20px;
  background: var(--oat); box-shadow: var(--card-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.special-card .thumb { width: 92px; height: 115px; }
.special-card:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.special-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.special-body .fav-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: auto; }
.special-body h3 { font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.special-desc { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.special-card:active { transform: translateY(-3px); }

/* ---------- Phone view / Desktop view: a small switch, only on wide screens ---------- */
.view-switch { display: none; }
@media (min-width: 1024px) {
  .view-switch {
    display: inline-flex; gap: 2px; margin-right: var(--s3); padding: 3px; border-radius: 999px;
    background: var(--oat); box-shadow: inset 0 0 0 1px var(--oat-edge);
  }
  .view-switch button {
    min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: 500 .8rem/1 var(--sans); color: var(--muted); transition: background .2s, color .2s;
  }
  .view-switch button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(90, 58, 34, .16); }
  /* In the phone-width column the switch and icons tighten up so the name stays whole. */
  html.phone-view .view-switch { margin-right: 2px; }
  html.phone-view .view-switch button { min-height: 30px; padding: 0 8px; font-size: .72rem; }
  html.phone-view .tools .icon-btn { width: 36px; }
  html.phone-view .brand { font-size: 1.15rem; }
}

/* ---------- Desktop layout (1024px and wider, unless Phone view is picked) ---------- */
.underlay { display: none; }
@media (min-width: 1024px) {
  html:not(.phone-view) {
    --gutter: 32px;
    .topbar { padding-left: max(32px, calc(50% - 600px + 32px)); padding-right: max(24px, calc(50% - 600px + 24px)); }
    .brand { font-size: 1.45rem; }
    main { max-width: 1200px; padding: 0 var(--gutter) var(--s7); }
    .lang-note { max-width: 1200px; }
    .site-foot { max-width: 1200px; }

    /* Home: the photo runs the full width; menus, special and favourites sit in a 1200px column. */
    .hero { margin: 0 calc(50% - 50vw); padding: var(--s6) max(32px, calc(50vw - 600px + 32px)) var(--s5); min-height: 255px; }
    .hero-inner::before { left: -48px; bottom: -40px; width: 760px; height: calc(100% + 120px); }
    .hero-name { font-size: 4.3rem; }
    .hero-meta { font-size: 1.1rem; }
    .home-fold { gap: var(--s6); }
    .home-nav { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
    .home-link { min-height: 96px; padding: var(--s5) var(--s6); border-radius: 20px; font-size: 1.4rem; }
    .home-nav { grid-template-columns: repeat(3, 1fr); }
    .home-link .arrow { width: 30px; height: 30px; }
    .home-link:hover { background: rgba(255, 250, 243, .85); }
    .special-card { padding: 0; gap: var(--s6); overflow: hidden; }
    .special-card .thumb { width: 360px; height: 240px; border-radius: 0; box-shadow: none; }
    .special-body { padding: var(--s5) var(--s6) var(--s5) 0; gap: var(--s2); }
    .special-body h3 { font-size: 2rem; }
    .special-desc { font-size: 1.05rem; -webkit-line-clamp: 3; max-width: 52ch; }
    .special-body .fav-foot .price { font-size: 1.15rem; }
    .favs h2, .special h2 { font-size: 1.7rem; }
    .fav-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); overflow: visible; margin: 0; padding: var(--s4) 0 0; }
    .fav { flex-basis: auto; }
    .fav .thumb { max-height: none; aspect-ratio: 4 / 3; }
    .fav h3 { font-size: 1.2rem; }
    .fav-desc { font-size: .9rem; }
    .fav:hover, .special-card:hover { transform: translateY(-3px); }
    .home-body { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; margin-top: var(--s6); }
    .home-body > .first-card, .home-body > .work { margin: 0; }
    .home-body > :not(.first-card):not(.work) { grid-column: 1 / -1; }

    /* Menu: a sticky category list on the left, dishes in a 3-column grid on the right. */
    :is(main, .underlay)[data-page="menu"], :is(main, .underlay)[data-page="veg"] { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 48px; align-items: start; }
    :is(main, .underlay)[data-page="menu"] > *, :is(main, .underlay)[data-page="veg"] > * { grid-column: 2; }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .menu-head {
      grid-column: 1; grid-row: 1 / span 6; position: sticky; top: calc(var(--head) + var(--s5)); margin: var(--s6) 0 0; padding: 0;
      background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
    }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .head-row { flex-direction: column; align-items: stretch; gap: var(--s3); padding: 0 0 var(--s4); }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .switch { flex: none; grid-template-columns: 1fr; border-radius: 16px; }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .switch button { justify-content: flex-start; text-align: left; padding: 0 14px; border-radius: 12px; overflow-wrap: normal; }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .tabs { flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .tab { padding: 10px 14px; border-radius: 12px; text-align: left; white-space: normal; transition: background .2s, color .2s; }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .tab::after { display: none; }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .tab:hover { background: var(--oat); }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .tab[aria-selected="true"] { background: var(--oat); box-shadow: inset 0 0 0 1px var(--oat-edge); }
    :is(main, .underlay):is([data-page="menu"], [data-page="veg"]) .filter-bar { margin: var(--s3) 0 0; border-radius: 12px; }
    .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
    .cards > .group-title { grid-column: 1 / -1; }
    .card {
      flex-direction: column; gap: var(--s3); padding: 0 0 var(--s4); border: 0; border-radius: 20px; overflow: hidden;
      background: var(--oat); box-shadow: var(--card-shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    }
    .card:last-child { border-bottom: 0; }
    .card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(90, 58, 34, .3); }
    .card::after { display: none; }
    .card .thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
    .card .thumb .mono { font-size: 3.4rem; }
    .card-body { padding: 0 var(--s4); }
    .card-foot { padding-top: var(--s3); }

    /* Dish page: photo on the left (it stays while the details scroll), details on the right. */
    :is(main, .underlay)[data-page="dish"]:has(.dish-top.with-photo) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
    :is(main, .underlay)[data-page="dish"] .dish-top.with-photo { position: sticky; top: calc(var(--head) + var(--s5)); margin-top: var(--s5); }
    :is(main, .underlay)[data-page="dish"] .hero-photo { margin: 0; width: 100%; height: auto; border-radius: 24px; aspect-ratio: 4 / 3; }
    :is(main, .underlay)[data-page="dish"] .dish-top.with-photo .back { top: var(--s4); left: var(--s4); }
    :is(main, .underlay)[data-page="dish"] .dish-sheet { padding-top: var(--s5); }
    :is(main, .underlay)[data-page="dish"] .dish-head h1 { font-size: 3.6rem; }
    :is(main, .underlay)[data-page="dish"]:not(:has(.with-photo)) .dish-sheet, main[data-page="list"] > *, main[data-page="info"] > *, main[data-page="first"] > * { max-width: 760px; }

    /* My List: a panel that slides in from the right over a still copy of the page. */
    .underlay {
      display: block; position: fixed; inset: var(--head) 0 0; z-index: 55; overflow: hidden; cursor: pointer;
      padding: 0 max(32px, calc(50% - 600px + 32px));
    }
    .underlay-page { pointer-events: none; }
    .underlay[data-page="menu"] .underlay-page, .underlay[data-page="veg"] .underlay-page, .underlay[data-page="dish"]:has(.with-photo) .underlay-page { display: contents; }
    .underlay[data-page="menu"], .underlay[data-page="veg"] { display: grid; }
    .underlay[hidden] { display: none; }
    .underlay::after { content: ""; position: fixed; inset: 0; background: rgba(46, 30, 20, .32); animation: fade .35s ease; }
    &.list-panel main {
      position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(460px, 100%); max-width: none; margin: 0;
      padding: var(--s5) var(--s6) var(--s7); overflow-y: auto; overscroll-behavior: contain;
      background: var(--paper) repeat var(--bg); box-shadow: -24px 0 60px rgba(46, 30, 20, .22); animation: panel-in .4s var(--ease);
    }
    &.list-panel .site-foot { display: none; }
    &.list-panel .toast { left: calc(100% - 230px); }   /* centred in the My List panel */
  }
}
@keyframes panel-in { from { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
