/* -------------------------------------------------------------------------
   Menu page additions (2026-09-01 menu rebuild)
   Reuses tokens from assets/css/style.css. No token redefinitions here.
   ------------------------------------------------------------------------- */

/* Pizza table: accessible row headers replace the old first-child <td> styling. */
/* The medium-only pizzas carry a .visually-hidden "Not available in this size"
   span in their empty cells. .visually-hidden is position:absolute, so without a
   positioned ancestor it resolves against the initial containing block, escapes
   the table's overflow-x:auto wrapper, and lands at the table's unscrolled x.
   That pushed the whole menu page's scrollWidth to 491px at a 375px viewport.
   Giving the cells a containing block keeps those spans inside the scroller. */
table.pizza-table th,
table.pizza-table td { position: relative; }

table.pizza-table th[scope="row"] {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  font-size: 0.95rem;
  border-bottom: inherit;
}
table.pizza-table caption {
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* Sub-groups inside a category (Pesce: Salmon / Other, Lunch: Fritti / Pasta / Paninis / Piatto Principale). */
.menu-subgroup + .menu-subgroup {
  margin-top: 2.2rem;
}
/* Le Pizze calzone sub-heading, styled the same as the other in-category h3s.
   Type rules for both live further down (Bodoni Moda smallcaps note). */

/* Lunch: a chapter of the same card, not a grey box. A heavier top rule and
   extra air separate it from dinner; the head collapses to one column since it
   carries no thumbnail. */
.menu-category--lunch {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid var(--ink);
}
.menu-category--lunch .menu-category-head {
  grid-template-columns: 1fr;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.menu-category--lunch .menu-category-head .it,
.menu-category--lunch .menu-category-head .en {
  grid-column: 1;
}
.menu-category--lunch .menu-subgroup {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.menu-category--lunch .menu-subgroup h3 { margin-bottom: 0.4rem; }
.menu-category--lunch .menu-subgroup .menu-category-note { margin: 0 0 1.4rem; }

/* Bodoni Moda does not read below 1.35rem. These subgroup labels (Salmon,
   Other, Fritti, Pasta $19, Paninis, Piatto Principale, and the Calzone
   sub-heading) move to smallcaps rather than grow into their own space. */
.menu-subgroup h3,
#pizze > h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
#pizze > h3 { margin-top: 1.8rem; }

/* .visually-hidden already exists in assets/css/style.css (section 19, Utility).
   Not redefined here. */
