:root {
  --ink: #1c1917;
  --muted: #57534e;
  --paper: #f7f1e8;
  --card: #fffdf9;
  --accent: #c45c26;
  --accent-dark: #9a3f16;
  --line: #e8ddd0;
  --chip: #fff7ed;
  --shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  --radius: 14px;
  --header-h: 64px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  padding: 0 0 40px;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); word-break: break-word; }
a:hover { color: var(--accent); }

h1, h2, h3, .brand span {
  font-family: Nunito, "Source Sans 3", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(1.45rem, 4.2vw, 2.15rem); margin: 0.2em 0 0.35em; }
h2 { font-size: clamp(1.15rem, 3vw, 1.45rem); margin: 1.4em 0 0.6em; }
h3 { font-size: 1.05rem; margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 16px;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}
.brand span { font-size: 1.05rem; }
.header-search {
  flex: 1 1 auto;
  min-width: 0;
}
.header-search input {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
}
.header-search input:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.lang-switch { position: relative; flex: 0 0 auto; }
.lang-switch summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary img,
.lang-menu img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 6px;
  z-index: 50;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  font-size: 14px;
}
.lang-menu a:hover,
.lang-menu a[aria-current="true"] { background: var(--chip); }

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 28px 8px 8px;
}
.hero .logo-lg {
  width: min(160px, 42vw);
  margin: 0 auto 12px;
  display: block;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.intro {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--muted);
}
.hero-cta {
  margin: 10px 0 0;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chips a, .chip {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: var(--chip);
  font-size: 14px;
  font-weight: 600;
}
.chips a:hover { background: #ffe8d2; border-color: #efc9a8; }

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 12px 0 28px;
}
.venue-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  text-align: left;
}
.venue-card-main {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.venue-card-main img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: 0 0 auto;
}
.venue-place, .venue-hours, .venue-tags {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.crumbs {
  font-size: 14px;
  margin: 14px 0 8px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }

.site-search,
#accordionSearch,
input[type="search"],
input[type="text"] {
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.menu-hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin: 8px 0 16px;
}
.menu-hero img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.menu-hero h1 { margin-top: 0; }
.menu-meta { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.menu-filter { width: 100%; margin-top: 10px; }

.dish-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}
.dish-name { font-weight: 700; display: inline; }
.dish-desc { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.dish-price { font-weight: 700; white-space: nowrap; color: var(--accent-dark); }
.menu-section {
  margin: 18px 0 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.allergen-key {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  text-align: left;
  margin: 12px 0 20px;
}
.allergen-key span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.allergen-key img { max-width: 28px; height: auto; }

.table-wrap, .compare-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  margin: 12px 0;
  background: var(--card);
  border-radius: 12px;
}
table.compare th, table.compare td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.site-footer {
  width: min(1120px, calc(100% - 28px));
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-ia { line-height: 2; }
.footer-ia a { margin-right: 10px; color: var(--muted); }
.footer-meta { margin-top: 10px; }

.ui-accordion .ui-accordion-header {
  font-size: 16px;
  font-family: Nunito, sans-serif;
  padding: 12px 36px 12px 12px;
  line-height: 1.3;
  background: var(--card);
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  margin-top: 8px;
  color: var(--ink);
}
.ui-accordion .ui-accordion-content {
  padding: 8px 12px 14px;
  overflow-wrap: anywhere;
  background: var(--card);
  border: 1px solid var(--line) !important;
  border-top: 0 !important;
}

.menu-item { display: inline; }
.allergen-icon { max-width: 28px !important; }

#favoritesPanel { max-width: 100%; }
#favoritesNote, #favoriteShareLink { width: 100% !important; box-sizing: border-box; }
.favorites-share { flex-wrap: wrap; }

#helpButton {
  display: block;
  width: min(100%, 220px);
  margin: 20px auto;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

#helpVideoModal > div { max-width: 95% !important; width: 95%; }
#helpVideoModal video { width: 100%; height: auto; }

@media (max-width: 720px) {
  .brand span { display: none; }
  .site-header { padding: 8px 10px; gap: 8px; }
  .page { width: calc(100% - 20px); }
  .menu-hero { grid-template-columns: 64px 1fr; }
  .menu-hero img { width: 64px; height: 64px; }
  table.compare { font-size: 14px; min-width: 420px; }
}

@media (max-width: 420px) {
  table.compare { min-width: 360px; font-size: 13px; }
  .chips a { font-size: 13px; padding: 7px 10px; }
}
