/* =========================================================
   Maya's Neighborhood Association — Shared Stylesheet
   Portable template. Colors, fonts, and spacing are defined
   as CSS variables below so a client can re-skin the whole
   site by editing this one block. See REBRANDING-GUIDE.md.
   Color pairs in this file are chosen to meet WCAG AA contrast
   — see ACCESSIBILITY.md for the verified ratios.
   ========================================================= */

:root {
  /* --- Brand colors: swap these to re-theme the entire site --- */
  --color-primary: #2f5233;
  --color-primary-dark: #1f3a24;
  --color-primary-light: #4a7355;

  /* Site-wide accent is light blue by default. The News page overrides
     this back to warm gold via body.page-news, further down. */
  --color-accent: #4fa3c7;
  --color-accent-dark: #2a708e; /* darkened from initial draft to clear WCAG AA (4.5:1) as text/pill color */

  /* The newsletter "call to action" accent stays warm gold on every
     page, regardless of that page's --color-accent, so "View the
     Community Newsletter" always reads as a consistent, distinct CTA. */
  --color-cta: #d9a441;
  --color-cta-dark: #8b6320; /* darkened to clear WCAG AA as a hover background under white text */
  --color-cta-bg: #fbf6e9;

  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-border: #e2ddd2;
  --color-placeholder-bg: #eaf4f8;
  --color-placeholder-border: #4fa3c7;

  /* --- Typography --- */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Arial, sans-serif;

  /* --- Layout --- */
  --header-height: 160px;
  --header-height-shrunk: 80px;
  --max-width: 1180px;
  --radius: 10px;
  --shadow-soft: 0 2px 14px rgba(0, 0, 0, 0.08);
  --transition: all 0.28s ease;
}

/* News page keeps the original warm gold accent throughout its own
   page (per client request) — every element using var(--color-accent)
   here (borders, dividers, card trim) renders orange instead of blue.
   The dark variant matches --color-cta-dark so contrast stays AA. */
body.page-news {
  --color-accent: #d9a441;
  --color-accent-dark: #8b6320;
  --color-placeholder-bg: #fbf6e9;
  --color-placeholder-border: #d9a441;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 17px; } /* modest base bump for readability at 100% zoom — all rem-based sizing below scales from this */

/* Respect users who've asked their OS/browser to reduce motion —
   removes the sticky-header shrink animation, dropdown motion, and
   carousel sliding, without breaking functionality. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary-dark); margin-top: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Push page content below the fixed header. --header-height-actual is kept
   in sync with the header's real rendered height by a ResizeObserver in
   script.js, so content never overlaps the header even if it grows taller
   than the --header-height assumption (browser zoom, text-only zoom,
   wrapped nav items, a taller client logo, translated text, etc.). The
   var(--header-height) value is only a fallback for the instant before JS
   runs. */
main { padding-top: calc(var(--header-height-actual, var(--header-height)) + 24px); transition: var(--transition); }
body.shrunk main { padding-top: calc(var(--header-height-actual, var(--header-height-shrunk)) + 24px); }

/* =========================================================
   Sample-content banner (demo version only)
   ========================================================= */
.sample-banner {
  /* Fix: text used to sit directly on a diagonal yellow/black hazard-
     stripe background using dark text (#1f1a08) — on the dark stripe
     segments the text color matched the background exactly, making
     roughly half the message illegible. The stripe now lives only in
     thin ::before/::after accent bars; the message itself sits on a
     single solid, high-contrast background the whole way across. */
  position: relative;
  z-index: 1300;
  background: #1f1a08;
  color: #ffcc33;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 12px 16px;
}
.sample-banner::before,
.sample-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(45deg, #ffcc33, #ffcc33 10px, #1f1a08 10px, #1f1a08 20px);
}
.sample-banner::before { top: 0; }
.sample-banner::after { bottom: 0; }
.sample-banner span {
  background: #1f1a08;
  color: #ffcc33;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}
/* Push the fixed header down below the banner on demo pages */
body.has-sample-banner .site-header { top: 34px; }
body.has-sample-banner main { padding-top: calc(var(--header-height-actual, var(--header-height)) + 34px + 24px); }
body.has-sample-banner.shrunk main,
body.has-sample-banner main.shrunk { padding-top: calc(var(--header-height-actual, var(--header-height-shrunk)) + 34px + 24px); }

/* =========================================================
   Skip link (accessibility)
   ========================================================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
}
.skip-link:focus { left: 8px; top: 8px; }
body.has-sample-banner .skip-link:focus { top: 40px; }

/* =========================================================
   Header / Banner (sticky + shrinks on scroll)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-accent);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  min-height: var(--header-height); /* min-height (not height) lets the header grow instead of clipping content at large zoom/text sizes */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.shrunk .site-header { min-height: var(--header-height-shrunk); }

.header-top {
  position: relative; /* anchors .mobile-nav-toggle to this row, not the whole banner */
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 10px 24px 6px;
  transition: var(--transition);
}

/* Wraps the logo + site title so the whole banner brand is one link
   back to the home page. */
.brand-link {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }
.brand-link:hover .site-title h1 { color: var(--color-accent-dark); }

/* Logo placeholder — signals where a client drops in their real logo */
.logo-placeholder {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border: 2px dashed var(--color-placeholder-border);
  border-radius: 50%;
  background: var(--color-placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  line-height: 1.2;
  letter-spacing: 0.03em;
  transition: var(--transition);
  padding: 6px;
}
body.shrunk .logo-placeholder { width: 46px; height: 46px; font-size: 0.42rem; padding: 2px; }

.site-title h1 {
  font-size: 1.7rem;
  margin: 0;
  color: var(--color-primary-dark);
  transition: var(--transition);
}
body.shrunk .site-title h1 { font-size: 1.15rem; }

.site-title .tagline {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  transition: var(--transition);
}
body.shrunk .site-title .tagline { opacity: 0; height: 0; margin: 0; overflow: hidden; }

/* =========================================================
   Navigation
   ========================================================= */
.main-nav {
  background: var(--color-primary);
  transition: var(--transition);
}
.main-nav .container { max-width: var(--max-width); }

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list > li { position: relative; }

.nav-list > li > a,
.nav-list > li > button.nav-toggle {
  display: block;
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
body.shrunk .nav-list > li > a,
body.shrunk .nav-list > li > button.nav-toggle { padding: 9px 16px; font-size: 0.88rem; }

.nav-list > li > a:hover,
.nav-list > li.open > button.nav-toggle,
.nav-list > li > a[aria-current="page"] {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.nav-list > li > a[aria-current="page"] { border-bottom: 3px solid var(--color-accent); }

/* Dropdown */
.dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1100;
}

.nav-list > li.open .dropdown,
.nav-list > li:hover .dropdown,
.nav-list > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
}
.dropdown li a:hover { background: var(--color-placeholder-bg); color: var(--color-primary-dark); text-decoration: none; }
.dropdown li.dropdown-divider { border-top: 1px solid var(--color-border); margin: 6px 0; }
.dropdown li.dropdown-external a { font-style: italic; color: var(--color-muted); }

/* Mobile nav toggle button (hamburger) */
.mobile-nav-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 44px;
  height: 40px;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1200;
}

@media (max-width: 880px) {
  .mobile-nav-toggle { display: block; }
  .header-top { padding-right: 70px; }
  /* Simple display toggle instead of an animated max-height guess —
     more reliable regardless of how much content the client adds. */
  .main-nav { display: none; }
  .main-nav.mobile-open { display: block; }
  .nav-list { flex-direction: column; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    background: var(--color-primary-light);
  }
  .nav-list > li.open .dropdown { display: block; }
  .dropdown li a { color: #fff; }
  .dropdown li a:hover { background: var(--color-primary-dark); color: #fff; }
}

/* =========================================================
   Reusable "client content" placeholder blocks
   ========================================================= */
.content-drop-zone {
  border: 2px dashed var(--color-placeholder-border);
  background: var(--color-placeholder-bg);
  border-radius: var(--radius);
  padding: 26px;
  margin: 18px 0;
  color: var(--color-accent-dark);
}
.content-drop-zone .drop-label {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: var(--color-accent-dark);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.content-drop-zone p { color: var(--color-text); margin: 6px 0 0; }
.content-drop-zone.compact { padding: 16px; margin: 10px 0; }

/* =========================================================
   Interactive boundary map embed (About page)
   ========================================================= */
.map-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
}
.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   Board Members — 2-column rows (photo left, bio right)
   ========================================================= */
.board-member-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: stretch;
  margin: 18px 0;
  padding: 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.board-member-photo {
  border: 2px dashed var(--color-placeholder-border);
  background: var(--color-placeholder-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-accent-dark);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 10px;
  min-height: 160px;
  overflow: hidden;
}
.board-member-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--radius) - 2px); }
/* Illustrated stand-in avatars (used until a client supplies a real photo) —
   solid border/background instead of the dashed placeholder look, since
   these are finished decorative illustrations, not empty drop zones. */
.board-member-photo.illustrated {
  padding: 0;
  border-style: solid;
  border-color: var(--color-border);
  background: var(--color-surface);
  position: relative;
}
.board-member-photo.illustrated svg { width: 100%; height: 100%; display: block; }
.photo-pending-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-cta-dark);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}
.board-member-bio h4 { margin-bottom: 4px; }
.board-member-bio .board-member-role { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 8px; font-style: italic; }
.board-member-bio p.bio-text { margin: 0; }
@media (max-width: 560px) {
  .board-member-grid { grid-template-columns: 1fr; }
  .board-member-photo { min-height: 120px; }
}

/* =========================================================
   Page sections / cards
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 48px 0;
  margin-bottom: 8px;
}
.page-hero h2 { color: #fff; margin: 0 0 8px; }
.page-hero p { color: #eef3ea; max-width: 700px; margin: 0; }

.section { padding: 40px 0; border-bottom: 1px solid var(--color-border); }
.section:last-child { border-bottom: none; }
.section h3 { font-size: 1.5rem; margin-bottom: 4px; }
.section-intro { color: var(--color-muted); margin-top: 0; margin-bottom: 18px; }

.anchor-offset { scroll-margin-top: calc(var(--header-height) + 16px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card-grid.three-col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) {
  .card-grid.three-col { grid-template-columns: 1fr; }
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  border-top: 4px solid var(--color-accent);
}
.card h4 { margin-bottom: 8px; }

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.btn.btn-accent { background: var(--color-cta); color: #402c07; }
.btn.btn-accent:hover { background: var(--color-cta-dark); color: #fff; }
.btn.btn-outline { background: transparent; border: 2px solid #fff; }

.newsletter-cta {
  background: var(--color-cta-bg);
  border: 2px dashed var(--color-cta);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.newsletter-cta p { margin: 0; font-weight: 600; color: var(--color-primary-dark); }

/* =========================================================
   Image carousel (4-image gallery)
   ========================================================= */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--color-surface);
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel-slide .image-drop-zone {
  border-radius: 0;
  aspect-ratio: 16 / 7;
  margin: 0;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 16/7; background: var(--color-placeholder-bg); }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31, 58, 36, 0.55);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(31, 58, 36, 0.8); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: var(--color-surface);
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--color-accent); }

/* =========================================================
   Footer — scenic banner (mountain silhouette over photo)
   ========================================================= */
.footer-scenic {
  position: relative;
  height: 150px;
  margin-top: 40px;
  overflow: hidden;
  background-image: linear-gradient(180deg, #274a45 0%, #4a7355 12%, #d9a441 32%, #c9903c 48%, #9c7038 62%, #b73a2c 80%, #5b3f2c 100%),
                     url('../images/footer-scenic.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
}
/* Mountain silhouette sitting along the bottom edge of the scenic
   band, in the spirit of the City of Eugene site's footer. */
.footer-scenic svg {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: #d9e2d5;
  padding: 34px 0 20px;
  margin-top: 0;
  font-size: 0.88rem;
}
.site-footer a { color: #f3d98a; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.footer-grid h5 { color: #fff; margin: 0 0 8px; font-family: var(--font-heading); }
.footer-bottom { text-align: center; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); color: #a9b6a4; }
.footer-credit { margin: 6px 0 0; font-size: 0.78rem; color: #a9b6a4; }
.footer-credit a { color: #f3d98a; }

.footer-events-list { list-style: none; margin: 0; padding: 0; }
.footer-events-list li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  font-size: 0.85rem;
}
.footer-events-list li:last-child { border-bottom: none; }

/* =========================================================
   Contact Us — hover-to-reveal cards
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.contact-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.contact-card:hover,
.contact-card:focus-within,
.contact-card.revealed {
  box-shadow: 0 8px 26px rgba(47, 82, 51, 0.25);
  transform: translateY(-3px);
}

.contact-card .contact-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-card .contact-org {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.contact-card .contact-hint {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.contact-card .contact-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
  margin-top: 0;
  text-align: left;
  border-top: 0 solid var(--color-border);
}
.contact-card:hover .contact-details,
.contact-card:focus-within .contact-details,
.contact-card.revealed .contact-details {
  max-height: 260px;
  opacity: 1;
  margin-top: 14px;
  border-top: 1px dashed var(--color-border);
  padding-top: 12px;
}
.contact-card:hover .contact-hint,
.contact-card:focus-within .contact-hint,
.contact-card.revealed .contact-hint { display: none; }

.contact-details dt { font-weight: 700; font-size: 0.78rem; color: var(--color-primary-dark); margin-top: 8px; }
.contact-details dd { margin: 2px 0 0; font-size: 0.9rem; }

.contact-card:focus { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* =========================================================
   News page — decorative
   ========================================================= */
.news-hero {
  background: var(--color-primary);
  background-image: radial-gradient(circle at 20% 20%, rgba(217,164,65,0.25), transparent 45%),
                     radial-gradient(circle at 80% 60%, rgba(217,164,65,0.2), transparent 50%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.news-hero h2 { color: #fff; font-size: 2.1rem; }
.news-hero p { color: #eef3ea; max-width: 620px; margin: 10px auto 0; }

.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.newsletter-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border-bottom: 6px solid var(--color-accent);
}
.newsletter-card .newsletter-cover {
  height: 150px;
  background: repeating-linear-gradient(45deg, var(--color-placeholder-bg), var(--color-placeholder-bg) 12px, #fff 12px, #fff 24px);
  border-bottom: 2px dashed var(--color-placeholder-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}
.newsletter-card .newsletter-body { padding: 18px 20px; }
.newsletter-card .newsletter-date { font-size: 0.78rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.decorative-divider {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--color-accent), var(--color-accent) 14px, var(--color-primary) 14px, var(--color-primary) 28px);
  border-radius: 3px;
  margin: 30px 0;
}

/* =========================================================
   Picture placeholders (home page and elsewhere)
   ========================================================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 18px 0;
}
.image-drop-zone {
  border: 2px dashed var(--color-placeholder-border);
  background: var(--color-placeholder-bg);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 16px;
  overflow: hidden;
}
.image-drop-zone .drop-icon { display: block; font-size: 1.8rem; margin-bottom: 6px; }
.image-drop-zone img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================================
   Utility
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.82rem; color: var(--color-muted); }

/* =========================================================
   Eliana NA demo (portfolio/personal-highlight sample) —
   cursive logotype, event calendar, illustrated boundary map
   ========================================================= */
.logo-mna {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1;
  flex: 0 0 auto;
  padding: 0 6px;
  transition: var(--transition);
}
body.shrunk .logo-mna { font-size: 1.5rem; }

.event-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.event-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  border-left: 4px solid var(--color-cta);
  display: flex;
  gap: 14px;
  align-items: center;
}
.event-date-badge {
  background: var(--color-cta-bg);
  color: var(--color-cta-dark);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  min-width: 54px;
  flex: 0 0 auto;
}
.event-date-badge .day { display: block; font-size: 1.3rem; line-height: 1; }
.event-date-badge .mon { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; }
.event-info h4 { margin: 0 0 2px; font-size: 0.95rem; }
.event-info p { margin: 0; font-size: 0.82rem; color: var(--color-muted); }

.map-illustration {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  background: #fff;
  margin-bottom: 10px;
}
.map-illustration svg { display: block; width: 100%; height: auto; }


/* =========================================================
   Eliana demo — header design echoes the footer's scenic band
   (same teal->green->gold->rust->brown gradient + mountain
   silhouette), but at very low opacity so header text stays
   legible. Contrast-checked: text stays above WCAG AA (4.5:1)
   even over the darkest gradient stop.
   ========================================================= */
body.theme-eliana .site-header {
  background:
    linear-gradient(180deg,
      rgba(39,74,69,0.08) 0%,
      rgba(74,115,85,0.08) 15%,
      rgba(217,164,65,0.09) 40%,
      rgba(201,144,60,0.08) 58%,
      rgba(156,112,56,0.07) 75%,
      rgba(183,58,44,0.05) 90%,
      rgba(91,63,44,0.05) 100%),
    var(--color-surface);
}
body.theme-eliana .main-nav {
  position: relative;
}
body.theme-eliana .main-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  opacity: 0.4;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'><polygon points='0,40 0,22 120,6 220,28 320,14 430,30 520,12 620,32 720,16 820,30 900,14 1000,28 1080,18 1200,30 1200,40' fill='%235b3f2c'/></svg>");
}
