/* ============================================
   AFNEMO - sections.css
   All non-hero sections: about, programs, news,
   team, partners, newsletter, footer, map, arcgis,
   chatbot, modal, kente-bar, cta-banner
   ============================================ */

/* ─── ABOUT ─── */
.about {
  background: var(--warm-black);
}
.about-hero-strip {
  padding: 8rem 4rem 5rem;
  background: var(--warm-black);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect x="0" y="0" width="20" height="20" fill="rgba(200,134,10,0.04)"/><rect x="40" y="0" width="20" height="20" fill="rgba(181,69,27,0.04)"/><rect x="20" y="20" width="20" height="20" fill="rgba(200,134,10,0.04)"/><rect x="60" y="20" width="20" height="20" fill="rgba(27,77,53,0.08)"/></svg>');
  background-size: 80px 80px;
}
.about-hero-strip h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--cream);
  line-height: 1.05;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}
.about-hero-strip h2 em {
  color: var(--gold);
  font-style: italic;
}
.about-hero-strip .strip-sub {
  font-size: 1rem;
  color: rgba(240,232,213,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

/* Kente-inspired color bar */
.kente-bar {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 30px,
    var(--earth-red) 30px, var(--earth-red) 60px,
    var(--sage-light) 60px, var(--sage-light) 90px,
    var(--warm-black) 90px, var(--warm-black) 100px,
    var(--gold) 100px, var(--gold) 130px,
    #0D4A63 130px, #0D4A63 160px
  );
  width: 100%;
}

/* ─── ABOUT ORIGEN ─── */
.about-origen {
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}
.about-origen-left h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.about-origen-left p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(240,232,213,0.65);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.about-neftali {
  background: rgba(200,134,10,0.07);
  border: 1px solid rgba(200,134,10,0.2);
  border-radius: 16px;
  padding: 2.5rem;
}
.about-neftali-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.about-neftali blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}
.neftali-dates {
  font-size: 0.78rem;
  color: rgba(240,232,213,0.4);
  font-weight: 300;
}

/* ─── ABOUT MISSION / VISION ─── */
.about-mv {
  background: rgba(0,0,0,0.25);
  padding: 5rem 4rem;
}
.about-mv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
}
.mv-card {
  background: rgba(245,237,224,0.04);
  border: 1px solid rgba(245,237,224,0.08);
  border-radius: 20px;
  padding: 2.5rem;
}
.mv-card.mision { border-top: 3px solid var(--earth-red); }
.mv-card.vision { border-top: 3px solid var(--sage-light); }
.mv-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.mv-card.mision .mv-label { color: var(--earth-red); }
.mv-card.vision .mv-label { color: var(--sage-light); }
.mv-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 1rem;
}
.mv-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(240,232,213,0.6);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.mv-objetivos {
  border-top: 1px solid rgba(245,237,224,0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mv-obj-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: rgba(245,237,224,0.03);
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(240,232,213,0.6);
  line-height: 1.5;
}
.mv-obj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--earth-red);
  flex-shrink: 0;
  margin-top: 0.3rem;
}
.mv-card.vision .mv-obj-dot { background: var(--sage); }

/* ─── ABOUT CONTENT (used in light variant) ─── */
.about-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--deep-brown);
}
.about-content h2 span {
  color: var(--earth-red);
  font-style: italic;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(44, 24, 16, 0.7);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(44, 24, 16, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(44, 24, 16, 0.06);
}
.value-icon {
  width: 36px;
  height: 36px;
  background: var(--earth-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.value-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--deep-brown);
}
.value-item p {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ─── PROGRAMS ─── */
.programs {
  background: var(--warm-black);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}
.programs::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.05), transparent 70%);
  border-radius: 50%;
}
.programs-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}
.programs-header .section-tag {
  color: var(--gold);
}
.programs-header .section-tag::before {
  background: var(--gold);
}
.programs-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.programs-header p {
  color: rgba(245, 237, 224, 0.5);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.program-card {
  background: rgba(245, 237, 224, 0.04);
  border: 1px solid rgba(245, 237, 224, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.program-card:hover::before {
  transform: scaleX(1);
}
.program-card:hover {
  background: rgba(245, 237, 224, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.program-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--accent-orange));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.program-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.program-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 237, 224, 0.5);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.program-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.program-link:hover {
  gap: 0.8rem;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: 6rem 3rem;
  background:
    linear-gradient(135deg, var(--earth-red) 0%, var(--deep-brown) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="k" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0L40 20L20 40L0 20Z" fill="none" stroke="rgba(245,237,224,0.04)" stroke-width="1"/></pattern></defs><rect fill="url(%23k)" width="200" height="200"/></svg>');
  background-size: 40px 40px;
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.cta-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.cta-content p {
  color: rgba(245, 237, 224, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── NEWS ─── */
.news {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.news-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--deep-brown);
  line-height: 1.15;
}
.news-header a {
  color: #973813;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.news-header a:hover { gap: 0.8rem; }
.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.news-card {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid rgba(44, 24, 16, 0.06);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(44, 24, 16, 0.1);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.news-card:first-child .news-card-img {
  aspect-ratio: 16/12;
}
.news-card-img::before {
  content: '📷 Imagen del artículo';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 24, 16, 0.2);
  font-size: 0.85rem;
  z-index: 0;
}
/* Ocultar placeholder cuando la tarjeta tiene imagen real */
.news-card-img.has-image::before {
  display: none;
}
.news-card-body {
  padding: 1.5rem;
}
.news-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth-red);
  margin-bottom: 0.75rem;
}
.news-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--deep-brown);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.news-card:first-child .news-card-body h3 {
  font-size: 1.5rem;
}
.news-card-body p {
  font-size: 0.85rem;
  color: rgba(44, 24, 16, 0.5);
  line-height: 1.6;
  font-weight: 300;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 24, 16, 0.06);
  font-size: 0.75rem;
  color: rgba(44, 24, 16, 0.4);
}

/* ─── TEAM ─── */
.team {
  background: var(--cream-dark);
  padding: 8rem 3rem;
}
.team-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.team-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.team-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--deep-brown);
  margin-bottom: 1rem;
}
.team-header p {
  color: rgba(44, 24, 16, 0.5);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}
/* ─── NEWSLETTER ─── */
.newsletter {
  padding: 5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.newsletter p {
  color: rgba(44, 24, 16, 0.5);
  margin-bottom: 2rem;
  font-weight: 300;
}
/* ─── FOOTER ─── */
footer {
  background: var(--warm-black);
  padding: 5rem 3rem 2rem;
  color: var(--cream);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(245, 237, 224, 0.08);
}
.footer-brand {
  max-width: 350px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 237, 224, 0.4);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 237, 224, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--warm-black);
}
.footer-col h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.footer-col a {
  display: block;
  color: rgba(245, 237, 224, 0.5);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
  font-weight: 300;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(245, 237, 224, 0.25);
}
.footer-bottom a {
  color: rgba(245, 237, 224, 0.25);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* ─── ARCGIS SECTION ─── */
.arcgis-section {
  padding: 5rem 3rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.arcgis-section-header {
  margin-bottom: 2.5rem;
}
.arcgis-section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--deep-brown);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.arcgis-section-header p {
  color: rgba(44, 24, 16, 0.5);
  font-size: 1rem;
  font-weight: 300;
  max-width: 600px;
  margin-top: 0.5rem;
}
.arcgis-map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.08);
  box-shadow: 0 10px 40px rgba(44, 24, 16, 0.08);
  background: white;
}
.arcgis-map-wrapper iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

/* ─── CHATBOT WIDGET ─── */
#chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.5);
  z-index: 9000;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.5rem;
}
#chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(212, 168, 83, 0.6);
}
#chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 370px;
  height: 520px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(26, 18, 16, 0.2);
  z-index: 8999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.08);
  animation: slideUp 0.3s ease;
}
#chat-window.open {
  display: flex;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
#chat-header {
  background: var(--deep-brown);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chat-header-info h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.1rem;
}
.chat-header-info span {
  font-size: 0.72rem;
  color: rgba(245, 237, 224, 0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
#chat-close {
  margin-left: auto;
  background: rgba(245, 237, 224, 0.1);
  border: none;
  color: var(--cream);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
#chat-close:hover { background: rgba(245, 237, 224, 0.2); }
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #faf8f5;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(44,24,16,0.1); border-radius: 4px; }
.chat-msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  max-width: 88%;
}
.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.chat-msg.bot .chat-msg-avatar { background: var(--deep-brown); }
.chat-msg-bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--deep-brown);
}
.chat-msg.bot .chat-msg-bubble {
  background: white;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(44,24,16,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.chat-msg.user .chat-msg-bubble {
  background: var(--deep-brown);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}
#chat-input-area {
  padding: 1rem;
  border-top: 1px solid rgba(44,24,16,0.07);
  display: flex;
  gap: 0.6rem;
  background: white;
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(44,24,16,0.12);
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--deep-brown);
  outline: none;
  transition: border-color 0.3s ease;
  background: #faf8f5;
}
#chat-input:focus { border-color: var(--gold); }
#chat-input::placeholder { color: rgba(44,24,16,0.3); }
#chat-send {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
#chat-send:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}
#chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Readable content and completed routes, using the existing AFNEMO palette. */
.about-hero-strip .strip-sub, .about-origen-left p, .neftali-dates,
.mv-card p, .mv-obj-item, .programs-header p, .program-card p,
.footer-brand p, .footer-col a, .footer-bottom, .footer-bottom a { color: #c6bfaf; }
.mv-card.mision .mv-label { color: #f5a17d; }
.mv-card.vision .mv-label { color: #80cfa3; }
.news-card-body p, .news-card-meta, .team-header p, .arcgis-section-header p,
.newsletter p { color: #655344; }
.program-card { cursor: default; }
.program-link { line-height: 1.65; }
.programs-more { max-width: 900px; margin: 2.5rem auto 0; text-align: center; }
.legacy-programs { margin-top: 2rem; padding: 1.5rem; border: 1px solid #655344; border-radius: 12px; text-align: left; color: var(--cream); line-height: 1.7; }
.legacy-programs summary { cursor: pointer; font-weight: 600; }
.legacy-programs p { margin: 1rem 0; }
.legacy-programs a { color: var(--gold-light); }
.cta-content .service-note { font-size: .9rem; margin: 1.5rem 0 0; color: var(--cream); }
.team-header { margin-bottom: 0; max-width: 750px; }
.team-header p + p { margin-top: 1rem; }
.arcgis-section-header p { max-width: 780px; line-height: 1.7; }
.map-help { margin: 1rem 0 2.5rem; line-height: 1.7; }
.map-help a, .arcgis-section-header a, .contact-links a { color: #81300f; }
.territory-stories { padding: 2.5rem; background: #e6dac1; border-radius: 16px; scroll-margin-top: 7rem; }
.territory-stories h3, .newsletter h2 { font-family: 'DM Serif Display', serif; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.territory-stories p { max-width: 780px; line-height: 1.75; }
.contact-links a { font-weight: 600; padding: .5rem 0; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.newsletter p { line-height: 1.75; }
.newsletter .service-note { font-size: .9rem; }
.footer-bottom { gap: 1.5rem; flex-wrap: wrap; padding-bottom: 4rem; }
.footer-brand-logo { flex-wrap: wrap; }
@media (max-width: 768px) {
 .programs, .news, .team, .cta-banner { padding: 4rem 1.25rem; }
 .news-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
 .programs-header { margin-bottom: 2rem; }
 .program-card { padding: 1.7rem; }
 .territory-stories { padding: 1.5rem; }
 .arcgis-map-wrapper iframe { height: 420px; }
 .newsletter, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
 .mv-card, .about-neftali { padding: 1.5rem; }
 .about-hero-strip { padding: 4rem 1.25rem; }
 .about-hero-strip .strip-sub { margin-bottom: 1.5rem; }
}
/* Home news: a single archival edition should remain comfortably readable. */
.news-card:only-child { grid-column: 1 / -1; max-width: 780px; }
.news-card-body h3 a { color: var(--deep-brown); text-decoration: none; }
.news-card-body h3 a:hover { text-decoration: underline; }
.news-read-link { display: inline-block; color: #81300f; font-weight: 600; margin-top: 1rem; padding-block: .4rem; }
.news-state { grid-column: 1 / -1; padding: 1.5rem; line-height: 1.7; border: 1px solid #bdae91; border-radius: 12px; }
.news-state p { margin: .6rem 0 1rem; }
.news-card-img.has-image img { width: 100%; height: 100%; object-fit: cover; }
.news-image-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem; background: rgba(9,12,7,.85); color: var(--cream); font-size: .8rem; }

.about-full-story { max-width: 1300px; margin: 0 auto; padding: 0 4rem 3rem; }
.history-link { display: inline-block; color: #81300f; font-weight: 600; margin: 1.5rem 0 .5rem; line-height: 1.7; }
.news-card-meta { flex-wrap: wrap; gap: .3rem; }
@media (max-width: 768px) { .about-full-story { padding: 0 1.5rem 2rem; } }

/* Independent map and documentary archive, sharing the site's editorial palette. */
.territory-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.territory-paths a { padding: 1.25rem 1.5rem; background: #e6dac1; border-top: 3px solid var(--sage); color: var(--text-dark); text-decoration: none; line-height: 1.65; }
.territory-paths a:hover { background: #ddd0b8; }
.territory-paths a > span:first-child { display: block; color: var(--sage); font-weight: 600; }
.territory-map { scroll-margin-top: 6rem; }
.territory-section-heading { max-width: 830px; line-height: 1.75; margin-bottom: 1.5rem; }
.territory-section-heading h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; font-weight: 400; margin: .6rem 0 1rem; }
.territory-eyebrow { color: var(--sage); font-size: .82rem; font-weight: 600; letter-spacing: .05em; }
.map-source { font-size: .85rem; margin-top: .65rem; color: #554435; }
.map-source a, .territory-all { color: var(--sage); }
.map-intro { min-height: 300px; padding: 3rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; background: #e5eddf; }
.map-intro > p:first-child { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2rem); }
.map-intro p { max-width: 46ch; line-height: 1.6; }
.territory-button { padding: .8rem 1.3rem; min-height: 48px; border: 1px solid var(--sage); border-radius: 6px; background: var(--sage); color: #fffaf0; font-weight: 600; cursor: pointer; }
.territory-button:hover { background: #103822; }
.territory-button.secondary { background: transparent; color: var(--sage); }
.territory-button.secondary:hover { background: #e5eddf; }
.map-controls-public { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.map-controls-public > p { font-size: .92rem; line-height: 1.65; color: #554435; max-width: 65ch; }
.map-controls-public > div { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: .5rem; }
.map-help { font-size: .92rem; }
.territory-stories { background: #e5eddf; border-radius: 12px; margin-top: 3rem; }
.territory-stories > h3 { margin-top: .6rem; font-weight: 400; }
.territory-stories .experience-filters { margin-top: 1.8rem; padding: 0; background: transparent; }
.territory-stories .content-count { font-size: .9rem; }
.territory-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.territory-story { border-top: 1px solid #a8b89d; padding: 1.5rem 0; }
.territory-story h4 { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.6rem; font-weight: 400; line-height: 1.35; margin: .3rem 0 .7rem; }
.territory-story h4 a { color: var(--text-dark); text-decoration-thickness: 1px; }
.territory-story h4 span { font-family: 'Outfit', sans-serif; font-size: 1.1rem; color: var(--sage); }
.territory-story > .content-territory { color: var(--sage); font-size: .85rem; font-weight: 600; }
.territory-story > p:last-child { font-size: .95rem; line-height: 1.65; }
.territory-all { display: inline-block; font-weight: 600; margin-top: 1rem; padding-block: .6rem; }
.arcgis-section :focus-visible { outline: 3px solid var(--pacific); outline-offset: 4px; }
@media (max-width: 768px) {
  .territory-paths, .territory-story-grid { grid-template-columns: 1fr; }
  .territory-paths { gap: .7rem; }
  .territory-paths a { padding: 1rem; }
  .map-controls-public { align-items: flex-start; flex-direction: column; }
  .map-intro { min-height: 260px; padding: 2rem 1rem; }
  .territory-stories { margin-inline: -.25rem; padding: 1.25rem; }
  .arcgis-map-wrapper iframe { height: 420px; max-height: 65svh; }
}
