/* Home v2 shared chrome (plan pl-hh2-home-v2-subs-pages-20261129, leg B1, 2026-11-29): the launch banner (S2), the masthead + second deck (S1) and the
   site menu panel, on every public shop page. Ported from the Fable design docs/design/home-v2-20261129/home-v2.html (lines 35-183 + the reduced-motion block);
   values unchanged. Loads after order-flow.css and deli.css (build.mjs), so it restyles the existing ids; markup in src/partials/render.mjs header / shopHeaderBar /
   shopMenu. site.css's global 44px link rule (a[href]:not(.brand)..., 0,5,1) and order-flow.css's id rules are out-ranked with :not(#hm-x) (id weight, matches nothing). */
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-800-latin.woff2') format('woff2'); font-style: normal; font-weight: 800; font-display: swap; }
:root {
  --hm-ink: #062f1b;
  --hm-paper: #f9f4e7;
  --hm-ticket: #ffcf11;
  --hm-pink: #f82978;
  --hm-arrow: #dc0c61;
  --hm-rule: #36503a;
  --hm-card-border: #dad5c6;
  --hm-white: #ffffff;
  --hm-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --hm-body: 'Plus Jakarta Sans Deli', 'Plus Jakarta Sans', Arial, sans-serif;
  --hm-paper-soft: rgba(249, 244, 231, .82);
  --hm-ease: cubic-bezier(.2, .7, .2, 1);
  --hm-dur-quick: 160ms;
  --hm-dur-panel: 220ms;
}
html { scroll-padding-top: 100px; }
.hm-masthead :focus-visible, .hm-quick :focus-visible, .site-menu :focus-visible { outline-color: var(--hm-ticket); }
.site-header.hm-masthead :focus-visible, #site-menu.site-menu :focus-visible { outline-color: var(--hm-ticket); }
.hm-launch :focus-visible { outline-color: var(--hm-ink); outline-offset: -4px; }
/* sign-in state, as the site does it: html[data-auth-state] = unknown | out | customer | staff (js/auth-fb.js); covers the home page's .hm-account rows too */
html[data-auth-state="unknown"] [data-auth-show]:not([data-auth-show~="unknown"]),
html[data-auth-state="out"] [data-auth-show]:not([data-auth-show~="out"]),
html[data-auth-state="customer"] [data-auth-show]:not([data-auth-show~="customer"]),
html[data-auth-state="staff"] [data-auth-show]:not([data-auth-show~="staff"]) { display: none !important; }
.hm-arr { font-family: Arial, sans-serif; font-weight: 400; }
.hm-new { display: inline-block; flex: none; padding: 4px 6px 3px; border-radius: 3px; background: var(--hm-ticket); color: var(--hm-ink); font: 800 13px/1 var(--hm-heading); letter-spacing: .05em; text-transform: uppercase; }
@keyframes hm-marquee { to { transform: translateX(-50%); } }

/* the reset under the global link rule, for the chrome's own links only (each rule below sets what it needs) */
:where(.hm-launch, .hm-masthead, .hm-quick, #site-menu) a[href]:not(#hm-x) { min-height: 0; min-width: 0; padding-block: 0; }

/* ============ S2. Launch banner (after the pause bar, before the header; hidden with the other subs entries until the switch is on) ============ */
.hm-launch { display: flex; align-items: stretch; height: 44px; background: var(--hm-ticket); color: var(--hm-ink); font-family: var(--hm-body); }
.hm-launch-link:not(#hm-x) { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; overflow: hidden; color: var(--hm-ink); text-decoration: none; }
.hm-launch-link:not(#hm-x):hover { color: var(--hm-ink); }
.hm-launch-track { display: flex; flex: none; width: max-content; animation: hm-marquee 56s linear infinite; }
.hm-launch-set { display: flex; flex: none; align-items: center; }
.hm-launch-msg { flex: none; padding: 2px 20px 0; font: 800 17px/1 var(--hm-heading); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.hm-launch-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--hm-pink); }
.hm-launch-link:hover .hm-launch-track, .hm-launch-link:focus-visible .hm-launch-track, .hm-launch[data-paused] .hm-launch-track { animation-play-state: paused; }
.hm-launch-link:hover .hm-launch-msg { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.hm-pause { flex: none; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; cursor: pointer; }
.hm-pause svg { width: 14px; height: 14px; }
.hm-pause .hm-ico-play, .hm-pause[aria-pressed="true"] .hm-ico-pause { display: none; }
.hm-pause[aria-pressed="true"] .hm-ico-play { display: block; }
.hm-launch .hm-pause { min-height: 0; border-left: 2px solid var(--hm-ink); background: var(--hm-ticket); color: var(--hm-ink); }
@media (min-width: 1100px) { .hm-launch { height: 38px; } .hm-launch-msg { font-size: 18px; padding-inline: 24px; } }

/* ============ S1. Masthead (every public shop page: one design, replaces the cream deli masthead + striped awning) ============ */
.site-header.hm-masthead { position: sticky; top: 0; z-index: 40; border-bottom: 0; background: var(--hm-ink); color: var(--hm-paper); font-family: var(--hm-body); }
.hm-masthead .header-inner { display: flex; align-items: center; justify-content: flex-start; gap: clamp(14px, 2.2vw, 36px); width: auto; max-width: none; min-height: clamp(76px, 6.1vw, 92px); margin: 0; padding: 0 4%; }
.hm-masthead .brand { flex: none; display: inline-flex; align-items: center; gap: clamp(10px, 1vw, 16px); color: var(--hm-paper); text-decoration: none; }
.hm-masthead .brand img { display: block; width: clamp(60px, 5vw, 76px); height: auto; aspect-ratio: 1; }
.hm-masthead .brand-name { display: inline; color: var(--hm-paper); font: 800 clamp(27px, 2.5vw, 38px)/1 var(--hm-heading); letter-spacing: 0; white-space: nowrap; }
.hm-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 38px); margin-left: clamp(2px, .8vw, 14px); }
.hm-nav a:not(#hm-x) { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 48px; padding: 0; color: var(--hm-paper); font: 800 clamp(19px, 1.62vw, 26px)/1 var(--hm-heading); letter-spacing: 0; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.hm-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 3px; background: var(--hm-pink); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--hm-dur-quick) var(--hm-ease); }
.hm-nav a:hover::after, .hm-nav a:focus-visible::after, .hm-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hm-masthead .header-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(6px, 1.2vw, 18px); }
.hm-masthead .account-chip:not(#hm-x) { height: auto; min-height: 44px; min-width: 0; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: var(--hm-paper); font: 650 15px/1 var(--hm-body); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; white-space: nowrap; transition: text-decoration-color var(--hm-dur-quick) var(--hm-ease); }
.hm-masthead .account-chip:not(#hm-x):hover { border: 0; background: transparent; color: var(--hm-paper); text-decoration-color: currentColor; }
.hm-masthead #basket-open.basket-pill:not(#hm-x) { position: relative; display: inline-flex; align-items: center; gap: 10px; width: auto; height: 48px; min-height: 0; min-width: 0; padding: 2px 16px 0 14px; border-radius: 6px; background: var(--hm-paper); color: var(--hm-ink); font: 800 clamp(19px, 1.62vw, 26px)/1 var(--hm-heading); text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color var(--hm-dur-quick) var(--hm-ease); }
.hm-masthead #basket-open.basket-pill:not(#hm-x):hover { background: var(--hm-white); color: var(--hm-ink); }
.hm-masthead #basket-open svg { flex: none; width: 22px; height: 22px; margin-top: -2px; }
.hm-masthead .basket-label { display: inline; }
.hm-masthead #basket-open .basket-count { display: inline-block; min-width: 24px; height: 24px; margin-top: -2px; padding: 0 7px; border-radius: 12px; background: var(--hm-ink); color: var(--hm-paper); font: 700 13px/24px var(--hm-body); text-align: center; }
.hm-masthead #basket-open .basket-price { display: inline; margin-top: -1px; font: 700 15px/1 var(--hm-body); text-transform: none; }
/* empty basket: just the bag + "Basket"; js/order-flow.js paints the aria-label "Basket, N meals, £x" (the design's data-empty hook, keyed on what the site really sets) */
.hm-masthead #basket-open[aria-label^="Basket, 0 "] .basket-count, .hm-masthead #basket-open[aria-label^="Basket, 0 "] .basket-price { display: none; }
.hm-masthead #menu-toggle.menu-toggle { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--hm-paper); cursor: pointer; transition: background-color var(--hm-dur-quick) var(--hm-ease); }
.hm-masthead #menu-toggle.menu-toggle:hover { border: 0; background: rgba(249, 244, 231, .12); }
.hm-masthead .menu-lines { display: grid; gap: 6px; width: 24px; }
.hm-masthead .menu-lines i { display: block; width: auto; height: 2.5px; border-radius: 2px; background: currentColor; }
.hm-masthead .menu-lines i:nth-child(3) { display: block; }
.hm-masthead .awning { height: 5px; border: 0; background: var(--hm-pink); }
/* second deck: the same links on their own row under the stripe when the bar is too narrow to hold them. Not sticky: it scrolls away. */
.hm-quick { display: none; background: var(--hm-ink); border-bottom: 1px solid var(--hm-rule); font-family: var(--hm-body); }
.hm-quick a:not(#hm-x) { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 2px 8px 0; color: var(--hm-paper); font: 800 clamp(15px, 4.25vw, 20px)/1 var(--hm-heading); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.hm-quick a + a { border-left: 1px solid var(--hm-rule); }
.hm-quick a:hover, .hm-quick a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--hm-pink); }
@media (max-width: 1099px) {
  .hm-nav { display: none; }
  .hm-quick { display: flex; }
  .hm-masthead .header-inner { min-height: 72px; padding: 0 12px 0 22px; gap: 8px; }
  .hm-masthead .brand img { width: 58px; }
  .hm-masthead .brand-name { font-size: 29px; }
  .hm-masthead .header-actions { gap: 4px; }
  .hm-masthead #basket-open.basket-pill:not(#hm-x) { justify-content: center; width: 48px; padding: 0; background: transparent; color: var(--hm-paper); }
  .hm-masthead #basket-open.basket-pill:not(#hm-x):hover { background: rgba(249, 244, 231, .12); color: var(--hm-paper); }
  .hm-masthead #basket-open svg { width: 24px; height: 24px; margin: 0; }
  .hm-masthead .basket-label, .hm-masthead #basket-open .basket-price { display: none; }
  .hm-masthead #basket-open .basket-count { position: absolute; top: 3px; right: 0; min-width: 20px; height: 20px; margin: 0; padding: 0 5px; border-radius: 10px; background: var(--hm-ticket); color: var(--hm-ink); font: 800 12.5px/20px var(--hm-body); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .site-menu .menu-head { padding-left: 20px; }
  #site-menu.site-menu .menu-list { padding-inline: 20px; }
  #site-menu.site-menu .menu-account { margin-inline: 20px; }
  .hm-masthead .header-inner { min-height: 60px; padding: 0 6px 0 14px; gap: 4px; }
  .hm-masthead .brand { gap: 8px; }
  .hm-masthead .brand img { width: 46px; }
  .hm-masthead .brand-name { font-size: 22px; }
  .hm-masthead .header-actions { gap: 0; }
  .hm-masthead .account-chip:not(#hm-x) { padding: 0 6px; font-size: 14px; }
  .hm-masthead .awning { height: 4px; }
  .hm-quick a:not(#hm-x) { min-height: 44px; }
  .hm-quick .hm-new { font-size: 12.5px; padding: 3px 5px 2px; }
}
@media (max-width: 374px) { .hm-quick .hm-new { display: none; } .hm-quick a:not(#hm-x) { padding-inline: 4px; } }
@media (max-width: 339px) { .hm-masthead .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---- Site menu panel (the existing dialog#site-menu, restyled in the same language; every id kept) ---- */
dialog#site-menu.site-menu { position: fixed; inset: 0 0 0 auto; width: min(420px, calc(100vw - 44px)); height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--hm-ink); color: var(--hm-paper); font-family: var(--hm-body); overflow-y: auto; }
dialog#site-menu.site-menu::backdrop { background: rgba(6, 47, 27, .6); }
dialog#site-menu.site-menu[open] { animation: hm-panel-in var(--hm-dur-panel) var(--hm-ease); }
dialog#site-menu.site-menu[open]::backdrop { animation: hm-fade-in var(--hm-dur-quick) linear; }
@keyframes hm-panel-in { from { transform: translateX(28px); opacity: 0; } }
@keyframes hm-fade-in { from { opacity: 0; } }
#site-menu.site-menu .drawer-layout { display: block; height: auto; min-height: 100%; padding-bottom: 28px; overflow: visible; }
.site-menu .menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 12px 0 24px; border-bottom: 5px solid var(--hm-pink); background: var(--hm-ink); }
.site-menu .menu-head h2 { margin: 0; color: var(--hm-paper); font: 800 30px/1 var(--hm-heading); text-transform: uppercase; }
.site-menu .icon-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--hm-paper); cursor: pointer; }
.site-menu .icon-btn:hover { background: rgba(249, 244, 231, .12); }
#site-menu.site-menu .menu-list { display: grid; padding: 6px 24px 0; }
dialog#site-menu.site-menu .menu-list a[href] { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: auto; padding: 0; background: none; color: var(--hm-paper); text-decoration: none; }
dialog#site-menu.site-menu .menu-list a.menu-major[href] { min-height: 64px; padding-block: 12px; border-bottom: 2px solid var(--hm-rule); font: 800 clamp(23px, 6.4vw, 31px)/.95 var(--hm-heading); text-transform: uppercase; }
.site-menu .menu-major .hm-arr { color: var(--hm-ticket); font-size: 22px; transition: transform var(--hm-dur-quick) var(--hm-ease); }
.site-menu .menu-major:hover .hm-arr { transform: translateX(4px); }
.site-menu .menu-major span:first-child { display: inline-flex; align-items: center; gap: 10px; }
dialog#site-menu.site-menu .menu-list a.menu-minor[href] { min-height: 46px; font: 600 16px/1.2 var(--hm-body); color: var(--hm-paper-soft); }
.site-menu .menu-major + .menu-minor { margin-top: 10px; }
dialog#site-menu.site-menu .menu-list a[href]:hover, dialog#site-menu.site-menu .menu-list a[aria-current="page"] { background: none; color: var(--hm-paper); }
dialog#site-menu.site-menu .menu-list a.menu-minor[href]:hover, dialog#site-menu.site-menu .menu-rows a[href]:hover { color: var(--hm-paper); text-decoration: underline; text-underline-offset: 4px; }
#site-menu.site-menu .menu-account { min-height: 0; margin: 14px 24px 0; padding-top: 18px; border-top: 2px solid var(--hm-rule); }
#site-menu.site-menu .menu-skeleton span { margin: 0 0 8px; background: rgba(249, 244, 231, .12); }
#site-menu.site-menu .menu-staff-row { padding: 0; }
dialog#site-menu.site-menu .menu-rows a[href], dialog#site-menu.site-menu .menu-rows button { display: flex; align-items: center; width: auto; max-width: none; min-height: 46px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--hm-paper); font: 600 16px/1.2 var(--hm-body); text-align: left; text-decoration: none; cursor: pointer; }
dialog#site-menu.site-menu .menu-rows a[href]:hover, dialog#site-menu.site-menu .menu-rows button:hover { background: none; color: var(--hm-paper); }
dialog#site-menu.site-menu .menu-rows a.menu-signin[href] { justify-content: center; min-height: 50px; margin-bottom: 6px; padding-top: 3px; border-radius: 6px; background: var(--hm-paper); color: var(--hm-ink); font: 800 23px/1 var(--hm-heading); text-transform: uppercase; }
dialog#site-menu.site-menu .menu-rows a.menu-signin[href]:hover { background: var(--hm-white); color: var(--hm-ink); text-decoration: none; }
.site-menu .menu-eyebrow { margin: 0 0 4px; color: var(--hm-ticket); font: 800 20px/1.1 var(--hm-heading); text-transform: uppercase; }

/* ---- Reduced motion: nothing moves (the banner sits still, centred, one message) ---- */
@media (prefers-reduced-motion: reduce) {
  .hm-launch *, .hm-masthead *, .hm-quick *, .site-menu * { transition-duration: 0s !important; }
  .hm-launch-track { animation: none; width: auto; }
  .hm-launch-link:not(#hm-x) { justify-content: center; }
  .hm-launch-set[aria-hidden], .hm-launch-set .hm-launch-msg:not(:first-child), .hm-launch-set .hm-launch-dot, .hm-pause { display: none; }
  dialog#site-menu.site-menu[open], dialog#site-menu.site-menu[open]::backdrop { animation: none; }
}
