/* THE IN-SHOP MENU PAGE — /menu and /en/menu.
   =========================================================================
   Direction A from the 2026-12-03 sheet, which is the one the client picked:
   a hot pink bar, a search field, the four categories as coloured pills, then
   the food on cream. Nothing else above the food.

   Every rule is scoped to `body.page-menu`, so this file is linked by all four
   documents and changes nothing on the home page.

   NOT ONE COLOUR IS TYPED IN THIS FILE. Every value is a token out of
   tokens.css, which is generated from brand/brand.json. That is the same rule
   the rest of the site is built under, and the reason a palette revision is one
   command rather than a search-and-replace. */

/* ---------------------------------------------------------------- the page */
.page-menu { background: var(--c-reading); }
.page-menu main { background: var(--c-reading); }

/* ----------------------------------------------------------------- the bar */
/* Hot pink, because this page is opened by a printed card that is also hot
   pink: the thing in your hand and the thing on your screen should be the same
   object. The home page's header is deep purple, and that is right there —
   it is the top of a long scroll, not the answer to a scan. */
.page-menu .board__bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-3) var(--s-4);
  background: var(--c-brand);
  box-shadow: 0 2px 12px rgb(var(--c-deep-purple-rgb) / .25);
}

/* THE MARK SITS ON A CREAM PLAQUE. brand.json logo.minimumSize forbids the
   complete logo below 250px wide except "on a clean cream or white area", and
   it is 62px here. The printed pieces do not need the plaque because the mark
   is 30-40mm there, which is well over 250px at print resolution — same rule,
   different answer, because the rule is about size and not about taste. */
.page-menu .board__mark {
  display: block; flex: none;
  background: var(--c-reading);
  border-radius: var(--r-tile);
  padding: var(--s-2) var(--s-3);
  line-height: 0;
}
.page-menu .board__mark img { width: 62px; height: auto; display: block; }

/* The language switch reads as one control with two states, which is what it
   is: the current language is a solid chip, the other is the link. */
.page-menu .board__lang {
  display: flex; flex: none; gap: 2px; padding: 3px;
  background: rgb(255 255 255 / .22);
  border-radius: var(--r-pill);
}
.page-menu .board__lang-on,
.page-menu .board__lang-off {
  font-family: var(--font-display); font-weight: var(--w-semi);
  font-size: var(--fs-tag); letter-spacing: var(--tracking-caps); line-height: 1;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  text-decoration: none; color: #fff;
}
.page-menu .board__lang-on { background: #fff; color: var(--c-brand); }
.page-menu .board__lang-off:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* --------------------------------------------------------------- the tools */
/* Search and the category pills travel together and stay on screen, because on
   this page they are the only two controls there are. */
.page-menu .board__tools {
  position: sticky; top: 76px; z-index: 30;
  background: var(--c-reading);
  padding: var(--s-3) 0 var(--s-3);
  box-shadow: 0 1px 0 rgb(var(--c-deep-purple-rgb) / .09);
}

.page-menu .board__search {
  display: flex; align-items: center; gap: var(--s-2);
  margin: 0 var(--s-4) var(--s-3);
  background: #fff; border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-4);
  box-shadow: inset 0 0 0 2px rgb(var(--c-deep-purple-rgb) / .1);
}
.page-menu .board__search:focus-within {
  box-shadow: inset 0 0 0 2px var(--c-brand);
}
.page-menu .board__search-i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--c-muted); stroke-width: 2; stroke-linecap: round;
}
.page-menu .board__search-f {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; padding: 0;
  font: inherit; font-size: 1rem; color: var(--c-item);
}
.page-menu .board__search-f::placeholder { color: var(--c-muted); }
.page-menu .board__search-f:focus { outline: none; }
/* The UA's own clear button is a second, differently-shaped way to do what
   Escape and the reset button already do, and it sits on the brand's own
   rounded field looking like neither. */
.page-menu .board__search-f::-webkit-search-cancel-button { display: none; }

/* The pills scroll sideways rather than wrapping to a second row: a second row
   is another 50px of a phone gone before any food. */
.page-menu .board__tabs {
  display: flex; gap: var(--s-2); overflow-x: auto;
  padding: 0 var(--s-4) var(--s-1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.page-menu .board__tabs::-webkit-scrollbar { display: none; }

.page-menu .board__tab {
  flex: none; cursor: pointer; border: 0;
  font-family: var(--font-display); font-weight: var(--w-semi);
  font-size: var(--fs-tag); letter-spacing: var(--tracking-caps); line-height: 1;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-pill);
  background: rgb(var(--c-deep-purple-rgb) / .08);
  color: var(--c-item);
  white-space: nowrap;
}
/* An unpressed pill is quiet; the pressed one wears its category's colour.
   Four saturated pills at once would be four things shouting and no answer to
   "which one am I looking at". */
.page-menu .board__tab[aria-pressed="true"] {
  background: rgb(var(--tab, var(--c-deep-purple-rgb)));
  color: #fff;
}
/* Sunny yellow cannot carry white text — measured, it is a 23% luminance step
   against white and fails every contrast floor. It takes the dark ink. */
.page-menu .board__tab.is-dark[aria-pressed="true"] { color: var(--c-structure); }
.page-menu .board__tab:focus-visible {
  outline: 2px solid var(--c-brand); outline-offset: 2px;
}

/* --------------------------------------------------------------- the count */
/* Announced on every filter; shown only while something is filtering. */
.page-menu .board__count {
  font-family: var(--font-display); font-weight: var(--w-semi);
  font-size: var(--fs-chip); letter-spacing: var(--tracking-caps);
  color: var(--c-muted); padding: var(--s-3) var(--s-4) 0;
  height: 0; overflow: hidden; padding-top: 0;
}
.page-menu .board__count.is-on { height: auto; padding-top: var(--s-3); }

/* ---------------------------------------------------------------- the food */
.page-menu .board__list { padding: 0 var(--s-4) var(--s-8); }

.page-menu .board__cat + .board__cat { margin-top: var(--s-6); }

.page-menu .board__cat-t {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: var(--lh-tight);
  color: rgb(var(--accent));
  padding: var(--s-5) 0 var(--s-3);
}
/* Deep purple and sunny yellow are the two accents that do not work as a
   heading on cream for opposite reasons — purple stops reading as an accent at
   all, yellow stops reading at all. Both fall back to the ink the brand's own
   page-17 hierarchy gives a menu item. */
.page-menu .board__cat[data-cat="bebidas"] .board__cat-t { color: var(--c-structure); }

.page-menu .board__cat-n {
  font-family: var(--font); font-weight: var(--w-body);
  font-size: var(--fs-chip); letter-spacing: 0;
  color: var(--c-muted); white-space: nowrap;
}

.page-menu .board__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3);
}
@media (min-width: 700px)  { .page-menu .board__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .page-menu .board__grid { grid-template-columns: repeat(4, 1fr); }
                             .page-menu .board__list { max-width: 1100px; margin: 0 auto; } }

/* The cards stand on cream here, not on a saturated field. The field is what
   the home page's chapters use to separate seven sections from each other;
   this page has one screen of one thing and does not need separating from
   anything. */
.page-menu .card { background: #fff; }

/* -------------------------------------------------------------- no results */
.page-menu .board__empty {
  text-align: center; padding: var(--s-9) var(--s-5);
}
.page-menu .board__empty-t {
  font-family: var(--font-display); font-weight: var(--w-semi);
  font-size: var(--fs-item); color: var(--c-item);
}
.page-menu .board__empty-h {
  font-size: var(--fs-desc); color: var(--c-body); margin-top: var(--s-2);
}
.page-menu .board__empty-b {
  margin-top: var(--s-5); cursor: pointer; border: 0;
  font-family: var(--font-display); font-weight: var(--w-semi); font-size: 0.9375rem;
  padding: var(--s-3) var(--s-6); border-radius: var(--r-pill);
  background: var(--c-brand); color: #fff;
}

/* ------------------------------------------------------------- the footing */
.page-menu .foot { margin-top: 0; }
