/* ==========================================================================
   Tacos Tortas Quesadillas Guerrero — design system
   Sunlit masa-cream paper, chile-red CTAs, poblano-green kickers, ochre
   board numerals, deep-green tiled footer. Pulled from the truck's own
   hand-painted sign: red chile on green tile.
   Mobile-first. Breakpoints: 640, 760, 960, 1080.
   Fonts: Bricolage Grotesque (display, variable wdth/wght/opsz) +
   Instrument Sans (UI/body, variable wdth/wght) — self-hosted in fonts/
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Surfaces — masa cream, never flat white */
  --bg-0: #FBF6EC;        /* page */
  --bg-1: #F4ECDB;        /* bands */
  --bg-2: #FFFCF6;        /* cards, inputs, chips */
  --bg-3: #ECE1CB;        /* hover / pressed */

  /* Hairlines */
  --line: rgba(46, 28, 18, .12);
  --line-strong: rgba(46, 28, 18, .26);

  /* Type */
  --text: #23160F;
  --text-2: #5B4636;
  --text-3: #7A6553;      /* 5.1:1 on bg-0 */

  /* Brand accents — from the sign */
  --paper: #FBF6EC;
  --ink: #23160F;
  --terra: #B9331A;       /* chile — links, prices, emphasis */
  --flame: #C63A1E;       /* CTA fill */
  --flame-hi: #AD2F16;
  --poblano: #2E6A3E;     /* tile green — kickers, open, added */
  --poblano-deep: #1F4B2C;/* footer, open strip */
  --gold: #7F5D0E;        /* ochre — board numerals */
  --marigold: #E4A93B;    /* decor only on cream; text only on ink */
  --gold-soft: rgba(228, 169, 59, .18);
  --poblano-soft: rgba(46, 106, 62, .10);
  --terra-soft: rgba(198, 58, 30, .10);
  --on-flame: #FFF8EE;

  --font-display: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --header-bar is the design height; --header-h is the *measured* height
     script.js writes back for sticky offsets. Never size the header from
     --header-h — that would loop. */
  --header-bar: 60px;
  --header-h: 60px;
  --r-pill: 999px;
  --r-control: 10px;
  --r-surface: 16px;
  --shadow-cta: 0 10px 24px -12px rgba(198, 58, 30, .55);
  --shadow-float: 0 -8px 24px -16px rgba(46, 28, 18, .3);
  --shadow-card: 0 24px 50px -32px rgba(46, 28, 18, .3);

  --tracking-caps: .14em;
  --dur-1: 140ms;
  --dur-2: 220ms;
  --dur-3: 380ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);

  --gutter: clamp(18px, 4vw, 40px);

  /* Papel picado — cut-paper pennants on a string (footer variant) */
  --papel-img-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'%3E%3Cpath d='M0 1.5h72' stroke='%23FBF6EC' stroke-opacity='.45' stroke-width='1'/%3E%3Cg fill-rule='evenodd'%3E%3Cpath fill='%23D9482B' d='M1 2h22v9q-2.75 3-5.5 0t-5.5 0t-5.5 0t-5.5 0zM8 5.5a1.5 1.5 0 1 0 .01 0zM17 5.5a1.5 1.5 0 1 0 .01 0z'/%3E%3Cpath fill='%23E4A93B' d='M25 2h22v9q-2.75 3-5.5 0t-5.5 0t-5.5 0t-5.5 0zM32 5.5a1.5 1.5 0 1 0 .01 0zM41 5.5a1.5 1.5 0 1 0 .01 0z'/%3E%3Cpath fill='%23FBF6EC' d='M49 2h22v9q-2.75 3-5.5 0t-5.5 0t-5.5 0t-5.5 0zM56 5.5a1.5 1.5 0 1 0 .01 0zM65 5.5a1.5 1.5 0 1 0 .01 0z'/%3E%3C/g%3E%3C/svg%3E");

  /* Hex tile — the green tile from the sign, as a hairline honeycomb */
  --tile-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 .6L55.4 16.4v32.2L28 64.4.6 48.6V16.4zM28 64.4V97' fill='none' stroke='%232E6A3E' stroke-opacity='.12' stroke-width='1.2'/%3E%3C/svg%3E");
  --tile-img-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 .6L55.4 16.4v32.2L28 64.4.6 48.6V16.4zM28 64.4V97' fill='none' stroke='%23FBF6EC' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
}

@media (min-width: 960px) {
  :root { --header-bar: 68px; --header-h: 68px; }
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
}

body {
  position: relative;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: var(--terra); text-underline-offset: 3px; }

::selection { background: var(--marigold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--poblano);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Anchored sections land below the sticky header */
.section[id],
.menu[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.04;
  color: var(--text);
  text-wrap: balance;
  letter-spacing: -.018em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.125rem; font-stretch: 100%; letter-spacing: -.01em; line-height: 1.25; }

.prose,
.prose p { max-width: 62ch; }

.lede {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-2);
}

.eyebrow,
.section-kicker {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--poblano);
}

.section-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.section-kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--poblano);
  flex: none;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1;
  letter-spacing: -.022em;
}

.section-title em,
.hero-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--terra);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.section-head .lede { max-width: 44ch; }

/* The Spanish line — the sign's green voice */
.es {
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 96%;
  color: var(--poblano);
}

.house {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.veg {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 2px;
  padding: 1px 7px;
  border: 1px solid rgba(46, 106, 62, .4);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--poblano);
  background: var(--poblano-soft);
}

.num,
.item-price,
.total-amount,
.rail-total-amount,
.cart-line-price,
.rail-line-price,
.receipt-price,
.summary-total,
.hours-time { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.container-narrow { max-width: 780px; }

.section { padding-block: clamp(56px, 8vw, 104px); }

.section + .section { border-top: 1px solid var(--line); }

.band { background: var(--bg-1); }

.card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--bg-2);
}

.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--bg-1);
}

.notice {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 500;
  max-width: none;
}

.notice--warning {
  background: var(--terra-soft);
  border-color: rgba(198, 58, 30, .3);
  color: var(--text);
}

.notice--error {
  border-color: var(--terra);
  color: var(--text);
  background: var(--terra-soft);
}

.notice--accent { border-left: 3px solid var(--marigold); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-control);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--dur-1) var(--ease-out);
}

.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal-on-scroll (script.js adds .in) */
html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

html.js .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--flame);
  color: var(--on-flame);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover { background: var(--flame-hi); color: var(--on-flame); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover { background: var(--bg-3); border-color: var(--text-3); color: var(--text); }

.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .9375rem; }

.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

a, button, .menu-nav a, .add-btn, .qty-btn, .choice-opt, .text-btn, .add-more-btn, .status-ladder li, .status-dot {
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}

.text-btn,
.quiet-link,
.link-back,
.header-back {
  font-weight: 600;
  color: var(--terra);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline: -2px;
  padding: 8px 2px;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button[disabled],
.btn[aria-disabled="true"] {
  background: var(--bg-3);
  color: var(--text-3);
  border: 1px solid var(--line);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.is-placing[disabled] {
  background: var(--flame);
  color: var(--on-flame);
  border-color: transparent;
  cursor: wait;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Status strip — are we open? Sits above the header, scrolls away.
   -------------------------------------------------------------------------- */
.status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px var(--gutter);
  background: var(--poblano-deep);
  color: var(--paper);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  text-align: center;
}

.status-strip[data-state="closed"] { background: var(--ink); }
/* Shipped visible so it holds its 36px before script.js fills it (no
   page jump); blank until then, and gone entirely without JS. */
.status-strip:not([data-state]) { visibility: hidden; }
html:not(.js) .status-strip { display: none; }

.status-strip .glyph-truck { flex: none; opacity: .92; }

.status-strip .strip-extra { color: rgba(251, 246, 236, .74); font-weight: 500; }

.status-strip .strip-extra::before { content: "·"; margin: 0 8px 0 2px; }

.status-strip a {
  color: var(--paper);
  font-weight: 600;
  text-decoration-color: rgba(251, 246, 236, .45);
}

.status-strip a:hover { color: var(--marigold); }

.strip-extra { display: none; }

@media (min-width: 640px) {
  .strip-extra { display: inline; }
}

.status-strip[data-state="closed"] .strip-main { color: var(--marigold); }

/* --------------------------------------------------------------------------
   Header & primary nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(251, 246, 236, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(251, 246, 236, .96);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-bar);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  padding-block: 6px;
  margin-right: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.625rem;
  letter-spacing: -.02em;
  color: var(--text);
}

.brand-sub {
  margin-top: 5px;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--poblano);
}

.header-back {
  text-decoration: none;
  padding: 10px 4px;
  display: inline-block;
  white-space: nowrap;
  color: var(--text-2);
}

.header-back:hover { color: var(--terra); }

.header-back-long { display: none; }

@media (min-width: 640px) {
  .header-back-long { display: inline; }
  .header-back-short { display: none; }
}

/* Hamburger */
.nav-toggle {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  min-height: 44px;
  border-radius: var(--r-control);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}

.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

html:not(.js) .nav-toggle { display: none; }

/* Mobile panel */
@media (max-width: 959px) {
  html.js .nav { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; padding-bottom: 12px; }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 8px var(--gutter) 28px;
    max-height: var(--nav-room, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-0);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(46, 28, 18, .35);
  }

  .site-header.nav-open .nav-link {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    font-stretch: 92%;
    letter-spacing: -.015em;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-header.nav-open .nav-link[aria-current="page"] { color: var(--terra); }

  .site-header.nav-open .nav-order {
    margin-top: 20px;
    width: 100%;
  }

  .site-header.nav-open .nav-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
  }

  .site-header { z-index: 132; }

  .nav-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(35, 22, 15, .4);
    z-index: 131;
  }
}

.nav-scrim { display: none; }

.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--r-pill);
}

.nav-link:hover { color: var(--text); }

.nav-link[aria-current="page"] { color: var(--text); font-weight: 600; }

.nav-meta { display: none; }

.nav-phone {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-hours {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-2);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .nav,
  .site-header.nav-open .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav .nav-order {
    margin-left: 12px;
    min-height: 42px;
    padding: 9px 20px;
    font-size: .9375rem;
  }
}

/* --------------------------------------------------------------------------
   Homepage hero — copy beside a photo print at its natural proportions
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(640px 360px at 100% 0%, rgba(228, 169, 59, .22), transparent 62%),
    var(--bg-0);
}

.hero-grid {
  display: grid;
  gap: 28px;
  padding-block: clamp(28px, 5vw, 56px) clamp(36px, 5vw, 64px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 4.75rem);
  font-weight: 700;
  font-stretch: 86%;
  line-height: .96;
  letter-spacing: -.026em;
  max-width: 13ch;
}

.hero-lede {
  margin-top: 20px;
  max-width: 42ch;
}

.hero-es {
  margin-top: 12px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Facts — address, hours, phone — a hairline board row (desktop) */
.hero-facts {
  display: none;
  margin-top: 36px;
  padding-top: 6px;
  border-top: 1px solid var(--line-strong);
  list-style: none;
  padding-left: 0;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 0;
  font-size: .9375rem;
}

.hero-facts .fact-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-facts a { color: var(--text); text-decoration: none; font-weight: 500; }
.hero-facts a:hover { color: var(--terra); }

/* The print: photo at its own proportions on a thin cream mat, captioned */
.hero-photo {
  margin: 0;
  padding: 8px 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -40px rgba(46, 28, 18, .5), 0 2px 0 0 rgba(255, 255, 255, .6) inset;
}

.hero-photo .photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 42% 50%;
  filter: saturate(1.08) contrast(1.03);
}

/* Warm grade so the grey table reads like sun on wood */
.hero-photo .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(228, 169, 59, .22), rgba(198, 58, 30, .1) 55%, rgba(46, 106, 62, .04));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px 0;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--text-3);
}

.hero-photo figcaption .es { font-size: .875rem; white-space: nowrap; }

@media (min-width: 640px) {
  .hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 40px; }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
    padding-block: clamp(48px, 6vw, 80px) clamp(48px, 6vw, 80px);
  }

  .hero-photo { padding: 10px 10px 12px; }
  .hero-photo img { aspect-ratio: 5 / 3; }
}

/* --------------------------------------------------------------------------
   How pickup works — on the tile band
   -------------------------------------------------------------------------- */
.how {
  background-color: var(--bg-1);
  background-image: var(--tile-img);
  background-size: 56px 97px;
  padding-block: clamp(44px, 6vw, 72px);
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 600;
  font-stretch: 85%;
  line-height: 1;
  color: var(--terra);
}

.steps h3 { font-size: 1.1875rem; }

.steps p { color: var(--text-2); font-size: .9375rem; max-width: 34ch; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 0; }
  .steps li {
    grid-template-columns: 1fr;
    padding: 24px 0 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
  }
  .steps li::before { grid-row: auto; margin-bottom: 14px; }
}

/* --------------------------------------------------------------------------
   Hours & Location
   -------------------------------------------------------------------------- */
.visit-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .visit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
}

.visit-address {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.visit-address a { color: inherit; text-decoration: none; }
.visit-address a:hover { color: var(--terra); }

.visit-sub { margin-top: 10px; color: var(--text-2); font-size: .9375rem; }

.hours-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
}

.hours-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.hours-status.is-open { color: var(--poblano); }
.hours-status.is-closed { color: var(--terra); }

.hours-table {
  margin-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px 11px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  font-size: .9375rem;
  color: var(--text-2);
}

.hours-day { font-weight: 500; }

.hours-time { white-space: nowrap; }

.hours-row.is-today {
  background: var(--gold-soft);
  border-left-color: var(--marigold);
  color: var(--text);
}

.hours-row.is-today .hours-day { font-weight: 600; }

.hours-row.is-today .hours-day::after {
  content: "today";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--marigold);
  color: var(--ink);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.visit-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.visit-map {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--bg-3);
}

@media (min-width: 960px) {
  .map-frame { aspect-ratio: 16 / 11; }
}

.map-placeholder {
  position: absolute;
  inset: 0;
  background-color: var(--bg-3);
  background-image: url("images/map-640.webp");
  background-size: cover;
  background-position: center;
  filter: sepia(.18) saturate(.9) brightness(1.02);
}

@media (min-width: 960px), (min-resolution: 1.5dppx) {
  .map-placeholder { background-image: url("images/map-1280.webp"); }
}
.js .visit-map:not(.map-near) .map-placeholder { background-image: none; }

.map-attr {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  font-size: .6875rem;
  color: var(--text-2);
  background: rgba(251, 246, 236, .85);
  border-radius: 6px;
}

.map-overlay {
  position: absolute;
  z-index: 2;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  background: rgba(251, 246, 236, .94);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.map-placeholder-addr {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text);
}

.map-frame .map-load { min-height: 40px; padding: 8px 16px; font-size: .875rem; }

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 3;
}

.map-frame:not(.is-loaded) iframe { opacity: 0; pointer-events: none; }

.map-frame.is-loaded .map-placeholder,
.map-frame.is-loaded .map-overlay,
.map-frame.is-loaded .map-attr { display: none; }

.map-sign {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

@media (min-width: 560px) {
  .map-sign { grid-template-columns: minmax(0, 240px) 1fr; }
}

.map-sign picture {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}

.map-sign img { width: 100%; aspect-ratio: 1600 / 524; object-fit: cover; }

.map-caption {
  font-size: .9375rem;
  color: var(--text-2);
}

.map-caption strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  padding-top: clamp(40px, 4.5vw, 52px);
  box-shadow: var(--shadow-card);
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: clamp(18px, 3vw, 28px);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--marigold);
}

.review-card p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  font-stretch: 96%;
  line-height: 1.4;
  letter-spacing: -.008em;
  color: var(--text);
  max-width: none;
}

.review-card figcaption {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
}

.review-card figcaption strong { color: var(--text); font-weight: 600; }

.reviews-more a { font-weight: 600; display: inline-block; padding: 8px 0; }

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
}

.about-copy p + p { margin-top: 16px; }

.timeline {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline .when {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.1;
  color: var(--terra);
}

.timeline .where { font-weight: 600; color: var(--text); }
.timeline p { color: var(--text-2); font-size: .9375rem; margin-top: 2px; }

.about-points {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-points li {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
}

.catering {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: var(--r-control);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.catering p { color: var(--text-2); max-width: 40ch; }
.catering strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Footer — the green tile, papel picado strung across the top
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--poblano-deep);
  background-image: var(--tile-img-light);
  background-size: 56px 97px;
  color: var(--paper);
}

.site-footer .papel {
  height: 16px;
  background-image: var(--papel-img-dark);
  background-repeat: repeat-x;
  background-size: 72px 16px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-block: clamp(40px, 6vw, 68px) 36px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-grid > * { min-width: 0; }

.footer-brand .brand-name { font-size: 2rem; color: var(--paper); }

.footer-brand p {
  margin-top: 14px;
  color: rgba(251, 246, 236, .78);
  font-size: .9375rem;
  max-width: 34ch;
}

.footer-brand .es { display: block; margin-top: 12px; font-size: 1.125rem; color: var(--marigold); }

.site-footer h2 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  font-size: .9375rem;
  color: rgba(251, 246, 236, .78);
  max-width: none;
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
}

.site-footer a:hover { color: var(--marigold); }

.site-footer ul { list-style: none; padding: 0; }

.site-footer li > a,
.site-footer p > a { display: inline-block; padding: 7px 0; }

.site-footer :focus-visible { outline-color: var(--marigold); }

a[href^="tel:"] { white-space: nowrap; }

.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(251, 246, 236, .16);
  font-size: .8125rem;
  color: rgba(251, 246, 236, .6);
}

.footer-note span { max-width: none; }

/* --------------------------------------------------------------------------
   Menu — the ordering surface on the homepage
   -------------------------------------------------------------------------- */
.menu {
  padding-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.menu-head-bar {
  display: grid;
  gap: 20px;
  padding-bottom: 8px;
}

.menu-head-bar .lede { margin-top: 12px; max-width: 46ch; }

.menu-closed-banner { margin-top: 16px; max-width: 52ch; }

@media (min-width: 960px) {
  .menu-head-bar {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    align-items: end;
    gap: 40px;
  }
}

.menu-find-wrap { position: relative; }

.menu-find-field { position: relative; }

.menu-find-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.menu-find {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 16px 0 44px;
  font: inherit;
  font-size: 1rem;
  line-height: 46px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  appearance: none;
  -webkit-appearance: none;
}

.menu-find::placeholder { color: var(--text-3); line-height: 46px; }

.menu-find:focus {
  outline: 3px solid var(--poblano-soft);
  outline-offset: 0;
  border-color: var(--poblano);
}

.menu-find::-webkit-search-decoration { -webkit-appearance: none; }

.menu-find::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%235B4636' stroke-width='2' stroke-linecap='round' d='M4 4l10 10M14 4L4 14'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
}

.menu-find-hint {
  margin-top: 8px;
  font-size: .8125rem;
  color: var(--text-3);
}

/* Layout: phones/tablets stack; desktop = index | dishes | order */
.menu-layout { display: block; position: relative; }

.menu-content { min-width: 0; }

.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 110;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding: 10px var(--gutter);
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
}

.menu-nav::-webkit-scrollbar { display: none; }

/* Right-edge fade while more chips are off-screen. A sticky flex item
   (not a mask) so the bar's own background stays opaque and the menu
   underneath never bleeds through. */
.menu-nav::after {
  content: "";
  flex: none;
  position: sticky;
  right: calc(-1 * var(--gutter));
  align-self: stretch;
  width: calc(var(--gutter) + 44px);
  margin-left: calc(-1 * (var(--gutter) + 44px));
  background: linear-gradient(90deg, rgba(251, 246, 236, 0), var(--bg-0) 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.menu-nav.is-clipped::after { opacity: 1; }

.menu-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.menu-nav a:hover { color: var(--text); border-color: var(--text-3); }

.menu-nav a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.menu-nav a.is-dimmed,
.menu-nav a.active.is-dimmed {
  background: transparent;
  border-color: var(--line);
  color: var(--text-3);
  font-weight: 500;
}

@media (max-height: 480px) and (orientation: landscape) {
  .menu-nav { padding-block: 6px; }
  .menu-nav a { min-height: 34px; padding: 5px 12px; }
}

/* Category sections */
.menu-section {
  padding: clamp(32px, 4.5vw, 56px) 0 8px;
  scroll-margin-top: calc(var(--header-h) + var(--menu-nav-h, 60px) + 8px);
}

.menu-section + .menu-section { border-top: 1px solid var(--line); }
.menu-section.is-first-visible { border-top: 0; }
.menu-section:focus { outline: none; }

.anchor-alias {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--header-h) + var(--menu-nav-h, 60px) + 8px);
}

.menu-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 24px;
  align-items: end;
  margin-bottom: 18px;
}
@media (min-width: 640px) {
  .menu-head { grid-template-columns: minmax(0, 1fr) auto; }
}

.menu-head-copy { grid-column: 1; grid-row: 1; }

.menu-head .section-kicker { margin-bottom: 8px; gap: 10px; }
.menu-head .section-kicker::before { display: none; }

.menu-index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.menu-title {
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1;
  letter-spacing: -.022em;
}

.menu-meta {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  padding: 5px 11px;
  border: 1px solid rgba(228, 169, 59, .6);
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-note {
  grid-column: 1 / -1;
  grid-row: 3;
  color: var(--text-2);
  font-size: .9375rem;
  max-width: 64ch;
}
@media (min-width: 640px) {
  .menu-meta { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 4px; }
  .menu-note { grid-row: 2; }
}

/* Items */
.menu-items-wrap { container-type: inline-size; }

.menu-items {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line-strong);
}

@container (min-width: 600px) {
  .menu-items { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4cqw, 56px); }
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7ch minmax(38px, auto);
  column-gap: 12px;
  align-items: start;
  align-content: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + var(--menu-nav-h, 60px) + 8px);
}

/* Rows already in the order get a green edge; the negative margin keeps the
   text where it was so nothing jumps on add. */
.item.in-order {
  margin-left: -14px;
  padding-left: 12px;
  box-shadow: inset 2px 0 0 var(--poblano);
  background: linear-gradient(90deg, var(--poblano-soft), transparent 55%);
}

.item-name {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.3;
  letter-spacing: -.008em;
  color: var(--text);
}

.item-num {
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-right: .25em;
}

.item-name .house { margin-left: 8px; vertical-align: 1px; }

.item-price {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: stretch;
  padding-top: 3px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--terra);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Rows that repeat the section price go quiet — only exceptions read in chile */
.item .item-price--std { color: var(--text-3); font-weight: 500; }

.item-desc {
  grid-column: 1;
  grid-row: 2;
  margin-top: 2px;
  color: var(--text-3);
  font-size: .875rem;
  line-height: 1.45;
  max-width: 52ch;
}

/* Order controls (injected by order.js) */
.order-controls {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 38px;
}

.item:has(.item-desc) .order-controls { grid-row: 1 / span 2; }

.item:has(.choice-panel) .order-controls {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: stretch;
  min-width: 0;
}

.item:has(.variant-row) .order-controls,
.item:has(.cap-note) .order-controls {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: flex-end;
  margin-top: 8px;
  min-width: 0;
}

.item:has(.variant-row) .item-desc,
.item:has(.cap-note) .item-desc,
.item:has(.choice-panel) .item-desc { grid-column: 1 / -1; }

@media (max-width: 699px) {
  .item:has(.add-more-btn) .order-controls {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-end;
    margin-top: 8px;
  }
  .item:has(.add-more-btn) .item-desc { grid-column: 1 / -1; }
}

.item:has(.choice-panel) .add-btn,
.item:has(.choice-panel) .qty-stepper,
.item:has(.choice-panel) .add-more-btn { display: none; }

/* "+" — quiet circle that becomes the stepper */
.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}

.add-btn::before {
  content: "+";
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.add-btn:hover,
.add-btn:focus-visible {
  background: var(--poblano);
  border-color: var(--poblano);
  color: #fff;
}

.add-btn:active,
.qty-btn:active { transform: translateY(1px); }

.add-more-btn {
  min-height: 38px;
  padding: 6px 10px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.add-more-btn:hover { color: var(--text); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--bg-2);
}

.qty-btn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.qty-btn:hover { background: var(--bg-3); color: var(--text); }

.qty-btn[aria-disabled="true"] {
  color: var(--text-3);
  cursor: default;
}

.qty-btn[aria-disabled="true"]:hover { background: transparent; color: var(--text-3); }

.qty-btn[disabled] { background: transparent; border: 0; }

.qty-num {
  min-width: 2ch;
  text-align: center;
  font-size: .9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--poblano);
}

.cap-note {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 4px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-3);
  text-align: right;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(96px, max-content) auto;
  justify-content: end;
  align-items: center;
  gap: 12px;
  flex-basis: 100%;
}

.variant-label {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text-2);
}

/* Inline choice panel */
.choice-panel {
  flex-basis: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 8px;
  opacity: 0;
  scroll-margin-bottom: 96px;
  transition: grid-template-rows var(--dur-2) var(--ease-in), opacity var(--dur-2) var(--ease-in);
}

.choice-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out);
}

.choice-panel-inner {
  overflow: hidden;
  min-height: 0;
  background: var(--bg-1);
}

.choice-q {
  font-weight: 600;
  margin-bottom: 10px;
}

.choice-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 960px) {
  .choice-opts { display: grid; grid-template-columns: 1fr 1fr; }
}

.choice-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--bg-2);
  color: var(--text);
  font-size: .9375rem;
}

.choice-opt:hover,
.choice-opt:focus-visible {
  border-color: var(--poblano);
  background: var(--poblano-soft);
}

.choice-opt-name { font-weight: 600; }
.choice-opt-desc { color: var(--text-2); font-size: .875rem; }
.choice-opt-desc::first-letter { text-transform: uppercase; }

.choice-cancel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Search empty state + diet note */
.menu-empty { min-height: 320px; padding: 40px 20px; }

.menu-diet { padding: 36px 0 56px; }

.menu-diet p {
  max-width: none;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: .9375rem;
}

/* Floating cart bar (phones/tablets) */
.cart-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 130;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(251, 246, 236, 0), rgba(251, 246, 236, .94) 40%);
  transition: transform var(--dur-2) var(--ease-out);
}

.cart-bar.is-scrolling-away { transform: translateY(100%); pointer-events: none; }

body.has-cart-bar main {
  padding-bottom: calc(var(--ttq-cart-bar-h, 84px) + env(safe-area-inset-bottom));
}

.cart-bar-inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 12px 20px 12px 22px;
  background: var(--flame);
  color: var(--on-flame);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(198, 58, 30, .7);
}

.cart-bar-inner:hover { background: var(--flame-hi); }

.cart-bar-summary { font-variant-numeric: tabular-nums; }
.cart-bar-cta { font-weight: 700; white-space: nowrap; }
.cart-bar-taxhint {
  font-weight: 500;
  font-size: .75em;
  opacity: .8;
}

.cart-bar-pulse { animation: cartpulse var(--dur-2) var(--ease-out); }
.cart-bar-enter { animation: barIn var(--dur-3) var(--ease-out); }

@keyframes barIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cartpulse { 0% { transform: scale(1); } 40% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* Desktop order rail */
.order-rail { display: none; }

@media (min-width: 1080px) {
  .menu-layout {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr) 320px;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }

  .menu-nav {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 32px 0 0;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
  }

  .menu-nav::after { display: none; }

  .menu-nav a {
    justify-content: flex-start;
    min-height: 34px;
    padding: 5px 0 5px 14px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text-3);
    font-size: .9375rem;
  }

  .menu-nav a:hover { color: var(--text); }

  .menu-nav a.active {
    background: transparent;
    color: var(--text);
    border-left-color: var(--poblano);
    font-weight: 600;
  }

  .menu-nav a.is-dimmed,
  .menu-nav a.active.is-dimmed { color: var(--text-3); border-left-color: var(--line); font-weight: 500; }

  .menu-section,
  .anchor-alias,
  .item { scroll-margin-top: calc(var(--header-h) + 8px); }

  .menu-section:first-of-type { padding-top: 32px; }

  .cart-bar { display: none !important; }

  .order-rail {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    margin-top: 32px;
    max-height: calc(100vh - var(--header-h) - 48px);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-surface);
    background: var(--bg-2);
    box-shadow: var(--shadow-card);
  }
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rail-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 92%;
}

.rail-count { font-size: .8125rem; font-weight: 600; color: var(--text-3); }

.rail-lines {
  list-style: none;
  padding: 0;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.rail-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rail-line-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rail-line-price {
  font-weight: 600;
  color: var(--terra);
  font-size: .9375rem;
  white-space: nowrap;
}

.rail-line-sub {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .8125rem;
  color: var(--text-3);
}

.rail-line .qty-stepper { padding: 1px; }
.rail-line .qty-btn { width: 30px; height: 30px; min-height: 30px; font-size: 1rem; }
.rail-line .qty-num { font-size: .875rem; }

.rail-empty {
  padding: 24px 0 8px;
  color: var(--text-3);
  font-size: .9375rem;
}

.rail-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.rail-foot { padding-top: 14px; }

.rail-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 600;
}

.rail-total-amount { color: var(--text); }

.rail-foot .btn { width: 100%; margin-top: 14px; }

.rail-note {
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--text-3);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */
.checkout-main { padding: clamp(20px, 4vw, 48px) 0 72px; }
/* The app is hidden until its script runs; hold the footer below the fold
   so it doesn't paint at the top and jump (CLS 0.93 → ~0 on phones). */
.js .checkout-main { min-height: 100vh; min-height: 100svh; }

.checkout-wrap { max-width: 1080px; }

.checkout-head { margin-bottom: 20px; }

.checkout-head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-stretch: 92%;
  letter-spacing: -.02em;
}

.checkout-head .sub {
  margin-top: 6px;
  color: var(--text-2);
  font-size: .9375rem;
}

.checkout-head .sub a,
.total-note a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pickup-flag {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-2);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  color: var(--text);
}

.pickup-flag--quiet {
  margin: 0 0 12px;
  padding: 8px 10px;
  font-size: .8125rem;
  background: #fff;
}

.pickup-note {
  margin-top: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
}

.checkout-grid { display: grid; gap: 20px; }

.checkout-form { min-width: 0; }

.co-section { margin-top: 26px; }

.co-section:first-child { margin-top: 0; }

.co-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.1875rem;
  font-stretch: 95%;
  margin-bottom: 12px;
}

.co-section .block-sub {
  color: var(--text-3);
  font-size: .875rem;
  margin: -6px 0 12px;
}

/* Express wallets */
.wallets {
  display: grid;
  gap: 10px;
}

.wallets.has-2 { grid-template-columns: 1fr 1fr; align-items: stretch; }

.wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}

.wallet-btn:hover { opacity: .9; }
.wallet-btn:active { transform: translateY(1px); }

.wallet-btn[disabled] { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--line); }

/* Safari draws Apple's own button; elsewhere the text fallback shows */
@supports (-webkit-appearance: -apple-pay-button) {
  .wallet-btn--apple {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: order;
    -apple-pay-button-style: black;
    font-size: 0;
  }
}

.wallet-btn--google svg { height: 20px; width: auto; }

.wallet-btn.is-busy { opacity: .7; cursor: wait; }

/* Google Pay lives in an iframe. Clip it — fill-mode redraws stack when
   Apple Pay opens and the visual viewport jumps. */
.wallet-slot,
.wallet-btn--google-slot {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  overflow: hidden;
  border-radius: 8px;
  line-height: 0;
  isolation: isolate;
}
.wallet-slot iframe,
.wallet-slot > div {
  display: block;
  width: 100%;
  max-height: 48px;
}
/* Google Pay's fill button paints dark_gpay.svg with background-repeat.
   Without this, a wide slot becomes a wallpaper of G Pay marks. */
.wallet-slot .gpay-button {
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  color: var(--text-3);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* Checkout contact fields: labels above inputs */
.checkout-form .contact-fields,
.checkout-summary .contact-fields {
  border: 0;
  background: transparent;
  border-radius: 0;
  display: grid;
  gap: 14px;
  overflow: visible;
}

.checkout-form .contact-fields .field-inset,
.checkout-summary .contact-fields .field-inset {
  position: relative;
  border: 0;
}

.checkout-form .contact-fields .field-inset label,
.checkout-summary .contact-fields .field-inset label {
  position: static;
  display: block;
  top: auto;
  left: auto;
  margin-bottom: 6px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  pointer-events: auto;
}

.checkout-form .contact-fields .field-inset input,
.checkout-form .contact-fields .field-inset textarea,
.checkout-summary .contact-fields .field-inset input,
.checkout-summary .contact-fields .field-inset textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.checkout-form .contact-fields .field-inset textarea { min-height: 88px; resize: vertical; }

.checkout-form .contact-fields .field-inset:focus-within {
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  z-index: auto;
}

.checkout-form .contact-fields .field-inset:first-child:focus-within,
.checkout-form .contact-fields .field-inset:last-child:focus-within,
.checkout-form .contact-fields .field-inset:only-child:focus-within {
  border-radius: 0;
}

.checkout-form .contact-fields .field-inset:focus-within label { color: var(--text); }

.checkout-form .contact-fields .field-inset input:focus,
.checkout-form .contact-fields .field-inset textarea:focus {
  outline: none;
  border-color: var(--poblano);
  box-shadow: 0 0 0 3px rgba(46, 106, 62, .18);
}

.checkout-form .contact-fields .field-inset.is-invalid input,
.checkout-form .contact-fields .field-inset.is-invalid textarea {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(180, 70, 50, .18);
}

.checkout-form .contact-fields .field-inset.is-invalid { box-shadow: none; }
.checkout-form .contact-fields .field-inset.is-invalid label { color: var(--terra); }

.checkout-summary .contact-fields .field-inset textarea { min-height: 72px; resize: vertical; }
.checkout-summary .notes-toggle { margin-top: 4px; }
.checkout-summary .notes-wrap { margin-top: 8px; }
.checkout-summary .contact-fields .field-inset:focus-within {
  box-shadow: none;
  background: transparent;
}
.checkout-summary .contact-fields .field-inset input:focus,
.checkout-summary .contact-fields .field-inset textarea:focus {
  outline: none;
  border-color: var(--poblano);
  box-shadow: 0 0 0 3px rgba(46, 106, 62, .18);
}

#card-mount { margin-top: 20px; }

/* Grouped inset fields — label sits inside, top-left (demo card) */
.field-group {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: #FFFDF9;
  overflow: hidden;
}

.field-inset {
  position: relative;
  border-top: 1px solid var(--line);
}

.field-inset:first-child { border-top: 0; }

.field-inset label {
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
  transition: color var(--dur-1) var(--ease-out);
}

.field-inset input,
.field-inset textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 25px 14px 8px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.field-inset textarea { min-height: 88px; resize: vertical; }

.field-inset input::placeholder,
.field-inset textarea::placeholder { color: var(--text-3); opacity: .8; }

.field-inset input:focus,
.field-inset textarea:focus { outline: none; }

/* Focus/invalid rings are inset shadows on the cell — the cell (not the
   input) carries the focus fill so the ring is never painted over. */
.field-inset:focus-within { box-shadow: inset 0 0 0 2px var(--poblano); background: var(--bg-2); z-index: 1; border-radius: 0; }
.field-inset:first-child:focus-within { border-radius: var(--r-control) var(--r-control) 0 0; }
.field-inset:last-child:focus-within { border-radius: 0 0 var(--r-control) var(--r-control); }
.field-inset:only-child:focus-within { border-radius: var(--r-control); }

.field-inset:focus-within label { color: var(--poblano); }

.field-inset.is-invalid { box-shadow: inset 0 0 0 2px var(--terra); }
.field-inset.is-invalid label { color: var(--terra); }

.field-inset .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); }

.field-error {
  margin-top: 8px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--terra);
}

.promo {
  margin: 16px 0 4px;
}
.promo-entry {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.promo-entry .field-inset {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--bg-2);
}
.promo-apply {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0 16px;
  min-height: 52px;
}
.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-control);
  background: var(--poblano-soft);
  color: var(--poblano-deep);
  font-size: .9375rem;
  font-weight: 600;
}

.hint {
  margin-top: 8px;
  font-size: .875rem;
  color: var(--text-3);
}

/* Notes toggle */
.notes-toggle {
  margin-top: 10px;
  min-height: 40px;
  padding: 6px 2px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notes-toggle:hover { color: var(--text); }

.notes-wrap { margin-top: 10px; }

/* Pickup location */
.eta-row {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
}

.eta-kicker {
  margin: 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}

.eta-where {
  display: block;
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eta-where:hover { color: var(--poblano); }

.eta-value {
  margin-top: 10px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-2);
}

/* Payment block — the provider owns #card-mount */
.pay-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 11px 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.pay-mode::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--marigold);
}

.pay-mode.is-live::before { background: var(--poblano); }

.demo-note { margin-bottom: 12px; font-size: .875rem; }

#card-mount { min-height: 58px; }

/* Demo card cells: number full width, then exp | cvv | zip */
.card-cells { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.card-cells .field-inset { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card-cells .field-inset:first-child { border-left: 0; }
.card-cells .field-inset:first-child:focus-within { border-radius: 0 0 0 var(--r-control); }
.card-cells .field-inset:last-child:focus-within { border-radius: 0 0 var(--r-control) 0; }
.field-group > .field-inset.cc-number:focus-within { border-radius: var(--r-control) var(--r-control) 0 0; }

.cc-brand {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
}

@media (max-width: 380px) {
  .card-cells { grid-template-columns: 1fr 1fr; }
  .card-cells .field-inset:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* Square's hosted single-line card field */
#card-mount .sq-card-wrapper { margin: 0; }

.card-errors { margin-top: 8px; }

.pay-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--text-3);
}

.pay-secure svg { flex: none; margin-top: 2px; color: var(--text-3); }

.pay-unavailable { margin-top: 12px; }

.error-summary { margin-top: 18px; }

.place-order { margin-top: 24px; }

.place-order .error-summary { margin: 0 0 14px; }

.btn-pay {
  width: 100%;
  min-height: 56px;
  font-size: 1.0625rem;
  justify-content: space-between;
  padding-inline: 24px;
}

.btn-pay .pay-amount { font-variant-numeric: tabular-nums; font-weight: 700; }

.place-order-note { margin-top: 12px; font-weight: 600; color: var(--text); font-size: .9375rem; }

.place-order .hint { margin-top: 10px; }

#closed-banner { margin-top: 14px; }

/* Order summary — collapsible on phones, sticky card on desktop */
.checkout-summary { min-width: 0; }

.summary-details {
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--bg-2);
}

.summary-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--r-surface);
}

.summary-details > summary::-webkit-details-marker { display: none; }

.summary-details > summary .summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: .9375rem;
}

.summary-details > summary .summary-label svg { transition: transform var(--dur-2) var(--ease-out); color: var(--text-3); }
.summary-details[open] > summary .summary-label svg { transform: rotate(180deg); }

.summary-total { font-size: 1.125rem; font-weight: 700; }

.summary-body { padding: 0 18px 18px; }

.summary-body h2 {
  display: block;
  font-size: 1.0625rem;
  font-stretch: 95%;
  margin: 4px 0 10px;
}

.cart-lines { list-style: none; padding: 0; }

.cart-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.cart-line:first-child { border-top: 0; padding-top: 4px; }

.cart-line .qty-stepper { padding: 1px; }
.cart-line .qty-btn { width: 30px; height: 30px; min-height: 30px; font-size: 1rem; }
.cart-line .qty-num { min-width: 1.75ch; font-size: .875rem; }

.cart-line-copy { min-width: 0; }

.cart-line-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart-line-price {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  align-self: start;
  padding-top: 2px;
  font-size: .9375rem;
}

.cart-line-sub {
  margin-top: 1px;
  color: var(--text-3);
  font-size: .8125rem;
  line-height: 1.5;
}

.total-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.1875rem;
  font-weight: 700;
}

.total-row--sub,
.total-row--tax,
.total-row--disc {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}

.total-row--disc { color: var(--poblano); }

.total-note {
  margin-top: 4px;
  color: var(--text-3);
  font-size: .875rem;
}

.quiet-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .9375rem; }

@media (min-width: 960px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }

  .checkout-form { order: 0; }

  .checkout-summary {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .summary-details > summary { display: none; }
  .summary-body { padding: 22px; }
  .summary-body h2 {
    display: block;
    font-size: 1.1875rem;
    font-stretch: 95%;
    margin-bottom: 8px;
  }
  .summary-details { box-shadow: var(--shadow-card); }
}

.checkout-main .field-inset,
.checkout-main .text-btn,
.checkout-main .eta-row,
.checkout-main .place-order,
.checkout-main #card-mount {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.noscript-note { margin: 20px auto; text-align: center; }

/* --------------------------------------------------------------------------
   Empty states (404, empty checkout, no recent order, redirect)
   -------------------------------------------------------------------------- */
.page-empty {
  text-align: center;
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: calc(100dvh - var(--header-h) - 360px);
}

.page-empty .glyph-truck { color: var(--poblano); margin-bottom: 4px; }
.page-empty .section-kicker { justify-content: center; }
.page-empty .section-kicker::before { display: none; }
.page-empty p { color: var(--text-2); max-width: 44ch; }

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.empty-sub {
  margin-top: 20px;
  color: var(--text-3);
  font-size: .875rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Confirmation — the ticket
   -------------------------------------------------------------------------- */
.demo-page-banner { text-align: center; margin-bottom: 24px; }

.confirm-head { text-align: center; }
.confirm-head .section-kicker { justify-content: center; }
.confirm-head .section-kicker::before { display: none; }

.confirm-head .section-title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); overflow-wrap: anywhere; }

.confirm-grid { margin-top: 8px; }

@media (min-width: 960px) {
  .checkout-main .confirm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 0 clamp(24px, 3vw, 40px);
    align-items: start;
  }
}

.confirm-eta {
  margin-top: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
}

.ticket {
  position: relative;
  margin: 28px auto 0;
  max-width: 460px;
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: #FFFDF8;
  color: var(--ink);
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(46, 28, 18, .4);
}

.ticket-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ticket-brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--poblano);
}

.order-number-label {
  margin-top: 20px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold);
}

.order-number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1;
  letter-spacing: -.03em;
  margin-top: 6px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.order-number-hint { margin-top: 10px; font-size: .9375rem; color: var(--text-2); }

.ticket-tear {
  position: relative;
  margin: 20px -26px 16px;
  border-top: 2px dashed var(--line-strong);
}

.ticket-tear::before,
.ticket-tear::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--line);
}

.ticket-tear::before { left: -12px; }
.ticket-tear::after { right: -12px; }

.ticket-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  font-size: .8125rem;
  color: var(--text-2);
  text-align: left;
}

.ticket-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.ticket-meta .glyph-truck { color: var(--gold); }

@media (max-width: 400px) {
  .ticket-meta { grid-template-columns: 1fr 1fr; }
  .ticket-meta > :first-child { grid-column: 1 / -1; }
}

.checkout-block { margin-top: 20px; }

.checkout-block h2 {
  font-size: 1.1875rem;
  font-stretch: 95%;
  margin-bottom: 8px;
}

.pickup-steps { padding-left: 22px; color: var(--text-2); }
.pickup-steps li { padding: 6px 0; }
.pickup-steps li::marker { color: var(--terra); font-weight: 600; }

.status-ladder {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-ladder li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-control);
  font-weight: 500;
  color: var(--text-3);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex: none;
}

.status-ladder li.done { color: var(--poblano); }
.status-ladder li.done .status-dot { background: var(--poblano); border-color: var(--poblano); }

.status-ladder li.current {
  background: var(--gold-soft);
  color: var(--text);
}

.status-ladder li.current .status-dot {
  background: var(--marigold);
  border-color: var(--marigold);
  box-shadow: 0 0 0 4px rgba(228, 169, 59, .25);
}

.receipt-lines { list-style: none; padding: 0; }

.receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.receipt-line:first-child { border-top: 0; }

.receipt-name { min-width: 0; overflow-wrap: anywhere; flex: 1 1 auto; }

.receipt-price {
  font-weight: 600;
  color: var(--text);
  flex: 0 0 auto;
  min-width: 60px;
  text-align: right;
}

.confirm-help { margin-top: 24px; color: var(--text-2); }

.confirm-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn-spinner { animation: none; border-right-color: currentColor; opacity: .7; }
}
