:root {
  --ink: #161616;
  --paper: #f3f0e8;
  --cream: #fffdf8;
  --acid: #ddfa4f;
  --orange: #ff6238;
  --muted: #6f6c64;
  --line: #d8d3c7;
  --shadow: 0 18px 50px rgb(25 24 20 / 10%);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, .button { cursor: pointer; }

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section-block { padding-block: 70px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
}

.site-header nav { align-items: center; display: flex; gap: 20px; font-size: .87rem; }
.site-header nav form { display: inline; }
.site-header a { text-decoration: none; }
.wordmark { align-items: center; display: flex; font-size: .9rem; font-weight: 700; gap: 10px; letter-spacing: .14em; }
.wordmark-dot { background: var(--acid); border-radius: 99px; box-shadow: 0 0 0 4px rgb(221 250 79 / 15%); height: 12px; width: 12px; }
.link-button { background: none; border: 0; color: inherit; padding: 0; }
.admin-nav { background: var(--cream); border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-nav .shell { display: flex; gap: 28px; }
.admin-nav a { flex: 0 0 auto; font-size: .78rem; font-weight: 700; padding-block: 14px; text-decoration: none; }
.admin-nav a:hover { color: var(--orange); }

.flash { border-bottom: 1px solid; font-size: .9rem; padding: 12px 20px; text-align: center; }
.flash.alert { background: #ffe0d7; border-color: #ffb29b; }
.flash.notice { background: #efffc7; border-color: #c9e47a; }

.hero {
  background:
    radial-gradient(circle at 82% 42%, var(--acid) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 32%, var(--orange) 0 70px, transparent 71px);
  min-height: 570px;
  padding-block: 130px 90px;
  position: relative;
}

.hero::after {
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 240px;
  position: absolute;
  right: 1%;
  top: 135px;
  transform: rotate(-13deg);
  width: 240px;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
.hero h1, .compact-hero h1, .order-hero h1, .receipt-status h1, .payment-wrap h1 {
  font-size: clamp(3.4rem, 9vw, 7.7rem);
  letter-spacing: -.07em;
  line-height: .86;
  margin-bottom: 30px;
  max-width: 900px;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.hero-copy { color: var(--muted); font-size: 1.12rem; line-height: 1.6; max-width: 470px; }
.section-heading { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2, .assistant-card h2, .checkout-panel h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.05em; margin: 0; }
.scribble { font-family: Georgia, "Times New Roman", serif; font-style: italic; transform: rotate(-3deg); }

.business-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.business-card {
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 92px 1fr;
  padding: 22px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.business-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.business-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.business-card p { color: var(--muted); }
.business-mark { align-items: center; aspect-ratio: 1; background: var(--acid); border-radius: 50%; display: flex; font-size: 1.4rem; font-weight: 700; justify-content: center; }
.text-link { font-size: .85rem; font-weight: 700; }

.compact-hero { padding-block: 70px 40px; }
.compact-hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin: 25px 0 12px; }
.compact-hero > p:last-child { color: var(--muted); font-size: 1.1rem; }
.back-link { display: inline-block; font-size: .86rem; font-weight: 600; margin-block: 10px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link.light { color: white; opacity: .8; }

.location-list { display: grid; gap: 14px; }
.location-card { align-items: center; background: var(--cream); border: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 76px 1fr auto; padding: 20px; }
.date-tile { align-items: center; background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: center; min-height: 76px; text-transform: uppercase; }
.date-tile span { font-size: .68rem; letter-spacing: .15em; }
.date-tile strong { font-size: 1.8rem; }
.location-card h2 { font-size: 1.5rem; margin: 10px 0 4px; }
.location-card p { color: var(--muted); margin-bottom: 3px; }
.status-row { align-items: center; color: var(--muted); display: flex; font-size: .74rem; gap: 12px; }
.status-pill { background: #e8e4db; border-radius: 999px; display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .06em; padding: 5px 8px; text-transform: uppercase; }
.status-pill.live { background: var(--acid); color: var(--ink); }
.time-range { font-size: .85rem; font-weight: 600; }

.button {
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  display: inline-block;
  font-size: .86rem;
  font-weight: 700;
  padding: 13px 18px;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.button:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .5; }
.button.secondary { background: var(--cream); }
.button-large { font-size: 1rem; min-width: 210px; padding: 17px 24px; }
.pagination { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

.order-hero { background: var(--ink); color: white; padding-block: 26px 58px; }
.order-hero-grid { align-items: end; display: grid; gap: 40px; grid-template-columns: 1fr auto; padding-top: 50px; }
.order-hero h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); margin: 0 0 15px; }
.order-hero p { color: #bbb8b0; margin-bottom: 0; }
.pickup-card { align-items: center; border: 1px solid #4f4d48; display: flex; gap: 14px; max-width: 340px; padding: 18px; }
.pickup-card strong, .pickup-card small { display: block; }
.pickup-card small { color: #aaa79f; margin-top: 4px; }
.signal { background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 6px rgb(221 250 79 / 14%); height: 10px; flex: 0 0 10px; }

.assistant-card { align-items: center; background: var(--orange); display: grid; gap: 28px; grid-template-columns: .8fr 1.2fr; margin-top: 36px; padding: 28px; }
.assistant-form { display: flex; gap: 8px; }
.assistant-form input[type="text"] { border: 1px solid var(--ink); flex: 1; min-width: 0; padding: 14px; }
.recommendation { background: var(--cream); border-left: 5px solid var(--acid); grid-column: 1 / -1; padding: 18px; }
.recommendation span { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.recommendation strong { display: block; font-size: 1.2rem; margin-top: 4px; }
.recommendation p { margin: 6px 0 0; }

.order-form { padding-block: 25px 80px; }
.menu-section { padding-top: 54px; }
.price-note { background: var(--acid); font-size: .8rem; font-weight: 700; padding: 8px 11px; transform: rotate(1deg); }
.menu-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-item { align-items: stretch; background: var(--cream); border: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 170px; padding: 22px; position: relative; }
.menu-item.recommended-item { border: 2px solid var(--orange); }
.menu-item.sold-out-item { filter: grayscale(.65); opacity: .7; }
.menu-item-image { height: 96px; margin-right: 16px; object-fit: cover; width: 110px; }
.pick-badge { background: var(--orange); font-size: .64rem; font-weight: 700; left: 16px; letter-spacing: .08em; padding: 5px 8px; position: absolute; text-transform: uppercase; top: -13px; }
.menu-item-copy { padding-right: 20px; }
.menu-item h3 { font-size: 1.25rem; margin-bottom: 9px; }
.menu-item p { color: var(--muted); font-size: .87rem; line-height: 1.5; }
.menu-item-order { align-items: end; display: flex; flex-direction: column; justify-content: space-between; }
.menu-item-order input { border: 1px solid var(--line); font-weight: 700; padding: 10px 4px 10px 10px; text-align: center; width: 60px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .64rem; padding: 3px 7px; }
.modifier-choices { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; }
.modifier-choices legend { font-size: .75rem; font-weight: 700; padding: 0 6px 0 0; }
.modifier-choices legend small { color: var(--muted); font-weight: 400; margin-left: 5px; }
.modifier-choices label { align-items: center; display: flex; font-size: .76rem; gap: 6px; margin-top: 7px; }
.modifier-choices label small { color: var(--muted); margin-left: auto; }
.sold-out-label { color: #a12920; font-size: .75rem; font-weight: 700; text-transform: uppercase; }

.checkout-panel { background: var(--ink); color: white; display: grid; gap: 36px; grid-template-columns: .7fr 1.3fr; margin-top: 70px; padding: clamp(28px, 6vw, 60px); }
.field-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { border: 0; display: block; margin: 0; padding: 0; }
.field.full { grid-column: 1 / -1; }
.field > span, .field legend { color: #aaa79f; display: block; font-size: .74rem; margin-bottom: 7px; }
.field input:not([type="radio"]), .field textarea { background: #272725; border: 1px solid #484640; color: white; padding: 13px; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--acid); outline: 1px solid var(--acid); }
.radio { display: inline-flex; font-size: .85rem; gap: 5px; margin: 5px 16px 10px 0; }
.checkout-action { align-items: center; border-top: 1px solid #3f3d39; display: flex; gap: 20px; grid-column: 1 / -1; justify-content: space-between; padding-top: 26px; }
.checkout-action p { color: #aaa79f; font-size: .78rem; margin: 0; }

.receipt-wrap { max-width: 700px; padding-block: 70px; }
.receipt-status { margin-bottom: 40px; text-align: center; }
.receipt-status h1 { font-size: clamp(2.7rem, 8vw, 5rem); margin: 18px auto; }
.receipt-status > p:last-child { color: var(--muted); line-height: 1.6; }
.receipt-icon { align-items: center; background: #ddd9ce; border-radius: 50%; display: inline-flex; font-size: 1.4rem; height: 54px; justify-content: center; width: 54px; }
.receipt-status.paid .receipt-icon { background: var(--acid); }
.receipt { background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 25px; padding: 28px; }
.receipt-heading, .receipt-line, .receipt-total { display: flex; justify-content: space-between; }
.receipt-heading { border-bottom: 1px dashed var(--line); margin-bottom: 18px; padding-bottom: 18px; }
.receipt-heading span, .receipt-heading strong { display: block; }
.receipt-heading span { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.align-right { text-align: right; }
.receipt-line { padding-block: 7px; }
.receipt-line.muted { color: var(--muted); font-size: .85rem; }
.receipt-total { border-top: 2px solid var(--ink); font-size: 1.25rem; margin-top: 15px; padding-top: 18px; }

.payment-wrap { background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); margin-block: 80px; max-width: 620px; padding: clamp(30px, 7vw, 65px); }
.payment-wrap h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); margin: 25px 0; }
.payment-wrap p { color: var(--muted); line-height: 1.6; }
.payment-wrap form { margin-block: 25px 12px; }
.test-mode { background: #efeacb; display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: 7px 9px; text-transform: uppercase; }

.admin-grid { display: grid; gap: 55px; grid-template-columns: 1.5fr .75fr; padding-block: 30px 80px; }
.order-queue { display: grid; gap: 10px; }
.queue-card { align-items: center; background: var(--cream); border: 1px solid var(--line); display: flex; justify-content: space-between; padding: 17px; }
.queue-card h3 { margin: 8px 0 4px; }
.queue-card p { color: var(--muted); font-size: .8rem; margin: 0; }
.qr-card { align-items: center; background: var(--cream); border: 1px solid var(--line); display: grid; gap: 15px; grid-template-columns: 110px 1fr; margin-bottom: 12px; padding: 14px; }
.qr-card svg { height: auto; width: 110px; }
.qr-card h3 { margin-bottom: 5px; }
.qr-card p, .qr-card a { color: var(--muted); font-size: .78rem; }
.empty-state { color: var(--muted); padding-block: 70px; text-align: center; }

.admin-page { padding-block: 58px 90px; }
.admin-page-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 38px; }
.admin-page-heading h1, .form-intro h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -.065em;
  line-height: .9;
  margin-bottom: 16px;
}
.admin-page-heading p, .form-intro > p:last-child { color: var(--muted); line-height: 1.55; max-width: 620px; }
.data-list { display: grid; gap: 10px; }
.data-row {
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 18px 20px;
}
.data-row-main { align-items: center; display: flex; gap: 16px; min-width: 0; }
.data-row h2 { font-size: 1.05rem; margin: 0 0 5px; }
.data-row p { color: var(--muted); font-size: .78rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { align-items: center; display: flex; gap: 14px; font-size: .78rem; }
.row-actions form { display: inline; }
.row-actions a { font-weight: 700; }
.danger { color: #a12920; }
.qr-mini svg { display: block; height: 62px; width: 62px; }
.location-admin-row { grid-template-columns: minmax(0, 1fr) auto auto; }

.form-page { display: grid; gap: 55px; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); padding-block: 64px 95px; }
.form-page.narrow { grid-template-columns: minmax(230px, .6fr) minmax(0, 1fr); max-width: 980px; }
.form-intro { align-self: start; position: sticky; top: 30px; }
.form-panel { background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 46px); }
.light-fields .field { min-width: 0; }
.light-fields .field > span { color: var(--muted); font-weight: 600; }
.light-fields .field input:not([type="radio"], [type="checkbox"], [type="color"]),
.light-fields .field textarea,
.light-fields .field select {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 46px;
  padding: 12px;
  width: 100%;
}
.light-fields .field input:focus, .light-fields .field textarea:focus, .light-fields .field select:focus {
  border-color: var(--orange);
  outline: 2px solid color-mix(in srgb, var(--orange) 25%, transparent);
}
.field small { color: var(--muted); display: block; font-size: .7rem; margin-top: 6px; }
.check-field { align-items: center; align-self: end; display: flex; gap: 9px; min-height: 46px; }
.check-field input { height: 18px; width: 18px; }
.form-actions { align-items: center; display: flex; gap: 18px; margin-top: 28px; }
.form-links { display: flex; gap: 20px; justify-content: space-between; }
.error-summary { background: #ffe0d7; border-left: 4px solid #a12920; margin-bottom: 24px; padding: 16px; }
.error-summary ul { margin-bottom: 0; padding-left: 20px; }
.palette-heading { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 30px; }
.palette-heading h2 { margin-bottom: 20px; }
.palette-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.color-field { align-items: center; border: 1px solid var(--line); display: flex; gap: 12px; padding: 11px; }
.color-field input { background: none; border: 0; height: 44px; padding: 0; width: 52px; }
.color-field span, .color-field strong, .color-field small { display: block; }
.color-field strong { font-size: .78rem; }
.color-field small { color: var(--muted); font-size: .68rem; margin-top: 3px; }
.product-image-preview { align-items: center; display: flex; gap: 15px; grid-column: 1 / -1; }
.product-image-preview img { height: 90px; object-fit: cover; width: 120px; }
.modifier-manager { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 30px; }
.modifier-summary { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-block: 13px; }
.modifier-summary small { color: var(--muted); display: block; margin-top: 4px; }
.muted-copy { color: var(--muted); }
.team-layout { display: grid; gap: 36px; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); }
.inline-role-form { align-items: center; display: flex; gap: 8px; }
.pending-invite { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; }
.pending-invite small { color: var(--muted); display: block; margin-top: 3px; }
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.plan-card { background: var(--cream); border: 1px solid var(--line); padding: 28px; }
.plan-card.selected { border: 2px solid var(--orange); }
.plan-card h2 { font-size: 2.4rem; }
.plan-card h2 small { color: var(--muted); font-size: .8rem; }
.plan-card > p { color: var(--muted); line-height: 1.5; min-height: 68px; }
.button.compact { padding: 8px 11px; }

.kitchen-page { max-width: 1440px; }
.status-filters { display: flex; flex-wrap: wrap; gap: 10px; font-size: .75rem; }
.status-filters a { border-bottom: 1px solid; text-decoration: none; }
.kitchen-board { align-items: start; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(230px, 1fr)); overflow-x: auto; }
.kitchen-column { background: rgb(255 255 255 / 25%); border: 1px solid var(--line); min-height: 420px; padding: 12px; }
.kitchen-column .section-heading { align-items: center; margin-bottom: 12px; }
.kitchen-column h2 { font-size: .95rem; text-transform: uppercase; }
.ticket-card { background: var(--cream); border: 1px solid var(--line); margin-bottom: 10px; padding: 14px; }
.ticket-heading { align-items: start; display: flex; justify-content: space-between; }
.ticket-heading span:first-child { color: var(--muted); font-size: .68rem; }
.ticket-heading h3 { margin: 2px 0 0; }
.ticket-time { color: var(--muted); font-size: .72rem; margin-block: 10px; }
.ticket-card ul { border-block: 1px dashed var(--line); list-style: none; margin: 0; padding: 10px 0; }
.ticket-card li { font-size: .78rem; margin-block: 7px; }
.ticket-card li small { color: var(--muted); display: block; margin: 3px 0 0 18px; }
.ticket-actions { align-items: center; display: flex; font-size: .75rem; justify-content: space-between; margin-top: 12px; }
.ticket-actions form { margin: 0; }
.history-list { margin-top: 42px; }
.history-row { background: var(--cream); border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px; text-decoration: none; }
.ticket-page { max-width: 920px; padding-block: 35px 80px; }
.ticket-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 22px; }
.kitchen-ticket { background: white; border: 2px solid #111; color: #111; margin-inline: auto; max-width: 560px; padding: 30px; }
.kitchen-ticket header { border-bottom: 3px solid #111; padding-bottom: 20px; }
.kitchen-ticket header h1 { font-size: 4rem; margin: 8px 0; }
.kitchen-ticket header > div, .kitchen-ticket footer { display: flex; justify-content: space-between; }
.ticket-items { padding-block: 18px; }
.ticket-item { border-bottom: 1px dashed #777; display: grid; gap: 16px; grid-template-columns: 42px 1fr; padding-block: 15px; }
.ticket-item > strong { font-size: 1.7rem; }
.ticket-item h2 { font-size: 1.35rem; margin-bottom: 5px; }
.ticket-item p { font-size: .85rem; margin: 3px 0; }
.ticket-note { background: #fff3bf; margin-block: 15px; padding: 14px; }
.kitchen-ticket footer { border-top: 3px solid #111; padding-top: 18px; }
.operator-panels { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.operator-panels .form-panel { padding: 22px; }
.operator-panels select, .operator-panels input { margin-bottom: 10px; width: 100%; }
.refund-line { border-top: 1px solid var(--line); font-size: .75rem; padding-top: 8px; }

[hidden] { display: none !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.discovery-hero { min-height: 640px; }
.discovery-map-section { background: var(--ink); color: white; padding-block: 72px; scroll-margin-top: 20px; }
.discovery-map-section .section-heading { align-items: center; }
.discovery-map-section .section-heading h2 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 0; }
.map-note { color: #bbb8b0; font-size: .82rem; margin: 0; }
.discovery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip {
  background: transparent;
  border: 1px solid #65625c;
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 9px 12px;
}
.filter-chip.active, .filter-chip:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.marketplace-map { border: 1px solid #65625c; height: min(65vh, 620px); min-height: 420px; width: 100%; }
.map-empty { color: #bbb8b0; margin: 12px 0 0; }
.map-popup { display: grid; gap: 3px; min-width: 180px; }
.map-popup strong { font-size: .95rem; }
.map-popup span { color: #5e5b55; font-size: .75rem; }
.map-popup a { font-size: .75rem; font-weight: 700; margin-top: 5px; }
.discovery-montage { display: grid; gap: 22px; }
.discovery-shop-card {
  align-items: stretch;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 62px minmax(0, 1fr) 120px;
  padding: clamp(22px, 4vw, 38px);
  transition: box-shadow .2s ease, transform .2s ease;
}
.discovery-shop-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.discovery-shop-card.offset { margin-left: clamp(0px, 7vw, 90px); }
.discovery-shop-number { color: var(--orange); font-size: 1.15rem; font-weight: 700; }
.discovery-shop-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: .7rem; gap: 10px; text-transform: uppercase; }
.shop-type { color: var(--ink); font-weight: 700; }
.discovery-shop-copy h3 { font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -.05em; margin: 12px 0; }
.discovery-shop-copy h3 a { text-decoration: none; }
.discovery-shop-copy > p { color: var(--muted); line-height: 1.55; max-width: 680px; }
.featured-items { border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; margin-block: 18px; padding-block: 12px; }
.featured-items > span { font-size: .76rem; }
.featured-items strong { margin-left: 4px; }
.discovery-shop-actions { align-items: center; display: flex; flex-direction: column; gap: 16px; }
.discovery-shop-actions .business-mark { width: 92px; }
.favorite-button {
  background: var(--cream);
  border: 1px solid var(--ink);
  color: var(--ink);
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
}
.favorite-button.saved { background: var(--acid); }
.favorite-card { display: block; }
.favorite-card:hover { transform: none; }
.favorite-card .business-card-main { align-items: center; display: grid; gap: 20px; grid-template-columns: 74px 1fr; text-decoration: none; }
.favorite-card .link-button { color: var(--muted); font-size: .72rem; margin-top: 16px; }
.field-help { color: var(--muted); font-size: .74rem; line-height: 1.5; margin: -5px 0 4px; }
.check-field small { display: block; font-weight: 400; margin-top: 4px; }

@media print {
  body { background: white; }
  .site-header, .admin-nav, .no-print, .flash { display: none !important; }
  .ticket-page { padding: 0; }
  .kitchen-ticket { border: 0; max-width: none; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 26px, 1120px); }
  .site-header { height: 62px; padding-inline: 14px; }
  .site-header nav a { display: none; }
  .hero { background: none; min-height: 520px; padding-top: 105px; }
  .hero::after { display: none; }
  .section-block { padding-block: 45px; }
  .location-card { align-items: start; grid-template-columns: 62px 1fr; }
  .location-action { grid-column: 1 / -1; }
  .location-action .button { text-align: center; width: 100%; }
  .order-hero-grid, .assistant-card, .checkout-panel, .admin-grid { grid-template-columns: 1fr; }
  .pickup-card { margin-top: 12px; }
  .assistant-card { gap: 18px; }
  .assistant-form { flex-direction: column; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-item { min-height: 155px; padding: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .checkout-action { align-items: stretch; flex-direction: column; }
  .button-large { width: 100%; }
  .admin-grid { gap: 30px; }
  .admin-page-heading, .form-page, .team-layout, .operator-panels { display: grid; grid-template-columns: 1fr; }
  .form-page { gap: 28px; padding-block: 40px 70px; }
  .form-intro { position: static; }
  .data-row, .location-admin-row { align-items: start; grid-template-columns: 1fr auto; }
  .data-row-main { align-items: start; grid-column: 1 / -1; }
  .row-actions { grid-column: 1 / -1; }
  .palette-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .price-note { align-self: start; }
  .discovery-hero { min-height: 580px; }
  .marketplace-map { min-height: 360px; }
  .discovery-shop-card { grid-template-columns: 34px minmax(0, 1fr); }
  .discovery-shop-card.offset { margin-left: 0; }
  .discovery-shop-actions { align-items: center; flex-direction: row; grid-column: 2; }
  .discovery-shop-actions .business-mark { width: 58px; }
}

/* Storefront theme manager */
.theme-manager { padding-block: 58px 95px; }
.theme-manager-heading { align-items: stretch; }
.theme-manager-heading > div:first-child { align-self: end; }
.theme-status-card {
  background: var(--ink);
  color: white;
  display: flex;
  flex: 0 0 280px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.theme-status-card span, .theme-status-card small { color: #bbb8b0; font-size: .72rem; }
.theme-status-card strong { font-size: 1.35rem; margin-block: 5px; }
.theme-gallery { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-choice { background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.theme-choice.selected { border: 2px solid var(--orange); }
.theme-choice-preview { background: #dedbd2; height: 330px; overflow: hidden; position: relative; }
.theme-choice-preview img { display: block; height: auto; min-height: 100%; object-fit: cover; object-position: top; width: 100%; }
.theme-live-badge {
  background: var(--acid);
  border: 1px solid var(--ink);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 7px 10px;
  position: absolute;
  right: 12px;
  text-transform: uppercase;
  top: 12px;
}
.theme-choice-copy { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.theme-choice-copy h2 { font-size: 1.8rem; letter-spacing: -.04em; margin-bottom: 10px; }
.theme-choice-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.theme-choice-copy form { margin-top: auto; padding-top: 12px; }
.theme-publish-panel {
  align-items: center;
  background: var(--ink);
  color: white;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr auto;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 52px);
}
.theme-publish-panel h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.04em; margin-bottom: 10px; }
.theme-publish-panel p:last-child { color: #bbb8b0; line-height: 1.5; margin-bottom: 0; max-width: 680px; }
.theme-publish-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.theme-published-note { color: var(--acid); font-size: .8rem; font-weight: 700; }
.brand-image-preview { align-items: center; display: flex; gap: 18px; grid-column: 1 / -1; }
.brand-image-preview img { background: #ece8de; display: block; object-fit: cover; }
.brand-image-preview.logo-preview img { height: 86px; object-fit: contain; padding: 8px; width: 130px; }
.brand-image-preview.hero-preview { align-items: start; flex-direction: column; }
.brand-image-preview.hero-preview img { aspect-ratio: 16 / 7; height: auto; width: 100%; }

/* Shared storefront structure */
.storefront-page { background: var(--paper); }
.storefront-page > .site-header, .storefront-page > .admin-nav { display: none; }
.storefront-page main { min-height: 100vh; }
.storefront-canvas {
  --storefront-bg: var(--paper);
  --storefront-surface: var(--cream);
  --storefront-ink: var(--ink);
  --storefront-accent: var(--acid);
  --storefront-secondary: var(--orange);
  background: var(--storefront-bg);
  color: var(--storefront-ink);
  margin-inline: auto;
  max-width: 1440px;
  min-height: 100vh;
}
.theme-preview-bar {
  align-items: center;
  background: #fff9dc;
  border-bottom: 1px solid #25231f;
  color: #25231f;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 12px max(20px, calc((100vw - 1220px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}
.theme-preview-bar > div { align-items: center; display: flex; gap: 10px; }
.theme-preview-bar span { color: #6a655b; font-size: .74rem; }
.theme-preview-bar .button { padding: 9px 12px; }
.storefront-brandbar {
  align-items: center;
  background: var(--storefront-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--storefront-ink) 16%, transparent);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(20px, 6vw, 84px);
}
.storefront-brand { font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.storefront-logo { display: block; max-height: 48px; max-width: 190px; object-fit: contain; }
.storefront-brandbar nav { align-items: center; display: flex; gap: 24px; font-size: .78rem; font-weight: 700; }
.storefront-brandbar nav a { text-decoration: none; }
.storefront-nav-order { background: var(--storefront-accent); color: var(--storefront-ink); padding: 11px 15px; }
.storefront-hero { background: var(--storefront-secondary); min-height: clamp(460px, 68vw, 760px); overflow: hidden; position: relative; }
.storefront-hero-image { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.storefront-hero-shade { background: rgb(0 0 0 / 42%); inset: 0; position: absolute; }
.storefront-hero:not(.has-hero-image) .storefront-hero-shade { display: none; }
.storefront-hero-copy {
  bottom: clamp(34px, 8vw, 90px);
  color: white;
  left: clamp(20px, 7vw, 100px);
  max-width: 760px;
  position: absolute;
  right: 20px;
  z-index: 1;
}
.storefront-hero:not(.has-hero-image) .storefront-hero-copy { color: var(--storefront-ink); }
.storefront-hero-copy h1 { font-size: clamp(3.1rem, 8.5vw, 8rem); letter-spacing: -.07em; line-height: .86; margin-bottom: 24px; }
.storefront-hero-copy > p:not(.eyebrow) { font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.5; max-width: 600px; }
.storefront-hero-action { margin-top: 10px; }
.storefront-stop {
  align-items: center;
  background: var(--storefront-ink);
  color: var(--storefront-surface);
  display: grid;
  gap: 30px;
  grid-template-columns: auto 1fr minmax(220px, .55fr);
  padding: 28px clamp(20px, 6vw, 84px);
}
.stop-status { align-items: center; display: flex; font-size: .78rem; gap: 10px; }
.stop-details h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); margin-bottom: 5px; }
.stop-details p, .stop-time small { color: color-mix(in srgb, var(--storefront-surface) 68%, transparent); margin-bottom: 0; }
.stop-time { display: flex; flex-direction: column; gap: 4px; }
.stop-time span { font-size: .72rem; text-transform: uppercase; }
.stop-time small { font-size: .72rem; line-height: 1.4; margin-top: 4px; }
.storefront-assistant { margin: 34px clamp(20px, 6vw, 84px) 0; width: auto; }
.storefront-assistant summary { cursor: pointer; grid-column: 1 / -1; list-style-position: outside; }
.storefront-assistant summary h2 { display: inline; }
.storefront-assistant:not([open]) { display: block; padding-block: 20px; }
.storefront-assistant[open] .assistant-form { margin-top: 20px; }
.storefront-order-form { padding: 0 clamp(20px, 6vw, 84px) 80px; }
.storefront-menu .menu-section { padding-top: 64px; }
.storefront-menu-nav { display: none; flex-wrap: wrap; gap: 9px; padding-top: 36px; }
.storefront-menu-nav a { border: 1px solid currentColor; font-size: .72rem; font-weight: 700; padding: 9px 13px; text-decoration: none; }
.storefront-menu .section-heading h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.storefront-menu .menu-item { background: var(--storefront-surface); border-color: color-mix(in srgb, var(--storefront-ink) 18%, transparent); color: var(--storefront-ink); }
.storefront-menu .menu-item-image { height: 132px; width: 150px; }
.storefront-menu .menu-item p, .storefront-menu .tags span, .storefront-menu .modifier-choices label small,
.storefront-menu .modifier-choices legend small { color: color-mix(in srgb, var(--storefront-ink) 65%, transparent); }
.storefront-menu .tags span, .storefront-menu .modifier-choices { border-color: color-mix(in srgb, var(--storefront-ink) 18%, transparent); }
.storefront-order-form .checkout-panel { background: var(--storefront-ink); color: var(--storefront-surface); }
.storefront-empty { padding: 90px clamp(20px, 6vw, 84px); text-align: center; }

/* Field Ledger: grounded editorial market */
.theme-field_ledger .storefront-canvas { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.theme-field_ledger .storefront-brand, .theme-field_ledger .storefront-hero h1,
.theme-field_ledger .storefront-menu h2, .theme-field_ledger .storefront-stop h2 { font-family: Georgia, "Times New Roman", serif; }
.theme-field_ledger .storefront-brand { letter-spacing: .03em; text-transform: none; }
.theme-field_ledger .storefront-hero { min-height: clamp(500px, 66vw, 790px); }
.theme-field_ledger .storefront-hero-shade { background: rgb(18 35 26 / 49%); }
.theme-field_ledger .storefront-stop { border-bottom: 8px solid var(--storefront-accent); }
.theme-field_ledger .storefront-menu .menu-grid { grid-template-columns: 1fr; }
.theme-field_ledger .storefront-menu .menu-item { min-height: 190px; }
.theme-field_ledger .storefront-menu .menu-item-image { height: 145px; width: 210px; }

/* Night Window: immersive dark truck */
.theme-night_window .storefront-canvas {
  --storefront-bg: var(--ink);
  --storefront-surface: color-mix(in srgb, var(--ink) 90%, white);
  --storefront-ink: var(--cream);
  --storefront-accent: var(--acid);
  --storefront-secondary: var(--orange);
}
.theme-night_window .storefront-brandbar { background: #111; color: white; }
.theme-night_window .storefront-brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-style: italic; letter-spacing: -.02em; text-transform: none; }
.theme-night_window .storefront-hero { min-height: min(78vh, 850px); }
.theme-night_window .storefront-hero-shade { background: rgb(9 5 15 / 38%); }
.theme-night_window .storefront-hero-copy h1 { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; letter-spacing: -.05em; }
.theme-night_window .storefront-stop {
  background: color-mix(in srgb, var(--storefront-secondary) 45%, #180b20);
  border-bottom: 8px solid var(--storefront-accent);
  color: white;
}
.theme-night_window .stop-details p, .theme-night_window .stop-time small { color: rgb(255 255 255 / 72%); }
.theme-night_window .storefront-assistant { color: #111; }
.theme-night_window .storefront-menu .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-night_window .storefront-menu .menu-item { display: grid; grid-template-columns: 1fr auto; padding: 0; }
.theme-night_window .storefront-menu .menu-item-image { grid-column: 1 / -1; height: 220px; margin: 0; width: 100%; }
.theme-night_window .storefront-menu .menu-item-copy { padding: 20px; }
.theme-night_window .storefront-menu .menu-item-order { padding: 20px 20px 20px 0; }

/* Market Pop: bright retro vendor */
.theme-market_pop .storefront-canvas { background: var(--storefront-bg); }
.theme-market_pop .storefront-brandbar { border-bottom: 4px solid var(--storefront-ink); }
.theme-market_pop .storefront-brand { font-size: 1.25rem; letter-spacing: -.03em; }
.theme-market_pop .storefront-menu-nav, .theme-farm_stand .storefront-menu-nav,
.theme-maker_market .storefront-menu-nav { display: flex; }
.theme-market_pop .storefront-menu-nav a { background: var(--storefront-surface); border: 3px solid var(--storefront-ink); }
.theme-market_pop .storefront-hero { border-bottom: 4px solid var(--storefront-ink); }
.theme-market_pop .storefront-hero-copy { background: var(--storefront-surface); border: 4px solid var(--storefront-ink); color: var(--storefront-ink); max-width: 720px; padding: clamp(24px, 5vw, 52px); }
.theme-market_pop .storefront-hero-shade { display: none; }
.theme-market_pop .storefront-hero-copy h1 { font-weight: 900; text-transform: uppercase; }
.theme-market_pop .storefront-stop { background: var(--storefront-secondary); border-bottom: 4px solid var(--storefront-ink); border-top: 4px solid var(--storefront-ink); color: var(--storefront-ink); }
.theme-market_pop .stop-details p, .theme-market_pop .stop-time small { color: color-mix(in srgb, var(--storefront-ink) 72%, transparent); }
.theme-market_pop .storefront-menu .menu-item { border: 3px solid var(--storefront-ink); box-shadow: 6px 6px 0 var(--storefront-secondary); }
.theme-market_pop .button { border: 3px solid var(--storefront-ink); font-weight: 900; text-transform: uppercase; }

/* Farm Stand: harvest board */
.theme-farm_stand .storefront-canvas, .theme-farm_stand .storefront-brandbar { background: #fffaf0; color: var(--storefront-ink); }
.theme-farm_stand .storefront-brand, .theme-farm_stand .storefront-hero h1,
.theme-farm_stand .storefront-stop h2, .theme-farm_stand .storefront-menu h2,
.theme-farm_stand .storefront-menu h3 { font-family: Georgia, "Times New Roman", serif; }
.theme-farm_stand .storefront-brand { color: var(--storefront-secondary); font-size: 1.35rem; letter-spacing: .02em; }
.theme-farm_stand .storefront-hero-shade { background: rgb(25 20 8 / 28%); }
.theme-farm_stand .storefront-stop { background: var(--storefront-secondary); border-bottom: 7px solid var(--storefront-accent); color: white; }
.theme-farm_stand .storefront-menu .menu-item { border-radius: 18px; flex-direction: column; overflow: hidden; padding: 0; }
.theme-farm_stand .storefront-menu .menu-item-image { height: 220px; margin: 0; width: 100%; }
.theme-farm_stand .storefront-menu .menu-item-copy { padding: 20px 20px 8px; }
.theme-farm_stand .storefront-menu .menu-item-order { align-items: center; flex-direction: row; padding: 8px 20px 20px; }
.theme-farm_stand .button { border-radius: 999px; }
.theme-farm_stand .storefront-menu-nav a { border-radius: 999px; }

/* Maker Market: airy craft editorial */
.theme-maker_market .storefront-canvas, .theme-maker_market .storefront-brandbar { background: #fffdfa; color: var(--storefront-ink); }
.theme-maker_market .storefront-brand { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: .2em; }
.theme-maker_market .storefront-hero { min-height: clamp(520px, 72vw, 820px); }
.theme-maker_market .storefront-hero-shade { background: rgb(15 28 54 / 24%); }
.theme-maker_market .storefront-hero-copy h1, .theme-maker_market .storefront-menu h2,
.theme-maker_market .storefront-stop h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
.theme-maker_market .storefront-stop { background: #fffdfa; border-block: 1px solid color-mix(in srgb, var(--storefront-ink) 20%, transparent); color: var(--storefront-ink); }
.theme-maker_market .stop-details p, .theme-maker_market .stop-time small { color: color-mix(in srgb, var(--storefront-ink) 65%, transparent); }
.theme-maker_market .storefront-menu .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-maker_market .storefront-menu .menu-item { border: 0; display: grid; grid-template-columns: 1fr auto; padding: 0; }
.theme-maker_market .storefront-menu .menu-item-image { grid-column: 1 / -1; height: 300px; margin: 0; width: 100%; }
.theme-maker_market .storefront-menu .menu-item-copy { padding: 18px 10px 14px 0; }
.theme-maker_market .storefront-menu .menu-item-order { padding: 18px 0 14px 10px; }
.theme-maker_market .storefront-menu-nav a { border-color: color-mix(in srgb, var(--storefront-ink) 50%, transparent); border-radius: 999px; font-weight: 500; }

@media (max-width: 980px) {
  .theme-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-night_window .storefront-menu .menu-grid,
  .theme-maker_market .storefront-menu .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .theme-gallery { grid-template-columns: 1fr; }
  .theme-choice { display: grid; grid-template-columns: 120px 1fr; }
  .theme-choice-preview { height: 260px; }
  .theme-choice-copy { padding: 20px; }
  .theme-publish-panel { grid-template-columns: 1fr; }
  .theme-publish-actions { align-items: stretch; flex-direction: column; }
  .theme-preview-bar { align-items: stretch; flex-direction: column; }
  .theme-preview-bar > div { justify-content: space-between; }
  .theme-preview-bar span { display: none; }
  .storefront-brandbar { min-height: 66px; padding: 10px 16px; }
  .storefront-brandbar nav { gap: 14px; }
  .storefront-brandbar nav a:not(.storefront-nav-order) { display: none; }
  .storefront-logo { max-height: 42px; max-width: 150px; }
  .storefront-hero { min-height: 570px; }
  .storefront-hero-image { object-position: center; }
  .storefront-hero-copy { bottom: 30px; left: 20px; right: 20px; }
  .storefront-hero-copy h1 { font-size: clamp(3rem, 16vw, 5.5rem); }
  .storefront-stop { align-items: start; gap: 15px; grid-template-columns: 1fr; padding: 22px 20px; }
  .stop-status { order: -1; }
  .storefront-assistant { margin-inline: 14px; }
  .storefront-order-form { padding-inline: 14px; }
  .storefront-menu .menu-section { padding-top: 48px; }
  .storefront-menu .menu-grid,
  .theme-night_window .storefront-menu .menu-grid,
  .theme-maker_market .storefront-menu .menu-grid { grid-template-columns: 1fr; }
  .storefront-menu .menu-item-image, .theme-field_ledger .storefront-menu .menu-item-image { height: 118px; width: 120px; }
  .theme-field_ledger .storefront-menu .menu-item { min-height: 168px; }
  .theme-field_ledger .storefront-hero { min-height: 420px; }
  .theme-field_ledger .storefront-hero-copy h1 { font-size: clamp(3rem, 13vw, 4.1rem); line-height: .9; }
  .storefront-stop { padding-block: 18px; }
  .stop-time small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .storefront-assistant:not([open]) { margin-top: 18px; padding: 16px 20px; }
  .storefront-assistant summary h2 { font-size: 1.4rem; }
  .theme-night_window .storefront-menu .menu-item-image,
  .theme-farm_stand .storefront-menu .menu-item-image,
  .theme-maker_market .storefront-menu .menu-item-image { height: 260px; width: 100%; }
  .theme-market_pop .storefront-hero-copy { border-width: 3px; padding: 24px; }
  .theme-maker_market .storefront-brand { font-size: .82rem; letter-spacing: .14em; }
}
