/* ===========================
   BASE STYLES (shared)
   =========================== */

:root {
  --primary: #008037;
  --primary-light: #00A84B;
  --accent: #FFD700;
  --bg: #f5f5f5;
  --text: #111111;
  --muted: #6E6E6E;
	--muted-dark: #4a4a4a;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Shared wrapper utility */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ===========================
   HEADER / NAV (shared)
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(17, 110, 48, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
	align-items: center;
	gap: 0.75rem;
}

.nav-left img {
	height: 100px;
}

.nav-logo {
	height: 100px;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 1.15rem;
	color: #ffffff;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-social .bluesky-icon {
	width: 18px;
	height: 18px;
	filter: invert(100%) sepia(100%) grayscale(100%) brightness(150%);
	transition: filter 0.2s ease;
}

.nav-social a {
  font-size: 1.2rem;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-social a:hover .bluesky-icon {
	filter: brightness(0) saturate(100%) invert(84%) sepia(68%) saturate(1052%) hue-rotate(358deg)
}

/* --- Dropdown wrapper positioning --- */
.nav-dropdown {
  position: relative;
  display: inline-flex; /* keeps it aligned with other links */
  align-items: center;
}

/* --- Dropdown panel hidden by default --- */
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 200px;
  padding: 0.4rem 0;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: var(--shadow);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;

  z-index: 1000;
}

/* --- Show on hover + keyboard focus --- */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Dropdown links --- */
.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

/* --- Hover state --- */
.nav-dropdown .dropdown-menu a:hover {
  background: rgba(255, 215, 0, 0.16); /* subtle gold */
}


/* Chevron toggle button — mobile only, hidden on desktop */
.nav-dropdown-chevron {
  display: none;
}


.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.btn-outline:hover {
  background: rgba(0, 128, 55, 0.06);
}

/* ===========================
	 VOLUNTEER FORM (shared)
	 =========================== */

.form-success-state {
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success-state .success-icon {
  font-size: 2.5rem;
  color: #0a7a3d;
  margin-bottom: 1rem;
}

.form-success-state h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.form-success-state p {
  font-size: 1rem;
  opacity: 0.85;
}

/* ===========================
   CTA HERO (shared)
   =========================== */

.cta-hero{
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 50% 20%;
}

/* Green overlay */
.cta-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0, 128, 55, 0.68);
  pointer-events:none;
}

/* Inner content */
.cta-hero-inner{
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  padding: 1.5rem;
  text-align: center;
}

.cta-hero-inner h2{
  margin: 0 0 0.9rem;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  text-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* Glass CTA button */
.cta-hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 1.15rem;
  border-radius: 999px;

  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;

  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  transition: transform 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease;
}

.cta-hero-btn:hover{
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Mobile tuning */
@media (max-width: 600px){
  .cta-hero{
    min-height: 210px;
    background-size: 140%;
    background-position: 50% 40%;
  }
}

/* ===========================
   FOOTER (shared)
   =========================== */
.site-footer {
  padding: 1.5rem;
  background: #102613;
  color: #d0d5e2;
  font-size: 0.85rem;
}

.footer-links {
	padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
	text-align: center;
	justify-content: center;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
	padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
	justify-content: center;
}

.footer-social a {
  font-size: 1.4rem;
  color: #d0d5e2;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social .bluesky-icon {
	width: 20px;
	height: 20px;
	filter: invert(100%) sepia(100%) grayscale(100%) brightness(150%);
	transition: filter 0.2s ease;
}


.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-social a:hover .bluesky-icon {
  filter: brightness(0) saturate(100%) invert(84%) sepia(68%) saturate(1052%) hue-rotate(358deg)
}

.footer-paid-for {
	text-align: center;
	font-size: 1.25rem;
	margin: 1rem auto 0;
	max-width: 600px;
	padding: 0.5rem 1.5rem;
	color: #9aa2b7;
	border: 1px solid #9aa2b7;
}

/* Mobile nav behavior (shared) */
@media (max-width: 800px) {

  /* ---- Shrink logo so header stays compact ---- */
  .nav-left img,
  .nav-logo {
    height: 52px;
  }

  /* ---- Toggle button: visible + white ---- */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    transition: background 0.15s ease;
    order: 3;
    margin-left: auto;
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  /* ---- Hide desktop social icons — duplicated inside drawer ---- */
  .nav-social {
    display: none;
  }

  /* ---- Right-side drawer ---- */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh; /* dynamic viewport — accounts for mobile browser chrome */
    width: min(320px, 85vw);
    background: #0d5c26;
    flex-direction: column;
    padding: 5rem 0 2rem;
    gap: 0;
    overflow-y: auto;
    z-index: 2001;

    /* Hidden: slide off to the right */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* ---- Close button inside the drawer ---- */
  .nav-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s ease;
  }

  .nav-drawer-close:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  /* ---- Nav link rows ---- */
  .nav-links > a {
    display: block;
    padding: 1.1rem 1.75rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
  }

  .nav-links > a:hover,
  .nav-links > a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
  }

  /* Remove desktop underline animation on mobile */
  .nav-links a::after {
    display: none !important;
  }

  /* ---- Dropdown rows — accordion style ---- */
  .nav-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-dropdown > a {
    flex: 1;
    display: block;
    padding: 1.1rem 0.5rem 1.1rem 1.75rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    border-bottom: none;
    text-decoration: none;
  }

  /* Hide the old CSS pseudo-element chevron on mobile — the JS button takes over */
  .nav-dropdown > a::after {
    display: none !important;
  }

  /* Dedicated chevron toggle button (mobile only) */
  .nav-dropdown-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.5rem 1.25rem 0.5rem 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    /* Generous tap target */
    min-width: 44px;
    min-height: 44px;
  }

  .nav-dropdown.mobile-open .nav-dropdown-chevron {
    transform: rotate(90deg);
    color: #ffffff;
  }

  .nav-dropdown > a:hover,
  .nav-dropdown > a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
  }

  .nav-dropdown-chevron:hover,
  .nav-dropdown-chevron:focus-visible {
    color: #ffffff;
    outline: none;
  }

  /* Sub-menu — accordion reveal */
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    min-width: 0;
    width: 100%;
    flex-basis: 100%; /* ensures it breaks to its own row inside the flex container */
    display: none;
    transition: none;
    backdrop-filter: none;
  }

  .nav-dropdown.mobile-open .dropdown-menu {
    display: block;
  }

  .nav-dropdown .dropdown-menu a {
    display: block;
    padding: 0.9rem 2.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
  }

  .nav-dropdown .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav-dropdown .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  /* ---- Social icons at the bottom of the drawer ---- */
  .mobile-nav-social {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 1.75rem 0;
    margin-top: auto;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-nav-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: color 0.2s ease;
  }

  .mobile-nav-social a:hover {
    color: var(--accent);
  }

  .mobile-nav-social .bluesky-icon {
    width: 22px;
    height: 22px;
    filter: invert(100%) sepia(100%) grayscale(100%) brightness(150%);
  }

  /* ---- Nav bar padding ---- */
  .nav {
    padding: 0.5rem 1rem;
  }

  /* ---- Wrapper padding ---- */
  .wrapper {
    padding: 1rem;
  }

  /* ---- Buttons: full width for easier touch targets ---- */
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Footer padding ---- */
  .site-footer {
    padding: 1rem;
  }

  .footer-social {
    padding: 1rem;
    gap: 1.25rem;
  }

  .footer-links {
    padding: 1rem;
  }

  /* ---- Footer paid-for: reduce font size on mobile ---- */
  .footer-paid-for {
    font-size: 1rem;
  }
}

/* ---- Overlay backdrop ---- */
/* z-index: 1999 keeps the overlay BELOW the site-header stacking context
   (z-index: 2000). Since nav-links lives inside site-header, it paints at
   the header's root level (2000) — above the overlay — so touches reach
   the drawer. The overlay still dims all page content below the header. */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   ACCESSIBILITY TOOLBAR
   ============================================================ */

/* ---- Nav trigger button ---- */
/* Sits inside .nav-social so it looks native to the nav bar */
#a11y-trigger {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

#a11y-trigger:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

#a11y-trigger:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Panel ---- */
/* Drops down from the nav, aligned to the right of the page */
#a11y-panel {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 9998;
  width: 300px;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

#a11y-panel.a11y-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Panel header */
.a11y-panel-header {
  background: #008037;
  color: #fff;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a11y-panel-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

.a11y-panel-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.a11y-panel-close:hover { opacity: 1; }
.a11y-panel-close:focus-visible { outline: 2px solid #FFD700; }

/* Panel body */
.a11y-panel-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Section label */
.a11y-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e6e6e;
  margin-bottom: -0.2rem;
}

/* Mode buttons row */
.a11y-mode-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.a11y-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  font-size: 0.75rem;
  color: #444;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.a11y-mode-btn i { font-size: 1.05rem; color: #555; }
.a11y-mode-btn:hover { border-color: #008037; background: #f0f9f4; }
.a11y-mode-btn:focus-visible { outline: 2px solid #008037; outline-offset: 2px; }
.a11y-mode-btn.active {
  border-color: #008037;
  background: #e8f5ee;
  color: #005f28;
}
.a11y-mode-btn.active i { color: #008037; }

/* Toggle rows */
.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.a11y-toggle-label {
  font-size: 0.87rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.a11y-toggle-label i { color: #555; width: 1rem; text-align: center; }

/* Custom toggle switch */
.a11y-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.a11y-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.a11y-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.a11y-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
}

.a11y-switch input:checked + .a11y-slider { background: #008037; }
.a11y-switch input:checked + .a11y-slider::before { transform: translateX(18px); }
.a11y-switch input:focus-visible + .a11y-slider {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* Tint picker */
.a11y-tint-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.a11y-tint-label {
  font-size: 0.87rem;
  font-weight: 500;
  color: #333;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-tint-label i { color: #555; }

.a11y-tint-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.a11y-tint-btn:hover  { transform: scale(1.15); }
.a11y-tint-btn:focus-visible { outline: 2px solid #008037; outline-offset: 2px; }
.a11y-tint-btn.active { border-color: #008037; transform: scale(1.15); }

/* Reset button */
.a11y-reset-btn {
  width: 100%;
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  background: #f5f5f5;
  color: #555;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.a11y-reset-btn:hover { background: #e8e8e8; color: #222; }
.a11y-reset-btn:focus-visible { outline: 2px solid #008037; }

/* Divider */
.a11y-divider {
  height: 1px;
  background: #ebebeb;
  margin: 0.1rem 0;
}

/* Tint overlay */
#a11y-tint-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.13;
  transition: background 0.3s ease;
}

/* ============================================================
   ACCESSIBILITY MODES  (applied via html.a11y-* classes)
   ============================================================ */

/* ---- Comfort / Reading mode ---- */
/* Warm off-white background, soft warm-gray text.
   Reduces the stark black-on-white contrast that causes
   visual stress while keeping text clearly legible. */
html.a11y-comfort {
  --bg:        #f7f3ec;
  --text:      #3d3530;
  --muted:     #7a706a;
  --muted-dark:#5c504a;
}
html.a11y-comfort body           { background: #f7f3ec; color: #3d3530; }
html.a11y-comfort .site-header   { background: rgba(50, 80, 40, 0.82); }
html.a11y-comfort .site-footer   { background: #2a1f18; }
html.a11y-comfort .contact-form-wrapper,
html.a11y-comfort .a11y-gap-card,
html.a11y-comfort .a11y-panel    { background: #fdf9f3; }

/* ---- High-contrast mode ---- */
/* Pure black on white, removes decorative colors from text. */
html.a11y-highcontrast {
  --bg:        #ffffff;
  --text:      #000000;
  --muted:     #444444;
  --muted-dark:#222222;
  --primary:   #005a25;
  --primary-light: #005a25;
}
html.a11y-highcontrast body                     { background: #fff; color: #000; }
html.a11y-highcontrast .site-header             { background: #003d18; }
html.a11y-highcontrast .site-footer             { background: #003d18; }

/* General content links: dark green on white = ~8.2:1 ✓ (AAA) */
html.a11y-highcontrast a                        { color: #005a25; text-decoration: underline; }

/* Nav links sit on the dark green header (#003d18).
   #005a25 on #003d18 produces only ~1.4:1 — essentially invisible.
   Force white (on #003d18 = ~12.5:1 ✓) and suppress the underline
   that would look odd on nav items. */
html.a11y-highcontrast .nav-links a,
html.a11y-highcontrast .nav-social a            { color: #ffffff !important; text-decoration: none !important; }

/* Keep the hover/active underline accent visible on the dark header */
html.a11y-highcontrast .nav-links a::after      { background: #FFD700 !important; }

/* Dropdown menu: override white forced on .nav-links a so links are legible.
   Use high-contrast black text on white panel (21:1) — !important needed to
   beat the .nav-links a rule above which uses !important itself. */
html.a11y-highcontrast .nav-dropdown .dropdown-menu     { background: #ffffff; border: 2px solid #000; }
html.a11y-highcontrast .nav-dropdown .dropdown-menu a   { color: #000000 !important; text-decoration: underline !important; }
html.a11y-highcontrast .nav-dropdown .dropdown-menu a:hover { background: #f0f0f0; }

/* Mobile nav: .nav-links panel has a dark green background (#116e30),
   so white text remains readable there too — no override needed.
   If the panel background ever changes to light, revisit this. */

/* Footer links sit on #000 black.
   #005a25 on #000 = ~2.6:1 — fails AA.
   White on black = 21:1 ✓ (AAA). */
html.a11y-highcontrast .footer-links a,
html.a11y-highcontrast .footer-social a         { color: #ffffff !important; }

html.a11y-highcontrast .footer-paid-for         { color: #ffffff !important; border-color: rgba(255,255,255,0.6) !important; }

html.a11y-highcontrast .btn-contact-submit,
html.a11y-highcontrast .btn-submit,
html.a11y-highcontrast .btn                     { border: 2px solid #000; }

/* ---- Dark mode ---- */
html.a11y-dark {
  --bg:        #1a1a1a;
  --text:      #e8e8e8;
  --muted:     #a0a0a0;
  --muted-dark:#c0c0c0;
  --primary:   #4cc97a;
  --primary-light: #5ddb8a;
}
html.a11y-dark body                             { background: #1a1a1a; color: #e8e8e8; }
html.a11y-dark .site-header                     { background: rgba(10, 30, 15, 0.92); }
html.a11y-dark .site-footer                     { background: #0a1f10; }
html.a11y-dark .contact-form-wrapper,
html.a11y-dark .privacy-wrapper,
html.a11y-dark .a11y-wrapper,
html.a11y-dark .volunteer-form-section,
html.a11y-dark .about-body                      { background: #242424; color: #e8e8e8; }
html.a11y-dark .contact-form input,
html.a11y-dark .contact-form textarea,
html.a11y-dark .contact-select-wrapper select   { background: #2e2e2e; color: #e8e8e8; border-color: #555; }
html.a11y-dark .a11y-gap-card                   { background: #2e2e2e; border-color: #555; }
html.a11y-dark .policy-section,
html.a11y-dark .a11y-section                    { border-color: #333; }
html.a11y-dark #a11y-panel                      { background: #1e1e1e; border-color: #444; color: #e8e8e8; }
html.a11y-dark .a11y-panel-body                 { background: #1e1e1e; }

/* Mode / CV / font buttons */
html.a11y-dark .a11y-mode-btn                   { background: #2a2a2a; border-color: #444; color: #ccc; }
html.a11y-dark .a11y-mode-btn i                 { color: #aaa; }
html.a11y-dark .a11y-mode-btn:hover             { background: #1a3a25; border-color: #4cc97a; }
html.a11y-dark .a11y-mode-btn.active            { background: #1a3a25; border-color: #4cc97a; color: #4cc97a; }
html.a11y-dark .a11y-mode-btn.active i          { color: #4cc97a; }

/* Section labels */
html.a11y-dark .a11y-section-label              { color: #888; }

/* Toggle rows */
html.a11y-dark .a11y-toggle-label               { color: #ccc; }
html.a11y-dark .a11y-toggle-label i             { color: #888; }

/* Toggle switch track — unchecked state */
html.a11y-dark .a11y-slider                     { background: #555; }
html.a11y-dark .a11y-switch input:checked + .a11y-slider { background: #4cc97a; }

/* Tint picker label */
html.a11y-dark .a11y-tint-label                 { color: #ccc; }
html.a11y-dark .a11y-tint-label i               { color: #888; }
html.a11y-dark .a11y-tint-btn.active            { border-color: #4cc97a; }

/* Reset button & divider */
html.a11y-dark .a11y-reset-btn                  { background: #2a2a2a; border-color: #444; color: #aaa; }
html.a11y-dark .a11y-reset-btn:hover            { background: #333; color: #e8e8e8; }
html.a11y-dark .a11y-divider                    { background: #333; }

html.a11y-dark .nav-links a                     { color: #e8e8e8; }

/* Dropdown menu: dark background + light text in dark mode so links are readable
   against the panel (the default white panel would be invisible with light text).
   Higher specificity (0,3,1) beats the .nav-links a rule above (0,2,2). */
html.a11y-dark .nav-dropdown .dropdown-menu     { background: rgba(20, 35, 25, 0.97); }
html.a11y-dark .nav-dropdown .dropdown-menu a   { color: #e8e8e8; }
html.a11y-dark .nav-dropdown .dropdown-menu a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---- Large text ---- */
html.a11y-large body { font-size: 118%; }

/* ---- Dyslexia-friendly fonts ---- */

/* Option A: OpenDyslexic
   Exaggerated letterform weights designed to reduce visual
   letter-flipping (b/d/p/q confusion). Loaded on demand.   */
@font-face {
  font-family: "OpenDyslexic";
  src: url("https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/fonts/OpenDyslexic-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/fonts/OpenDyslexic-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html.a11y-dyslexia-od body,
html.a11y-dyslexia-od input,
html.a11y-dyslexia-od textarea,
html.a11y-dyslexia-od select,
html.a11y-dyslexia-od button { font-family: "OpenDyslexic", sans-serif !important; }

/* Option B: BDA-recommended sans-serif
   The British Dyslexia Association recommends Arial, Verdana,
   and Tahoma: familiar, well-spaced letterforms with strong
   differentiation between similar characters (e.g. I/l/1),
   no visual stigma, and no download required.
   Line-height and letter-spacing are also increased per BDA
   Style Guide guidance.                                      */
html.a11y-dyslexia-bda body,
html.a11y-dyslexia-bda input,
html.a11y-dyslexia-bda textarea,
html.a11y-dyslexia-bda select,
html.a11y-dyslexia-bda button {
  font-family: Arial, Verdana, Tahoma, sans-serif !important;
}

html.a11y-dyslexia-bda body {
  line-height:    1.8   !important;
  letter-spacing: 0.05em !important;
  word-spacing:   0.1em  !important;
}

html.a11y-dyslexia-bda p,
html.a11y-dyslexia-bda li,
html.a11y-dyslexia-bda td,
html.a11y-dyslexia-bda label {
  line-height:    1.8   !important;
  letter-spacing: 0.05em !important;
  word-spacing:   0.1em  !important;
}

/* ---- Reduce motion ---- */
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration:        0.001ms !important;
  animation-iteration-count: 1       !important;
  transition-duration:       0.001ms !important;
  scroll-behavior:           auto    !important;
}

/* ---- Underline all links ---- */
html.a11y-underline a { text-decoration: underline !important; }

/* ---- Highlight inline body links ----
   Draws a soft yellow background swatch behind links —
   the "highlighter pen" effect.

   Scope: descendants of <main> only. This naturally excludes
   the site header, footer, nav, and the accessibility panel
   itself, so social icons, nav items, and CTA buttons are
   never highlighted.

   Within main, we additionally exclude:
     - .btn-* / .cta-* classes  (styled button links)
     - [aria-label] without inner text (icon-only links e.g.
       social icons that appear in content areas)
     - .skip-nav  (always excluded globally)
     - img-only anchors (logo links wrapping an <img>)

   The highlight uses padding + negative margin to give the
   swatch breathing room without shifting surrounding text.
   border-radius softens it to look like a real highlighter
   stroke rather than a raw box.

   Three color variants:
     Default / comfort  — soft amber-yellow  (#fff3b0 / 0.75 opacity)
     High contrast      — vivid yellow       (#ffe000) with black text
     Dark mode          — muted warm amber   (#5a4a00) so it doesn't
                          blast against the dark background
     Color-safe         — pale blue          (#c8deff) so the cue
                          doesn't rely on yellow (which could be
                          confused with the amber accent color)     */

html.a11y-highlight-links main a:not([class*="btn"]):not([class*="cta"]):not(.skip-nav):not(.nav-logo) {
  background-color:  rgba(255, 243, 100, 0.55);
  border-radius:     3px;
  padding:           0.05em 0.25em;
  margin:            0 -0.05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-decoration-color: rgba(0, 0, 0, 0.4);
}

html.a11y-highlight-links main a:not([class*="btn"]):not([class*="cta"]):not(.skip-nav):not(.nav-logo):hover {
  background-color: rgba(255, 235, 50, 0.8);
}

/* High contrast variant — bolder highlight, black text for max legibility */
html.a11y-highcontrast.a11y-highlight-links main a:not([class*="btn"]):not([class*="cta"]):not(.skip-nav):not(.nav-logo) {
  background-color: #ffe000 !important;
  color:            #000000 !important;
  border-radius:    2px;
}

/* Dark mode variant — warm amber swatch that reads well on dark bg */
html.a11y-dark.a11y-highlight-links main a:not([class*="btn"]):not([class*="cta"]):not(.skip-nav):not(.nav-logo) {
  background-color: rgba(120, 95, 0, 0.55);
  color:            #ffe58a;
}

html.a11y-dark.a11y-highlight-links main a:not([class*="btn"]):not([class*="cta"]):not(.skip-nav):not(.nav-logo):hover {
  background-color: rgba(140, 112, 0, 0.75);
}

/* Color-safe variant — pale blue highlight so it doesn't clash
   with the amber accent used throughout color-safe mode         */
html.a11y-colorsafe.a11y-highlight-links main a:not([class*="btn"]):not([class*="cta"]):not(.skip-nav):not(.nav-logo) {
  background-color: rgba(180, 215, 255, 0.6);
  color:            #0d3a7a;
}

html.a11y-colorsafe.a11y-highlight-links main a:not([class*="btn"]):not([class*="cta"]):not(.skip-nav):not(.nav-logo):hover {
  background-color: rgba(140, 190, 255, 0.85);
}

/* ---- Enhanced focus indicators ---- */
html.a11y-focus *:focus-visible {
  outline: 3px solid #FFD700 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.35) !important;
}

/* ---- Skip navigation link (always present, visible on focus) ---- */
.skip-nav {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 99999;
  background: #FFD700;
  color: #111;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-nav:focus { top: 0; }



/* ============================================================
   COLOR VISION MODES
   ============================================================ */

/* ---- Grayscale ----
   Removes all color from the page. Useful for users with
   achromatopsia (complete color blindness) or those who find
   color distracting.

   The filter is applied to body so that position:fixed elements
   (like the accessibility panel itself) retain correct viewport
   positioning — applying filter to html would make fixed children
   position relative to the html element instead of the viewport.

   Because the semi-transparent green header converts to roughly
   rgb(109,109,109) when grayscaled — giving only ~5.2:1 contrast
   with white text — we explicitly override the header and footer
   backgrounds to near-black so they stay clearly readable at
   AAA levels regardless of what the rest of the page looks like.

   The same principle applies to any hero/banner element that uses
   a green overlay: we override those to a dark neutral as well.  */

html.a11y-grayscale body { filter: grayscale(100%); }

/* Header: force dark background so white nav text stays AAA (>7:1)
   after the green-to-gray conversion would otherwise produce ~5:1  */
html.a11y-grayscale .site-header {
  background: #1a1a1a !important;
}

/* Nav links and social icons — already white, fine on #1a1a1a       */
html.a11y-grayscale .nav-links a,
html.a11y-grayscale .nav-social a { color: #ffffff !important; }

/* Active/hover underline accent: keep it white since gold
   turns mid-gray and may lose sufficient contrast               */
html.a11y-grayscale .nav-links a::after { background: #ffffff !important; }

/* Footer: already dark green which converts to a near-black gray,
   but make it explicit so it can't lighten under any backdrop     */
html.a11y-grayscale .site-footer {
  background: #111111 !important;
  color: #dddddd !important;
}

html.a11y-grayscale .footer-social a { color: #dddddd !important; }
html.a11y-grayscale .footer-links a  { color: #dddddd !important; }
html.a11y-grayscale .footer-paid-for {
  color: #bbbbbb !important;
  border-color: #555555 !important;
}

/* Hero/banner overlays: override green overlay to dark neutral      */
html.a11y-grayscale .cta-hero::after {
  background: rgba(0, 0, 0, 0.65) !important;
}

/* ---- Color-safe ----
   Replaces the site's green-heavy palette with blue + amber.
   Blue is processed by S-cones, which are intact in both
   deuteranopia (green-weak) and protanopia (red-weak) — the
   two most common CVD types affecting ~8% of men. Amber/gold
   provides a warm accent distinguishable from blue by all
   common CVD types. Tritanopia (blue-weak, <0.01%) is also
   served since blue and amber differ in lightness.           */
html.a11y-colorsafe {
  --primary:       #1455A4;
  --primary-light: #1a6bc7;
  --accent:        #F9A825;
}

/* Header: solid dark blue so white nav text meets AAA (>7:1)
   White on #0e3473 = approx 11:1 ✓                           */
html.a11y-colorsafe .site-header {
  background: #0e3473;
}

/* Nav links: keep white — high contrast on dark blue           */
html.a11y-colorsafe .nav-links a,
html.a11y-colorsafe .nav-social a { color: #ffffff; }

/* Hover/active underline: amber accent rather than default gold
   (same hue as --accent override, more saturated for visibility) */
html.a11y-colorsafe .nav-links a::after { background: #F9A825; }

/* Footer: dark navy background                                  */
html.a11y-colorsafe .site-footer {
  background: #0d1f3c;
  color: #cdd8f0;
}

/* Footer text elements — ensure they inherit the lighter color  */
html.a11y-colorsafe .footer-social a {
  color: #cdd8f0;
}

html.a11y-colorsafe .footer-links a {
  color: #cdd8f0;
}

/* "Paid for by" text and its border — lighten to readable level
   on the dark navy background: #cdd8f0 on #0d1f3c = ~9.2:1 ✓   */
html.a11y-colorsafe .footer-paid-for {
  color: #cdd8f0;
  border-color: #4a6fa5;
}

html.a11y-colorsafe .privacy-hero,
html.a11y-colorsafe .a11y-hero,
html.a11y-colorsafe .contact-hero {
  background: linear-gradient(135deg, #0a2a6e 0%, #1455A4 60%, #1a6bc7 100%);
}

html.a11y-colorsafe .cta-hero::after {
  background: rgba(14, 52, 115, 0.7);
}

html.a11y-colorsafe .policy-section-icon,
html.a11y-colorsafe .a11y-section-icon {
  background: rgba(20, 85, 164, 0.1);
  color: #1455A4;
}

html.a11y-colorsafe .policy-list li i,
html.a11y-colorsafe .a11y-list li i {
  color: #1455A4;
}

html.a11y-colorsafe .a11y-gap-card {
  border-left-color: #F9A825;
}

html.a11y-colorsafe .privacy-contact-cta,
html.a11y-colorsafe .a11y-contact-cta {
  background: rgba(20, 85, 164, 0.07);
  border-color: rgba(20, 85, 164, 0.22);
}

html.a11y-colorsafe .privacy-contact-cta > i,
html.a11y-colorsafe .a11y-contact-cta > i {
  color: #1455A4;
}

html.a11y-colorsafe .contact-form-wrapper {
  border-color: rgba(20, 85, 164, 0.28);
}

html.a11y-colorsafe .contact-form input:focus,
html.a11y-colorsafe .contact-form textarea:focus,
html.a11y-colorsafe .contact-select-wrapper select:focus {
  border-color: rgba(20, 85, 164, 0.6);
  box-shadow: 0 0 0 4px rgba(20, 85, 164, 0.13);
}

html.a11y-colorsafe .btn-primary { background: #1455A4; }
html.a11y-colorsafe .btn-primary:hover { background: #1a6bc7; }

html.a11y-colorsafe .a11y-panel-header { background: #1455A4; }
html.a11y-colorsafe #a11y-trigger { color: #ffffff; }
html.a11y-colorsafe .a11y-mode-btn.active,
html.a11y-colorsafe .a11y-font-btn.active,
html.a11y-colorsafe .a11y-cv-btn.active {
  border-color: #1455A4;
  background: #e8f0fb;
  color: #0d3a7a;
}
html.a11y-colorsafe .a11y-mode-btn.active i,
html.a11y-colorsafe .a11y-font-btn.active i,
html.a11y-colorsafe .a11y-cv-btn.active i { color: #1455A4; }

html.a11y-colorsafe .a11y-switch input:checked + .a11y-slider { background: #1455A4; }
html.a11y-colorsafe .a11y-reset-btn:focus-visible { outline-color: #1455A4; }
html.a11y-colorsafe .a11y-lang-btn.active {
  border-color: #1455A4;
  background: #e8f0fb;
}
html.a11y-colorsafe .a11y-lang-btn.active .a11y-lang-native { color: #0d3a7a; }

/* Color vision note style (reuses same pattern as .a11y-lang-note) */
.a11y-cv-note {
  font-size: 0.74rem;
  color: #888;
  line-height: 1.5;
  margin-top: 0.45rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}
.a11y-cv-note i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #aaa;
  font-size: 0.7rem;
}

html.a11y-dark .a11y-cv-note { color: #666; }

/* ---- Language selector ---- */

/* Suppress Google Translate's own toolbar banner entirely —
   we provide our own language UI in the accessibility panel. */
.goog-te-banner-frame,
.goog-te-gadget,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip-content,
.skiptranslate                { display: none !important; }
#google_translate_element     { display: none !important; }
body                          { top: 0 !important; }

/* RTL support — applied when a right-to-left language is active */
html[dir="rtl"] body          { direction: rtl; text-align: right; }

/* Language button grid — 2 columns, scrollable */
.a11y-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.a11y-lang-grid::-webkit-scrollbar { width: 4px; }
.a11y-lang-grid::-webkit-scrollbar-track  { background: transparent; }
.a11y-lang-grid::-webkit-scrollbar-thumb  { background: #ccc; border-radius: 2px; }

/* Individual language button */
.a11y-lang-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.a11y-lang-btn:hover {
  border-color: #008037;
  background: #f0f9f4;
}

.a11y-lang-btn:focus-visible {
  outline: 2px solid #008037;
  outline-offset: 2px;
}

.a11y-lang-btn.active {
  border-color: #008037;
  background: #e8f5ee;
}

.a11y-lang-native {
  font-size: 0.88rem;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

.a11y-lang-en {
  font-size: 0.72rem;
  color: #888;
  line-height: 1.2;
}

.a11y-lang-btn.active .a11y-lang-native { color: #005a25; }
.a11y-lang-btn.active .a11y-lang-en     { color: #3a8a5a; }

/* Informational note below the grid */
.a11y-lang-note {
  font-size: 0.74rem;
  color: #888;
  line-height: 1.5;
  margin-top: 0.5rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.a11y-lang-note i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #aaa;
  font-size: 0.7rem;
}

/* Dark mode adjustments */
html.a11y-dark .a11y-lang-btn          { background: #2a2a2a; border-color: #444; }
html.a11y-dark .a11y-lang-btn:hover    { border-color: #4cc97a; background: #1a3a25; }
html.a11y-dark .a11y-lang-btn.active   { border-color: #4cc97a; background: #1a3a25; }
html.a11y-dark .a11y-lang-native       { color: #e0e0e0; }
html.a11y-dark .a11y-lang-btn.active .a11y-lang-native { color: #4cc97a; }
html.a11y-dark .a11y-lang-note         { color: #666; }

/* Mobile adjustments */
@media (max-width: 500px) {
  #a11y-panel {
    right: 0.5rem;
    width: calc(100vw - 1rem);
    top: 4.5rem;
  }
}