:root {
  --red: #b5361e;
  --red-dark: #8a2814;
  --gold: #f2b134;
  --cream: #fff8ee;
  --ink: #2b211c;
  --muted: #6d5f57;
  --line: #ead9c6;
  --ok: #2f7d4a;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

.hero {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 28px 18px 22px;
  border-bottom: 6px solid var(--gold);
}
.hero h1 { margin: 2px 0 6px; font-size: 1.9rem; line-height: 1.15; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; opacity: .85; }
.tagline { margin: 0 0 14px; opacity: .95; }
.facts { margin: 0; display: grid; gap: 6px; }
.facts div { display: flex; gap: 10px; }
.facts dt { width: 64px; flex: none; font-weight: 600; opacity: .8; font-size: .9rem; }
.facts dd { margin: 0; }

main { max-width: 640px; margin: 0 auto; padding: 14px 12px 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { margin: 0 0 10px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .85rem; }
.hint { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }

label { display: block; font-weight: 600; font-size: .95rem; margin-top: 10px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 12px;
  font: inherit; font-weight: 400; font-size: 16px; /* 16px stops iOS zoom on focus */
  border: 1px solid #cdbba8; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(242, 177, 52, .5); border-color: var(--gold); }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; text-align: center; padding: 12px 4px; border: 2px solid var(--line); border-radius: 10px; font-weight: 600; }
.choice input:checked + span { border-color: var(--red); background: #fdeee9; color: var(--red-dark); }
.choice input:focus-visible + span { outline: 3px solid rgba(242, 177, 52, .6); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 8px; }
.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; }
.consent .check span { font-size: .9rem; }

.group-title { margin: 14px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red-dark); }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.item-text { flex: 1; min-width: 0; }
.item-name { font-weight: 600; }
.item-desc { color: var(--muted); font-size: .88rem; }
.item-need { font-size: .85rem; color: var(--red-dark); font-weight: 600; }
.item.full .item-need { color: var(--ok); }
.item.just-filled { background: #fff3d6; }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #cdbba8; background: #fff; font-size: 1.3rem; line-height: 1; color: var(--ink); }
.stepper button:disabled { opacity: .35; }
.stepper output { width: 28px; text-align: center; font-weight: 700; font-size: 1.05rem; }

.field-error { color: #b00020; font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.notice { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 10px; padding: 12px; }
.notice.error { border-left-color: #b00020; }

button.primary, button.secondary {
  width: 100%; padding: 16px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1.05rem; border: 0;
}
button.primary { background: var(--red); color: #fff; margin-bottom: 8px; }
button.primary:disabled { opacity: .6; }
button.secondary { background: #fff; border: 2px solid var(--red); color: var(--red); margin-top: 14px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pay-option { border: 1px dashed #cdbba8; border-radius: 10px; padding: 12px; margin-top: 10px; }
.pay-option h4 { margin: 0 0 8px; }
.pay-option img { display: block; width: 100%; max-width: 320px; margin: 0 auto; border-radius: 8px; }
.placeholder { color: var(--muted); font-style: italic; margin: 0; }
.instructions { white-space: pre-wrap; margin: 0; }

footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 10px 16px 28px; }

/* Committee view */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tile .num { font-size: 1.6rem; font-weight: 800; }
.tile .label { color: var(--muted); font-size: .85rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 7px 4px; border-top: 1px solid var(--line); }
td.n, th.n { text-align: right; }
tr.short td { color: var(--red-dark); font-weight: 600; }
.actions { display: flex; gap: 10px; margin-bottom: 14px; }
.actions a, .actions button { flex: 1; text-align: center; padding: 12px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; }
.actions a { background: var(--red); color: #fff; }
.actions button { background: #fff; border: 2px solid var(--red); color: var(--red); }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
#dish-card { margin-top: 14px; }
