/* =============================================================================
   NKBA Camp 2026 — Components
   Buttons, forms, cards, nav, hero, footer, sponsor strip, team-lookup list.
   Tokens only — no raw hex/px outside of the few one-offs noted inline.
   ============================================================================= */

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-ink-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
@media (min-width: 640px) {
  .site-header__inner { min-height: 72px; }
}

.brandmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-black);
  font-size: 1.25rem;
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
}
.brandmark__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--color-sky-300);
  display: inline-block;
}

.nav-primary { display: none; }
.nav-primary a {
  text-decoration: none;
  color: var(--color-ink-900);
  padding: var(--space-2) var(--space-3);
  font-weight: var(--fw-semibold);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}
.nav-primary a:hover {
  color: var(--color-royal-600);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.nav-primary a[aria-current="page"] {
  color: var(--color-royal-600);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (min-width: 640px) {
  .nav-primary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-button);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary CTA — navy-900 fill with white text. Hover INVERTS to a clean
   white fill with navy text, matching the secondary's hover state so the
   two CTAs read as a coherent pair on rollover (no more royal-600 lift,
   which created a halation effect at small sizes). Border defaults to
   navy-900 (invisible against the same-color bg) so the inverted hover
   state remains framed on white pages; on dark surfaces it gets overridden
   to white below. */
.btn--primary {
  background: var(--color-navy-900);
  color: var(--color-white);
  border-color: var(--color-navy-900);
  font-weight: var(--fw-bold);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-white);
  color: var(--color-navy-900);
}

/* Header CTA override — scope only to the nav, not in-page primary buttons.
   The site-header is a white surface and the rest of the page (esp. V4 hero)
   leans on white + sky-300 as its two color anchors. A heavy navy block in
   the header competed for attention before the user even reached the
   wordmark. Treat the header CTA as a sky-outlined ghost: 1.5px sky-300
   border, navy-900 label, transparent fill. The border is decorative — the
   contrast burden is carried by navy-900 text on white (~17:1, AAA).
   Hover/focus inverts to the filled navy-900 / white treatment so it still
   feels like a button on press. Tap target unchanged (inherits .btn). */
.nav-primary .btn--primary {
  background: transparent;
  color: var(--color-navy-900);
  border: 1.5px solid var(--color-sky-300);
  font-weight: var(--fw-bold);
}
.nav-primary .btn--primary:hover,
.nav-primary .btn--primary:focus-visible {
  background: var(--color-navy-900);
  color: var(--color-white);
  border-color: var(--color-navy-900);
  /* Don't underline like the other nav anchors — keep it reading as a button. */
  text-decoration: none;
}

/* Secondary CTA — outlined by default, fills on hover (inverts treatment). */
.btn--secondary {
  background: transparent;
  color: var(--color-navy-900);
  border-color: var(--color-navy-900);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-navy-900);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy-900);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--color-sky-100); }

/* Dark surfaces (hero + .section--navy): secondary uses a white outline by
   default and inverts to a filled white button with navy text on hover.
   Primary keeps its navy fill at rest but its hover border flips to white
   so the inverted (white) hover state reads as a flat block against the
   dark bg — matching the secondary's hover. The two buttons end up looking
   identical on rollover: clean white fill, navy text, no visible border. */
.section--navy .btn--primary,
.hero .btn--primary { border-color: transparent; }
.section--navy .btn--primary:hover,
.section--navy .btn--primary:focus-visible,
.hero .btn--primary:hover,
.hero .btn--primary:focus-visible {
  background: var(--color-white);
  color: var(--color-navy-900);
  border-color: var(--color-white);
}

.section--navy .btn--secondary,
.hero .btn--secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}
.section--navy .btn--secondary:hover,
.section--navy .btn--secondary:focus-visible,
.hero .btn--secondary:hover,
.hero .btn--secondary:focus-visible {
  background: var(--color-white);
  color: var(--color-navy-900);
  border-color: var(--color-white);
}

.btn--lg {
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
}

.btn--full {
  width: 100%;
}

/* ---------- Forms ---------- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.label {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-900);
}
.label .required {
  color: var(--color-danger);
  margin-left: var(--space-1);
}

.input {
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  /* iOS won't zoom inputs at >=16px; keep the literal value here rather than
     the body token, which could be customized smaller on mobile in the future. */
  font-size: 16px;
  color: var(--color-ink-900);
  background: var(--color-white);
  border: 1px solid var(--color-ink-300);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}
.input:hover { border-color: var(--color-ink-500); }
.input:focus-visible {
  border-color: var(--color-royal-600);
  outline: none;
  box-shadow: var(--shadow-focus);
}
.input[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.input[disabled] {
  background: var(--color-ink-50);
  color: var(--color-ink-500);
  cursor: not-allowed;
}

.form-help {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
}
.form-error {
  font-size: var(--fs-body-sm);
  color: var(--color-danger);
  font-weight: var(--fw-semibold);
}

.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
}
.form-status--success {
  background: var(--color-sky-100);
  color: var(--color-navy-900);
  border: 1px solid var(--color-sky-300);
}
.form-status--error {
  background: #FCE9E7; /* light tint of danger — one-off, not promoted to a token yet */
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

/* ---------- Hero (V4 — centered vertical stack)
   Final composition adopted 2026-05-23 after V1–V3 didn't land for Garrett.
   Top → bottom: eyebrow, sky-blue mark on navy (no panel), locked-up
   wordmark SVG, values row, primary CTA pair. Centered, symmetric.
   ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, var(--color-navy-800) 0%, var(--color-navy-900) 55%),
    var(--color-navy-900);
  color: var(--color-white);
  /* Bottom padding tuned to match the gap between the values row and the
     CTAs above (space-6 inner-gap + space-4 cta margin-block-start = 40 px
     on mobile; space-8 + space-6 = 56 px on desktop). Buttons sit equally
     between values row above and the next section below. */
  padding-block: var(--space-12) var(--space-10);
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero { padding-block: var(--space-16) var(--space-12); }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .hero__inner { gap: var(--space-8); }
}

/* 1) Eyebrow at the top — small sky-blue caps with wide tracking */
.hero__topmark {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-sky-300);
  margin: 0;
}
@media (min-width: 1024px) {
  .hero__topmark { font-size: 0.8125rem; }
}

/* 2) Mark — sky-blue heartbeat-basketball SVG sitting directly on the navy
      gradient (no panel — the mark is already light-on-dark). */
.hero__mark {
  width: 82%;
  max-width: 360px;
  margin: 0 auto;
}
@media (min-width: 480px)  { .hero__mark { max-width: 420px; } }
@media (min-width: 768px)  { .hero__mark { max-width: 480px; } }
@media (min-width: 1024px) { .hero__mark { max-width: 520px; } }
@media (min-width: 1440px) { .hero__mark { max-width: 560px; } }
.hero__mark img {
  display: block;
  width: 100%;
  height: auto;
  /* Subtle navy drop-shadow deepens the strokes against the gradient. */
  filter: drop-shadow(0 2px 6px rgba(0, 26, 87, 0.55));
}

/* 3) Wordmark — locked-up SVG (heart-of-a-trojan.svg). The .visually-hidden
      span inside the h1 carries the semantic text for SR + SEO. */
.hero__title {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero__wordmark {
  width: 100%;
  max-width: 375px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
@media (min-width: 480px)  { .hero__wordmark { max-width: 400px; } }
@media (min-width: 768px)  { .hero__wordmark { max-width: 460px; } }
@media (min-width: 1024px) { .hero__wordmark { max-width: 500px; } }
@media (min-width: 1440px) { .hero__wordmark { max-width: 540px; } }

/* 4) Values row — tracked caps, no dividers (light-touch caption under the
      lockup, not a competing band). */
.hero__values {
  margin: var(--space-4) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 38rem;
  column-gap: clamp(var(--space-4), 3vw, var(--space-8));
  row-gap: var(--space-2);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1;
}
@media (min-width: 1024px) {
  .hero__values {
    margin: var(--space-6) auto 0;
    max-width: 46rem;
    font-size: 0.875rem;
  }
}
.hero__values li {
  display: inline-flex;
  align-items: center;
}

/* 5) Primary CTAs — stacked on mobile, inline on tablet+. Extra top margin
      so they breathe away from the values row instead of feeling glued. */
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
  width: 100%;
  max-width: 28rem;
  margin-block-start: var(--space-4);
}
@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}
@media (min-width: 1024px) {
  .hero__ctas { margin-block-start: var(--space-6); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card--outlined {
  box-shadow: none;
  border: 1px solid var(--color-ink-300);
}
.card--inverse {
  background: var(--color-navy-900);
  color: var(--color-white);
  box-shadow: none;
}
.card--feature {
  background: var(--color-sky-100);
  color: var(--color-navy-900);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: none;
}
@media (min-width: 640px) {
  .card--feature { padding: var(--space-10); }
}

.card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-md);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--space-3);
}
.card--inverse .card__title { color: var(--color-white); }
.card__body { margin: 0; color: var(--color-ink-700); }
.card--inverse .card__body { color: var(--color-sky-300); }

/* ---------- Info grid (drop-off + CTAs) ---------- */
.info-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}
@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.dropoff__age {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-black);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--color-royal-600);
  letter-spacing: var(--ls-display);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.card--inverse .dropoff__age { color: var(--color-sky-300); }

.dropoff__where {
  font-weight: var(--fw-semibold);
  color: var(--color-ink-900);
  margin: 0 0 var(--space-1);
}
.card--inverse .dropoff__where { color: var(--color-white); }

.dropoff__detail {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
  margin: 0;
}
.card--inverse .dropoff__detail { color: var(--color-sky-300); }

/* ---------- When / schedule tiles ---------- */
.when {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .when { grid-template-columns: 1fr 1fr; }
}
.when__tile { padding: var(--space-5); }
.when__label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-700);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-2);
}
.when__value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--color-navy-900);
  line-height: var(--lh-tight);
  margin: 0;
}
.when__sub {
  margin: var(--space-1) 0 0;
  color: var(--color-ink-700);
  font-size: var(--fs-body-sm);
}

/* ---------- Sponsor strip ---------- */
.sponsors__title {
  text-align: center;
  margin: 0 0 var(--space-6);
}
.sponsors__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 640px) {
  .sponsors__row { gap: var(--space-10); }
}
/* Real sponsor logo display. Each PNG is 584x329 with a transparent
   background; we size by max-height + max-width and let object-fit:
   contain keep aspect. Consistent visual presence across the strip
   regardless of each logo's natural shape. */
.sponsor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.sponsor-logo img {
  display: block;
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (min-width: 640px) {
  .sponsor-logo img {
    max-height: 72px;
    max-width: 220px;
  }
}
@media (min-width: 1024px) {
  .sponsor-logo img {
    max-height: 88px;
    max-width: 260px;
  }
}

/* Placeholder retained for any future sponsor that hasn't supplied a logo. */
.sponsor-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 120px;
  padding: 0 var(--space-4);
  background: var(--color-white);
  border: 1px dashed var(--color-ink-300);
  border-radius: var(--radius-sm);
  color: var(--color-ink-500);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}
@media (min-width: 640px) {
  .sponsor-placeholder {
    height: 48px;
    min-width: 140px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-900);
  color: var(--color-white);
  padding-block: var(--space-12);
}
.site-footer a {
  color: var(--color-white);
  text-decoration-color: var(--color-sky-300);
}
.site-footer a:hover { color: var(--color-sky-300); }

.footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--space-10);
  }
}

.footer__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--space-3);
  color: var(--color-white);
  text-transform: uppercase;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}

.footer__small {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(159, 200, 230, 0.25);
  font-size: var(--fs-body-sm);
  color: var(--color-sky-300);
  text-align: center;
}

/* ---------- Auth pages (login, callback) — narrow column ---------- */
.auth-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: var(--space-12);
  background: var(--color-ink-50);
  min-height: calc(100vh - 64px);
}
.auth-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 100%;
  max-width: 28rem;
  box-shadow: var(--shadow-sm);
}
.auth-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-md);
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--space-3);
  color: var(--color-navy-900);
}
.auth-card__lede {
  color: var(--color-ink-700);
  margin: 0 0 var(--space-6);
}

/* ---------- Team-lookup (teams.html) ---------- */
.teamlookup__search {
  margin-block: var(--space-6) var(--space-8);
}

.teamlookup__count {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
  margin-bottom: var(--space-4);
}

.gym-group {
  margin-bottom: var(--space-10);
}
.gym-group__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-md);
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-2);
}
.gym-group__sub {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-5);
}

.team-block {
  background: var(--color-white);
  border: 1px solid var(--color-ink-300);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.team-block__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.team-block__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0;
}
.team-block__age-group {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}

.camper-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.camper-list li {
  font-size: var(--fs-body);
  color: var(--color-ink-900);
  padding-block: var(--space-1);
}
.camper-list .camper-age {
  color: var(--color-ink-700);
  font-size: var(--fs-body-sm);
}
.camper-list mark {
  background: var(--color-sky-100);
  color: var(--color-navy-900);
  padding: 0 2px;
  border-radius: var(--radius-sm);
}

.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--color-ink-700);
}
.empty-state__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-md);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-3);
}

/* ---------- Waiver flow (waiver.html)
   Multi-step bundled waiver + account creation. Mobile-first. Each step is
   one focused screen with a single primary Continue. The container is a
   narrow column on light surface so the form feels like a quiet utility,
   not a marketing page.
   ---------- */
.waiver-shell {
  background: var(--color-ink-50);
  min-height: calc(100vh - 64px);
  padding-block: var(--space-8) var(--space-12);
}
@media (min-width: 640px) {
  .waiver-shell { padding-block: var(--space-12) var(--space-16); }
}

.waiver-column {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
}

.waiver-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-md);
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-2);
}
.waiver-lede {
  color: var(--color-ink-700);
  margin: 0 0 var(--space-6);
}

/* Progress indicator — top of every step. Pill segments + "Step X of 4" label
   above. Filled segments use navy-900; current is sky-300 (mid-state); future
   are ink-100 (empty). Reads at a glance even on a 375 viewport. */
.progress-indicator {
  margin-bottom: var(--space-6);
}
.progress-indicator__label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--color-ink-700);
  margin: 0 0 var(--space-2);
}
.progress-indicator__bars {
  display: flex;
  gap: var(--space-2);
}
.progress-indicator__bar {
  flex: 1 1 0;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-ink-100);
}
.progress-indicator__bar--done    { background: var(--color-navy-900); }
.progress-indicator__bar--current { background: var(--color-sky-300); }

/* Step card — white surface with shadow, rounded. One step visible at a
   time; the others are display:none. Step transitions are handled inline
   in JS by toggling [data-step] / [hidden]. */
.waiver-step {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .waiver-step { padding: var(--space-8); }
}
.waiver-step__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-2);
}
.waiver-step__body {
  color: var(--color-ink-700);
  margin: 0 0 var(--space-5);
}

.waiver-step__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
}
@media (min-width: 480px) {
  .waiver-step__actions {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-3);
  }
  .waiver-step__actions .btn--full { width: auto; flex: 1; }
}

/* Lookup result — appears under email field once we've matched the address
   to the seeded roster. Sky-tinted panel, list of campers in a stack. */
.lookup-result {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-sky-100);
  border: 1px solid var(--color-sky-300);
  color: var(--color-navy-900);
}
.lookup-result__heading {
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-2);
}
.lookup-result__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--fs-body-sm);
}
.lookup-result__meta {
  color: var(--color-ink-700);
  font-weight: var(--fw-medium);
}
.lookup-result__notice {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-body-sm);
  padding: var(--space-2) var(--space-3);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-sky-300);
}
.lookup-result__notice code {
  font-size: 0.85em;
  color: var(--color-ink-700);
}

.lookup-result--miss {
  background: #FFF4E6; /* light tint of warning — one-off, not tokenized yet */
  border-color: var(--color-warning);
  color: var(--color-ink-900);
}

/* Per-camper confirmation card (step 2) and per-camper pickup card (step 3).
   Outlined card with the camper's name in display font at the top, then
   field rows or pickup list below. */
.camper-card {
  border: 1px solid var(--color-ink-300);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.camper-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-3);
}
.camper-card__meta {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-4);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-ink-100);
}
.field-row:first-of-type { border-top: 0; }
.field-row__label {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}
.field-row__value {
  font-weight: var(--fw-semibold);
  color: var(--color-ink-900);
  text-align: right;
}
.field-row__flag {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  color: var(--color-royal-600);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: var(--fw-semibold);
  justify-self: start;
}
.field-row__flag:hover { text-decoration: underline; }
.field-row__correction {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
}
.field-row__correction textarea {
  width: 100%;
  min-height: 64px;
  padding: var(--space-3);
  border: 1px solid var(--color-ink-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  resize: vertical;
}
.field-row__correction textarea:focus-visible {
  border-color: var(--color-royal-600);
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Authorized adults list (step 3). Editable rows; "Add" button adds another
   row pair (name + relationship). */
.adult-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.adult-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-ink-300);
  border-radius: var(--radius-sm);
  background: var(--color-ink-50);
}
@media (min-width: 480px) {
  .adult-row {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
  }
}
.adult-row--default {
  background: var(--color-sky-100);
  border-color: var(--color-sky-300);
}
.adult-row__remove {
  background: none;
  border: 0;
  color: var(--color-danger);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  cursor: pointer;
  padding: var(--space-2);
  min-height: var(--tap-min);
  text-align: left;
}
.adult-row__remove:hover { text-decoration: underline; }
.adult-row__badge {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-navy-900);
  background: var(--color-white);
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-sky-300);
  align-self: center;
  justify-self: start;
  width: max-content;
}

.adult-add {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px dashed var(--color-ink-500);
  color: var(--color-royal-600);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  width: 100%;
  justify-content: center;
  min-height: var(--tap-min);
}
.adult-add:hover {
  border-color: var(--color-royal-600);
  background: var(--color-sky-100);
}

/* Waiver text panel (step 4). Scrollable, fixed visible height. Show the
   first paragraph above the fold by default so parents see it's not just
   a "click to agree" box. Top + bottom inner shadows hint at more content. */
.plain-summary {
  background: var(--color-sky-100);
  border-left: 4px solid var(--color-navy-900);
  padding: var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-5);
  color: var(--color-navy-900);
  font-weight: var(--fw-medium);
}

.waiver-panel {
  border: 1px solid var(--color-ink-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  height: 320px;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
  /* Hint at scrollable content with subtle inner shadows. */
  box-shadow:
    inset 0 8px 8px -8px rgba(0, 26, 87, 0.15),
    inset 0 -8px 8px -8px rgba(0, 26, 87, 0.15);
  margin-bottom: var(--space-5);
  font-size: var(--fs-body-sm);
  color: var(--color-ink-900);
  line-height: var(--lh-loose);
}
.waiver-panel h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: 1rem;
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: var(--space-4) 0 var(--space-2);
}
.waiver-panel h3:first-of-type { margin-top: 0; }
.waiver-panel p { margin: 0 0 var(--space-3); }
.waiver-panel p:last-child { margin-bottom: 0; }

/* Checkbox + label rows */
.checkbox-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  border: 1px solid var(--color-ink-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  margin-bottom: var(--space-3);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--color-navy-900);
  flex: 0 0 auto;
  cursor: pointer;
}
.checkbox-row__text {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-900);
  line-height: var(--lh-normal);
}
.checkbox-row__text strong { color: var(--color-navy-900); }

/* Signature canvas — placeholder for the developer's signature_pad wiring.
   Dashed border + lined background hint at "draw here". */
.signature-block { margin-bottom: var(--space-5); }
.signature-block__label {
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-2);
  display: block;
}
.signature-canvas {
  width: 100%;
  height: 140px;
  border: 2px dashed var(--color-ink-500);
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      var(--color-ink-100) 27px,
      var(--color-ink-100) 28px
    ),
    var(--color-white);
  display: block;
  touch-action: none;
  cursor: crosshair;
}
.signature-block__hint {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-500);
  margin: var(--space-2) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.signature-block__clear {
  background: none;
  border: 0;
  color: var(--color-royal-600);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  font-size: var(--fs-body-sm);
}
.signature-block__clear:hover { text-decoration: underline; }

/* Resume entry-point — a small notice that surfaces when in-progress state
   is detected in localStorage. Lives at the top of step 1. */
.resume-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-sky-100);
  border: 1px solid var(--color-sky-300);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--fs-body-sm);
}
.resume-banner__text { color: var(--color-navy-900); margin: 0; }
.resume-banner__action {
  background: none;
  border: 0;
  color: var(--color-royal-600);
  font-weight: var(--fw-bold);
  cursor: pointer;
  white-space: nowrap;
}
.resume-banner__action:hover { text-decoration: underline; }

/* Success state (post-submit) */
.success-card {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.success-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  background: var(--color-success);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  margin: 0 auto var(--space-4);
}
.success-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-md);
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-3);
}
.success-card__body {
  color: var(--color-ink-700);
  margin: 0 0 var(--space-6);
}

/* ---------- Parent dashboard (account.html)
   Stack of cards on a tinted surface. Each card is white with a small shadow
   so the page scans as a list of "what you can do here" items.
   ---------- */
.dashboard-shell {
  background: var(--color-ink-50);
  min-height: calc(100vh - 64px);
  padding-block: var(--space-8) var(--space-12);
}
@media (min-width: 640px) {
  .dashboard-shell { padding-block: var(--space-10) var(--space-16); }
}

.dashboard-column {
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
}

.dashboard-welcome {
  margin-bottom: var(--space-6);
}
.dashboard-welcome__greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-md);
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-2);
}
.dashboard-welcome__sub {
  color: var(--color-ink-700);
  margin: 0 0 var(--space-4);
}
.camper-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.camper-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-sky-300);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-body-sm);
  color: var(--color-navy-900);
  font-weight: var(--fw-semibold);
}
.camper-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--color-royal-600);
}

/* Dashboard card — the base unit. White surface, rounded, small shadow. */
.dashboard-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
@media (min-width: 640px) {
  .dashboard-card { padding: var(--space-6); }
}
.dashboard-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.dashboard-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  letter-spacing: var(--ls-display);
  color: var(--color-navy-900);
  margin: 0;
}
.dashboard-card__link {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-royal-600);
  text-decoration: none;
}
.dashboard-card__link:hover { text-decoration: underline; }

/* Status pill — green for signed, amber for unsigned */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
}
.status-pill--ok {
  background: rgba(31, 138, 76, 0.10);
  color: var(--color-success);
}
.status-pill--warn {
  background: rgba(181, 101, 29, 0.12);
  color: var(--color-warning);
}
.status-pill__icon {
  width: 14px; height: 14px; border-radius: var(--radius-circle);
  display: inline-block; flex: 0 0 auto;
}
.status-pill--ok .status-pill__icon { background: var(--color-success); }
.status-pill--warn .status-pill__icon { background: var(--color-warning); }

/* Per-camper sub-blocks inside dashboard cards */
.camper-block {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-ink-100);
}
.camper-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.camper-block:last-of-type { padding-bottom: 0; }
.camper-block__name {
  font-weight: var(--fw-bold);
  color: var(--color-navy-900);
  margin: 0 0 var(--space-1);
  font-size: var(--fs-body);
}
.camper-block__meta {
  font-size: var(--fs-body-sm);
  color: var(--color-ink-700);
  margin: 0 0 var(--space-3);
}
.camper-block__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Drop-off detail list inside dashboard */
.dropoff-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--fs-body-sm);
}
.dropoff-list__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-2);
}
.dropoff-list__label {
  color: var(--color-ink-700);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-eyebrow);
  padding-top: 2px;
}
.dropoff-list__value {
  color: var(--color-ink-900);
  font-weight: var(--fw-medium);
}
.dropoff-list__value strong { color: var(--color-navy-900); }

/* Pickup adult mini-list (inside per-camper block on dashboard) */
.pickup-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pickup-mini__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--color-ink-50);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
}
.pickup-mini__name { font-weight: var(--fw-semibold); color: var(--color-ink-900); }
.pickup-mini__rel  { color: var(--color-ink-700); font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  font-weight: var(--fw-semibold); }
.pickup-mini__edit {
  background: none; border: 0; color: var(--color-royal-600);
  font-weight: var(--fw-semibold); cursor: pointer; font-size: var(--fs-body-sm);
  padding: var(--space-1) var(--space-2);
}
.pickup-mini__edit:hover { text-decoration: underline; }

/* Announcement feed item */
.announcement-item {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-ink-100);
}
.announcement-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.announcement-item:last-of-type { padding-bottom: 0; }
.announcement-item__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.announcement-item__title {
  font-weight: var(--fw-bold);
  color: var(--color-navy-900);
  margin: 0;
  font-size: var(--fs-body);
}
.announcement-item__meta {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--color-ink-500);
  white-space: nowrap;
}
.announcement-item__body {
  color: var(--color-ink-700);
  margin: 0;
  font-size: var(--fs-body-sm);
}

.dashboard-signout {
  margin-top: var(--space-8);
  text-align: center;
}

/* Boot state for the dashboard — shown while we resolve session + load data.
   Replaced by the populated dashboard once boot() finishes. */
.dashboard-boot {
  padding: var(--space-8) 0;
  text-align: center;
  color: var(--color-ink-700);
}
.dashboard-boot__msg {
  margin: 0;
  font-size: var(--fs-body);
}
.dashboard-boot--error {
  text-align: left;
}

/* Schedule paragraph — same look as other card body text. */
.dashboard-schedule {
  margin: 0;
  color: var(--color-ink-700);
}

/* Phone meta on a pickup-mini row — matches relationship label tone. */
.pickup-mini__phone {
  color: var(--color-ink-700);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  font-weight: var(--fw-semibold);
}

/* Inline add-adult form — appears when the user opens the dashed-border
   <summary>. The summary uses the existing .adult-add visual; the form
   below it stacks form-rows + a primary submit. */
.adult-add-wrap {
  margin-top: var(--space-3);
}
.adult-add-wrap[open] > .adult-add {
  border-style: solid;
  border-color: var(--color-royal-600);
  background: var(--color-sky-100);
  margin-bottom: var(--space-3);
}
.adult-add-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-ink-50);
  border-radius: var(--radius-md);
}
.adult-add-actions {
  display: flex;
  justify-content: flex-end;
}
/* Hide the default disclosure triangle on the <summary> so it reads as a
   button. The dashed-border affordance from .adult-add carries the meaning. */
.adult-add-wrap > summary {
  list-style: none;
}
.adult-add-wrap > summary::-webkit-details-marker {
  display: none;
}
