:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #e4e5e9;
  --accent: #1f7a4d;
  --accent-deep: #15613b;
  --accent-soft: #e9f3ed;
  --accent-light: #8ad3aa;
  --navy: #1d1f24;
  --danger: #c0362c;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 16px rgba(17, 24, 39, 0.05);
  --shadow: 0 2px 6px rgba(17, 24, 39, 0.05), 0 20px 44px rgba(17, 24, 39, 0.09);

  /* legacy aliases so older rules adopt the refreshed palette */
  --paper: var(--bg);
  --line: var(--hairline);
  --grass: var(--accent);
  --grass-dark: var(--accent-deep);
  --gold: #c98a1e;
  --sky: #eaf1fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, ui-sans-serif, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0;
}

.brand.centered {
  justify-content: center;
}

.brand-mark {
  align-items: center;
  background: var(--grass);
  border-radius: 12px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 750;
  gap: 18px;
  justify-content: flex-end;
}

.nav a:hover,
.footer a:hover {
  color: var(--grass-dark);
}

.hero {
  background: var(--navy);
  color: var(--white);
  min-height: min(620px, 76vh);
  overflow: hidden;
  position: relative;
}

.hero-photo {
  height: 100%;
  inset: 0 0 0 auto;
  object-fit: cover;
  object-position: 68% 18%;
  position: absolute;
  width: min(62vw, 900px);
}

.hero-wash {
  background:
    linear-gradient(90deg, rgba(20, 22, 28, 0.97) 0%, rgba(20, 22, 28, 0.85) 40%, rgba(20, 22, 28, 0.30) 62%, rgba(20, 22, 28, 0) 88%);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 720px;
  padding: clamp(44px, 8vw, 78px) clamp(20px, 7vw, 76px);
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-light);
}

.hero h1,
.section h2,
.result-card h1,
.admin-head h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  max-width: 12ch;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
  margin: 20px 0 0;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.button {
  align-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 50px;
  padding: 0 24px;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.button:active {
  transform: scale(0.98);
}

.button.primary {
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--white);
}

.button.primary:hover {
  background: var(--accent-deep);
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--surface-2);
  border-color: #d5d6db;
}

.button.full {
  width: 100%;
}

.button.compact {
  font-size: 0.92rem;
  min-height: 40px;
  padding: 0 16px;
}

.button.danger {
  color: var(--danger);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button:disabled:hover {
  background: var(--accent);
  transform: none;
}

.button.secondary:disabled:hover {
  background: var(--surface);
}

.section {
  padding: clamp(48px, 8vw, 84px) clamp(20px, 7vw, 76px);
  scroll-margin-top: 104px;
}

.intro-grid,
.signup-section {
  display: grid;
  gap: clamp(28px, 6vw, 74px);
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
}

.section h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 16ch;
}

.body-copy {
  color: #344135;
  font-size: clamp(1.04rem, 2vw, 1.18rem);
}

.body-copy p:first-child {
  margin-top: 0;
}

.details-band {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 0;
  padding-top: 0;
}

.detail {
  border-left: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 46px) clamp(20px, 4vw, 40px);
}

.detail:first-child {
  border-left: 0;
}

.detail-label {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.detail strong {
  color: var(--ink);
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 14em;
}

.signup-section {
  align-items: start;
  background: #edf4ee;
}

.signup-copy {
  position: sticky;
  top: 104px;
}

.signup-copy p:not(.section-kicker) {
  color: var(--muted);
  max-width: 34rem;
}

.status-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font-weight: 750;
  margin-top: 24px;
  padding: 16px;
}

.status-panel[data-ready="true"] {
  border-left-color: var(--grass);
}

.signup-form,
.admin-login,
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

legend,
.signup-form label:not(.option-card):not(.waiver) > span,
.admin-login label > span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.option-card {
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  margin-bottom: 10px;
  padding: 16px;
}

.option-card:has(input:checked) {
  border-color: var(--grass);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.1);
}

.option-card[data-enabled="false"] {
  opacity: 0.68;
}

.option-card input {
  accent-color: var(--grass);
  height: 20px;
  margin-top: 4px;
  min-height: 20px;
  width: 20px;
}

.option-card strong {
  color: var(--navy);
  display: block;
  font-size: 1.04rem;
}

.option-meta {
  color: var(--grass-dark);
  display: block;
  font-size: 0.95rem;
  font-weight: 850;
  margin-top: 2px;
}

.option-copy {
  color: var(--muted);
  display: block;
  font-size: 0.94rem;
  margin-top: 6px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.signup-form label,
.admin-login label {
  display: block;
  margin-bottom: 16px;
}

input,
select,
textarea {
  background: #fffefb;
  border: 1.5px solid #cfd8cd;
  border-radius: 12px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--grass);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
}

.hidden-field {
  left: -100vw;
  position: absolute;
}

.waiver {
  align-items: flex-start;
  background: #f6f7f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 14px;
}

.waiver input {
  height: 20px;
  margin-top: 2px;
  min-height: 20px;
  width: 20px;
}

.waiver span {
  color: #344135;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

.form-message {
  background: #fff4f2;
  border: 1px solid #f0b8b1;
  border-radius: 12px;
  color: var(--danger);
  font-weight: 750;
  margin: 14px 0;
  padding: 13px 14px;
}

.form-message[data-type="info"] {
  background: var(--sky);
  border-color: #bfdbfe;
  color: var(--navy);
}

.calendar-section {
  background: var(--paper);
}

.calendar-head {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  margin-bottom: 28px;
}

.calendar-head h2 {
  max-width: 13ch;
}

.camp-calendar {
  display: grid;
  gap: 22px;
}

.calendar-months {
  display: grid;
  gap: 22px;
}

.month {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.month__head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  padding: 18px 22px 14px;
}

.month__name {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.month__year {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.month__weekdays {
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 10px 8px;
}

.month__weekdays span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.month__weeks {
  --bar-h: 30px;
}

.week + .week {
  border-top: 1px solid var(--hairline);
}

.week__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.day {
  padding: 7px 10px 1px;
  text-align: right;
}

.day__num {
  color: var(--ink);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.day--muted .day__num {
  color: #c5c6cb;
}

.week__bars {
  display: grid;
  gap: 4px 0;
  grid-template-columns: repeat(7, 1fr);
  min-height: var(--bar-h);
  padding-bottom: 8px;
}

.bar {
  --bar-accent: var(--accent);
  --bar-bg: var(--accent-soft);
  align-items: center;
  background: var(--bar-bg);
  border: 0;
  border-left: 3px solid var(--bar-accent);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 6px;
  margin: 0 4px;
  min-width: 0;
  overflow: hidden;
  padding: 0 9px;
  text-align: left;
  white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.bar[data-clip-left] {
  border-bottom-left-radius: 0;
  border-left-width: 0;
  border-top-left-radius: 0;
  margin-left: 0;
}

.bar[data-clip-right] {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  margin-right: 0;
}

.bar__title {
  color: var(--ink);
  flex: 0 1 auto;
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar__meta {
  color: var(--muted);
  flex: 0 1 auto;
  font-size: 0.72rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.bar.is-selected {
  box-shadow: inset 0 0 0 2px var(--bar-accent);
}

.bar.is-disabled {
  background: #f1f1f3;
  border-left-color: #cccdd2;
  cursor: not-allowed;
}

.bar.is-disabled .bar__title {
  color: var(--muted);
  font-weight: 500;
}

.bar[data-color="blue"] { --bar-accent: #2f6fed; --bar-bg: #eaf1fe; }
.bar[data-color="gold"] { --bar-accent: #c98a1e; --bar-bg: #f8efd9; }
.bar[data-color="red"] { --bar-accent: #d8453a; --bar-bg: #fcebe9; }
.bar[data-color="purple"] { --bar-accent: #7c54e0; --bar-bg: #efeafb; }
.bar[data-color="slate"] { --bar-accent: #5b6472; --bar-bg: #eef0f3; }

.agenda {
  display: none;
}

.agenda__item {
  --bar-accent: var(--accent);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--bar-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.agenda__item[data-color="blue"] { --bar-accent: #2f6fed; }
.agenda__item[data-color="gold"] { --bar-accent: #c98a1e; }
.agenda__item[data-color="red"] { --bar-accent: #d8453a; }
.agenda__item[data-color="purple"] { --bar-accent: #7c54e0; }
.agenda__item[data-color="slate"] { --bar-accent: #5b6472; }

.agenda__date {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.agenda__title {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.agenda__meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.agenda__item.is-selected {
  box-shadow: inset 0 0 0 2px var(--bar-accent);
}

.agenda__item.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.calendar-color-pill {
  align-items: center;
  background: #edf4ee;
  border: 1px solid #bfd6c5;
  border-radius: 999px;
  color: var(--grass-dark);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 850;
  margin-left: 6px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.calendar-color-pill[data-color="blue"] {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.calendar-color-pill[data-color="gold"] {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.calendar-color-pill[data-color="red"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.calendar-color-pill[data-color="purple"] {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}

.calendar-color-pill[data-color="slate"] {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.selected-camp {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--grass);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding: 16px;
}

.selected-camp strong {
  color: var(--navy);
}

.selected-camp span {
  color: var(--muted);
  font-weight: 700;
}

.footer {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: flex;
  font-weight: 750;
  justify-content: space-between;
  padding: 28px clamp(20px, 7vw, 76px);
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.plain-page {
  align-items: center;
  background: linear-gradient(135deg, #edf4ee, #dbeafe);
  display: flex;
  min-height: 100vh;
  padding: 20px;
}

.result-card {
  margin: auto;
  max-width: 620px;
  text-align: center;
}

.result-card h1 {
  color: var(--navy);
  font-size: clamp(2.1rem, 6vw, 4rem);
  margin-top: 28px;
}

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

.small {
  font-size: 0.86rem;
}

.result-actions {
  margin-top: 26px;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin-head h1 {
  color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.admin-login {
  max-width: 520px;
}

.admin-content {
  display: grid;
  gap: 26px;
}

.admin-content[hidden] {
  display: none;
}

.camp-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.camp-form label {
  display: block;
  margin-bottom: 16px;
}

.camp-form label > span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-section-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.form-section-head h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  margin: 0;
}

.form-section-head p {
  margin-bottom: 0;
}

.form-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.camp-dashboard {
  display: grid;
  gap: 16px;
}

.camp-admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.camp-admin-top {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  padding: 22px;
}

.camp-admin-top h2 {
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.12;
  margin: 10px 0 6px;
}

.camp-admin-top p {
  margin: 5px 0;
}

.camp-stats {
  align-items: stretch;
  background: #f6f7f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.camp-stats strong {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.roster-table {
  border-top: 1px solid var(--line);
  display: grid;
}

.roster-row {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.46fr);
  padding: 16px 22px;
}

.roster-row + .roster-row {
  border-top: 1px solid var(--line);
}

.roster-row > div {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roster-row a {
  color: var(--grass-dark);
  font-weight: 750;
}

.roster-empty {
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.camp-message {
  background: var(--surface-2);
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 12px;
  padding: 18px 22px;
}

.camp-message label {
  display: block;
  margin: 0;
}

.camp-message label > span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.msg-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.msg-status {
  color: var(--muted);
}

.wide {
  width: 100%;
}

.registrations {
  display: grid;
  gap: 14px;
}

.registration-card,
.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.registration-card {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.4fr);
  padding: 22px;
}

.registration-card h2 {
  color: var(--navy);
  font-size: 1.45rem;
  margin: 8px 0 4px;
}

.registration-card p {
  margin: 5px 0;
}

.registration-side {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.registration-side a {
  color: var(--grass-dark);
  font-weight: 750;
}

.pill {
  background: #f6ead1;
  border-radius: 999px;
  color: #6c4300;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 5px 10px;
  text-transform: uppercase;
}

.pill[data-status="paid"] {
  background: #dff3e5;
  color: var(--grass-dark);
}

.pill[data-status="open"] {
  background: #dff3e5;
  color: var(--grass-dark);
}

.pill[data-status="closed"],
.pill[data-status="checkout_failed"] {
  background: #f7dad6;
  color: var(--danger);
}

.pill[data-status="expired"] {
  background: #f7dad6;
  color: var(--danger);
}

.empty-state {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px;
}

.empty-state strong {
  color: var(--navy);
}

.children-list {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.child-row {
  background: #f6f7f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.child-row-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.child-row-title {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-button {
  background: none;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 750;
  padding: 4px;
}

.add-child {
  margin-bottom: 18px;
  width: 100%;
}

.optional {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.selected-camp-notes {
  background: #f6f7f2;
  border-radius: 6px;
  color: #344135;
  font-size: 0.85rem;
  font-weight: 650;
  margin-top: 8px;
  padding: 8px 10px;
}

.faq-section {
  background: #edf4ee;
}

.faq-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 28px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.faq-item h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.faq-item p {
  color: var(--muted);
  margin: 0;
}

.faq-intro {
  margin: 12px 0 0;
  max-width: 52ch;
}

.faq-cta {
  margin-top: 30px;
}

.intro-cta {
  margin-top: 24px;
}

.footer-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.contact-info a:hover {
  color: var(--white);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.medical-flag {
  background: #fff4f2;
  border-radius: 6px;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 750;
  padding: 4px 8px;
}

.success-details {
  background: #f6f7f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 26px auto 0;
  max-width: 440px;
  padding: 20px 22px;
  text-align: left;
}

.success-details li {
  color: #344135;
}

.success-details strong {
  color: var(--navy);
}

.cta-band {
  align-items: center;
  background: var(--grass-dark);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
}

.cta-band h2 {
  color: var(--white);
  margin: 6px 0 0;
}

.cta-copy {
  color: rgba(255, 255, 255, 0.82);
  margin: 10px 0 0;
  max-width: 42ch;
}

@media (max-width: 860px) {
  .hero {
    min-height: 640px;
  }

  .hero-photo {
    height: 56%;
    inset: auto 0 0;
    object-position: 52% 12%;
    width: 100%;
  }

  .hero-wash {
    background: linear-gradient(180deg, rgba(20, 22, 28, 0.96) 0%, rgba(20, 22, 28, 0.82) 46%, rgba(20, 22, 28, 0.34) 74%, rgba(20, 22, 28, 0) 100%);
  }

  .hero-content {
    padding-top: 44px;
  }

  .intro-grid,
  .signup-section,
  .details-band,
  .registration-card,
  .calendar-head,
  .camp-admin-top,
  .roster-row {
    grid-template-columns: 1fr;
  }

  .signup-copy {
    position: static;
  }
}

@media (min-width: 861px) {
  .section {
    scroll-margin-top: 72px;
  }
}

@media (max-width: 560px) {
  .nav {
    font-size: 0.9rem;
    gap: 14px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-photo {
    height: 66%;
    object-position: 52% 8%;
  }

  .hero-content {
    padding-top: 18px;
    padding-left: 14px;
  }

  .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 1.02rem;
    margin-top: 16px;
  }

  .hero-actions,
  .footer,
  .admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  /* Keep the real month calendar on phones, just denser, so the overlapping
     camp bars stay visible. The bar meta is dropped to fit; tap a bar to see
     full details (time, spots, location) in the panel below. */
  .month__weeks {
    --bar-h: 22px;
  }

  .month__head {
    padding: 14px 14px 10px;
  }

  .month__name {
    font-size: 1.1rem;
  }

  .month__weekdays {
    padding: 0 4px 6px;
  }

  .month__weekdays span {
    font-size: 0.58rem;
  }

  .day {
    padding: 5px 5px 1px;
  }

  .day__num {
    font-size: 0.72rem;
  }

  .week__bars {
    gap: 3px 0;
  }

  .bar {
    border-radius: 5px;
    gap: 0;
    margin: 0 2px;
    padding: 0 5px;
  }

  .bar__title {
    font-size: 0.64rem;
  }

  .bar__meta {
    display: none;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media print {
  .topbar,
  .admin-actions,
  .admin-login,
  .camp-form,
  .form-section-head,
  #admin-message,
  .footer,
  .nav,
  .camp-stats button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .admin-shell {
    max-width: none;
  }

  .camp-admin-card {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 14px;
  }

  .roster-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .roster-row a,
  .medical-flag {
    color: #000;
  }

  .section {
    padding: 0;
  }
}
