/*
  Design read: a transactional Thai storefront (the buy tool first, proof of a real
  business second) for Roblox players on phones and for a bank reviewer, in a
  black-and-yellow signboard and paper-slip language. ENERGY 2 / RHYTHM 2 / MOTION 1.

  Why each choice:
  - Ink + signal yellow: the owner's brief. Yellow is a surface here (road sign, price
    tag), never a glow or a gradient.
  - Paper for forms and reading: a payment page should read like a bank slip, and long
    policy text needs a calm light surface.
  - Bai Jamjuree headings: Thai loopless with squared terminals, close to wayfinding type.
  - IBM Plex Sans Thai Looped body: looped Thai stays legible in long policy text and
    reads formal, which the bank-facing pages need.
  - IBM Plex Mono only for order numbers, amounts and board cells: figures must align.
  - Square corners and one hard offset shadow (on the order slip only): signs and paper
    have corners; the single shadow marks the one thing the page is for.
  - Hazard stripe only on closed or attention states, where it means what it means on a road.
  - No theme toggle: yellow on black is the brand, not a mode.
*/

:root {
  --ink: #141410;
  --ink-2: #24231d;
  --ink-line: #3d3b31;
  --sign: #ffd21f;
  --sign-deep: #e3b600;
  --paper: #fbf8ee;
  --paper-2: #f1ecdb;
  --paper-line: #cfc8ae;
  --mute: #5c5a50;
  --mute-on-ink: #b8b4a2;
  --ok: #1f6f37;
  --bad: #a8231c;

  --font-head: "Bai Jamjuree", "IBM Plex Sans Thai Looped", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Thai Looped", "Sarabun", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.35rem + 2.5vw, 3.25rem);

  --gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --section: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  --edge: clamp(1rem, 0.4rem + 3vw, 2.5rem);
  --wide: 72rem;
  --measure: 38rem;
  --rule: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  /* Thai stacks vowels and tone marks above and below the line. */
  line-height: 1.75;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: var(--step-3);
  line-height: 1.22;
}

h2 {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.on-ink :focus-visible,
.on-ink:focus-visible {
  outline-color: var(--sign);
}

.skip {
  position: absolute;
  left: var(--edge);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--sign);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.muted {
  color: var(--mute);
}

.on-ink .muted {
  color: var(--mute-on-ink);
}

.small {
  font-size: var(--step--1);
  line-height: 1.65;
}

.stack > * + * {
  margin-top: var(--gap);
}

.stack-tight > * + * {
  margin-top: 0.5rem;
}

/* Top bar */

.bar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--rule) solid var(--sign);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
}

.mark {
  display: inline-flex;
  align-items: stretch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
}

/* The lit lamp of the status board doubles as the mark until the shop has a logo. */
.mark-tag {
  display: grid;
  place-items: center;
  width: 2.1rem;
  background: var(--sign);
}

.mark-tag::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--ink);
}

.mark-name {
  padding: 0.5rem 0.6rem;
  border: var(--rule) solid var(--sign);
  border-left: 0;
  color: var(--paper);
}

/* The home link is a tap target: 44px like every other control in the bar. */
.bar .mark {
  min-height: 2.75rem;
}

.bar .mark-name {
  display: flex;
  align-items: center;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: var(--paper);
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  /* A label split over two lines reads as two links. */
  white-space: nowrap;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover {
  color: var(--sign);
}

.nav .nav-key {
  background: var(--sign);
  color: var(--ink);
  font-weight: 600;
  margin-left: 0.25rem;
}

.nav .nav-key:hover {
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

/* Below this width the signed-in staff labels do not fit on one row (labels never wrap, see .nav a). */
@media (max-width: 66rem) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.85rem;
    background: none;
    color: var(--paper);
    border: var(--rule) solid var(--ink-line);
    font: inherit;
    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--edge) 1rem;
    background: var(--ink);
    border-bottom: var(--rule) solid var(--sign);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav button {
    min-height: 3rem;
    padding: 0 0.25rem;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--ink-line);
    justify-content: flex-start;
  }

  .nav .nav-key {
    margin: 0.75rem 0 0;
    padding: 0 1rem;
    justify-content: center;
    border-bottom: 0;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.55rem 1.25rem;
  border: var(--rule) solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--sign);
  font-family: var(--font-head);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms, color 120ms, transform 80ms;
}

.btn:hover {
  background: var(--ink-2);
  color: var(--paper);
}

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

.btn[disabled],
.btn[aria-disabled="true"] {
  background: var(--paper-2);
  color: var(--mute);
  border-color: var(--paper-line);
  cursor: not-allowed;
  transform: none;
}

.btn-sign {
  background: var(--sign);
  color: var(--ink);
}

.btn-sign:hover {
  background: var(--sign-deep);
  color: var(--ink);
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.on-ink .btn-line {
  color: var(--paper);
  border-color: var(--paper);
}

.on-ink .btn-line:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-wide {
  width: 100%;
}

.btn-icon {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

/* Discord allows its mark only in white, black or blurple: white on the ink button,
   near-black (the ink text colour) on a line button. */
.btn:not(.btn-line) .btn-icon-discord {
  fill: #fff;
}

.btn-icon-mail {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  font-size: var(--step--1);
}

.btn.is-busy {
  position: relative;
  color: transparent;
  pointer-events: none;
}

/* A busy button is also disabled, so it sits on the disabled paper: the wait message is ink on every variant. */
.btn.is-busy::after {
  content: attr(data-busy);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: var(--step--1);
}

/* Links that stand alone (not inside a sentence) get the same 44px tap height as buttons. */
.board a,
.choice a,
.deflist a,
#again {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.choice a {
  justify-self: start;
}

/* The Thai line breaker does not know these loanwords and splits them mid-word. */
.nb {
  display: inline-block;
  text-decoration: inherit;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  min-height: 2.75rem;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* Fields */

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step--1);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.75rem;
  border: var(--rule) solid var(--ink);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  /* Below 16px iOS zooms the page when a field takes focus. */
  font-size: max(1rem, var(--step-0));
  line-height: 1.5;
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #77746a;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  background: #fffdf2;
}

.field .hint {
  font-size: var(--step--1);
  color: var(--mute);
  line-height: 1.55;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--bad);
}

.field .error {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--bad);
}

.input-unit {
  display: flex;
}

.input-unit input {
  border-right: 0;
  border-radius: 2px 0 0 2px;
  font-family: var(--font-mono);
}

.input-unit > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  border: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--sign);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step--1);
  white-space: nowrap;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--step--1);
  line-height: 1.6;
}

.check input {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}

/* Notes: every status carries a word, never colour alone. */

.note {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border: var(--rule) solid var(--ink);
  border-left-width: 0.5rem;
  background: #fff;
  /* Notes also sit on ink bands, whose paper text colour would vanish on the white. */
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.6;
}

.note strong {
  font-family: var(--font-head);
  font-size: var(--step-0);
}

.note-bad {
  border-color: var(--bad);
}

.note-bad strong {
  color: var(--bad);
}

.note-ok {
  border-color: var(--ok);
}

.note-ok strong {
  color: var(--ok);
}

.note-sign {
  background: var(--sign);
}

.note .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

/* Closed and attention states borrow the road-works stripe. */

.stripe {
  background: repeating-linear-gradient(-45deg, var(--ink) 0 0.6rem, var(--sign) 0.6rem 1.2rem);
  height: 0.6rem;
}

.banner {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
}

.banner .wrap {
  padding-block: 0.6rem;
}

.bar-notice {
  padding-block: 0.75rem;
}

/* Hero: the yellow field holds the one thing the page is for. */

.hero {
  background: var(--sign);
  border-bottom: var(--rule) solid var(--ink);
  padding-block: clamp(1.75rem, 1rem + 4vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
  }
}

.hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.hero-copy .lead {
  font-size: var(--step-1);
  line-height: 1.65;
}

.facts {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: var(--step--1);
}

.facts li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
}

.facts li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--ink);
  transform: translateY(0.05rem);
}

/* The slip: order form, payment card and receipt share this paper ticket. */

.slip {
  background: var(--paper);
  border: var(--rule) solid var(--ink);
}

.slip-lift {
  box-shadow: 0.4rem 0.4rem 0 var(--ink);
}

.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--sign);
  font-family: var(--font-head);
  font-weight: 600;
}

.slip-head .num {
  color: var(--paper);
  font-size: var(--step--1);
}

.slip-body {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.slip-cut {
  border: 0;
  border-top: var(--rule) dashed var(--ink);
  margin: 0;
}

.rows {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.rows dt {
  color: var(--mute);
  font-size: var(--step--1);
}

.rows dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.rows .total dt,
.rows .total dd {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-1);
}

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
}

.stepper li {
  flex: 1;
  padding-top: 0.4rem;
  border-top: 0.3rem solid var(--paper-line);
  color: var(--mute);
}

.stepper li[aria-current="step"] {
  border-top-color: var(--ink);
  color: var(--ink);
}

.stepper li.is-done {
  border-top-color: var(--ink);
}

.who {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem;
  border: var(--rule) solid var(--ink);
  background: #fff;
}

.who img,
.who .who-blank {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  display: block;
}

.who strong {
  display: block;
  font-family: var(--font-head);
  line-height: 1.3;
}

/* Group choices inside the tool */

.choices {
  display: grid;
  gap: 0.5rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choices legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step--1);
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem;
  border: var(--rule) solid var(--ink);
  background: #fff;
  cursor: pointer;
}

.choice input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.2rem 0 0;
  accent-color: var(--ink);
}

.choice:has(input:checked) {
  background: var(--sign);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.choice.is-off {
  background: var(--paper-2);
  border-style: dashed;
  border-color: var(--mute);
  color: var(--mute);
  cursor: default;
}

.choice-name {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.35;
}

.choice-meta {
  grid-column: 2;
  font-size: var(--step--1);
  line-height: 1.55;
}

.choice-state {
  grid-column: 2;
  font-size: var(--step--1);
  font-weight: 600;
}

/* The Robux mark, painted in the colour of the text around it. */
.rbx {
  display: inline-block;
  flex: none;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.08em;
  background: currentColor;
  -webkit-mask: url("/assets/robux.svg") center / contain no-repeat;
  mask: url("/assets/robux.svg") center / contain no-repeat;
}

/* Status board: one card per group. An open group is a yellow price sign; a closed one
   sits back on dark with the road-works stripe, its figures still readable. */

.board-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section);
}

.board-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-bottom: var(--gap);
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: var(--gap);
  padding-top: var(--gap);
  border-top: var(--rule) solid var(--sign);
}

.group-card {
  --pad: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: var(--pad);
  background: var(--sign);
  color: var(--ink);
}

.group-card.is-off {
  padding-top: calc(var(--pad) + 0.5rem);
  background:
    repeating-linear-gradient(-45deg, var(--sign) 0 0.6rem, var(--ink) 0.6rem 1.2rem) top / 100% 0.5rem no-repeat,
    var(--ink-2);
  color: var(--paper);
  outline: 1px solid var(--ink-line);
}

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.group-name {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.25;
}

.group-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--ink);
  color: var(--sign);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step--1);
  line-height: 1.5;
}

/* The lamp: lit square when open, an empty frame when closed. */
.group-status::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  background: var(--sign);
}

.is-off .group-status {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--mute-on-ink);
}

.is-off .group-status::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--mute-on-ink);
}

.group-rate {
  display: grid;
  margin: 0;
}

.group-rate-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.15;
}

.group-rate-unit {
  font-family: var(--font-head);
  font-weight: 600;
}

.group-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: var(--rule) solid var(--ink);
}

.is-off .group-facts {
  border-top-color: var(--ink-line);
}

.group-facts div {
  display: grid;
}

.group-facts dt {
  font-size: var(--step--1);
  font-weight: 600;
}

.group-facts dd {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.4;
}

.is-off .group-rate-unit,
.is-off .group-facts dt,
.group-note {
  color: var(--mute-on-ink);
}

.group-note {
  margin: 0;
  font-size: var(--step--1);
}

.group-link {
  justify-self: start;
  color: inherit;
  font-weight: 600;
  font-size: var(--step--1);
  text-underline-offset: 0.2em;
}

/* Reading sections */

.band {
  padding-block: var(--section);
}

.band + .band {
  border-top: var(--rule) solid var(--ink);
}

.band-head {
  display: grid;
  gap: 0.5rem;
  max-width: var(--measure);
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--paper-line);
}

.steps li:first-child {
  border-top: var(--rule) solid var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.2;
}

.steps h3 {
  margin-bottom: 0.25rem;
}

.steps p {
  grid-column: 2;
  color: var(--mute);
  max-width: var(--measure);
}

.faq {
  display: grid;
  border-top: var(--rule) solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--paper-line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.6rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: var(--rule) solid var(--ink);
  font-family: var(--font-mono);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--ink);
  color: var(--sign);
}

.faq details > div {
  padding: 0 0 1.25rem;
  max-width: var(--measure);
  color: var(--mute);
}

.faq details > div > * + * {
  margin-top: 0.75rem;
}

.contact {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 48rem) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}

.deflist {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.deflist div {
  display: grid;
  gap: 0.1rem;
}

.deflist dt {
  font-size: var(--step--1);
  color: var(--mute);
}

.deflist dd {
  margin: 0;
  font-weight: 500;
}

/* Footer */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-size: var(--step--1);
}

.foot-in {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .foot-in {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Small pages: sign-in, order, account, policy */

.page {
  padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  min-height: 60vh;
}

.page-narrow {
  max-width: 30rem;
  margin-inline: auto;
}

.page-mid {
  max-width: 46rem;
  margin-inline: auto;
}

.page-title {
  display: grid;
  gap: 0.4rem;
  margin-bottom: var(--gap);
}

.or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--mute);
  font-size: var(--step--1);
}

.or::before,
.or::after {
  content: "";
  border-top: 1px solid var(--paper-line);
}

.tabs {
  display: flex;
  border-bottom: var(--rule) solid var(--ink);
}

.tabs button {
  flex: 1;
  min-height: 3rem;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--mute);
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--sign);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: var(--step-1);
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin: 0;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* Order page */

/* The page heading is the order number line: a heading for navigation, set like the small label it was. */
.order-head {
  font-family: var(--font-body);
  font-weight: 400;
}

.status {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: var(--rule) solid var(--ink);
  background: var(--sign);
}

.status-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.25;
}

.status.is-done {
  background: var(--ink);
  color: var(--paper);
}

.status.is-done .status-word {
  color: var(--sign);
}

.status.is-closed {
  background: var(--paper-2);
  border-style: dashed;
}

.pay {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .pay {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
  }
}

.qr {
  display: block;
  width: 100%;
  max-width: 17rem;
  margin-inline: auto;
  padding: 0.6rem;
  background: #fff;
  border: var(--rule) solid var(--ink);
}

.amount {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.15;
}

.clock {
  font-family: var(--font-mono);
  font-weight: 500;
}

.drop {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 1rem;
  border: var(--rule) dashed var(--ink);
  background: #fff;
}

.drop input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: var(--step--1);
}

.drop input[type="file"]::file-selector-button {
  min-height: 2.75rem;
  margin-right: 0.75rem;
  padding: 0 1rem;
  border: var(--rule) solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.timeline li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--paper-line);
  font-size: var(--step--1);
}

.timeline time {
  font-family: var(--font-mono);
  color: var(--mute);
}

@media (max-width: 30rem) {
  .timeline li {
    grid-template-columns: 1fr;
  }
}

.list {
  display: grid;
  border-top: var(--rule) solid var(--ink);
}

/* The order number is what customers quote to the admin: the status wraps, the number never does. */
.list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--paper-line);
  text-decoration: none;
}

.list a:hover .list-no {
  text-decoration: underline;
}

.list-no {
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}

.list-state {
  font-family: var(--font-head);
  font-weight: 600;
  text-align: right;
}

.list-sub {
  grid-column: 1 / -1;
  font-size: var(--step--1);
  color: var(--mute);
}

.empty {
  padding: 1.5rem 1rem;
  border: var(--rule) dashed var(--paper-line);
  color: var(--mute);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.on-ink .empty {
  color: var(--mute-on-ink);
}

.loading {
  color: var(--mute);
  font-size: var(--step--1);
}

dialog.slip {
  padding: 0;
  width: min(28rem, calc(100vw - 2rem));
  color: var(--ink);
}

dialog::backdrop {
  background: rgb(20 20 16 / 0.72);
}

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

  .btn {
    transition: none;
  }
}

@media print {
  .bar,
  .foot,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
