/* /menu: the Burton Road menu on a page of its own.
   Loads after main.css and borrows the home page's chalkboard (.counter,
   .menu-board, .menu-item) untouched, so the dishes look exactly as they do
   on the home page. This file only adds the slim top bar, the stacked
   layout (no tabs, no JavaScript) and the foot. */

/* main.css gives the body overflow-x: hidden, which makes the body a scroll
   container and stops the bar sticking. html already clips sideways. */
body.menu-page { background: var(--wood-deep); color: var(--cream); margin: 0; overflow-x: clip; }

/* ---------- Top bar: logo home, a way back, Reserve. No section nav. ---------- */
.mp-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgb(var(--forest-rgb) / 0.94);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  border-bottom: 1px solid rgb(var(--gold-rgb) / 0.32);
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.85);
}
.mp-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 68px;
}
.mp-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.mp-brand img { height: 44px; width: auto; display: block; }
.mp-back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--sand-deep);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--type-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-paper);
}
.mp-back:hover { color: var(--cream); }
.mp-back:focus-visible { outline: 2px solid var(--candle); outline-offset: 2px; }
.mp-back-short { display: none; }

/* The Reserve button is the home page's; here it sits in a bar, so it
   drops to the compact size and never takes the full row. */
.mp-bar .book-btn { flex: 0 0 auto; min-height: 44px; padding: 9px 18px 9px 14px; }
.mp-bar .book-btn-icon { width: 22px; height: 22px; }
.mp-bar .book-btn-icon svg { width: 16px; height: 16px; }
.mp-bar .book-btn-mark { display: none; }
.mp-bar .book-btn-name { font-size: 0.85rem; letter-spacing: 0.18em; }

/* ---------- The menu's pills: the home page's, as links, under the bar ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.mp-cats-wrap { border-top: 1px solid rgb(var(--gold-rgb) / 0.14); }
.mp-cats {
  position: relative;
  margin: 0;
  padding: 8px 0 10px;
  gap: 8px;
  /* One rail at every width: five pills fit a desktop, a phone scrolls them. */
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
}
.mp-cats .menu-tab {
  padding: 8px 14px 8px 11px;
  text-decoration: none;
  min-height: 40px;
}
.mp-cats .menu-tab-icon { width: 20px; height: 20px; }
/* The pill of the board in view: the home page's .is-active look. */
.mp-cats .menu-tab[aria-current="true"] {
  color: var(--wood-deep);
  background: var(--candle);
  border-color: var(--candle);
  box-shadow: 0 0 0 1px rgb(236 166 59 / 0.35), 0 6px 20px rgba(232, 177, 74, 0.09);
}
.mp-cats .menu-tab[aria-current="true"] .menu-tab-icon { color: var(--wood-deep); }
@media (max-width: 767px) {
  .mp-cats { margin-inline: calc(var(--wrap-pad) * -1); padding-inline: var(--wrap-pad); scroll-padding-inline: var(--wrap-pad); }
}

/* A board scrolled to lands clear of the bar and the pills. */
.mp-boards .menu-board { scroll-margin-top: 150px; }
@media (max-width: 640px) { .mp-boards .menu-board { scroll-margin-top: 138px; } }

/* ---------- The board ---------- */
.mp-counter { padding: var(--space-2xl) 0 var(--space-3xl); }
.mp-head { max-width: 46rem; margin: 0 0 var(--space-xl); }
.mp-head h1 {
  color: var(--cream);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  letter-spacing: 0.02em;
  margin: var(--space-2xs) 0 var(--space-sm);
}
.mp-head .mp-lede {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--cream-mute);
  font-size: var(--type-body, 1rem);
  margin: 0;
}
.mp-head .menu-allergy { margin: var(--space-md) 0 0; }

/* Every board shows, one after another. */
.mp-boards { display: grid; gap: var(--space-xl); }
.mp-boards .menu-board { padding-inline: 0; }
/* The title is an h2 here (a page of its own), the home page's is a p:
   keep the home page's look. */
.mp-boards h2.menu-board-title { margin-top: 0; }
.mp-boards .menu-board:first-child { border-top: 0; padding-top: 0; }

/* ---------- Foot ---------- */
.mp-foot {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgb(var(--gold-rgb) / 0.30);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  justify-content: space-between;
  align-items: flex-start;
  color: var(--cream-mute);
  font-size: var(--type-small);
  line-height: 1.6;
}
.mp-foot address { font-style: normal; }
.mp-foot strong { color: var(--cream); font-weight: 600; }
.mp-foot a { color: var(--candle); text-decoration: none; }
.mp-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mp-foot a:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }
.mp-foot-links { display: grid; gap: 6px; }

@media (max-width: 640px) {
  .mp-bar-inner { min-height: 60px; gap: 10px; }
  .mp-brand img { height: 30px; }
  .mp-back { letter-spacing: 0.1em; padding: 0; gap: 6px; }
  .mp-back-long { display: none; }
  .mp-back-short { display: inline; }
  .mp-bar .book-btn { padding: 9px 12px; flex: 0 1 auto; min-width: 0; }
  .mp-bar .book-btn-icon { display: none; }
  .mp-bar .book-btn-arrow { display: none; }
  .mp-bar .book-btn-name { font-size: 0.74rem; letter-spacing: 0.1em; white-space: nowrap; }
  .mp-counter { padding: var(--space-lg) 0 var(--space-2xl); }
  .mp-head { margin-bottom: var(--space-lg); }
}

/* Printing the menu: ink on paper, no bar, no glow. */
@media print {
  .mp-bar, .mp-foot-links { display: none; }
  body.menu-page, .counter { background: #fff !important; color: #000; }
  .counter::before, .counter::after { display: none; }
  .mp-head h1, .menu-item .name, .menu-item .price, .menu-board-title { color: #000 !important; }
  .menu-item .desc, .menu-board-sub, .mp-lede, .menu-allergy, .mp-foot { color: #333 !important; }
  .menu-board { break-inside: avoid; }
}
