/* Daily Bistro menu. Values measured on the Choice QR menu at 375 px. */

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/roboto-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/roboto-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f0ea;
  --bg-2: #e2ded8;
  --line: #cbc7c1;
  --blue: #1339a4;
  --blue-50: rgba(19, 57, 164, 0.5);
  --chip: rgba(19, 57, 164, 0.145);
  --gutter: 16px;
  --app: 600px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg-2);
  color: var(--blue);
  font: 400 16px/24px "Roboto Mono", ui-monospace, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: var(--app);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.muted { color: var(--blue-50); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font: 700 14px/16.8px "Roboto Mono", monospace;
}
.btn svg { width: 24px; height: 24px; }
.btn--lang { padding: 0 12px 0 16px; text-transform: uppercase; }
.btn--lang .btn__caret { display: inline-flex; }
.btn--lang .btn__caret svg { width: 16px; height: 16px; }
.btn--icon { width: 46px; padding: 0; }
.btn--wide { display: flex; width: 100%; height: 48px; margin-top: 16px; }

/* ---------- home: hero ---------- */

.hero { position: relative; background: var(--bg-2); }
.hero__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 563 / 428;
  max-height: 440px;
  object-fit: cover;
  scroll-snap-align: start;
}
.hero__logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.hero__actions { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.hero__arrow {
  position: absolute;
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow[disabled] { opacity: 0; pointer-events: none; }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font: 600 13px/16px "Roboto Mono", monospace;
}

/* ---------- home: name and sections ---------- */

.place { padding: 16px var(--gutter); }
.place__name { font: 700 24px/32px "Roboto Mono", monospace; }
.place__type { margin-top: 4px; font-size: 12px; line-height: 18px; color: var(--blue-50); }

.sections { display: flex; flex-direction: column; gap: 8px; padding: 24px var(--gutter) 16px; background: var(--bg-2); }
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 19px 20px 19px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font: 600 20px/32px "Roboto Mono", monospace;
}
.tile svg { flex: none; width: 24px; height: 24px; }
.divider { display: flex; align-items: center; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { padding: 0 16px; color: var(--blue-50); font: 600 13px/19.5px "Roboto Mono", monospace; text-transform: uppercase; }

/* ---------- home: info footer ---------- */

.info { display: flex; flex-direction: column; gap: 16px; padding: 16px var(--gutter) 24px; }
.block { display: flex; align-items: flex-start; gap: 12px; }
.block__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-2);
}
.block__text { flex: 1; min-width: 0; padding-top: 4px; }
.block__label { color: var(--blue-50); font: 600 13px/16px "Roboto Mono", monospace; }
.block__value { display: block; margin-top: 4px; font: 500 15px/20px "Roboto Mono", monospace; overflow-wrap: anywhere; }
a.block__value { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.block__action {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
}
.block__action.is-done { color: var(--blue-50); }
.block--hours summary { display: flex; align-items: flex-start; gap: 12px; list-style: none; cursor: pointer; }
.block--hours summary::-webkit-details-marker { display: none; }
.block--hours { display: block; }
.block__more { flex: none; margin-top: 16px; font: 700 15px/24px "Roboto Mono", monospace; text-decoration: underline; text-underline-offset: 3px; }
.hours { margin: 12px 0 0 60px; font: 500 14px/28px "Roboto Mono", monospace; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); }
.hours li.is-today { font-weight: 700; }

.info__label { margin-top: 4px; font: 700 16px/24px "Roboto Mono", monospace; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: -8px; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 14px;
}
.social svg { width: 20px; height: 20px; }
.info .btn--wide { margin-top: 0; }

.bottom {
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--blue-50);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

/* ---------- section page ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 16px var(--gutter);
  background: var(--bg-2);
}
.topbar__place { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font: 600 14px/24px "Roboto Mono", monospace; }
.topbar__place svg { flex: none; }
.topbar__place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-radius: 0 0 8px 8px;
  transition: box-shadow 0.2s;
}
.sticky.is-stuck { box-shadow: 0 6px 12px -8px rgba(19, 57, 164, 0.35); }
.tabs { display: flex; gap: 12px; padding: 8px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: 600 16px/32px "Roboto Mono", monospace; color: var(--blue-50); white-space: nowrap; }
.tab.is-active { color: var(--blue); }
.chips {
  display: flex;
  gap: 4px;
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font: 600 12px/14.4px "Roboto Mono", monospace;
  white-space: nowrap;
}
.chip.is-active { background: var(--chip); }

.menu { padding-bottom: 16px; }
.menu__title { padding: 24px var(--gutter) 0; font: 700 26px/32px "Roboto Mono", monospace; }
.clamp { position: relative; }
.clamp__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.clamp__more {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 0 0 24px;
  border: 0;
  background: linear-gradient(90deg, rgba(244, 240, 234, 0), var(--bg) 24px);
  color: var(--blue-50);
  font: 700 13px/20px "Roboto Mono", monospace;
}
.clamp.is-clamped .clamp__more { display: block; }
.clamp.is-open .clamp__text { -webkit-line-clamp: unset; }
.clamp.is-open .clamp__more { position: static; display: inline; padding: 0; background: none; }
.clamp--note { margin: 4px var(--gutter) 0; }
.clamp--note .clamp__text { -webkit-line-clamp: 2; }
.clamp--note .clamp__more { color: var(--blue); font-weight: 500; }

.cat { padding-top: 16px; scroll-margin-top: 92px; }
.cat__title { padding: 0 var(--gutter) 16px; font: 700 22px/26px "Roboto Mono", monospace; }

.item { position: relative; padding: 0 var(--gutter) 16px; }
.item__inner { display: flex; gap: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.item__left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item__right { flex: none; width: 160px; }
.item__img { width: 160px; height: 120px; border-radius: 6px; object-fit: cover; background: var(--bg-2); }
.item__title { font: 700 16px/20px "Roboto Mono", monospace; }
/* The whole row opens the dish card; "more" sits above the stretched link. */
.item__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.item .clamp__more { z-index: 2; }
.item__price { margin-top: 4px; font: 700 14px/24px "Roboto Mono", monospace; }
.item .clamp { margin-top: 8px; }
.soldout {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bg-2);
  font-size: 11px;
  line-height: 18px;
  font-weight: 600;
  vertical-align: 1px;
}
.item.is-soldout .item__title, .item.is-soldout .clamp, .item.is-soldout .item__img { opacity: 0.45; }

.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-50); font: 600 11px/16px "Roboto Mono", monospace; }
.tag svg { flex: none; }

.legend { margin: 16px var(--gutter) 0; padding: 16px; border-radius: 8px; background: var(--bg-2); font-size: 13px; line-height: 20px; }
.legend__title { font: 700 16px/24px "Roboto Mono", monospace; }
.legend p { margin-top: 4px; }
.legend ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 8px; }
.legend b, .sheet__allergens b { display: inline-block; min-width: 2ch; }

/* ---------- dish card (bottom sheet) ---------- */

.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.25s; }
.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--app);
  max-height: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  background: var(--bg-2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__handle { position: absolute; top: -18px; left: calc(50% - 32px); width: 64px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.6); }
.sheet__close {
  position: absolute;
  top: 19px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.sheet__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.sheet__content.no-img .sheet__info { padding: 28px 80px 20px 16px; }
.sheet__info { padding: 16px; background: var(--bg); }
.sheet__title { font: 700 24px/28px "Roboto Mono", monospace; }
.sheet__price { margin-top: 4px; font: 700 16px/24px "Roboto Mono", monospace; }
.sheet__desc { margin-top: 4px; font-size: 13px; line-height: 19.5px; white-space: pre-line; }
.sheet__allergens { margin-top: 8px; display: grid; gap: 2px; color: var(--blue-50); font: 600 12px/18px "Roboto Mono", monospace; }
.opts { padding: 16px; background: var(--bg-2); }
.opts + .opts { padding-top: 0; }
.opts__title { margin-bottom: 8px; font: 700 16px/24px "Roboto Mono", monospace; }
.opts__hint { margin: -8px 0 8px; color: var(--blue-50); font: 600 12px/24px "Roboto Mono", monospace; }
.opts li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 16px; line-height: 24px; }
.opts li span:last-child { flex: none; font-size: 14px; }
.opts li.is-soldout { opacity: 0.45; }
html.sheet-lock, html.sheet-lock body { overflow: hidden; }

/* ---------- message page ---------- */

.message { padding: 48px var(--gutter); text-align: center; }
.message p { font-size: 16px; line-height: 24px; }

@media (min-width: 640px) {
  .app { box-shadow: 0 0 0 1px var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet__backdrop, .sheet__panel, .sticky { transition: none; }
}
