/* ====================================================================
   SNPOA · Coastal Editorial
   ==================================================================== */

/* ---- 1. Tokens ----------------------------------------------------- */
:root {
  --ink:        #1a2536;
  --ink-soft:   #3a4a60;
  --paper:      #f5efe4;
  --paper-deep: #ebe2cf;
  --rule:       #c9bea3;
  --cedar:      #a04a32;
  --brass:      #8a7140;
  --brass-light:#e6c89a;      /* on dark backgrounds */
  --serif:      "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:       "Inter", -apple-system, system-ui, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, Menlo, monospace;
  --h-pad:      3.5rem;       /* 56px — matches design gutter */
  --max-w:      1200px;
  --nav-h:      62px;
}

/* ---- 2. Reset + Base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cedar); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1; }
button { cursor: pointer; font-family: var(--sans); border: none; background: none; padding: 0; }

/* ---- 3. Section label (§ 0X · label) ------------------------------- */
.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cedar);
}
.sec-label--brass { color: var(--brass); }
.sec-label--brass-light { color: var(--brass-light); }

/* ---- 4. Buttons ---------------------------------------------------- */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s;
}
.btn-ink:hover { background: #0f1622; text-decoration: none; color: var(--paper); }
.btn-ink .arrow { opacity: 0.6; }

.btn-cedar {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  background: var(--cedar);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s;
}
.btn-cedar:hover { background: #8a3a25; text-decoration: none; color: var(--paper); }

/* ---- 5. Nav --------------------------------------------------------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  font-family: var(--sans);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--h-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-tagline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--rule); text-decoration: none; }
.nav-links a.active { border-color: var(--cedar); color: var(--ink); }
.nav-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--ink);
  padding: 4px;
}
/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem var(--h-pad) 1.75rem;
  z-index: 29;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile-menu a { font-size: 1.125rem; color: var(--ink); letter-spacing: 0.04em; }

/* ---- 6. Hero -------------------------------------------------------- */
#hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Two layered dark overlays per slide — match design */
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    rgba(26,37,54,0.55) 0%,
    rgba(26,37,54,0.18) 32%,
    rgba(26,37,54,0) 50%,
    rgba(26,37,54,0.65) 100%
  );
}
.hero-slide-diag {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,37,54,0.45) 0%,
    rgba(26,37,54,0.18) 35%,
    rgba(26,37,54,0) 60%
  );
  pointer-events: none;
}
/* Title overlay — top-left */
.hero-overlay {
  position: absolute;
  left: var(--h-pad); right: var(--h-pad);
  top: 64px;
  color: var(--paper);
  text-shadow: rgba(15,22,34,0.35) 0 1px 2px, rgba(15,22,34,0.45) 0 8px 32px;
  z-index: 2;
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 0;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  font-weight: 400;
  margin: 16px 0 0;
  letter-spacing: -0.01em;
  max-width: 880px;
  text-wrap: balance;
}
.hero-subhead {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  margin-top: 18px;
  opacity: 0.96;
  max-width: 640px;
  text-wrap: pretty;
  line-height: 1.4;
  font-weight: 400;
}
/* Caption slab — bottom left, glass panel */
.hero-bottom {
  position: absolute;
  left: var(--h-pad); right: var(--h-pad);
  bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--paper);
  z-index: 2;
}
.hero-caption-slab {
  padding: 14px 22px;
  background: rgba(15,22,34,0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 1px solid rgba(245,239,228,0.35);
}
.hero-caption-counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
.hero-caption-title {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  margin-top: 4px;
}
.hero-caption-credit {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
/* Dots */
.hero-dots {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.18s, transform 0.18s;
}
.hero-dot.active { background: #fff; transform: scale(1.4); }

/* ---- 7. Join ------------------------------------------------------- */
#join {
  background: var(--paper);
  padding: 7.5rem var(--h-pad);
}
.join-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.join-left { }
.join-heading {
  font-size: clamp(3rem, 5.5vw, 72px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 480px;
}
.join-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 28px;
  max-width: 480px;
}
.join-cta { margin-top: 32px; }
/* Numbered pillar list */
.join-pillars { display: grid; gap: 0; }
.join-pillar {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}
.join-pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  padding-top: 6px;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.pillar-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 8px;
}
.pillar-body p { margin: 0; }

/* ---- 8. Aerial ----------------------------------------------------- */
#aerial {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--ink);
}
.aerial-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.aerial-grad {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26,37,54,0.65) 0%,
    rgba(26,37,54,0.25) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.aerial-content {
  position: absolute;
  left: var(--h-pad);
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper);
  max-width: 560px;
  transition: opacity 0.6s ease;
}
.aerial-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 56px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  text-wrap: balance;
  max-width: 460px;
  margin: 0;
}
.aerial-body-text {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 24px;
  opacity: 0.92;
}
.aerial-play-btn {
  margin-top: 24px;
  padding: 14px 22px;
  background: rgba(245,239,228,0.12);
  color: var(--paper);
  border: 1px solid rgba(245,239,228,0.5);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(4px);
  transition: background 0.18s;
}
.aerial-play-btn:hover { background: rgba(245,239,228,0.22); }
.aerial-play-icon {
  width: 0; height: 0;
  border-left: 8px solid var(--paper);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  display: inline-block;
  flex-shrink: 0;
}
.aerial-pause-icon {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.aerial-pause-icon span {
  width: 3px; height: 14px;
  background: var(--paper);
  display: block;
}

/* ---- 9. Newsletter -------------------------------------------------- */
#newsletter {
  background: var(--paper-deep);
  padding: 7.5rem var(--h-pad);
}
.newsletter-inner { max-width: var(--max-w); margin-inline: auto; }
.newsletter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5rem;
  gap: 2rem;
}
.newsletter-head-left { }
.newsletter-h2 {
  font-size: clamp(2.5rem, 5vw, 72px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 540px;
}
.newsletter-dateline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.8;
  flex-shrink: 0;
}
/* Strip CKEditor <p> wrapper */
.newsletter-dateline p { display: inline; margin: 0; }
.newsletter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.newsletter-col { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.newsletter-col p { margin-bottom: 0.85em; }
.newsletter-col p:last-child { margin-bottom: 0; }
.newsletter-col strong { font-weight: 600; color: var(--ink); }
.newsletter-col blockquote {
  border-left: 3px solid var(--rule);
  padding-left: 1em; margin: 1em 0;
  font-style: italic;
}
.newsletter-col a { color: var(--cedar); }
.newsletter-col h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; }
/* Opening salutation — first column only */
.newsletter-grid > .newsletter-col:first-child > p:first-child {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1.25rem;
}

/* ---- 10. History (dark section) ------------------------------------ */
#history {
  background: var(--ink);
  color: var(--paper);
  padding: 7.5rem var(--h-pad);
}
.history-inner { max-width: var(--max-w); margin-inline: auto; }
.history-h2 {
  font-size: clamp(2.5rem, 5vw, 72px);
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-top: 24px;
  max-width: 720px;
}
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 5rem;
  align-items: start;
  margin-top: 5rem;
}
/* Rich HTML blobs on dark bg */
.history-col { font-size: 14px; line-height: 1.7; color: rgba(245,239,228,0.75); }
.history-col p { margin-bottom: 0.85em; }
.history-col p:last-child { margin-bottom: 0; }
.history-col strong { font-weight: 600; color: var(--paper); }
.history-col a { color: var(--brass-light); }
.history-col blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  margin: 1.5em 0;
  color: var(--paper);
  border-left: 2px solid var(--brass-light);
  padding-left: 1.25em;
}
.history-col blockquote p { font-family: var(--serif); margin-bottom: 0.3em; color: var(--paper); font-size: inherit; }
.history-col blockquote p:last-child { font-family: var(--sans); font-size: 12px; color: rgba(245,239,228,0.7); letter-spacing: 0.06em; font-style: normal; }

/* ---- 11. Photos (paper background) --------------------------------- */
#photos {
  background: var(--paper);
  padding: 7.5rem var(--h-pad) 5rem;
}
.photos-inner { max-width: 1280px; margin-inline: auto; }
.photos-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  gap: 2rem;
}
.photos-h2 {
  font-size: clamp(2.5rem, 5vw, 72px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 640px;
}
.photos-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.photos-stage {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
/* Featured image */
.photos-featured {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  overflow: hidden;
}
.photos-featured img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 0.25s;
  cursor: zoom-in;
}
/* Lightbox */
.photos-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.photos-lightbox.open { display: flex; }
.photos-lightbox img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}
.photos-featured-prev,
.photos-featured-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245,239,228,0.4);
  background: rgba(26,37,54,0.3);
  color: var(--paper);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.18s;
  z-index: 2;
}
.photos-featured-prev { left: 16px; }
.photos-featured-next { right: 16px; }
.photos-featured-prev:hover,
.photos-featured-next:hover { background: rgba(26,37,54,0.55); }
/* Meta panel */
.photos-meta {
  background: var(--paper-deep);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.photos-plate-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cedar);
}
.photos-meta-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 12px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.photos-meta-credit {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 8px;
}
.photos-meta-note {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.photos-meta-note a { color: var(--cedar); }
.photos-meta-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.photos-meta-nav button {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  transition: color 0.15s;
}
.photos-meta-nav button:hover { color: var(--ink); }
/* Filmstrip */
.photos-filmstrip {
  margin-top: 24px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.photos-filmstrip::-webkit-scrollbar { height: 3px; }
.photos-filmstrip::-webkit-scrollbar-thumb { background: var(--rule); }
.filmstrip-thumb {
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: none; padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  outline: none;
}
.filmstrip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.filmstrip-thumb:hover { opacity: 0.88; }
.filmstrip-thumb.active {
  opacity: 1;
  outline: 2px solid var(--cedar);
  outline-offset: 2px;
}

/* ---- 12. Members --------------------------------------------------- */
#members {
  background: var(--paper-deep);
  padding: 7.5rem var(--h-pad);
  border-top: 1px solid var(--rule);
}
.members-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.members-directory h2,
.members-board-label { }
.members-h2 {
  font-size: clamp(2.5rem, 4vw, 56px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 0;
}
.members-blurb {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 480px;
}
/* Gateway card */
.members-gateway {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  align-items: center;
}
.gateway-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  flex-shrink: 0;
}
.gateway-text { flex: 1; }
.gateway-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.gateway-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.gateway-btn { flex-shrink: 0; }
/* Membership form link below gateway */
.members-form-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  letter-spacing: 0.02em;
}
.members-form-link:hover { color: var(--ink); }
/* Board roster */
.members-board { }
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 16px;
}
.board-member-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.board-member-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1.1;
}

/* ---- 13. Footer ----------------------------------------------------- */
#footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px var(--h-pad) 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.footer-brand-est {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-light);
  margin-left: 12px;
}
.footer-desc {
  font-size: 14px;
  margin-top: 16px;
  opacity: 0.7;
  max-width: 380px;
  line-height: 1.6;
}
.footer-col-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}
.footer-col-body {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.75;
}
.footer-col-body a { color: rgba(245,239,228,0.75); }
.footer-col-body a:hover { color: var(--paper); text-decoration: none; }

/* ---- 14. Edit mode -------------------------------------------------- */
/* Hero overlay is pointer-events:none so edits wrappers inside need auto */
.hero-overlay .ew,
.hero-overlay .ew * { pointer-events: auto; }

.ew {
  position: relative;
  outline: 2px dashed #1976d2;
  cursor: pointer;
  min-height: 18px;
}
.ew:hover { outline-color: #0d47a1; background: rgba(25,118,210,0.05); }
.ew-label {
  position: absolute;
  top: 0; left: 0;
  background: #1976d2; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; z-index: 9999;
  pointer-events: none;
  font-family: sans-serif; line-height: 1.8; white-space: nowrap;
}
#edit-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100000;
  background: #1976d2; color: #fff;
  padding: 0 16px; height: 42px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: sans-serif; font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#edit-bar a {
  background: rgba(255,255,255,0.2); color: #fff;
  padding: 5px 12px; border-radius: 4px; font-weight: 600; text-decoration: none;
}
.char-counter { font-family: sans-serif; font-size: 11px; margin-top: 4px; color: #555; }
.char-counter.over { color: #c62828; font-weight: 700; }
#json-error { color: #c62828; font-family: sans-serif; font-size: 12px; margin-top: 4px; min-height: 16px; }
.ck-editor__editable { min-height: 200px; }

/* ---- 15. Mobile ----------------------------------------------------- */
@media (max-width: 900px) {
  :root { --h-pad: 2rem; }

  .nav-links { display: none; }
  .nav-tagline { display: none; }
  .nav-toggle { display: block; }

  #hero { height: 520px; }
  .hero-title { font-size: 44px; }
  .hero-subhead { font-size: 16px; }
  .hero-caption-title { font-size: 18px; }

  .join-inner { grid-template-columns: 1fr; gap: 3rem; }
  .join-heading { font-size: 48px; }

  .newsletter-head { flex-direction: column; gap: 0.5rem; }
  .newsletter-dateline { text-align: left; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .newsletter-h2 { font-size: 42px; }

  #history { padding: 5rem var(--h-pad); }
  .history-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2.5rem; }
  .history-h2 { font-size: 42px; }

  .photos-stage { grid-template-columns: 1fr; }
  .photos-featured { aspect-ratio: 4/3; }
  .photos-meta { padding: 20px; }
  .photos-h2 { font-size: 42px; }
  .photos-head { flex-direction: column; gap: 0.5rem; }

  .members-inner { grid-template-columns: 1fr; gap: 3rem; }
  .members-h2 { font-size: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  :root { --h-pad: 1.25rem; }
  .board-grid { grid-template-columns: 1fr; }
}
