/* Menu page: tabs by time of day, a strip of favourites with real photos, then the full list on a paper sheet.
   Rebuilt 2026-11-11. Without JS, every menu shows one after another. */
.phead--short { min-height: clamp(380px, 52svh, 540px); }
.menuwrap { position: relative; z-index: 3; padding-bottom: 30px; }

/* ---------- tabs ---------- */
.mtabs { position: sticky; top: 10px; z-index: 20; display: flex; gap: 6px; margin: -34px calc(-1 * var(--gutter) + 8px) 0; padding: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--navy); border-radius: 999px; box-shadow: 0 18px 36px -18px rgba(7, 42, 55, .7); }
.mtabs::-webkit-scrollbar { display: none; }
.mtab { flex: 1 0 auto; display: grid; justify-items: center; gap: 3px; padding: 11px 18px 10px; border-radius: 999px; color: var(--cream); text-decoration: none; white-space: nowrap;
  transition: background .35s cubic-bezier(.32, .72, 0, 1), color .35s; }
.mtab b { font: 400 1.15rem/1 var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.mtab span { font: 800 .58rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.mtab:hover { background: rgba(242, 241, 235, .12); }
.mtab[aria-selected="true"] { background: var(--sky); color: var(--navy); }
.mtab[aria-selected="true"] span { opacity: 1; }
.mtab:focus-visible { outline-color: var(--sky); }
@media (min-width: 900px) {
  .mtabs { top: 14px; width: max-content; max-width: 100%; margin: -40px auto 0; gap: 8px; padding: 8px; }
  .mtab { padding: 14px 34px 12px; }
  .mtab b { font-size: 1.45rem; }
  .mtab span { font-size: .62rem; }
}

/* ---------- panels ---------- */
.mp { padding-top: 56px; scroll-margin-top: 90px; }
.mp[hidden] { display: none; }
.mp__head { text-align: center; display: grid; justify-items: center; gap: 12px; margin-bottom: 34px; }
.mp__head .h2 { font-size: clamp(3rem, 9vw, 6rem); }
.mp__intro { margin: 0; max-width: 34em; font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .is-tabbed .mp:not([hidden]) .mp__head, .is-tabbed .mp:not([hidden]) .mfav__c, .is-tabbed .mp:not([hidden]) .tear { animation: mpIn .8s cubic-bezier(.32, .72, 0, 1) both; }
  .is-tabbed .mp:not([hidden]) .mfav__c:nth-child(2) { animation-delay: .06s; } .is-tabbed .mp:not([hidden]) .mfav__c:nth-child(3) { animation-delay: .12s; }
  .is-tabbed .mp:not([hidden]) .mfav__c:nth-child(4) { animation-delay: .18s; } .is-tabbed .mp:not([hidden]) .tear { animation-delay: .16s; }
}
@keyframes mpIn { from { opacity: 0; translate: 0 26px; } }

/* favourites: real photos of the dishes */
.mfav { list-style: none; margin: 0 calc(-1 * var(--gutter)) 34px; padding: 10px var(--gutter) 18px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mfav::-webkit-scrollbar { display: none; }
.mfav__c { position: relative; flex: none; width: min(62vw, 250px); aspect-ratio: 1 / 1.12; border-radius: 16px; overflow: hidden; background: var(--sand); scroll-snap-align: center;
  box-shadow: 0 22px 40px -22px rgba(7, 42, 55, .6); }
.mfav__c img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.32, .72, 0, 1); }
.mfav__c::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, rgba(7, 42, 55, 0), rgba(7, 42, 55, .9) 80%); }
.mfav__c p { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; margin: 0; display: flex; align-items: end; justify-content: space-between; gap: 10px; color: var(--white); }
.mfav__c b { font: 400 1.25rem/1 var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; text-wrap: balance; }
.mfav__c span { font: 400 1.25rem/1 var(--font-display); color: var(--sky); white-space: nowrap; }
@media (hover: hover) { .mfav__c:hover img { transform: scale(1.06); } }
@media (min-width: 900px) {
  .mfav { margin: 0 0 44px; padding: 10px 0 20px; overflow: visible; justify-content: center; gap: 22px; }
  .mfav__c { width: min(22%, 270px); }
  .mfav__c:nth-child(odd) { rotate: -1.6deg; } .mfav__c:nth-child(even) { rotate: 1.4deg; translate: 0 14px; }
  .mfav--one .mfav__c { rotate: -1.6deg; }
}

/* the sheet */
.mp__sheet { padding: 44px 22px 56px; }
.msec { padding: 0 0 30px; scroll-margin-top: 100px; }
.item, .msec__add { break-inside: avoid; }
.msec__title, .msec__note { break-after: avoid; }
.msec + .msec { padding-top: 26px; border-top: 1.5px dashed rgba(10, 56, 72, .22); }
.msec__title { display: flex; align-items: center; gap: 12px; font: 400 clamp(1.9rem, 4vw, 2.4rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.msec__title::before { content: ""; flex: none; width: 22px; aspect-ratio: 328 / 355; background: var(--terra); -webkit-mask: url(/logo/drift-icon-logo.svg) center / contain no-repeat; mask: url(/logo/drift-icon-logo.svg) center / contain no-repeat; }
.msec__note { margin: 8px 0 0; font-size: .95rem; color: var(--terra); font-weight: 600; }
.items { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.item { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
.item--ph { grid-template-columns: 68px 1fr; }
.item__ph { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 16px -8px rgba(7, 42, 55, .55); }
.item__top { display: flex; align-items: baseline; gap: 8px; }
.item__name { font-weight: 800; font-size: 1.06rem; }
.item__dots { flex: 1; border-bottom: 1.5px dotted rgba(10, 56, 72, .35); transform: translateY(-4px); min-width: 16px; }
.item__dots:last-child { display: none; }
.item__price { font: 400 1.25rem/1 var(--font-display); white-space: nowrap; }
.item__price small { font: 600 .7rem/1 var(--font-body); opacity: .7; }
.item__desc { margin: 3px 0 0; font-size: .95rem; color: rgba(10, 56, 72, .82); }
.item__add { margin: 4px 0 0; font-size: .85rem; color: var(--terra); }
.tag { font: 800 .6rem/1 var(--font-body); letter-spacing: .06em; text-decoration: none; border: 1px solid currentColor; border-radius: 3px; padding: 3px 4px 2px; color: var(--terra); cursor: help; white-space: nowrap; }
.msec__add { margin: 16px 0 0; font-size: .92rem; color: var(--terra); }
.sizes { display: inline-flex; gap: 14px; font-weight: 800; white-space: nowrap; }
@media (min-width: 900px) {
  .mp__sheet { padding: 64px 60px 70px; columns: 2; column-gap: 70px; column-rule: 1.5px dashed rgba(10, 56, 72, .18); }
  .msec + .msec { border-top: 0; padding-top: 0; }
  .msec { padding-bottom: 40px; }
  .items { gap: 20px; }
}

/* key and notes */
.mlegend { margin-top: 50px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.mlegend__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: .88rem; margin: 6px 0; }
.mlegend .note { max-width: 46em; margin: 0; }
.mlegend .btns { justify-content: center; margin-top: 16px; }
/* tabs sit below the nav while it is showing, and slide to the top when it hides */
.mtabs { transition: top .4s cubic-bezier(.2, .7, .2, 1); }
.nav:not(.is-hidden) ~ main .mtabs { top: calc(var(--nav-h) + 8px); }
@media (min-width: 900px) { .nav:not(.is-hidden) ~ main .mtabs { top: calc(var(--nav-h) + 16px); } }

/* ---------- 2026-11-14 QA pass: dish photos sit on the right, so every name, description and price lines up down the page ---------- */
.item--ph { grid-template-columns: 1fr 60px; }
.item__ph { order: 2; width: 60px; height: 60px; }
.msec:has(.item--ph) .item:not(.item--ph):not(.item--sub) { grid-template-columns: 1fr 60px; }

/* ---------- prices by size (wine by the glass and bottle), 2026-11-14: a small label over each price; on phones they sit on their own line ---------- */
.sizes { display: inline-flex; gap: 18px; align-items: flex-end; white-space: nowrap; font-weight: 400; }
.sizes > span { display: grid; justify-items: end; gap: 3px; font: 400 1.2rem/1 var(--font-display); }
.sizes small { font: 800 .58rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
@media (max-width: 599px) {
  .item__top:has(.sizes) { flex-wrap: wrap; row-gap: 8px; }
  .item__top:has(.sizes) .item__dots { display: none; }
  .item__top:has(.sizes) .sizes { flex-basis: 100%; gap: 26px; }
  .item__top:has(.sizes) .sizes > span { justify-items: start; }
  .item:has(.sizes) .item__desc { margin-top: 6px; }
}

/* ---------- small phones (2026-11-14): rows can shrink inside the sheet, so nothing pokes out at 320 to 360px ---------- */
@media (max-width: 899px) {
  .item--ph { grid-template-columns: minmax(0, 1fr) 60px; }
  .msec:has(.item--ph) .item:not(.item--ph):not(.item--sub) { grid-template-columns: minmax(0, 1fr) 60px; }
  .item__main, .item__name { min-width: 0; }
  .item__dots { min-width: 8px; }
}
@media (max-width: 374px) { .mp__sheet { padding-left: 16px; padding-right: 16px; } .sizes, .item__top:has(.sizes) .sizes { gap: 16px; } }

/* prices by size sit on one line (small label, then price) so wine rows are as tight as every other row */
.sizes { align-items: baseline; gap: 16px; }
.sizes > span { display: inline-flex; align-items: baseline; gap: 5px; }
@media (max-width: 599px) { .item__top:has(.sizes) { row-gap: 4px; } .item:has(.sizes) .item__desc { margin-top: 3px; } }

/* ---------- wine lists (2026-11-14): region sits with the name, prices on the right; every row is one tidy block ---------- */
.item__region { font: 400 .86rem/1.3 var(--font-body); color: rgba(10, 56, 72, .7); margin-left: .7em; white-space: nowrap; }
.item--wine .item__name { text-wrap: balance; }
@media (max-width: 599px) {
  .item__region { display: block; margin: 1px 0 0; }
  .item--wine .item__top { flex-wrap: wrap; row-gap: 7px; align-items: flex-start; }
  .item--wine .item__name { flex-basis: 100%; }
  .item--wine .item__dots { display: none; }
  .item--wine .sizes, .item--wine .item__top:has(.sizes) .sizes { flex-basis: 100%; gap: 22px; }
  .item--wine .item__price { flex-basis: 100%; }
}
/* region always sits directly under the wine's name (tight), prices stay level with the name */
.item__region { display: block; margin: 1px 0 0; white-space: normal; }
.item--wine .item__top { align-items: flex-start; }
.item--wine .item__dots { transform: none; margin-top: .95em; }
.item--wine .sizes, .item--wine .item__price { margin-top: .12em; }
.item--wine .item__name { text-wrap: normal; }
/* laptops (two narrow columns): same stacked wine rows as phones, so long names never wrap around the prices */
@media (min-width: 900px) and (max-width: 1339px) {
  .item--wine .item__top { flex-wrap: wrap; row-gap: 6px; }
  .item--wine .item__name { flex-basis: 100%; }
  .item--wine .item__dots { display: none; }
  .item--wine .sizes, .item--wine .item__top:has(.sizes) .sizes, .item--wine .item__price { flex-basis: 100%; gap: 22px; margin-top: 0; }
}
@media (max-width: 389px) {
  .item--wine .sizes, .item--wine .item__top:has(.sizes) .sizes { gap: 4px 12px; flex-wrap: wrap; }
  .item--wine .sizes > span { font-size: 1.08rem; gap: 4px; }
  .item--wine .sizes small { letter-spacing: .08em; }
}
/* phones: the region follows the wine's name on the same line (smaller), prices underneath */
@media (max-width: 599px) {
  .item--wine .item__region { display: inline; margin: 0 0 0 .55em; white-space: nowrap; font-size: .84rem; }
  .item--wine .item__top { row-gap: 5px; }
}
