/* CousCous Zmittag – public pages (group page with the order form, status, decision, text and error pages).
   Uses only the tokens and components of base.css; no new colours, no shadows, no gradients, no cards.
   Used almost only on phones: one column, everything reachable with one thumb, 320 px must work. */

/* shell */
.skip-link { position: absolute; left: var(--s-3); top: -6rem; z-index: 10; padding: 0.6em 1.1em;
  background: var(--charcoal); color: var(--paper); border-radius: var(--pill); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: var(--s-2); color: var(--paper); }
main:focus { outline: none; }
.site-header { padding-block: var(--s-3) var(--s-2); }
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { width: 6.5rem; }
.site-footer { margin-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
[hidden] { display: none !important; }

/* page headings: the date is the h1, it must fit a phone */
main h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.25rem); margin-bottom: var(--s-2); overflow-wrap: anywhere;
  hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 22.5rem) { main h1 { font-size: 1.75rem; } }
.form-h2, main h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
.lead { font-size: var(--step-1); line-height: 1.45; margin-bottom: var(--s-2); }
.group-line { font-size: var(--step-0); font-weight: 500; }
.deadline { font-weight: 500; margin-bottom: var(--s-3); }
.outcome { font-size: var(--step-1); font-weight: 500; line-height: 1.45; }
.group-page, .status-page, .simple-page, .intro, .text-page, .error-page { padding-block: var(--s-3) var(--s-6); }
.group-page > .notice, .status-page > .notice { margin-bottom: var(--s-4); }

/* the counter: one circle per paid order */
.counter { display: grid; gap: var(--s-2); margin: var(--s-4) 0 var(--s-5); padding: var(--s-3) 0;
  border-block: 1px solid var(--rule); }
.counter-dots { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.cdot { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-block; border: 2.5px solid var(--orange); }
.cdot--on, .cdot--extra { background: var(--orange); }
.cdot--off { background: var(--paper); }
.cdot-more { font-weight: 700; color: var(--orange-deep); }
.counter-text { margin: 0; font-weight: 500; font-size: var(--step-1); line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) { .cdot--on { transition: background-color 200ms ease-out; } }

/* order form: four mains as radio cards */
.order-form { margin-top: var(--s-4); }
.order-form fieldset { margin-bottom: var(--s-5); }
.order-form legend { padding: 0; margin-bottom: var(--s-2); }
.order-form legend .form-h2 { margin: 0; }
.choices { display: grid; gap: var(--s-2); }
.choices > legend + * { margin-top: 0; }
.choice { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; cursor: pointer;
  padding: var(--s-3); border: 2px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.choice input { width: 1.375rem; height: 1.375rem; margin: 0.15rem 0 0; accent-color: var(--orange-deep); }
.choice:hover { border-color: var(--field); }
.choice:has(input:checked) { border-color: var(--orange-deep); background: var(--butter); }
.choice:has(input:focus-visible) { outline: 3px solid var(--orange-deep); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.choice-body { display: grid; gap: 0.15rem; min-width: 0; }
.choice-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 var(--s-2); }
.choice-label { font-weight: 700; }
.choice-price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice-title { font-weight: 500; overflow-wrap: anywhere; }
.choice-desc { color: var(--muted); font-size: var(--step--1); line-height: 1.45; overflow-wrap: anywhere; }
.choices[data-invalid="true"] .choice { border-color: var(--danger); }
.choices .error, .addons .error { color: var(--danger); font-size: var(--step--1); font-weight: 500; margin: 0 0 var(--s-2); }

/* add-ons */
.addons legend { font-weight: 700; font-size: var(--step-1); }
.addons .hint { margin: 0 0 var(--s-2); font-size: var(--step--1); color: var(--muted); }
.addon { align-items: center; padding-block: 0.25rem; margin-bottom: 0; }
.addon label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-2); min-height: 2.75rem;
  align-items: center; cursor: pointer; }
.addon .check input, .addon input { margin-top: 0; }
.addon-price { font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }
.addon input:disabled + label { color: var(--muted); cursor: not-allowed; }
.addons[data-invalid="true"] .addon label { color: var(--danger); }

/* names side by side where there is room */
.name-row { display: grid; gap: 0 var(--s-3); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 22rem) { .name-row { grid-template-columns: 1fr 1fr; } }
.name-row .field { min-width: 0; align-content: start; }
.order-form .field { margin-bottom: var(--s-3); }
.order-form .field--check { margin-bottom: var(--s-1); }
.field--check .error { margin: 0 0 var(--s-2) 2.1rem; }
.field--check .check label a { overflow-wrap: anywhere; }
.order-form .field--check:last-of-type { margin-bottom: var(--s-4); }

/* honeypot: off-screen, out of the tab order */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* total and pay */
.total { font-size: var(--step-1); margin: var(--s-4) 0 var(--s-2); font-variant-numeric: tabular-nums; }
.submit-row { margin-bottom: var(--s-2); }
.btn--pay { width: 100%; font-size: var(--step-1); padding-block: 0.9em; }
@media (min-width: 40rem) { .btn--pay { width: auto; min-width: 18rem; } }
.pay-note { margin-bottom: 0; }

/* error summary */
.form-errors h2 { font-size: var(--step-0); }
.form-errors ul { margin: 0; }
.form-errors:focus { outline: none; }
.form-errors:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 2px; }

/* reminder sign-up */
.remind { margin-top: var(--s-5); }
.remind .field { max-width: 26rem; }

/* the week's menu (mint) */
.menu-week { padding-block: var(--s-5) var(--s-6); }
.menu-week h2 { margin-bottom: var(--s-4); }
.week { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.week > .day { margin: 0; padding: var(--s-3) 0 var(--s-3); border-top: 2px solid var(--paper); }
.week > .day + .day { margin-top: 0; }
.day h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; font-size: var(--step-0); margin-bottom: 0.35rem; }
.day-date { font-weight: 400; }
.day.is-delivery { border-left: 6px solid var(--yellow); padding-left: var(--s-2); }
.day.is-delivery h3 .chip { align-self: center; }
.dishes { list-style: none; padding: 0; margin: 0; }
.dishes li { margin: 0; overflow-wrap: anywhere; }
.dishes li + li { margin-top: 0.35rem; }
.dish-title { font-weight: 500; }
.dish-desc { display: block; font-size: var(--step--1); }
.chip--day { background: var(--yellow); }
.chip--veg { background: var(--mint-soft); padding: 0.1em 0.5em; margin-left: 0.25rem; vertical-align: 0.1em; }
.menu-week .muted { color: var(--charcoal); opacity: 0.8; margin: 0; }
.bistro { margin-top: var(--s-4); }
.bistro-links { margin: 0; }
.on-mint .btn--quiet { border-color: var(--charcoal); }

/* status page */
.waiting { display: flex; gap: 0.75rem; align-items: center; font-size: var(--step-1); line-height: 1.4; }
.spinner { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 3px solid var(--rule);
  border-top-color: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: spin 900ms linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.redirect-note { font-weight: 500; }
.status-page .facts { margin-top: var(--s-4); }
.status-page .line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-2); }
.status-page .line-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-page .row { margin-top: var(--s-4); }
.status-page .email { overflow-wrap: anywhere; }
.en-guete { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--orange); margin-top: var(--s-5); }

/* decision page */
.totals { list-style: none; padding: 0; }
.totals li { margin: 0; padding-block: 0.3rem; border-bottom: 1px solid var(--rule); }
.totals .count { font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; min-width: 2.5rem; }
.decide { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.decide .btn { width: 100%; }
.decide p { margin: var(--s-1) 0 0; }
@media (min-width: 36rem) { .decide { grid-template-columns: 1fr 1fr; align-items: start; } }
.decided { font-size: var(--step-1); font-weight: 500; line-height: 1.45; }
.simple-page h2 { margin-top: var(--s-5); }

/* start page */
.intro .lead { max-width: 36rem; }

/* terms and privacy */
.text-page h1 { font-size: var(--step-2); }
.text-page h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); line-height: 1.25;
  letter-spacing: 0; margin: var(--s-5) 0 var(--s-1); color: inherit; text-wrap: wrap; }
.text-page h2:first-of-type { margin-top: var(--s-4); }

/* error pages */
.error-page { min-height: 40vh; }
.error-page h1, .simple-page h1 { font-size: var(--step-2); }

/* touch targets: links that stand alone are at least 44 px high */
.row .btn, .remind .btn { min-height: 2.75rem; }
@media (pointer: coarse), (max-width: 40rem) {
  .facts dd a, .simple-page a:not(.btn), .error-page a, .intro a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
