@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --forest-dark: #1a3325;
  --forest-mid: #2d5a3d;
  --forest-light: #4a8c5c;
  --lake-deep: #1b4f72;
  --lake-mid: #2e86c1;
  --lake-light: #5dade2;
  --lake-pale: #d6eaf8;
  --cream: #faf8f4;
/* Not used:  --warm-white: #ffffff; */
  --text-dark: #1a1a1a;
  --text-mid: #3d3d3d;
  --text-light: #6b6b6b;
  --accent-amber: #c0392b;
  --accent-gold: #d4ac0d;
  --border-light: #e8f4ea;
  --shadow-green: rgba(45, 90, 61, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: blur(8px); /* Added for banner-loading.webp */
  transform: scale(1.05); /* Added for banner-loading.webp */
  transition: filter 0.8s ease, transform 0.8s ease; /* Added for banner-loading.webp */
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 35, 22, 0.35) 0%,
    rgba(15, 35, 22, 0.55) 50%,
    rgba(10, 25, 50, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease forwards;
}

.hero-overlay,
.hero-content {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lake-light);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}

.hero h1 span {
  color: var(--accent-gold);
}

.hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  margin-top: 17px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  animation: bounce 2.2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── MAIN LAYOUT ───────────────────────────────────── */
main, .main-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ─── SECTIONS ──────────────────────────────────────── */
section {
  padding: 60px 0 20px;
  border-bottom: 1px solid var(--border-light);
}

section:last-child {
  border-bottom: none;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 8px;
}

#local-voices1, #local-voices2 {
  max-width:700px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--forest-dark);
  line-height: 1.2;
  margin-bottom: 22px;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-mid);
  margin-top: 36px;
  margin-bottom: 12px;
}

h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-top: 20px;
  margin-bottom: 6px;
}

p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 14px;
  max-width: 72ch;
}

/* ─── INTRO ─────────────────────────────────────────── */
.intro-box {
  background: linear-gradient(135deg, var(--lake-pale) 0%, #eaf4ec 100%);
  border-left: 4px solid var(--lake-mid);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin-top: 10px;
}

.intro-box p {
  font-size: 1.08rem;
  color: var(--lake-deep);
  font-style: italic;
  margin: 0;
}

/* ─── FEATURED LINKS (top section) ──────────────────── */
.featured-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.featured-link {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 18px 22px;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 12px var(--shadow-green);
  cursor: pointer;
}

.featured-link:hover {
  border-color: var(--forest-light);
  box-shadow: 0 4px 22px rgba(45, 90, 61, 0.18);
  transform: translateY(-2px);
}

.featured-link-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-link-icon.video {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/*
.featured-link-icon.article {
  background: linear-gradient(135deg, var(--lake-deep), var(--lake-mid));
}
*/

.featured-link-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.featured-link-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--forest-dark);
  margin-bottom: 4px;
}

.featured-link-text span {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

/* ─── LOCAL VOICES ──────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.video-card {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 2px 10px var(--shadow-green);
  text-decoration: none;
  display: block;
}

.video-card:hover {
  border-color: var(--forest-light);
  box-shadow: 0 5px 20px rgba(45, 90, 61, 0.2);
  transform: translateY(-3px);
}

.video-card-play {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--forest-mid), var(--forest-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.video-card-play svg {
  width: 18px;
  height: 18px;
  fill: white;
  margin-left: 2px;
}

.video-card-play .icon-external {
  fill: none;
}

.video-card strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--forest-dark);
  margin-bottom: 4px;
}

.video-card span {
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: 'DM Mono', monospace;
}

/* ─── CAROUSEL ──────────────────────────────────────── */
.carousel-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--forest-dark);
  padding: 30px 0 20px 0;
  margin-top: 28px;
}

.carousel-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lake-light);
  text-align: center;
  margin-bottom: 6px;
}

.carousel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  /* margin-bottom: 28px; Set in html */
}

.carousel-track-outer {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex-shrink: 0;
  width: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  cursor: zoom-in;
}

/* Uncropped option
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}
*/

/* Cropped carousel preview */
.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 225px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.carousel-dot.active {
  background: var(--lake-light);
}

.carousel-changecta {
  text-align: center;
  margin-top: 20px;
}

.carousel-changecta a {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--lake-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carousel-changecta a:hover {
  color: #fff;
}

/* ─── RELATED MEDIA ─────────────────────────────────── */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.media-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.media-item:hover {
  border-color: var(--lake-mid);
  box-shadow: 0 3px 14px rgba(46, 134, 193, 0.15);
  transform: translateX(4px);
}

.media-item-type {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.media-item-type.vid  { background: #fde8e8; color: #c0392b; }
.media-item-type.pod  { background: #e8f4ea; color: var(--forest-mid); }
.media-item-type.art  { background: var(--lake-pale); color: var(--lake-deep); }
.media-item-type.doc  { background: #fef9e7; color: #9a7d0a; }

.media-item-body strong {
  display: block;
  font-size: 0.97rem;
  color: var(--forest-dark);
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  margin-bottom: 2px;
}

.media-item-body em {
  font-size: .92rem;
  color: var(--text-light);
  font-style: italic;
}

/* ─── FAQ ───────────────────────────────────────────── */
.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-dark);
  transition: background 0.2s;
}

.faq-q:hover {
  background: #f4faf5;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 300;
  transition: transform 0.3s, background 0.2s;
}

.faq-item.open .faq-q .faq-icon {
  transform: rotate(45deg);
  background: var(--lake-mid);
}

.faq-a {
  max-height: 0;
  /* overflow: hidden; */
  overflow: scroll;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 800px; /* Was 500 */
  padding: 4px 22px 20px;
}

.faq-a p {
  font-size: 0.97rem;
  color: var(--text-mid);
  margin: 0;
}

/* ─── WHAT CAN BE DONE ──────────────────────────────── */
.action-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 16px 20px;
}

.action-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-light);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.action-list li span {
  font-size: 0.98rem;
  color: var(--text-mid);
}

.action-list li span.action-num {
  color: #fff;
}

.action-list li a {
  color: var(--lake-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.action-list li a:hover {
  color: var(--forest-mid);
}

/* ─── IF ALL FAILS ──────────────────────────────────── */
.warning-box {
  background: #fff8f8;
  border: 1.5px solid #f1b8b8;
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 16px;
}

.warning-box h3 {
  color: var(--accent-amber);
  margin-top: 0;
}

.concern-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.concern-list li {
  display: flex;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--text-mid);
}

.concern-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-amber);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ─── FS LINKS ──────────────────────────────────────── */
.fs-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.fs-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--lake-deep);
  font-family: 'Source Serif 4', serif;
  transition: all 0.2s;
}

.fs-link:hover {
  border-color: var(--lake-mid);
  background: var(--lake-pale);
}

.fs-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: var(--lake-mid);
}

/* ─── MODAL ─────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,30,0.9);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 760px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.3s ease;
  position: relative;
}

.modal-box.image-mode {
  background: transparent;
  box-shadow: none;
  max-width: 95vw;
  width: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  display: none;
  text-align: center;
  position: relative;
}

.modal-image img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block;
  margin: 0 auto;
}

.modal-image-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}

.modal-image-nav:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.7);
}

.modal-image-nav.prev { left: 16px; }
.modal-image-nav.next { right: 16px; }

.modal-image-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

.modal-box.image-mode .modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.modal-box.image-mode .modal-close:hover {
  background: rgba(255,255,255,0.35);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 39px; /* Was 34x34 */
  height: 39px;
  border-radius: 50%;
  border: none;
  /*
  background: rgba(0,0,0,0.12);
  color: var(--text-dark);
  */
  background: #000;
  color: #fff;
  font-size: 1.3rem; /* Was 1.2rem */
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

/*
.modal-close:hover {
  background: rgba(0,0,0,0.22);
}
*/

.modal-video {
  width: 100%;
  aspect-ratio: 16/9;
}

.modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.modal-text {
  padding: 28px 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--forest-dark);
  margin-top: 0;
  margin-bottom: 14px;
}

.modal-text p {
  font-size: 0.98rem;
  color: var(--text-mid);
  margin: 0;
}

#modalTextBody a {
  color: var(--forest-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

#modalTextBody a:hover {
  color: var(--forest-dark);
}

/* ─── INLINE AUDIO PLAYER ────────────────────────────── */
.inline-audio-player {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f4faf5;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  max-width: none;
}

.inline-audio-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.inline-audio-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--forest-mid);
}

.inline-audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-audio-controls audio {
  flex: 1;
  height: 36px;
  min-width: 0;
}

.inline-audio-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--forest-light);
  background: none;
  color: var(--forest-light);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.inline-audio-close:hover {
  background: var(--forest-light);
  color: #fff;
}

/* ─── ARTICLE FOOTNOTE ───────────────────────────────── */
.article-footnote {
  margin-top: 14px;
  font-size: 0.91rem;
  color: var(--text-light);
  font-style: italic;
  max-width: none;
}

.article-footnote a {
  color: var(--lake-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.article-footnote a:hover {
  color: var(--forest-mid);
}

/* ─── GREEN WARNING BOX ──────────────────────────────── */
.green-box {
  background: #f2faf4;
  border-color: #a8d5b5;
  margin-top: 16px;
}

.green-box h3 {
  color: var(--forest-mid);
}

.green-num {
  background: var(--forest-mid) !important;
}

/* ─── INLINE TEXT LINKS ─────────────────────────────── */
.warning-box a,
.faq-a a,
.concern-list a,
.green-links a,
.mapsp a {
  color: var(--forest-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.warning-box a:hover,
.faq-a a:hover,
.concern-list a:hover,
.green-links a:hover,
.mapsp a:hover {
  color: var(--forest-dark);
}

/* ─── CONTACT PANEL (slide-in drawer) ───────────────── */
.panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,30,0.6);
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.panel-overlay.active {
  display: block;
}

.panel-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(600px, 100vw);
  height: 100vh;
  background: var(--cream);
  box-shadow: -8px 0 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

/* Make the nav panel narrower */
#navPanelDrawer {
  width: min(250px, 100vw);
}

.panel-overlay.active .panel-drawer {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1.5px solid var(--border-light);
  background: var(--forest-dark);
  flex-shrink: 0;
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px 40px;
}

.panel-content {
  display: none;
}

.panel-content--active {
  display: block;
  height: 100%;
  overflow-y: auto;
  padding: 0;
}

.panel-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.panel-close:hover {
  background: rgba(255,255,255,0.25);
}

.panel-section {
  padding: 10px 0 5px 0;
  border-bottom: 1px solid var(--border-light);
}

.panel-section-last {
  border-bottom: none;
}

.panel-h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--forest-light);
  display: inline-block;
}

.panel-h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest-mid);
  margin: 16px 0 4px;
}

.panel-p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0 0 8px;
  max-width: none;
}

.panel-p a,
.panel-notes a {
  color: var(--forest-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.panel-p a:hover,
.panel-notes a:hover {
  color: var(--forest-dark);
}

.panel-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  background: #f4faf5;
  border-left: 3px solid var(--forest-light);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
}

.panel-note {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

.panel-note-label {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--forest-mid);
  margin-right: 6px;
}

.panel-prompt {
  display: block;
  margin: 8px 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-style: italic;
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.panel-org-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.panel-org-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 7px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--lake-deep);
  font-family: 'Source Serif 4', serif;
  transition: all 0.2s;
}

.panel-org-link:hover {
  border-color: var(--forest-light);
  background: #f4faf5;
  transform: translateX(3px);
}

.panel-org-link::before {
  content: '→';
  font-size: 0.8rem;
  color: var(--forest-light);
  flex-shrink: 0;
}

.panel-org-link.no-arrow::before {
content: none;
/* or: content: ''; display: none; visibility: hidden; */
}

.panel-org-link svg ~ * {
  /* ensures text after svg aligns well */
}
/* Remove the arrow pseudo-element from share panel and contactus panel links that have SVG icons */
#panelContentShare .panel-org-link::before,
#panelContentContact .panel-org-link::before,
#panelContentContactus .panel-org-link::before,
#modalTextBody .panel-org-link::before {
  display: none;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 28px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

footer p {
  color: rgba(255,255,255,0.55);
  max-width: none;
}


/* ─── SHARE PANEL ────────────────────────────────────── */

.share-btn-inline {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 7px;
  padding: 10px 14px;
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  color: var(--lake-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.share-btn-inline:hover {
  border-color: var(--forest-light);
  background: #f4faf5;
  transform: translateX(3px);
}

.share-btn-inline svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.share-feedback {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--forest-mid);
  font-weight: 600;
  font-style: normal;
  max-width: none;
}

.share-note {
  font-size: 0.78rem;
  opacity: 0.65;
}

.panel-org-link svg {
  flex-shrink: 0;
}


/* ─── FLYER PANEL ────────────────────────────────────── */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.flyer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.flyer-card:hover {
  transform: translateY(-3px);
}

.flyer-thumb {
  position: relative;
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-green);
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.flyer-card:hover .flyer-thumb {
  border-color: var(--forest-light);
  box-shadow: 0 5px 20px rgba(45, 90, 61, 0.2);
}

.flyer-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.flyer-download-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.flyer-card:hover .flyer-download-icon {
  opacity: 1;
}

.flyer-download-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.flyer-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

/* ─── CC MARK ────────────────────────────────────────── */
.cc-mark {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cc-mark:hover {
  color: rgba(255, 255, 255, 0.8);
}

.cc-mark svg {
  width: 100%;
  height: 100%;
}

/* ─── CC PANEL LIST ──────────────────────────────────── */
.cc-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-list li {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 14px;
  border-left: 3px solid var(--forest-light);
}

.cc-list li a {
  color: var(--forest-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cc-list li a:hover {
  color: var(--forest-dark);
}


/* ─── NAV MENU BUTTON ───────────────────── */

.nav-menu-btn {
  position: fixed;
  top: 62px; /* sits below the CC mark. sticky-ness is done with javascript */
  right: 24px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  /* background: none; */
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.nav-menu-btn:hover {
  opacity: 0.8;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ─── NAV PANEL ──────────────────────────────────────── */
.nav-panel-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 0;
}

.nav-panel-link {
  display: block;
  padding: 7px 8px;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: var(--forest-mid);
  text-decoration: none;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.nav-panel-link:hover {
  background: #f0f7f2;
  color: var(--forest-dark);
  transform: translateX(4px);
}

.nav-panel-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.nav-panel-btn {
  color: var(--forest-mid);
  font-style: italic;
}


/* ─── MAP OVERLAY ────────────────────────────────────────── */
.map-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #fff;
}

.map-overlay.active {
  display: block;
}

.map-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ─── CONSTRUCTION BANNER ────────────────────────────────── */
.construction-banner {
  text-align: center;
  margin-top:15px;
  margin-bottom:0;
  padding: 14px 20px;
  background: #fef9e7;
  border-bottom: 1.5px solid #f0d060;
}

.construction-btn {
  background: #fdeaa0;
  border: 1.5px solid #c8a400;
  border-radius: 6px;
  padding: 7px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #4a3800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.construction-btn:hover {
  background: #fbd96a;
  color: #2a1f00;
}


/* ─── JUMP LINKS ──────────────────────────────── */

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 50px 0 8px 0;
}



.jump-link {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--forest-mid);
  color: var(--forest-mid);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.jump-link:hover {
  background: var(--forest-mid);
  color: #fff;
}


/* ─── FLOATING AUDIO PLAYER ──────────────────────────────── */

#floatingAudioPlayer {
  display: none;
  position: fixed;
  bottom: 8px;
  left: 8px;
  z-index: 2000;
  width: 20%;
  min-width: 180px;
  background: var(--forest-dark);
  border-radius: 8px;
  padding: 5px 8px 10px 8px;
  /* padding: 8px 10px; changed */
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-family: 'DM Mono', monospace;
}

#floatingAudioPlayer.visible {
  display: block;
}

#floatingAudioPlayer .fap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 0px;
  /* margin-bottom: 6px; changed */
}

#floatingAudioPlayer .fap-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

#floatingAudioPlayer .fap-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

#floatingAudioPlayer .fap-btn:hover {
  color: #fff;
}

#floatingAudioPlayer .fap-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#floatingAudioPlayer .fap-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff; /* rgba(255,255,255,0.5); */
  font-size: 1.4rem;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.2s;
  font-family: 'DM Mono', monospace;
}

#floatingAudioPlayer .fap-close:hover {
  color: #fff;
}

#floatingAudioPlayer .fap-scrub {
  width: 100%;
  height: 3px;
  accent-color: var(--forest-light);
  cursor: pointer;
}

@media (max-width: 640px) {
  #floatingAudioPlayer {
    width: 30%;
    min-width: 150px;
  }
}




/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
  .featured-link { flex-direction: column; gap: 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .carousel-slide { width: 300px; }
  .modal-text { padding: 20px; }
}
