/* neemman.com. Everything here is from docs/UI-CONTRACT.md; anything new goes into the
   contract first. This is the live stylesheet; design/site/site.css is the layout pass it grew from. */

/* Fonts are self-hosted and preloaded (2026-11-08): from Google with display=swap, each page
   drew in Georgia first and the wordmark changed width under the menu on every load. */
@font-face { font-family: "EB Garamond"; src: url("/static/fonts/eb-garamond.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/static/fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Until a font arrives, its stand-in is scaled to the same width and line metrics, so a
   first visit doesn't shift either. Measured 2026-11-08: EB Garamond is 0.892 of Georgia's
   width, Geist 1.021 of Arial's. Overrides are divided by size-adjust. */
@font-face { font-family: "EB Garamond Fallback"; src: local("Georgia"); size-adjust: 89.2%; ascent-override: 113.2%; descent-override: 33.6%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 102.1%; ascent-override: 98.9%; descent-override: 28.4%; line-gap-override: 0%; }

:root {
  --paper: #f7f6f2; --ink: #171614; --quiet: #6e6b65; --edge: #d8d5ce; --tint: #eeece6; --leaf: #2f5a3a; --error: #a3362a;
  --serif: "EB Garamond", "EB Garamond Fallback", Georgia, serif;
  --sans: "Geist", "Geist Fallback", system-ui, sans-serif;

  --display: clamp(2.5rem, 6vw, 3.75rem);
  --title: clamp(1.5rem, 2.8vw, 1.875rem);
  --body: 1.125rem;                 /* 18px: contract, 2026-11-08 */

  --s1: .25rem; --s2: .5rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.5rem; --s6: 4rem; --s7: 6.5rem; --s8: 10.5rem;
  --gutter: 24px; --wide: 72rem; --measure: 34em;
  --radius: 4px; --round: 999px;
  --ease: cubic-bezier(.2,.65,.2,1); --quick: 200ms;
}
@media (min-width: 48rem) { :root { --gutter: 40px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 var(--body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; /* the home bough runs off the right edge */
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

/* ---- Type: three sizes ---- */
h1, .display { font: 400 var(--display)/1.05 var(--serif); letter-spacing: -.005em; }
h2, h3, .title { font: 400 var(--title)/1.2 var(--sans); letter-spacing: -.015em; }
.quiet { color: var(--quiet); }
.latin { font-family: var(--serif); font-style: italic; font-size: 1.08em; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s3); }
.prose h2 { margin-top: var(--s6); }
.prose > h2:first-child { margin-top: 0; }
.page-head { padding: var(--s5) 0 var(--s6); display: grid; gap: var(--s4); }
.page-head p { max-width: var(--measure); }
.block { padding-bottom: var(--s7); }
.block > h2 { margin-bottom: var(--s5); }
.two { display: grid; gap: var(--s5); }
@media (min-width: 48rem) { .two { grid-template-columns: 1fr 1fr; gap: var(--s5); } }

/* ---- Links and controls ---- */
a { color: inherit; }
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 92% / 100% 1px no-repeat;
  transition: background-size var(--quick) var(--ease);
}
.link:hover { background-size: 0 1px; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 var(--s5);
  border: 1px solid var(--ink); border-radius: var(--round);
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--leaf); border-color: var(--leaf); color: var(--paper); }
.btn.primary:hover { background: #24472d; border-color: #24472d; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.wide { width: 100%; }


.field { display: grid; gap: var(--s2); }
.field > span { padding-left: var(--s4); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0 var(--s4);
  border: 1px solid var(--edge); border-radius: var(--round); background: var(--paper);
  transition: border-color var(--quick) var(--ease);
}
.field select { appearance: none; padding-right: var(--s6); cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6b65' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1.5rem center; }
.field textarea { border-radius: var(--radius); padding: var(--s3) var(--s4); min-height: 6rem; resize: vertical; }
.field :hover { border-color: var(--quiet); }
.field :focus { border-color: var(--ink); outline: none; }
.fields { display: grid; gap: var(--s4); }
.req { margin-left: .15em; }
html.js .no-js { display: none; }
@media (min-width: 40rem) { .fields .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); } }
@media (max-width: 39.99rem) { .fields .pair { display: grid; gap: var(--s4); } }

.qty {
  display: inline-grid; grid-template-columns: 3.25rem 2.5rem 3.25rem; align-items: center;
  min-height: 3.25rem; border: 1px solid var(--edge); border-radius: var(--round); overflow: hidden;
}
.qty button { height: 100%; border: 0; background: none; cursor: pointer; color: var(--quiet); font-size: 1.25em; }
.qty button:hover { color: var(--ink); }
.qty output, .qty input { text-align: center; }
.qty input { width: 100%; min-width: 0; height: 100%; border: 0; background: none; padding: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--ink); }
html:not(.js) .qty.stepper { grid-template-columns: 5rem; }
html:not(.js) .qty.stepper button { display: none; }
.qty button[disabled] { opacity: .3; cursor: default; }

.well { background: var(--tint); border-radius: var(--radius); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.well.wide { aspect-ratio: 3 / 2; }
.well img { width: 22%; opacity: .14; }
/* A real photo fills its well; the stamp placeholder above stays small and faint. */
/* Product photos are 4:5 like the well; contained, a phone's wider well or the cart's square one shows
   the whole bottle on the tint rather than cutting off its cap. */
.well:has(img.shot) { position: relative; }
.well img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.well.photo img[src*="/photos/"] { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 1; }

/* ---- The stamp (lockup E in the header) ---- */
.seal { display: block; flex: none; aspect-ratio: 1; }
.seal svg, .seal img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.lk { --cap: .658em; display: inline-flex; align-items: center; gap: calc(var(--cap) * .75); text-decoration: none; color: var(--ink); }
.lk .seal { width: calc(2 * var(--cap) * 1.02); transform: translateY(-.0255em); }
.lk .wm { font: 400 1em/1.04 var(--serif); letter-spacing: .005em; white-space: nowrap; }

/* ---- Header: lockup E, three links, the Shop pill and the cart. Below 48rem, lockup E and a burger ---- */
.site-head { padding: var(--s4) 0; }
.site-head .wrap { display: flex; align-items: center; gap: var(--s3) var(--s5); }
.lk { font-size: 1.5rem; }
.site-head .lk { margin-right: auto; }
.site-head .bar ul { display: flex; gap: var(--s2) var(--s4); }
.site-head .bar a { display: inline-block; padding: var(--s2) 0; text-decoration: none; color: var(--quiet); transition: color var(--quick) var(--ease); }
.site-head .bar a:hover, .site-head .bar a[aria-current] { color: var(--ink); }
.site-head .bar a[aria-current] { background: linear-gradient(currentColor, currentColor) 0 85% / 100% 1px no-repeat; }
.head-tools { display: flex; align-items: center; gap: var(--s3); }
.shop-cta { padding: 0 var(--s4); }
.cart-link, .burger {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; color: var(--ink); border-radius: var(--round);
  transition: background-color var(--quick) var(--ease);
}
.cart-link:hover, .cart-link[aria-current], .burger:hover { background: var(--tint); }
.cart-link svg, .burger svg { width: 1.625rem; height: 1.625rem; }
.burger { display: none; }
/* The badge is the contract's one sub-body size: a count, never words (2026-11-18). */
.badge {
  position: absolute; top: .3rem; right: .2rem; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--round); background: var(--ink); color: var(--paper);
  font-size: .75rem; line-height: 1; font-variant-numeric: tabular-nums;
}
@media (max-width: 47.99rem) {
  .lk { font-size: 1.375rem; }
  .site-head .bar, .site-head .shop-cta, .site-head .cart-link { display: none; }
  .burger { display: inline-flex; }
}

/* ---- The phone menu and the cart drawer: dialogs, opened by site.js, or by #menu / #cart without it ---- */
dialog { color: var(--ink); background: var(--paper); border: 0; padding: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(23 22 20 / .35); }
/* showModal can focus the dialog itself; it is a container, not a control, so no ring. */
dialog:focus, dialog:focus-visible { outline: none; }
html:not(.js) dialog:target { display: flex; position: fixed; inset: 0; z-index: 10; }
.close { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-right: -.875rem; color: var(--quiet); text-decoration: none; }
.close:hover { color: var(--ink); }

.sheet { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; flex-direction: column; padding: var(--s4) var(--gutter) var(--s6); }
.sheet[open] { display: flex; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.sheet nav ul { display: grid; padding-top: var(--s6); }
.sheet nav a { display: flex; align-items: center; min-height: 3.5rem; font-size: var(--title); letter-spacing: -.015em; text-decoration: none; color: var(--ink); }
.sheet nav a[aria-current] { color: var(--quiet); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(26rem, 100%); height: 100%; margin: 0; flex-direction: column; padding: var(--s4) var(--s5) var(--s5); }
.drawer[open] { display: flex; }
html:not(.js) .drawer:target { left: auto; width: min(26rem, 100%); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.drawer-lines { display: grid; gap: var(--s5); overflow-y: auto; flex: 1; align-content: start; }
.drawer-lines li.nudge { display: block; }
.drawer-lines a { text-decoration: none; color: var(--ink); }
.drawer-foot { display: grid; gap: var(--s4); padding-top: var(--s5); }
.drawer-foot .btn + .btn { margin-top: calc(var(--s2) - var(--s4)); }
.drawer-empty { display: grid; gap: var(--s4); justify-items: start; }

@media (prefers-reduced-motion: no-preference) {
  .sheet[open], .drawer[open] { animation: slide-in .45s var(--ease) both; }
  dialog[open]::backdrop { animation: fade-in .45s var(--ease) both; }
  @keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- How to use: each use opens on its own ---- */
.uses { display: grid; margin-top: var(--s4); max-width: 40rem; }

/* ---- Botanicals: ink drawings that grow in, sway, and rest as a still frame ---- */
.plant { position: relative; pointer-events: none; }
/* How to use: a small specimen beside each section's heading on a phone, and in the margin beside the
   list on a wider screen, like a plate in an old herbal. */
.use-block { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s4); align-items: start; }
.use-block > h2 { grid-column: 1; align-self: end; }
.use-block > .plant { grid-column: 2; grid-row: 1; width: 5.5rem; height: 7rem; }
.use-block > .uses { grid-column: 1 / -1; }
@media (min-width: 56rem) {
  .use-block { grid-template-columns: minmax(0, 40rem) 1fr; column-gap: var(--s6); }
  .use-block > .plant { grid-row: 1 / span 2; width: 13rem; height: 17rem; justify-self: start; margin-top: var(--s5); }
  .use-block > .uses { grid-column: 1; }
}
/* Contact: the address, with a sprig rising beside it. */
.contact { display: grid; gap: var(--s5); align-items: start; }
.contact > .plant { height: 18rem; max-width: 22rem; width: 100%; }
@media (min-width: 48rem) {
  .contact { grid-template-columns: 1fr 1fr; }
  .contact > .plant { height: 26rem; max-width: none; }
}
.uses summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 3.5rem; cursor: pointer; list-style: none;
}
.uses summary::-webkit-details-marker { display: none; }
.uses summary::after { content: "+"; color: var(--quiet); font-size: 1.5em; line-height: 1; transition: transform var(--quick) var(--ease); }
.uses details[open] summary::after { transform: rotate(45deg); }
.uses summary:hover::after { color: var(--ink); }
.uses .prose { padding: var(--s2) 0 var(--s5); }
/* A use eases open and shut where the browser can animate to auto height (elsewhere it opens at once),
   and its words settle in everywhere. */
@media (prefers-reduced-motion: no-preference) {
  .uses details { interpolate-size: allow-keywords; }
  .uses details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .uses details[open]::details-content { height: auto; }
  .uses details[open] .prose { animation: unfold .45s var(--ease) both; }
  @keyframes unfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* ---- Footer ---- */
.site-foot { padding: var(--s7) 0 var(--s6); color: var(--quiet); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.site-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.site-foot a { color: var(--quiet); }
.site-foot a:hover { color: var(--ink); }
.site-foot .seal { width: 2.5rem; color: var(--ink); }
.site-foot .mark { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.site-foot .social { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: 0 -.875rem 0 calc(var(--s2) - .875rem); }

/* ---- Home ---- */
.hero { padding: var(--s5) 0 var(--s7); display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 48rem) { .hero { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.hero .text { display: grid; gap: var(--s4); justify-items: start; }
.hero .text .btn { margin-top: var(--s3); }
/* The bough has no well: it reaches in from the right edge of the window, past the gutter and, on a wide
   screen, past the wrap's margin. On a phone it spans both edges, or its leaves stop short at the left gutter. */
.hero > .plant { height: 15rem; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 48rem) { .hero > .plant { height: clamp(24rem, 40vw, 34rem); margin: 0 calc(-1 * (var(--gutter) + max(0px, (100vw - var(--wide)) / 2))) 0 0; } }

/* ---- Product cards ---- */
.cards { display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 48rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: grid; gap: var(--s3); text-decoration: none; }
.card .well { margin-bottom: var(--s2); transition: background-color var(--quick) var(--ease); }
.card:hover .well { background: #e7e4dc; }
.card h2, .card h3 { margin-top: var(--s2); }

/* ---- Product page ---- */
.product { display: grid; gap: var(--s5); padding: var(--s6) 0 var(--s7); }
@media (min-width: 48rem) { .product { grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: start; } }
.product .info { display: grid; gap: var(--s5); }
.product .info > div:first-child { display: grid; gap: var(--s3); }
.buy-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 12rem; }

/* ---- Buying: the shop page's sections and the product page share the form ---- */
.info > .head { display: grid; gap: var(--s2); }
.buy { display: grid; gap: var(--s4); }
.buy p[data-note]:empty { display: none; }
.mix { border: 0; display: grid; gap: var(--s2); }
.mix legend { margin-bottom: var(--s3); }
.mix-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 3.25rem; }
.mix-row .qty { width: 9.5rem; grid-template-columns: 3.25rem 1fr 3.25rem; }
.mix-row .what { flex: 1; }
.mix-row .num { min-width: 3.5rem; text-align: right; }
/* Always one line tall, said or not, so Add to cart never moves when it appears. */
.mix-nudge { min-height: 1.6em; }
html:not(.js) .mix-nudge { display: none; }
.buy [data-sum]:not(:empty) { margin-left: .35em; }

.shop-item { display: grid; gap: var(--s5); padding-bottom: var(--s7); scroll-margin-top: var(--s5); }
.shop-item .info { display: grid; gap: var(--s4); align-content: start; }
.rates { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); margin-top: var(--s4); }
.zone { display: grid; gap: var(--s2); align-content: start; }
.zone h3 { font: inherit; letter-spacing: 0; }
.zone .sums { margin-top: var(--s2); }
.sums.three div { display: grid; grid-template-columns: 1fr 5rem 5rem; gap: var(--s3); }
.sums.three span { white-space: nowrap; }
.sums.three div > span:not(:first-child) { text-align: right; }
.shop-item h2 a { color: inherit; text-decoration: none; }
.shop-item .buy { margin-top: var(--s3); }
@media (min-width: 48rem) {
  .shop-item { grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: start; }
  .shop-item:nth-of-type(odd) .well { order: 2; }
  .shop-item .info { position: sticky; top: var(--s5); }
}

/* ---- Lists of lines (cart, summaries): space, not rules ---- */
.lines { display: grid; gap: var(--s5); }
.line { display: grid; grid-template-columns: 5rem 1fr auto; gap: var(--s4); align-items: start; }
.line .well { aspect-ratio: 1; }
.line .well img { width: 40%; }
/* A cart thumbnail is too small for a contained bottle; fill it and keep the label. */
.line .well img.shot { width: 100%; object-fit: cover; object-position: 50% 45%; }
.line .what { display: grid; gap: var(--s2); }
.line .controls { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; margin-top: var(--s2); }
.line .remove { background: none; border: 0; color: var(--quiet); cursor: pointer; padding: var(--s2) 0; }
.line .remove:hover { color: var(--ink); }
.sums { display: grid; gap: var(--s2); align-content: start; }
.sums div { display: flex; justify-content: space-between; gap: var(--s4); }
.sums .total { margin-top: var(--s3); }

/* ---- Cart and checkout ---- */
.cart, .checkout { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 56rem) {
  .cart, .checkout { grid-template-columns: 1.4fr 1fr; gap: var(--s7); align-items: start; }
  .aside { position: sticky; top: var(--s5); }
}
.aside { display: grid; gap: var(--s4); padding: var(--s5); background: var(--tint); border-radius: var(--radius); }
.order-lines { display: grid; gap: var(--s4); }
.order-lines .qty { background: var(--paper); }
/* A line in the drawer or checkout's summary: name and size beside the line's total; beneath
   them the quantity with its price each, and a quiet Remove in the total's column, so it sits in
   the same place on every line however long the price is. */
.line-card { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s4); align-items: center; }
.line-card > p { align-self: start; }
.line-card > p:first-child .quiet { white-space: nowrap; }
.line-card .controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.line-card .qty { width: 7.5rem; flex: none; grid-template-columns: 2.5rem 1fr 2.5rem; }
.line-card .drop { justify-self: end; align-self: start; display: flex; align-items: center; min-height: 3.25rem; }
.line-card .remove { font: inherit; background: none; border: 0; padding: var(--s2) 0; color: var(--quiet); cursor: pointer; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .2em; transition: color var(--quick) var(--ease), text-decoration-color var(--quick) var(--ease); }
.line-card .remove:hover { color: var(--ink); text-decoration-color: var(--ink); }
.services { border: 0; padding: 0; display: grid; gap: var(--s2); }
.services legend { padding: 0 0 var(--s2) var(--s4); }
.services label { display: flex; align-items: center; gap: var(--s3); min-height: 3.25rem; padding: 0 var(--s4); border: 1px solid var(--edge); border-radius: var(--round); background: var(--paper); cursor: pointer; }
.services label:hover { border-color: var(--quiet); }
.services label:has(:checked) { border-color: var(--ink); }
.services input { accent-color: var(--ink); margin: 0; }
.services span:first-of-type { flex: 1; }
.steps { display: grid; gap: var(--s7); }
.step { display: grid; gap: var(--s4); }
.note { padding: var(--s4); background: var(--tint); border-radius: var(--radius); }
.paypal { display: grid; gap: var(--s2); }
.paypal span {
  display: grid; place-items: center; min-height: 3.25rem; border-radius: var(--round);
  background: var(--paper); color: var(--quiet);
}
[hidden] { display: none !important; }

/* ---- Entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  main > :first-child > * { animation: settle 1.4s var(--ease) both; }
  main > :first-child > :nth-child(2) { animation-delay: .12s; }
  main > :first-child > :nth-child(3) { animation-delay: .24s; }
  @keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Phones: shorter image wells, so the product name and price are on the first screen */
@media (max-width: 47.99rem) {
  .hero .well, .product .well, .two .well, .cards .well, .shop-item .well { aspect-ratio: 4 / 3; }
}

/* Form problems: no red in the palette, so ink and a note carry it */
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--error); }
.field .err { padding-left: var(--s4); color: var(--error); }
.note a { color: inherit; }

.paypal-buttons { min-height: 7rem; }
.pay-card { display: grid; gap: var(--s3); }
/* Bank transfer: numbered steps, then PayID and BSB and account as tabs (radios placed before
   the tab bar and panels, so they switch without JavaScript), each value with a Copy button. */
.pay { display: grid; gap: var(--s4); max-width: 32rem; }
.pay h2 { margin: 0; }
.steps-list { margin: 0; padding-left: 1.5em; display: grid; gap: var(--s2); }
.steps-list li { padding-left: var(--s1); }
.steps-list strong { font-weight: 600; }
.tabs { display: grid; margin-top: var(--s3); }
.tabs-label { margin-bottom: var(--s2); font-weight: 600; }
.way-pick { position: absolute; opacity: 0; pointer-events: none; }
.tab-bar { display: grid; grid-template-columns: 1fr 1fr; }
.tab-bar label {
  display: grid; place-items: center; min-height: 3.5rem; padding: var(--s2); text-align: center;
  border: 1px solid var(--edge); background: var(--tint); color: var(--quiet); cursor: pointer;
  margin-bottom: -1px; position: relative;
}
.tab-bar label:first-child { border-radius: var(--radius) 0 0 0; }
.tab-bar label:last-child { border-radius: 0 var(--radius) 0 0; border-left: 0; }
.tab-bar label:hover { color: var(--ink); }
#way-payid:checked ~ .tab-bar [for=way-payid], #way-bank:checked ~ .tab-bar [for=way-bank] {
  background: var(--paper); color: var(--ink); font-weight: 600; border-bottom-color: var(--paper);
  box-shadow: inset 0 3px 0 var(--leaf); z-index: 1;
}
#way-payid:focus-visible ~ .tab-bar [for=way-payid], #way-bank:focus-visible ~ .tab-bar [for=way-bank] { outline: 2px solid var(--ink); outline-offset: -4px; }
.pay .way { display: none; }
#way-payid:checked ~ .way-payid, #way-bank:checked ~ .way-bank { display: grid; }
.copyable { display: grid; gap: var(--s4); padding: var(--s4); border: 1px solid var(--edge); border-radius: var(--radius); background: var(--paper); }
.tabs .way { border-top-left-radius: 0; border-top-right-radius: 0; }
.copyable > div { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s3); }
.copyable > div > span { grid-column: 1; }
.copyable > div > span:first-child { color: var(--quiet); font-size: .875em; }
.copyable .v { overflow-wrap: anywhere; font-size: 1.125em; }
.copy {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: var(--s2);
  font: inherit; font-size: .875em; min-height: 2.75rem; padding: 0 var(--s3);
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--paper); color: var(--ink); cursor: pointer;
}
.copy svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.copy:hover { border-color: var(--ink); }
.copy.done { border-color: var(--leaf); color: var(--leaf); }
@media (max-width: 47.99rem) {
  .copyable { padding: var(--s3); }
  .copyable .v { font-size: 1em; }
}
.line .what a { text-decoration: none; }

/* ---- Tick boxes: the checkout's news box. The admin has its own stylesheet, static/admin.css. ---- */
.check { display: inline-flex; gap: var(--s3); align-items: center; min-height: 3.25rem; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; accent-color: var(--leaf); }
