/* =========================================================================
   Camp Notice — the whole design system, hand-written, in one file.
   =========================================================================

   ONE stylesheet, TWO consumers:

     • the React SPA          — imported by src/client/main.tsx, so Vite
                                bundles and content-hashes it;
     • the edge-rendered HTML — /, /camps, /c, /my are strings built in the
                                Worker, which serves this same file verbatim
                                (src/server/routes/styles.ts).

   That is the point. The two halves of the product used to be styled by two
   separate Tailwind builds with two theme files, and they drifted: the
   marketing site was a full-width page with a header and a footer, while
   /camps — the acquisition surface — was a 640px card floating on a beige
   field with no navigation at all. One file makes that impossible.

   HOW IT IS ORGANIZED
     1  Tokens          every colour, size, radius and shadow, named once
     2  Reset + base    elements as they should look before any class
     3  Layout          wrap / section / stack / cluster / grid
     4  Typography      the type scale as classes
     5  Site chrome     header, nav, footer, breadcrumbs, skip link
     6  Buttons
     7  Forms
     8  Surfaces        cards, panels, rows, tables, empty states
     9  Status          pills, alerts, dots, progress
    10  Pickers         choice cards, chips, steppers — the wizard's vocabulary
    11  Photography     photo frames, cards, tiles and bands
    12  Marketing       hero, steps, FAQ, price card, CTA band
    13  Directory       the /camps browse pages
    14  Account         the signed-in parent pages
    15  Auth
    16  Console         staff-only
    17  Utilities       the short list, deliberately

   RULES OF THE ROAD
     • Nothing here uses a hard-coded colour. If a value isn't in §1, it
       doesn't belong in a rule.
     • Sizes are rem so a reader's own font size scales the whole interface.
     • Type is the reader's system font — nothing to download, no flash of a
       swapped face, native on every platform. The only web font is the icon
       subset, and it is ours, self-hosted.
     • Every interactive element gets the same focus ring (§2), once.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Icon font — Google Material Symbols (Rounded), self-hosted and subset to
   only the glyphs this product renders (~20 KB, no third-party request, so an
   icon can never fall back to the literal word "notifications" on a slow or
   filtered network). Regenerate after adding an <Icon name="…">: see
   docs/icon-font.md.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url('/fonts/material-symbols-rounded-7.woff2') format('woff2');
}

/* =========================================================================
   1 · TOKENS
   ========================================================================= */

:root {
  /* ---- Colour ----------------------------------------------------------
     An earth-toned set: warm paper, ink that is brown-black rather than
     grey, one green that means "watching / go", one amber that means "act
     now", one clay that means "stop". Contrast ratios are noted where a
     value is load-bearing; anything carrying body text clears WCAG AA. */

  /* Surfaces, lightest to warmest */
  --paper: #faf9f5; /* the page */
  --surface: #ffffff; /* cards, inputs, anything raised off the page */
  --surface-sunken: #f7f4eb; /* alternating bands, quiet fills */
  --surface-muted: #f2eee2; /* tags, chips, table zebra */
  --surface-shade: #eae4d6; /* the deepest warm neutral we use */

  /* Ink, darkest to faintest */
  --ink: #2b2721; /* headings and anything that must be read first */
  --ink-2: #4f4a3c; /* body copy — 8.7:1 on --surface */
  --ink-3: #6b6555; /* secondary copy — 5.4:1 on --surface */
  --ink-4: #857e6b; /* labels, timestamps — 4.6:1, never body-sized */
  --ink-on-dark: #ffffff;

  /* Hairlines */
  --line: #e5dfd0; /* the default border */
  --line-soft: #efe9db; /* dividers inside a card */
  --line-strong: #d6cfba; /* input borders, anything you must see */

  /* Brand green.
     --brand is the identity colour and is used for FILLS and MARKS only:
     at 3.8:1 on white it fails AA for text. Anything that carries words —
     a link, a CTA label, an active tab — uses --brand-ink (5.3:1) or
     darker. This one distinction is why the old palette had six greens. */
  --brand: #12946c;
  --brand-ink: #0d7a58;
  --brand-ink-hover: #0a6349;
  --brand-edge: #9bd1bd; /* hover borders on pickable things */
  --brand-line: #cfe8dd;
  --brand-tint: #e6f4ee; /* selected background, quiet badges */
  --brand-wash: #f4faf7; /* row hover */

  /* Amber — the "there is a seat, go now" colour. Dark ink on amber, never
     white: amber with white text is 1.9:1 and unreadable. */
  --accent: #d9a03a;
  --accent-hover: #c08d2c;
  --accent-ink: #8a5a12; /* amber as TEXT, on white or --accent-tint */
  --accent-tint: #fdf6e8;
  --accent-line: #f1dfbd;

  /* Clay — errors, refusals, anything full or shut. */
  --danger: #a84d24;
  --danger-ink: #8f4220;
  --danger-tint: #f8ece3;
  --danger-line: #e7cdb9;

  /* Info — the one cool hue, used only in the staff console. */
  --info-ink: #2c5f9e;
  --info-tint: #e8f0fb;

  /* The dark ground the staff console sits on, so there is never a moment of
     doubt about whose data is on screen. */
  --console: #26221c;
  --console-raised: #322d25;

  /* ---- Type ------------------------------------------------------------
     One system stack. Sizes are rem, so a reader who runs their browser at
     20px gets a 20px-based interface, not a 15px one with big margins. */
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-17: 1.0625rem;
  --fs-19: 1.1875rem;
  --fs-21: 1.3125rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  /* Fluid, so a headline never has to be re-tuned per breakpoint. */
  --fs-h2: clamp(1.5rem, 1.15rem + 1.6vw, 2.125rem);
  --fs-h1: clamp(1.875rem, 1.35rem + 2.4vw, 2.625rem);
  --fs-display: clamp(2.125rem, 1.3rem + 3.7vw, 3.5rem);

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.62;

  /* Big type wants negative tracking; small type wants none. */
  --track-display: -0.03em;
  --track-heading: -0.02em;
  --track-eyebrow: 0.1em;

  /* ---- Space -----------------------------------------------------------
     A 4px-based scale. Section rhythm is fluid so a phone doesn't inherit a
     desktop's 76px gutters. */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s7: 1.75rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --section-y: clamp(2.75rem, 1.5rem + 5vw, 4.75rem);

  /* ---- Measure ---------------------------------------------------------
     One rail for the whole site. Every band — header, hero, directory list,
     footer — puts its content inside --wrap, so the left edge of a heading
     never moves as you scroll. */
  --wrap: 71.25rem; /* 1140px */
  --wrap-narrow: 47.5rem; /* 760px — policy pages, /my, one camp */
  --wrap-flow: 52.5rem; /* 840px — a wizard question */
  --gutter: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  --prose: 68ch;
  --lede: 54ch;

  /* ---- Shape -----------------------------------------------------------  */
  --r-sm: 0.5rem;
  --r: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.25rem;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(43 39 33 / 0.06), 0 1px 3px rgb(43 39 33 / 0.05);
  --shadow-md: 0 4px 14px rgb(43 39 33 / 0.07);
  --shadow-lg: 0 14px 38px rgb(43 39 33 / 0.1);

  --ring: 0 0 0 3px rgb(18 148 108 / 0.35);
  --speed: 150ms;

  color-scheme: light;
}

/* =========================================================================
   2 · RESET + BASE
   ========================================================================= */

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

* {
  margin: 0;
}

html {
  /* Reserve the scrollbar on every page, so moving from a short page to a
     scrolling one doesn't shift the layout sideways. */
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

/* The page is a column: header, a main that grows, footer at the bottom —
   even on a page with two lines of content. The SPA nests its own .frame
   inside #root, so both are told to grow. */
body {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--fs-15);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > main {
  flex: 1;
}

#root {
  display: flex;
  flex: 1;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-heading);
  /* Headings wrap into even lines instead of orphaning a word. */
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

b,
strong {
  font-weight: 700;
  color: var(--ink);
}

small {
  font-size: var(--fs-13);
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-ink-hover);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  padding-inline-start: 1.25em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--s6);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* Anything clickable reads as clickable, once, rather than a cursor rule
   hung off every control by hand. */
button,
select,
summary,
[role='button'] {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: default;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* One focus ring for the whole product. Keyboard users get it everywhere;
   a mouse press never shows it. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

::selection {
  background: var(--brand-tint);
  color: var(--ink);
}

/* Someone who has asked their OS for less motion gets none of ours. Ratios
   stay non-zero so transitionend still fires. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Icons --------------------------------------------------------------
   A Material Symbol is a ligature: the element's text IS the icon name. Size
   it with --icon-size (or the size classes) — never with width/height, which
   a font ignores. Always aria-hidden: the label beside it says the word. */
.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: var(--icon-size, 1.25rem);
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  font-variation-settings: 'opsz' 24, 'wght' 450;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.icon.xs { --icon-size: 1rem; }
.icon.sm { --icon-size: 1.125rem; }
.icon.lg { --icon-size: 1.5rem; }
.icon.xl { --icon-size: 2rem; }
.icon.filled { font-variation-settings: 'FILL' 1, 'opsz' 24, 'wght' 450; }

/* =========================================================================
   3 · LAYOUT
   ========================================================================= */

/* The site's one rail. */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap.narrow {
  max-width: var(--wrap-narrow);
}

/* A full-bleed horizontal band. `.band` tints it; `.edge` rules it off. */
.section {
  padding-block: var(--section-y);
}

.section.tight {
  padding-block: clamp(2rem, 1.25rem + 3vw, 3.25rem);
}

.band {
  background: var(--surface-sunken);
}

.band-white {
  background: var(--surface);
}

.edge-top {
  border-top: 1px solid var(--line-soft);
}

.edge-bottom {
  border-bottom: 1px solid var(--line-soft);
}

/* The page frame every screen sits in: header, growing main, footer at the
   bottom even when the page is short. */
.frame {
  display: flex;
  min-height: 100dvh;
  flex: 1;
  flex-direction: column;
}

.frame > main {
  flex: 1;
}

/* ---- Flow ---------------------------------------------------------------
   Vertical rhythm as a container property rather than a margin on every
   child. Override the gap for one child with `style="--flow: …"`, which is
   the only spacing exception worth having. */
.flow > * + * {
  margin-block-start: var(--flow, var(--s4));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, var(--s4));
}

/* A row that wraps rather than overflows — the shape of nearly every toolbar,
   button pair and meta line in the product. */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--s3));
}

.cluster.between {
  justify-content: space-between;
}

.cluster.end {
  justify-content: flex-end;
}

.cluster.top {
  align-items: flex-start;
}

.push {
  margin-inline-start: auto;
}

/* Responsive grids that need no breakpoint of their own: cards shrink to the
   minimum, then the count drops by one. */
.grid {
  display: grid;
  gap: var(--gap, var(--s5));
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); }

/* Copy on the left, a card on the right — the sign-up and result screens.
   One column until there is room for two. */
.split {
  display: grid;
  gap: var(--s10) var(--s12);
  align-items: start;
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) 21rem;
  }
}

/* A wizard question's reading column. It sits INSIDE .wrap rather than being
   its own centred box: a question is narrower than the site, but it starts on
   the site's left edge — the one the wordmark above it starts on. */
.flow-col {
  width: 100%;
  max-width: var(--wrap-flow);
}

/* =========================================================================
   4 · TYPOGRAPHY
   ========================================================================= */

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
}

.h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: var(--track-heading);
}

.h3 {
  font-size: var(--fs-19);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-snug);
}

.h4 {
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-snug);
}

.lede {
  max-width: var(--lede);
  font-size: var(--fs-17);
  line-height: var(--lh-relaxed);
  color: var(--ink-2);
}

.eyebrow {
  font-size: var(--fs-12);
  font-weight: 800;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-4);
}

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

.fine {
  font-size: var(--fs-13);
  line-height: var(--lh-snug);
  color: var(--ink-3);
}

.mono {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

/* Long-form policy copy: one class, applied to the container, so the pages
   carry no per-element styling at all. */
.prose {
  max-width: var(--prose);
  color: var(--ink-2);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
}

.prose > * + * { margin-block-start: var(--s4); }
.prose h2 { font-size: var(--fs-21); margin-block-start: var(--s10); }
.prose h2:first-child { margin-block-start: 0; }
.prose h3 { font-size: var(--fs-17); margin-block-start: var(--s7); }
.prose ul,
.prose ol { display: flex; flex-direction: column; gap: var(--s2); }
.prose li::marker { color: var(--ink-4); }
.prose a { font-weight: 600; }

/* =========================================================================
   5 · SITE CHROME
   ========================================================================= */

/* First thing a keyboard user reaches on any page: one Tab, one Enter, and
   they are past the header and the whole nav. */
.skip-link {
  position: absolute;
  inset-inline-start: var(--s4);
  inset-block-start: var(--s3);
  z-index: 100;
  transform: translateY(-300%);
  border-radius: var(--r);
  background: var(--brand-ink);
  padding: var(--s2) var(--s4);
  color: var(--ink-on-dark);
  font-size: var(--fs-14);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--speed);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--ink-on-dark);
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
  padding-block: var(--s4);
}

/* The wordmark — the way home from every screen. */
.wordmark {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--s2);
  color: var(--ink);
  font-weight: 800;
  font-size: var(--fs-17);
  letter-spacing: var(--track-heading);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark svg {
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-inline-start: auto;
  font-size: var(--fs-14);
  font-weight: 700;
}

@media (min-width: 40rem) {
  .site-nav {
    gap: var(--s7);
    font-size: var(--fs-15);
  }
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-ink);
}

.site-nav a[aria-current='page'] {
  color: var(--brand-ink);
}

.site-nav .cta {
  color: var(--brand-ink);
}

/* ---- The wizard's progress ---------------------------------------------
   A breadcrumb of resolved answers, with a rule under the whole bar that
   fills left to right. */
.crumb-trail {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--s2);
  margin-inline-start: auto;
  font-size: var(--fs-14);
  font-weight: 700;
}

.crumb-trail .sep {
  color: var(--ink-4);
}

.crumb {
  display: block;
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-4);
}

.crumb.done {
  color: var(--brand-ink);
}

@media (max-width: 47.99rem) {
  .crumb-trail {
    display: none;
  }
}

.progress-rule {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 3px;
  background: var(--line-soft);
}

.progress-rule > span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 500ms ease-out;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  padding-block: var(--s10);
  font-size: var(--fs-14);
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s10) var(--s16);
}

.footer-brand {
  flex: 2 1 15rem;
  min-width: 15rem;
  max-width: 24rem;
}

.footer-brand p {
  margin-block-start: var(--s3);
  line-height: var(--lh-relaxed);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s8) var(--s16);
}

@media (min-width: 40rem) {
  .footer-cols {
    margin-inline-start: auto;
  }
}

.footer-col {
  display: flex;
  min-width: 8rem;
  flex-direction: column;
  gap: var(--s2);
}

.footer-col strong {
  color: var(--ink);
  font-size: var(--fs-13);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-block-end: var(--s1);
}

.site-footer a {
  color: var(--ink-3);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* A one-line footer for screens mid-purchase. */
.site-footer.slim {
  padding-block: var(--s5);
}

.site-footer.slim .wrap {
  align-items: center;
  gap: var(--s2) var(--s6);
}

/* ---- Breadcrumbs -------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink-3);
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.crumbs .sep {
  color: var(--ink-4);
}

/* =========================================================================
   6 · BUTTONS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 0.6875rem var(--s5);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-15);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--speed), border-color var(--speed), color var(--speed);
}

/* A wide CTA is a flex row, and a flex row squashes an icon before it wraps
   the label — so the glyph never shrinks. */
.btn .icon {
  flex: none;
}

.btn.primary {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: var(--ink-on-dark);
}

.btn.primary:hover {
  background: var(--brand-ink-hover);
  border-color: var(--brand-ink-hover);
  color: var(--ink-on-dark);
}

/* The "there is a seat, go now" button. Dark ink on amber — never white. */
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn.accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--ink);
}

.btn.secondary {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}

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

.btn.ghost:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

/* A dashed outline says "add another" without competing with the primary
   action already on the screen. */
.btn.dashed {
  border: 1.5px dashed var(--line-strong);
  background: transparent;
  color: var(--brand-ink);
}

.btn.dashed:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.btn.lg {
  --icon-size: 1.25rem;
  padding: 0.9375rem var(--s7);
  border-radius: var(--r-lg);
  font-size: var(--fs-16);
  font-weight: 800;
}

.btn.sm {
  --icon-size: 1rem;
  padding: 0.375rem var(--s3);
  border-radius: var(--r-sm);
  font-size: var(--fs-13);
}

.btn.block {
  display: flex;
  width: 100%;
}

/* Disabled reads as "not yet", not as broken: the button keeps its shape and
   loses its colour, rather than going white-on-pale-grey. */
.btn:disabled,
.btn[aria-disabled='true'] {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--ink-4);
  cursor: default;
}

/* A text button that is really a link — "Back", "Show 6 more", "Resend". */
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand-ink);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.linkbtn:hover {
  color: var(--brand-ink-hover);
}

.linkbtn.quiet {
  color: var(--ink-3);
  text-decoration: none;
}

.linkbtn.quiet:hover {
  color: var(--ink);
}

/* An icon on its own, as a control: close, refresh, pause. */
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  transition: background-color var(--speed), color var(--speed);
}

.iconbtn:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

/* =========================================================================
   7 · FORMS
   ========================================================================= */

.field {
  display: block;
}

.field + .field {
  margin-block-start: var(--s4);
}

.label {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-block-end: var(--s2);
  color: var(--ink);
  font-size: var(--fs-13);
  font-weight: 700;
}

/* The wizard's louder label — small caps above a big field. */
.label.strong {
  --icon-size: 1rem;
  gap: var(--s2);
  color: var(--ink-3);
  font-size: var(--fs-12);
  font-weight: 800;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}

.label.strong .icon {
  color: var(--brand-ink);
}

.hint {
  margin-block-start: var(--s2);
  font-size: var(--fs-13);
  line-height: var(--lh-snug);
  color: var(--ink-3);
}

.input,
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='search'],
input[type='number'],
input[type='password'],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0.625rem var(--s3);
  color: var(--ink);
  font-size: var(--fs-15);
  transition: border-color var(--speed), box-shadow var(--speed);
}

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

/* Native select arrows sit flush to the edge and differ by browser. Draw our
   own, with room to breathe, and reserve the space so long options never run
   under it. */
select {
  appearance: none;
  padding-inline-end: var(--s8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6555' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

::placeholder {
  color: var(--ink-4);
  opacity: 1;
}

.input:disabled,
input:disabled {
  background: var(--surface-muted);
  color: var(--ink-3);
}

/* The wizard's field: bigger, warmer, one to a screen. */
.input.big {
  border-width: 1.5px;
  border-radius: var(--r-lg);
  padding: 0.9375rem var(--s4);
  font-size: var(--fs-17);
  font-weight: 600;
}

/* A one-time code. Letter-spacing hangs off the last digit, so the extra
   left padding is what actually centres the number. */
.input.code {
  padding-inline: 1.9rem var(--s5);
  text-align: center;
  font-size: var(--fs-24);
  font-weight: 700;
  letter-spacing: 0.6em;
}

.input.auto {
  width: auto;
}

/* A field with something inside it — an icon, a select, a unit. */
.input-shell {
  display: flex;
  align-items: center;
  gap: var(--s2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 0.875rem var(--s4);
  color: var(--ink-4);
}

.input-shell:focus-within {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.input-shell > input,
.input-shell > select {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  font-size: var(--fs-16);
  font-weight: 600;
}

.input-shell > select {
  width: auto;
  padding-inline-end: var(--s5);
  background-position: right 0 center;
}

.input-shell > input:focus,
.input-shell > select:focus {
  box-shadow: none;
}

/* The browser's own accent is the one colour on these pages that isn't the
   brand's. One rule turns every native control green. */
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--brand-ink);
  width: 1.0625rem;
  height: 1.0625rem;
  flex: none;
  margin: 0;
}

/* A checkbox with a sentence beside it, as one tappable block. */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--fs-14);
  line-height: var(--lh-snug);
}

.check input {
  margin-block-start: 0.15em;
}

.check.boxed {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  padding: var(--s3) var(--s4);
  transition: border-color var(--speed);
}

.check.boxed:hover {
  border-color: var(--brand-edge);
}

.check.boxed:has(:focus-visible) {
  border-color: var(--brand);
}

/* A switch. The label always says which state it is IN, never which state
   pressing it would produce. */
.toggle {
  position: relative;
  width: 3rem;
  height: 1.75rem;
  flex: none;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  padding: 0;
  transition: background-color 200ms;
}

.toggle::after {
  content: '';
  position: absolute;
  inset-block-start: 0.25rem;
  inset-inline-start: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: inset-inline-start 200ms;
}

.toggle[aria-pressed='true'],
.toggle.on {
  background: var(--brand);
}

.toggle[aria-pressed='true']::after,
.toggle.on::after {
  inset-inline-start: 1.5rem;
}

/* =========================================================================
   8 · SURFACES
   ========================================================================= */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.card.pad {
  padding: var(--s5);
}

@media (min-width: 40rem) {
  .card.pad {
    padding: var(--s6);
  }
}

.card.flush {
  overflow: hidden;
}

.card.soft {
  border-color: var(--line-soft);
}

.card.brand {
  border: 2px solid var(--brand);
}

.card.accent {
  border: 2px solid var(--accent);
  background: var(--accent-tint);
}

/* A quiet panel that explains something inside a flow. */
.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s4) var(--s5);
}

.panel.sunken {
  background: var(--surface-sunken);
  border-color: transparent;
}

/* ---- Rows ---------------------------------------------------------------
   A bordered list: sessions, watches, directory camps, fact tables. One
   shape, so a list of anything reads the same way. */
.rows {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s3);
  border-block-end: 1px solid var(--line-soft);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-14);
  text-decoration: none;
}

.rows > .row:last-child,
.row:last-child {
  border-block-end: 0;
}

a.row {
  color: inherit;
  transition: background-color var(--speed);
}

a.row:hover {
  background: var(--brand-wash);
}

.row .grow {
  min-width: 9rem;
  flex: 1;
}

/* A key/value line — "Ages 6–12", "Founded 1948". */
.row.kv {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--s4);
}

.row.kv > span:first-child {
  color: var(--ink-3);
}

.row.kv > b {
  text-align: end;
  font-weight: 600;
}

/* ---- Tables (staff console) --------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-14);
}

.table th {
  border-block-end: 1px solid var(--line-soft);
  padding: var(--s2) var(--s4);
  text-align: start;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.table td {
  border-block-end: 1px solid var(--line-soft);
  padding: var(--s3) var(--s4);
  vertical-align: middle;
}

.table tr:last-child td {
  border-block-end: 0;
}

.table th:first-child,
.table td:first-child {
  padding-inline-start: var(--s6);
}

.table th:last-child,
.table td:last-child {
  padding-inline-end: var(--s6);
}

.table tbody tr.clickable {
  cursor: pointer;
}

.table tbody tr.clickable:hover {
  background: var(--brand-wash);
}

/* Any wide thing scrolls inside its own box rather than pushing the page
   sideways. */
.scroll-x {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* ---- Empty states -------------------------------------------------------- */
.empty {
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  padding: var(--s10) var(--s5);
  text-align: center;
  color: var(--ink-3);
}

.empty .icon {
  --icon-size: 1.75rem;
  margin-inline: auto;
  margin-block-end: var(--s3);
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  color: var(--ink-3);
}

.empty h2,
.empty .h3 {
  margin-block-end: var(--s2);
  color: var(--ink);
}

.empty p {
  margin-inline: auto;
  max-width: 44ch;
}

/* ---- Modal --------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  background: rgb(43 39 33 / 0.45);
  backdrop-filter: blur(2px);
}

.modal {
  width: 100%;
  max-width: 28rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s6);
  box-shadow: var(--shadow-lg);
}

/* =========================================================================
   9 · STATUS
   ========================================================================= */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  border-radius: var(--r-sm);
  padding: 0.125rem var(--s2);
  background: var(--surface-muted);
  color: var(--ink-2);
  font-size: var(--fs-12);
  font-weight: 700;
  white-space: nowrap;
}

.pill.ok { background: var(--brand-tint); color: var(--brand-ink); }
.pill.warn { background: var(--accent-tint); color: var(--accent-ink); }
.pill.bad { background: var(--danger-tint); color: var(--danger-ink); }
.pill.info { background: var(--info-tint); color: var(--info-ink); }
.pill.round { border-radius: var(--r-pill); padding-inline: var(--s3); }

.dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--line-strong);
}

.dot.on { background: var(--brand); }
.dot.warn { background: var(--accent); }
.dot.bad { background: var(--danger); }

/* Errors get a shape. Loose red text beside a form reads as decoration; the
   same bordered block on every screen reads as something to fix. */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-sunken);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-14);
  line-height: var(--lh-snug);
  color: var(--ink-2);
}

.alert .icon {
  margin-block-start: 0.05em;
}

.alert.error {
  border-color: var(--danger-line);
  background: var(--danger-tint);
  color: var(--danger-ink);
}

.alert.warn {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-ink);
}

.alert.ok {
  border-color: var(--brand-line);
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.alert strong {
  color: inherit;
}

.progress {
  overflow: hidden;
  width: 100%;
  max-width: 17rem;
  height: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brand);
  transition: width var(--speed);
}

/* A big round status mark above a confirmation heading. */
.badge-icon {
  --icon-size: 1.5rem;
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-ink);
  margin-block-end: var(--s4);
}

.badge-icon.neutral {
  background: var(--surface-muted);
  color: var(--ink-3);
}

/* =========================================================================
   10 · PICKERS — the wizard's vocabulary
   ========================================================================= */

/* A card you pick: a camp match, a week, a scan mode. Selected state rides on
   aria-pressed, which the button already carries for screen readers — so the
   DOM says it once and the stylesheet reads it. */
.pick {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s1);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s4);
  text-align: start;
  transition: border-color var(--speed), background-color var(--speed);
}

.pick:hover {
  border-color: var(--brand-edge);
}

.pick[aria-pressed='true'],
.pick.on {
  border-color: var(--brand);
  background: var(--brand-wash);
}

.pick[aria-pressed='true']:hover,
.pick.on:hover {
  border-color: var(--brand-ink);
}

.pick.wide {
  flex-direction: row;
  align-items: center;
  gap: var(--s4);
}

.pick .tick {
  position: absolute;
  inset-block-start: var(--s2);
  inset-inline-end: var(--s2);
  --icon-size: 0.875rem;
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--ink-on-dark);
  opacity: 0;
  transition: opacity var(--speed);
}

.pick[aria-pressed='true'] .tick {
  opacity: 1;
}

.chip {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  padding: var(--s2) var(--s5);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 700;
  transition: border-color var(--speed), background-color var(--speed), color var(--speed);
}

.chip:hover {
  border-color: var(--brand-edge);
}

.chip[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ink-on-dark);
}

/* A read-only tag — "Jun 23", "3 undated sessions". */
.tag {
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  padding: var(--s1) var(--s3);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-2);
}

/* A radio row that looks like a card: the whole row is the target, and the
   picked one says so with the same green a picked card uses. */
.choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-14);
  transition: border-color var(--speed), background-color var(--speed);
}

.choice + .choice {
  margin-block-start: var(--s2);
}

.choice:hover {
  border-color: var(--brand-edge);
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-wash);
}

.choice:has(input:focus-visible) {
  box-shadow: var(--ring);
}

/* The camper counter. Disabled at the ends of the range rather than silently
   clamping: a button that looks pressable and does nothing reads as broken. */
.stepper {
  --icon-size: 1.5rem;
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--speed), background-color var(--speed);
}

.stepper:hover:enabled {
  border-color: var(--brand);
  color: var(--brand-ink);
}

.stepper:disabled {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--ink-4);
}

.counter {
  min-width: 3.5rem;
  text-align: center;
  font-size: clamp(3rem, 2rem + 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--track-display);
  color: var(--ink);
}

/* The mark on a camp match: its own logo where there's a domain to ask
   about, a map pin where there isn't. */
.camp-mark {
  --icon-size: 1.375rem;
  display: flex;
  width: 2.625rem;
  height: 2.625rem;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--brand-ink);
}

.camp-mark.pin {
  border-color: transparent;
  background: var(--surface-muted);
}

/* A small one, for a listing row. */
.camp-mark.sm {
  --icon-size: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-sm);
}

.camp-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================================
   11 · PHOTOGRAPHY

   The product sells a summer, so the site shows one. Every photograph is a
   committed, cropped, WebP-encoded file (scripts/gen-photos.mjs) at a fixed
   aspect ratio, and every frame reserves its box before the bytes arrive —
   so a page never reflows around a late image and a slot with no file yet
   renders a brand-toned wash the same size.
   ========================================================================= */

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-muted);
}

/* No file generated for this slot yet. A warm wash rather than a grey box:
   the page reads as designed-but-quiet, never as broken. */
.photo-fallback {
  background:
    radial-gradient(120% 140% at 15% 10%, var(--brand-tint) 0%, transparent 55%),
    radial-gradient(100% 120% at 85% 90%, var(--accent-tint) 0%, transparent 60%),
    var(--surface-sunken);
}

/* A rounded photo frame. Give it an aspect-ratio (the photo helpers do) and
   it holds that box at every width. */
.media {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-muted);
}

.media.wide {
  border-radius: var(--r-xl);
}

/* ---- A photo card: image, then a label under it. The directory's shape. --- */
.photo-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  color: inherit;
  text-decoration: none;
}

.photo-card .media {
  aspect-ratio: 4 / 5;
  transition: transform var(--speed);
}

.photo-card:hover .media {
  transform: translateY(-2px);
}

.photo-card:hover .photo {
  filter: brightness(1.03);
}

.photo-card b {
  display: block;
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: var(--track-heading);
}

.photo-card span {
  display: block;
  margin-block-start: 0.125rem;
  font-size: var(--fs-14);
  color: var(--ink-3);
}

/* ---- A tile: the label sits ON the photo, over a scrim. ------------------ */
.tile {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 12rem;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r-lg);
  background: var(--surface-muted);
  color: var(--ink-on-dark);
  text-decoration: none;
}

.tile > .photo,
.tile > .photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* White type sits on a tile, so a tile with no photograph yet needs a ground
   dark enough to read against — the pale wash the other slots fall back to
   would leave the caption at 1.4:1. */
.tile > .photo-fallback {
  background:
    radial-gradient(120% 120% at 20% 15%, rgb(255 255 255 / 0.14) 0%, transparent 60%),
    linear-gradient(160deg, #3c4a41 0%, var(--ink) 70%);
}

/* The scrim is what makes white type on a photograph legible whatever the
   photograph turns out to be — never trust the picture to be dark. */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(20 17 13 / 0.78) 0%, rgb(20 17 13 / 0.28) 45%, rgb(20 17 13 / 0.05) 100%);
}

.tile .caption {
  position: relative;
  z-index: 1;
  padding: var(--s4) var(--s5);
}

.tile .caption b {
  display: block;
  color: var(--ink-on-dark);
  font-size: var(--fs-17);
  font-weight: 800;
  letter-spacing: var(--track-heading);
}

.tile .caption span {
  display: block;
  margin-block-start: 0.125rem;
  color: rgb(255 255 255 / 0.82);
  font-size: var(--fs-14);
}

/* ---- A band: a wide photograph with a card floated over it. -------------- */
.photo-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-muted);
  isolation: isolate;
}

.photo-band > .photo,
.photo-band > .photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.photo-band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s5);
  min-height: 20rem;
  padding: var(--s6);
}

@media (min-width: 48rem) {
  .photo-band .inner {
    min-height: 25rem;
    padding: var(--s10);
  }
}

.overlay-card {
  max-width: 26rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s5) var(--s6);
  box-shadow: var(--shadow-lg);
}

.overlay-card h2,
.overlay-card strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-21);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-snug);
}

.overlay-card p {
  margin-block: var(--s2) var(--s4);
  color: var(--ink-2);
  font-size: var(--fs-15);
}

/* A photograph running the full width of a page section, under the header —
   the directory's masthead. */
.masthead {
  position: relative;
  overflow: hidden;
  background: var(--surface-muted);
}

.masthead > .photo,
.masthead > .photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(20 17 13 / 0.82) 0%, rgb(20 17 13 / 0.55) 55%, rgb(20 17 13 / 0.3) 100%);
}

.masthead .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  color: var(--ink-on-dark);
}

.masthead h1 {
  max-width: 24ch;
  color: var(--ink-on-dark);
}

.masthead p {
  max-width: 60ch;
  margin-block-start: var(--s3);
  color: rgb(255 255 255 / 0.88);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
}

.masthead .crumbs,
.masthead .crumbs a,
.masthead .crumbs .sep {
  color: rgb(255 255 255 / 0.75);
}

.masthead .crumbs a:hover {
  color: var(--ink-on-dark);
}

/* =========================================================================
   12 · MARKETING
   ========================================================================= */

.hero {
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem) var(--s10);
  text-align: center;
}

.hero h1 {
  margin-inline: auto;
  max-width: 16ch;
  font-size: var(--fs-display);
  letter-spacing: var(--track-display);
}

.hero .lede {
  margin-inline: auto;
  margin-block-start: var(--s5);
  max-width: 48ch;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1875rem);
}

/* The search, in a raised white card — the one control the home page is for.
   A row on a desktop, stacked on a phone, with no media query: the field's
   own min-width decides when the row breaks. */
.searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-inline: auto;
  margin-block-start: var(--s8);
  max-width: 46rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s3);
  box-shadow: var(--shadow-md);
  text-align: start;
}

.searchbar .input-shell {
  border-width: 1px;
  border-color: transparent;
  padding-block: var(--s3);
}

.searchbar .input-shell:first-child {
  min-width: 15rem;
  flex: 1;
}

.searchbar .btn {
  flex: 1;
  min-width: 11rem;
}

@media (min-width: 40rem) {
  .searchbar .btn {
    flex: none;
  }
}

/* The picture under the search. Eager-loaded and wide — it is the page's
   largest contentful paint, and pretending otherwise only makes it later. */
.hero-media {
  margin-block-start: var(--s8);
  aspect-ratio: 21 / 9;
}

@media (max-width: 47.99rem) {
  .hero-media {
    aspect-ratio: 4 / 3;
  }
}

/* Numbered steps — the numeral does the work an icon used to. */
.step-num {
  font-size: var(--fs-28);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--track-display);
  color: var(--danger);
}

/* One question and its answer, on the marketing pages and the directory
   alike, so an FAQ always looks like an FAQ. */
.qa {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.qa > div > :first-child {
  margin-block-end: var(--s1);
  font-size: var(--fs-17);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  color: var(--ink);
}

.qa p {
  max-width: var(--prose);
  color: var(--ink-2);
  line-height: var(--lh-relaxed);
}

/* The closing band: ink ground, halftone corner, amber CTA. */
.cta-band {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5) var(--s8);
  border-radius: var(--r-xl);
  background: var(--ink);
  padding: var(--s8) var(--s7);
  color: var(--ink-on-dark);
}

.cta-band > svg {
  position: absolute;
  inset-block-start: -3rem;
  inset-inline-end: -2rem;
  color: var(--ink-on-dark);
  opacity: 0.13;
  pointer-events: none;
}

.cta-band .body {
  position: relative;
  min-width: 16rem;
  flex: 1;
}

.cta-band strong {
  display: block;
  color: var(--ink-on-dark);
  font-size: var(--fs-21);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-snug);
}

.cta-band p {
  margin-block-start: var(--s2);
  color: rgb(255 255 255 / 0.75);
}

.cta-band .btn {
  position: relative;
}

/* The price card — /pricing and the account page draw the same one. */
.price-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5) var(--s10);
  border: 2px solid var(--brand);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s8) var(--s7);
}

.price-figure {
  flex: none;
  text-align: center;
}

.price-figure b {
  display: block;
  font-size: clamp(2.75rem, 2rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--track-display);
  color: var(--ink);
}

.price-figure span {
  display: block;
  margin-block-start: var(--s2);
  font-size: var(--fs-13);
  font-weight: 800;
  color: var(--ink-3);
}

.ticks {
  display: flex;
  min-width: 15rem;
  flex: 1;
  flex-direction: column;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-16);
  line-height: var(--lh-snug);
  color: var(--ink-2);
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}

.ticks .icon {
  --icon-size: 1.125rem;
  margin-block-start: 0.15em;
  color: var(--brand);
}

/* =========================================================================
   13 · DIRECTORY (/camps — the programmatic-SEO surface)
   ========================================================================= */

.state-grid {
  display: grid;
  gap: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
}

.state-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: var(--s3) var(--s4);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--speed), background-color var(--speed);
}

.state-link:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
  color: var(--ink);
}

.count {
  flex: none;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  padding: 0.0625rem var(--s2);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--ink-3);
}

.facet {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  padding: var(--s2) var(--s4);
  color: var(--brand-ink);
  font-size: var(--fs-13);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--speed), background-color var(--speed);
}

.facet:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
}

.town {
  margin-block: var(--s6) var(--s2);
  font-size: var(--fs-12);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.row-name {
  min-width: 10rem;
  flex: 1;
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--brand-ink);
}

.row-meta {
  font-size: var(--fs-13);
  color: var(--ink-3);
}

/* The link block at the foot of a directory page. Dense on purpose: it is how
   a crawler reaches every state from any page, and how a parent browsing one
   state hops to the next without going back up a level. */
.link-farm {
  display: grid;
  gap: var(--s2) var(--s6);
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr));
  font-size: var(--fs-14);
}

.link-farm a {
  color: var(--ink-2);
  text-decoration: none;
}

.link-farm a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

/* Where the photographs came from. Small, permanent, and never a link the
   design has to make room for. */
.credit {
  font-size: var(--fs-12);
  color: var(--ink-4);
}

.credit a {
  color: var(--ink-4);
  text-decoration: underline;
}

/* =========================================================================
   14 · ACCOUNT — the signed-in parent pages (/my)
   ========================================================================= */

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
  border-block-end: 1px solid var(--line);
  margin-block-end: var(--s7);
}

.tab {
  border: 0;
  border-block-end: 2px solid transparent;
  background: none;
  padding: 0 0 var(--s2);
  color: var(--ink-3);
  font-size: var(--fs-15);
  font-weight: 700;
  text-decoration: none;
}

.tab:hover {
  color: var(--ink);
}

.tab.on,
.tab[aria-current='page'] {
  border-block-end-color: var(--brand);
  color: var(--brand-ink);
}

/* An opening is the moment the product exists for, so it goes above the list
   and wears the amber. */
.open-card {
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--accent-tint);
  padding: var(--s4);
}

.open-card .eyebrow {
  color: var(--accent-ink);
}

/* One camp, one row — the whole dashboard. */
.camp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s4) var(--s5);
}

.camp-row .main {
  min-width: 12rem;
  flex: 1;
}

.camp-row .name {
  font-size: var(--fs-17);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  color: var(--ink);
}

.camp-row .meta {
  margin-block-start: var(--s1);
  font-size: var(--fs-14);
  color: var(--ink-3);
}

.state-word {
  font-size: var(--fs-14);
  font-weight: 700;
}

.state-word.on { color: var(--brand-ink); }
.state-word.warn { color: var(--accent-ink); }
.state-word.off { color: var(--ink-3); }

/* =========================================================================
   15 · AUTH
   ========================================================================= */

.auth-screen {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  background: var(--surface-sunken);
  padding: var(--s10) var(--gutter);
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s8);
  box-shadow: var(--shadow-sm);
}

.auth-card h1 {
  margin-block: var(--s5) var(--s1);
  font-size: var(--fs-21);
  text-align: center;
}

/* =========================================================================
   16 · CONSOLE — staff only
   ========================================================================= */

.console-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--paper);
}

@media (min-width: 48rem) {
  .console-shell {
    flex-direction: row;
  }
}

.console-bar,
.console-side {
  background: var(--console);
  color: var(--ink-on-dark);
}

.console-bar {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s2);
}

.console-side {
  position: sticky;
  inset-block-start: 0;
  display: none;
  height: 100dvh;
  width: 14.75rem;
  flex: none;
  flex-direction: column;
  padding: var(--s6) var(--s4);
}

@media (min-width: 48rem) {
  .console-bar {
    display: none;
  }

  .console-side {
    display: flex;
  }
}

.console-main {
  min-width: 0;
  flex: 1;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink-on-dark);
  font-size: var(--fs-16);
  font-weight: 800;
  letter-spacing: var(--track-heading);
  text-decoration: none;
}

.console-brand:hover {
  color: var(--ink-on-dark);
}

.staff-mark {
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.14);
  padding: 0.125rem var(--s2);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.82);
}

.console-nav {
  display: flex;
  gap: var(--s1);
}

@media (min-width: 48rem) {
  .console-nav {
    flex-direction: column;
  }
}

.console-link {
  display: flex;
  align-items: center;
  gap: var(--s2);
  border: 0;
  border-radius: var(--r);
  background: none;
  padding: var(--s2) var(--s3);
  color: rgb(255 255 255 / 0.7);
  font-size: var(--fs-14);
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  transition: background-color var(--speed), color var(--speed);
}

.console-link:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--ink-on-dark);
}

.console-link[aria-current='page'],
.console-link.active {
  background: rgb(255 255 255 / 0.14);
  color: var(--ink-on-dark);
}

.console-foot {
  margin-block-start: auto;
  padding-block-start: var(--s3);
  font-size: var(--fs-13);
  color: rgb(255 255 255 / 0.5);
}

.console-foot hr {
  border-color: rgb(255 255 255 / 0.12);
  margin-block: var(--s2);
}

.unread {
  min-width: 1.25rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  padding: 0 var(--s1);
  color: var(--ink-on-dark);
  font-size: var(--fs-12);
  font-weight: 700;
  text-align: center;
}

/* The console's page frame. */
.page {
  width: 100%;
  padding: var(--s6) var(--gutter) var(--s16);
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  margin-block-end: var(--s5);
}

.page-head h1 {
  font-size: var(--fs-24);
}

.page-head p {
  margin-block-start: var(--s2);
  color: var(--ink-3);
}

.stat-label {
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stat-value {
  margin-block-start: var(--s1);
  font-size: var(--fs-28);
  font-weight: 800;
  letter-spacing: var(--track-display);
  color: var(--ink);
}

/* Message bubbles in the staff inbox thread. */
.bubble {
  max-width: 85%;
  border-radius: var(--r-lg);
  padding: var(--s2) var(--s3);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
}

.bubble.left {
  align-self: flex-start;
  border-end-start-radius: var(--r-sm);
  background: var(--surface-muted);
  color: var(--ink);
}

.bubble.right {
  align-self: flex-end;
  border-end-end-radius: var(--r-sm);
  background: var(--brand-ink);
  color: var(--ink-on-dark);
}

/* ---- The staff inbox -----------------------------------------------------
   Built as a mail client, not a page of mail: on a desktop the screen is the
   viewport and the two panes scroll inside themselves. Below `md` it reverts
   to an ordinary scrolling page, because a fixed-height app pane on a phone
   fights the browser's own chrome. */

.mail-page {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4) var(--gutter) var(--s5);
}

@media (min-width: 48rem) {
  .mail-page {
    height: 100dvh;
    overflow: hidden;
  }
}

.mail {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: var(--s3);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 64rem) {
  .mail {
    grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
  }
}

.mail-pane {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

@media (min-width: 48rem) {
  .mail-scroll {
    overflow-y: auto;
  }
}

/* A segmented control: the mailbox tabs. */
.seg {
  display: flex;
  flex: none;
  gap: 2px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 3px;
}

.seg button {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  padding: var(--s1) var(--s3);
  color: var(--ink-3);
  font-size: var(--fs-13);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--speed), color var(--speed);
}

.seg button:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.seg button[aria-pressed='true'] {
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.seg .count {
  background: var(--surface-muted);
}

.seg button[aria-pressed='true'] .count {
  background: var(--brand-ink);
  color: var(--ink-on-dark);
}

/* Below the two-pane breakpoint the list and the conversation take turns:
   opening a thread replaces the list, and closing it brings the list back. */
@media (max-width: 63.99rem) {
  .mail.has-open [data-pane='list'] { display: none; }
  .mail:not(.has-open) [data-pane='thread'] { display: none; }
}

@media (min-width: 64rem) {
  .hide-lg { display: none; }
}

.kbd {
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0 var(--s1);
  color: var(--ink-4);
  font-family: var(--font);
  font-size: var(--fs-12);
  font-weight: 600;
}

.thread-row {
  position: relative;
  display: block;
  border-block-end: 1px solid var(--line-soft);
  padding: var(--s2) var(--s3);
  color: inherit;
  text-decoration: none;
}

.thread-row:last-child {
  border-block-end: 0;
}

.thread-row:hover {
  background: var(--surface-sunken);
}

.thread-row[aria-current='page'] {
  background: var(--brand-wash);
}

.thread-row[aria-current='page']::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--brand);
}

.msg {
  margin-block-end: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.msg:last-child {
  margin-block-end: 0;
}

.msg.out {
  border-color: var(--brand-line);
  background: var(--brand-wash);
}

.msg-head {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s2);
  border: 0;
  border-radius: var(--r) var(--r) 0 0;
  background: none;
  padding: var(--s2) var(--s3) var(--s1);
  text-align: start;
  font-size: var(--fs-13);
}

.msg-body {
  padding: 0 var(--s4) var(--s3);
}

.msg-body pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: var(--font);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--ink);
}

.msg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  border-block-start: 1px solid var(--line-soft);
  margin-block-start: var(--s3);
  padding-block-start: var(--s3);
  font-size: var(--fs-12);
  color: var(--ink-3);
}

.html-frame {
  width: 100%;
  height: 24rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--surface);
}

/* The composer, docked to the bottom of the conversation. */
.dock {
  position: sticky;
  inset-block-end: 0;
  z-index: 10;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--s2);
  border-block-start: 1px solid var(--line-soft);
  border-end-start-radius: var(--r-lg);
  border-end-end-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s3) var(--s4);
}

@media (min-width: 48rem) {
  .dock {
    position: static;
    border-radius: 0;
  }
}

/* A modal that can outgrow the viewport (the composer) scrolls the backdrop
   rather than trapping its own overflow. */
.modal-backdrop.tall {
  align-items: flex-start;
  overflow-y: auto;
  padding-block: var(--s8);
}

.modal.wide {
  max-width: 39rem;
}

/* A tooltip on an "ⓘ" — the console's dense tables lean on these. */
.tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.tip > button {
  --icon-size: 0.9375rem;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-4);
  cursor: help;
}

.tip > button:hover {
  color: var(--ink);
}

.tip > span {
  position: absolute;
  inset-block-start: calc(100% + 0.4rem);
  inset-inline-start: 50%;
  z-index: 40;
  translate: -50% 0;
  width: max-content;
  max-width: 14rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  padding: var(--s2) var(--s3);
  color: var(--ink-on-dark);
  font-size: var(--fs-12);
  font-weight: 400;
  line-height: var(--lh-snug);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--speed);
}

.tip:hover > span,
.tip:focus-within > span {
  opacity: 1;
}

/* =========================================================================
   17 · UTILITIES — the short list. Anything longer belongs in a component.
   ========================================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.measure { max-width: var(--prose); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.tint-brand { color: var(--brand-ink); }
.tint-accent { color: var(--accent-ink); }
.grow { flex: 1; min-width: 0; }
.anywhere { overflow-wrap: anywhere; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-aside {
  position: sticky;
  inset-block-start: var(--s6);
}

@media (max-width: 63.99rem) {
  .sticky-aside {
    position: static;
  }
}

@media (max-width: 39.99rem) {
  .hide-sm { display: none; }
}
