/* The customer pages on go.crewlantern.com (docs/public-spec.md §1.2): the Lantern tokens of docs/design-system.md §2,
   light and dark by prefers-color-scheme, readable at the largest text size. Manrope Bold for titles (design-system.md
   §3), served from here beside its licence (Ruling P2-T4b; the CSP's font-src 'self'), and system fonts for the rest.
   No fonts or images from elsewhere. Bump the 5 in the file name when this changes (M5 plan 2 choice 37). */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/manrope-bold.1.ttf") format("truetype");
}
:root {
  --background: #F5F4F1; --surface: #FFFFFF; --surface-muted: #ECEAE6; --divider: #E4E2DD; --field-border: #8A867F;
  --text: #1C1B19; --text-secondary: #5F5C56; --accent: #F2A516; --on-accent: #1C1B19; --accent-text: #8F5300;
  --danger: #B3261E; --band: #1A1813; --on-band: #F4EFE6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #121110; --surface: #1C1B19; --surface-muted: #2E2C29; --divider: #34322E; --field-border: #77736C;
    --text: #F2F0EC; --text-secondary: #B3AFA8; --accent: #F5B041; --on-accent: #1C1B19; --accent-text: #F5B041;
    --danger: #FF8A80; --band: #24201A; --on-band: #F2F0EC;
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.band { background: var(--band); color: var(--on-band); padding: 1rem 1rem 1.25rem; min-height: 3.5rem; }
.band .business { margin: 0 auto; max-width: 40rem; font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }
main { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; overflow-wrap: anywhere; }
h1, h2, .band .business { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 700; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.intro, .help, .optional, .contact, footer { color: var(--text-secondary); }
.field, .contact, .section { margin: 0 0 1.25rem; padding: 0; border: 0; }
fieldset.section, fieldset.contact { border-top: 1px solid var(--divider); padding-top: 1rem; }
legend, label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.check label, .rating label, .duration label { display: inline; font-weight: 400; margin-right: 0.75rem; }
input, textarea, select { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-radius: 0.75rem; padding: 0.75rem; }
input[type="checkbox"], input[type="radio"] { width: auto; margin-right: 0.25rem; }
/* Safari on iOS gives a date or time field a width of its own that runs past the screen's edge (M5 walk, 3 November 2026). */
input[type="date"], input[type="time"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; min-height: 3rem; }
input::-webkit-date-and-time-value { text-align: start; }
.duration input { width: 6rem; display: inline-block; margin-right: 0.5rem; }
input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.error { color: var(--danger); font-weight: 600; margin: 0.25rem 0 0; }
.problems { border: 2px solid var(--danger); border-radius: 0.75rem; padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.notice { background: var(--surface-muted); border-radius: 0.75rem; padding: 0.75rem 1rem; }
.send, .button { display: inline-block; min-height: 3rem; padding: 0.75rem 1.5rem; border: 0; border-radius: 1.5rem; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.send[disabled] { opacity: 0.5; cursor: default; }
.photos { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.photos li { padding: 0.25rem 0; display: flex; align-items: center; gap: 0.75rem; }
.photos canvas { width: auto; height: 4rem; max-width: 6rem; object-fit: contain; border-radius: 0.5rem; flex: none; }
.photos li.failed { color: var(--danger); }
.js input[data-photos] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.no-js .photo-add { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.steps { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0; }
.step { flex: 1; padding: 0.5rem; border-radius: 0.5rem; background: var(--surface-muted); text-align: center; font-size: 0.875rem; }
.step.passed { background: var(--divider); }
.step.current { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.values dt { font-weight: 600; margin-top: 0.75rem; }
.values dd { margin: 0; }
.updates ul { list-style: none; padding: 0; }
.updates li { padding: 0.25rem 0; border-bottom: 1px solid var(--divider); }
footer { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 2rem; font-size: 0.875rem; border-top: 1px solid var(--divider); }
footer a { color: var(--accent-text); }
/* The status page's phone, which Safari turns into its own link: the page's link colour, not the browser's blue (M5 SE pass F6). */
.contact a { color: var(--accent-text); }
.languages { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.languages a[aria-current="true"] { font-weight: 700; color: var(--text); }
.no-js .send { display: none; }
/* The booking pages (M6 plan 8, founder list K8): their lists of choices without bullets, the services, members and
   times spaced as buttons, the week's start times side by side, and their links in the page's link colour. */
.services, .members, .slots { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.services li, .members li { margin: 0 0 0.75rem; }
.services li p { margin: 0.25rem 0 0; color: var(--text-secondary); }
.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slots li { display: flex; align-items: center; position: relative; }
/* A week's start times (design-system.md §20.11, QA 14 November 2026): buttons of 48 by 88 CSS pixels, `surface` with a
   `fieldBorder` outline (a control's boundary, 3:1 on surface and background), amber only when picked. Step 3's links,
   the taken form's buttons and the reschedule page's radio labels share the look; the radio itself stays, unseen, for
   keyboards and screen readers, and its focus shows on its label. */
.slots .button, .slots button, .slots input[type="radio"] + label {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; min-width: 5.5rem; margin: 0;
  padding: 0.5rem 1rem; background: var(--surface); color: var(--text); border: 1px solid var(--field-border);
  border-radius: 1.5rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.slots input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.slots input[type="radio"]:checked + label { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.slots input[type="radio"]:focus-visible + label { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.choices { margin: 0 0 1.25rem; }
.choices dt { font-weight: 600; margin-top: 0.5rem; }
.choices dd { margin: 0; }
.choices a { color: var(--accent-text); }
.weeks a { color: var(--accent-text); }
/* Every other link in a page's content, as the notice's "Show that week" and "Add to calendar" on the done page and
   the booking view, in the page's link colour, not the browser's blue (QA 14 November 2026). */
main a:not(.button) { color: var(--accent-text); }
