/* Greystone Grill menu page. The page hero (.mhero) is shared and lives in
   site-enhancements.css. Editorial, printed-menu feel: cream paper,
   night blue ink, gold only for prices and small details, one divider color.
   Loaded after site-enhancements.css and scoped to .menu-page. */

.menu-page {
  --m-cream: #F2ECE1;
  --m-ink: #0E2238;
  --m-ink-soft: rgba(14, 34, 56, 0.75);
  --m-ink-mute: rgba(14, 34, 56, 0.6);
  --m-gold: #C98B2E;
  --m-rule: rgba(201, 184, 150, 0.4);
  --m-serif: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;
  --m-sans: Lato, "Lato Fallback", sans-serif;
  --m-bar-top: 4.75rem;
  background: var(--m-cream);
  color: var(--m-ink);
  font-family: var(--m-sans);
}

@media screen and (min-width: 992px) {
  .menu-page {
    --m-bar-top: 5rem;
  }
}

.menu-page .container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .menu-page .container {
    padding-inline: 48px;
  }
}

.menu-page :focus-visible {
  outline: 2px solid var(--m-gold);
  outline-offset: 2px;
}

.mcat_eyebrow,
.mcat_meta,
.dish_tags,
.mguide_row dt {
  font-family: var(--m-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Sticky category bar ---------- */
.mbar {
  position: sticky;
  top: var(--m-bar-top);
  z-index: 20;
  background: var(--m-cream);
  border-bottom: 1px solid var(--m-rule);
}

.mbar_inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
}

.mbar_groups,
.mbar_scroll,
.mbar_sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mbar_groups {
  display: none;
}

.mbar_scroll {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mbar_scroll::-webkit-scrollbar {
  display: none;
}

.mbar_scroll li {
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.mbar_chip,
.mbar_link,
.mbar_toggle,
.mbar_sublink,
.mbar_guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--m-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--m-ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}

.mbar_chip,
.mbar_link,
.mbar_toggle {
  border-bottom: 2px solid transparent;
}

.mbar_chip:hover,
.mbar_link:hover,
.mbar_toggle:hover,
.mbar_sublink:hover,
.mbar_guide:hover {
  color: var(--m-ink);
}

.mbar_chip.is-active,
.mbar_link.is-active,
.mbar_toggle.is-active {
  color: var(--m-ink);
  border-bottom-color: var(--m-gold);
}

.mbar_chevron {
  transition: transform 200ms ease-out;
}

.mbar_toggle[aria-expanded="true"] .mbar_chevron {
  transform: rotate(180deg);
}

.mbar_group {
  position: relative;
}

.mbar_sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  padding: 8px 0;
  background: var(--m-cream);
  border: 1px solid var(--m-rule);
  border-top: 0;
}

.mbar_sub[hidden] {
  display: none;
}

.mbar_sublink {
  width: 100%;
  min-height: 40px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9375rem;
}

.mbar_sublink.is-active {
  color: var(--m-gold);
}

.mbar_guide {
  margin-left: auto;
  flex: 0 0 auto;
}

.mguide {
  border-top: 1px solid var(--m-rule);
}

.mguide[hidden] {
  display: none;
}

.mguide_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 0;
  padding: 24px 0 8px;
}

.mguide_row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.mguide_row dt {
  min-width: 3ch;
  color: var(--m-gold);
}

.mguide_row dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--m-ink-soft);
}

.mguide_note {
  margin: 0;
  padding-bottom: 24px;
  font-size: 0.875rem;
  color: var(--m-ink-mute);
}

@media screen and (min-width: 992px) {
  .mbar_groups {
    display: flex;
    gap: 8px;
  }
  .mbar_scroll {
    display: none;
  }
  .mguide_list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Categories ---------- */
.menu-body {
  padding-top: 32px;
  padding-bottom: 80px;
}

.mcat {
  padding: 40px 0 24px;
  scroll-margin-top: calc(var(--m-bar-top) + 56px + 16px);
}

.mcat_head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--m-rule);
  margin-bottom: 32px;
}

.mcat_eyebrow {
  margin: 0 0 12px;
  color: var(--m-gold);
}

.mcat_title {
  margin: 0;
  font-family: var(--m-serif);
  text-transform: none;
  font-size: clamp(2.5rem, 1.75rem + 2.25vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--m-ink);
}

.mcat_orn {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 20px 0 16px;
  background: var(--m-gold);
}

.mcat_desc {
  margin: 0 0 8px;
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--m-ink-soft);
}

.mcat_meta {
  margin: 0;
  color: var(--m-ink-mute);
}

.mcat_items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  position: relative;
}

.dish {
  min-width: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--m-rule);
}

.dish:last-child {
  border-bottom: 0;
}

.dish_row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.dish_name {
  margin: 0;
  font-family: var(--m-serif);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--m-ink);
}

.dish_price {
  flex: 0 0 auto;
  min-width: 4.5ch;
  text-align: right;
  font-family: var(--m-sans);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--m-gold);
  white-space: nowrap;
}

.dish_desc {
  margin: 8px 0 0;
  max-width: 34em;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--m-ink-soft);
}

.dish_tags {
  margin: 8px 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--m-ink-mute);
}

abbr.dish_tag[title] {
  text-decoration: none;
  border-bottom: 0;
  cursor: help;
}

.dish_dot {
  margin: 0 8px;
}

@media screen and (min-width: 768px) {
  .mcat_items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
  }
  .mcat_items::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 24px;
    left: 50%;
    width: 1px;
    background: var(--m-rule);
  }
  /* The two-column grid pairs items across rows, so bottom rules stay per
     item and the last two items drop theirs. */
  .dish:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

@media screen and (max-width: 991px) {
  /* Phones and tablets: icon-only guide button leaves the strip its width. */
  .mbar_guide-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .mbar_guide {
    min-width: 44px;
    justify-content: center;
    padding: 0 8px;
  }
  .mbar_inner {
    gap: 8px;
  }
}

@media screen and (max-width: 767px) {
  .mcat {
    padding: 32px 0 8px;
  }
  .mcat_head {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-page *,
  .menu-page *::before,
  .menu-page *::after {
    transition: none !important;
  }
  .menu-page {
    scroll-behavior: auto;
  }
}
