/* ── Olive & Thyme — Menu Craft demo ─────────────────────────────── */

:root {
  --page-bg: #e9e2d2;
  --paper: #faf6ee;
  --paper-2: #f3ecdd;
  --ink: #201f17;
  --ink-soft: #5c584a;
  --ink-faint: #8f8a78;
  --olive: #4a5537;          /* price + quiet accents */
  --olive-deep: #2e3522;     /* dark surfaces (chips, chat) */
  --accent: #c4552e;         /* primary accent */
  --gold: #b8905a;           /* ornament accent */
  --card: #fffdf8;
  --line: #e5dcc8;
  --tag-bg: #edefe3;
  --tag-fg: #4a5537;
  --hero-fg: #f6f1e4;
  --hero-bg:
    radial-gradient(600px 300px at 20% -40%, rgba(196, 85, 46, .35), transparent 70%),
    radial-gradient(500px 260px at 95% 10%, rgba(184, 144, 90, .28), transparent 65%),
    linear-gradient(165deg, #2e3522 0%, #232a19 55%, #1c2213 100%);
  --fab-bg: linear-gradient(150deg, #38402a, #2e3522);
  --fab-fg: #f6f1e4;
  --shadow: 0 1px 2px rgba(32, 31, 23, .05), 0 8px 24px rgba(32, 31, 23, .07);
  --shadow-lift: 0 2px 4px rgba(32, 31, 23, .06), 0 16px 40px rgba(32, 31, 23, .13);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}

/* ── Themes ──────────────────────────────── */

body[data-theme="noir"] {
  --page-bg: #0a0908;
  --paper: #141210;
  --paper-2: #1c1915;
  --card: #1b1815;
  --line: #2e2921;
  --ink: #ede4d3;
  --ink-soft: #b5a88e;
  --ink-faint: #83775f;
  --olive: #c9a25c;
  --olive-deep: #0d0c0a;
  --accent: #c9a25c;
  --gold: #c9a25c;
  --tag-bg: #292520;
  --tag-fg: #cbb98e;
  --hero-fg: #f0e8d6;
  --hero-bg:
    radial-gradient(620px 320px at 50% -30%, rgba(201, 162, 92, .22), transparent 70%),
    linear-gradient(172deg, #191512 0%, #100e0b 60%, #0b0a08 100%);
  --fab-bg: linear-gradient(150deg, #3a2f1e, #1c1710);
  --fab-fg: #ecdfc2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .45);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, .4), 0 18px 46px rgba(0, 0, 0, .6);
}

body[data-theme="gazette"] {
  --page-bg: #ddd6c2;
  --paper: #f4efe3;
  --paper-2: #ece5d2;
  --card: #f9f5ea;
  --line: #cdc4a9;
  --ink: #17150f;
  --ink-soft: #4d493c;
  --ink-faint: #8b856f;
  --olive: #17150f;
  --olive-deep: #17150f;
  --accent: #a02c1d;
  --gold: #a02c1d;
  --tag-bg: transparent;
  --tag-fg: #4d493c;
  --hero-fg: #17150f;
  --hero-bg: #f4efe3;
  --fab-bg: #17150f;
  --fab-fg: #f4efe3;
  --radius: 6px;
  --shadow: none;
  --shadow-lift: none;
}

body[data-theme="jardin"] {
  --page-bg: #e4e8d4;
  --paper: #f6f7ec;
  --paper-2: #edf0dd;
  --card: #fdfdf7;
  --line: #dde2c9;
  --ink: #31402b;
  --ink-soft: #5f6e52;
  --ink-faint: #93a083;
  --olive: #7a8f5a;
  --olive-deep: #3c4a2f;
  --accent: #c07a5b;
  --gold: #a3b18a;
  --tag-bg: #eef1e0;
  --tag-fg: #5f6e52;
  --hero-fg: #31402b;
  --hero-bg:
    radial-gradient(520px 280px at 85% -20%, rgba(192, 122, 91, .14), transparent 65%),
    radial-gradient(600px 320px at 0% 0%, rgba(163, 177, 138, .22), transparent 70%),
    linear-gradient(170deg, #f6f7ec 0%, #eaeeda 100%);
  --fab-bg: linear-gradient(150deg, #55663f, #3c4a2f);
  --fab-fg: #f3f5e8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --radius: 26px;
}

body[data-theme="riso"] {
  --page-bg: #e6dfc6;
  --paper: #f6f1dd;
  --paper-2: #efe8d0;
  --card: #f6f1dd;
  --line: #23285a;
  --ink: #23285a;
  --ink-soft: #3d4270;
  --ink-faint: #7a7f9e;
  --olive: #e64b35;
  --olive-deep: #23285a;
  --accent: #e64b35;
  --gold: #23285a;
  --tag-bg: transparent;
  --tag-fg: #23285a;
  --hero-fg: #23285a;
  --hero-bg: #f6f1dd;
  --fab-bg: #e64b35;
  --fab-fg: #f6f1dd;
  --serif: "Archivo Black", "Inter", sans-serif;
  --radius: 10px;
  --shadow: none;
  --shadow-lift: none;
}

body[data-theme="neon"] {
  --page-bg: #05060b;
  --paper: #0a0b13;
  --paper-2: #12141f;
  --card: #10121c;
  --line: #232640;
  --ink: #eef0fa;
  --ink-soft: #9aa0bd;
  --ink-faint: #5d6280;
  --olive: #8de3ff;
  --olive-deep: #161829;
  --accent: #ff5c7a;
  --gold: #8de3ff;
  --tag-bg: #191c2e;
  --tag-fg: #9aa0bd;
  --hero-fg: #f1f2fb;
  --hero-bg:
    radial-gradient(560px 300px at 80% -25%, rgba(255, 92, 122, .28), transparent 65%),
    radial-gradient(480px 260px at 5% 10%, rgba(141, 227, 255, .14), transparent 65%),
    linear-gradient(170deg, #0d0f1c 0%, #07080f 100%);
  --fab-bg: linear-gradient(120deg, #ff5c7a, #a855f7);
  --fab-fg: #ffffff;
  --serif: "Space Grotesk", "Inter", sans-serif;
  --sans: "Space Grotesk", "Inter", sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .45);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, .4), 0 18px 46px rgba(0, 0, 0, .6);
}

body[data-theme="washi"] {
  --page-bg: #d9d4c6;
  --paper: #f7f4ea;
  --paper-2: #efebdd;
  --card: #fbf9f1;
  --line: #ddd6c2;
  --ink: #26231d;
  --ink-soft: #5c574a;
  --ink-faint: #98917d;
  --olive: #26231d;
  --olive-deep: #26231d;
  --accent: #c73e2d;
  --gold: #a89468;
  --tag-bg: transparent;
  --tag-fg: #98917d;
  --hero-fg: #26231d;
  --hero-bg: #f7f4ea;
  --fab-bg: #26231d;
  --fab-fg: #f7f4ea;
  --serif: "Shippori Mincho", "Cormorant Garamond", serif;
  --radius: 4px;
  --shadow: none;
  --shadow-lift: 0 10px 24px rgba(38, 35, 29, .08);
}

body[data-theme="blueprint"] {
  --page-bg: #081724;
  --paper: #0f2438;
  --paper-2: #0c1e30;
  --card: #12293f;
  --line: #274766;
  --ink: #e6eef6;
  --ink-soft: #a9bfd4;
  --ink-faint: #6d87a3;
  --olive: #f5d76e;
  --olive-deep: #0a1c2c;
  --accent: #8fd8ff;
  --gold: #f5d76e;
  --tag-bg: transparent;
  --tag-fg: #a9bfd4;
  --hero-fg: #e6eef6;
  --hero-bg: linear-gradient(170deg, #123049 0%, #0d2337 100%);
  --fab-bg: #123049;
  --fab-fg: #d9ecfa;
  --serif: "Space Grotesk", "Inter", sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .5);
}

body[data-theme="diner"] {
  --page-bg: #e3d5bd;
  --paper: #fdf6e9;
  --paper-2: #f6ead3;
  --card: #fffdf6;
  --line: #e8d5b5;
  --ink: #33261f;
  --ink-soft: #6b5647;
  --ink-faint: #a08a75;
  --olive: #2f9c85;
  --olive-deep: #33261f;
  --accent: #d62828;
  --gold: #2f9c85;
  --tag-bg: #f2e5cc;
  --tag-fg: #6b5647;
  --hero-fg: #fff6e8;
  --hero-bg:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 14px, transparent 14px 28px),
    linear-gradient(170deg, #e04040 0%, #c81f1f 100%);
  --fab-bg: #d62828;
  --fab-fg: #fff6e8;
  --radius: 22px;
}

body[data-theme="taproom"] {
  --page-bg: #0b0806;
  --paper: #14100c;
  --paper-2: #1d1610;
  --card: #1a140e;
  --line: #31271b;
  --ink: #f2ead8;
  --ink-soft: #c7b795;
  --ink-faint: #8a7a5e;
  --olive: #e8a13c;
  --olive-deep: #241b12;
  --accent: #e8a13c;
  --gold: #e8a13c;
  --tag-bg: #241c12;
  --tag-fg: #c7b795;
  --hero-fg: #f6efdd;
  --hero-bg:
    radial-gradient(620px 300px at 80% -30%, rgba(232, 161, 60, .22), transparent 68%),
    linear-gradient(170deg, #1d150c 0%, #120d08 100%);
  --fab-bg: linear-gradient(150deg, #3a2c17, #241b10);
  --fab-fg: #f2e3bd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .45);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, .4), 0 18px 46px rgba(0, 0, 0, .6);
}

body[data-theme="cinematic"] {
  --page-bg: #0a0605;
  --paper: #0b0706;
  --paper-2: #140b09;
  --card: #17100d;
  --line: #2c1a13;
  --ink: #fff3e2;
  --ink-soft: #d7bea7;
  --ink-faint: #9c8168;
  --olive: #f0603c;
  --olive-deep: #17100d;
  --accent: #f0603c;
  --gold: #e8a35a;
  --tag-bg: rgba(240, 96, 60, .12);
  --tag-fg: #f2a074;
  --hero-fg: #fff3e2;
  --hero-bg:
    radial-gradient(720px 400px at 50% -8%, rgba(240, 96, 60, .3), transparent 70%),
    linear-gradient(180deg, #1c0d08 0%, #0a0605 100%);
  --fab-bg: linear-gradient(150deg, #f0603c, #a8341c);
  --fab-fg: #fff;
  --serif: "Fraunces", Georgia, serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 20px 50px rgba(0, 0, 0, .6);
  --shadow-lift: 0 30px 70px rgba(0, 0, 0, .7);
}

/* Wordmark personality */
body[data-theme="noir"] .hero-brand h1 { text-transform: uppercase; letter-spacing: .16em; font-size: clamp(26px, 7vw, 34px); font-weight: 540; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Prevent sideways scroll without turning <html> into a scroll container
   (overflow-x:hidden would force overflow-y:auto and break window scroll). */
html, body { overflow-x: clip; }
[hidden] { display: none !important; }

body {
  font-family: var(--sans);
  background: var(--page-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  transition: background .35s;
}

.phone {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 80px rgba(0, 0, 0, .25);
  transition: background .35s;
}

/* ── Demo theme bar ──────────────────────── */

.demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  background: var(--page-bg);
  border-bottom: 1px solid rgba(127, 127, 127, .15);
}
.demo-bar > span {
  flex-shrink: 0;
  font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
}
/* Scrolls horizontally rather than pushing the page wider than the
   viewport (11 themes overflow a phone-width bar). */
.theme-dots {
  display: flex; gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 3px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.theme-dots::-webkit-scrollbar { display: none; }
.theme-dot { flex-shrink: 0; }
.theme-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 2px var(--paper), 0 1px 4px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.theme-dot:hover { transform: scale(1.12); }
.theme-dot.active { border-color: var(--accent); transform: scale(1.12); }

/* ── Hero ────────────────────────────────── */

.hero {
  position: relative;
  padding: 18px 20px 34px;
  color: var(--hero-fg);
  background: var(--hero-bg);
  overflow: hidden;
  transition: background .35s;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--hero-fg) 6%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-toolbar {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
}
.table-pill {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--hero-fg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-fg) 22%, transparent);
  backdrop-filter: blur(4px);
}
.toolbar-selects { display: flex; gap: 8px; }
.select-wrap select {
  appearance: none;
  font: 600 12px var(--sans);
  color: var(--hero-fg);
  background: color-mix(in srgb, var(--hero-fg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-fg) 22%, transparent);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.select-wrap select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.select-wrap option { color: var(--ink); background: var(--paper); }

/* Diner light/dark toggle — matches the currency/language pills. */
.mode-toggle {
  display: grid; place-items: center;
  min-width: 30px; height: 30px;
  font-size: 14px; line-height: 1;
  color: var(--hero-fg);
  background: color-mix(in srgb, var(--hero-fg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-fg) 22%, transparent);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.mode-toggle:hover { background: color-mix(in srgb, var(--hero-fg) 18%, transparent); }

.hero-brand { position: relative; z-index: 1; text-align: center; padding-top: 36px; }
.hero-crest {
  font-size: 15px; color: var(--gold);
  letter-spacing: .4em; margin-bottom: 12px;
}
.hero-brand h1 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(38px, 10vw, 48px);
  letter-spacing: .01em;
  line-height: 1.05;
  transition: all .25s;
}
.hero-brand h1 .amp { font-style: italic; color: var(--gold); font-weight: 300; }
.hero-tagline {
  margin-top: 10px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--hero-fg) 65%, transparent);
}
.hero-rule {
  display: flex; align-items: center; gap: 14px;
  max-width: 240px; margin: 22px auto 0;
  color: var(--gold);
}
.hero-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 60%, transparent)); }
.hero-rule span:last-child { transform: scaleX(-1); }
.hero-rule em { font-style: normal; font-size: 13px; }

/* ── Search zone ─────────────────────────── */

.search-zone {
  position: sticky; top: 0; z-index: 30;
  padding: 14px 16px 10px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin-top: -14px;
}

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-lift);
}
.search-spark { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }
.search-bar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 500 15px var(--sans); color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-faint); }
.search-clear {
  border: 0; background: var(--paper-2); color: var(--ink-soft);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 11px; cursor: pointer; display: none;
  flex-shrink: 0;
}
.search-bar.has-text .search-clear { display: block; }

.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 2px 6px;
  max-height: 64px;
  scrollbar-width: none;
  transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
}
.chips::-webkit-scrollbar { display: none; }
/* Collapse the tag pills while scrolling down; category tabs stay pinned. */
body.filters-collapsed .chips {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.chip {
  flex-shrink: 0;
  font: 600 12.5px var(--sans);
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--gold); }
.chip.active {
  background: var(--accent); color: var(--paper); border-color: var(--accent);
}

/* ── Search results ──────────────────────── */

.search-results {
  margin: 6px 0 8px;
  max-height: 48vh;
  overflow-y: auto;
  animation: rise .25s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.results-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 4px 8px;
}
.results-count {
  font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.results-ai { font: 500 12px var(--sans); color: var(--ink-faint); font-style: italic; }

/* ── Category nav ────────────────────────── */

.cat-nav {
  position: sticky; top: var(--cat-stick, 116px); z-index: 25;
  display: flex; gap: 4px; overflow-x: auto;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-link {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 15px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  transition: all .18s;
}
.cat-link.active { background: var(--accent); color: var(--paper); }

/* ── Menu sections ───────────────────────── */

.menu { padding: 10px 16px 30px; }

.menu-section { padding-top: 28px; scroll-margin-top: 170px; }
.section-head { text-align: center; margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 480;
  font-size: 28px; letter-spacing: .02em;
}
.section-head p {
  margin-top: 3px;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.section-head::after {
  content: "";
  display: block;
  width: 46px; height: 2px;
  margin: 12px auto 0;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Dish card ───────────────────────────── */

.dish {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.dish:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.dish.sold-out { opacity: .55; }
.dish.sold-out:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }

/* Art tiles: soft accent-tinted squircles with stroke line icons, or a
   real photo when the dish has one (.has-img). */
.dish-art {
  width: 74px; height: 74px; border-radius: 16px;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.dish-art svg { width: 34px; height: 34px; }
.dish-art.has-img { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.dish-art.has-img img,
.pair-art.has-img img,
.mini-art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dish-main { min-width: 0; }
.dish-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dish-name {
  font-family: var(--serif); font-size: 17.5px; font-weight: 560;
  letter-spacing: .01em; line-height: 1.2;
}
.dish-price {
  font-family: var(--serif); font-size: 16.5px; font-weight: 560;
  color: var(--olive); white-space: nowrap;
}
.dish-desc {
  margin-top: 5px;
  font-size: 13px; line-height: 1.5; color: var(--ink-soft);
}
.dish-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; align-items: center; }
.tag {
  font: 600 10.5px var(--sans); letter-spacing: .04em;
  color: var(--tag-fg);
  background: var(--tag-bg);
  border-radius: 999px;
  padding: 3.5px 9px;
}
.tag.spicy { color: #c4552e; background: color-mix(in srgb, #c4552e 14%, var(--card)); }
.badge {
  font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; padding: 3.5px 9px;
}
.badge.popular { color: #8a5a12; background: #f5e7c8; }
.badge.new { color: #1f5c46; background: #d9ede4; }
.badge.chefsPick { color: var(--paper); background: var(--accent); }
.badge.soldout { color: var(--ink-faint); background: var(--paper-2); }
.reason {
  font: 600 10.5px var(--sans);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  padding: 3.5px 9px;
}

/* Expanded detail */
.dish-detail {
  grid-column: 1 / -1;
  display: none;
  border-top: 1px dashed var(--line);
  margin-top: 12px; padding-top: 12px;
}
.dish.open .dish-detail { display: block; animation: rise .22s ease both; }
.pairing {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px; color: var(--ink-soft);
}
.pairing .pair-art {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.pairing .pair-art svg { width: 18px; height: 18px; }
.pairing strong { color: var(--ink); font-weight: 600; }
.photo-cta {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  font: 600 12px var(--sans); color: var(--ink-faint);
}
.photo-cta .shimmer {
  flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--line) 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Footer ──────────────────────────────── */

.menu-footer {
  text-align: center;
  padding: 26px 20px 110px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.menu-footer p { font-size: 13px; color: var(--ink-soft); }
.powered {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 11.5px var(--sans); letter-spacing: .04em;
  color: var(--ink-faint);
}
.powered-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ── Ask FAB ─────────────────────────────── */

.ask-fab {
  position: fixed;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 40;
  display: flex; align-items: center; gap: 9px;
  font: 600 14.5px var(--sans);
  color: var(--fab-fg);
  background: var(--fab-bg);
  border: 1px solid color-mix(in srgb, var(--fab-fg) 15%, transparent);
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: transform .18s, box-shadow .18s;
}
.ask-fab:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 10px 32px rgba(0, 0, 0, .4); }
.ask-fab-glyph { color: var(--gold); }

/* ── Ask sheet ───────────────────────────── */

.sheet-scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(10, 9, 7, .45);
  backdrop-filter: blur(2px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } }

.ask-sheet {
  position: fixed;
  /* Anchor to both viewport edges instead of width:100% + translateX
     centering — a fixed element's percentage width resolves against the
     overflowing layout width, which made the sheet wider than the phone. */
  left: 0; right: 0; bottom: 0;
  margin-inline: auto;
  max-width: 520px;
  max-height: 78vh;
  z-index: 50;
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, .35);
  animation: sheetUp .3s cubic-bezier(.32, .9, .35, 1) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } }

.sheet-grab {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--line);
  margin: 10px auto 4px;
}
.sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.sheet-avatar {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--gold); font-size: 16px;
  background: var(--fab-bg);
}
.sheet-head strong { display: block; font-family: var(--serif); font-size: 16px; }
.sheet-sub { font-size: 11.5px; color: var(--ink-faint); }
.sheet-close {
  margin-left: auto;
  border: 0; background: var(--paper-2); color: var(--ink-soft);
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; font-size: 13px;
}
.sheet-close:hover { background: var(--line); }

.sheet-body {
  flex: 1; overflow-y: auto;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.msg { max-width: 88%; animation: rise .22s ease both; }
.msg.bot {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  padding: 11px 14px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink);
  box-shadow: var(--shadow);
}
.msg.user {
  align-self: flex-end;
  background: var(--olive-deep); color: var(--hero-fg);
  border-radius: 16px 4px 16px 16px;
  padding: 11px 14px;
  font-size: 13.5px;
}
.msg .mini-dish {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
  background: var(--paper-2);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.msg .mini-art {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.msg .mini-art svg { width: 17px; height: 17px; }
.msg .mini-name { font: 600 12.5px var(--sans); }
.msg .mini-sub { font-size: 11px; color: var(--ink-faint); }
.msg .mini-price { margin-left: auto; font-family: var(--serif); font-weight: 600; font-size: 13px; color: var(--olive); }

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.sheet-hints {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 18px;
  scrollbar-width: none;
}
.sheet-hints::-webkit-scrollbar { display: none; }
.hint {
  flex-shrink: 0;
  font: 600 12px var(--sans); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}

.sheet-input {
  display: flex; gap: 10px;
  padding: 10px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.sheet-input input {
  flex: 1;
  font: 500 14px var(--sans);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--card);
  color: var(--ink);
  outline: none;
}
.sheet-input input:focus { border-color: var(--accent); }
.sheet-input button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  font-size: 18px; color: var(--paper);
  background: var(--accent);
  transition: transform .15s;
}
.sheet-input button:hover { transform: scale(1.06); }

/* ══ Theme structures ═══════════════════════════════════════════════
   Beyond palette: each theme rearranges the menu's anatomy. */

/* ── Gazette — letterpress broadsheet ─────── */

body[data-theme="gazette"] .hero { border-bottom: 4px double var(--ink); padding-bottom: 28px; }
body[data-theme="gazette"] .hero::after { display: none; }
body[data-theme="gazette"] .hero-brand h1 { font-weight: 640; font-size: clamp(40px, 11vw, 54px); }
body[data-theme="gazette"] .hero-tagline {
  display: inline-block;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 6px 16px;
  color: var(--ink-soft);
}
body[data-theme="gazette"] .hero-rule { display: none; }
body[data-theme="gazette"] .dish {
  grid-template-columns: 1fr;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 16px 4px;
  margin-bottom: 0;
}
body[data-theme="gazette"] .dish:hover { transform: none; background: rgba(23, 21, 15, .035); border-color: var(--line); }
body[data-theme="gazette"] .dish-art { display: none; }
body[data-theme="gazette"] .dish-top .dish-name { flex: 1; display: flex; align-items: baseline; }
body[data-theme="gazette"] .dish-name::after {
  content: "";
  flex: 1; min-width: 28px;
  margin: 0 10px;
  border-bottom: 2px dotted var(--ink-faint);
  transform: translateY(-4px);
}
body[data-theme="gazette"] .section-head h2 {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: 19px; font-weight: 620;
}
body[data-theme="gazette"] .section-head::after {
  width: 100%; height: 0;
  background: none;
  border-bottom: 3px double var(--ink);
}
body[data-theme="gazette"] .tag,
body[data-theme="gazette"] .badge { border: 1.5px solid currentColor; background: transparent; border-radius: 2px; }
body[data-theme="gazette"] .badge.chefsPick { color: var(--accent); }
body[data-theme="gazette"] .badge.soldout { color: var(--ink-faint); }
body[data-theme="gazette"] .search-bar { border: 2px solid var(--ink); border-radius: 6px; }
body[data-theme="gazette"] .chip,
body[data-theme="gazette"] .cat-link { border-radius: 4px; }
body[data-theme="gazette"] .chip.active,
body[data-theme="gazette"] .cat-link.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body[data-theme="gazette"] .ask-fab { border-radius: 8px; }

/* ── Jardin — botanical, centered & airy ──── */

body[data-theme="jardin"] .hero-brand h1 { font-style: italic; font-weight: 500; }
body[data-theme="jardin"] .hero::after { opacity: .5; }
body[data-theme="jardin"] .dish {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 24px 18px 20px;
  margin-bottom: 16px;
}
body[data-theme="jardin"] .dish-art { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 2px; }
body[data-theme="jardin"] .dish-top { flex-direction: column; align-items: center; gap: 3px; }
body[data-theme="jardin"] .dish-name { font-size: 22px; font-weight: 600; font-style: italic; }
body[data-theme="jardin"] .dish-price { font-size: 15px; letter-spacing: .04em; }
body[data-theme="jardin"] .dish-desc { max-width: 42ch; margin-top: 7px; }
body[data-theme="jardin"] .dish-meta { justify-content: center; }
body[data-theme="jardin"] .section-head h2 { font-style: italic; font-weight: 500; font-size: 31px; }
body[data-theme="jardin"] .section-head::after {
  content: "❧";
  width: auto; height: auto;
  background: none;
  color: var(--gold);
  font-size: 17px;
  margin-top: 8px;
}
body[data-theme="jardin"] .pairing { border-radius: 16px; }

/* ── Riso — overprint poster ──────────────── */

body[data-theme="riso"] .hero::after {
  background-image: radial-gradient(color-mix(in srgb, var(--hero-fg) 14%, transparent) 1.4px, transparent 1.4px);
  background-size: 10px 10px;
}
body[data-theme="riso"] .hero-brand h1 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(29px, 8vw, 38px);
  letter-spacing: .01em;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 55%, transparent);
}
body[data-theme="riso"] .hero-brand h1 .amp { font-style: normal; color: var(--accent); }
body[data-theme="riso"] .hero-tagline { font-weight: 700; }
body[data-theme="riso"] .dish {
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent) 45%, transparent);
}
body[data-theme="riso"] .dish:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent) 55%, transparent);
}
body[data-theme="riso"] .dish-art { border: 2px solid var(--ink); border-radius: 7px; }
body[data-theme="riso"] .dish-name {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14.5px;
  letter-spacing: .02em;
  line-height: 1.35;
}
body[data-theme="riso"] .dish-price {
  font-weight: 400; font-size: 12.5px;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
}
body[data-theme="riso"] .section-head h2 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 22px;
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 55%, transparent);
}
body[data-theme="riso"] .section-head::after { width: 60px; height: 4px; background: var(--accent); }
body[data-theme="riso"] .tag { border: 1.5px solid var(--ink); border-radius: 3px; }
body[data-theme="riso"] .badge { border-radius: 3px; }
body[data-theme="riso"] .search-bar { border: 2px solid var(--ink); border-radius: 10px; }
body[data-theme="riso"] .chip { border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); }
body[data-theme="riso"] .chip.active { background: var(--accent); color: var(--paper); border-color: var(--accent); }
body[data-theme="riso"] .cat-link { border-radius: 6px; font-size: 12px; padding: 9px 12px; letter-spacing: .04em; text-transform: uppercase; }
body[data-theme="riso"] .ask-fab {
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 70%, transparent);
}
body[data-theme="riso"] .ask-fab:hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 70%, transparent); }
body[data-theme="riso"] .ask-fab-glyph { color: var(--paper); }

/* ── Neon — midnight glass ────────────────── */

body[data-theme="neon"] .hero-brand h1 {
  text-transform: lowercase;
  font-weight: 700;
  letter-spacing: -.02em;
}
body[data-theme="neon"] .hero-brand h1 .amp { font-style: normal; color: var(--accent); }
body[data-theme="neon"] .dish {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
body[data-theme="neon"] .dish:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 28px rgba(255, 92, 122, .14), var(--shadow-lift);
}
body[data-theme="neon"] .dish-art {
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 18px rgba(255, 92, 122, .22);
}
body[data-theme="neon"] .dish-price,
body[data-theme="neon"] .msg .mini-price {
  font-weight: 700;
  background: linear-gradient(90deg, #ff5c7a, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-theme="neon"] .section-head h2 { font-weight: 700; letter-spacing: -.01em; }
body[data-theme="neon"] .section-head::after {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, #ff5c7a, #8de3ff);
}
body[data-theme="neon"] .chip.active,
body[data-theme="neon"] .cat-link.active,
body[data-theme="neon"] .badge.chefsPick {
  background: linear-gradient(120deg, #ff5c7a, #a855f7);
  color: #fff;
  border-color: transparent;
}
body[data-theme="neon"] .badge.popular { color: #fbbf24; background: rgba(251, 191, 36, .13); }
body[data-theme="neon"] .badge.new { color: #34d399; background: rgba(52, 211, 153, .13); }
body[data-theme="neon"] .badge.soldout { color: var(--ink-faint); background: #191c2e; }
body[data-theme="neon"] .ask-fab { box-shadow: 0 6px 28px rgba(255, 92, 122, .35); }
body[data-theme="neon"] .ask-fab-glyph { color: #fff; }

/* ── Washi — sumi ink & vermilion seal ────── */

body[data-theme="washi"] .hero { border-bottom: 1px solid var(--ink); padding-bottom: 30px; }
body[data-theme="washi"] .hero::after { display: none; }
body[data-theme="washi"] .hero-crest {
  width: 36px; height: 36px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #f7f4ea;
  font-size: 13px;
  letter-spacing: 0;
  border-radius: 4px;
}
body[data-theme="washi"] .hero-brand h1 {
  font-weight: 500;
  font-size: clamp(26px, 7.5vw, 34px);
  letter-spacing: .26em;
  padding-left: .26em; /* optically recenter tracked text */
}
body[data-theme="washi"] .hero-brand h1 .amp { font-style: normal; color: var(--accent); }
body[data-theme="washi"] .hero-tagline { letter-spacing: .32em; }
body[data-theme="washi"] .hero-rule { display: none; }
body[data-theme="washi"] .section-head { text-align: left; }
body[data-theme="washi"] .section-head h2 { font-weight: 500; font-size: 22px; letter-spacing: .12em; }
body[data-theme="washi"] .section-head::after {
  width: 28px; height: 2px;
  margin: 10px 0 0 2px;
  background: var(--accent);
}
body[data-theme="washi"] .dish {
  grid-template-columns: 56px 1fr;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 18px 2px;
  margin-bottom: 0;
}
body[data-theme="washi"] .dish:hover { transform: none; background: rgba(38, 35, 29, .03); border-color: var(--line); }
body[data-theme="washi"] .dish-art { width: 56px; height: 56px; border-radius: 8px; }
body[data-theme="washi"] .dish-art svg { width: 26px; height: 26px; }
body[data-theme="washi"] .dish-name::before {
  content: "";
  display: inline-block;
  width: 3px; height: .85em;
  margin-right: 9px;
  background: var(--accent);
}
body[data-theme="washi"] .dish-price { font-weight: 500; }
body[data-theme="washi"] .tag { padding: 1px 2px; letter-spacing: .08em; }
body[data-theme="washi"] .badge { border: 1px solid currentColor; background: transparent; border-radius: 2px; }
body[data-theme="washi"] .badge.chefsPick { color: var(--accent); }
body[data-theme="washi"] .badge.soldout { color: var(--ink-faint); }
body[data-theme="washi"] .search-bar { border: 1px solid var(--ink); border-radius: 4px; }
body[data-theme="washi"] .chip { border-radius: 4px; }
body[data-theme="washi"] .chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body[data-theme="washi"] .cat-link { border-radius: 4px; }
body[data-theme="washi"] .ask-fab { border-radius: 6px; }

/* ── Blueprint — drafting sheet ───────────── */

body[data-theme="blueprint"] .hero::after {
  background-image:
    linear-gradient(color-mix(in srgb, var(--hero-fg) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--hero-fg) 7%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}
body[data-theme="blueprint"] .hero-brand h1 {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .08em;
  font-size: clamp(28px, 8vw, 38px);
}
body[data-theme="blueprint"] .hero-brand h1 .amp { font-style: normal; color: var(--accent); }
body[data-theme="blueprint"] .hero-tagline {
  display: inline-block;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
  padding: 6px 14px;
}
body[data-theme="blueprint"] .section-head h2 { text-transform: uppercase; font-weight: 600; letter-spacing: .06em; font-size: 22px; }
body[data-theme="blueprint"] .section-head::after { width: 120px; height: 1px; background: var(--accent); }
body[data-theme="blueprint"] .menu { counter-reset: mc-dish; }
body[data-theme="blueprint"] .dish {
  background: transparent;
  border: 1.5px dashed var(--line);
  box-shadow: none;
}
body[data-theme="blueprint"] .dish:hover {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 20px rgba(143, 216, 255, .08);
}
body[data-theme="blueprint"] .dish-art {
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
body[data-theme="blueprint"] .dish-name::before {
  counter-increment: mc-dish;
  content: counter(mc-dish, decimal-leading-zero) " ";
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .06em;
  vertical-align: 2px;
  margin-right: 6px;
}
body[data-theme="blueprint"] .tag { border: 1px dashed var(--line); border-radius: 3px; }
body[data-theme="blueprint"] .badge { background: #1b3a55; }
body[data-theme="blueprint"] .badge.popular { color: #ffd479; }
body[data-theme="blueprint"] .badge.new { color: #7fe0b2; }
body[data-theme="blueprint"] .badge.chefsPick { background: var(--accent); color: #0a1c2c; }
body[data-theme="blueprint"] .badge.soldout { color: var(--ink-faint); }
body[data-theme="blueprint"] .chip { border-radius: 4px; }
body[data-theme="blueprint"] .chip.active { background: var(--accent); color: #0a1c2c; border-color: var(--accent); }
body[data-theme="blueprint"] .cat-link { border-radius: 4px; }
body[data-theme="blueprint"] .cat-link.active { background: var(--accent); color: #0a1c2c; }
body[data-theme="blueprint"] .ask-fab { border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
body[data-theme="blueprint"] .ask-fab-glyph { color: var(--accent); }

/* ── Diner — 1950s soda fountain ──────────── */

body[data-theme="diner"] .hero-brand h1 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(34px, 9vw, 44px);
}
body[data-theme="diner"] .hero-brand h1 .amp { font-style: normal; color: #ffdf9e; }
body[data-theme="diner"] .hero-crest,
body[data-theme="diner"] .hero-rule { color: #ffdf9e; }
body[data-theme="diner"] .hero-tagline {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 6px 16px;
  letter-spacing: .16em;
}
body[data-theme="diner"] .section-head h2 { font-family: "Pacifico", cursive; font-weight: 400; font-size: 27px; }
body[data-theme="diner"] .section-head::after {
  width: 84px; height: 12px;
  background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%);
  background-size: 12px 12px;
  opacity: .8;
}
body[data-theme="diner"] .dish {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
}
body[data-theme="diner"] .dish:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--gold);
}
body[data-theme="diner"] .dish-art { border-radius: 50%; }
body[data-theme="diner"] .dish-price {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
}
body[data-theme="diner"] .search-bar { border: 2px solid var(--ink); }
body[data-theme="diner"] .chip { border: 1.5px solid var(--line); }
body[data-theme="diner"] .ask-fab { border: 2px solid rgba(255, 246, 232, .5); }
body[data-theme="diner"] .ask-fab-glyph { color: #ffdf9e; }

/* ── Tap rows — beer entries in every theme ── */
/* Doubled .dish.tap-row selector + placement after the per-theme .dish
   structural overrides so tap rows keep their layout in all themes. */

.phone .dish.tap-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  text-align: left;
  justify-items: stretch;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 16px 4px 18px;
  margin-bottom: 0;
}
.phone .dish.tap-row:hover {
  transform: none;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-color: var(--line);
  box-shadow: none;
}
/* Blueprint numbers dish names — tap rows already carry a tap number. */
body[data-theme="blueprint"] .tap-row .dish-name::before { content: none; }
body[data-theme="washi"] .tap-row .dish-name::before { content: none; }
.tap-no {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--accent);
}
.tap-top { display: flex; align-items: baseline; gap: 10px; }
.tap-top .dish-name { font-size: 18px; }
.tap-abv {
  margin-left: auto;
  font: 700 11.5px var(--sans);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 2.5px 9px;
  white-space: nowrap;
}
.tap-kicker {
  margin-top: 3px;
  font: 600 10.5px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tap-row .dish-desc { margin-top: 5px; }
.tap-pours { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; align-items: center; }
.pour {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font: 700 12.5px var(--sans);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 9px;
  padding: 5px 10px;
}
.pour em {
  font-style: normal;
  font: 700 9.5px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
body[data-theme="taproom"] .hero-tagline { color: var(--accent); }
body[data-theme="taproom"] .section-head::after { background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* ── Brand — restaurant's own colors + logo (vars set inline) ── */

.hero-crest img {
  display: block;
  max-height: 52px;
  max-width: 160px;
  margin: 0 auto;
  object-fit: contain;
}

/* ── Dish details sheet ──────────────────── */

.dish-sheet { max-height: 86vh; }
.dish-sheet .sheet-head { border-bottom: 0; padding-bottom: 6px; }
.dish-sheet-kicker {
  font: 700 10.5px var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.dish-sheet .sheet-close { margin-left: auto; }
.dish-sheet-scroll { overflow-y: auto; }
.dish-sheet-media {
  position: relative;
  margin: 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
  min-height: 200px;
  display: grid;
}
.dish-sheet-media img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}
.gen-badge {
  position: absolute;
  top: 10px; right: 10px;
  font: 700 11px var(--sans);
  color: var(--accent);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}
.gen-cta {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font: 500 14.5px var(--sans);
}
.gen-cta.is-static { cursor: default; }
.gen-cta .gen-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}
.gen-cta .gen-icon svg { width: 28px; height: 28px; }
.gen-cta p { font-weight: 600; }
.gen-cta em {
  font-style: normal;
  font: 600 10.5px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.gen-cta .gen-error { color: var(--accent); text-transform: none; letter-spacing: 0; }
.dish-sheet-art { margin: 0 auto; }
.dish-sheet-body { padding: 16px 20px calc(22px + env(safe-area-inset-bottom)); }
.dish-sheet-name { font-family: var(--serif); font-size: 24px; font-weight: 560; line-height: 1.15; }
.dish-sheet-body .dish-price { font-size: 19px; }
.dish-sheet-cat {
  margin-top: 5px;
  font: 600 10.5px var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.dish-sheet-body .dish-desc { margin-top: 10px; font-size: 14px; }
.dish-sheet-body .dish-meta { margin-top: 12px; }
.dish-sheet-body .tap-pours { margin-top: 12px; }
.dish-sheet-body .pairing { margin-top: 14px; }

/* ── AI answer card (search) ─────────────── */

/* When the AI answer is showing, hide the local results header/list. */
.search-results.ai-only .results-head { display: none; }

.ai-answer {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 6px;
  box-shadow: var(--shadow);
  animation: rise .25s ease both;
}
.ai-answer-lead {
  font: 500 13.5px var(--sans);
  line-height: 1.55;
  color: var(--ink);
  padding-right: 22px;
}
.ai-answer-close {
  position: absolute;
  top: 8px; right: 8px;
  border: 0;
  background: var(--paper-2);
  color: var(--ink-soft);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
}
.ai-answer .mini-dish {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
  background: var(--paper-2);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.ai-answer .mini-art {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.ai-answer .mini-art svg { width: 17px; height: 17px; }
.ai-answer .mini-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-answer .mini-name { font: 600 12.5px var(--sans); }
.ai-answer .mini-sub { font-size: 11px; color: var(--ink-faint); }
.ai-answer .mini-price { margin-left: auto; font-family: var(--serif); font-weight: 600; font-size: 13px; color: var(--olive); }

/* ── Cinematic scroll theme ───────────────────────────────────────────
   Full-viewport panel per dish, revealed on scroll with a parallax art
   plate. Structural markup (.cine-scene) is only produced for this theme. */

body[data-theme="cinematic"] .hero { display: none; }
body[data-theme="cinematic"] .chips { display: none; }
body[data-theme="cinematic"] .search-zone { border-bottom: 0; }
body[data-theme="cinematic"] .cat-nav { top: var(--cat-stick, 62px); justify-content: center; }
body[data-theme="cinematic"] .menu { padding: 0; }
body.cine-active { scroll-padding-top: 120px; }

.cine-scene {
  min-height: 100svh;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: 15vh 24px 12vh;
  cursor: pointer;
  position: relative;
}
.cine-scene::after {
  content: "";
  position: absolute; left: 24px; right: 24px; bottom: 6vh;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.cine-scene:last-child::after { display: none; }

.cine-inner { width: 100%; max-width: 460px; }
.cine-inner > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.cine-scene.in .cine-inner > * { opacity: 1; transform: none; }
.cine-scene.in .cine-inner > *:nth-child(2) { transition-delay: .05s; }
.cine-scene.in .cine-inner > *:nth-child(3) { transition-delay: .1s; }
.cine-scene.in .cine-inner > *:nth-child(4) { transition-delay: .15s; }
.cine-scene.in .cine-inner > *:nth-child(5) { transition-delay: .2s; }
.cine-scene.in .cine-inner > *:nth-child(6) { transition-delay: .28s; }

.cine-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cine-count { font: 700 12px var(--sans); letter-spacing: .2em; color: var(--accent); white-space: nowrap; }
.cine-cat { font: 600 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.cine-progress { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cine-progress > span { display: block; height: 100%; background: var(--accent); }

.cine-name {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(38px, 12vw, 68px);
  line-height: .98;
  letter-spacing: -.015em;
}
.cine-desc { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 32ch; }
.cine-meta-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cine-price { margin-top: 18px; font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--accent); }
.cine-art {
  margin-top: 26px;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--cine-glow, rgba(240, 96, 60, .16)), transparent 70%),
    var(--card);
  box-shadow: 0 0 40px var(--cine-glow, rgba(240, 96, 60, .1)) inset, var(--shadow);
  display: grid;
  place-items: center;
  transform: translateY(var(--cine-shift, 0));
}
/* Ease the sticky header between category palettes as you scroll. */
body[data-theme="cinematic"] .search-zone,
body[data-theme="cinematic"] .cat-nav,
body[data-theme="cinematic"] .search-bar {
  transition: background .45s ease, border-color .45s ease, color .45s ease;
}
.cine-art svg { width: 34%; height: 34%; color: var(--accent); }
.cine-art img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .cine-inner > * { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-snap-type: none !important; }
  .cine-art { transform: none !important; }
}

/* ── Forced light / dark mode ─────────────────────────────────────────
   Placed after every theme's palette so it wins on specificity ties. Only
   the neutral surfaces/text flip; each theme's --accent, fonts, radius and
   structural styling are preserved. The Brand theme (inline vars) is
   handled in JS. */
body[data-mode="light"] {
  --page-bg: #e8e5de;
  --paper: #faf9f6;
  --paper-2: #f1eee7;
  --card: #ffffff;
  --line: #e6e0d4;
  --ink: #1c1a15;
  --ink-soft: #5b564a;
  --ink-faint: #8b8674;
  --olive: var(--accent);
  --olive-deep: var(--accent);
  --gold: color-mix(in srgb, var(--accent) 60%, #1c1a15);
  --tag-bg: color-mix(in srgb, var(--accent) 10%, #ffffff);
  --tag-fg: color-mix(in srgb, var(--accent) 58%, #1c1a15);
  --hero-fg: #ffffff;
  --hero-bg:
    radial-gradient(600px 300px at 20% -40%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #000));
  --fab-bg: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000));
  --fab-fg: #ffffff;
  --shadow: 0 1px 2px rgba(30, 26, 21, .05), 0 8px 24px rgba(30, 26, 21, .08);
  --shadow-lift: 0 2px 4px rgba(30, 26, 21, .06), 0 16px 40px rgba(30, 26, 21, .14);
}
body[data-mode="dark"] {
  --page-bg: #0b0b0e;
  --paper: #141418;
  --paper-2: #1b1b20;
  --card: #191920;
  --line: #2c2c34;
  --ink: #f0eee9;
  --ink-soft: #b7b3ab;
  --ink-faint: #7f7b72;
  --olive: var(--accent);
  --olive-deep: var(--accent);
  --gold: color-mix(in srgb, var(--accent) 70%, #f0eee9);
  --tag-bg: color-mix(in srgb, var(--accent) 18%, #191920);
  --tag-fg: color-mix(in srgb, var(--accent) 74%, #f0eee9);
  --hero-fg: #f4f2ee;
  --hero-bg:
    radial-gradient(600px 300px at 75% -25%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%),
    linear-gradient(165deg, #17171c, #0e0e12);
  --fab-bg: linear-gradient(150deg, color-mix(in srgb, var(--accent) 82%, #000), color-mix(in srgb, var(--accent) 55%, #000));
  --fab-fg: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .45);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, .4), 0 18px 46px rgba(0, 0, 0, .6);
}

@media (max-width: 540px) {
  body { background: var(--paper); }
  .phone { box-shadow: none; }
}
