:root {
  --cream: #f5f0e5;
  --paper: #fffdf8;
  --forest: #2a8f5a;
  --forest-deep: #0b4f38;
  --sage: #9eb59f;
  --terracotta: #d87842;
  --gold: #efb85b;
  --ink: #17231d;
  --muted: #637069;
  --line: rgba(24, 61, 48, 0.16);
  --shadow: 0 24px 70px rgba(20, 55, 42, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  color: var(--forest-deep);
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(13, 42, 33, 0.95);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.brand-mark {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: #275f8b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 900;
}

.brand-copy { display: grid; gap: 0.04rem; line-height: 1; }
.brand-copy small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.72rem 0.82rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown-toggle { border: 0; background: transparent; cursor: pointer; }
.nav-dropdown-toggle::after { margin-left: 0.42rem; content: "▾"; font-size: 0.7rem; }
.nav-dropdown.is-open .nav-dropdown-toggle::after { content: "▴"; }
.nav-dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.55rem);
  left: 50%;
  display: grid;
  width: max-content;
  min-width: 180px;
  padding: 0.45rem;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  background: var(--forest-deep);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}
.nav-dropdown-link { padding: 0.72rem 0.85rem; border-radius: 0.6rem; color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; font-weight: 750; white-space: nowrap; }
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible,
.nav-dropdown-link[aria-current="page"] { color: var(--forest-deep); background: var(--gold); }

.nav-link.members-link {
  margin-left: 0.35rem;
  color: var(--forest-deep);
  background: var(--gold);
}

.nav-link.members-link:hover,
.nav-link.members-link:focus-visible {
  color: var(--forest-deep);
  background: #ffd078;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(239, 184, 91, 0.34), transparent 22rem),
    linear-gradient(135deg, var(--forest-deep), var(--forest) 58%, #315e49);
}

.hero::before,
.hero::after { position: absolute; z-index: -1; content: ""; border-radius: 50%; }
.hero::before {
  right: -8rem;
  bottom: -15rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 5rem rgba(255, 255, 255, 0.025),
    0 0 0 10rem rgba(255, 255, 255, 0.02);
}

.hero::after {
  right: 15%;
  bottom: 16%;
  width: 1rem;
  height: 1rem;
  background: var(--gold);
  box-shadow:
    5rem -8rem 0 -0.2rem var(--terracotta),
    10rem 2rem 0 -0.32rem rgba(255, 255, 255, 0.76),
    -5rem 5rem 0 -0.3rem var(--sage);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  min-height: 644px;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--gold); }
.hero h1,
.page-hero h1,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero h1 { max-width: 760px; font-size: clamp(4rem, 8.5vw, 7.7rem); line-height: 0.88; }
.hero h1 em { display: block; color: var(--gold); font-weight: inherit; }
.hero-lead {
  max-width: 650px;
  margin: 1.7rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3.15rem;
  padding: 0.8rem 1.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--forest-deep); background: var(--gold); }
.button-secondary { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.07); }

.hero-note {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.hero-note-number { margin: 0; color: var(--gold); font: 4rem/1 Georgia, serif; }
.hero-note h2 { margin: 1.1rem 0 0.7rem; font: 1.75rem Georgia, serif; }
.hero-note p:last-child { margin: 0; color: rgba(255, 255, 255, 0.7); line-height: 1.65; }

.hero-note.home-slideshow {
  display: flex;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
}

.home-slideshow-header {
  display: flex;
  padding: 1rem 1.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.home-slideshow-kicker,
.home-slideshow-position {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-slideshow-kicker { color: var(--gold); }
.home-slideshow-position { color: rgba(255, 255, 255, 0.62); }
.home-slideshow-stage { display: flex; min-height: 0; padding: clamp(1.35rem, 3vw, 1.8rem); flex: 1; }

.home-slide,
.home-slide-empty {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  animation: home-slide-in 260ms ease-out;
}

.home-slide-loading {
  display: grid;
  width: 100%;
  min-height: 350px;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  text-align: center;
}

.home-slide-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.home-slide-category {
  display: inline-flex;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  color: var(--forest-deep);
  background: var(--gold);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-slide.is-residential .home-slide-category { color: #fff; background: var(--terracotta); }
.home-slide-date { color: rgba(255, 255, 255, 0.68); font-size: 0.7rem; font-weight: 800; text-align: right; }
.hero-note .home-slide-title { margin: 1.15rem 0 0; font: clamp(1.75rem, 3vw, 2.3rem)/1.02 Georgia, serif; letter-spacing: -0.025em; }
.home-slide-time { margin: 0.5rem 0 0; color: var(--gold); font-size: 0.76rem; font-weight: 850; }
.hero-note .home-slide-description {
  display: -webkit-box;
  margin: 0.85rem 0 1.2rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.55;
}

.home-slide-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0.85rem 1.1rem; }
.home-slide-detail { min-width: 0; }
.home-slide-detail-label { margin: 0 0 0.2rem; color: rgba(255, 255, 255, 0.48); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.home-slide-detail-value { margin: 0; overflow-wrap: anywhere; color: #fff; font-size: 0.76rem; font-weight: 800; line-height: 1.35; }
.home-slide-public-price { display: block; margin-top: 0.22rem; color: rgba(255, 255, 255, 0.52); font-size: 0.62rem; text-decoration: line-through; }
.home-slide-actions { display: flex; margin-top: auto; padding-top: 1.35rem; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.home-slide-book { min-height: 2.75rem; padding: 0.65rem 1rem; color: var(--forest-deep); background: var(--gold); font-size: 0.78rem; }
.home-slide-book.is-disabled { cursor: not-allowed; color: rgba(255, 255, 255, 0.58); background: rgba(255, 255, 255, 0.1); transform: none; }
.home-slide-all-link { padding: 0.45rem 0; color: #fff; font-size: 0.74rem; font-weight: 850; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.22rem; }
.home-slide-all-link:hover,
.home-slide-all-link:focus-visible { color: var(--gold); }
.home-slideshow-controls { display: grid; padding: 0.85rem 1.1rem; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.home-slide-arrow,
.home-slide-dot { border: 0; color: #fff; background: transparent; cursor: pointer; }
.home-slide-arrow { display: inline-grid; width: 2.25rem; height: 2.25rem; padding: 0; place-items: center; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; font-size: 1rem; }
.home-slide-arrow:hover,
.home-slide-arrow:focus-visible { color: var(--forest-deep); background: var(--gold); }
.home-slide-dots { display: flex; align-items: center; justify-content: center; gap: 0.55rem; }
.home-slide-dot { width: 0.55rem; height: 0.55rem; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.home-slide-dot.is-active { background: var(--gold); transform: scale(1.25); }
.home-slide-empty { justify-content: center; }
.home-slide-empty .home-slide-book { align-self: flex-start; margin-top: 0.5rem; }

@keyframes home-slide-in {
  from { opacity: 0; transform: translateX(0.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide,
  .home-slide-empty { animation: none; }
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-heading { max-width: 900px; margin-bottom: 2.5rem; }
.section-heading h2 { max-width: 670px; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 0.98; }
.section-heading p:last-child { max-width: 520px; margin: 1rem 0 0; color: var(--muted); line-height: 1.7; }

.experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.experience-card {
  min-height: 280px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 253, 248, 0.72);
}

.experience-card:nth-child(2) { color: #fff; background: var(--forest); }
.experience-card:nth-child(3) { background: #f0d9c7; }
.card-number {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.experience-card h3 { margin: 5rem 0 0.75rem; font: 1.65rem Georgia, serif; }
.experience-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.experience-card:nth-child(2) p { color: rgba(255, 255, 255, 0.7); }

.statement { color: #fff; background: var(--terracotta); }
.statement-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 4rem; align-items: start; }
.statement-label { color: rgba(255, 255, 255, 0.75); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.statement blockquote { margin: 0; font: clamp(2.2rem, 5vw, 4.5rem)/1.06 Georgia, serif; letter-spacing: -0.035em; }

.site-footer { padding: 3rem 0; color: #fff; background: var(--forest-deep); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-copy { margin: 0.8rem 0 0; color: rgba(255, 255, 255, 0.58); font-size: 0.86rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; font-weight: 700; }

.page-hero {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
  color: #fff;
  background: radial-gradient(circle at 78% 22%, rgba(239, 184, 91, 0.25), transparent 20rem), var(--forest-deep);
}

.page-hero h1 { max-width: 820px; font-size: clamp(3.6rem, 8vw, 7rem); line-height: 0.92; }
.page-hero p:last-child { max-width: 630px; margin: 1.4rem 0 0; color: rgba(255, 255, 255, 0.7); font-size: 1.08rem; line-height: 1.75; }
.placeholder { min-height: 390px; padding: clamp(4rem, 9vw, 7rem) 0; }
.placeholder-card { padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--paper); box-shadow: var(--shadow); }
.placeholder-card h2 { margin: 0; font: clamp(2rem, 4vw, 3.4rem) Georgia, serif; }
.placeholder-card p { max-width: 650px; margin: 1rem 0 0; color: var(--muted); line-height: 1.75; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  min-height: 330px;
  padding: 1.8rem;
  border-radius: 1.4rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-green { background: var(--forest); }
.detail-blue { background: #275f8b; }
.detail-orange { background: var(--terracotta); }
.detail-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 7rem 0 0.8rem;
  font: 2rem/1.05 Georgia, serif;
}

.detail-card > p:last-child { margin: 0; color: rgba(255, 255, 255, 0.75); line-height: 1.65; }
.section-soft { background: #ebe4d6; }
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
}

.split-panel h2,
.story-grid h2,
.contact-grid h2,
.login-copy h2 {
  margin: 0;
  font: clamp(2.6rem, 5vw, 4.8rem)/0.98 Georgia, serif;
  letter-spacing: -0.04em;
}

.split-panel > p { margin: 0; color: var(--muted); line-height: 1.75; }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.prose p { margin: 0 0 1.2rem; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.team-section { background: #ebe4d6; }
.team-heading { margin-bottom: 3.5rem; }
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(20, 55, 42, 0.08);
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.82fr) minmax(0, 1fr);
  align-items: stretch;
}

.profile-photo {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 185px;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 65% 28%, rgba(239, 184, 91, 0.72), transparent 24%),
    linear-gradient(145deg, var(--forest), #2c6b52);
}

.profile-photo::before,
.profile-photo::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.profile-photo::before {
  width: 5rem;
  height: 5rem;
  top: 18%;
}

.profile-photo::after {
  width: 9rem;
  height: 7rem;
  bottom: -3.5rem;
}

.profile-photo img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-copy { padding: 1.35rem; }
.founder-card .profile-copy { display: flex; flex-direction: column; justify-content: center; }
.profile-copy h3 {
  margin: 0;
  font: 1.45rem/1.08 Georgia, serif;
  letter-spacing: -0.025em;
}

.profile-role { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.83rem; line-height: 1.45; }
.organisation-connector {
  position: relative;
  display: grid;
  height: 7rem;
  place-items: center;
}

.organisation-connector::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(24, 61, 48, 0.28);
}

.organisation-connector span {
  z-index: 1;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: #ebe4d6;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.team-card .profile-photo { min-height: 175px; aspect-ratio: 1 / 1; }
.team-card .profile-copy h3 { font-size: 1.15rem; }
.team-loading,
.team-load-error { grid-column: 1 / -1; margin: 0; padding: 2rem; border-radius: 1rem; color: var(--muted); background: var(--paper); text-align: center; }
.team-load-error { color: #8f332c; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.values-grid article {
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--paper);
}

.values-grid span { color: var(--terracotta); font-size: 0.72rem; font-weight: 900; }
.values-grid h3 { margin: 3rem 0 0.65rem; font: 1.45rem Georgia, serif; }
.values-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
}

.contact-grid > div:first-child > p:last-child { max-width: 620px; color: var(--muted); line-height: 1.75; }
.contact-card {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 1.4rem;
  color: #fff;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.contact-card h3 { margin: 1rem 0; font: 2rem Georgia, serif; }
.contact-card > p:not(.detail-kicker) { color: rgba(255, 255, 255, 0.72); line-height: 1.7; }
.contact-note { margin-top: 1.5rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0.8rem; color: rgba(255, 255, 255, 0.68); font-size: 0.82rem; line-height: 1.5; }

.contact-section { background: #ebe4d6; }
.contact-grid { align-items: start; }
.contact-copy { padding-top: 1.25rem; }
.contact-copy > p:last-of-type { max-width: 560px; color: var(--muted); line-height: 1.75; }
.contact-points { display: grid; gap: 0.85rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-points li { position: relative; padding-left: 1.8rem; color: var(--forest); font-weight: 750; line-height: 1.5; }
.contact-points li::before { position: absolute; top: 0.42rem; left: 0; width: 0.72rem; height: 0.72rem; border-radius: 50%; background: var(--terracotta); content: ""; }

.contact-form-card {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-form-card .detail-kicker { color: var(--terracotta); }
.contact-form-card > h2 { margin: 0.75rem 0 0; font: 2.2rem/1.05 Georgia, serif; }
.contact-form { display: grid; gap: 1.15rem; margin-top: 1.8rem; }
.form-field { display: grid; gap: 0.5rem; }
.form-field label { color: var(--ink); font-size: 0.82rem; font-weight: 850; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field select { min-height: 3.45rem; padding: 0 0.9rem; }
.form-field textarea { min-height: 10rem; padding: 0.9rem; resize: vertical; line-height: 1.55; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216, 120, 66, 0.14); }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { width: 100%; margin-top: 0.15rem; color: #fff; background: var(--forest); }
.contact-submit:hover,
.contact-submit:focus-visible { background: var(--forest-deep); }
.form-status { margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: 0.8rem; font-size: 0.86rem; font-weight: 750; line-height: 1.5; }
.form-status-success { border: 1px solid rgba(24, 109, 66, 0.25); color: #155d3a; background: #e5f5eb; }
.form-status-error { border: 1px solid rgba(161, 56, 47, 0.22); color: #8f332c; background: #fbe9e5; }

.login-section { padding: clamp(4rem, 9vw, 7rem) 0; }
.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.65fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
}

.login-steps { display: grid; gap: 1rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.login-steps li { display: flex; gap: 0.9rem; align-items: center; }
.login-steps span { display: inline-grid; width: 2.3rem; height: 2.3rem; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--forest-deep); background: var(--gold); font-size: 0.75rem; font-weight: 900; }
.login-steps p { margin: 0; color: var(--muted); }
.login-card { min-height: 570px; padding: clamp(2rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--paper); box-shadow: var(--shadow); }
.login-card .detail-kicker { color: var(--terracotta); }
.login-card h2 { margin: 0.75rem 0; font: 2.2rem/1.05 Georgia, serif; }
.login-card h3 { margin: 0.75rem 0; color: var(--forest-deep); font: 2rem/1.08 Georgia, serif; }
.login-card-heading > p:last-child,
.login-panel-copy,
.signed-in-panel > p:not(.detail-kicker) { color: var(--muted); line-height: 1.65; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; padding: 0.3rem; gap: 0.3rem; border-radius: 0.9rem; background: #eee8dc; }
.login-tab { min-height: 2.8rem; padding: 0.55rem 0.75rem; border: 0; border-radius: 0.68rem; color: var(--muted); background: transparent; cursor: pointer; font-size: 0.78rem; font-weight: 850; }
.login-tab:hover,
.login-tab:focus-visible { color: var(--forest-deep); }
.login-tab.is-active { color: #fff; background: var(--forest); box-shadow: 0 5px 14px rgba(13, 42, 33, 0.15); }
.login-panel { margin-top: 1.5rem; }
.login-form { margin-top: 1.8rem; }
.login-form label { display: block; margin-bottom: 0.55rem; font-size: 0.82rem; font-weight: 850; }
.login-field + .login-field { margin-top: 1rem; }
.login-field input,
.code-input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  outline: none;
  color: var(--ink);
  background: #fff;
}
.login-field input:focus,
.code-input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216, 120, 66, 0.14); }
.code-input { font-size: 1.35rem; font-weight: 850; letter-spacing: 0.3em; text-align: center; }
.phone-field { display: grid; grid-template-columns: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 0.85rem; background: #fff; }
.phone-field > span { display: grid; padding: 0 0.9rem; place-items: center; border-right: 1px solid var(--line); color: var(--forest); font-weight: 850; }
.phone-field input { min-width: 0; height: 3.5rem; padding: 0 0.9rem; border: 0; outline: none; color: var(--ink); background: transparent; }
.phone-field:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216, 120, 66, 0.14); }
.form-help, .form-message { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.login-button { width: 100%; margin-top: 1.2rem; color: #fff; background: var(--forest); }
.form-message { min-height: 2.3em; color: var(--terracotta); font-weight: 700; }
.form-message.is-error { color: #8f332c; }
.form-message.is-success { color: #155d3a; }
.login-card button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.text-button { display: inline-flex; padding: 0.35rem 0; border: 0; color: var(--forest); background: transparent; cursor: pointer; font-size: 0.78rem; font-weight: 850; text-decoration: underline; text-decoration-color: rgba(24, 61, 48, 0.3); text-underline-offset: 0.2rem; }
.text-button:hover,
.text-button:focus-visible { color: var(--terracotta); }
.recover-button { margin-top: 0.9rem; }
.login-secondary-actions { display: flex; margin-top: 0.9rem; justify-content: space-between; gap: 1rem; }
.username-notice { display: grid; margin: 1.4rem 0 0; padding: 1rem 1.1rem; gap: 0.25rem; border: 1px solid rgba(24, 61, 48, 0.14); border-radius: 0.9rem; background: #f0eadf; }
.username-notice span { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.username-notice strong { overflow-wrap: anywhere; color: var(--forest-deep); font-size: 1.35rem; }
.username-notice small { color: var(--muted); line-height: 1.5; }
.signed-in-panel { text-align: center; }
.success-mark { display: inline-grid; width: 4.3rem; height: 4.3rem; margin-bottom: 1.2rem; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-size: 2rem; font-weight: 900; }
.signed-in-panel .detail-kicker { margin-bottom: 0.55rem; }
.signed-in-panel .text-button { margin-top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hikes-index-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(239, 184, 79, 0.26), transparent 26rem),
    var(--forest-deep);
}

.hikes-index-hero .eyebrow { color: var(--gold); }
.hikes-index-hero h1 { max-width: 850px; margin: 0.7rem 0 1rem; font: clamp(4rem, 12vw, 8rem)/0.88 Georgia, serif; }
.hikes-index-hero p:last-child { max-width: 660px; margin: 0; color: rgba(255, 255, 255, 0.76); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.7; }
.hikes-listing-section { padding: clamp(3.5rem, 8vw, 6rem) 0; background: #ebe9e4; }
.previous-hikes-section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); background: #e1ded6; }
.hikes-section-heading { margin-bottom: 2rem; }
.hikes-section-heading h2 { margin: 0.55rem 0 0; color: var(--forest-deep); font: clamp(2.6rem, 6vw, 4.6rem)/0.98 Georgia, serif; letter-spacing: -0.04em; }
.events-category-filter { display: flex; margin: -0.5rem 0 1.5rem; padding: 1rem; align-items: flex-end; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.events-category-filter label { display: grid; width: min(100%, 360px); gap: 0.45rem; color: var(--ink); font-size: 0.74rem; font-weight: 850; }
.events-category-filter select { width: 100%; min-height: 3rem; padding: 0 2.5rem 0 0.85rem; border: 1px solid var(--line); border-radius: 0.75rem; outline: none; color: var(--ink); background: #fff; }
.events-category-filter select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216, 120, 66, 0.14); }
.events-category-filter p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.hike-list { display: grid; gap: 1.4rem; }
.hikes-loading,
.hikes-error,
.hikes-empty { margin: 0; padding: 2rem; border-radius: 1rem; text-align: center; color: var(--muted); background: var(--paper); }
.hikes-error { color: #8f332c; }
.hikes-data-note { max-width: 760px; margin: 1.5rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

.hike-event-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  min-height: 285px;
  overflow: hidden;
  border: 1px solid rgba(19, 53, 41, 0.1);
  border-radius: 1.15rem;
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(19, 53, 41, 0.08);
}

.hike-card-visual {
  display: flex;
  min-width: 0;
  padding: 1.5rem;
  justify-content: space-between;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), transparent 48%),
    var(--forest);
}

.hike-level-1 .hike-card-visual { background-color: #2f8c75; }
.hike-level-2 .hike-card-visual { background-color: #5d8d48; }
.hike-level-3 .hike-card-visual { background-color: #b58b2f; }
.hike-level-4 .hike-card-visual { background-color: #ce6b3d; }
.hike-level-5 .hike-card-visual { background-color: #a43c37; }
.hike-card-category { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.hike-card-level { overflow-wrap: anywhere; font: 2.2rem/0.95 Georgia, serif; }
.hike-card-body { min-width: 0; padding: clamp(1.5rem, 4vw, 2.4rem); }
.hike-card-date { display: flex; margin: 0 0 0.8rem; gap: 0.45rem 1rem; flex-wrap: wrap; color: var(--terracotta); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.hike-card-date span + span::before { content: "·"; margin-right: 1rem; color: var(--line); }
.hike-card-title { margin: 0; color: var(--forest-deep); font: clamp(1.65rem, 3vw, 2.35rem)/1.05 Georgia, serif; }
.hike-card-description { max-width: 720px; margin: 0.8rem 0 1.35rem; color: var(--muted); line-height: 1.65; }
.hike-card-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: 0.9rem 1.3rem; }
.hike-detail { min-width: 0; }
.hike-detail-label { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.hike-detail-value { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 0.82rem; font-weight: 760; line-height: 1.45; }
.hike-card-note { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.69rem; font-style: italic; line-height: 1.5; }
.hike-card-action { display: flex; padding: 1.5rem; align-items: center; justify-content: center; border-left: 1px solid var(--line); }
.hike-book-button { min-width: 7.5rem; color: #fff; background: var(--forest-deep); text-align: center; }
.hike-book-button:hover,
.hike-book-button:focus-visible { color: var(--forest-deep); background: var(--gold); }
.hike-book-button.is-disabled { cursor: not-allowed; color: var(--muted); background: #e3e0d8; }
.hike-event-card.is-past { box-shadow: 0 8px 24px rgba(19, 53, 41, 0.06); }
.hike-event-card.is-past .hike-card-visual { filter: saturate(0.68); }
.hike-event-card.is-past .hike-book-button:not(.is-disabled) { background: #596a63; }
.hike-event-card.is-past .hike-book-button:hover,
.hike-event-card.is-past .hike-book-button:focus-visible { color: var(--forest-deep); background: var(--gold); }
.event-badges { display: flex; margin-bottom: 0.8rem; flex-wrap: wrap; gap: 0.45rem; }
.event-badge { display: inline-flex; padding: 0.4rem 0.65rem; border-radius: 999px; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.055em; text-transform: uppercase; }
.member-only-badge { color: #fff; background: var(--terracotta); }
.member-price-badge { color: var(--forest-deep); background: var(--gold); }
.hike-public-price { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.68rem; text-decoration: line-through; }

.difficulty-guide { padding: clamp(4rem, 9vw, 7rem) 0; color: #fff; background: var(--forest-deep); }
.difficulty-guide-grid { display: grid; grid-template-columns: minmax(0, 0.65fr) minmax(360px, 0.8fr); gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.difficulty-guide-copy { position: sticky; top: 7rem; }
.difficulty-guide .eyebrow { color: var(--gold); }
.difficulty-guide h2 { max-width: 520px; margin: 0.7rem 0 1.2rem; font: clamp(3rem, 7vw, 5.4rem)/0.95 Georgia, serif; }
.difficulty-guide-copy > p:not(.eyebrow) { max-width: 560px; color: rgba(255, 255, 255, 0.72); line-height: 1.75; }
.difficulty-guide .text-link { display: inline-flex; margin-top: 1.2rem; gap: 0.5rem; color: var(--gold); }
.difficulty-guide-figure { margin: 0; overflow: hidden; border-radius: 1.2rem; background: #fff; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25); }
.difficulty-guide-figure img { display: block; width: 100%; height: auto; }

.member-dashboard { padding: clamp(3.5rem, 8vw, 6rem) 0; background: #ebe9e4; }
.member-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.member-dashboard-card { display: flex; min-height: 220px; padding: 1.6rem; flex-direction: column; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper); box-shadow: 0 12px 35px rgba(19, 53, 41, 0.08); }
.member-dashboard-card .detail-kicker { color: var(--terracotta); }
.member-dashboard-card h2 { margin: 0.7rem 0 0; color: var(--forest-deep); font: 1.8rem/1.08 Georgia, serif; }
.member-dashboard-card p:not(.detail-kicker) { margin: 0.8rem 0 1.5rem; color: var(--muted); line-height: 1.6; }
.member-dashboard-card .text-link { margin-top: auto; color: var(--forest); font-weight: 850; }

.member-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.member-summary-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--paper); }
.member-summary-card span { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.member-summary-card strong { display: block; margin-top: 0.55rem; color: var(--forest-deep); font: 2rem Georgia, serif; }
.activities-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper); box-shadow: 0 12px 35px rgba(19, 53, 41, 0.07); }
.activities-panel-heading { padding: 1.5rem; border-bottom: 1px solid var(--line); }
.activities-panel-heading h2 { margin: 0; color: var(--forest-deep); font: 2rem Georgia, serif; }
.activities-empty { margin: 0; padding: 2rem 1.5rem; color: var(--muted); line-height: 1.65; }
.activity-list { display: grid; margin: 0; padding: 0; list-style: none; }
.activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 1.3rem 1.5rem; gap: 1rem; align-items: center; border-top: 1px solid var(--line); }
.activity-row:first-child { border-top: 0; }
.activity-row h3 { margin: 0; color: var(--forest-deep); font: 1.35rem Georgia, serif; }
.activity-meta { display: flex; margin: 0.5rem 0 0; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.78rem; }
.activity-reference { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.68rem; }
.booking-status { display: inline-flex; padding: 0.45rem 0.7rem; border-radius: 999px; color: var(--forest-deep); background: #e5ece7; font-size: 0.68rem; font-weight: 900; text-transform: capitalize; }
.booking-status.status-cancelled,
.booking-status.status-expired { color: #7f352f; background: #f7e3df; }
.booking-status.status-pending,
.booking-status.status-waitlisted { color: #79520f; background: #fff0ce; }

.admin-page-hero { padding-block: clamp(4rem, 8vw, 6.5rem); }
.admin-page-hero h1 { font-size: clamp(3.5rem, 7vw, 6.2rem); }
.admin-events-section { min-height: 520px; padding: clamp(3rem, 7vw, 5.5rem) 0; background: #ebe9e4; }
.admin-toolbar { display: flex; margin-bottom: 1.5rem; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.admin-toolbar .eyebrow { margin-bottom: 0.55rem; }
.admin-toolbar h2 { margin: 0; color: var(--forest-deep); font: clamp(2.2rem, 5vw, 3.6rem)/1 Georgia, serif; }
.admin-toolbar-actions { display: flex; align-items: center; gap: 0.65rem; }
.admin-results-count { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.82rem; }
.admin-filters { display: grid; grid-template-columns: minmax(260px, 1fr) 190px 190px; margin-bottom: 1.4rem; padding: 1rem; gap: 0.9rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.admin-filters label,
.admin-event-form label { display: grid; min-width: 0; gap: 0.45rem; color: var(--ink); font-size: 0.79rem; font-weight: 850; }
.admin-filters input,
.admin-filters select,
.admin-event-form input,
.admin-event-form select,
.admin-event-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  outline: none;
  color: var(--ink);
  background: #fff;
}
.admin-filters input,
.admin-filters select,
.admin-event-form input,
.admin-event-form select { min-height: 3.1rem; padding: 0 0.85rem; }
.admin-event-form textarea { min-height: 7rem; padding: 0.85rem; resize: vertical; line-height: 1.55; }
.admin-filters input:focus,
.admin-filters select:focus,
.admin-event-form input:focus,
.admin-event-form select:focus,
.admin-event-form textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216, 120, 66, 0.14); }
.admin-page-message { min-height: 1.3rem; margin: 0 0 1rem; }
.admin-events-list { display: grid; gap: 0.85rem; }
.admin-events-list[aria-busy="true"] { opacity: 0.65; }
.admin-event-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 1.25rem 1.35rem; align-items: center; gap: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 24px rgba(19, 53, 41, 0.06); }
.admin-event-card h3 { margin: 0.7rem 0 0; color: var(--forest-deep); font: 1.55rem/1.12 Georgia, serif; }
.admin-event-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 0.42rem; }
.admin-badge { display: inline-flex; padding: 0.34rem 0.55rem; border-radius: 999px; color: var(--forest-deep); background: #e4ece7; font-size: 0.63rem; font-weight: 900; letter-spacing: 0.045em; text-transform: uppercase; }
.admin-badge.status-draft { color: #79520f; background: #fff0ce; }
.admin-badge.status-published { color: #155d3a; background: #dff1e6; }
.admin-badge.status-active,
.admin-badge.setup-complete { color: #155d3a; background: #dff1e6; }
.admin-badge.status-inactive { color: #7f352f; background: #f7e3df; }
.admin-badge.setup-pending { color: #79520f; background: #fff0ce; }
.admin-badge.admin-role-badge { color: var(--forest-deep); background: var(--gold); }
.admin-badge.protected-account-badge { color: #fff; background: var(--forest-deep); }
.admin-badge.audience-members { color: #fff; background: var(--terracotta); }
.admin-event-id { color: var(--muted); font-size: 0.68rem; font-weight: 800; }
.admin-event-summary { margin: 0.42rem 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.admin-event-actions { display: flex; gap: 0.6rem; }
.admin-edit-button,
.admin-restore-button,
.admin-delete-button,
.admin-cancel-button { min-height: 2.7rem; padding: 0.65rem 0.95rem; border-color: var(--line); border-radius: 999px; background: #fff; }
.admin-edit-button { color: #fff; background: var(--forest); }
.admin-restore-button { color: var(--forest-deep); background: var(--gold); }
.admin-delete-button { color: #8f332c; background: #fff7f5; }
.admin-events-empty { margin: 0; padding: 2.5rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); background: rgba(255, 253, 248, 0.65); text-align: center; }

.admin-event-dialog { width: min(940px, calc(100% - 2rem)); max-height: 92vh; padding: 0; overflow: auto; border: 0; border-radius: 1.3rem; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3); }
.admin-event-dialog::backdrop { background: rgba(8, 28, 21, 0.72); backdrop-filter: blur(4px); }
.admin-event-form { padding: clamp(1.4rem, 4vw, 2.4rem); }
.admin-dialog-heading { display: flex; margin-bottom: 1rem; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-dialog-heading .eyebrow { margin-bottom: 0.45rem; }
.admin-dialog-heading h2 { margin: 0; color: var(--forest-deep); font: clamp(2rem, 5vw, 3rem)/1 Georgia, serif; }
.admin-dialog-close { display: grid; width: 2.7rem; height: 2.7rem; padding: 0; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--forest-deep); background: #fff; cursor: pointer; font-size: 1.6rem; }
.admin-event-form fieldset { margin: 1.1rem 0 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; }
.admin-event-form legend { padding: 0 0.45rem; color: var(--forest-deep); font: 1.25rem Georgia, serif; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-event-form label small { color: var(--muted); font-size: 0.68rem; font-weight: 500; line-height: 1.4; }
.admin-category-field { display: grid; min-width: 0; gap: 0.45rem; }
.admin-text-button { justify-self: start; padding: 0; border: 0; color: var(--terracotta); background: transparent; cursor: pointer; font-family: inherit; font-size: 0.74rem; font-weight: 800; text-decoration: underline; text-underline-offset: 0.2em; }
.admin-event-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.2rem; gap: 0.75rem; }
.admin-event-type label { display: flex; padding: 0.85rem; align-items: flex-start; gap: 0.7rem; border: 1px solid var(--line); border-radius: 0.85rem; background: #fff; cursor: pointer; }
.admin-event-form .admin-event-type input[type="radio"] { width: 1.1rem; min-width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0.15rem 0 0; padding: 0; accent-color: var(--terracotta); box-shadow: none; }
.admin-event-type label > span { display: grid; gap: 0.25rem; }
.admin-event-type strong { color: var(--forest-deep); font-size: 0.82rem; }
.admin-event-type small { color: var(--muted); font-size: 0.69rem; font-weight: 500; line-height: 1.4; }
.admin-derived-date { margin: 1rem 0 0; padding: 0.75rem 0.9rem; border-radius: 0.75rem; color: var(--forest-deep); background: #edf2ee; font-size: 0.76rem; font-weight: 800; line-height: 1.5; }
.admin-category-dialog { width: min(620px, calc(100% - 2rem)); }
.admin-category-list { display: grid; max-height: 340px; overflow: auto; gap: 0.55rem; }
.admin-category-list[aria-busy="true"] { opacity: 0.65; }
.admin-category-row { display: flex; padding: 0.75rem 0.85rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; font-size: 0.82rem; font-weight: 850; }
.admin-category-remove { padding: 0.35rem 0.6rem; border: 0; color: #8f332c; background: transparent; cursor: pointer; font-size: 0.7rem; font-weight: 900; text-decoration: underline; text-underline-offset: 0.2em; }
.admin-category-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 1.2rem; align-items: end; gap: 0.75rem; }
.admin-category-add .button { min-height: 3.1rem; }
.admin-categories-empty { margin: 0; padding: 1.2rem; border: 1px dashed var(--line); border-radius: 0.75rem; color: var(--muted); text-align: center; }
.admin-dialog-actions { display: flex; margin-top: 1.3rem; justify-content: flex-end; gap: 0.75rem; }
.admin-event-form[aria-busy="true"] { cursor: wait; }
.admin-access-denied { min-height: 100vh; }
.admin-access-denied h1 { margin: 0; color: var(--forest-deep); font: clamp(2.5rem, 7vw, 4.5rem)/1 Georgia, serif; }
.admin-user-filters { grid-template-columns: minmax(260px, 1fr) 230px; }
.admin-users-list { display: grid; gap: 0.85rem; }
.admin-users-list[aria-busy="true"] { opacity: 0.65; }
.admin-user-card { display: grid; grid-template-columns: minmax(250px, 0.8fr) minmax(390px, 1.2fr) auto; padding: 1.25rem 1.35rem; align-items: center; gap: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 24px rgba(19, 53, 41, 0.06); }
.admin-user-card h3 { margin: 0.7rem 0 0; color: var(--forest-deep); font: 1.55rem/1.12 Georgia, serif; }
.admin-user-username { margin: 0.35rem 0 0; color: var(--terracotta); font-size: 0.82rem; font-weight: 850; overflow-wrap: anywhere; }
.admin-user-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0.9rem; }
.admin-user-details div { min-width: 0; }
.admin-user-details dt { color: var(--muted); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.075em; text-transform: uppercase; }
.admin-user-details dd { margin: 0.32rem 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 0.8rem; font-weight: 760; line-height: 1.4; }
.admin-user-actions { display: flex; min-width: 9rem; align-items: stretch; justify-content: center; flex-direction: column; gap: 0.5rem; }
.admin-user-actions .button { width: 100%; }
.admin-user-protected-note { max-width: 9rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; line-height: 1.4; text-align: right; }
.admin-dialog-copy { margin: 0 0 1rem; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }

.website-editor-hero p:last-child { max-width: 780px; }
.website-editor-section { min-height: 680px; padding: clamp(3rem, 7vw, 5.5rem) 0; background: #ebe9e4; }
.website-editor-layout { display: grid; grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr); align-items: start; gap: 1.2rem; }
.website-editor-information { display: grid; gap: 0.85rem; }
.website-editor-information-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 24px rgba(19, 53, 41, 0.055); }
.website-editor-information-card p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.79rem; line-height: 1.58; }
.website-editor-information-card p:first-child { margin-top: 0; }
.website-editor-information-card code,
.website-editor-changes code { padding: 0.12rem 0.32rem; border-radius: 0.35rem; color: var(--forest-deep); background: #edf2ee; font-size: 0.72rem; overflow-wrap: anywhere; }
.website-editor-information-card ul { display: grid; margin: 0.8rem 0 0; padding-left: 1.1rem; gap: 0.55rem; color: var(--muted); font-size: 0.76rem; line-height: 1.52; }
.website-editor-status-row { display: flex; align-items: center; gap: 0.55rem; color: var(--forest-deep); font-size: 0.78rem; }
.website-editor-status-dot { width: 0.7rem; height: 0.7rem; flex: 0 0 auto; border-radius: 50%; background: #b2aaa0; box-shadow: 0 0 0 4px rgba(178, 170, 160, 0.18); }
.website-editor-status-dot[data-state="ready"] { background: #2f9360; box-shadow: 0 0 0 4px rgba(47, 147, 96, 0.16); }
.website-editor-status-dot[data-state="error"] { background: #b94b42; box-shadow: 0 0 0 4px rgba(185, 75, 66, 0.15); }
.website-editor-chat { overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper); box-shadow: 0 14px 40px rgba(19, 53, 41, 0.09); }
.website-editor-chat-header { display: flex; padding: 1.25rem 1.35rem; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.website-editor-chat-header .eyebrow { margin-bottom: 0.45rem; }
.website-editor-chat-header h2 { margin: 0; color: var(--forest-deep); font: clamp(1.75rem, 4vw, 2.5rem)/1.05 Georgia, serif; }
.website-editor-messages { display: grid; min-height: 420px; max-height: min(62vh, 660px); padding: 1.35rem; overflow-y: auto; align-content: start; gap: 1rem; background: linear-gradient(180deg, rgba(237, 242, 238, 0.48), rgba(255, 253, 248, 0)); }
.website-editor-message { display: flex; max-width: min(88%, 760px); align-items: flex-start; gap: 0.7rem; }
.website-editor-message.user-message { justify-self: end; flex-direction: row-reverse; }
.website-editor-avatar { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--forest); font-size: 0.62rem; font-weight: 900; }
.user-message .website-editor-avatar { color: var(--forest-deep); background: var(--gold); }
.website-editor-bubble { padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 0.2rem 1rem 1rem; color: var(--ink); background: #fff; font-size: 0.82rem; line-height: 1.62; box-shadow: 0 6px 18px rgba(19, 53, 41, 0.05); }
.user-message .website-editor-bubble { border-color: transparent; border-radius: 1rem 0.2rem 1rem 1rem; color: #fff; background: var(--forest); }
.website-editor-bubble p { margin: 0.55rem 0 0; white-space: pre-wrap; }
.website-editor-bubble p:first-child { margin-top: 0; }
.website-editor-changes { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.website-editor-changes strong { color: var(--forest-deep); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.website-editor-changes ul { display: grid; margin: 0.5rem 0 0; padding-left: 1.1rem; gap: 0.35rem; }
.website-editor-composer { padding: 1.15rem 1.35rem 1.3rem; border-top: 1px solid var(--line); }
.website-editor-composer > label { display: block; margin-bottom: 0.48rem; color: var(--forest-deep); font-size: 0.75rem; font-weight: 850; }
.website-editor-composer textarea { width: 100%; min-height: 7.6rem; padding: 0.9rem; resize: vertical; border: 1px solid var(--line); border-radius: 0.85rem; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 0.84rem; line-height: 1.55; }
.website-editor-composer textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216, 120, 66, 0.14); }
.website-editor-composer textarea:disabled { cursor: not-allowed; background: #f2efea; }
.website-editor-composer-footer { display: flex; min-height: 3rem; margin-top: 0.75rem; align-items: center; justify-content: space-between; gap: 1rem; }
.website-editor-composer-footer .form-message { margin: 0; font-size: 0.75rem; }
.website-editor-composer[aria-busy="true"] { cursor: wait; }

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.75rem;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: var(--forest-deep);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .nav-dropdown { display: grid; width: 100%; }
  .nav-dropdown-toggle { width: 100%; text-align: left; }
  .nav-dropdown-menu { position: static; width: auto; min-width: 0; margin: 0.2rem 0 0.3rem; border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.06); box-shadow: none; transform: none; }
  .nav-link.members-link { margin: 0.3rem 0 0; text-align: center; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero-grid, .statement-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; }
  .hero-note { max-width: 520px; }
  .hero-note.home-slideshow { width: 100%; max-width: 620px; }
  .experience-grid { grid-template-columns: 1fr; }
  .detail-grid,
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-panel,
  .story-grid,
  .contact-grid,
  .login-grid,
  .difficulty-guide-grid { grid-template-columns: 1fr; }
  .difficulty-guide-copy { position: static; }
  .member-dashboard-grid,
  .member-summary-grid { grid-template-columns: 1fr; }
  .hike-event-card { grid-template-columns: 140px minmax(0, 1fr); }
  .hike-card-action { grid-column: 1 / -1; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); border-left: 0; justify-content: flex-end; }
  .hike-card-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .admin-filter-wide { grid-column: 1 / -1; }
  .admin-user-card { grid-template-columns: 1fr; }
  .admin-user-actions { justify-content: flex-start; }
  .admin-user-protected-note { text-align: left; }
  .website-editor-layout { grid-template-columns: 1fr; }
  .website-editor-information { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .website-editor-information-card:first-child { grid-column: 1 / -1; }
  .experience-card { min-height: auto; }
  .experience-card h3 { margin-top: 2.5rem; }
  .detail-card { min-height: auto; }
  .detail-card h3 { margin-top: 3.5rem; }
}

@media (max-width: 640px) {
  .nav-wrap, .container { width: min(100% - 1.25rem, 1180px); }
  .nav-wrap { min-height: 68px; }
  .brand-copy small { display: none; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; padding-block: 4rem; }
  .hero h1 { font-size: clamp(3.5rem, 19vw, 5.4rem); }
  .hero-note { padding: 1.4rem; }
  .hero-note.home-slideshow { min-height: 540px; padding: 0; }
  .home-slide-meta { align-items: flex-start; flex-direction: column; }
  .home-slide-date { text-align: left; }
  .home-slide-details { gap: 0.75rem; }
  .footer-grid { display: block; }
  .footer-links { margin-top: 2rem; justify-content: flex-start; }
  .founders-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-row { grid-template-columns: 1fr; }
  .activity-row > :last-child { justify-self: start; }
  .hike-event-card { grid-template-columns: 1fr; }
  .hike-card-visual { min-height: 150px; }
  .hike-card-level { max-width: 10ch; }
  .hike-card-action { grid-column: auto; justify-content: stretch; }
  .hike-book-button { width: 100%; }
  .events-category-filter { align-items: stretch; flex-direction: column; }
  .events-category-filter label { width: 100%; }
  .events-category-filter p { margin: 0; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-toolbar .button { align-self: flex-start; }
  .admin-toolbar-actions { align-items: stretch; flex-direction: column; }
  .admin-toolbar-actions .button { width: 100%; }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-filter-wide { grid-column: auto; }
  .admin-event-card { grid-template-columns: 1fr; }
  .admin-event-actions { justify-content: flex-start; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-field-wide { grid-column: auto; }
  .admin-event-type { grid-template-columns: 1fr; }
  .admin-category-add { grid-template-columns: 1fr; }
  .admin-category-add .button { width: 100%; }
  .admin-event-dialog { width: min(100% - 0.75rem, 940px); max-height: 96vh; }
  .admin-user-details { grid-template-columns: 1fr; }
  .website-editor-information { grid-template-columns: 1fr; }
  .website-editor-information-card:first-child { grid-column: auto; }
  .website-editor-chat-header { align-items: stretch; flex-direction: column; }
  .website-editor-chat-header .admin-text-button { justify-self: start; }
  .website-editor-messages { min-height: 360px; padding: 1rem; }
  .website-editor-message { max-width: 96%; }
  .website-editor-composer { padding-inline: 1rem; }
  .website-editor-composer-footer { align-items: stretch; flex-direction: column; }
  .website-editor-composer-footer .button { width: 100%; }
}

@media (max-width: 420px) {
  .founder-card { grid-template-columns: 1fr; }
  .founder-card .profile-photo { min-height: 250px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card .profile-photo { min-height: 260px; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
