/* The order page and the orders board. Same palette and faces as the home page (index.html),
   written small and phone-first: one column, 48px controls, nothing that needs a hover. */
:root {
  --bg: #f8f5ef; --surface: #ede7dc; --ink: #1f1b18; --muted: #645c54;
  --action: #b8381f; --action-ink: #ffffff; --line: rgba(31, 27, 24, .14);
  --ok: #2f6b3f;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --r: 8px;      /* buttons, fields, chips */
  --r-lg: 12px;  /* cards, panels, photographs */
  --col: 560px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
h1, h2, h3, p, ul, fieldset, legend { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(32px, 7vw, 44px); }
h2 { font-size: clamp(24px, 5vw, 30px); }
h3 { font: 500 13px/16px var(--font-text); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }

.col { width: min(100% - 40px, var(--col)); margin-inline: auto; }
.col--wide { --col: 1120px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 400 20px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; min-height: 44px; }
.brand svg { width: 20px; height: 20px; fill: var(--ink); }
.top__link { font-weight: 500; font-size: 15px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--line); }

.top__links { display: inline-flex; gap: 20px; }
.intro { padding: 32px 0 8px; display: grid; gap: 12px; }
.block { padding-top: 40px; display: grid; gap: 16px; scroll-margin-top: 120px; }
.block > h2 + p { margin-top: -8px; }

/* menu rows: the whole row is the button */
.list { border-top: 1px solid var(--line); }
.item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px;
  width: 100%; min-height: 72px; padding: 12px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line);
}
.item__name { font-weight: 500; display: block; }
.item__desc { color: var(--muted); display: block; }
.item__spec { display: block; font-size: 13px; line-height: 18px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.item__side { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plus { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: var(--r); transition: background .15s, color .15s; }
.plus svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.item:active .plus { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .item:hover .plus { background: var(--ink); color: var(--bg); } }
.item--own { border-radius: var(--r-lg); background: var(--surface); border-bottom: 0; padding: 16px; margin-bottom: 8px; }

/* a neighbour's recipe: a card with their name on it */
.people { display: grid; gap: 8px; }
.item--by { border-radius: var(--r-lg); background: var(--surface); border-bottom: 0; padding: 16px; align-items: start; }
.item__by { display: block; font: 500 13px/16px var(--font-text); color: var(--action); margin-bottom: 6px; }
.item--by .item__name { font: 400 22px/1.2 var(--font-display); letter-spacing: -0.02em; margin-bottom: 6px; }
.method { border-radius: var(--r-lg); background: var(--surface); padding: 16px; display: grid; gap: 12px; }
.method h3 { color: var(--ink); }
.method ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* choice chips: real radios under labels */
.choice { display: grid; gap: 10px; }
.choice legend { font: 500 14px/20px var(--font-text); margin-bottom: 10px; }
.chips { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: grid; place-items: center; text-align: center; min-height: 48px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  font-weight: 500; line-height: 1.2; transition: background .15s, color .15s, border-color .15s;
}
.chip small { display: block; font: 400 12px/1.3 var(--font-text); color: var(--muted); margin-top: 2px; }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:checked + span small { color: inherit; opacity: .75; }
.chip input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; }

/* folded groups: beans and roast, brew settings */
.fold { border: 1px solid var(--line); border-radius: var(--r-lg); }
.fold > summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 14px; position: relative; display: grid; gap: 2px; min-height: 48px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary b { font: 500 14px/20px var(--font-text); }
.fold > summary span { font-size: 13px; line-height: 18px; color: var(--muted); }
.fold > summary::after { content: ""; position: absolute; right: 18px; top: 22px; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(-135deg); top: 26px; }
.fold__body { display: grid; gap: 24px; padding: 4px 14px 16px; }

/* counters: pumps of syrup, spoons of sugar */
.counts { border-top: 1px solid var(--line); }
.count { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; border-bottom: 1px solid var(--line); }
.count__name { display: block; font-weight: 500; }
.count__unit { display: block; font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper button:disabled { opacity: .3; cursor: default; }

/* bean cards: name, where it grows, what it tastes like, three five-dot meters */
.beans { display: grid; gap: 8px; }
.bean { position: relative; display: block; }
.bean input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bean__in { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.bean input:checked + .bean__in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.bean input:focus-visible + .bean__in { outline: 2px solid var(--action); outline-offset: 2px; }
.bean__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bean__name { font-weight: 500; }
.bean__name::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 1px solid var(--muted); border-radius: 50%; vertical-align: -2px; }
.bean input:checked + .bean__in .bean__name::before { border: 4px solid var(--ink); }
.bean__region { font-size: 13px; color: var(--muted); text-align: right; }
.bean__notes { color: var(--ink); }
.bean__meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 2px; }
.meter { display: grid; gap: 5px; }
.meter__label { font-size: 12px; line-height: 14px; color: var(--muted); }
.meter__dots { display: flex; gap: 4px; }
.meter__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.meter__dots i.on { background: var(--ink); }
.bean__best { font-size: 13px; line-height: 18px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.bean__extra { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* fields */
.field { display: grid; gap: 6px; }
.field label, .field .label { font: 500 14px/20px var(--font-text); }
.field input, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  font-size: 16px;
}
.field textarea { height: auto; min-height: 72px; padding: 12px 14px; resize: vertical; }
.field input[aria-invalid="true"], .chips[aria-invalid="true"] .chip span { border-color: var(--action); }
.field__error { color: var(--action); font-size: 14px; line-height: 20px; }
.flat { display: grid; grid-template-columns: 1fr; gap: 20px; }
.flat__preview { font: 400 20px/1 var(--font-display); letter-spacing: -0.02em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r); border: 1px solid transparent;
  font: 500 16px/1 var(--font-text); text-decoration: none; transition: transform .12s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--secondary { background: transparent; border-color: var(--ink); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.textbtn { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

.stepper { display: inline-grid; grid-template-columns: 40px 32px 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); height: 44px; }
.stepper button { height: 100%; background: none; border: 0; font-size: 20px; line-height: 1; }
.stepper output { text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }

/* the customiser: a sheet from the foot on a phone, a centred panel on a wide screen */
dialog.sheet {
  width: 100%; max-width: var(--col); max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink); border-radius: 16px 16px 0 0; overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(31, 27, 24, .5); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
@media (min-width: 720px) { dialog.sheet { margin: auto; border-radius: 16px; } }
.sheet__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px 20px 12px; }
.sheet__close { width: 44px; height: 44px; margin: -8px -8px 0 0; display: grid; place-items: center; background: none; border: 0; }
.sheet__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.sheet__body { padding: 8px 20px 20px; display: grid; gap: 24px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.sheet__foot .stepper { height: 48px; }

/* the order */
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line__name { font-weight: 500; }
.line__opts { grid-column: 1; color: var(--muted); }
.line__side { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 4px; }
.line__price { font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; font-weight: 500; padding-top: 4px; font-variant-numeric: tabular-nums; }
.empty { border-radius: var(--r-lg); padding: 20px; background: var(--surface); }
.form { display: grid; gap: 20px; }
.status { min-height: 20px; font-size: 14px; }
.status[data-kind="error"] { color: var(--action); }

/* the bar at the foot */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); transition: transform .24s cubic-bezier(.2, .7, .2, 1); }
.cartbar[data-hidden] { transform: translateY(100%); visibility: hidden; }
.cartbar .btn { justify-content: space-between; }

/* the confirmation */
.done { padding: 56px 0 0; display: grid; gap: 20px; }
.done__flat { font: 400 clamp(72px, 24vw, 128px)/.9 var(--font-display); letter-spacing: -0.045em; }

/* --- the orders board (orders.html) --- */
.board { display: grid; gap: 32px; padding-top: 24px; }
@media (min-width: 900px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; } }
.lane { display: grid; gap: 12px; align-content: start; }
.lane__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.lane__head h2 { font-size: 22px; }
.ticket { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.ticket__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ticket__flat { font: 400 34px/1 var(--font-display); letter-spacing: -0.03em; }
.ticket ul { display: grid; gap: 8px; }
.ticket li b { font-weight: 500; }
.ticket__note { border-radius: var(--r-lg); background: var(--surface); padding: 8px 10px; }
.ticket__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket__actions .btn { min-height: 44px; padding: 0 16px; flex: 1; }
.login { padding-top: 56px; display: grid; gap: 20px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.dot[data-off] { background: var(--muted); }

/* the first screen: who you are, asked once */
.welcome { display: grid; }
.welcome__words { width: min(100% - 40px, 440px); margin: 0 auto; padding: 32px 0 48px; display: grid; gap: 16px; align-content: start; }
.welcome h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.welcome .lead { font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.welcome__shot { margin: 20px 20px 0; order: -1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: var(--r-lg); }
.welcome__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 900px) {
  .welcome { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - 57px); }
  .welcome__words { padding: 72px 0; align-content: center; }
  .welcome__shot { order: 0; aspect-ratio: auto; margin: 24px 24px 24px 0; max-height: calc(100dvh - 105px); border-radius: 16px; }
}
.phone { display: grid; grid-template-columns: auto 1fr; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.phone span { padding: 0 0 0 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.phone input { border: 0; background: transparent; padding-left: 8px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.phone:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.phone input:focus-visible { outline: none; }
.phone:has(input[aria-invalid="true"]) { border-color: var(--action); }

/* saved flats */
.chips--flats { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.chip--add { background: none; border: 0; padding: 0; text-align: inherit; }
.chip--add span { border-style: dashed; color: var(--muted); font-weight: 400; }
.newflat { border-radius: var(--r-lg); display: grid; gap: 16px; padding: 16px; background: var(--surface); }
.item.is-added .plus { background: var(--ok); border-color: var(--ok); color: #fff; }

/* the orders board: ringer notices, phone links */
.notice { border-radius: var(--r-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; background: var(--surface); width: 100%; border: 0; text-align: left; }
.notice p { flex: 1 1 220px; }
.notice b { font-weight: 500; }
.notice--ring { background: var(--action); color: var(--action-ink); font-size: 18px; min-height: 64px; animation: ring-pulse 1s ease-in-out infinite alternate; }
@keyframes ring-pulse { to { background: #8f2713; } }
@media (prefers-reduced-motion: reduce) { .notice--ring { animation: none; } }
.ticket__phone { display: flex; gap: 16px; font-weight: 500; }
.ticket__phone a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }

.notice--quiet { background: none; border: 1px solid var(--line); padding: 4px 16px; }

/* your past orders */
.orders { display: grid; gap: 8px; }
.past { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; }
.past__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.past__items { display: grid; gap: 8px; }
.past__items li { display: grid; }
.past__items .line__opts { color: var(--muted); }
.past__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.past__foot .btn { min-height: 44px; padding: 0 16px; }
.tag { font: 500 13px/1 var(--font-text); padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); white-space: nowrap; }
.tag[data-status="making"] { background: var(--action); color: var(--action-ink); }
.tag[data-status="delivered"] { background: #dfeadf; color: #1f4a2b; }
.tag[data-status="cancelled"] { color: var(--muted); }

/* Menu / My drinks / My orders */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 20px; padding: 4px; background: var(--surface); border-radius: var(--r-lg); position: sticky; top: 64px; z-index: 4; }
.tabs button { min-height: 44px; border: 0; background: none; border-radius: var(--r); font-weight: 500; font-size: 15px; white-space: nowrap; }
.tabs button[aria-pressed="true"] { background: var(--bg); box-shadow: 0 1px 2px rgba(31, 27, 24, .12); }
.saved { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.saved .item { border-bottom: 0; padding-bottom: 4px; min-height: 0; }
.saved__remove, .past__save { min-height: 44px; font-size: 14px; font-weight: 400; color: var(--muted); justify-self: start; }
.past__save:disabled { text-decoration: none; cursor: default; }
.savebox { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.check { display: flex; align-items: center; gap: 12px; min-height: 28px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }

/* the recipe: label on the left, what to do on the right */
.recipe-card { background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; }
.recipe-card h3 { color: var(--ink); }
.recipe { margin: 0; display: grid; gap: 6px; }
.recipe > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.recipe dt { font-size: 13px; line-height: 22px; color: var(--muted); }
.recipe dd { margin: 0; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.ticket .recipe { margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: var(--r); }

/* wide screens: the menu on the left, the order always in view on the right */
@media (min-width: 1000px) {
  #shop { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 380px); column-gap: 64px; width: min(100% - 80px, 1004px); align-items: start; }
  #shop > * { grid-column: 1; }
  #shop > #checkout { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 73px; padding-top: 32px; max-height: calc(100dvh - 73px); overflow-y: auto; padding-bottom: 24px; }
  .cartbar { display: none; }
  body { padding-bottom: 48px; }
}

/* jump links at the top of the menu */
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
/* the filters stay in reach while the menu scrolls (a long menu on a phone) */
.jump { position: sticky; top: var(--top-h, 57px); z-index: 4; background: var(--bg); padding-bottom: 10px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; white-space: nowrap; }
#g-shots, #g-filter, #g-iced, #people-h, #food-h { scroll-margin-top: 140px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.ticket__recipe { min-height: 44px; }
#recipe-sheet .recipe > div { grid-template-columns: 80px minmax(0, 1fr); }
#recipe-sheet .recipe dd { font-size: 17px; line-height: 26px; }
#recipe-sheet .recipe dt { line-height: 26px; }
#recipe-sheet .recipe-card h3 { font: 400 22px/1.2 var(--font-display); letter-spacing: -0.02em; }

/* menu rows in two parts: the words open the customiser, the + adds the drink as it comes */
.item--split { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px; min-height: 0; padding: 0; }
.item__main { display: block; text-align: left; background: none; border: 0; padding: 14px 0; min-height: 64px; }
.item__main .item__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__add { display: grid; place-items: center; min-width: 48px; min-height: 48px; background: none; border: 0; padding: 0; }
.item--split.item--own, .item--split.item--by { padding: 4px 12px 4px 16px; }
.item--split.item--own .item__add { display: flex; }
.item--split.item--own .item__desc { display: none; }
@media (hover: hover) { .item__add:hover .plus { background: var(--ink); color: var(--bg); } }
.plus--done { background: var(--ok); border-color: var(--ok); color: #fff; }
.plus--done svg { stroke-width: 2; stroke-linejoin: round; }
.intro { padding: 24px 0 0; }
.intro h1 { font-size: clamp(26px, 6vw, 36px); }
.tabs { margin-top: 16px; }
.jump { padding-top: 12px; }
.jump button { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 15px; white-space: nowrap; }
.jump button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hint { margin-top: 12px; }
#view-menu > .block:first-of-type { padding-top: 16px; }
#view-menu .block { padding-top: 28px; }
.line__opts { display: grid; justify-items: start; }
.line__change { min-height: 36px; font-size: 14px; font-weight: 500; color: var(--ink); }

/* the recipes page */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.admin-row { grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
.admin-row.is-hidden .item__name, .admin-row.is-hidden .item__desc { color: var(--muted); }
.admin-row__move { display: inline-flex; }
.admin-row__move .plus { font-size: 16px; line-height: 1; }
.admin-row__move button:disabled { opacity: .25; cursor: default; }
.admin-row .tag { margin-left: 8px; vertical-align: 2px; }
#tools { gap: 8px; }

.sitefoot { padding: 40px 0 8px; font-size: 14px; color: var(--muted); }
.sitefoot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
@media (min-width: 1000px) { .sitefoot { width: min(100% - 80px, 1004px); } }

/* closed: said plainly where the customer is looking */
.closed { margin-top: 16px; padding: 14px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r-lg); font-weight: 500; }
#closed-checkout { margin-top: 0; }
.shopbar[data-open="false"] { background: var(--ink); color: var(--bg); }
.shopbar[data-open="false"] .btn--primary { background: var(--bg); color: var(--ink); }

/* --- November 2026: the catalogue, the customiser and the Daily Brew Lab --- */

/* menu rows: a photograph when there is one, a badge, and sold-out drinks that read as such */
.item--split:has(.item__photo) { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.item__photo { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; background: var(--surface); }
.item__state { display: block; font-size: 13px; line-height: 18px; color: var(--action); font-weight: 500; margin-top: 4px; }
.item.is-off .item__name, .item.is-off .item__side { color: var(--muted); }
.item__add:disabled { opacity: .3; cursor: default; }
.tag--badge { margin-left: 8px; vertical-align: 2px; font-size: 12px; padding: 4px 8px; background: var(--ink); color: var(--bg); }
.item--by .tag--badge { vertical-align: 4px; }

/* today's experiment, at the top of the menu */
.lab { margin-top: 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); overflow: hidden; display: grid; }
.lab__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.lab__words { padding: 20px; display: grid; gap: 12px; }
.lab__kicker { font: 500 13px/16px var(--font-text); opacity: .75; }
.lab__title { font: 400 clamp(24px, 6vw, 30px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.lab__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lab__chips li { font-size: 13px; line-height: 18px; padding: 5px 10px; border: 1px solid rgba(248, 245, 239, .3); border-radius: 999px; font-variant-numeric: tabular-nums; }
.lab__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.lab__actions .btn { flex: 1 1 200px; }
.lab .btn--secondary { border-color: var(--bg); color: var(--bg); }
.lab .muted { color: inherit; opacity: .75; }
.lab-none { margin-top: 16px; color: var(--muted); }
.lab-none a { color: var(--ink); text-underline-offset: 4px; font-weight: 500; }

/* the customiser */
.sheet__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.choice__hint { margin: -4px 0 4px; }
.bean__where { font-size: 13px; line-height: 18px; color: var(--muted); }
.bean__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bean__tags span { font-size: 12px; line-height: 16px; padding: 3px 8px; border-radius: 999px; background: var(--surface); }
.chip input:disabled + span { cursor: default; }
.chips[style*="--n: 1"] .chip span { justify-items: start; text-align: left; padding-inline: 14px; }

/* the order: a line that can no longer be made says so */
.line--problem .line__name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--action); }
.line__problem { display: block; color: var(--action); font-weight: 500; }
#cart-note { padding-top: 8px; }

/* the WhatsApp opt-in: always unticked, said plainly */
.check--top { align-items: start; font-weight: 400; }
.check--top input { margin-top: 1px; flex: none; }
.optin { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.lab-sub { margin-top: 8px; }
.lab-sub__h { font: 500 16px/22px var(--font-text); letter-spacing: 0; }
.status[data-kind="ok"] { color: var(--ok); }

.sitefoot { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* ---------- order again: the last order and saved drinks, one tap each ---------- */
.again { padding-top: 20px; display: grid; gap: 10px; }
.again__h { font-size: 20px; line-height: 1.2; }
.again__list { display: grid; gap: 8px; }
.again__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: 100%; min-height: 64px;
  padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.again__card > span:first-child { display: grid; gap: 2px; min-width: 0; }
.again__kicker { font-size: 13px; line-height: 18px; color: var(--muted); }
.again__name { font-weight: 500; }
.again__desc { font-size: 14px; line-height: 20px; color: var(--muted); }
.again__side { display: inline-flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.again__card.is-added .plus { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (hover: hover) { .again__card:hover { border-color: var(--ink); } }

/* ---------- where an order is: received, being made, delivered ---------- */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.track__step { position: relative; padding-top: 14px; font-size: 14px; line-height: 20px; color: var(--muted); }
.track__step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); }
.track__step[data-state="done"] { color: var(--ink); }
.track__step[data-state="done"]::before { background: var(--ink); }
.track__step[data-state="now"] { color: var(--ink); font-weight: 500; }
.track__step[data-state="now"]::before { background: var(--action); }
.track--big .track__step { font-size: 15px; padding-top: 16px; }
.track--big .track__step::before { height: 8px; border-radius: 4px; }
.track__step[data-state="cancelled"] { grid-column: 1 / -1; color: var(--ink); }
.live { display: grid; gap: 12px; width: 100%; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.live__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.live__link { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); white-space: nowrap; }
