:root {
  --pine-950: #14251b;
  --pine-900: #203629;
  --pine-700: #355945;
  --pine-100: #dce7df;
  --cream: #f5f1e7;
  --paper: #fffdf8;
  --clay: #c85732;
  --ink: #17221b;
  --muted: #5d685f;
  --nav-height: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

a { -webkit-tap-highlight-color: transparent; }

.content-shell { max-width: 760px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 52px 0 42px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgb(225 174 91 / 22%) 0 9%, transparent 10%),
    linear-gradient(145deg, var(--pine-950), var(--pine-700));
}

.hero::after {
  position: absolute;
  right: -30px;
  bottom: -12px;
  color: rgb(255 255 255 / 8%);
  content: "▲▲";
  font-size: 12rem;
  letter-spacing: -3.5rem;
  line-height: .5;
  transform: scaleY(1.35);
}

.hero__eyebrow,
.section-heading__kicker {
  margin: 0 0 10px;
  color: #e8b365;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 12vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
}

.hero__details {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 27px;
  color: #eef4ef;
  font-size: 1rem;
  font-weight: 650;
}

.hero__details p { margin: 0; }
.hero__details span { display: inline-block; width: 25px; color: #e8b365; }

.action-section { padding-top: 30px; padding-bottom: 34px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading__kicker { margin-bottom: 3px; color: var(--clay); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 700; }
.section-heading__mark { color: var(--pine-700); font-size: 1.5rem; }

.action-grid { display: grid; gap: 12px; }

.action-card {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid #d9ddd7;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 0 rgb(20 37 27 / 7%);
  color: var(--ink);
  text-decoration: none;
}

.action-card:hover,
.action-card:focus-visible { border-color: var(--pine-700); color: var(--ink); transform: translateY(-1px); }
.action-card:focus-visible { outline: 3px solid #e8b365; outline-offset: 2px; }

.action-card--featured { border-color: var(--clay); background: var(--clay); color: #fff; }
.action-card--featured:hover,
.action-card--featured:focus-visible { border-color: #9f3e22; color: #fff; }

.action-card__icon {
  display: grid;
  flex: 0 0 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--pine-100);
  color: var(--pine-900);
  font-size: 1.4rem;
  font-weight: 800;
}

.action-card--featured .action-card__icon { background: rgb(255 255 255 / 18%); color: #fff; }
.action-card__copy { display: grid; min-width: 0; margin-left: 14px; }
.action-card__copy strong { font-size: 1.08rem; line-height: 1.25; }
.action-card__copy small { margin-top: 2px; color: var(--muted); font-size: .88rem; }
.action-card--featured small { color: #fff3ec; }
.action-card__arrow { margin-left: auto; padding-left: 8px; font-size: 1.4rem; font-weight: 500; }

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  border-top: 1px solid #d8ddd8;
  background: rgb(255 253 248 / 96%);
  box-shadow: 0 -6px 22px rgb(20 37 27 / 10%);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(10px);
}

.bottom-nav__inner { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; min-height: var(--nav-height); margin: 0 auto; }
.bottom-nav__link { display: flex; align-items: center; justify-content: center; flex-direction: column; min-width: 0; min-height: 56px; color: #59645c; font-size: .72rem; font-weight: 700; gap: 2px; text-decoration: none; }
.bottom-nav__link:hover,
.bottom-nav__link:focus-visible,
.bottom-nav__link.active { color: var(--clay); }
.bottom-nav__link:focus-visible { outline: 3px solid #e8b365; outline-offset: -4px; }
.bottom-nav__icon { min-height: 25px; font-size: 1.35rem; line-height: 1; }

@media (min-width: 576px) {
  .hero { padding-top: 66px; }
  .action-section { padding-top: 38px; }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-card--featured { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .action-card { transition: border-color 150ms ease, transform 150ms ease; }
}


/* RSVP and event dashboard */
.dashboard {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: -24px;
}

.stat-card {
  display: grid;
  min-width: 0;
  min-height: 78px;
  align-content: center;
  border: 1px solid #d9ddd7;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgb(20 37 27 / 12%);
  text-align: center;
}

.stat-card strong { color: var(--pine-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1; }
.stat-card span { margin-top: 5px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.rsvp-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 14px;
  background: var(--pine-900);
  color: #fff;
}

.rsvp-preview h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.rsvp-preview > div { min-width: 0; }
.rsvp-preview h2 { overflow-wrap: anywhere; }
.rsvp-preview p { margin: 3px 0 0; color: #dce7df; }
.rsvp-preview .section-heading__kicker { margin-bottom: 3px; color: #e8b365; }
.touch-button { min-height: 48px; padding: 11px 18px; font-weight: 750; }

.flash-stack { position: fixed; z-index: 20; top: 12px; right: 0; left: 0; pointer-events: none; }
.flash-message { margin: 0; border: 0; box-shadow: 0 5px 24px rgb(20 37 27 / 24%); font-weight: 700; pointer-events: auto; }

.page-header {
  padding: 28px 0 34px;
  background: linear-gradient(145deg, var(--pine-950), var(--pine-700));
  color: #fff;
}

.page-header .hero__eyebrow { margin-top: 28px; }
.page-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 10vw, 3.7rem); font-weight: 700; line-height: 1; }
.page-header p:last-child { max-width: 520px; margin: 13px 0 0; color: #e4ece6; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; color: #fff; font-weight: 750; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { color: #e8b365; }

.form-shell { padding-top: 24px; padding-bottom: 38px; }
.rsvp-form { display: grid; gap: 14px; }
.form-card, .current-rsvp {
  min-width: 0;
  padding: 19px 17px;
  border: 1px solid #d9ddd7;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 0 rgb(20 37 27 / 7%);
}

.form-card legend { float: none; width: auto; margin: 0 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; }
.form-label { margin-bottom: 6px; font-weight: 750; }
.form-control { min-height: 48px; border-color: #aeb8b0; background: #fff; color: var(--ink); font-size: 1rem; }
.form-control:focus { border-color: var(--pine-700); box-shadow: 0 0 0 .22rem rgb(53 89 69 / 20%); }
.form-text, .form-hint { color: var(--muted); }
.form-hint { margin: -8px 0 10px; font-size: .9rem; }

.touch-check {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin-top: 7px;
  padding: 9px 12px;
  border: 1px solid #d9ddd7;
  border-radius: 11px;
  background: #fff;
}

.touch-check .form-check-input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0 12px 0 0; }
.touch-check .form-check-label { flex: 1; font-weight: 700; }
.form-check-input:checked { border-color: var(--clay); background-color: var(--clay); }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-pill { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid #aeb8b0; border-radius: 11px; background: #fff; font-weight: 750; cursor: pointer; }
.choice-pill input { width: 20px; height: 20px; margin-right: 7px; accent-color: var(--clay); }
.choice-grid--invalid { padding: 3px; border: 2px solid #b02a37; border-radius: 13px; }
.field-error { margin-top: 7px; color: #b02a37; font-size: .875rem; }
.form-errors { padding: 14px 16px; border-left: 5px solid #b02a37; border-radius: 8px; background: #f8d7da; color: #842029; }
.submit-button { width: 100%; background: var(--clay); color: #fff; font-size: 1.08rem; }
.submit-button:hover, .submit-button:focus-visible { background: #9f3e22; color: #fff; }
.privacy-note { margin: -2px 0 0; color: var(--muted); font-size: .84rem; text-align: center; }

.current-rsvp { margin-bottom: 18px; border-color: var(--pine-700); background: var(--pine-900); color: #fff; }
.current-rsvp .section-heading__kicker { margin-bottom: 3px; color: #e8b365; }
.current-rsvp h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.summary-grid div { min-width: 0; }
.summary-grid__wide { grid-column: 1 / -1; }
.summary-grid dt { color: #bfcfc3; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.summary-grid dd { margin: 2px 0 0; font-weight: 700; }

@media (min-width: 576px) {
  .dashboard { gap: 12px; }
  .stat-card { min-height: 92px; }
  .stat-card strong { font-size: 2rem; }
  .form-card, .current-rsvp { padding: 24px; }
}

/* Food plan */
.food-header { padding-bottom: 28px; }
.food-add-button { margin-top: 20px; background: #e8b365; color: var(--pine-950); }
.food-add-button:hover, .food-add-button:focus-visible { background: #f2c681; color: var(--pine-950); }
.food-shell { display: grid; gap: 34px; padding-top: 26px; padding-bottom: 40px; }
.compact-heading { align-items: center; margin-bottom: 14px; }
.compact-heading h2 { font-size: 1.55rem; }

.food-headcounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.food-headcount {
  display: grid;
  min-width: 0;
  min-height: 78px;
  align-content: center;
  border: 1px solid #d9ddd7;
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.food-headcount strong { color: var(--pine-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; line-height: 1; }
.food-headcount span { margin-top: 5px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.headcount-note { margin: 8px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.needed-count { flex: 0 0 auto; border-radius: 999px; background: var(--pine-100); padding: 6px 10px; color: var(--pine-900); font-size: .76rem; font-weight: 800; }
.needed-groups { display: grid; gap: 14px; }
.needed-group { overflow: hidden; border: 1px solid #d9ddd7; border-radius: 14px; background: var(--paper); box-shadow: 0 3px 0 rgb(20 37 27 / 7%); }
.needed-group > h3 { margin: 0; padding: 12px 16px; background: var(--pine-900); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.needed-list { display: grid; }
.needed-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 3px 9px; min-width: 0; padding: 13px 14px; border-bottom: 1px solid #e2e4df; }
.needed-item:last-child { border-bottom: 0; }
.needed-item__status { display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid var(--clay); border-radius: 50%; color: var(--clay); font-weight: 900; }
.needed-item__copy { min-width: 0; }
.needed-item__copy h4 { margin: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: 800; }
.needed-item__copy p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.needed-item form { grid-column: 2; margin-top: 5px; }
.needed-item--claimed { background: #f3f7f3; }
.needed-item--claimed .needed-item__status { border-color: var(--pine-700); background: var(--pine-700); color: #fff; }
.claim-button, .unclaim-button { min-height: 48px; padding: 10px 13px; font-size: .86rem; font-weight: 800; }
.claim-button { background: var(--clay); color: #fff; }
.claim-button:hover, .claim-button:focus-visible { background: #9f3e22; color: #fff; }
.unclaim-button { border: 1px solid #9aa69d; background: transparent; color: var(--pine-900); }

.empty-card { padding: 22px 18px; border: 1px dashed #9aa69d; border-radius: 14px; background: rgb(255 253 248 / 60%); text-align: center; }
.empty-card p { margin: 5px 0 0; color: var(--muted); }
.meal-plan { min-width: 0; }
.food-day { min-width: 0; margin-top: 18px; scroll-margin-top: 16px; }
.food-day + .food-day { margin-top: 30px; }
.food-day__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; border-bottom: 3px solid var(--pine-700); padding: 0 2px 9px; }
.food-day__heading h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.food-day__heading span { flex: 0 0 auto; color: var(--muted); font-size: .78rem; font-weight: 750; }
.meal-block { min-width: 0; margin-top: 16px; }
.meal-block > h4 { margin: 0 0 8px; color: var(--clay); font-size: .79rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.meal-empty { margin: 0; border-radius: 11px; background: rgb(255 253 248 / 60%); padding: 14px; color: var(--muted); font-size: .9rem; }
.contribution-list { display: grid; gap: 9px; }
.contribution-card { min-width: 0; border: 1px solid #d9ddd7; border-radius: 12px; background: var(--paper); padding: 14px; box-shadow: 0 2px 0 rgb(20 37 27 / 6%); }
.contribution-card__topline { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.contribution-card h5 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 800; }
.your-item { flex: 0 0 auto; border-radius: 999px; background: var(--pine-100); padding: 3px 8px; color: var(--pine-900); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.contribution-person { margin: 3px 0 0; color: var(--muted); font-size: .88rem; font-weight: 650; }
.contribution-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.contribution-meta span { border-radius: 6px; background: #eee8da; padding: 4px 7px; color: #4a544d; font-size: .78rem; font-weight: 700; }
.contribution-notes { margin: 9px 0 0; overflow-wrap: anywhere; color: #3d4740; font-size: .88rem; }
.contribution-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e2e4df; }
.contribution-actions form { margin: 0; }
.edit-button, .delete-button { min-height: 48px; padding: 11px 14px; font-size: .86rem; font-weight: 800; }
.edit-button { background: var(--pine-700); color: #fff; }
.edit-button:hover, .edit-button:focus-visible { background: var(--pine-950); color: #fff; }
.delete-button { border: 1px solid #b6aaa5; color: #8b3322; }
.cancel-button { width: 100%; border: 1px solid #9aa69d; color: var(--pine-900); font-weight: 750; }
.form-select { min-height: 48px; border-color: #aeb8b0; }
.form-select:focus { border-color: var(--pine-700); box-shadow: 0 0 0 .22rem rgb(53 89 69 / 20%); }
.form-row { display: grid; gap: 14px; }

@media (min-width: 576px) {
  .food-headcounts { gap: 12px; }
  .needed-item { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .needed-item form { grid-column: 3; grid-row: 1; margin-top: 0; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contribution-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared camp gear */
.gear-header { padding-bottom: 28px; }
.gear-shell { display: grid; gap: 34px; padding-top: 26px; padding-bottom: 40px; }
.gear-list { display: grid; gap: 10px; }
.gear-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
.gear-card__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 11px; background: var(--pine-100); color: var(--pine-900); font-size: 1.35rem; font-weight: 900; }
.gear-card__content { min-width: 0; }
.gear-card h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 800; }

@media (min-width: 576px) {
  .gear-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Current camp information */
.info-header { padding-bottom: 30px; }
.info-shell { display: grid; gap: 30px; padding-top: 26px; padding-bottom: 42px; }
.fieldset-help { margin: -7px 0 14px; color: var(--muted); font-size: .9rem; }

.home-announcement {
  display: grid;
  gap: 13px;
  min-width: 0;
  margin-bottom: 26px;
  border-left: 6px solid #e8b365;
  border-radius: 13px;
  background: var(--pine-900);
  padding: 18px;
  color: #fff;
}
.home-announcement h2 { margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.home-announcement p { margin: 6px 0 0; color: #e2ece5; }
.home-announcement a { display: inline-flex; align-items: center; min-height: 48px; color: #f2c681; font-weight: 800; }

.schedule-days { display: grid; gap: 30px; }
.schedule-day h2 { margin: 0 0 12px; border-bottom: 3px solid var(--pine-700); padding-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.schedule-list { display: grid; }
.schedule-card { display: grid; grid-template-columns: 22px minmax(0, 1fr); min-width: 0; }
.schedule-card__rail { position: relative; }
.schedule-card__rail::before { position: absolute; top: 0; bottom: 0; left: 9px; width: 3px; background: #bdcbbf; content: ""; }
.schedule-card:first-child .schedule-card__rail::before { top: 20px; }
.schedule-card:last-child .schedule-card__rail::before { bottom: calc(100% - 22px); }
.schedule-card__rail span { position: relative; z-index: 1; display: block; width: 15px; height: 15px; margin: 17px 0 0 3px; border: 3px solid var(--cream); border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 2px var(--clay); }
.schedule-card__content { min-width: 0; margin: 0 0 10px 5px; border: 1px solid #d9ddd7; border-radius: 13px; background: var(--paper); padding: 15px; box-shadow: 0 2px 0 rgb(20 37 27 / 6%); }
.schedule-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.schedule-card h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 800; }
.schedule-card p { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--muted); }
.schedule-time { color: var(--clay) !important; font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.detail-line { font-size: .86rem; font-weight: 700; }
.optional-badge { flex: 0 0 auto; border-radius: 999px; background: #f7dfbc; padding: 4px 8px; color: #71381f; font-size: .68rem; font-weight: 850; text-transform: uppercase; }

.info-callout { border-left: 5px solid #e8b365; border-radius: 10px; background: var(--paper); padding: 16px; }
.info-callout p { margin: 4px 0 0; color: var(--muted); }
.ride-list, .announcement-list, .marker-list { display: grid; gap: 11px; }
.ride-card, .announcement-card, .marker-list article, .event-info-card, .area-overview-card, .location-card, .layout-map-card {
  min-width: 0;
  border: 1px solid #d9ddd7;
  border-radius: 14px;
  background: var(--paper);
  padding: 18px;
  box-shadow: 0 3px 0 rgb(20 37 27 / 7%);
}
.ride-card__heading, .announcement-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.ride-card h3, .announcement-card h2, .marker-list h3, .event-info-card h2, .area-overview-card h2, .location-card h2 { margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.ride-card__heading p { margin: 3px 0 0; color: var(--muted); font-weight: 700; }
.ride-seat-count { display: flex; align-items: center; gap: 10px; margin-top: 15px; border-radius: 10px; background: var(--pine-100); padding: 11px; color: var(--pine-900); }
.ride-seat-count strong { flex: 0 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; line-height: 1; }
.ride-seat-count span { font-size: .85rem; font-weight: 750; }
.ride-details { display: grid; gap: 8px; margin: 13px 0 0; }
.ride-details div { min-width: 0; }
.ride-details dt { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ride-details dd { margin: 2px 0 0; overflow-wrap: anywhere; font-weight: 700; }

.location-card { text-align: center; }
.location-card__icon { display: grid; width: 58px; height: 58px; margin: 0 auto 15px; place-items: center; border-radius: 50%; background: var(--pine-100); color: var(--pine-900); font-size: 1.7rem; }
.location-card > p:not(.section-heading__kicker) { margin: 10px 0 18px; color: var(--muted); }
.area-overview-card p, .event-info-card p { margin: 9px 0 18px; color: var(--muted); }
.info-note { border-radius: 9px; background: #eee8da; padding: 12px; }
.announcement-card--pinned { border-left: 6px solid #e8b365; }
.announcement-card p { margin: 9px 0 0; overflow-wrap: anywhere; color: #3d4740; }

.map-placeholder { position: relative; display: grid; overflow: hidden; min-height: 230px; place-items: center; align-content: center; border: 2px dashed #9aa69d; border-radius: 12px; background: #ece8dd; padding: 22px; text-align: center; }
.map-placeholder > span { color: var(--clay); font-size: 2.4rem; }
.map-placeholder h2 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.map-placeholder p { margin: 7px 0 0; color: var(--muted); }
.layout-marker-layer { position: absolute; inset: 14px; pointer-events: none; }
.layout-marker-point { position: absolute; display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--clay); box-shadow: 0 2px 8px rgb(20 37 27 / 35%); color: #fff; font-size: .78rem; font-weight: 900; transform: translate(-50%, -50%); }
.layout-notes { margin: 14px 0 0; overflow-wrap: anywhere; color: var(--muted); }
.area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.area-list li { display: flex; min-width: 0; min-height: 52px; align-items: center; border: 1px solid #d9ddd7; border-radius: 10px; background: var(--paper); padding: 10px 12px; overflow-wrap: anywhere; font-size: .9rem; font-weight: 750; }
.area-list li::before { flex: 0 0 auto; margin-right: 8px; color: var(--clay); content: "◆"; font-size: .63rem; }
.marker-list article p { margin: 6px 0 0; color: var(--muted); }

.more-grid { display: grid; gap: 11px; }
.event-info-card { border-top: 5px solid var(--pine-700); }

@media (min-width: 576px) {
  .home-announcement { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ride-list, .announcement-list, .marker-list, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ride-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Guest access, administrator foundation, and My Camp */
.access-page, .admin-login-page { min-height: calc(100dvh - var(--nav-height)); background: linear-gradient(155deg, var(--pine-950), #294b38); color: #fff; }
.admin-login-page { background: linear-gradient(155deg, #241d19, #5f392d); }
.access-shell { display: grid; max-width: 520px; gap: 14px; align-content: center; min-height: calc(100dvh - var(--nav-height)); padding-top: 38px; padding-bottom: 38px; }
.access-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 15px; background: #e8b365; color: var(--pine-950); font-size: 1.55rem; }
.access-shell h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 11vw, 3.8rem); line-height: 1; }
.access-intro { max-width: 440px; margin: 0 0 5px; color: #e1ebe4; font-size: 1.03rem; }
.access-form { display: grid; gap: 15px; margin-top: 8px; border-radius: 15px; background: var(--paper); padding: 19px; color: var(--ink); box-shadow: 0 12px 30px rgb(0 0 0 / 22%); }
.access-submit, .admin-submit { width: 100%; min-height: 52px; background: #e8b365; color: var(--pine-950); font-size: 1.03rem; font-weight: 850; }
.access-submit:hover, .access-submit:focus-visible { background: #f2c681; color: var(--pine-950); }
.admin-submit { background: var(--clay); color: #fff; }
.admin-submit:hover, .admin-submit:focus-visible { background: #9f3e22; color: #fff; }
.access-note { color: #cbd9cf; }
.admin-eyebrow { margin: 0 0 8px; color: #f0bd7a; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.admin-header { padding: 36px 0 30px; background: linear-gradient(145deg, #241d19, #6f402f); color: #fff; }
.admin-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 9vw, 3.5rem); line-height: 1; }
.admin-header > div > p:last-of-type { margin: 12px 0 0; color: #f1ded5; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.admin-actions form { margin: 0; }
.admin-secondary { border: 1px solid #f0bd7a; color: #fff; }
.admin-secondary:hover, .admin-secondary:focus-visible { background: #f0bd7a; color: #241d19; }
.admin-logout { border: 1px solid #dcc9c0; color: #fff; }
.admin-shell { display: grid; gap: 28px; padding-top: 26px; padding-bottom: 42px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-stat-grid article { display: grid; min-width: 0; min-height: 116px; align-content: center; border: 1px solid #d9d4cf; border-radius: 13px; background: var(--paper); padding: 15px; box-shadow: 0 3px 0 rgb(36 29 25 / 8%); }
.admin-stat-grid strong { overflow-wrap: anywhere; color: #6f402f; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; line-height: 1; }
.admin-stat-grid span { margin-top: 7px; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.admin-stat-grid small { margin-top: 3px; color: var(--muted); }
.admin-foundation-note { border-left: 5px solid #6f402f; border-radius: 10px; background: var(--paper); padding: 17px; }
.admin-foundation-note p { margin: 4px 0 0; color: var(--muted); }

.action-card--personal { border-color: #b58a47; background: #fff8e9; }
.forget-access-card { border: 1px solid #c9c8c1; border-radius: 14px; background: transparent; padding: 18px; text-align: center; }
.forget-access-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.forget-access-card p { margin: 7px 0 14px; color: var(--muted); }
.forget-access-button { border: 1px solid #9aa69d; color: var(--pine-900); font-weight: 800; }

.my-camp-header { padding-bottom: 32px; }
.my-camp-shell { display: grid; gap: 34px; padding-top: 26px; padding-bottom: 42px; }
.my-camp-section { min-width: 0; }
.my-camp-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.my-camp-section__heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.my-camp-section__heading a { display: inline-flex; min-height: 48px; align-items: center; color: var(--clay); font-weight: 850; }
.personal-list { display: grid; gap: 10px; }
.personal-card, .personal-empty { min-width: 0; border: 1px solid #d9ddd7; border-radius: 13px; background: var(--paper); padding: 16px; box-shadow: 0 2px 0 rgb(20 37 27 / 6%); }
.personal-card--featured { border-top: 5px solid var(--pine-700); }
.personal-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 850; }
.personal-card p, .personal-empty p { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--muted); }
.personal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.personal-tags span { border-radius: 999px; background: var(--pine-100); padding: 5px 9px; color: var(--pine-900); font-size: .75rem; font-weight: 800; }
.personal-edit, .personal-add { margin-top: 13px; background: var(--pine-700); color: #fff; font-weight: 800; }
.personal-edit:hover, .personal-edit:focus-visible, .personal-add:hover, .personal-add:focus-visible { background: var(--pine-950); color: #fff; }
.personal-empty { border-style: dashed; text-align: center; }

@media (min-width: 576px) {
  .access-form { padding: 24px; }
  .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .personal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Administrator content management */
.admin-content-header { padding-bottom: 26px; }
.admin-content-header h1 { overflow-wrap: anywhere; }
.admin-content-shell { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 42px; }
.admin-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-page-toolbar h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }
.admin-primary { min-height: 48px; background: #6f402f; color: #fff; font-weight: 850; }
.admin-primary:hover, .admin-primary:focus-visible { background: #43271f; color: #fff; }

.admin-manage-grid, .admin-record-list, .admin-day-list { display: grid; gap: 11px; }
.admin-manage-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d9d4cf;
  border-radius: 14px;
  background: var(--paper);
  padding: 14px;
  box-shadow: 0 3px 0 rgb(36 29 25 / 8%);
  color: var(--ink);
  text-decoration: none;
}
.admin-manage-card:hover, .admin-manage-card:focus-visible { border-color: #6f402f; color: var(--ink); }
.admin-manage-card:focus-visible { outline: 3px solid #f0bd7a; outline-offset: 2px; }
.admin-manage-card__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: #eee3db; color: #6f402f; font-size: 1.25rem; font-weight: 900; }
.admin-manage-card > span:nth-child(2) { display: grid; min-width: 0; }
.admin-manage-card strong { overflow-wrap: anywhere; font-size: 1.03rem; }
.admin-manage-card small { margin-top: 2px; overflow-wrap: anywhere; color: var(--muted); font-size: .84rem; }
.admin-manage-card b { color: #6f402f; font-size: 1.6rem; }

.admin-record-card {
  min-width: 0;
  border: 1px solid #d9d4cf;
  border-radius: 14px;
  background: var(--paper);
  padding: 16px;
  box-shadow: 0 3px 0 rgb(36 29 25 / 7%);
}
.admin-record-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.admin-record-card__heading > div { min-width: 0; }
.admin-record-card h3, .admin-record-card h4 { margin: 7px 0 0; overflow-wrap: anywhere; font-size: 1.08rem; font-weight: 850; }
.admin-record-card > p { margin: 9px 0 0; overflow-wrap: anywhere; color: #48534b; }
.admin-status-row { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-status { border-radius: 999px; background: #ece8df; padding: 4px 8px; color: #4d574f; font-size: .67rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.admin-status--accent { background: #f7dfbc; color: #71381f; }
.admin-status--open { background: #f7dfbc; color: #71381f; }
.admin-status--claimed { background: var(--pine-100); color: var(--pine-900); }
.admin-record-meta { display: grid; gap: 8px; margin: 13px 0 0; }
.admin-record-meta div { min-width: 0; }
.admin-record-meta dt { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.admin-record-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .88rem; font-weight: 700; }
.admin-record-time, .admin-order { flex: 0 0 auto; color: #6f402f; font-size: .76rem; }
.admin-location, .admin-page-destination { font-size: .85rem; font-weight: 700; }
.admin-public-status { border-radius: 9px; background: #f0ece3; padding: 10px; }
.admin-record-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2ddd8; }
.admin-record-actions form { min-width: 0; margin: 0; }
.admin-record-actions .btn { width: 100%; }
.admin-edit { background: #6f402f; color: #fff; font-weight: 850; }
.admin-edit:hover, .admin-edit:focus-visible { background: #43271f; color: #fff; }
.admin-delete { border: 1px solid #b99689; color: #8b3322; font-weight: 850; }
.admin-delete:hover, .admin-delete:focus-visible { background: #8b3322; color: #fff; }
.admin-delete:disabled { border-color: #cbc4c0; background: #ece9e6; color: #756f6b; opacity: 1; }

.admin-day-group > h3 { margin: 10px 0 11px; border-bottom: 3px solid #6f402f; padding-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.admin-info-note { border-left: 5px solid #6f402f; border-radius: 10px; background: var(--paper); padding: 15px; color: var(--muted); font-size: .9rem; }
.admin-form-card { display: grid; gap: 16px; min-width: 0; border: 1px solid #d9d4cf; border-radius: 15px; background: var(--paper); padding: 18px; box-shadow: 0 4px 0 rgb(36 29 25 / 8%); }
.admin-form-intro { margin: 0; color: var(--muted); }
.admin-form-grid { display: grid; gap: 15px; }
.admin-form-card .form-control { min-height: 48px; border-color: #aeb8b0; }
.admin-form-card textarea.form-control { min-height: 118px; }
.admin-form-card .form-control:focus { border-color: #6f402f; box-shadow: 0 0 0 .22rem rgb(111 64 47 / 18%); }
.admin-check { display: flex; min-height: 52px; align-items: center; gap: 10px; border-radius: 10px; background: #f0ece3; padding: 10px 13px; }
.admin-check .form-check-input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; }
.admin-check .form-check-label { font-weight: 750; }

@media (min-width: 576px) {
  .admin-manage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-record-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-card { padding: 24px; }
}

/* Camp Chat */
.action-card--chat { border-color: #55745f; background: #f0f7ef; }
.action-card--chat .action-card__icon { background: var(--pine-700); color: #fff; }
.chat-header { background: linear-gradient(145deg, var(--pine-950), #46644d); }
.chat-shell { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 44px; }
.chat-feed-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.chat-feed-toolbar h2, .chat-composer h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.chat-refresh { flex: 0 0 auto; border: 1px solid #819288; color: var(--pine-900); font-weight: 850; }
.chat-poll-status { margin: 8px 0 12px; color: var(--muted); font-size: .8rem; }
.chat-feed { display: grid; gap: 11px; }
.chat-message { min-width: 0; border: 1px solid #d3dad4; border-radius: 15px 15px 15px 5px; background: var(--paper); padding: 14px; box-shadow: 0 2px 0 rgb(20 37 27 / 7%); }
.chat-message--owned { margin-left: 18px; border-color: #9fb5a3; border-radius: 15px 15px 5px; background: #f2f8f1; }
.chat-message--deleted { border-style: dashed; background: #f1f0eb; box-shadow: none; }
.chat-message__heading { display: flex; min-width: 0; align-items: start; justify-content: space-between; gap: 10px; }
.chat-message__heading strong { min-width: 0; overflow-wrap: anywhere; color: var(--pine-900); font-size: .98rem; }
.chat-message__heading time { flex: 0 0 auto; color: var(--muted); font-size: .7rem; }
.chat-message__body, .admin-chat-body { margin: 9px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message__removed { margin: 9px 0 0; color: var(--muted); font-style: italic; }
.chat-message__edited { display: block; margin-top: 5px; color: var(--muted); }
.chat-message__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.chat-message__actions form { margin: 0; }
.chat-action { width: 100%; min-height: 48px; border: 1px solid #8aa091; color: var(--pine-900); font-weight: 850; }
.chat-action--remove { border-color: #b99689; color: #8b3322; }
.chat-empty { border: 1px dashed #9aa69d; border-radius: 14px; background: var(--paper); padding: 20px; color: var(--muted); text-align: center; }
.chat-composer { border: 1px solid #cbd5cc; border-top: 5px solid var(--clay); border-radius: 15px; background: var(--paper); padding: 18px; box-shadow: 0 4px 0 rgb(20 37 27 / 8%); }
.chat-composer form { display: grid; gap: 16px; margin-top: 16px; }
.chat-composer .form-control { min-height: 48px; border-color: #aeb8b0; }
.chat-composer textarea.form-control { min-height: 120px; resize: vertical; }
.chat-composer .form-control:focus { border-color: var(--pine-700); box-shadow: 0 0 0 .22rem rgb(54 91 65 / 18%); }
.chat-send { width: 100%; background: var(--clay); color: #fff; font-weight: 850; }
.chat-send:hover, .chat-send:focus-visible { background: #963a20; color: #fff; }
.chat-edit-actions { display: grid; gap: 9px; }
.chat-cancel { border: 1px solid #819288; color: var(--pine-900); font-weight: 850; }
.admin-chat-list { grid-template-columns: minmax(0, 1fr); }
.admin-record-actions--single { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 576px) {
  .chat-shell { max-width: 720px; }
  .chat-message--owned { margin-left: 48px; }
  .chat-composer { padding: 24px; }
  .chat-edit-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PWA and weak-connectivity support */
.connectivity-status {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 42px;
  border-bottom: 1px solid #b77831;
  background: #fff0cf;
  padding: 10px 16px;
  color: #4d3214;
  font-size: .86rem;
  font-weight: 850;
  text-align: center;
}
.connectivity-status[hidden] { display: none; }
.is-offline button[aria-disabled="true"] { cursor: not-allowed; opacity: .62; }

.install-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; border: 1px solid #b9c9bd; border-radius: 14px; background: #f0f7ef; padding: 17px; }
.install-card__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: var(--pine-700); color: #fff; font-size: 1.35rem; }
.install-card h2 { margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.install-card p:not(.section-heading__kicker) { margin: 7px 0 0; color: var(--muted); }
.install-button { margin-top: 13px; background: var(--pine-700); color: #fff; font-weight: 850; }
.install-button:hover, .install-button:focus-visible { background: var(--pine-950); color: #fff; }

.offline-page { display: grid; min-height: 100svh; place-items: center; padding: 24px; background: linear-gradient(145deg, var(--pine-950), var(--pine-700)); }
.offline-card { width: min(100%, 520px); border-radius: 18px; background: var(--paper); padding: 26px; box-shadow: 0 18px 46px rgb(0 0 0 / 28%); }
.offline-card__mark { display: grid; width: 56px; height: 56px; margin-bottom: 18px; place-items: center; border-radius: 14px; background: var(--pine-100); color: var(--pine-900); font-size: 1.55rem; }
.offline-card h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 11vw, 3.8rem); line-height: 1; }
.offline-card p { overflow-wrap: anywhere; }
.offline-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
.offline-links a { display: grid; min-height: 48px; place-items: center; border: 1px solid #9caf9f; border-radius: 10px; padding: 8px; color: var(--pine-900); font-weight: 800; text-align: center; }
.offline-links a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.offline-card .touch-button { width: 100%; margin-top: 10px; }
