/*
 * Order sheet — a storefront theme for Farm to Fork farms that sell by the case: co-ops, restaurant and cook-shop buyers.
 * The farm's weekly price list as an order form. One dense, ruled sheet by category; a box on every line for how many;
 * a highlighter stroke marks each line you fill; the tally docks to the foot of the screen and adds the whole order to
 * the bag at once. The shell is a printed form head: the farm's name on the paper, a solid band of the field colour
 * with the sections and the next cut-off. Colours and lettering come from the theme settings as :root variables
 * (--ground, --paper, --surface, --ink, --muted, --accent, --field, --band-1..4, --font-display, --font-text …).
 * --band-1 is the highlighter, --band-3 the stamp used for stock warnings and errors.
 * Square corners; rules only inside real tables; no shadows except on what floats (the drawer, the tally, toasts).
 */

:root {
  --fs-xs: 0.875rem;
  --fs-ui: 1rem;
  --fs-lead: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem);
  --fs-h1: clamp(2.125rem, 1.45rem + 2.8vw, 3.75rem);
  --margin: clamp(16px, 3vw, 40px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(56px, 6.5vw, 104px);
  --max: 1400px;
  --control: 48px;
  --rule: color-mix(in srgb, var(--ink) 16%, var(--paper));
  --rule-strong: color-mix(in srgb, var(--ink) 55%, var(--paper));
  --tint: color-mix(in srgb, var(--band-1) 20%, var(--paper));
  --stamp: var(--band-3);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-pop: 200ms;
  --dur-sheet: 300ms;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
svg.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 2px; } }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  font-stretch: 112%;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, h4 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--band-1); color: var(--band-1-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input, textarea { caret-color: var(--accent); }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.lead { font-size: var(--fs-lead); line-height: 1.4; max-width: 52ch; }
.lead p { margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 16px; }
main { display: block; }
main:focus { outline: none; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--rule-strong) var(--ground); }

/* ------------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control); padding: 0 22px;
  border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-text); font-weight: 700; font-size: var(--fs-ui); line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule-strong); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.btn-wide { width: 100%; }
.btn[disabled], .btn.is-busy { cursor: progress; }
.btn.is-busy { background: var(--muted); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
  .btn.ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); }
  .btn.quiet:hover { background: color-mix(in srgb, var(--surface) 70%, var(--ink) 8%); }
}
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; }
.text-link .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .text-link:hover .icon { transform: translateX(3px); } }
.text-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; color: inherit; font-size: var(--fs-xs); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: transform var(--dur-press) var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }

.input, .select, .textarea {
  display: block; width: 100%;
  min-height: var(--control); padding: 10px 12px;
  border: 2px solid var(--rule-strong); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font-size: var(--fs-ui); line-height: 1.3;
  transition: border-color 160ms ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.textarea { min-height: 104px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; max-width: 100%; text-overflow: ellipsis; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--stamp); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 700; font-size: var(--fs-ui); }
.hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.field-error { margin: 4px 0 0; font-size: var(--fs-xs); font-weight: 700; color: var(--stamp); }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-top: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.notice { background: var(--surface); padding: 14px 16px; margin: 0 0 20px; }
.notice.is-error { background: color-mix(in srgb, var(--stamp) 14%, var(--paper)); color: var(--ink); box-shadow: inset 0 3px 0 var(--stamp); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.notice p:last-child { margin: 0; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice a { font-weight: 700; }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; }
.tag-low { background: var(--stamp); color: var(--band-3-ink); }
.tag-pre { background: var(--band-2); color: var(--band-2-ink); }
.trade { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

/* Quantity stepper (bag page and drawer) */
.stepper { display: inline-grid; grid-template-columns: 40px 52px 40px; height: 44px; box-shadow: inset 0 0 0 2px var(--rule-strong); background: var(--paper); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.stepper .step { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--ink); transition: transform var(--dur-press) var(--ease-out); }
.stepper .step:active { transform: scale(0.86); }
.stepper .qty { width: 52px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: var(--fs-ui); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.stepper .qty::-webkit-outer-spin-button, .stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .qty:focus { outline: 3px solid var(--accent); outline-offset: -3px; }

.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 0; border-radius: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font-text); font-weight: 700; font-size: var(--fs-xs); line-height: 1; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.add-btn:active { transform: scale(0.95); }
.add-btn.is-added { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------------ header: the form head */

.announce { background: var(--band-1); color: var(--band-1-ink); font-size: var(--fs-xs); font-weight: 700; }
.announce .wrap { min-height: 38px; display: flex; align-items: center; justify-content: center; text-align: center; }
.announce p { margin: 0; }
.announce a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 0; }
.announce a span { text-decoration: underline; text-underline-offset: 0.2em; }
.top { position: relative; z-index: 30; background: var(--paper); color: var(--ink); }
.top-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; min-height: 68px; padding-block: 8px; }
.wordmark { display: block; min-width: 0; text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-stretch: 112%; font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.5rem); line-height: 1.05; padding: 6px 0; }
.wordmark span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wordmark img { width: var(--logo-w, 120px); max-width: 44vw; height: auto; }
.top-search { display: none; }
.top-tools { display: flex; align-items: center; gap: 2px; justify-self: end; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 8px; text-decoration: none; font-weight: 700; font-size: var(--fs-ui); }
.tool-account span, .tool-label { display: none; }
@media (max-width: 599px) { .tool-account { display: none; } }
.tool-bag { background: var(--ink); color: var(--paper); padding: 0 12px; }
.bag-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--band-1); color: var(--band-1-ink); font-size: 0.8125rem; font-weight: 800; transition: transform 260ms var(--ease-out); }
.bag-count.is-bumped { transform: scale(1.22); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.secure { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; justify-self: end; }
.minimal .top-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.minimal .wordmark { text-align: center; }
.minimal .top { box-shadow: inset 0 -3px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */

.tabs-row { background: var(--field); color: var(--field-ink); }
.tabs-inner { display: flex; align-items: center; gap: 4px 24px; min-height: 48px; }
.top-nav { min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); mask-image: linear-gradient(90deg, #000 85%, transparent); } /* taste-skill-ignore: fade mask on the scrolling tab row, not a fill */
.top-nav::-webkit-scrollbar { display: none; }
.top-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; white-space: nowrap; }
.top-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-weight: 700; font-size: var(--fs-ui); text-decoration: none; }
.top-links li:first-child a { padding-left: 0; }
.top-links a[aria-current="page"] { background: var(--paper); color: var(--ink); padding-left: 12px; }
@media (hover: hover) and (pointer: fine) { .top-links a:not([aria-current]):hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; } }
.top-run { display: none; margin: 0; font-size: var(--fs-xs); color: var(--field-muted); text-align: right; flex: 0 1 auto; }
.top-run strong { color: var(--field-ink); }
.trade-on { display: inline-block; margin-right: 10px; padding: 1px 8px; background: var(--band-1); color: var(--band-1-ink); font-weight: 700; }

@media (min-width: 1000px) {
  .menu-toggle { display: none; }
  .top-row { grid-template-columns: minmax(200px, 1.1fr) minmax(280px, 1.3fr) auto; min-height: 76px; }
  .top-search { display: flex; align-items: stretch; }
  .top-search .input { min-height: 44px; border-right: 0; }
  .top-search .icon-btn { width: 52px; height: auto; background: var(--ink); color: var(--paper); }
  .tool-search { display: none; }
  .tool-account span, .tool-label { display: inline; }
  .top-nav { mask-image: none; margin-inline: 0; padding-inline: 0; } /* taste-skill-ignore: removes the phone mask */
  .top-run { display: block; }
}

.menu-sheet { position: fixed; inset: 0; z-index: 50; background: var(--paper); color: var(--ink); padding-top: 84px; overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity var(--dur-pop) ease, transform var(--dur-sheet) var(--ease-out); }
.menu-sheet.is-open { opacity: 1; transform: none; }
.menu-sheet ul { list-style: none; margin: 16px 0 0; padding: 0; }
.menu-sheet li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: 1.5rem; text-decoration: none; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.sheet-search { display: flex; }
.sheet-search .input { border-right: 0; }
.menu-run { margin-top: 20px; color: var(--muted); font-size: var(--fs-xs); }
body.menu-open .top { position: fixed; inset: 0 0 auto; z-index: 55; }
body.menu-open .tabs-row { display: none; }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ page scaffolding */

.page-head { display: grid; gap: 12px 32px; align-items: end; padding-block: clamp(32px, 4.5vw, 64px) clamp(20px, 2.4vw, 32px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin: 14px 0 0; }
.page-head-main { min-width: 0; }
.page-count { margin: 0; font-weight: 700; color: var(--muted); }
@media (min-width: 900px) { .page-head { grid-template-columns: minmax(0, 1fr) auto; } .page-count { text-align: right; padding-bottom: 6px; } }
.crumb { margin: 0 0 14px; font-size: var(--fs-xs); font-weight: 700; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumb a:hover { text-decoration: underline; } }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 10px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.4vw, 32px); }
.sec-head h2 { max-width: 22ch; }
.sec-head p { max-width: 52ch; margin: 0; }
.empty-note { background: var(--paper); padding: clamp(24px, 4vw, 48px); margin-bottom: 32px; }
.empty-note h2, .empty-note h3 { font-size: var(--fs-h2); margin-bottom: 10px; }
.empty-note h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); }
.empty-note p { max-width: 52ch; }
.empty-note p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ the head of the sheet (hero) */

.head-sec { background: var(--paper); padding-block: clamp(28px, 4vw, 56px) 0; }
.head-grid { display: grid; gap: 28px 40px; }
.head-title { max-width: 18ch; }
.head-sentence { font-size: var(--fs-lead); line-height: 1.4; max-width: 46ch; margin: 18px 0 0; }
.head-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 26px 0 0; }
.head-pic { margin: 0; position: relative; }
.head-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.head-pic figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: var(--surface); }
.term { padding: 14px 16px 16px; box-shadow: inset -1px -1px 0 var(--rule); min-width: 0; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.term dt { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.term dd { margin: 4px 0 0; display: grid; gap: 2px; }
.term-v { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: 1.375rem; line-height: 1.15; }
.term-sub { font-size: var(--fs-xs); color: var(--muted); }
.head-index { padding-block: 0 0; }
.head-index ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 18px 0 22px; gap: 4px 24px; }
.head-index a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; text-decoration: none; }
.head-index a .icon { color: var(--muted); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .head-index a:hover { text-decoration: underline; } .head-index a:hover .icon { transform: translateX(3px); } }
@media (min-width: 900px) {
  .head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .head-copy { padding-top: 8px; }
  .terms { grid-column: 2; grid-row: 1; align-self: stretch; grid-template-columns: 1fr; }
  .term { display: grid; grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 16px 20px; }
  .term dd { margin: 0; }
  .has-pic .head-pic { grid-column: 2; grid-row: 1; }
  .has-pic .terms { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .has-pic .term { display: block; padding: 14px 20px 16px; }
  .has-pic .term dd { margin-top: 4px; }
}

/* One authored entrance, CSS only so nothing waits on script: the head of the sheet settles in, its terms one by one. */
@keyframes os-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.head-title, .head-sentence, .head-acts, .head-pic, .term, .head-index li { animation: os-rise 640ms var(--ease-out) both; }
.head-sentence { animation-delay: 70ms; }
.head-acts { animation-delay: 140ms; }
.head-pic { animation-delay: 120ms; }
.term:nth-child(1) { animation-delay: 180ms; }
.term:nth-child(2) { animation-delay: 240ms; }
.term:nth-child(3) { animation-delay: 300ms; }
.term:nth-child(4) { animation-delay: 360ms; }
.head-index li { animation-delay: 420ms; }

/* ------------------------------------------------------------------ the order sheet */

.list-sec { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.list-head { display: grid; gap: 16px 40px; align-items: end; padding: clamp(24px, 3vw, 40px) 0 clamp(18px, 2vw, 24px); }
.list-title h2 { max-width: 20ch; }
.list-sentence { margin: 12px 0 0; max-width: 58ch; font-size: var(--fs-lead); line-height: 1.4; }
.list-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.list-facts dt { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.list-facts dd { margin: 2px 0 0; font-weight: 700; }
@media (min-width: 900px) { .list-head { grid-template-columns: minmax(0, 1fr) auto; } .list-facts { justify-content: flex-end; text-align: right; } }
.list-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin: 20px 0 0; }
.list-trade { color: var(--muted); }
.list-trade .text-link { color: var(--ink); }

.sheet { background: var(--paper); }
.sheet-jump { position: relative; padding: 4px 16px 0; }
.sheet-jump ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 10px 0; }
.sheet-jump li { white-space: nowrap; }
.sheet-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; text-decoration: none; }
.sheet-jump a .num { min-width: 22px; height: 22px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--surface); font-size: 0.8125rem; }
@media (hover: hover) and (pointer: fine) { .sheet-jump a:hover { text-decoration: underline; } }

.sheet-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.sheet-table th, .sheet-table td { padding: 8px 12px; text-align: left; vertical-align: middle; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.sheet-table thead th { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding-block: 10px; box-shadow: inset 0 -2px 0 var(--ink); white-space: nowrap; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.sheet-table .c-price, .sheet-table .c-total { text-align: right; }
.sheet-table .c-qty { text-align: center; width: 104px; }
.sheet-table .c-pic { width: 72px; padding-right: 0; }
.sheet-table .c-add { width: 1%; padding-left: 0; }
.sheet-table .c-total { width: 150px; }
.sheet-table .c-price { width: 128px; }
.sheet-table .c-item { width: 36%; min-width: 220px; }
.group-row th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface); color: var(--ink);
  padding: 12px 12px 10px; box-shadow: inset 0 3px 0 var(--ink), inset 0 -1px 0 var(--rule); /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
}
.group-name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: var(--fs-h3); line-height: 1.1; }
.group-n { margin-left: 10px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.sheet-group { scroll-margin-top: 12px; }
.line.is-cont td { box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.line:not(.is-last) .c-pic, .line:not(.is-last) .c-item { box-shadow: none; } /* taste-skill-ignore: removes a table rule */
.pic { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; background: var(--surface); text-decoration: none; }
.pic img { width: 56px; height: 56px; object-fit: cover; }
.pic.is-blank span { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-size: 1.375rem; line-height: 1; }
.tone-1 .pic.is-blank, .card.tone-1 .card-pic.is-blank, .toc-pic.tone-1 { background: color-mix(in srgb, var(--band-2) 18%, var(--paper)); }
.tone-2 .pic.is-blank, .card.tone-2 .card-pic.is-blank, .toc-pic.tone-2 { background: color-mix(in srgb, var(--band-4) 18%, var(--paper)); }
.tone-3 .pic.is-blank, .card.tone-3 .card-pic.is-blank, .toc-pic.tone-3 { background: color-mix(in srgb, var(--band-1) 40%, var(--paper)); }
.tone-4 .pic.is-blank, .card.tone-4 .card-pic.is-blank, .toc-pic.tone-4 { background: color-mix(in srgb, var(--band-3) 16%, var(--paper)); }
.line-name { font-weight: 700; font-size: 1.0625rem; line-height: 1.25; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .line-name:hover { text-decoration: underline; } }
.line-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 3px; font-size: var(--fs-xs); color: var(--muted); }
.pack { position: relative; z-index: 0; display: inline; padding: 0 2px; }
.pack::before {
  content: ""; position: absolute; z-index: -1; left: -3px; right: -3px; top: 0.05em; bottom: 0;
  background: var(--band-1);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 280ms var(--ease-out);
}
.in-bag, .line-msg { display: block; margin-top: 3px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.line-msg { color: var(--ink); }
.line-msg .icon, .in-bag .icon { vertical-align: -3px; margin-right: 5px; }
.in-bag { color: var(--ink); }
.line-msg.is-error, .is-failed .line-msg { color: var(--stamp); }
.c-price .num { font-weight: 700; }
.c-total .num { font-weight: 700; }
.out { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.line.is-out .pack, .line.is-out .c-price .num { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.qty-box {
  width: 68px; height: 44px; padding: 0 6px; margin: 0 auto;
  display: block; text-align: center;
  border: 2px solid var(--rule-strong); border-radius: 0; background: var(--paper); color: var(--ink);
  font-size: 1.0625rem; font-weight: 800;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.qty-box::placeholder { color: var(--muted); font-weight: 600; }
.qty-box:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }

/* The signature: a filled line is marked like a pass of highlighter over the price list. */
.line { transition: background-color 160ms ease; }
.line.is-filled { background: var(--tint); }
.line.is-filled .pack { color: var(--band-1-ink); }
.line.is-filled .pack::before { transform: scaleX(1); }
.line.is-filled .qty-box { border-color: var(--ink); background: var(--paper); }
.line.is-posting .qty-box { border-style: dashed; }
.line.is-posted { background: transparent; }
.line.is-failed { background: color-mix(in srgb, var(--stamp) 12%, var(--paper)); }
.line.is-failed .qty-box { border-color: var(--stamp); }
.os-ready .c-add > form .add-btn, .os-ready .card-add .add-btn { display: none; }
.os-ready .sheet-table .c-add { padding: 0; width: 0; }

@media (max-width: 799px) {
  .sheet-table, .sheet-table tbody, .sheet-table tr, .sheet-table td, .sheet-table th { display: block; }
  .sheet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet-table tr.line {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) auto 64px;
    grid-template-areas: "item item qty" "pack price qty" "pack total total";
    gap: 2px 12px; padding: 10px 16px; box-shadow: inset 0 -1px 0 var(--rule); /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
  }
  .has-pics .sheet-table tr.line { grid-template-columns: 44px minmax(0, 1fr) auto 64px; grid-template-areas: "pic item item qty" "pic pack price qty" "pic pack total total"; }
  .sheet-table tr.line.is-cont { grid-template-areas: "pack price qty" "pack total total"; padding-top: 4px; }
  .has-pics .sheet-table tr.line.is-cont { grid-template-areas: "pic pack price qty" "pic pack total total"; }
  .sheet-table tr.line:not(.is-last) { box-shadow: none; } /* taste-skill-ignore: removes a table rule */
  .sheet-table td { padding: 0; box-shadow: none !important; width: auto !important; } /* taste-skill-ignore: removes a table rule */
  .sheet-table .c-pic { grid-area: pic; align-self: start; }
  .sheet-table .c-item { grid-area: item; }
  .sheet-table tr.is-cont .c-item { display: none; }
  .sheet-table .c-pack { grid-area: pack; align-self: start; font-size: 0.9375rem; }
  .sheet-table .c-price { grid-area: price; align-self: start; text-align: right; font-size: 0.9375rem; }
  .sheet-table .c-price .trade { display: none; }
  .sheet-table .c-qty { grid-area: qty; text-align: right; }
  .sheet-table .c-qty .text-link { min-height: 44px; }
  .sheet-table .c-total { grid-area: total; text-align: right; font-size: var(--fs-xs); }
  .sheet-table .c-add { grid-column: 1 / -1; justify-self: end; padding-top: 6px; }
  .sheet-table .c-add .add-btn { min-width: 64px; }
  .os-ready .sheet-table .c-add { display: none; }
  .pic, .pic img { width: 44px; height: 44px; }
  .qty-box { width: 64px; margin: 0; }
  .group-row th { padding-inline: 16px; }
  .sheet-jump { padding-inline: 16px; }
  .list-sec .wrap > .sheet, .page-collection .sheet, .page-search .sheet { margin-inline: calc(-1 * var(--margin)); }
}

/* ------------------------------------------------------------------ cards (short lists) */

.short-sec { padding-block: var(--section) 0; }
.short-sec.is-flush { padding-top: clamp(40px, 5vw, 72px); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.card { display: grid; grid-template-columns: 128px minmax(0, 1fr); background: var(--paper); min-width: 0; transition: background-color 160ms ease; }
.card-pic { position: relative; display: block; aspect-ratio: 1; align-self: start; margin: 14px 0 14px 14px; overflow: hidden; background: var(--surface); text-decoration: none; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-pic img { transform: scale(1.04); } }
.card-pic.is-blank { display: flex; align-items: flex-end; padding: 8px 12px; }
.card-pic.is-blank span { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-size: 3rem; line-height: 0.9; }
@media (max-width: 599px) {
  .card { grid-template-columns: 88px minmax(0, 1fr); }
  .card-pic { margin: 12px 0 12px 12px; }
  .card-pic.is-blank { padding: 6px 9px; }
  .card-pic.is-blank span { font-size: 2.25rem; }
  .card-flag { font-size: 0.75rem; padding: 2px 6px; }
}
.card-flag { font-size: 0.75rem; padding: 2px 6px; }
  .card-body { padding: 12px 14px 14px; }
}
.card-flag { position: absolute; left: 0; top: 0; padding: 4px 10px; background: var(--ink); color: var(--paper); font-size: var(--fs-xs); font-weight: 700; }
.card.is-out .card-pic img { opacity: 0.55; }
.card-body { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.card-name { font-size: 1.0625rem; }
.card-name a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .card-name a:hover { text-decoration: underline; } }
.card-price { margin: 0; }
.card-price .num { font-weight: 800; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: var(--fs-xs); color: var(--muted); min-height: 1.2em; }
.card-meta .trade { display: inline; }
.card-add { margin-top: 6px; display: grid; gap: 8px; }
.card-size { flex: 1 1 120px; min-width: 0; }
.card-size .select { min-height: 44px; font-size: var(--fs-xs); padding-right: 32px; }
.card-size::after { right: 12px; }
.card-row { display: flex; align-items: center; gap: 8px; }
.card-row .qty-box { margin: 0; flex: none; }
.card-total { margin: 0; font-weight: 800; min-height: 0; }
.card-total:empty { display: none; }
.card-add .line-msg, .card-add .in-bag { margin: 0; }
.card.is-filled { background: var(--tint); }
.card.is-filled .card-row .qty-box { border-color: var(--ink); }
.card.is-failed { background: color-mix(in srgb, var(--stamp) 12%, var(--paper)); }
.card-out { margin: 6px 0 0; }

/* ------------------------------------------------------------------ delivery runs */

.runs-sec { background: var(--paper); padding-block: var(--section); }
.runs-grid { display: grid; gap: 32px 56px; }
.runs-grid > * { min-width: 0; }
@media (min-width: 900px) { .runs-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.runs-text { margin: 16px 0 0; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.4; }
.area-box { margin-top: 28px; background: var(--surface); padding: 18px 18px 20px; }
.area-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.area-row { display: flex; flex-wrap: wrap; gap: 8px; }
.area-row .select-wrap { flex: 1 1 240px; min-width: 0; }
.area-answer { margin-top: 18px; min-height: 96px; }
.answer-day { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: var(--fs-h2); line-height: 1; margin: 0 0 8px; }
.answer-text { max-width: 48ch; margin: 0; }
.runs-table { width: 100%; border-collapse: collapse; }
.runs-caption { text-align: left; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: var(--fs-h3); padding-bottom: 10px; }
.runs-table th, .runs-table td { padding: 10px 10px; text-align: left; box-shadow: inset 0 -1px 0 var(--rule); vertical-align: baseline; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.runs-table thead th { font-size: var(--fs-xs); color: var(--muted); box-shadow: inset 0 -2px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.runs-table .n { text-align: right; }
.runs-table tr.is-day th, .runs-table tr.is-day td { box-shadow: inset 0 1px 0 var(--rule-strong), inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.run-day { font-weight: 700; white-space: nowrap; width: 9.5rem; }
.slip-row { transition: background-color 200ms ease; }
.slip-row.is-mine { background: var(--tint); }
.slip-row.is-mine .run-what { font-weight: 700; }
.slip-row.is-full td { color: var(--muted); }
.runs-fees { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 599px) {
  .runs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .runs-table, .runs-table tbody { display: block; }
  .runs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
  .runs-table tr.is-day { box-shadow: inset 0 1px 0 var(--rule-strong), inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
  .runs-table th, .runs-table td { padding: 0; box-shadow: none !important; } /* taste-skill-ignore: removes a table rule */
  .runs-table .run-day { grid-column: 1 / -1; width: auto; }
  .runs-table tr:not(.is-day) .run-day { display: none; }
  .runs-table caption { display: block; }
}

/* ------------------------------------------------------------------ standing orders (farm boxes) */

.standing-sec { padding-block: var(--section) 0; }
.plans-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.plans-table th, .plans-table td { padding: 16px 16px; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.plans-table thead th { font-size: var(--fs-xs); color: var(--muted); padding-block: 10px; box-shadow: inset 0 -2px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.plans-table .n { text-align: right; }
.plan-name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: 1.375rem; line-height: 1.15; width: 22%; }
.plan-places { display: block; margin-top: 6px; font-family: var(--font-text); font-stretch: 100%; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-what p { margin-bottom: 6px; }
.plan-when { width: 22%; }
.plan-price { white-space: nowrap; }
.plan-price .num { font-weight: 800; font-size: 1.125rem; }
.plan-price .muted { display: block; font-size: var(--fs-xs); }
.plan-act { width: 1%; }
.plans-table tr.is-full th, .plans-table tr.is-full td { color: var(--muted); }
@media (max-width: 799px) {
  .plans-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plans-table, .plans-table tbody, .plans-table tr, .plans-table th, .plans-table td { display: block; width: auto; }
  .plans-table tr { padding: 16px; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
  .plans-table th, .plans-table td { padding: 0; box-shadow: none; } /* taste-skill-ignore: removes a table rule */
  .plans-table td { margin-top: 8px; }
  .plans-table .plan-price { text-align: left; }
  .plans-table .plan-price .muted { display: inline; }
  .plans-table .plan-act .btn { width: 100%; }
}

/* ------------------------------------------------------------------ about, note, reviews, journal, news, cta */

.about-sec { padding-block: var(--section) 0; }
.about-grid { display: grid; gap: 28px 56px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.about-text { margin-top: 18px; max-width: 64ch; }
.about-text p { font-size: 1.0625rem; line-height: 1.6; }
.about-sign { display: grid; gap: 2px; margin: 20px 0 16px; }
.about-sign span { color: var(--muted); font-size: var(--fs-xs); }
.about-side { display: grid; gap: 12px; }
.about-pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-facts { margin: 0; background: var(--paper); }
.card-facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 14px 18px; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.card-facts dt { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding-top: 2px; }
.card-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }

.note-sec { padding-block: var(--section) 0; }
.note-grid { display: grid; gap: 24px 56px; }
.note-sec:not(.has-pic) .note-copy { background: var(--field); color: var(--field-ink); padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 48px); }
.note-sec:not(.has-pic) .btn.ink { background: var(--band-1); color: var(--band-1-ink); }
.note-sec:not(.has-pic) .text-link { color: var(--field-ink); }
.note-pic { margin: 0; }
.note-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.note-pic figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.note-copy p { margin: 16px 0 0; max-width: 52ch; font-size: var(--fs-lead); line-height: 1.4; }
.note-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px !important; font-size: var(--fs-ui) !important; }
@media (min-width: 900px) {
  .note-sec.has-pic .note-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .note-right.has-pic .note-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .note-right .note-pic { order: 2; }
}

.reviews-sec { padding-block: var(--section) 0; }
.review-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.review-notes.is-list { grid-template-columns: 1fr; }
.review-notes figure { margin: 0; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; background: var(--paper); padding: 18px 20px 20px; }
.review-score { margin: 0; display: flex; align-items: baseline; gap: 4px; font-weight: 700; }
.review-score .num { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-size: 1.375rem; line-height: 1; }
.review-score span:last-child { font-size: var(--fs-xs); color: var(--muted); }
.review-notes blockquote { margin: 0; }
.review-notes blockquote p { margin: 0 0 6px; }
.review-title { font-weight: 700; }
.review-notes figcaption { font-size: var(--fs-xs); color: var(--muted); }
.who { font-weight: 700; color: var(--ink); }

.journal-sec { padding-block: var(--section) 0; }
.post-index { list-style: none; margin: 0; padding: 0; background: var(--paper); }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 18px 20px; text-decoration: none; box-shadow: inset 0 -1px 0 var(--rule); transition: background-color 160ms ease; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.post-date { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.post-text { display: grid; gap: 4px; min-width: 0; }
.post-title { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: 1.375rem; line-height: 1.15; }
.post-excerpt { max-width: 70ch; }
.post-by { font-size: var(--fs-xs); color: var(--muted); }
.post-pic { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 8px; }
@media (min-width: 700px) {
  .post-row { grid-template-columns: 8.5rem minmax(0, 1fr) 180px; align-items: start; }
  .post-row:not(.has-pic) .post-text { grid-column: 2 / -1; }
  .post-date { padding-top: 6px; }
  .post-pic { margin: 0; }
}
@media (hover: hover) and (pointer: fine) { .post-row:hover { background: var(--tint); } .post-row:hover .post-title { text-decoration: underline; text-decoration-thickness: 2px; } }

.news-sec { padding-block: var(--section) 0; }
.news-grid { display: grid; gap: 20px 56px; background: var(--band-1); color: var(--band-1-ink); padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3vw, 48px); }
@media (min-width: 900px) { .news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.news-copy p { margin: 12px 0 0; max-width: 46ch; }
.news-form > label:not(.hp) { display: block; font-weight: 700; margin-bottom: 8px; }
.news-row { display: flex; flex-wrap: wrap; gap: 8px; }
.news-row .input { flex: 1 1 220px; width: auto; min-width: 0; }
.news-grid .input { border-color: var(--band-1-ink); }
.news-grid .btn { background: var(--band-1-ink); color: var(--band-1); }
.news-grid .field-error { color: var(--band-1-ink); }

.cta-sec { padding-block: var(--section) 0; }
.cta-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; background: var(--field); color: var(--field-ink); padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3vw, 48px); text-decoration: none; transition: background-color 200ms ease; }
.cta-word { font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); }
.cta-sentence { font-size: var(--fs-lead); max-width: 40ch; }
.cta-arrow { display: grid; place-items: center; width: 64px; height: 64px; background: var(--band-1); color: var(--band-1-ink); transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cta-link:hover .cta-arrow { transform: translateX(6px); } }
@media (max-width: 699px) { .cta-link { grid-template-columns: minmax(0, 1fr) auto; } .cta-sentence { grid-column: 1 / -1; grid-row: 2; } }

/* ------------------------------------------------------------------ footer: the terms */

.foot { margin-top: var(--section); background: var(--field); color: var(--field-ink); }
.foot-inner { display: grid; gap: 32px 48px; padding-block: clamp(40px, 5vw, 72px) 32px; }
.foot-order h2 { font-size: var(--fs-h2); max-width: 18ch; }
.foot-order p { margin: 10px 0 20px; color: var(--field-muted); }
.foot-order .btn { background: var(--band-1); color: var(--band-1-ink); }
.foot-h { font-size: var(--fs-xs); font-weight: 700; color: var(--field-muted); margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover { text-decoration: underline; } }
.foot-addr { margin-top: 8px; color: var(--field-muted); font-size: var(--fs-xs); }
.foot-legal { position: relative; display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 28px 32px; margin-top: 8px; font-size: var(--fs-xs); color: var(--field-muted); }
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--field-ink); }
.powered { margin-left: auto !important; }
@media (min-width: 900px) { .foot-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); } }
.foot-min { margin-top: 48px; padding-block: 24px; font-size: var(--fs-xs); color: var(--muted); }
.foot-min p { margin: 0; }
body.has-tally .foot-legal { padding-bottom: 120px; }

/* ------------------------------------------------------------------ the tally */

.tally {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--field); color: var(--field-ink);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: this element floats over the page (tally, drawer, toast) */
  transform: translateY(110%);
  transition: transform var(--dur-sheet) var(--ease-drawer);
}
.tally.is-shown { transform: none; }
.tally-track { height: 3px; background: color-mix(in srgb, var(--field-ink) 14%, var(--field)); overflow: hidden; }
.tally-track span { display: block; height: 100%; background: var(--band-1); transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms var(--ease-out); }
.tally-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sum acts" "status status"; align-items: center; gap: 4px 16px; padding-block: 10px 12px; }
.tally-sum { grid-area: sum; margin: 0; display: grid; gap: 0; min-width: 0; }
.tally-count { font-size: var(--fs-xs); color: var(--field-muted); }
.tally-money { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tally-money .num { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-size: 1.375rem; line-height: 1.15; }
.tally-tax { font-size: var(--fs-xs); color: var(--field-muted); }
.tally-status { grid-area: status; margin: 0; font-size: var(--fs-xs); font-weight: 600; min-height: 0; }
.tally-status:empty { display: none; }
.tally-status.is-error { color: var(--field-ink); }
.tally-status.is-error::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--stamp); vertical-align: 0; }
.tally-acts { grid-area: acts; display: flex; align-items: center; gap: 8px 16px; }
.tally-clear { color: var(--field-ink); }
.lbl-tail { display: none; }
.tally-btn { background: var(--band-1); color: var(--band-1-ink); min-height: 48px; padding: 0 18px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .tally-btn:hover { background: color-mix(in srgb, var(--band-1) 85%, var(--field-ink)); } }
.tally-btn[disabled] { opacity: 1; cursor: progress; }
.tally.is-busy .tally-btn { background: var(--field-ink); color: var(--field); }
@media (min-width: 800px) {
  .tally-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "sum status acts"; gap: 4px 28px; padding-block: 12px 14px; }
  .tally-sum { grid-auto-flow: column; align-items: baseline; gap: 18px; }
  .tally-count { font-size: var(--fs-ui); }
  .lbl-tail { display: inline; }
  .tally-btn { min-height: 52px; padding: 0 24px; }
}
@media (max-width: 799px) { .tally-tax { display: none; } }
@media (max-width: 380px) { .tally-btn .icon { display: none; } }

/* ------------------------------------------------------------------ drawer */

.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.42); opacity: 0; transition: opacity var(--dur-sheet) ease; }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(460px, 100%); display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  box-shadow: -16px 0 40px -20px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: this element floats over the page (tally, drawer, toast) */
  transform: translateX(100%); transition: transform var(--dur-sheet) var(--ease-drawer);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 20px; background: var(--field); color: var(--field-ink); }
.drawer-head h2 { font-size: 1.375rem; }
.drawer-notice { margin: 0; padding: 12px 20px; background: color-mix(in srgb, var(--stamp) 14%, var(--paper)); font-size: var(--fs-xs); font-weight: 600; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.drawer-empty { padding: 24px 20px; color: var(--muted); }
.drawer-foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--surface); display: grid; gap: 10px; }
.drawer-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.drawer-foot .text-link { justify-self: center; min-height: 40px; }
.sums { margin: 0; display: grid; gap: 2px; }
.sums > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sums dt, .sums dd { margin: 0; }
.sums dd { font-weight: 700; text-align: right; }
.sums .is-total { margin-top: 6px; padding-top: 10px; box-shadow: inset 0 2px 0 var(--ink); font-size: 1.125rem; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.sums .is-total dd { font-weight: 800; }
.bag-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 12px 20px; box-shadow: inset 0 -1px 0 var(--rule); transition: opacity 200ms ease, transform 200ms var(--ease-out); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.bag-line.is-leaving { opacity: 0; transform: translateX(16px); }
.line-img { display: block; width: 48px; height: 48px; overflow: hidden; background: var(--surface); text-decoration: none; }
.line-img img { width: 48px; height: 48px; object-fit: cover; }
.line-ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-size: 1.25rem; }
.line-title { font-weight: 700; text-decoration: none; line-height: 1.25; }
.line-unit { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.line-problem { margin: 4px 0 0; font-size: var(--fs-xs); font-weight: 700; color: var(--stamp); }
.line-end { display: grid; justify-items: end; gap: 4px; }
.line-end .stepper { grid-template-columns: 36px 44px 36px; height: 40px; }
.line-end .stepper .qty { width: 44px; }
.line-total { margin: 0; font-weight: 800; }
.line-end .text-btn { min-height: 32px; padding: 0; }

/* ------------------------------------------------------------------ toasts */

.toasts { position: fixed; left: 50%; bottom: 16px; z-index: 70; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
body.has-tally .toasts { bottom: 112px; }
.toast { margin: 0; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: var(--fs-xs); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); pointer-events: auto; transition: opacity 260ms ease, transform 260ms var(--ease-out); } /* taste-skill-ignore: this element floats over the page (tally, drawer, toast) */
.toast.is-error { background: var(--stamp); color: var(--band-3-ink); }
.toast.is-entering, .toast.is-leaving { opacity: 0; transform: translateY(12px); }

/* ------------------------------------------------------------------ collection, collections, search */

.coll-head h1 { max-width: 22ch; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 14px 16px 16px; margin-bottom: 0; background: var(--surface); }
.filter { display: grid; gap: 4px; min-width: 0; flex: 1 1 130px; max-width: 260px; }
.filter > label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.filter .select { min-height: 44px; }
.filter-checks { display: flex; gap: 4px 18px; flex: 0 1 auto; max-width: none; }
.filter-checks .check { padding-top: 0; align-items: center; min-height: 44px; }
.filter-clear { min-height: 44px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 0; }
.pager p { margin: 0; color: var(--muted); font-size: var(--fs-xs); text-align: center; flex: 1 1 260px; }
.pager .btn { gap: 6px; }
.more-lists { padding-top: var(--section); }
.more-lists h2 { font-size: var(--fs-h3); font-family: var(--font-text); font-weight: 700; font-stretch: 100%; letter-spacing: 0; margin-bottom: 10px; }
.list-links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.list-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.list-links a .icon { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .list-links a:hover { text-decoration: underline; } }
.search-form { display: flex; margin-top: 18px; max-width: 640px; }
.search-form .input { border-right: 0; }
.search-form .btn { flex: none; }
.search-pages { margin-top: 40px; }
.search-pages h2 { font-size: var(--fs-h3); font-family: var(--font-text); font-stretch: 100%; letter-spacing: 0; margin-bottom: 8px; }
.page-search .empty-note { margin-bottom: 0; }

.toc { list-style: none; margin: 0; padding: 0; background: var(--paper); }
.toc-row { display: grid; grid-template-columns: 56px auto minmax(16px, 1fr) auto 20px; align-items: center; gap: 16px; min-height: 80px; padding: 12px 20px; text-decoration: none; box-shadow: inset 0 -1px 0 var(--rule); transition: background-color 160ms ease; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.toc-pic { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; background: var(--surface); }
.toc-pic img { width: 56px; height: 56px; object-fit: cover; }
.toc-pic span { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-size: 1.375rem; }
.toc-name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.1; }
.toc-dots { align-self: end; margin-bottom: 0.7em; border-bottom: 3px dotted var(--rule-strong); }
.toc-n { font-weight: 700; color: var(--muted); white-space: nowrap; }
.toc-row .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .toc-row:hover { background: var(--tint); } .toc-row:hover .icon { transform: translateX(3px); } }
@media (max-width: 599px) { .toc-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding-inline: 16px; } .toc-pic, .toc-pic img { width: 44px; height: 44px; } .toc-dots, .toc-row .icon { display: none; } }
.all-link { margin-top: 24px; }

/* ------------------------------------------------------------------ product */

.product { padding-top: clamp(12px, 2vw, 24px); }
.product .crumb { margin: 0 0 6px; }
.product-grid { display: grid; gap: 24px 48px; }
.product-grid > * { min-width: 0; }
@media (min-width: 900px) { .product-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .gallery { position: sticky; top: 16px; } }
.gallery-main { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.is-blank { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(18px, 3vw, 32px); background: color-mix(in srgb, var(--band-2) 16%, var(--paper)); aspect-ratio: 4 / 3; }
.gallery-name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); line-height: 0.98; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem); overflow-wrap: anywhere; }
.gallery-type { font-weight: 700; color: var(--muted); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumb { flex: none; padding: 0; border: 0; background: none; cursor: pointer; box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow 160ms ease; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.thumb img { width: 72px; height: 72px; object-fit: cover; }
.thumb[aria-current="true"] { box-shadow: 0 0 0 3px var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
@media (max-width: 899px) { .gallery-main:not(.is-blank) { aspect-ratio: 4 / 3; } }
.spec { background: var(--paper); padding: clamp(18px, 2.6vw, 32px); }
.product-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); max-width: 18ch; }
.spec-line { margin: 12px 0 0; font-size: var(--fs-lead); line-height: 1.4; max-width: 52ch; }
.sizes { margin-top: 24px; }
.spec-h { font-size: var(--fs-h3); font-family: var(--font-text); font-stretch: 100%; letter-spacing: 0; font-weight: 700; margin-bottom: 4px; }
.sizes-table .c-pack { width: auto; }
.sizes-table .pack { font-weight: 700; font-size: 1.0625rem; }
.pack-note { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
.pack-note.is-low { color: var(--stamp); font-weight: 700; }
.was { display: block; font-size: var(--fs-xs); color: var(--muted); }
.stock-line { margin: 12px 0 0; font-weight: 700; color: var(--stamp); }
.spec-tax { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.preorder { margin: 10px 0 0; font-weight: 600; }
@media (max-width: 799px) {
  .sizes-table tr.line { grid-template-columns: minmax(0, 1fr) auto 64px !important; grid-template-areas: "pack price qty" "pack total total" !important; padding-inline: 0 !important; }
  .spec { padding-inline: 16px; margin-inline: calc(-1 * var(--margin)); }
}
.facts { margin: 24px 0 0; }
.facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.facts dt { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; }
.deliver-to { margin-top: 20px; padding: 14px 16px; background: var(--surface); }
.deliver-to p { margin: 0 0 10px; }
.area-mini { display: grid; gap: 6px; }
.area-mini > label { font-weight: 700; font-size: var(--fs-xs); }
.area-mini .select { min-height: 44px; }
.product-story, .product-reviews { display: grid; gap: 16px 48px; padding-top: var(--section); }
@media (min-width: 900px) { .product-story, .product-reviews { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.story-body { max-width: 68ch; }
.review-col { display: grid; gap: 16px; align-content: start; }
.review-form-wrap > summary { list-style: none; cursor: pointer; width: max-content; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form-wrap:not([open]) > .review-form { display: none; }
.review-form { margin-top: 16px; background: var(--paper); padding: 20px; }
.rating { border: 0; margin: 0 0 16px; padding: 0; }
.rating legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rate { position: relative; cursor: pointer; }
.rate input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rate span { display: grid; place-items: center; width: 44px; height: 44px; box-shadow: inset 0 0 0 2px var(--rule-strong); font-weight: 800; transition: background-color 140ms ease; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.rate input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; } /* taste-skill-ignore: removes a table rule */
.rate input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.rating-row .hint { margin-left: 8px; }

/* ------------------------------------------------------------------ documents */

.doc-head { padding-bottom: clamp(20px, 2.6vw, 32px); }
.doc-body { display: grid; gap: 32px 56px; }
@media (min-width: 900px) { .doc-body { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; } .doc-body.is-article { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.doc-body > .prose { background: var(--paper); padding: clamp(20px, 3.4vw, 48px); }
.doc-aside { background: var(--field); color: var(--field-ink); padding: 20px 22px; position: sticky; top: 16px; }
.doc-aside-h { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: 1.375rem; line-height: 1.1; margin-bottom: 8px; }
.doc-aside .btn { background: var(--band-1); color: var(--band-1-ink); }
.doc-aside p:last-child { margin: 0; }
.doc-meta { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.doc-plate { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0 0 24px; }
.prose { max-width: 70ch; }
.doc-body > .prose { max-width: none; }
.doc-body > .prose > * { max-width: 68ch; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.65; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.4em 0 0.4em; }
.prose > :first-child { margin-top: 0; }
.prose img { margin: 1.5em 0; }
.prose a { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.pre { white-space: pre-line; background: var(--surface); padding: 12px 14px; }
.doc-tables { display: grid; gap: 40px; }
.doc-tables h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.data-table thead th { font-size: var(--fs-xs); color: var(--muted); padding-block: 10px; box-shadow: inset 0 -2px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.data-table tbody th { font-weight: 700; }
.data-table .n { text-align: right; white-space: nowrap; }
.cell-note { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); white-space: normal; }
.doc-contact { margin: 0; }
@media (max-width: 799px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: auto; }
  .data-table tr { padding: 14px 16px; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
  .data-table th, .data-table td { padding: 0; box-shadow: none; } /* taste-skill-ignore: removes a table rule */
  .data-table td { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 10px; margin-top: 6px; text-align: left !important; white-space: normal; }
  .data-table td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding-top: 2px; }
}
.page-delivery .runs-sec { margin-top: var(--section); }
.more-posts { padding-top: var(--section); }
.more-posts h2 { margin-bottom: 16px; }
.how-sec { padding-top: var(--section); }
.how-list { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 12px; }
@media (min-width: 900px) { .how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-list li { background: var(--paper); padding: 18px 20px; }
.how-list strong { display: block; margin-bottom: 4px; }
.credit-list { padding-left: 1.2em; }
.credit-list li { margin-bottom: 8px; }

/* ------------------------------------------------------------------ bag page */

.bag-grid { display: grid; gap: 24px 40px; }
@media (min-width: 1000px) { .bag-grid { grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); align-items: start; } .bag-receipt { position: sticky; top: 16px; } }
.bag-table .c-item .text-btn { display: block; min-height: 32px; padding: 4px 0 0; }
.meta-price { display: none; }
@media (max-width: 799px) { .meta-price { display: inline; } }
.bag-table .c-qty { width: 150px; }
.bag-table .c-total { width: 150px; }
.bag-table tr.has-problem { background: color-mix(in srgb, var(--stamp) 10%, var(--paper)); }
@media (max-width: 799px) {
  .bag-table tr.line { grid-template-columns: 44px minmax(0, 1fr) auto !important; grid-template-areas: "pic item item" "pic qty total" !important; row-gap: 8px !important; }
  .bag-table .c-qty { justify-self: start; }
  .bag-table .c-price { display: none !important; }
  .bag-table .c-total { align-self: center; }
  .bag-table .c-qty { text-align: left; }
  .bag-table .c-total { font-size: var(--fs-ui); }
  .bag-lines .sheet-table { margin-inline: calc(-1 * var(--margin)); width: auto; }
}
.bag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 16px 0; }
.js .bag-actions .btn { display: none; }
.bag-note { max-width: 560px; }
.receipt { background: var(--paper); padding: 20px; display: grid; gap: 16px; }
.receipt-h { font-size: 1.375rem; }
.receipt-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.receipt-note.is-error { color: var(--stamp); font-weight: 700; }
.receipt-list { margin: 0; padding-left: 1.1em; }
.code-form { display: grid; gap: 6px; }
.code-form > label, .area-mini > label { font-weight: 700; font-size: var(--fs-xs); }
.code-on { margin: 0; }
.code-form .news-row .input { min-height: 44px; }
.code-form .news-row .btn { min-height: 44px; }

/* ------------------------------------------------------------------ checkout and order (Field's templates, this theme's look) */

.page-checkout main, .page-order main { padding-bottom: 24px; }
.co-head { padding-block: clamp(24px, 3.4vw, 44px) 16px; }
.co-head h1 { font-size: var(--fs-h1); }
.co-head .lead { margin-top: 8px; }
.co-grid { display: grid; gap: 24px 40px; }
@media (min-width: 1000px) { .co-grid { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); align-items: start; } .co-side { position: sticky; top: 16px; } }
.co-main { min-width: 0; }
.form-block { border: 0; margin: 0 0 16px; padding: 20px clamp(16px, 2.4vw, 28px) 12px; background: var(--paper); min-width: 0; }
.form-block legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; }
.form-block legend + * { clear: both; }
.form-block legend h2 { font-size: 1.375rem; padding-bottom: 10px; box-shadow: inset 0 -2px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.sub-block { margin-top: 18px; padding-top: 4px; }
.sub-block h3 { margin-bottom: 10px; }
.choice-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--rule); cursor: pointer; transition: box-shadow 140ms ease, background-color 140ms ease; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.choice > span { display: grid; gap: 2px; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--tint); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.choice.wide { grid-column: 1 / -1; }
.days { margin-bottom: 14px; }
.days-zone { margin: 0 0 8px; }
.day-list { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.day { position: relative; display: grid; gap: 2px; padding: 10px 12px 10px 40px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--rule); cursor: pointer; transition: transform var(--dur-press) var(--ease-out), box-shadow 140ms ease; } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.day input { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.day-name { font-weight: 700; }
.day-cut { font-size: var(--fs-xs); color: var(--muted); }
.day:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--tint); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.day:has(input:checked) .day-cut { color: var(--ink); }
.day:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.day:active { transform: scale(0.98); }
.day.is-full { cursor: not-allowed; }
.day.is-full .day-name { color: var(--muted); text-decoration: line-through; }
.windows { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; }
.zone-msg { margin: 0 0 14px; padding: 10px 12px; background: var(--surface); font-size: var(--fs-xs); font-weight: 600; }
.zone-msg.is-error { background: color-mix(in srgb, var(--stamp) 14%, var(--paper)); color: var(--ink); box-shadow: inset 0 3px 0 var(--stamp); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.gift { display: grid; gap: 6px; margin-top: 16px; }
.gift > label { font-weight: 700; }
.bank { background: var(--surface); padding: 14px; }
.card .notice { margin-top: 8px; }
.place-btn { min-height: 56px; font-size: 1.0625rem; margin-top: 8px; }
.co-side .slip, .order-side .slip { background: var(--paper); padding: 20px; display: grid; gap: 14px; }
.slip-title { font-size: 1.375rem; padding-bottom: 10px; box-shadow: inset 0 -2px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.co-lines { list-style: none; margin: 0; padding: 0; }
.co-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.co-img { position: relative; width: 48px; height: 48px; background: var(--surface); }
.co-img img { width: 48px; height: 48px; object-fit: cover; }
.co-img .line-ph { width: 48px; height: 48px; }
.co-qty { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 800; }
.co-name { display: block; font-weight: 700; line-height: 1.3; min-width: 0; }
.co-name .muted { font-weight: 400; }
.co-each { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.co-total { font-weight: 800; }
.co-side .btn-wide { min-height: 56px; }

.order-head h1 { max-width: 20ch; }
.order-grid { display: grid; gap: 24px 40px; }
@media (min-width: 1000px) { .order-grid { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); align-items: start; } }
.order-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 18px 20px; background: var(--paper); display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.step-item { display: grid; gap: 6px; }
.step-bar { display: block; height: 6px; background: var(--surface); position: relative; overflow: hidden; }
.step-item.is-done .step-bar { background: var(--ink); }
.step-item.is-current .step-bar { background: var(--band-1); }
.step-label { font-weight: 700; }
.step-when { font-size: var(--fs-xs); color: var(--muted); }
.steps.is-cancelled .step-bar { background: var(--surface); }
.hand, .pay-transfer { background: var(--paper); padding: 20px; }
.hand h2, .pay-transfer h2 { font-size: 1.375rem; margin-bottom: 10px; }
.hand-day { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: 1.375rem; }
.order-account, .order-help { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ account */

.auth { padding-block: clamp(32px, 5vw, 72px); display: grid; justify-items: center; }
.auth-sheet { width: min(100%, 520px); background: var(--paper); padding: clamp(22px, 4vw, 40px); box-shadow: inset 0 4px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.auth-sheet h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.auth-sheet .lead { margin: 10px 0 24px; font-size: var(--fs-ui); color: var(--muted); }
.auth-form .btn-wide { margin-top: 8px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 18px 0 0; }
.acct-head h1 { max-width: 24ch; }
.tab-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; }
.crate-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; background: var(--surface); font-weight: 700; text-decoration: none; transition: background-color 140ms ease; }
.crate-tab.is-on { background: var(--field); color: var(--field-ink); }
@media (hover: hover) and (pointer: fine) { .crate-tab:not(.is-on):hover { background: color-mix(in srgb, var(--surface) 80%, var(--ink) 8%); } }
.tab-n { min-width: 22px; height: 22px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--band-1); color: var(--band-1-ink); font-size: 0.8125rem; }
.acct-panel { background: var(--paper); padding: clamp(18px, 3vw, 32px); }
.panel-h { font-size: 1.75rem; margin-bottom: 16px; }
.acct-panel .empty-board { background: var(--surface); padding: 24px; }
.acct-panel .empty-board h3 { margin-bottom: 6px; }
.acct-table { width: 100%; border-collapse: collapse; }
.acct-table th, .acct-table td { padding: 12px 10px; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.acct-table thead th { font-size: var(--fs-xs); color: var(--muted); box-shadow: inset 0 -2px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
.acct-table .n { text-align: right; white-space: nowrap; }
.acct-table td > a.line-title, .acct-table .line-unit { display: block; }
.acct-table .line-unit { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.acct-table .acts { text-align: right; }
.acct-table form { margin: 0; }
@media (max-width: 699px) {
  .acct-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .acct-table, .acct-table tbody, .acct-table tr, .acct-table td { display: block; }
  .acct-table tr { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
  .acct-table td { padding: 2px 0; box-shadow: none; text-align: left !important; } /* taste-skill-ignore: removes a table rule */
  .acct-table td.acts { padding-top: 8px; }
}
.box-row { display: grid; gap: 12px 24px; padding: 18px 0; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
@media (min-width: 800px) { .box-row { grid-template-columns: minmax(0, 1fr) auto; } }
.box-row.is-off { opacity: 0.7; }
.box-row h3 { font-size: 1.25rem; }
.box-when { margin: 4px 0; font-weight: 700; }
.box-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.box-acts form { margin: 0; }
.pause-form { display: flex; gap: 8px; }
.pause-form .select { min-height: var(--control); }
.cancel-box > summary { list-style: none; cursor: pointer; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.cancel-box form { display: grid; gap: 8px; margin-top: 8px; max-width: 320px; }
.addr-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 24px; }
.addr { background: var(--surface); padding: 16px 18px; }
.addr.is-main { background: var(--field); color: var(--field-ink); }
.addr.is-main .muted, .addr.is-main .hint { color: var(--field-muted); }
.addr h3 { margin-bottom: 6px; }
.addr-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.addr-acts form { margin: 0; }
.sheet-form { background: var(--paper); }
.acct-panel .sheet-form { padding: 0; }
.sheet-form h3 { font-size: 1.25rem; margin: 20px 0 12px; }
.sheet-form h3:first-child { margin-top: 0; }
.form-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.details-grid { display: grid; gap: 32px 48px; }
@media (min-width: 1000px) { .details-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.sheet-form.wholesale { background: var(--surface); padding: 20px; align-self: start; }

/* farm box sign-up */
.form-grid { display: grid; gap: 24px 40px; }
@media (min-width: 1000px) { .form-grid { grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); align-items: start; } .form-aside { position: sticky; top: 16px; } }
.form-grid .sheet-form { background: none; }
.field-short { max-width: 200px; }

/* ------------------------------------------------------------------ error and locked */

.error-sec { padding-block: clamp(40px, 6vw, 96px); }
.error-sheet { display: grid; gap: 16px 48px; background: var(--paper); padding: clamp(24px, 4vw, 56px); box-shadow: inset 0 4px 0 var(--ink); } /* taste-skill-ignore: inset rule of a real table, form control or tab, not a shadow */
@media (min-width: 800px) { .error-sheet { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }
.error-code { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--display-tracking); font-size: clamp(4rem, 2.6rem + 6vw, 8rem); line-height: 0.85; color: var(--band-1-ink); background: var(--band-1); padding: 12px 18px; justify-self: start; }
.error-code .icon { stroke-width: 1.5; }
.error-copy h1 { max-width: 18ch; }
.error-copy .lead { margin: 14px 0 0; }
.error-copy .search-form { margin-top: 24px; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 20px 0 0; }
.error-debug { margin-top: 24px; padding: 16px; overflow: auto; background: var(--surface); font-size: 0.8125rem; white-space: pre-wrap; }
.shop-pass { margin-top: 24px; display: grid; gap: 8px; }
.shop-pass label { font-weight: 700; }

/* ------------------------------------------------------------------ motion preferences */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .pack::before, .tally, .tally-track span, .drawer, .menu-sheet, .card-pic img, .toast, .bag-line, .text-link .icon, .head-index a .icon, .toc-row .icon, .cta-arrow, .bag-count { transition-property: opacity, background-color, color !important; }
  .tally:not(.is-shown) { transform: translateY(110%); }
  .drawer:not(.is-open) { opacity: 0; }
  .menu-sheet { transform: none; }
  .toast.is-entering, .toast.is-leaving { transform: none; }
  .btn:active, .add-btn:active, .icon-btn:active, .day:active, .stepper .step:active { transform: none; }
  .head-title, .head-sentence, .head-acts, .head-pic, .term, .head-index li { animation: none; }
}
@media print {
  .top, .tabs-row, .tally, .foot, .announce, .drawer, .drawer-scrim, .toasts, .c-add { display: none !important; }
  body { background: #fff; }
}
.page-delivery .foot { margin-top: 0; }
@media (max-width: 899px) { .gallery:has(.gallery-main.is-blank) { display: none; } }
/* Focus rings on the dark field take the field's own ink, so they always show. */
.tabs-row :focus-visible, .foot :focus-visible, .tally :focus-visible, .drawer-head :focus-visible, .doc-aside :focus-visible,
.note-sec:not(.has-pic) :focus-visible, .cta-link:focus-visible, .crate-tab.is-on:focus-visible, .addr.is-main :focus-visible { outline-color: var(--field-ink); }
.announce :focus-visible, .news-grid :focus-visible { outline-color: var(--band-1-ink); }
@media (max-width: 599px) {
  .back-link span, .secure span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
