/* =============================================================
   Mezzé #1 — dish photos on the menu pages + tap-to-enlarge viewer.
   Markup comes from _src/menu-build.mjs (data: Notion › Menu Items).
   ============================================================= */

/* ---- each dish row: photo on the left, text on the right ---- */
.menu-list li.m-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}
.m-body { flex: 1 1 auto; min-width: 0; }
.m-thumb {
  flex: 0 0 auto;
  position: relative;
  width: 104px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-deep);
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(31, 36, 34, .10);
}
.m-thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
/* small "expand" badge so it reads as tappable */
.m-thumb::after {
  content: "";
  position: absolute; right: 5px; bottom: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 246, 240, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23224c24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  opacity: .9;
  transition: opacity .2s var(--ease);
}
.m-item:hover .m-thumb img { transform: scale(1.05); }
.m-item:hover .m-label { color: var(--orange-text); }
.m-label { transition: color .2s var(--ease); }
.m-thumb:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.menu-list li.m-item .m-row { align-items: baseline; }
@media (max-width: 560px) {
  .m-thumb { width: 88px; border-radius: 9px; }
  .menu-list li.m-item { gap: 13px; }
  .m-desc { font-size: .97rem; }
}

/* Count in small grey after the name, like the printed menu: "Falafel (5 pcs)" */
.m-name .m-sub { font-style: normal; font-size: .85rem; margin-left: 4px; }

/* ---- Grill to Share: the three boards become photo cards ---- */
.menu-feature__tiers { list-style: none; margin: 0; padding: 0; }
.menu-feature__board { display: block; }
.menu-feature__tier {
  font: inherit; color: inherit; cursor: zoom-in;
  width: clamp(150px, 26vw, 210px);
  padding: 10px 10px 14px;
  gap: 6px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.menu-feature__tier:hover { background: rgba(15, 37, 17, .6); border-color: rgba(255, 246, 240, .55); transform: translateY(-2px); }
.menu-feature__tier:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.menu-feature__img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; margin-bottom: 6px;
}
.menu-feature .m-name { color: var(--cream); font-size: 1.05rem; text-align: center; }
.menu-feature .diet-r { color: var(--orange-text-bright); }
/* keep the raw-food asterisk glued to the last word (an inline-block may wrap alone) */
.m-label .diet-r, .m-sub .diet-r { display: inline; }
/* phones: the three boards stack as rows (photo · name and size · price) */
@media (max-width: 600px) {
  .menu-feature__tiers { display: flex; flex-direction: column; gap: 10px; }
  .menu-feature__tier {
    width: 100%; min-width: 0;
    display: grid;
    grid-template-columns: 88px 1fr auto;
    grid-template-areas: "img name name" "img ppl price";
    align-items: center;
    column-gap: 12px; row-gap: 2px;
    padding: 10px 14px 10px 10px;
    text-align: left;
  }
  .menu-feature__img { grid-area: img; width: 88px; margin: 0; }
  .menu-feature__tier .m-name { grid-area: name; text-align: left; align-self: end; }
  .menu-feature__tier .menu-feature__ppl { grid-area: ppl; align-self: start; white-space: nowrap; }
  .menu-feature__tier .menu-feature__price { grid-area: price; align-self: start; line-height: 1; }
}

/* ---- sticky section chips: keep the active one in view ---- */
.cat-nav__chip.is-active { box-shadow: 0 2px 8px rgba(34, 76, 36, .18); }

/* ---- tap-to-enlarge viewer ---- */
html.dish-lb-open { overflow: hidden; }
.dish-lb {
  padding: 0; border: 0; background: transparent;
  width: min(780px, 94vw); max-width: none;
  max-height: 94vh; max-height: 94dvh;
  overflow: visible;
  color: var(--ink);
}
.dish-lb::backdrop { background: rgba(10, 24, 11, .84); backdrop-filter: blur(3px); }
.dish-lb__card {
  position: relative;
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column;
  max-height: 94vh; max-height: 94dvh;
}
.dish-lb__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  flex: 0 1 auto;
  min-height: 0;
  touch-action: pan-y;
  user-select: none;
}
.dish-lb__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .25s var(--ease);
}
.dish-lb__media img.is-loading { filter: blur(6px); }
.dish-lb__body { padding: 18px 24px 8px; overflow-y: auto; }
.dish-lb__row { display: flex; align-items: baseline; gap: 12px; }
.dish-lb__name {
  font-family: var(--display); font-weight: 600; letter-spacing: .02em;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem); color: var(--green);
  flex: 1 1 auto; margin: 0;
}
.dish-lb__name .diet { width: 20px; height: 20px; }
.dish-lb__price {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--orange-text); flex: 0 0 auto;
}
.dish-lb__desc {
  font-family: var(--editorial); font-size: 1.05rem; line-height: 1.5;
  margin: 8px 0 0; color: var(--ink);
}
.dish-lb__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.dish-lb__where {
  font-family: var(--body); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-soft, #4f6b50);
  text-align: center; flex: 1 1 auto;
}
.dish-lb__step {
  font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.dish-lb__step:hover { border-color: var(--green); background: var(--green); color: var(--cream); }
.dish-lb__step:disabled { opacity: .35; cursor: default; background: var(--cream); color: var(--green); border-color: var(--line); }
.dish-lb__step:focus-visible, .dish-lb__close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dish-lb__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 246, 240, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23224c24' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.dish-lb__close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dish-lb__step, .dish-lb__where { white-space: nowrap; }
@media (max-width: 560px) {
  .dish-lb { width: 100vw; max-height: 100dvh; margin: auto 0 0; }
  .dish-lb__card { border-radius: 18px 18px 0 0; max-height: 100dvh; }
  .dish-lb__body { padding: 16px 18px 4px; }
  .dish-lb__foot { padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
  .dish-lb__step { padding: 0; width: 44px; height: 44px; justify-content: center; font-size: 1.4rem; line-height: 1; }
  .dish-lb__step .lb-word { display: none; }
  .dish-lb__where { font-size: .66rem; letter-spacing: .12em; white-space: normal; line-height: 1.4; }
}
/* photo switch over the big photo: 9×9 | 13×10 tray, Mini | Regular skewer */
.dish-lb__views {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; gap: 2px; padding: 4px;
  background: rgba(255, 246, 240, .95); border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.dish-lb__views[hidden] { display: none; }
.dish-lb__views button {
  font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  min-height: 36px; padding: 6px 15px; border: 0; border-radius: 999px;
  background: transparent; color: var(--green); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dish-lb__views button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.dish-lb__views button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dish-lb__price .lb-p.is-on { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dish-lb__price:has(.is-on) .lb-p:not(.is-on) { opacity: .5; }
/* one-time hint on phones: you can swipe to the next dish */
.dish-lb__hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; margin: 0;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: rgba(15, 37, 17, .85); color: var(--cream);
  font-family: var(--body); font-weight: 600; font-size: .84rem; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.dish-lb__hint.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .m-thumb img, .menu-feature__tier, .dish-lb__media img, .dish-lb__hint { transition: none; }
}

/* ---- Lunch: dips and salads come in two sizes (Half / Full) ---- */
.m-item--two .m-row { gap: 10px; }
.m-item--two .p2-price {
  flex: 0 0 auto;
  font-family: var(--display); font-weight: 600; letter-spacing: .04em;
  font-size: 1.05rem; color: var(--orange-text); white-space: nowrap;
}
.m-item--two .p2-price small {
  font-family: var(--body); font-weight: 600; font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-soft);
  margin-right: 2px;
}
.m-item--two .p2-price + .p2-price { margin-left: 4px; }
/* lunch lists sit in two columns on wider screens, like the Kitchen menu */
#lunch-menu .menu-list:not(.menu-list--two) {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(32px, 5vw, 64px);
}
@media (max-width: 760px) { #lunch-menu .menu-list:not(.menu-list--two) { grid-template-columns: 1fr; } }

#kitchen.section, #lunch-menu.section, #bar-menu.section, #hh-menu.section { padding-top: clamp(26px, 4vw, 44px); }

/* ---- Grill to Share: plain rounded card (no arch) ---- */
.menu-feature { border-radius: 18px; }

/* ---- menu tabs (Kitchen · Bar · Lunch · Happy Hour) stay on ONE line on
   phones, sliding sideways if needed, so the bars below never get covered ---- */
.menu-jump__inner {
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; gap: 26px;
}
.menu-jump__inner::-webkit-scrollbar { display: none; }
.menu-jump a { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 480px) {
  .menu-jump__inner { gap: 20px; }
  .menu-jump a { letter-spacing: .12em; font-size: .72rem; }
}

/* ---- section chips (shared by all four menu pages). Their sticky position
   is set by menu-photos.js right under the tabs, whatever their height ---- */
.cat-nav {
  position: sticky; top: 152px; z-index: 35;
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 0 14px; margin: 0 0 28px;
  background: var(--cream); border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav__chip {
  flex: 0 0 auto; white-space: nowrap; text-decoration: none;
  font-family: var(--body); font-weight: 600; letter-spacing: .03em; font-size: .78rem;
  color: var(--green); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 15px;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.cat-nav__chip::after { display: none; }
.cat-nav__chip:hover { border-color: rgba(241, 87, 35, .5); }
.cat-nav__chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cat-nav__chip.is-active { background: var(--green); border-color: var(--green); color: var(--cream); }
.cat-nav__chip[hidden] { display: none; }
main #kitchen .menu-cat, main #lunch-menu .menu-cat,
main #bar-menu .menu-cat, main #hh-menu .menu-cat { scroll-margin-top: calc(var(--menu-stick, 200px) + 14px); }

/* ---- tabs line up with the menu below (was flush to the screen edge) ---- */
.menu-jump .menu-jump__inner { padding: 12px var(--gutter); }

/* ---- tablets: one dish per line so names and icons never squeeze ---- */
@media (max-width: 960px) {
  main .kitchen-cols .menu-list,
  main #lunch-menu .menu-list:not(.menu-list--two) { grid-template-columns: 1fr; }
}

/* ---- phones: tighter rows, no dotted leader ---- */
@media (max-width: 480px) {
  .m-thumb { width: 80px; }
  .menu-list li.m-item { gap: 12px; }
  .m-item .m-dots { display: none; }
  .m-item .m-row { gap: 8px; }
  .m-item .m-name { flex: 1 1 auto; font-size: 1.06rem; }
  /* lunch two-size rows: name on its own line, then "Half 7  Full 11" */
  .m-item--two .m-row { flex-wrap: wrap; row-gap: 2px; column-gap: 14px; }
  .m-item--two .m-name { flex: 1 1 100%; }
  .m-item--two .p2-price + .p2-price { margin-left: 0; }
}

/* ---- simple top: no intro, no legend bar, no filter bar ---- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.menu-hours {
  font-family: var(--body); font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--orange-text);
  margin: 0 0 12px;
}

/* ---- the key + allergy notice, quietly at the bottom of the menu ---- */
.menu-key {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.menu-key__icons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-family: var(--body); font-size: .86rem; color: var(--ink); margin: 0 0 12px;
}
.menu-key__icons > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.menu-key__icons .diet { margin: 0; }
.menu-key__note {
  font-family: var(--editorial); font-style: italic; font-size: .9rem; line-height: 1.5;
  color: var(--green-soft); max-width: 70ch; margin: 0 auto;
}
.menu-feature__desc { text-wrap: balance; }

/* ---- Bar + Happy Hour: same simple layout as Kitchen and Lunch.
   One section after another (so a chip jump lands the whole section at the
   top), items two across inside each section on wide screens ---- */
#bar-menu .bar-grid { column-count: 1; }
#bar-menu .bar-grid > .menu-cat, #hh-menu .menu-cat { margin: 0 0 46px; }
#bar-menu .bar-call { margin: 0 0 14px; }
#bar-menu .menu-cat > .menu-list, #hh-menu .menu-cat > .menu-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(32px, 5vw, 64px);
}
#bar-menu .menu-cat > .menu-list > li, #hh-menu .menu-cat > .menu-list > li { margin: 0; }
#bar-menu .wine-list, #bar-menu .wine-sizes, #hh-menu .wine-list, #hh-menu .wine-sizes,
#hh-menu .menu-cat__sub-head { max-width: 760px; }
@media (max-width: 960px) {
  #bar-menu .menu-cat > .menu-list, #hh-menu .menu-cat > .menu-list { grid-template-columns: 1fr; }
}
