/* ================================================================================================================
   THOLE · Menus · page.css, direction b (“Four seasons, one switch”)
   Page-only CSS. Everything shared (header, season C's menu card .sc and .crs, footer B, tokens, buttons) comes from
   ../assets/kit.css and ../assets/site.css unchanged; this file adds only what the Menus page needs, on Kit B's tokens.
   ================================================================================================================ */

/* ---------------------------------------------------------------- the page head */
.mh { padding-block: clamp(36px, 4.4vw, 72px) clamp(40px, 4.4vw, 72px); }
.mh__grid { display: grid; gap: 20px var(--gap); }
.mh__main { display: grid; gap: 14px; align-content: start; }
.mh__title { max-width: 13ch; }
.mh__side { display: grid; gap: 12px; align-content: end; }
.mh__lede { font-size: clamp(18px, 0.7vw + 13px, 21px); line-height: 1.45; max-width: 44ch; text-wrap: pretty; }
.mh__note { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 50ch; }
@media (min-width: 900px) {
  .mh__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .mh__side { padding-left: var(--gap); border-left: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- the menu card (Home's season C, unchanged) */
.mn-card { scroll-margin-top: var(--header-h); }
.mn-card .sc__menuhead { align-items: center; }
/* the print button sits where Home's card has its link to this page: quiet, link-weight, with a small sheet drawn in CSS */
.mn-pr {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-text); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-decoration-thickness: 1px; text-underline-offset: .24em;
}
.mn-pr:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.mn-pr i { flex: none; width: 11px; height: 14px; border: 1.5px solid currentColor; border-radius: 1.5px; background: linear-gradient(currentColor, currentColor) 2px 3px / 4px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 2px 6.5px / 4px 1.5px no-repeat; }
.mn-pr[hidden] { display: none; }

/* ---------------------------------------------------------------- prices and pairings (pale ash) */
.mn-pp__in { display: grid; gap: clamp(56px, 6vw, 88px) var(--gap); }
.mn-pp__h { margin-top: 12px; }
.mn-price { margin-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--line); }
.mn-price > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding-block: 13px 14px; border-bottom: 1px solid var(--hair); }
.mn-price dt { display: grid; gap: 2px; }
.mn-price dt b { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.3vw, 21px); line-height: 1.2; letter-spacing: -0.012em; }
.mn-price dt span { font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.mn-price dd { display: grid; justify-items: end; gap: 2px; font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2vw, 32px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mn-price dd small { font-family: var(--f-text); font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.mn-price__svc { margin-top: 14px; font-size: var(--fs-small); line-height: 1.5; }
.mn-veg { margin-top: 24px; padding: 16px 18px; border-left: 4px solid var(--ember-deep); background: var(--lime); font-size: 17px; line-height: 1.45; }
.mn-veg b { font-weight: 600; }
.mn-diet { display: grid; gap: 12px; margin-top: 28px; }
.mn-diet ul { border-top: 1px solid var(--line); }
.mn-diet li { padding-block: 10px 11px; border-bottom: 1px solid var(--hair); font-size: var(--fs-small); line-height: 1.5; }
.mn-diet li b { font-weight: 600; }
.mn-diet .btn { justify-self: start; margin-top: 10px; }

.mn-pp__pair { display: grid; align-content: start; }
.mn-pp__lede { margin-top: 14px; font-size: 17px; line-height: 1.5; max-width: 46ch; }
.mn-pair { width: 100%; margin-top: clamp(20px, 2.4vw, 32px); border-collapse: collapse; font-size: var(--fs-small); line-height: 1.45; }
.mn-pair th, .mn-pair td { padding: 12px 16px 12px 0; text-align: left; vertical-align: baseline; border-top: 1px solid var(--hair); }
.mn-pair thead th { padding-top: 0; border-top: 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.mn-pair tbody tr:first-child > * { border-top-color: var(--line); }
.mn-pair tbody tr:last-child > * { border-bottom: 1px solid var(--hair); }
.mn-pair tbody th { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; white-space: nowrap; }
.mn-pair__n { display: inline-block; width: 1.5em; color: var(--s-rule); font-variant-numeric: tabular-nums; }
.mn-quote { margin-top: clamp(28px, 3vw, 40px); padding-top: 18px; border-top: 1px solid var(--line); }
.mn-quote p { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.22; letter-spacing: -0.012em; max-width: 30ch; text-wrap: pretty; }
.mn-quote figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.mn-pp__pair > .link { justify-self: start; margin-top: 16px; }
@media (min-width: 1000px) {
  .mn-pp__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .mn-pp__pair { padding-left: var(--gap); border-left: 1px solid var(--line); }
}
/* on phones each pairing reads as a short block: the course, then the wine and the soft pairing under it */
@media (max-width: 699px) {
  .mn-pair thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mn-pair tbody { display: block; border-top: 1px solid var(--line); }
  .mn-pair tr { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 3px 0; padding-block: 12px 13px; border-bottom: 1px solid var(--hair); }
  .mn-pair th, .mn-pair td, .mn-pair tbody tr:first-child > *, .mn-pair tbody tr:last-child > * { padding: 0; border: 0; }
  .mn-pair tbody th { grid-column: 1 / -1; margin-bottom: 3px; }
  .mn-pair td { display: contents; }
  .mn-pair td::before { content: attr(data-l); align-self: baseline; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
}

/* ---------------------------------------------------------------- the printed card
   “People will print the menu. Let them.” (Theo). On screen it does not show. In print it is the only thing on the sheet:
   one A4 card of the menu that is on now (or the one the guest chose to print), in ink on white, with the season's field
   as a thin band across the top. */
.mp { display: none; }
@media print {
  @page { size: A4 portrait; margin: 13mm 16mm 12mm; }
  html, body { background: #FFFFFF !important; }
  body > :not(.mp) { display: none !important; }
  .mp { display: block !important; break-inside: avoid; color: #1D1814; font-family: var(--f-text); font-size: 10pt; line-height: 1.38; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mp__band { height: 4.5mm; margin-bottom: 5.5mm; background: var(--s-a); border-bottom: .75pt solid var(--s-rule); }
  .mp__top { display: flex; justify-content: space-between; align-items: baseline; gap: 6mm; }
  .mp__mark { font-family: var(--f-display); font-weight: 700; font-size: 19pt; line-height: 1; letter-spacing: -0.01em; }
  .mp__where, .mp__when { font-size: 8.5pt; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #5A5047; }
  .mp__when { margin-top: 6.5mm; color: var(--s-rule); }
  .mp__name { margin-top: 1.5mm; font-family: var(--f-display); font-weight: 700; font-size: 34pt; line-height: 1; letter-spacing: -0.03em; }
  .mp__list { margin-top: 6.5mm; border-top: .9pt solid var(--s-rule); }
  .mp__list li { display: grid; grid-template-columns: 7mm 43mm minmax(0, 1fr); column-gap: 3mm; align-items: baseline; padding: 1.7mm 0 1.9mm; border-bottom: .4pt solid #CFC4B4; break-inside: avoid; }
  .mp:not(.mp--pair) .mp__list li { padding: 3mm 0 3.2mm; }
  .mp__n { font-family: var(--f-display); font-weight: 600; font-size: 12pt; color: var(--s-rule); font-variant-numeric: tabular-nums; }
  .mp__c { font-family: var(--f-display); font-weight: 600; font-size: 11.5pt; line-height: 1.2; letter-spacing: -0.01em; }
  .mp__d { font-size: 10pt; }
  .mp__pair { display: block; margin-top: .8mm; font-size: 8.5pt; line-height: 1.35; color: #5A5047; }
  .mp__prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5mm 6mm; margin-top: 5mm; font-size: 8.5pt; line-height: 1.35; color: #3A322C; }
  .mp__prices b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 13pt; line-height: 1.1; color: #1D1814; }
  .mp__note { margin-top: 4mm; font-size: 10pt; font-weight: 600; }
  .mp__foot { margin-top: 4mm; padding-top: 2.5mm; border-top: .4pt solid #CFC4B4; font-size: 8.5pt; color: #5A5047; }
}

/* ================================================================================================================
   b · “Four seasons, one switch”
   A season switch at the top: four real tabs (buttons, aria-selected, arrow keys), not a carousel. Choosing a season
   re-themes the page under the header: the tab fills with its field, the card's field, plate and courses change to that
   season, and the URL carries ?season=. The season now is chosen on load. With no JS the four menus stand one under
   another, the season now first, and the switch is a row of links to them.
   The page's <main> wears the chosen season (main[data-s], above), so the header's chip and the footer's band keep
   telling the truth about the menu that is on now.
   ================================================================================================================ */
.mh--b { padding-bottom: 0; }
.ys--tabs, .ys--links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 3.6vw, 56px); }
.ys--tabs .ys__i, .ys--links .ys__i {
  display: grid; align-content: start; gap: 4px; width: 100%; height: 100%; margin: 0; padding: 14px clamp(10px, 1.4vw, 18px) 18px;
  border: 0; border-top: 6px solid var(--s-a); box-shadow: inset 0 1px 0 var(--s-rule); border-radius: 0; background: transparent;
  color: var(--lime-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.ys--links li { display: block; }
.ys__w { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--lime-muted); }
.ys__sw { display: none; }
.ys__now { padding: 2px 7px 1px; border-radius: 999px; background: var(--s-rule); color: #FFFFFF; font-style: normal; font-size: 11px; letter-spacing: .08em; }
.ys__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.15; letter-spacing: -0.015em; }
.ys__d { font-size: 14px; line-height: 1.4; color: var(--lime-muted); }
.ys--tabs .ys__i:hover { background: color-mix(in srgb, var(--s-a) 45%, transparent); }
.ys--tabs .ys__i[aria-selected="true"], .ys--links li:first-child .ys__i { background: var(--s-a); color: var(--s-ink); cursor: default; }
.ys--tabs .ys__i[aria-selected="true"] .ys__w, .ys--tabs .ys__i[aria-selected="true"] .ys__d,
.ys--links li:first-child .ys__w, .ys--links li:first-child .ys__d { color: var(--s-muted); }
.ys--tabs .ys__i:focus-visible { outline: 3px solid var(--lime-ink); outline-offset: -3px; }
/* the field and the tab change together */
.mn-b .mn-card { transition: background-color .3s var(--ease), color .3s var(--ease); }
/* before the switch takes over, only the first menu shows */
.js .mn-b .mn-card ~ .mn-card { display: none; }
@media (max-width: 699px) {
  .ys--tabs .ys__name, .ys--tabs .ys__d { display: none; }
  .ys--tabs .ys__i { padding: 12px 8px 14px; min-height: 64px; }
  .ys--tabs .ys__w { flex-direction: column; align-items: flex-start; font-size: 13px; letter-spacing: .06em; }
  .ys--links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
