:root {
  --ink: #10241f;
  --muted: #5b6d69;
  --paper: #f3f8f6;
  --surface: #ffffff;
  --line: #d6e2dc;
  --forest: #0d4438;
  --leaf: #3f925e;
  --teal: #087f8c;
  --gold: #d89b2c;
  --coral: #d85f43;
  --sky: #dff0f2;
  --rose: #f8e5dd;
  --shadow: 0 18px 46px rgba(16, 31, 26, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 127, 140, 0.08), rgba(8, 127, 140, 0) 260px),
    var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(20, 32, 28, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 64px;
  height: auto;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.link-button {
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

.site-nav a:hover,
.link-button:hover,
.site-nav a.active {
  background: #e3f1ee;
}

.language-switch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.language-switch button.active {
  background: var(--forest);
  color: #fff;
}

.admin-link {
  border: 1px solid #cfdacf;
}

.nav-toggle {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.icon-button:hover {
  border-color: #b9c8bb;
  box-shadow: 0 8px 20px rgba(16, 31, 26, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: min(680px, calc(100vh - 96px));
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #17231e;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 28, 24, 0.86) 0%, rgba(16, 28, 24, 0.56) 44%, rgba(16, 28, 24, 0.1) 100%),
    linear-gradient(0deg, rgba(16, 28, 24, 0.68) 0%, rgba(16, 28, 24, 0) 56%);
}

.hero img.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0 34px;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f0ca84;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions,
.row-actions,
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.ghost-button,
.danger-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 800;
  text-align: center;
}

.button {
  background: var(--teal);
  color: #fff;
}

.button:hover {
  background: #066c78;
}

.hero .button {
  background: var(--gold);
  color: #16221d;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.42);
}

.surface .ghost-button,
.admin-shell .ghost-button,
.plain-band .ghost-button {
  background: var(--surface);
  border-color: var(--line);
}

.danger-button {
  background: #fff;
  color: #9b3329;
  border-color: #efc8c1;
}

.small-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.85rem;
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(251, 250, 246, 0.14);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.hero-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
}

.hero-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-panel .date-chip {
  margin-bottom: 14px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 32px));
  margin: -26px auto 0;
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-top: 4px solid var(--teal);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section,
.plain-band {
  padding: clamp(42px, 7vw, 82px) clamp(16px, 4vw, 56px);
}

.plain-band {
  background: #e7f2ef;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-head p,
.page-lead {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-hero {
  padding: clamp(34px, 6vw, 72px) clamp(16px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(216, 155, 44, 0.2), rgba(216, 95, 67, 0.08) 42%, rgba(8, 127, 140, 0.18)),
    var(--forest);
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero .page-lead,
.page-hero .section-head p {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero .eyebrow {
  color: #f5c86f;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 420px);
  gap: 28px;
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.about-page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(520px, 66vh, 760px);
  padding: 0;
  overflow: hidden;
  background: #102f29;
}

.about-page-hero .page-hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: inherit;
  padding: clamp(110px, 14vw, 190px) clamp(18px, 7vw, 136px) clamp(64px, 8vw, 110px);
}

.about-page-hero .page-hero-copy {
  max-width: 680px;
}

.about-page-hero .eyebrow {
  color: #f5c86f;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.about-page-hero .page-title {
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.about-page-hero .page-lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.5vw, 1.34rem);
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.about-page-hero .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(16, 31, 26, 0.07);
}

.member-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.member-strip strong {
  display: block;
}

.member-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.member-avatar {
  display: inline-grid;
  place-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 2px solid #d7e7dc;
  border-radius: 50%;
  background: #e7f3ee;
  color: var(--forest);
  font-weight: 900;
  object-fit: cover;
}

.member-avatar.small {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.member-avatar.large {
  width: 74px;
  height: 74px;
  font-size: 1.25rem;
}

.profile-edit-head,
.profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-edit-head strong,
.profile-card-head h3 {
  display: block;
  margin: 0;
  line-height: 1.2;
}

.profile-edit-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #314942;
  font-size: 0.92rem;
}

.check-row input {
  margin-top: 3px;
  accent-color: var(--forest);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.check-stack {
  min-width: 150px;
}

.check-stack label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #314942;
  font-size: 0.82rem;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(230px, 0.32fr);
  gap: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16, 31, 26, 0.06);
}

.date-chip {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 70px;
  height: 78px;
  border-radius: var(--radius);
  background: #fff1dc;
  color: var(--ink);
  border: 1px solid #efd2a1;
}

.date-chip span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-chip strong {
  font-size: 1.8rem;
  line-height: 1;
}

.event-card h3,
.course-card h3,
.photo-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.event-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf3ed;
  color: #22433a;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.paid,
.status-pill.confirmed,
.status-pill.active {
  background: #e6f3e6;
  color: #24563a;
}

.status-pill.due,
.status-pill.waitlist,
.status-pill.verify {
  background: #fff3d9;
  color: #71521b;
}

.status-pill.inactive,
.status-pill.cancelled,
.status-pill.hidden {
  background: #f5e6e1;
  color: #7a3528;
}

.event-card p {
  margin: 12px 0 0;
  color: #3f4c48;
}

.event-aside {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.capacity {
  display: grid;
  gap: 7px;
}

.capacity-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0eb;
}

.capacity-bar span {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--leaf), var(--gold));
}

.course-card,
.photo-card,
.benefit,
.result-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-card img,
.photo-card img,
.result-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-card .card-body,
.photo-card .card-body,
.result-card .card-body,
.benefit {
  padding: 16px;
}

.course-card p,
.photo-card p,
.benefit p,
.result-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.benefit {
  border-top: 4px solid var(--gold);
}

.album-rotator {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(16, 31, 26, 0.18);
}

.album-rotator-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #13241f;
}

.album-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: albumFade var(--slide-duration, 20s) infinite;
  animation-delay: calc(var(--slide-index, 0) * var(--slide-duration, 20s) / var(--slide-count, 4));
}

.album-rotator img:first-child {
  opacity: 1;
}

.album-rotator figcaption {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.about-page-hero .album-rotator {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-page-hero .album-rotator::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 31, 25, 0.86), rgba(7, 31, 25, 0.54) 38%, rgba(7, 31, 25, 0.2) 66%, rgba(7, 31, 25, 0.34)),
    linear-gradient(0deg, rgba(7, 31, 25, 0.76), rgba(7, 31, 25, 0.12) 46%, rgba(7, 31, 25, 0.42));
  pointer-events: none;
}

.about-page-hero .album-rotator-frame {
  height: 100%;
  aspect-ratio: auto;
}

.about-page-hero .album-rotator img {
  filter: saturate(1.06) contrast(1.04);
}

.about-page-hero .album-rotator figcaption {
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 2;
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 45, 38, 0.7);
  backdrop-filter: blur(12px);
}

@keyframes albumFade {
  0%,
  100% {
    opacity: 0;
  }

  6%,
  22% {
    opacity: 1;
  }

  30% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-rotator img {
    animation: none;
    opacity: 0;
  }

  .album-rotator img:first-child {
    opacity: 1;
  }
}

.about-intro {
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 14px;
  color: #354843;
  font-size: 1.05rem;
}

.about-copy p {
  margin: 0;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.about-feature {
  min-height: 190px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
}

.about-feature:nth-child(2) {
  border-top-color: var(--gold);
}

.about-feature:nth-child(3) {
  border-top-color: var(--leaf);
}

.about-feature:nth-child(4) {
  border-top-color: var(--coral);
}

.about-feature h3,
.about-panel h2,
.about-cta h2 {
  margin: 0;
}

.about-feature p,
.about-panel p,
.about-cta p {
  margin: 10px 0 0;
  color: var(--muted);
}

.about-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-panel > div {
  padding: 18px;
}

.about-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-step;
}

.about-steps li {
  counter-increment: about-step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: #354843;
}

.about-steps li::before {
  content: counter(about-step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(13, 68, 56, 0.96), rgba(8, 127, 140, 0.88)),
    var(--forest);
  color: #fff;
}

.about-cta .eyebrow {
  color: #f5c86f;
}

.about-cta p {
  color: rgba(255, 255, 255, 0.84);
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: var(--forest);
  color: #fff;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.google-button {
  min-height: 46px;
  border: 1px solid #cfdad5;
  border-radius: 999px;
  background: #fff;
  color: #1f2d29;
  font-weight: 900;
}

.google-button:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(8, 127, 140, 0.14);
}

.guest-list {
  display: grid;
  gap: 12px;
}

.guest-field {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.add-guest-button {
  width: fit-content;
}

.confirmation-box {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #e8f6f4;
}

.confirmation-box span {
  color: var(--muted);
}

.member-event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.member-event-row strong,
.member-event-row span {
  display: block;
}

.member-event-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.result-list div {
  display: grid;
  gap: 3px;
}

.result-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-list dd {
  margin: 0;
  color: var(--ink);
}

.upload-inline {
  margin-top: 8px;
  width: fit-content;
}

.newsletter-box {
  padding: 18px;
  background: var(--sky);
  border: 1px solid #cde3e5;
  border-radius: var(--radius);
}

.newsletter-box form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.admin-shell {
  min-height: calc(100vh - 76px);
  background: #f5f4ee;
}

.admin-header {
  padding: 24px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.admin-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 22px;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 60px;
}

.admin-tabs {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 6px;
}

.admin-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16, 31, 26, 0.05);
  overflow: hidden;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-card-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.admin-card-body {
  padding: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.admin-stat strong {
  display: block;
  font-size: 1.7rem;
}

.admin-stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.public-table {
  min-width: 0;
}

.admin-table th,
.admin-table td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table input,
.admin-table select,
.admin-table textarea {
  width: 100%;
  min-width: 110px;
  border: 1px solid #d5ddd6;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.admin-table textarea {
  min-height: 74px;
  resize: vertical;
}

.admin-table .check-stack input {
  width: auto;
  min-width: 0;
}

.selected-row td {
  background: #eef8f5;
}

.event-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 70px;
  border: 1px solid #b8d8d4;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f4fbf9;
  color: var(--forest);
  font-weight: 800;
}

.event-select-button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.selected-event-panel .eyebrow {
  color: var(--teal);
}

.selected-event-panel .mini-meta {
  margin: 4px 0 0;
}

.admin-event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-event-summary div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f6fbf9;
}

.admin-event-summary strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.admin-event-summary span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.signup-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.signup-profile-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe2d8;
  border-radius: var(--radius);
  background: #fbfefd;
}

.signup-profile-card .mini-meta {
  margin-top: 4px;
}

.profile-about {
  margin: 0;
  color: #314942;
}

.profile-lines {
  display: grid;
  gap: 7px;
  margin: 0;
}

.profile-lines div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.profile-lines dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-lines dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #203b34;
}

.thumb {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #edf0eb;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 31, 26, 0.56);
}

.modal-root.open {
  display: flex;
}

.modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-head,
.modal-body,
.modal-foot {
  padding: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 360px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #15221d;
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.empty-state {
  padding: 26px;
  border: 1px dashed #cad7cb;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbfaf6;
}

.footer {
  padding: 28px clamp(16px, 4vw, 56px);
  background: #101916;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer a {
  color: #f0ca84;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 32px rgba(16, 31, 26, 0.12);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a,
  .link-button {
    border-radius: var(--radius);
    text-align: left;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .page-hero-inner,
  .two-col,
  .three-col,
  .about-feature-grid,
  .admin-stats,
  .admin-event-summary {
    grid-template-columns: 1fr;
  }

  .about-page-hero {
    min-height: 610px;
  }

  .about-page-hero .page-hero-inner {
    padding: 118px 20px 138px;
  }

  .about-page-hero .page-title {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .about-page-hero .page-lead {
    max-width: 560px;
  }

  .quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .event-aside {
    grid-column: 1 / -1;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 6px;
  }

  .admin-tabs button {
    min-height: 44px;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 52px;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 15vw, 4rem);
  }

  .about-page-hero {
    min-height: 650px;
  }

  .about-page-hero .page-hero-inner {
    padding: 96px 18px 154px;
  }

  .about-page-hero .page-title {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .about-page-hero .album-rotator::after {
    background:
      linear-gradient(90deg, rgba(7, 31, 25, 0.8), rgba(7, 31, 25, 0.48)),
      linear-gradient(0deg, rgba(7, 31, 25, 0.88), rgba(7, 31, 25, 0.22) 54%, rgba(7, 31, 25, 0.52));
  }

  .about-page-hero .album-rotator figcaption {
    right: 18px;
    left: 18px;
    bottom: 18px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section-head,
  .admin-header-inner,
  .footer-inner,
  .member-strip,
  .about-cta {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .newsletter-box form,
  .form-row,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .public-table-wrap {
    overflow-x: visible;
  }

  .public-table,
  .public-table tbody,
  .public-table tr,
  .public-table td {
    display: block;
    width: 100%;
  }

  .public-table thead {
    display: none;
  }

  .public-table tr {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f6fbf9;
  }

  .public-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 0;
    padding: 6px 0;
    text-align: right;
  }

  .public-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .date-chip {
    width: 100%;
    height: auto;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 8px;
    padding: 10px 12px;
  }

  .profile-lines div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-edit-head,
  .profile-card-head {
    align-items: flex-start;
  }

  .modal-foot {
    flex-direction: column;
  }

  .modal-foot .button,
  .modal-foot .ghost-button {
    width: 100%;
  }
}
