/* ─────────────────────────────────────────────────────────────────────────
   Menu page — tabbed view, colour-blocked sections (Ashton's mock-up,
   email 2026-07-23): navy hero, marina value strip, alternating cream /
   soft-blue / warm-white / navy course blocks, terracotta prices,
   subtle Moroccan tile details.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────────────── */
.menu-hero {
  background: var(--c-navy);
  color: var(--fg-on-deep);
  --c-saffron: var(--c-cream);
  --c-on-saffron: var(--c-ink);
  overflow: hidden;
}
.menu-hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}
/* The top term has to clear the whole fixed stack, not just the ribbon. #239
   added + var(--hh-h) here and the collision came back at narrower desktops:
   the wordmark and "AZUL / MENU" are both hard left, so they land on each
   other rather than near each other, and the old 4rem floor governed
   everything below about 915px. Measured overlap was 16px at 881 and 900, 8px
   at 1024, 3px at 1100 (#255).

   The stack is 131px tall unscrolled, so the floor is 7rem + the ribbon =
   146px, which clears it by 15px at every width and lands the copy in family
   with /live-music (130-164px) and the .page-hero pages (162px).

   A literal floor rather than var(--stack-h) on purpose: --stack-h tracks the
   topbar shrinking 64->56px on scroll, and padding that tracked it would slide
   the h1 up 8px under the reader as they scrolled. Position reads the live
   value, layout takes the static one.

   The narrow override below is untouched: there the photo runs under the
   topbar and the copy starts well below it. */
.menu-hero .text { padding-block: calc(clamp(7rem, 7vw, 8rem) + var(--hh-h)) clamp(4rem, 7vw, 6.5rem); }
.menu-hero .breadcrumbs {
  display: flex;
  gap: var(--s-2);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--c-bone) 55%, transparent);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.menu-hero .breadcrumbs a { color: inherit; text-decoration: none; }
.menu-hero .breadcrumbs a:hover { color: var(--c-clay); }
.menu-hero .breadcrumbs .sep { opacity: 0.5; }
.menu-hero h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 70, 'WONK' 1;
}
.menu-hero h1 em { font-style: italic; color: var(--c-clay); }
.menu-hero .rule {
  width: 3.5rem;
  height: 1px;
  background: var(--c-clay);
  margin-block: clamp(1.25rem, 2.5vw, 2rem);
}
.menu-hero .lead {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 44ch;
  color: color-mix(in oklch, var(--c-cream) 86%, transparent);
}
.menu-hero .photo { position: relative; min-height: 100%; }
.menu-hero .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-hero .photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--c-navy), transparent 25%);
}
/* Bleed the hero photo to the viewport's right edge (mock-up): release the
   wrap's right padding, and give its left the inset the centred wrap would
   have had, so the text column keeps its position.

   Gated at the stack point, not at --col-max. The wrap carries a right gutter
   at *every* width — 1376px is where it starts being centred, not where the
   gutter appears — so the old `min-width: 1377px` left 881-1376px showing a
   navy strip one gutter wide down the right edge (#265). The max() collapses
   to the gutter below 1376px and to the centring calc above it, so there is no
   dead zone. Identical to --band-edge in home.css; --edge below wraps a
   different value in the same max() for the same reason.

   It cannot go unconditional. Below 881px the photo cancels the wrap's gutters
   with negative margins, and against a 0 right padding that runs the photo
   20-35px past the viewport — clipped silently by .menu-hero's overflow:hidden,
   so it reads as correct while the object-fit crop is shifted. */
@media (min-width: 881px) {
  .menu-hero .wrap {
    max-width: none;
    padding-inline: max(var(--gutter), calc((100vw - var(--col-max)) / 2 + var(--gutter))) 0;
  }
}
@media (max-width: 880px) {
  .menu-hero .grid { grid-template-columns: 1fr; }
  .menu-hero .photo { min-height: 56vw; order: -1; margin-inline: calc(var(--gutter) * -1); }
  .menu-hero .photo::before { background: linear-gradient(0deg, var(--c-navy), transparent 40%); }
  .menu-hero .text { padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
}

/* ── Value strip — marina blue with faint tile texture ───────────────── */
.menu-values {
  position: relative;
  /* Marina blue until 2026-08-08. Ashton: "remove the marina blue mosicac tile
     to lighter Azul blue colour so it feels more consistent with the rest of
     the website." Same token as the colour-blocked sections and the endnote,
     so the page now runs one blue throughout. */
  background: var(--c-blue-soft);
  color: var(--c-ink);
  overflow: hidden;
}
.menu-values::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Masked, not drawn — the same fix the endnote band needed. The zellige
     SVG's own strokes are near-white, so soft-light over a light blue makes
     them lighter than the band and the tile disappears. Masking a navy fill
     puts the pattern on in the brand colour instead. */
  background-color: var(--c-azul);
  -webkit-mask: url('/assets/img/pattern-zellige.svg') repeat;
          mask: url('/assets/img/pattern-zellige.svg') repeat;
  -webkit-mask-size: 150px;
          mask-size: 150px;
  opacity: 0.14;
}
.menu-values .wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.menu-values .val {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
}
.menu-values .val + .val { border-left: 1px solid color-mix(in oklch, var(--c-white-warm) 30%, transparent); }
.menu-values svg { width: 2.4rem; height: 2.4rem; }
@media (max-width: 640px) {
  .menu-values svg { width: 1.9rem; height: 1.9rem; }
  .menu-values .val { font-size: 0.62rem; }
}

/* ── Tabs (sticky) ───────────────────────────────────────────────────── */
.menu-tabs {
  background: var(--bg-lift);
  border-block: 1px solid var(--line);
  position: sticky;
  /* Stops below the fixed stack rather than at the viewport top. At `top: 0`
     the whole 83px bar sat under the ribbon and topbar the entire time it was
     stuck — not partly obscured, invisible (#255), on the control Ashton has
     twice asked to make more obvious. --stack-h is measured in main.js; see
     the token in components.css. */
  top: var(--stack-h);
  z-index: 10;
}
.menu-tabs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--c-bone) 92%, transparent);
  backdrop-filter: blur(14px);
  z-index: -1;
}
/* The track scrolls rather than clips. It has never needed to — the measured
   widths in the .menu-switch comment below leave room at every width the site
   is designed for — but until 2026-08-14 this was `overflow: visible` with the
   switch centred, and a centred overflow is clipped on BOTH sides, so a tab
   wide enough to spill would be half-invisible and completely unreachable. The
   case that actually reaches it is a reader who has raised their default font
   size: .menu-tab is sized in rem, so a 20px root takes the three-tab track
   from 257.2px to 317px, and .wrap's own gutter from 20px a side to 25px —
   367px of viewport needed against the 297.2px a 16px root needs. Every phone
   overflows well before that; a 320px one is short by 47px.
   `safe center` is the pair to that — plain `center` in a scroll container puts
   the overflow off the left edge where no scroll gesture can reach it, and
   `safe` falls back to flex-start exactly when that would happen. It is listed
   second so browsers that don't parse it keep the plain `center` above. */
.menu-tabs .wrap {
  display: flex;
  justify-content: center;
  justify-content: safe center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-block: var(--s-4);
}

/* "Could we also make the Food and Drinks menu tabs/buttons much more obvious
   so it's immediately clear that customers can switch between the two?"
   — Ashton, 2026-08-13, having asked for the same thing on the 8th. That first
   pass gave every tab its own border, which made the unselected ones legible as
   buttons but still left them as a left-aligned row that read as navigation.

   The shape is one bordered track holding the tabs, centred, the selected one
   filled. Two things carry the "you can switch" message that separate pills
   could not — the tabs share an outline, so they are visibly one control, and
   the unselected ones sit inside it rather than beside it.

   This comment used to open "Dropping from three tabs to two is what makes a
   segmented control possible". That was wrong, and Kids (#236, 2026-08-14) is
   the third tab that proves it. Measured in Chrome with Manrope loaded, at a
   16px root:

     tab widths   FOOD 76.7  DRINKS 91.8  KIDS 70.7   (padding-inline 1.3em)
                  FOOD 95.1  DRINKS 110.1 KIDS 89.1   (padding-inline 2em)
     track width  257.2px tight · 312.3px full
     needs        297.2px of viewport tight · 352.3px full (.wrap adds 20px a side)

   Measured at 320 / 360 / 390 / 430 CSS px the track is 257.2px at the first
   three and 312.3px at the last (430 is past the 420px query), against 280 /
   320 / 350 / 390px of content width. Nothing overflows; the tightest of the
   four is 320px, with 22.8px to spare. The other tight spot is 421px, the first
   width where the query below stops applying and the padding jumps back to 2em:
   312.3px against 381px, so 68.7px to spare.

   Add a FOURTH tab the width of Kids and the tight track goes to about 332px,
   which does not fit a 320px phone. Three is the ceiling on this padding, not
   two — and the .wrap above scrolls now, so passing it degrades rather than
   hides a tab.
   (Measure in a real viewport, not the dev iframe: a desktop iframe reserves a
   15px classic scrollbar that a phone does not, which ate 15px of every number
   above until it was taken back out.)

   THE FOURTH TAB ARRIVED on 2026-08-29 (Tapas), and the paragraph above was
   right that the padding had to move. Re-measured over CDP with device metrics
   rather than a window size, so no scrollbar gutter is reserved at all:

     4 tabs @ 1.3em   FOOD 76.7  TAPAS 84.0  DRINKS 91.8  KIDS 70.7  track 345.1
     4 tabs @ 2em     FOOD 95.1  TAPAS 102.3 DRINKS 110.1 KIDS 89.1  track 418.6

   Against .wrap's usable width (viewport less --gutter, which is 4vw a side)
   the old two-step padding overflowed at FOUR of the seven widths measured:

     320  294.4 avail · 345.1 track   overflows
     360  331.2 avail · 345.1 track   overflows
     375  345.0 avail · 345.1 track   overflows by 0.1px
     390  358.8 avail · 345.1 track   fits
     412  379.0 avail · 345.1 track   fits
     430  395.6 avail · 418.6 track   overflows — the 421px query had already
                                      handed the padding back to 2em
     480  441.6 avail · 418.6 track   fits

   430 is the one that mattered: it is an iPhone Pro Max, not an edge case, and
   it broke because the small-width query stopped one pixel above the old
   three-tab comfort zone rather than at a width four tabs actually need.

   So the query now runs to 560px and the padding steps to 1.05em, which puts
   the track at 318.9px:

     360  331.2 avail · 318.9 track   12.3px spare  ← the tightest that fits
     375  345.0 avail · 318.9 track   26.1px spare
     430  395.6 avail · 318.9 track   76.7px spare
     561  516.1 avail · 418.6 track   97.5px spare  (2em resumes here)

   320px still overflows, by 24.5px, and that is accepted rather than fixed:
   four legible tabs do not fit an iPhone SE 1st-gen, the .wrap scrolls with
   `safe center` so the overflow is reachable, and Tapas is deliberately the
   second tab so what scrolls off is Kids. Re-measure, don't re-trust, if a
   fifth is ever added — and re-measure the 1.05em figure itself, since it is
   two thirds of a padding away from being uncomfortable. */
.menu-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid color-mix(in oklch, var(--c-ink) 34%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in oklch, var(--c-white-warm) 70%, transparent);
}
.menu-tab {
  position: relative;
  padding: 0.72em 2em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: transparent;
  border: 0;
  white-space: nowrap;
  border-radius: var(--r-pill);
  transition: color var(--d-fast) ease, background var(--d-fast) ease;
}
.menu-tab:hover {
  background: color-mix(in oklch, var(--c-ink) 9%, transparent);
}
.menu-tab[aria-selected="true"] {
  color: var(--c-bone);
  background: var(--c-ink);
}
@media (max-width: 560px) {
  /* Four tabs, 318.9px of track. Fits every phone width measured except 320,
     which scrolls. The ceiling is 560px rather than 420 because 421-560 was
     already running the full 2em against a track that had grown by a tab —
     see the arithmetic above. */
  .menu-tab { padding-inline: 1.05em; }
}
.menu-tab:hover { color: var(--fg); }
.menu-tab[aria-selected="true"]:hover { color: var(--c-bone); }
.menu-tab .badge {
  display: inline-block;
  margin-left: 0.5ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78em;
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 1;
  opacity: 0.6;
}

/* ── Panels ──────────────────────────────────────────────────────────── */
.menu-panel {
  padding-block: clamp(3rem, 5vw, 4.5rem) 0;
}
.menu-panel[hidden] { display: none; }

.menu-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.menu-panel-header .lead { max-width: 50ch; margin-top: var(--s-3); }
.menu-panel-header h2 { font-size: var(--t-h2); font-family: var(--font-display); font-weight: 350; line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: 'opsz' 96, 'SOFT' 60, 'WONK' 1; }
.menu-panel-header h2 em { font-style: italic; color: var(--c-azul); }
/* On a phone the `1fr auto` split leaves the intro copy about half the
   container wide, so it wraps to five or six short lines beside an empty
   column. Stack instead: copy full width, download button underneath. */
@media (max-width: 720px) {
  .menu-panel-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    gap: var(--s-5);
  }
  .menu-panel-header .lead { max-width: none; }
}

/* ── Colour-blocked course sections ──────────────────────────────────── */
/* Full-bleed background from within .wrap; content stays on the column. */
/* Heading centred ABOVE the dish columns, not beside them (Thomas,
   2026-08-13). It was a 4fr sidebar holding the h3, the tile rule and the
   tagline, with the dishes in an 8fr track alongside — which left a tall empty
   column under every short section heading, and pushed the dishes off-centre.

   One column now, and only the header elements centre themselves. Deliberately
   NOT `text-align: center` on the section: that would inherit into the dish
   names, prices and descriptions, which stay left-aligned. */
.menu-section {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg);
}
.menu-section--blue  { background: var(--c-blue-soft); }
.menu-section--shell { background: var(--c-shell); }
/* The 4px orange/navy/blue mosaic border that ran along the top of both dark
   blocks came off on Ashton's instruction, 2026-08-14: "can we remove the
   multicoloured long bar above the Tajines". Removed outright rather than
   suppressed on one section — Cocktails carried the identical strip, and this
   is the third time the same decoration has been asked off (the endnote band
   below, 2026-08-08; the footer .zellige strip, 2026-08-05). Don't add it back. */
.menu-section--night {
  background: var(--c-navy);
  color: var(--c-cream);
}

.menu-section h3 {
  grid-column: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 420;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--c-azul);
}
.menu-section--night h3 { color: var(--c-cream); }

/* tile rule — small geometric divider under the section title */
.menu-section .h3-line {
  grid-column: 1;
  width: 3.25rem;
  height: 3px;
  margin-top: var(--s-3);
  margin-inline: auto;
  background: repeating-linear-gradient(90deg,
    var(--c-clay) 0 5px, transparent 5px 9px,
    var(--c-marina) 9px 14px, transparent 14px 18px);
}
.menu-section--night .h3-line {
  background: repeating-linear-gradient(90deg,
    var(--c-terra) 0 5px, transparent 5px 9px);
}

.menu-section .tagline {
  grid-column: 1;
  margin-top: var(--s-4);
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 350;
  line-height: 1.5;
  font-variation-settings: 'opsz' 36, 'SOFT' 60, 'WONK' 1;
  color: var(--c-navy-2);   /* mock-up: navy italic — keeps terracotta exclusive to prices */
  max-width: 22ch;
}
.menu-section--night .tagline { color: var(--c-terra); }

.menu-section .intro-cta {
  grid-column: 1;
  justify-self: center;
  align-self: start;
  margin-top: var(--s-5);
}
/* Full-strength ink outline rather than the ghost's 40% rim, which reads weak
   against the soft-blue colour block. This was an inline
   `style="color:…; border-color:…"` on the anchor, and inline `color` beats
   .btn's `color: var(--btn-fg)` — so the hover state could not flip the label
   and it stayed navy on the navy fill. Expressed through --btn-line, and
   excluded on hover: menu.css loads after components.css and the two selectors
   tie on specificity, so without :not() this would win the hover state back. */
.menu-section .intro-cta:not(:hover) { --btn-line: var(--c-ink); }

/* Full-bleed photo columns — mock-up: photos run square-cornered to the
   viewport edge, full block height, alternating left/right.
   --edge equals the distance from viewport edge to the wrap column (the same
   value the (50vw - 50%) full-bleed trick produces). */
.menu-section--photo {
  position: relative;
  --edge: max((100vw - var(--col-max)) / 2, var(--gutter));
  --ph-w: clamp(15rem, 24vw, 26rem);
  --ph-gap: clamp(2.5rem, 4vw, 4.5rem);
  padding-left: calc(var(--edge) + var(--ph-w) + var(--ph-gap));
}
.menu-section--photo-right {
  padding-left: calc(50vw - 50%);
  padding-right: calc(var(--edge) + var(--ph-w) + var(--ph-gap));
}
.menu-section--photo .ms-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--edge) + var(--ph-w));
  overflow: hidden;
}
.menu-section--photo-right .ms-photo { left: auto; right: 0; }
/* The photo column is as tall as its menu section and as wide as the viewport
   edge allows, so its aspect ratio swings from tall-and-narrow at 1440 to
   distinctly landscape on a 3000px display. Every source is portrait 800x1200,
   so `cover` crops hard on the vertical axis at the wide end — and in almost
   every one of these shots the plate sits *below* the middle of the frame,
   which is exactly what a centred crop throws away.

   --focal is the vertical point to hold, set per figure. Default 50% so a photo
   added without one behaves as before rather than jumping. */
.menu-section--photo .ms-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--focal, 50%);
}

/* Two photos in the one column, split down the middle. Ashton sent the scallops
   and the Bastille chicken fingers for Entrées and asked for both rather than
   a choice (2026-08-13); the column is as tall as its section and Entrées is
   the longest list on the page, so there is room to halve it.

   Only works with roughly square sources. The column is already narrow, and
   halving its height doubles how hard `cover` crops — a portrait source would
   come out as two letterbox slices. Both files here are 900x900 as shot. */
.menu-section--photo .ms-photo--stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.menu-section--photo .ms-photo--stack img { height: 100%; min-height: 0; }
@media (max-width: 900px) {
  /* The photo column becomes a band above the dishes at this width (see the
     .menu-section--photo override below), where a 1fr 1fr split would give two
     very shallow strips. Side by side instead — each is then close to square,
     which is the shape these two files already are. */
  .menu-section--photo .ms-photo--stack {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }
}

.menu-section .menu-grid {
  grid-column: 1;
  /* Clears the centred header above it. Was grid-row: 1 / -1 in the old
     two-track layout, where it sat beside the header rather than under it. */
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

@media (max-width: 880px) {
  /* The section is a single centred column at every width now, so the old
     "collapse the sidebar" overrides here are gone — they were undoing a
     two-track desktop layout that no longer exists. Only the gap tightens. */
  .menu-section .menu-grid { margin-top: var(--s-6); }
  /* Photo drops into the flow between the section's own header and its dish
     list: heading, tile rule, tagline, photo, dishes. Every section then opens
     the same way whether or not it carries a photo (Thomas, 2026-08-11).

     It used to carry a negative top margin of one section padding, which pulled
     it up over whatever preceded it in the flow — the h3-line and tagline on
     Entrées and Desserts (which is why those two had no tile rule under the
     heading), and on Mains, which has no tagline to absorb it, over the word
     "Mains" itself. That is the "Mains not displaying on mobile" report: the
     heading was rendered, then covered by the photograph.

     The horizontal bleed stays — the photo still runs edge to edge. */
  .menu-section--photo, .menu-section--photo-right { padding-inline: calc(50vw - 50%); }
  .menu-section--photo .ms-photo {
    position: static;
    width: auto;
    height: 52vw;
    max-height: 22rem;
    /* Bottom margin is 0: .menu-grid above already sets margin-top: var(--s-6)
       and the two would compound into an uneven gap. */
    margin: var(--s-6) calc(-1 * var(--edge)) 0;
  }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 0;
  align-content: start;
}
@media (max-width: 720px) { .menu-grid { grid-template-columns: 1fr; } }

/* Prices — terracotta accent for hierarchy (Ashton) */
.menu-section .dish__price { color: var(--c-clay-text); }
.menu-section--night .dish__price { color: var(--c-terra); }

/* Night-block dish text */
.menu-section--night .dish__name { color: var(--c-cream); }
.menu-section--night .dish__desc { color: color-mix(in oklch, var(--c-cream) 76%, transparent); }
.menu-section--night .dish { border-color: color-mix(in oklch, var(--c-cream) 18%, transparent); }
.menu-section--night .tags { color: color-mix(in oklch, var(--c-cream) 65%, transparent); }

/* ── Pre-order specials ───────────────────────────────────────────────────
   "As these both need to be pre-booked and prepaid, could we present them as
   featured specials rather than having them mixed amongst the regular dishes?"
   — Ashton, 2026-08-13, asked twice (also on the 8th). The first answer was to
   give them their own section, and that evidently was not it: an ordinary
   section at the bottom of the page is separate but not featured.

   So these are cards, not .dish rows. Bigger price, a terracotta rule, and the
   pre-order condition on its own line under each — the condition is the whole
   reason they cannot sit in the grid, so it is stated per card rather than only
   in the section tagline. Two of them, side by side, one column on a phone. */
.ms-specials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: var(--s-6);
}
@media (max-width: 760px) { .ms-specials { grid-template-columns: 1fr; } }
.ms-special {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--c-bone);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.ms-special__name {
  font-family: var(--font-display);
  /* Named rather than inherited, and that is load-bearing since the section
     went --night (#233): .menu-section--night sets `color: var(--c-cream)`,
     --c-bone IS var(--c-cream), and this was the only .ms-special__* part with
     no colour of its own — so the two dish names rendered #F7F2EA on #F7F2EA at
     1.00:1, invisible rather than merely low-contrast. --c-ink is exactly what
     it inherited on the old --shell background, so this changes nothing about
     how the cards looked before and nothing about how they look on a light
     section. Measured after: 16.32:1. */
  color: var(--c-ink);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 360;
  line-height: 1.1;
  font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 1;
}
.ms-special__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 320;
  line-height: 1;
  margin-top: var(--s-3);
  color: var(--c-clay-text);
}
.ms-special__desc {
  margin-top: var(--s-4);
  color: var(--fg-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}
.ms-special__foot {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-clay);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
/* margin-top:auto here would pin the footer to the card bottom and line the two
   rules up at every width. Rejected: the rules land together anyway wherever the
   two descriptions set to the same number of lines, which since the paella took
   Ashton's longer wording (#237) is most of the two-column range. Where they
   still differ — 761–831px, where Couscous Royale takes a fourth line — pinning
   would drag the paella's rule 24.5px away from its own copy to chase it. The
   rule reads as belonging to the description above it, so let it flow. */

/* ── Legend ──────────────────────────────────────────────────────────── */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  margin-block: var(--s-7);
}
.legend dt {
  display: inline-block;
  font-weight: 600;
  color: var(--c-moss);
  margin-right: 0.4ch;
}
.legend dd { display: inline; color: var(--fg-soft); margin-right: var(--s-3); }


/* .menu-takeaway-cta now defined in components.css (shared with events pages) */
.menu-takeaway-cta { margin-block: var(--s-7); }

/* ── Allergen disclaimer ─────────────────────────────────────────────── */
/* Full container width, not --col-text (44rem). Capped, this sat in the left
   half of the page under a legend box that runs the whole width, and the rule
   above it stopped mid-page as if the section had been cut off (Thomas,
   2026-08-13).

   Widening a single column of text would only trade one problem for a worse
   one — 44rem is the prose-comfort cap and a 1376px line is around 130
   characters. So the three paragraphs go into three tracks instead: the block
   uses the full width and each line stays about a third of it. */
.menu-allergens {
  margin-top: var(--s-8);
  padding: var(--s-7) var(--s-5);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .menu-allergens { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
}
.menu-allergens h2 {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--t-h5);
  font-weight: 320;
  font-style: italic;
  font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 0;
  color: var(--fg);
  margin: 0 0 var(--s-5);
}
.menu-allergens p {
  /* No bottom margin — the paragraphs are side by side now, and a trailing
     margin on each only pushed the endnote band away from an uneven row. */
  font-size: var(--t-small);
  line-height: var(--leading-loose);
  color: var(--fg-soft);
  margin: 0;
}
.menu-allergens p:last-child { color: var(--fg-mute); }

/* ── Endnote band ────────────────────────────────────────────────────── */
.menu-endnote {
  position: relative;
  /* The soft blue the menu's own colour-blocked sections use, not a separate
     marina tint. Ashton, 2026-08-07: this band read as a different, greyer blue
     to the ones directly above it. One blue on the page now. */
  background: var(--c-blue-soft);
  /* The orange/blue/navy strip that ran along the top of this band came off on
     Ashton's instruction, 2026-08-08 — she asked about the one "towards the
     bottom of the page", which is this one. The same gradient survived on
     .menu-section--night above until she asked for that one off too on
     2026-08-14, so no full-width bar is left. The 3.25rem .h3-line dividers
     under each heading are the same repeating-gradient motif at a much smaller
     scale and are still there — check them before answering "it's all gone". */
  overflow: hidden;
}
.menu-endnote::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Masked rather than drawn: the SVG's own strokes are near-white, and
     soft-light over the soft blue kept them lighter than the band. Masking a
     navy fill puts the pattern behind the type in the brand colour instead
     (Thomas, 2026-08-07). */
  background-color: var(--c-azul);
  -webkit-mask: url('/assets/img/pattern-zellige.svg') repeat;
          mask: url('/assets/img/pattern-zellige.svg') repeat;
  -webkit-mask-size: 150px;
          mask-size: 150px;
  opacity: 0.14;
}
.menu-endnote .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-azul);
  text-align: center;
}
.menu-endnote .orn { width: 0.85rem; height: 0.85rem; color: var(--c-clay-text); flex: none; }

/* ── Downloadable menus ──────────────────────────────────────────────────
   The set + event menus as PDFs. The à la carte lunch/dinner/drinks lists
   live on the page itself, so the band stays quiet — warm white, no competing
   with the colour-blocked sections above. The cards themselves are soft blue
   as of 2026-08-14; see the fill note on .menu-downloads__grid a. */
.menu-downloads {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: var(--c-shell, var(--bg));
  border-top: 1px solid var(--line-soft);
}
.menu-downloads h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 320;
  line-height: 1.05;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
  margin: var(--s-3) 0 0;
}
.menu-downloads h2 em { font-style: italic; color: var(--c-azul); }
.menu-downloads__lead {
  margin: var(--s-4) 0 0;
  max-width: 46ch;
  color: var(--fg-soft);
}
/* Flex, not grid, since the drinks packages made this five cards on
   2026-08-10. `repeat(auto-fit, minmax(0, 16rem))` fits four across the
   86rem container and dropped the fifth onto its own row hard against the
   left edge — auto-fit centres the tracks, not the items inside them, so a
   short last row orphans. Flex-wrap centres every row including the last.

   The 13rem basis with a 16rem cap is what puts all five on one row on a
   desktop: five at 16rem plus gaps is 1376px against roughly 1296px of
   inner width, so they have to be allowed to shrink a little. They stop at
   16rem so fewer cards never stretch into slabs. */
.menu-downloads__grid {
  list-style: none;
  margin: var(--s-7) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-5);
}
.menu-downloads__grid > li {
  flex: 1 1 13rem;
  max-width: 16rem;
}
/* "Could we make the boxes in the 'Planning something bigger?' section
   baby-blue with the navy buttons, it looks a bit more vibrant then" — Ashton,
   2026-08-14. The cards were --c-bone (cream) on a warm-white band, which read
   as barely-there. --c-blue-soft is the palette's baby blue and is already the
   colour-block tier on this page, so the cards now echo the menu bands above
   them instead of disappearing into the section.

   The band itself stays --c-shell: she asked for the boxes, and the contrast
   between the two is what makes them read as cards at all. Everything inside
   still clears AA on the new fill — ink 14.08:1, --c-clay-text 4.56:1, and the
   navy pill is unchanged at 12.1:1 cream-on-navy. --c-clay-text is the tight
   one: it is the reason .md-meta is that token and not --c-terra-deep, which
   is 3.15:1 here and fails. */
.menu-downloads__grid a {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  height: 100%;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--c-blue-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--d-base) var(--ease-out-expo),
              transform var(--d-base) var(--ease-out-expo);
}
.menu-downloads__grid a:hover {
  border-color: var(--c-azul);
  transform: translateY(-2px);
}
.menu-downloads .md-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 48, 'SOFT' 30;
}
.menu-downloads .md-meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--c-clay-text);
}
/* "instead of highlighting 'PDF', please use 'View menu →'" — Ashton,
   2026-08-08. The cards still open a PDF in a new tab; only the label changed.
   margin-top:auto pins it to the bottom so the four cards line their links up
   even when a name wraps to two lines.

   "Could we make the View Menu buttons blue so they stand out more clearly as
   clickable buttons/CTAs?" — her follow-up on 2026-08-13. It was blue already
   (--c-azul) but as bare uppercase text, so "blue" on its own was not the ask:
   a filled pill is. --c-azul is the client's Secondary Navy and is the token
   this site means by "the brand blue"; marina blue would read bluer but only
   carries 4.0:1 against cream text, which fails AA at this size, and these
   labels are 0.78rem. Cream on --c-azul is 12.1:1. */
.menu-downloads .md-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  margin-top: auto;
  align-self: flex-start;
  padding: 0.62em 1.15em;
  border-radius: var(--r-pill);
  background: var(--c-azul);
  color: var(--c-cream);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--d-fast) ease;
}
/* The pill is inside the card's own <a>, so the hover state belongs to the card
   rather than to the pill — the whole tile is the hit target. */
.menu-downloads__grid a:hover .md-cta { background: var(--c-azul-deep); }
.menu-downloads__grid a:hover .md-cta .arr { transform: translateX(3px); }
.menu-downloads .md-cta .arr { transition: transform var(--d-base) var(--ease-out-expo); }

/* Gift vouchers (#349, rebuilt 2026-09-10 to Ashton's mock-up). A split band:
   photo left, soft-blue panel right, everything in the panel centred. The
   "silver foil" she asked for has no web equivalent and no entry in the client
   colour system, so it is a gradient of three warm greys, used for the mark,
   the title and the button fill. --silver-dark is the resting colour and
   clears 3:1 on the soft blue (3.95:1 measured), which is what large display
   text needs; the light highlight band is kept narrow because on its own it
   would not. Same situation as the "gold" hairline on the PDF menus (#299). */
.gift {
  --silver-dark: #6E6A62;
  --silver: #8D897F;
  --silver-light: #A9A49A;
  --silver-grad: linear-gradient(112deg, var(--silver-dark) 0%, var(--silver) 34%, var(--silver-light) 50%, var(--silver) 64%, var(--silver-dark) 100%);
  display: grid;
  /* minmax(0, 1fr), not 1fr: a bare 1fr has an auto minimum, and the 830px
     intrinsic width of the photo pushed its column to 823px against the
     panel's 713 at 1440 (measured 2026-09-10). */
  /* The photo (830x722, the crop out of her mock-up) is never cropped: the
     band is as tall as the photo at half the viewport, capped at --gift-h,
     and past the cap the photo COLUMN narrows to the photo's ratio and the
     panel takes the rest. Uncapped, a 2000px screen got an 870px band
     (Thomas, 2026-09-10: "50% shorter"); cropping it back down instead is
     the zoomed-in letterbox he had already rejected twice that day. Two
     things not to do: size the cell by the panel (letterbox), or put
     aspect-ratio on the cell (with the row set by the panel it resolved the
     WIDTH from the row height and the photo column overflowed to 824px). */
  --gift-h: min(calc(50vw * 722 / 830), 32rem);
  /* Photo and panel sit together in the middle of the full-bleed blue, the
     panel capped so a wide screen gets blue either side rather than a photo
     pinned to the left edge with the copy adrift (Thomas, 2026-09-10). */
  grid-template-columns: calc(var(--gift-h) * 830 / 722) minmax(0, 46rem);
  justify-content: center;
  align-items: stretch;
  min-height: var(--gift-h);
  position: relative;
  overflow: hidden;
  background: var(--c-blue-soft);
  color: var(--c-azul);
}
.gift__photo { min-height: 0; }
.gift__photo img {
  position: absolute;
  inset: 0;
  object-position: 50% 50%;
}
.gift__panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 5vw, 4.5rem);
}
/* Big fronds out of the BAND's top-right corner — the screen edge, not the
   panel's (Thomas, 2026-09-10: "keep the leaves stuck to the right") — as in
   her mock-up: pale, near white on the soft blue, behind the copy. illo-fronds.svg was drawn
   for this band; the site's illo-palms.svg is two whole trees and read as a
   stamp in the corner at any size. */
.gift__palms {
  position: absolute;
  right: -8%;
  top: -9%;
  width: clamp(33rem, 60vw, 63rem);
  aspect-ratio: 1;
  background-color: #fff;
  opacity: 0.42;
  -webkit-mask: url('/assets/img/illo-fronds.svg?v=20260910-1') no-repeat top right / contain;
          mask: url('/assets/img/illo-fronds.svg?v=20260910-1') no-repeat top right / contain;
  pointer-events: none;
  z-index: 0;
}
/* The same drawing mirrored into the band's top-left, behind the photo. */
.gift__palms--left {
  right: auto;
  left: -8%;
  transform: scaleX(-1);
}
.gift__photo { z-index: 1; }
.gift__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 36rem;
}
.gift__mark {
  width: 2.75rem;
  aspect-ratio: 194 / 324;
  background: var(--silver-grad);
  -webkit-mask: url('/assets/img/logo-mark.svg') no-repeat center / contain;
          mask: url('/assets/img/logo-mark.svg') no-repeat center / contain;
}
.gift__rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--silver);
  margin-block: clamp(0.9rem, 1.6vw, 1.3rem);
}
.gift__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  /* Sized so "GIFT VOUCHERS" holds one line in a half-width panel from the
     881px stack point up, as it does in her mock-up. */
  font-size: clamp(1.9rem, 0.4rem + 2.6vw, 3rem);
  line-height: 1.12;
  margin: 0;
  color: var(--silver-dark);
  background: var(--silver-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gift__title span { display: block; }
.gift__lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.9rem + 0.9vw, 1.5rem);
  font-weight: 350;
  line-height: 1.3;
  margin: 0 0 var(--s-3);
}
.gift__copy {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 var(--s-2);
  max-width: 30rem;
}
.gift__cta { margin: var(--s-4) 0 0; }
.btn--silver {
  --btn-bg: var(--silver-grad);
  --btn-fg: var(--c-navy);
  --btn-line: transparent;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 1em 2.2em;
}

@media (max-width: 880px) {
  /* Five stacked cards ran to most of a phone screen with nothing between them
     but padding, so they swipe sideways instead (Thomas, 2026-08-11). Same
     scroll-snap treatment as .ow-grid on the homepage and the event-page
     package tiles: a native horizontal scroller, no JS.

     scroll-padding-inline matters as much as padding-inline — a snap point is
     measured from the scrollport edge, so without it the first card snaps flush
     to the screen and the inset scrolls out of sight. */
  .menu-downloads__grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--s-4);
    padding: var(--s-2) var(--gutter) var(--s-4);
    margin-inline: calc(-1 * var(--gutter));
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .menu-downloads__grid::-webkit-scrollbar { display: none; }
  /* 74% shows the next card's edge, which is what says "swipe". The 16rem cap
     is the desktop card width, and it matters at the top of this range: 74% of
     an 880px tablet is a 620px slab with barely a second card in view. */
  .menu-downloads__grid > li {
    flex: 0 0 74%;
    scroll-snap-align: start;
  }
}

@media (max-width: 880px) {
  .gift { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* One column, so the cell's own ratio is safe here: the full photo, then
     the panel. */
  .gift__photo { aspect-ratio: 830 / 722; }
  .gift__lead { font-size: 1.15rem; }
  /* Stacked, the photo covers the band's top, so the fronds drop to the
     panel's top corners instead of vanishing behind it. */
  .gift__palms { width: 22rem; top: calc(100vw * 722 / 830 - 4rem); }
}

/* ── Piece counts as a tag ────────────────────────────────────────────────
   "For any item that's a set number of pieces, could you add a small 'Xpcs'
   tag next to the GF/V tag rather than in the description" — Ashton,
   2026-09-19. It rides inside .tags so the schema and PDF parsers see one
   tags string ("GF · 4pcs"; menu-schema drops the token because it is not a
   diet); only the case differs — she wrote "pcs", the tags are uppercase. */
.dish__name .tags .pcs { text-transform: none; }
