/* ============================================================
   Siyam World Menus — Sun Siyam brand design system
   Built from the official Sun Siyam Brand Guidelines:
   · Dahlia (Medium preferred) — headlines, sentence case, leading 90–110%
   · Rework Display Bold — sub-heads/labels, ALL CAPS, tracking ≈350
   · Good Sans — body copy, light weights, leading 130%
   · Masterbrand palette + Lifestyle Collection (Siyam World):
     Lagoon Teal #0C675C · Turquoise Coral #B1E4DC · Linen Grey #E9E1D5
     Sunset Orange #CE6233 / #B04415 · Orange Glow #FFA851
     Moonlight Black · Vermilion Red #D42930 (Lifestyle accent)
   ============================================================ */

@font-face {
  font-family: "Dahlia";
  src: url("../fonts/Dahlia-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Dahlia";
  src: url("../fonts/Dahlia-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Rework Display";
  src: url("../fonts/ReworkDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Good Sans";
  src: url("../fonts/GoodSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Good Sans";
  src: url("../fonts/GoodSans-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Good Sans";
  src: url("../fonts/GoodSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Good Sans";
  src: url("../fonts/GoodSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Good Sans";
  src: url("../fonts/GoodSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Moonlight (night — default: the Grill opens at dusk) */
  --ink: #131213;            /* Moonlight Black */
  --ink-2: #1D1B1B;          /* raised surface (from #393636 family) */
  --ink-3: #272424;
  --sand: #E9E1D5;           /* Linen Grey */
  --sand-dim: #C0BBB3;       /* Linen +30% black */
  --sand-faint: #99948C;
  --accent: #FFA851;         /* Orange Glow — active elements at night */
  --accent-ink: #1F1408;     /* text on accent */
  --lagoon: #B1E4DC;         /* Turquoise Coral — prices, positive info */
  --wow: #E0484F;            /* Vermilion (Lifestyle) lifted for dark ground */
  --hairline: rgba(233, 225, 213, 0.15);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --chip-bg: rgba(177, 228, 220, 0.1);
  --chip-line: rgba(177, 228, 220, 0.32);
  --stamp: url("../assets/stamp-fish-linen.png");
  --stamp-opacity: 0.9;

  --display: "Dahlia", Georgia, serif;
  --caps: "Rework Display", Arial, sans-serif;
  --body: "Good Sans", Arial, Helvetica, sans-serif;

  --pad: clamp(18px, 4.5vw, 32px);
  --maxw: 760px;
  --radius: 18px;
}

html[data-theme="day"] {
  /* Linen (day) */
  --ink: #EFEAE2;            /* Linen Grey 70% tint */
  --ink-2: #F6F3ED;
  --ink-3: #E4DCCE;
  --sand: #1C1A19;           /* Moonlight Black */
  --sand-dim: #5D5A58;       /* Grey 70% */
  --sand-faint: #6E6A64;
  --accent: #B04415;         /* Sunset Orange +30% black — meets contrast on linen */
  --accent-ink: #F8F2E7;
  --lagoon: #0C675C;         /* Lagoon Teal */
  --wow: #D42930;            /* Vermilion Red */
  --hairline: rgba(28, 26, 25, 0.15);
  --shadow: 0 18px 50px rgba(28, 26, 25, 0.16);
  --chip-bg: rgba(12, 103, 92, 0.08);
  --chip-line: rgba(12, 103, 92, 0.3);
  --stamp: url("../assets/stamp-fish-black.png");
  --stamp-opacity: 0.16;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  background: var(--ink);
  color: var(--sand);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5; /* body leading toward brand 130% on copy blocks */
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100dvh;
}

#app {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) calc(env(safe-area-inset-bottom, 0px) + 40px);
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Rework Display label utility — brand: all caps, tracking ~350 */
.caps {
  font-family: var(--caps);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  line-height: 1.2;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 0 12px;
  background: linear-gradient(var(--ink) 75%, transparent);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--sand-dim);
  min-width: 0;
}
.crumbs a {
  color: var(--sand-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.crumbs a:hover { color: var(--sand); }
.crumbs .c-sep { color: var(--sand-faint); }
.crumbs [aria-current] {
  color: var(--sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .controls { display: flex; gap: 6px; }
.iconbtn {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--sand-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.iconbtn:hover { color: var(--sand); border-color: var(--sand-dim); }
.iconbtn:active { transform: scale(0.92); }
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- home / outlet picker ---------- */
.home-hero {
  position: relative;
  padding: clamp(30px, 8vw, 64px) 0 clamp(20px, 5vw, 40px);
}
.home-hero .eyebrow {
  font-size: 11px;
  color: var(--lagoon);
  margin: 0 0 16px;
}
.home-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 9.5vw, 60px);
  line-height: 1.0; /* Dahlia leading 90–110% */
  margin: 0;
}
.home-hero h1 .accent-line { color: var(--accent); }
.home-hero p.sub {
  color: var(--sand-dim);
  font-weight: 300;
  max-width: 44ch;
  margin: 18px 0 0;
  line-height: 1.6;
}
.hero-stamp {
  position: absolute;
  right: -26px;
  top: 8px;
  width: clamp(110px, 26vw, 160px);
  aspect-ratio: 1;
  background: var(--stamp) no-repeat center / contain;
  opacity: var(--stamp-opacity);
  pointer-events: none;
}

.outlet-grid { display: grid; gap: 14px; margin-top: 12px; }
.outlet-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  background: var(--ink-2);
  transition: border-color 0.25s, transform 0.2s;
}
.outlet-card:hover { border-color: var(--lagoon); transform: translateY(-2px); }
.outlet-card .o-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.05;
  margin: 0 0 6px;
}
.outlet-card .o-tag { color: var(--sand-dim); font-weight: 300; font-size: 14px; margin: 0; }
.outlet-card .o-hours {
  font-size: 9.5px;
  color: var(--lagoon);
  margin-top: 14px;
  display: inline-block;
}
.outlet-card.soon { opacity: 0.55; cursor: default; }
.outlet-card.soon:hover { border-color: var(--hairline); transform: none; }
.outlet-card .o-soon { font-size: 9.5px; color: var(--sand-faint); margin-top: 14px; display: inline-block; }

/* ---------- outlet header ---------- */
.outlet-head { padding: clamp(20px, 5vw, 42px) 0 6px; text-align: center; }
.outlet-head .eyebrow {
  font-size: 10px;
  color: var(--sand-faint);
  margin: 0 0 12px;
}
.outlet-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 9.5vw, 56px);
  margin: 0;
  line-height: 1.0;
}
.outlet-head .hours {
  font-size: 10px;
  color: var(--accent);
  margin-top: 12px;
}

/* ---------- menu tabs ---------- */
.menu-tabs {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  z-index: 30;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 10px calc(var(--pad) * -1) 0;
  padding-left: var(--pad);
  padding-right: var(--pad);
  background: linear-gradient(var(--ink) 82%, transparent);
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.mtab {
  flex: none;
  padding: 11px 18px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  color: var(--sand-dim);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  white-space: nowrap;
}
.mtab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

/* ---------- toolbar: search + filters ---------- */
.toolbar { display: flex; gap: 8px; margin: 14px 0 4px; }
.searchwrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 0 16px;
  background: var(--ink-2);
}
.searchwrap svg { width: 15px; height: 15px; color: var(--sand-faint); flex: none; }
.searchwrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--sand);
  font-family: inherit;
  font-weight: 300;
  font-size: 16px; /* >=16px stops iOS Safari auto-zoom on focus */
  padding: 12px 0;
  min-width: 0;
}
.searchwrap input::placeholder { color: var(--sand-faint); }
.searchwrap input:focus { outline: none; }
.filterbtn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  background: var(--ink-2);
  color: var(--sand-dim);
  font-size: 14px;
}
.filterbtn svg { width: 15px; height: 15px; }
.filterbtn .count {
  background: var(--lagoon);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.filterbtn.on { border-color: var(--lagoon); color: var(--lagoon); }

/* filter panel */
.filter-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 18px 16px;
  margin: 10px 0 2px;
}
.filter-panel h3 {
  margin: 0 0 12px;
  font-size: 9.5px;
  color: var(--sand-faint);
}
.filter-panel h3:not(:first-child) { margin-top: 18px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  padding: 9px 15px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  color: var(--sand-dim);
  font-size: 13.5px;
  font-weight: 400;
  transition: all 0.15s;
}
.fchip.on {
  background: var(--chip-bg);
  border-color: var(--lagoon);
  color: var(--lagoon);
  font-weight: 500;
}
.fchip.avoid.on {
  background: rgba(212, 41, 48, 0.08);
  border-color: var(--wow);
  color: var(--wow);
}
.filter-clear {
  margin-top: 16px;
  font-size: 13px;
  color: var(--sand-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- sections & items ---------- */
.section { padding-top: 32px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(23px, 6vw, 28px);
  line-height: 1.05;
  margin: 0;
}
.section-head .rule { flex: 1; height: 1px; background: var(--hairline); }
.section-note { color: var(--sand-faint); font-weight: 300; font-size: 13px; margin: 2px 0 0; }

.item {
  width: 100%;
  text-align: left;
  padding: 16px 2px;
  border-bottom: 1px solid var(--hairline);
  display: block;
  transition: background 0.15s;
  border-radius: 6px;
}
.item:active { background: var(--ink-2); }
.item .row1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.item .i-name {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.item .i-name .star { color: var(--wow); font-weight: 400; }
.item .i-sub { color: var(--sand-faint); font-size: 13px; font-weight: 300; }
.item .leader { flex: 1; border-bottom: 1px dotted var(--hairline); transform: translateY(-4px); min-width: 16px; }
.item .i-price {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: var(--lagoon);
  font-size: 15.5px;
  white-space: nowrap;
}
.item .i-desc {
  color: var(--sand-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
  font-weight: 300;
  max-width: 56ch;
}
.item .i-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.minitag {
  font-family: var(--caps);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  padding: 3.5px 8px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  color: var(--sand-faint);
}
.minitag.diet { color: var(--lagoon); border-color: var(--chip-line); }

/* sold-out items stay listed, clearly marked */
.item.sold .i-name, .item.sold .i-desc, .item.sold .i-tags { opacity: 0.45; }
.soldtag {
  font-size: 8.5px;
  color: var(--wow);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3.5px 8px;
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: var(--sand-dim);
  font-weight: 300;
  padding: 60px 20px;
}
.empty .e-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--sand);
}

/* ---------- footnotes + stamp ---------- */
.footnotes {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--sand-faint);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 300;
  text-align: center;
}
.footnotes p { margin: 0 0 4px; }
.foot-stamp {
  width: 92px;
  aspect-ratio: 1;
  margin: 26px auto 6px;
  background: var(--stamp) no-repeat center / contain;
  opacity: var(--stamp-opacity);
}

/* ---------- bottom sheet (item detail) ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 8, 0.6);
  backdrop-filter: blur(3px);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 105%);
  width: min(640px, 100%);
  max-height: 86dvh;
  background: var(--ink-2);
  border-radius: 22px 22px 0 0;
  z-index: 70;
  box-shadow: var(--shadow);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0.22, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-bottom: none;
}
.sheet.show { transform: translate(-50%, 0); }
.sheet[hidden], .sheet-backdrop[hidden] { display: none !important; }
.sheet:not(.show), .sheet-backdrop:not(.show) { pointer-events: none; }
.sheet .grab {
  width: 40px; height: 4px;
  border-radius: 4px;
  background: var(--hairline);
  margin: 12px auto 0;
  flex: none;
}
.sheet .sheet-scroll {
  overflow-y: auto;
  padding: 14px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 28px);
  overscroll-behavior: contain;
}
.sheet .s-kicker {
  font-size: 9.5px;
  color: var(--sand-faint);
  margin: 8px 0 10px;
}
.sheet h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.02;
  margin: 0;
  padding-right: 44px;
}
.sheet h2 .star { color: var(--wow); }
.sheet .s-price {
  font-size: 19px;
  color: var(--lagoon);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  margin: 12px 0 0;
}
.sheet .s-price .s-sub { color: var(--sand-faint); font-size: 13.5px; font-weight: 300; }
.sheet .s-desc { color: var(--sand-dim); margin: 14px 0 0; line-height: 1.6; font-weight: 300; }
.sheet .s-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--sand-dim);
  background: var(--ink-2);
}
.sheet .s-close svg { width: 14px; height: 14px; }

.photo-slot {
  margin: 18px 0 0;
  border: 1px dashed var(--hairline);
  border-radius: 14px;
  aspect-ratio: 21 / 9;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--sand-faint);
  font-size: 9px;
  gap: 8px;
}
.photo-slot svg { width: 22px; height: 22px; opacity: 0.6; }

.s-block { margin-top: 24px; }
.s-block > h3 {
  font-size: 9.5px;
  color: var(--sand-faint);
  margin: 0 0 12px;
}
.tagrow { display: flex; flex-wrap: wrap; gap: 7px; }
.bigtag {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 400;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  color: var(--sand-dim);
}
.bigtag.diet { border-color: var(--chip-line); color: var(--lagoon); }

/* ingredient chips */
.reefchips { display: flex; flex-wrap: wrap; gap: 8px; }
.reefchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 100px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  color: var(--lagoon);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.15s;
}
.reefchip svg { width: 13px; height: 13px; }
.reefchip:hover { border-color: var(--lagoon); }
.ing-card {
  margin-top: 10px;
  border: 1px solid var(--chip-line);
  border-radius: 14px;
  padding: 18px;
  background: var(--chip-bg);
  animation: ingIn 0.25s ease;
}
@keyframes ingIn { from { opacity: 0; transform: translateY(6px); } }
.ing-card h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 6px;
  color: var(--sand);
}
.ing-card p { margin: 0; color: var(--sand-dim); font-size: 14px; line-height: 1.55; font-weight: 300; }

/* nutrition */
.nutgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.nut {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 6px 10px;
  text-align: center;
}
.nut .n-val { font-size: 15.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nut .n-label {
  font-family: var(--caps);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: var(--sand-faint);
  margin-top: 4px;
}

/* search results */
.result-group-title {
  font-size: 9.5px;
  color: var(--sand-faint);
  margin: 28px 0 2px;
}

.provisional {
  margin-top: 12px;
  font-size: 12px;
  color: var(--sand-faint);
  font-weight: 300;
  font-style: italic;
}

/* ---------- page-load reveal (plays once per navigation) ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
}
.reveal > * {
  animation: riseIn 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.reveal > :nth-child(1) { animation-delay: 0.02s; }
.reveal > :nth-child(2) { animation-delay: 0.1s; }
.reveal > :nth-child(3) { animation-delay: 0.18s; }
.reveal > :nth-child(4) { animation-delay: 0.26s; }
.reveal.reveal-late > * { animation-delay: 0.3s; }
.reveal.reveal-late > :nth-child(2) { animation-delay: 0.38s; }
.reveal.reveal-late > :nth-child(3) { animation-delay: 0.46s; }

/* ---------- dish photo layout (when an item has a photo) ---------- */
.s-photo {
  aspect-ratio: 16 / 10;
  background: var(--ink-3) center / cover no-repeat;
  border-radius: 21px 21px 0 0;
}
.sheet .sheet-scroll.has-photo {
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.sheet .sheet-scroll.has-photo .s-content {
  padding: 18px var(--pad) 0;
}
.sheet:has(.has-photo) .grab { display: none; }

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

/* ---------- responsive: tablet & desktop ---------- */
@media (min-width: 640px) {
  .outlet-grid { grid-template-columns: 1fr 1fr; }
  .outlet-grid .outlet-card:first-child { grid-column: 1 / -1; }
}

@media (hover: hover) {
  .item { padding-left: 12px; padding-right: 12px; margin: 0 -12px; width: calc(100% + 24px); }
  .item:hover { background: var(--ink-2); }
  .item:hover .i-price { color: var(--accent); }
  .mtab:hover:not([aria-selected="true"]) { border-color: var(--sand-dim); color: var(--sand); }
  .fchip:hover { border-color: var(--sand-dim); }
}

@media (min-width: 960px) {
  :root { --maxw: 1100px; }

  .outlet-card { padding: 34px 32px 30px; }
  .outlet-card .o-name { font-size: 32px; }
  .outlet-card .o-tag { font-size: 15px; }

  /* two-column menu — like a printed menu spread */
  .items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(40px, 6vw, 72px);
    align-items: start;
  }
  .section { padding-top: 40px; }
  .section-head { margin-bottom: 8px; }

  .outlet-head { padding-top: 52px; }
  .home-hero { padding-top: 72px; }
  .hero-stamp { right: 6%; width: 190px; }

  /* stamp watermark behind the outlet header */
  .outlet-head { position: relative; }
  .head-stamp {
    position: absolute;
    right: 0;
    top: 10px;
    width: 130px;
    aspect-ratio: 1;
    background: var(--stamp) no-repeat center / contain;
    opacity: calc(var(--stamp-opacity) * 0.55);
    pointer-events: none;
  }

  /* the toolbar breathes on wide screens */
  .toolbar { margin-top: 22px; }
  .searchwrap { max-width: 520px; }
}

/* dish pop-up: centered modal dialog on tablets & desktop, fully visible */
@media (min-width: 768px) {
  .sheet {
    bottom: auto;
    top: 50%;
    width: min(920px, 92vw);
    max-height: min(86vh, 780px);
    border-radius: 22px;
    border-bottom: 1px solid var(--hairline);
    transform: translate(-50%, -46%) scale(0.97);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.22, 1), opacity 0.25s ease;
  }
  .sheet.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .sheet .grab { display: none; }
  .sheet .sheet-scroll {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 12px clamp(32px, 4vw, 56px);
    padding: 34px 40px calc(env(safe-area-inset-bottom, 0px) + 34px);
  }
  .sheet .sheet-scroll:not(.has-photo) .s-side { padding-top: 44px; }
  .sheet .s-side .s-block:first-child { margin-top: 0; }
  .sheet .sheet-scroll.solo { grid-template-columns: 1fr; }
  .sheet .sheet-scroll.solo .s-side { display: none; }
  .sheet:has(.sheet-scroll.solo) { width: min(560px, 92vw); }

  /* photo items: full-bleed image panel on the left */
  .sheet:has(.has-photo) { width: min(1020px, 94vw); }
  .sheet .sheet-scroll.has-photo {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    height: min(86vh, 780px);
  }
  .sheet .sheet-scroll.has-photo .s-photo {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 21px 0 0 21px;
  }
  .sheet .sheet-scroll.has-photo .s-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 34px 40px calc(env(safe-area-inset-bottom, 0px) + 34px);
  }
  .sheet .photo-slot { aspect-ratio: 16 / 10; }
  .sheet-backdrop { backdrop-filter: blur(6px); }
}
