/* Garibaldi ALC — Simplified Chinese Menu
   Styled to echo the printed A La Carte menu:
   warm ivory paper, warm-charcoal serif text, centered elegant blocks,
   subtle grey icon-labels, borderless printed-style price lists. */

:root {
  --color-bg: #f6f2e8;          /* warm ivory / printed paper */
  --color-text: #2b2622;        /* warm charcoal, not harsh black */
  --color-muted: #7a7266;       /* soft warm grey (icons/footnotes) */
  --color-faint: #b8b0a2;       /* faint hairline if ever needed */
  --font-serif: Georgia, "Times New Roman", "Songti SC", STSong, SimSun, "Noto Serif SC", serif;
  --font-cjk: "Songti SC", STSong, SimSun, "Noto Serif SC", Georgia, serif;
  --page-max: 720px;
  --page-pad: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.menu-document {
  margin: 0 auto;
  max-width: var(--page-max);
  padding: 2rem var(--page-pad) 3rem;
}

/* ── Brand header ── */

.brand-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.brand-name {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  line-height: 1.25;
}

.brand-sub {
  margin: 0.4rem 0 0;
  font-size: clamp(0.6rem, 2vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.menu-title {
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

/* ── Pages (structural only; no visible page numbers, no dividers) ── */

.menu-page {
  padding-bottom: 2.75rem;
}

.menu-page + .menu-page {
  padding-top: 2.75rem;
}

/* ── Sections ── */

.menu-section {
  margin-bottom: 2.5rem;
}

.section-heading {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

.section-badge {
  margin-right: 0.4rem;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
}

.section-intro {
  margin: 0 auto 1.4rem;
  max-width: 40em;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
}

.section-note {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── Subtle grey icon-labels (素食 / 招牌) ── */

.badge {
  display: inline;
  font-family: var(--font-cjk);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  white-space: nowrap;
}

.badge + .badge {
  margin-left: 0.3rem;
}

.dish-body > .badge,
.dish-badges {
  margin-right: 0.4rem;
}

.dish-badges {
  display: inline;
  white-space: nowrap;
}

/* ── Menu items — centered printed-menu blocks ── */

.menu-item {
  max-width: 42em;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.dish-name {
  margin: 0 0 0.2rem;
  font-size: clamp(0.9rem, 2.7vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.dish-body {
  text-align: center;
}

.dish-line {
  display: inline;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.dish-desc {
  color: var(--color-text);
}

/* price sits inline, visually attached to the description */
.dish-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish-price::before {
  content: "\00a0\00a0";
}

.dish-note {
  margin: 0.3rem auto 0;
  max-width: 40em;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.55;
}

/* ── Printed-style price lists (not spreadsheets) ── */

.menu-table {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.menu-table th,
.menu-table td {
  padding: 0.32rem 0.6rem;
  text-align: center;
  border: none;
}

.menu-table th {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  padding-bottom: 0.5rem;
}

.menu-table td:last-child {
  font-variant-numeric: tabular-nums;
}

.menu-table--compact td {
  padding: 0.24rem 0.5rem;
}

/* Caviar: size (bold) left, price right — printed list feel */
.caviar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1rem;
  justify-items: center;
}

.caviar-col-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0.75rem;
  text-align: center;
  line-height: 1.4;
}

.caviar-title-main {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.caviar-title-cn {
  font-family: var(--font-cjk);
  font-size: 0.85rem;
  font-weight: 700;
}

.caviar-title-species {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
}

.caviar-col .menu-table {
  max-width: 15rem;
}

.caviar-col .menu-table td:first-child {
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
}

.caviar-col .menu-table td:last-child {
  text-align: right;
}

/* Sides: two calm columns */
.sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  max-width: 26rem;
  margin: 0 auto;
}

.sides-grid .menu-table {
  max-width: none;
}

.sides-grid .menu-table td:first-child {
  text-align: left;
}

.sides-grid .menu-table td:last-child {
  text-align: right;
}

.gelato-desc {
  margin: 0 auto 0.85rem;
  max-width: 40em;
  text-align: center;
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════════════════════
   MONTHLY MENUS — August 2026 (Executive + Experience)
   Structurally and visually isolated from the A La Carte above.
   Every selector below is scoped under .monthly-menus so this block
   can be replaced month-to-month without touching A La Carte rules.

   Responsive architecture (phone / tablet / desktop), independent of
   the A La Carte's own responsive rules:
     - Base rules below are fluid (clamp()) and mobile/tablet-neutral;
       they already produce correct phone behaviour on their own.
     - @media (max-width: 767px)                     → PHONE tier
     - @media (min-width: 768px) and (max-width: 1023px) → TABLET tier
     - @media (min-width: 1024px)                     → DESKTOP tier
   ══════════════════════════════════════════════════════════════════ */

.monthly-menus {
  /* Deliberately a direct child of <body> (see HTML), NOT nested inside
     the width-capped/centered .menu-document used by the A La Carte.
     That means it needs no viewport-unit (vw) full-bleed hack at all —
     width: 100% here simply matches <body>'s own full-viewport content
     width, which is inherently symmetric and immune to the classic
     "100vw includes the scrollbar, window.innerWidth doesn't" mismatch
     that previously left the spread with a small but real left/right
     margin discrepancy (fixed 2026-08-22; see 00_PROJECT_MASTER.md). */
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.15rem, 4vw, 3rem) clamp(2.25rem, 5vw, 4rem);
}

.monthly-menus-inner {
  /* Desktop-neutral default: caps the two-column spread on large
     screens so it keeps printed-menu proportions instead of endlessly
     expanding on 1440/1920 displays. Tablet tier narrows this further
     to a single comfortable reading column. margin: 0 auto centers
     this container within the full-bleed .monthly-menus above. */
  max-width: 1200px;
  margin: 0 auto;
  /* Horizontal separator before A La Carte lives HERE (not on the
     full-bleed .monthly-menus) so it is horizontal-only, centered, and
     width-capped to the same measure as the monthly content — never a
     viewport-wide line, and never connected to any vertical divider.
     Because .monthly-spread's flex container height is driven by its
     tallest child, this border naturally sits right after the taller
     of Executive/Experience ends, without forcing equal column heights. */
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--color-faint);
}

.monthly-month-header {
  text-align: center;
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: 0.5rem;
}

.monthly-spread {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.25rem);
}

.monthly-menu {
  /* Width is governed by the containers above (.monthly-menus-inner)
     and by individual content blocks (.choice-box, availability text,
     etc.) rather than a fixed measure here, so the same rule works
     unmodified across phone/tablet; desktop adds flex sizing below. */
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.monthly-menu-title {
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
  text-align: center;
  line-height: 1.4;
}

.monthly-title-it {
  display: block;
  font-size: clamp(1.02rem, 2.4vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.monthly-title-cn {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-cjk);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.monthly-availability,
.monthly-instructions,
.monthly-vegetarian-note {
  margin: 0 auto 0.6rem;
  max-width: 32em;
  text-align: center;
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.6;
}

.monthly-instructions {
  margin-bottom: 0.6rem;
}

.monthly-vegetarian-note {
  margin-bottom: 1.5rem;
}

.monthly-availability + .choice-box,
.monthly-vegetarian-note + .choice-box {
  margin-top: 1.5rem;
}

/* ── Choice boxes: thin functional borders that guide the guest's choice ── */

.choice-box {
  border: 1px solid var(--color-faint);
  border-radius: 0;
  padding: clamp(1.15rem, 3vw, 1.9rem) clamp(1.25rem, 3.2vw, 2.2rem);
  margin: 0 auto 1.6rem;
  max-width: 32em;
  box-shadow: none;
  background: transparent;
}

.experience-selection-box {
  max-width: 32em;
}

.choice-item {
  text-align: center;
}

.choice-item + .choice-item,
.choice-group + .menu-divider,
.menu-divider + .choice-group {
  margin-top: 0;
}

.monthly-dish-name {
  margin: 0 0 0.2rem;
  font-size: clamp(0.9rem, 1.8vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.monthly-dish-subtitle {
  margin: 0 0 0.3rem;
  font-family: var(--font-cjk);
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 700;
}

.monthly-dish-desc {
  margin: 0;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.6;
  color: var(--color-text);
}

.monthly-supplement {
  margin: 0.25rem 0 0;
  font-size: clamp(0.76rem, 1.1vw, 0.86rem);
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Monetary values inside monthly-menu text must render exactly like the
   existing A La Carte prices (.dish-price): upright (never italic), normal
   weight, tabular lining figures, full text colour — not the lighter/italic
   treatment used for the surrounding supplement label text. */
.monthly-price {
  font-style: normal;
  font-weight: 400;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.or-divider {
  margin: 0.7rem 0;
  text-align: center;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* thin ornamental divider — pure typographic line, no icons/emoji */
.menu-divider {
  width: 2.75rem;
  height: 0;
  margin: 1.1rem auto;
  border: none;
  border-top: 1px solid var(--color-faint);
}

.choice-box .menu-divider {
  margin: 0.9rem auto;
}

.monthly-courses .choice-group {
  margin: 0;
}

.standalone-course {
  margin: 0;
}

.monthly-pricing {
  margin: 1.75rem auto 0;
  text-align: center;
}

.monthly-pricing-tier + .monthly-pricing-tier {
  margin-top: 0.9rem;
}

.monthly-price-main {
  margin: 0 0 0.15rem;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.monthly-price-wine {
  margin: 0;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.monthly-footnote {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── PHONE tier (≤767px): current successful mobile behaviour, expressed
   via the fluid/clamp() system above — single column, full readable
   width, no desktop two-column structure. Kept as an explicit tier for
   architectural clarity even though the base rules already cover it. ── */
@media (max-width: 767px) {
  .monthly-spread {
    gap: clamp(2.25rem, 7vw, 2.75rem);
  }
}

/* ── TABLET / iPad tier (768–1023px): dedicated layout, NOT a stretched
   phone and NOT the desktop two-column spread. Executive and Experience
   stack vertically, each within a generous centered reading column with
   more relaxed typography and spacious boxes. This tier covers portrait
   iPad (768/820); landscape iPad (1024px) and wider move into the
   desktop two-column tier below, where the resulting column width is
   comfortable enough to stay readable (verified visually). ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .monthly-menus-inner {
    max-width: 44rem;
  }

  .monthly-spread {
    gap: 3.5rem;
  }

  .choice-box,
  .experience-selection-box {
    max-width: 38em;
    padding: 1.85rem 2.35rem;
  }

  .monthly-dish-desc {
    font-size: 1rem;
  }

  .monthly-availability,
  .monthly-instructions,
  .monthly-vegetarian-note {
    max-width: 36em;
  }
}

/* ── DESKTOP / PC tier (≥1024px): refined two-page spread — Executive as
   the left page, Experience as the right page — recalling the physical
   two-page Garibaldi menu, laid side by side with a controlled gap
   (NOT a card, NOT a vertical rule). .monthly-menus-inner caps the
   overall width (see base rule above) so the ENTIRE two-column unit
   stays centered and keeps printed-menu proportions instead of
   endlessly expanding on 1440/1920 screens. There is intentionally no
   border/divider between the two columns — Executive and Experience
   have different content lengths, and a vertical line stopping partway
   down (where the shorter column ends) would create an awkward broken
   line meeting the horizontal separator below in a T-shape. Column
   heights are NOT equalized; each ends naturally with its own content,
   and align-items: flex-start keeps both tops aligned. ── */
@media (min-width: 1024px) {
  .monthly-spread {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(3rem, 5vw, 5rem);
  }

  .monthly-menu {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ── Footer (guest text only) ── */

.page-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.footer-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 0.8rem;
}

.footer-legend .badge {
  font-style: italic;
}

.footer-note {
  margin: 0.25rem 0;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Mobile — keep the calm printed feel ── */

@media (max-width: 520px) {
  :root {
    --page-pad: 1.15rem;
  }

  body {
    font-size: 14.5px;
  }

  .caviar-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .sides-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 18rem;
  }

  .brand-name {
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }
}

/* ── Print / PDF export (A4) ── */

@page {
  size: A4 portrait;
  margin: 16mm 18mm;
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .menu-document {
    max-width: none;
    padding: 0;
  }

  .monthly-menus {
    width: auto;
    padding: 0;
    page-break-after: always;
    break-after: page;
  }

  .monthly-menus-inner {
    padding-bottom: 0;
    border-bottom: none;
  }

  .monthly-spread {
    flex-direction: column;
  }

  .choice-box,
  .monthly-menu {
    break-inside: avoid;
  }

  .menu-page {
    page-break-after: always;
    break-after: page;
    padding: 0;
  }

  .menu-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .menu-page + .menu-page {
    padding-top: 0;
  }

  .menu-section {
    break-inside: avoid;
  }

  .menu-item {
    break-inside: avoid;
  }

  .page-footer {
    margin-top: 1.75rem;
  }
}
