/* The menu page (/menu/). Cream like the home page's story sections, so
   it reads like the paper menu grown up: Cormorant for names, Switzer for
   the rest, a photo slot on every item (customers ask for pictures). */

:root {
  --night: #070605;
  --espresso: #15100c;
  --walnut: #2a1f17;
  --bark: #4a3626;
  --amber: #ffb24a;
  --lamp: #ffd99a;
  --brick: #a5553a;
  --cream: #f4ead9;
  --cream-deep: #ead9c0;
  --capiz: #e8c78c;
  --leaf: #5f6f3c;
  --ink: #2b1d14;
  --ink-soft: #6b5544;
  --line: rgba(43, 29, 20, 0.12);
  --art-bg: #efe3cd;    /* behind drawings and photos */
  --cold: #3f6a8a;      /* the iced glyph and label */

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Switzer', system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --bar-h: 64px;
  --edge: var(--gutter);   /* the page's side margin; wider beside the rail (below) */
  /* the content column's side, for the full-width top bar and strip: their
     insides line up with the menu below them (% is of their own width) */
  --col: max(var(--edge), calc((100% - 72rem) / 2 + var(--edge)));
  --strip-h: 56px;      /* Drinks | Food and the categories, under the bar */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--strip-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--col);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font: italic 500 1.35rem/1 var(--serif);
  color: var(--brick);
}
.bar__mark {
  height: 1.6em;
  aspect-ratio: 1170 / 1894;
  background: currentColor;
  -webkit-mask: url('../assets/logo-mark.png') center / contain no-repeat;
          mask: url('../assets/logo-mark.png') center / contain no-repeat;
}
.bar__link {
  padding: 0.45rem 1rem;
  border: 1px solid color-mix(in srgb, var(--brick) 45%, transparent);
  border-radius: 999px;
  color: var(--brick);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.bar__link:hover { background: color-mix(in srgb, var(--brick) 8%, transparent); }

/* ---------- Intro ---------- */
.intro {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
}
.intro__eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
}
.intro__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font: 500 clamp(2.4rem, 6vw, 4.4rem)/1.02 var(--serif);
}
.intro__title em { color: var(--brick); }
.intro__note {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.fav { color: #d99a2b; }

/* ---------- Jump nav (sticky) ---------- */
.jump {
  position: sticky;
  top: var(--bar-h);
  z-index: 15;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.jump__tabs, .jump__cats {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.jump__tabs::-webkit-scrollbar, .jump__cats::-webkit-scrollbar { display: none; }
.jump__tabs { padding-top: 0.75rem; }
.jump__cats { padding-top: 0.6rem; padding-bottom: 0.75rem; }
.tab {
  border: 0;
  background: none;
  padding: 0.2rem 0.1rem;
  margin-right: 1rem;
  font: 500 1.5rem/1.1 var(--serif);
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.is-on { color: var(--ink); border-bottom-color: var(--brick); }
.chip {
  flex: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: 500 0.82rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Sections and items ---------- */
.menu {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}
.menu__status {
  padding: 3rem 0;
  color: var(--ink-soft);
  font: italic 500 1.4rem/1.4 var(--serif);
}
/* While the menu is on its way: the wait moves (css/marks.css), on the cream,
   or in the middle of the counter at night. */
.menu__wait { display: flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 40vh; margin: 0; }
.menu__wait .cup-fill, .boards__wait .cup-fill { width: 1.8em; height: 1.8em; }
.boards__wait {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0;
  color: rgba(244, 234, 217, 0.72); font: italic 500 1.4rem/1.4 var(--serif); pointer-events: none; transition: opacity 0.6s ease;
}
.boards__wait.is-gone { opacity: 0; }
.boards__wait:not(.is-gone) ~ .edge { visibility: hidden; }   /* the arrows wait for the boards */
.group { padding-top: 2.5rem; }
.group__label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
}
.cat { padding: 1.5rem 0 1rem; }
.cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin-bottom: 1.1rem; }
.cat__title { margin: 0; font: 500 clamp(1.9rem, 3.6vw, 2.6rem)/1.1 var(--serif); }
.cat__blurb { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}
.item {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: color-mix(in srgb, #fff 45%, var(--cream));
  border: 1px solid var(--line);
  overflow: hidden;
}
.item__photo {
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
}
.item__photo { overflow: hidden; position: relative; }
/* "Photo + drawing": the drawing in the photo's corner, in chalk, on a
   soft glow (no box). Hover, focus or a tap grows it over the photo as
   "what's inside", with its labels, on a dark veil (js/menu/drinkart.js,
   photoArt; taps in js/menu/menu.js). */
.photo-art { position: absolute; right: 3%; bottom: 4%; width: 30%; height: 53%; display: block; border-radius: 12px; background: radial-gradient(closest-side, rgba(12, 9, 7, 0.42), rgba(12, 9, 7, 0) 100%); cursor: zoom-in; outline-offset: -3px; transition: left 0.3s ease, top 0.3s ease, right 0.3s ease, bottom 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease, border-radius 0.3s ease; -webkit-tap-highlight-color: transparent; }
.photo-art svg { width: 100%; height: 100%; }
.photo-art .pa-small, .photo-art .pa-big { display: block; width: 100%; height: 100%; box-sizing: border-box; }
.photo-art .pa-big { display: none; }
.photo-art:hover, .photo-art:focus-visible, .photo-art.is-open { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; background: rgba(12, 9, 7, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: zoom-out; }
.photo-art:hover .pa-small, .photo-art:focus-visible .pa-small, .photo-art.is-open .pa-small { display: none; }
.photo-art:hover .pa-big, .photo-art:focus-visible .pa-big, .photo-art.is-open .pa-big { display: block; padding: 4% 2%; }
.photo-art--bl { right: auto; left: 3%; }
.photo-art--tr { bottom: auto; top: 4%; }
.photo-art--tl { right: auto; bottom: auto; left: 3%; top: 4%; }
.photo-art--bl:is(:hover, :focus-visible, .is-open) { left: 0; }
.photo-art--tr:is(:hover, :focus-visible, .is-open) { top: 0; }
.photo-art--tl:is(:hover, :focus-visible, .is-open) { left: 0; top: 0; }
@media (max-width: 600px) { .item__photo .photo-art { display: none; } }   /* too small in a phone row */
.item__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder until real photos arrive: the AD sprout on warm paper. */
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 217, 154, 0.55), transparent 60%),
    repeating-linear-gradient(135deg, rgba(165, 85, 58, 0.05) 0 2px, transparent 2px 12px),
    var(--cream-deep);
}
.ph__mark {
  width: 2.2rem;
  aspect-ratio: 1170 / 1894;
  background: color-mix(in srgb, var(--brick) 45%, transparent);
  -webkit-mask: url('../assets/logo-mark.png') center / contain no-repeat;
          mask: url('../assets/logo-mark.png') center / contain no-repeat;
}
.ph__text {
  font: italic 500 0.95rem/1 var(--serif);
  color: color-mix(in srgb, var(--brick) 70%, transparent);
}

.item__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1rem; flex: 1; }
.item__name { margin: 0; font: 600 1.45rem/1.1 var(--serif); }
.item__name .fav { font-size: 0.85em; margin-left: 0.25rem; }
.item__desc { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.45; }
.item__note { margin: 0; color: var(--brick); font-size: 0.8rem; font-style: italic; }
.prices {
  list-style: none;
  margin: auto 0 0;
  padding: 0.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}
.prices li { display: flex; align-items: baseline; gap: 0.35rem; }
.prices .label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.prices .label--hot { color: var(--brick); }
.prices .label--cold { color: var(--cold); }
.prices .amount { font: 600 1.05rem/1 var(--sans); }
.prices .pnote { flex-basis: 100%; margin-top: -0.2rem; font-size: 0.75rem; color: var(--ink-soft); }

.item.is-soldout { opacity: 0.55; }
.item.is-soldout .item__photo { position: relative; }
.badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* Add-ons: a quiet list, like the paper. */
.addons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem 2rem; }
.addons li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.addons .what { font: 600 1.2rem/1.2 var(--serif); }
.addons .what small { display: block; font: 400 0.8rem/1.4 var(--sans); color: var(--ink-soft); }
.addons .amount { font-weight: 600; white-space: nowrap; }

/* Phones: rows with the photo on the left, so the list stays scannable. */
@media (max-width: 600px) {
  .items { grid-template-columns: 1fr; gap: 0.8rem; }
  .item { flex-direction: row; }
  .item__photo { flex: none; width: 6.5rem; aspect-ratio: auto; min-height: 6.5rem; }
  .ph__mark { width: 1.5rem; }
  .ph__text { font-size: 0.78rem; }
  .item__body { padding: 0.75rem 0.85rem; }
  .item__name { font-size: 1.3rem; }
  .badge { top: 0.4rem; left: 0.4rem; font-size: 0.65rem; }
}

.foot {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.foot p { margin: 0; }

/* =================== Chalkboard view =================== */
/* The counter at night (js/menu/boards.js). The page goes dark with it. */
body.is-boards { background: #0e0a07; overflow: hidden; }
body.is-boards .bar {
  background: rgba(14, 10, 7, 0.82);
  border-bottom-color: rgba(255, 217, 154, 0.12);
}
body.is-boards .bar__brand { color: var(--lamp); }
body.is-boards .bar__link { color: var(--lamp); border-color: rgba(255, 217, 154, 0.45); }

.boards { position: fixed; top: calc(var(--bar-h) + var(--strip-h)); left: 0; right: 0; bottom: 0; background: #0e0a07; }
.boards__stage { position: absolute; inset: 0; }
.boards__stage canvas { display: block; }
.boards__note {
  position: absolute; top: 0.8rem; left: var(--gutter); margin: 0;
  font-size: 0.75rem; color: rgba(244, 234, 217, 0.45); pointer-events: none;
}
.boards__controls {
  position: absolute; left: 0; right: 0; bottom: 1.1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem; padding: 0 1rem;
}
.boards__nav { display: flex; gap: 0.5rem; }

/* The Counter's pills and buttons. */
.pills {
  display: flex; gap: 0.35rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 0.2rem;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; padding: 0.4rem 0.85rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 217, 154, 0.3); background: rgba(21, 16, 12, 0.6); color: var(--cream);
  font: 500 0.8rem/1.2 var(--sans); white-space: nowrap;
}
.pill.is-on { background: var(--lamp); color: var(--night); border-color: var(--lamp); }
.pillbtn {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 217, 154, 0.45);
  background: rgba(21, 16, 12, 0.65); color: var(--lamp); font: 500 0.85rem var(--sans); cursor: pointer;
}
.pillbtn:disabled { opacity: 0.35; cursor: default; }
.pill:focus-visible, .pillbtn:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.pillbtn--float {
  position: fixed; z-index: 30; right: 1rem; bottom: 1rem;
  background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* =================== Card view additions =================== */
.item { position: relative; }
.item__btn {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: transparent;
  border-radius: inherit; cursor: pointer;
}
.item__btn:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.item__photo--art { display: grid; place-items: center; background: var(--art-bg); }
.item__photo--art .drinkart { height: 86%; width: auto; }
@media (max-width: 600px) { .item__photo--art .drinkart { height: 80%; } }
/* A drink's drawing on its card: hovered, focused or tapped, the glass gives
   way to its cutaway with labels ("what's inside", js/menu/menu.js). */
.card-art { cursor: zoom-in; outline-offset: -3px; -webkit-tap-highlight-color: transparent; }
.card-art { position: relative; }
.card-art .ca-plain, .card-art .ca-inside { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.25s ease; }
.card-art .ca-inside { opacity: 0; }
.card-art .ca-inside .drinkart { height: 92%; max-width: 94%; }
.card-art:is(:hover, :focus-visible, .is-open) .ca-plain { opacity: 0; }
.card-art:is(:hover, :focus-visible, .is-open) .ca-inside { opacity: 1; }
@media (max-width: 600px) {
  .card-art { cursor: pointer; }
  .card-art .ca-inside { display: none; }
  .card-art:is(:hover, :focus-visible, .is-open) .ca-plain { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .card-art .ca-plain, .card-art .ca-inside { transition: none; } }

/* =================== The item card (popover) =================== */
.pop {
  position: fixed; z-index: 60; width: min(22rem, calc(100vw - 2rem));
  padding: 1.1rem 1.2rem 1rem; border-radius: 16px;
  background: rgba(244, 234, 217, 0.98); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: pop-in 0.18s ease-out;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.pop.is-sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 82vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding-bottom: 1.6rem;
}
.pop__close { position: absolute; top: 0.4rem; right: 0.6rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 0.3rem; }
.pop__art { margin: 0 0 0.6rem; border-radius: 12px; background: var(--art-bg); padding: 0.4rem 0.6rem; }
.pop__art .drinkart { display: block; width: 100%; height: auto; max-height: 14rem; border-radius: 8px; }
/* A photo fills the popup's art box edge to edge (no frame around it). */
.pop__art:has(.pop__shot) { padding: 0; background: none; }
.pop__shot { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; width: 100%; }
.pop__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pop__name { margin: 0 1.5rem 0.3rem 0; font: 600 1.7rem/1.1 var(--serif); }
.pop__desc { margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.9rem; }
.pop__desc:empty { display: none; }
.pop__prices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.pop__prices .label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-right: 0.3rem; }
.pop__prices .label--hot { color: var(--brick); }
.pop__prices .label--cold { color: var(--cold); }
.pop__prices b { font-size: 1.05rem; }
.pop__prices small { display: block; font-size: 0.75rem; color: var(--ink-soft); }

/* Card view button: a small grid icon, so it reads as "cards" at a glance. */
.pillbtn--icon { display: inline-flex; align-items: center; gap: 0.45rem; }
.pillbtn--icon svg { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Coach mark: a one-time note over the Card view button. */
.coach {
  position: absolute; left: 50%; bottom: 4.15rem; margin: 0; z-index: 5;
  padding: 0.55rem 0.9rem; border-radius: 10px;
  background: var(--cream); color: var(--ink); font-size: 0.82rem; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translate(-50%, 6px); transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.coach::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px;
  background: var(--cream); transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.coach.is-in { opacity: 1; transform: translate(-50%, 0); }
.pillbtn.is-nudged { animation: nudge 1.6s ease-in-out 2; }
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 154, 0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 217, 154, 0.22); border-color: var(--lamp); }
}
@media (max-width: 600px) { .coach { bottom: 4.4rem; } }

/* Hot and cold glyphs beside prices (js/menu/glyphs.js). */
.tglyph { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; margin-right: 0.3rem; }
.tglyph--hot { color: var(--brick); }
.tglyph--cold { color: var(--cold); }
.tglyph--asis { color: var(--leaf, #5f6f3c); }
.prices li, .pop__prices li { align-items: center; }
.prices .tglyph, .pop__prices .tglyph { margin-right: 0; }

/* Tooltip (glyphs and stars): espresso on cream pages, cream on the boards. */
.tip {
  position: fixed; z-index: 70; pointer-events: none; white-space: nowrap;
  padding: 0.35rem 0.7rem; border-radius: 8px;
  background: var(--ink); color: var(--cream);
  font: 500 0.76rem/1.2 var(--sans); letter-spacing: 0.03em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(-100% - 8px)); opacity: 0; transition: opacity 0.15s ease;
}
.tip::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 1px;
}
.tip.is-below { transform: translate(-50%, 0); }
.tip.is-below::after { bottom: auto; top: -4px; }
.tip.is-in { opacity: 1; }
body.is-boards .tip { background: var(--cream); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); }
/* Glyphs and stars sit above the card's tap area so they get their own hover. */
.prices .tglyph, .item__name .fav, .pop__name .fav, .pop__prices .tglyph { position: relative; z-index: 3; cursor: default; }

/* The house-favorite star (js/menu/glyphs.js): drawn, gilt. */
.fstar { width: 0.72em; height: 0.72em; margin-left: 0.22em; vertical-align: 0.12em; flex: none; filter: drop-shadow(0 1px 0.5px rgba(80, 45, 10, 0.25)); }
.intro__legend .fstar, .intro__legend .fnew { width: 0.95em; height: 0.95em; margin: 0 0.25em 0 0; vertical-align: -0.12em; }
.intro__legend .fnew.mk-new--sign { width: 1.45em; height: 1em; }
.item__name .fstar, .pop__name .fstar, .item__name .fnew, .pop__name .fnew { position: relative; z-index: 3; cursor: default; }

/* =================== The strip (both views) =================== */
/* Under the top bar, a chalkboard the width of the page in a wooden frame:
   Drinks | Food, and that side's categories chalked in a row that swipes
   sideways (js/menu/menu.js, js/site/chalk-index.js; on phones, one chalk
   line that opens the list). One row on wide screens, two on phones. The
   nav rail has the bottom of the screen. */
.strip {
  position: sticky; top: var(--bar-h); z-index: 19; height: var(--strip-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--col);   /* the board itself: .chalk-board, css/chalk-index.css */
}
.seg:empty { display: none; }   /* while the menu loads */
.seg { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; border: 1px solid rgba(244, 234, 217, 0.32); }
.seg button { flex: 1; padding: 0.42rem 1rem; border: 0; border-radius: 999px; background: none; color: rgba(244, 234, 217, 0.8); font: 500 0.85rem/1 var(--sans); cursor: pointer; transition: background 0.25s ease, color 0.25s ease; }
.seg button.is-on { background: rgba(244, 234, 217, 0.92); color: #1f2a24; cursor: default; }
.seg button:focus-visible, .chip:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.chips {
  display: flex; gap: 0.35rem; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 0.2rem 2rem 0.2rem 0.2rem; margin: -0.2rem;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 0.38rem 0.8rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: none; color: var(--ink-soft); font: 500 0.8rem/1.2 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
body.is-boards .chip { color: rgba(244, 234, 217, 0.75); border-color: rgba(255, 217, 154, 0.25); }
body.is-boards .chip:hover { color: var(--cream); border-color: rgba(255, 217, 154, 0.5); }
body.is-boards .chip.is-on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
@media (max-width: 640px) {
  :root { --strip-h: 96px; }
  .strip { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "seg search" "chips chips"; align-content: center; gap: 0.5rem 0.6rem; }
  .seg { display: flex; grid-area: seg; }
  .chips { grid-area: chips; }
  .strip__search { grid-area: search; margin: 0; }
  .strip .chalk-search.is-open { justify-self: stretch; }
}

/* The arrows between boards: chalk marks on the board's wooden frame
   (placed by menu.js, sized to the frame), with a finger-sized hit area.
   Faint until hovered; at either end, almost gone. */
.edge {
  position: absolute; z-index: 2; translate: -50% -50%; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: #f1e9da; opacity: 0.62; transition: opacity 0.3s ease;
}
.edge .arrow { width: calc(var(--frame, 20px) * 1.15); height: calc(var(--frame, 20px) * 1.15); min-width: 16px; min-height: 16px; filter: url(#chalk) drop-shadow(0 0 1px rgba(241, 233, 218, 0.35)); }
.edge .arrow path { stroke: currentColor; stroke-width: 0.9; stroke-linejoin: round; }   /* a chalk line, not a hairline */
.edge:hover { opacity: 0.95; }
.edge:disabled { opacity: 0.14; cursor: default; }
.edge:focus-visible { outline: 1.5px dashed rgba(241, 233, 218, 0.6); outline-offset: -4px; opacity: 0.95; }
#card-view { padding-bottom: 3rem; }
@media (max-width: 640px) { #card-view { padding-bottom: 6rem; } }   /* the rail's bar */
.coach { position: fixed; bottom: auto; }
.coach { z-index: 45; }

/* Search, at the strip's end: the field itself is .chalk-search
   (css/chalk-index.css); what it finds drops down below (.search). */

/* View switch in the top bar: two options, the current one filled. */
.bar__end { display: flex; align-items: center; gap: 0.6rem; }
.viewtoggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brick) 40%, transparent);
}
.viewtoggle button {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border: 0; border-radius: 999px;
  background: none; color: var(--brick); font: 500 0.8rem/1 var(--sans); cursor: pointer;
}
.viewtoggle svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.viewtoggle button.is-on { background: var(--brick); color: var(--cream); cursor: default; }
.viewtoggle button:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
body.is-boards .viewtoggle { border-color: rgba(255, 217, 154, 0.4); }
body.is-boards .viewtoggle button { color: var(--lamp); }
body.is-boards .viewtoggle button.is-on { background: var(--lamp); color: var(--night); }
body.is-boards .viewtoggle button:focus-visible { outline-color: var(--lamp); }
@media (max-width: 600px) {
  .viewtoggle span { display: none; }
  .viewtoggle button { padding: 0.45rem 0.6rem; }
}
/* Coach mark under the switch (pointer on top, aimed at the Cards button). */
.coach.coach--below { transform: translate(-50%, -6px); }
.coach.coach--below.is-in { transform: translate(-50%, 0); }
.coach.coach--below::after { bottom: auto; top: -6px; left: calc(50% + var(--arrow-x, 0px)); }

/* =================== Search (drops down under the strip) =================== */
.search {
  position: fixed; z-index: 45; top: calc(var(--bar-h) + var(--strip-h) + 8px); right: var(--col);
  width: min(34rem, calc(100% - 2 * var(--gutter)));   /* under its button, at the strip's end */ display: flex; flex-direction: column; gap: 0.5rem;
}
.search__results {
  max-height: min(55vh, 30rem); overflow-y: auto; border-radius: 16px; padding: 0.4rem;
  background: rgba(244, 234, 217, 0.98); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.search__results[hidden] { display: none; }
.sr {
  width: 100%; display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 0.75rem; align-items: center;
  padding: 0.45rem 0.6rem; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.sr.is-sel { background: var(--cream-deep); }
.sr__art { width: 2.6rem; height: 3.2rem; border-radius: 8px; background: var(--art-bg); display: grid; place-items: center; overflow: hidden; }
.sr__art .drinkart { height: 92%; width: auto; }
.sr__art img { width: 100%; height: 100%; object-fit: cover; }
.sr__text { min-width: 0; }
.sr__text b { display: block; font: 600 1.15rem/1.15 var(--serif); }
.sr__text small { display: block; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr__prices { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.sr__p { display: inline-flex; align-items: center; gap: 0.25rem; }
.sr__p i { font-style: normal; font-weight: 500; font-size: 0.7rem; color: var(--ink-soft); margin-right: 0.2rem; }
.sr__p .tglyph { width: 1.05em; height: 1.05em; margin: 0; }
.sr__empty { margin: 0; padding: 0.9rem 1rem; color: var(--ink-soft); font: italic 500 1.1rem/1.3 var(--serif); }
/* A found card glows once. */
.item.is-found { animation: found 1.8s ease-out; }
@keyframes found { 0%, 30% { box-shadow: 0 0 0 4px rgba(165, 85, 58, 0.55); } 100% { box-shadow: 0 0 0 4px rgba(165, 85, 58, 0); } }

/* =================== The nav rail (css/rail.css) =================== */
/* Room for it beside the cards (only where the page's own margin is too
   narrow); the boards leave room too (js/menu/boards.js). On phones it is
   a bar along the bottom. */
@media (min-width: 641px) {
  :root { --edge: max(var(--gutter), calc(78px - (100vw - 72rem) / 2)); }
  .intro, .menu, .foot { padding-inline: var(--edge); }
  .bar, .strip { padding-inline: var(--col); }
}
