/* Accessibility / inclusivity modes for LOAVZU public site */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--blue-deep, #0D2A4A);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 42, 74, .25);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid var(--gold, #B68C3A);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold, #B68C3A);
  outline-offset: 2px;
}
.main-nav > a:focus-visible,
.nav-link:focus-visible,
.lang-switch-option:focus-visible,
.btn:focus-visible,
.a11y-toggle:focus-visible,
.a11y-opt:focus-visible {
  outline: 3px solid var(--gold, #B68C3A);
  outline-offset: 2px;
}

/* ---------- Accessibility panel ---------- */
.a11y-wrap {
  position: relative;
}
.a11y-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #667084);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.a11y-toggle:hover,
.a11y-toggle[aria-expanded="true"] {
  border-color: transparent;
  color: var(--blue, #173E6C);
  background: rgba(23, 62, 108, .06);
}
.a11y-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.a11y-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .55rem);
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(23, 62, 108, .12);
  box-shadow: 0 18px 48px rgba(13, 42, 74, .14);
  z-index: 120;
}
.a11y-panel[hidden] { display: none !important; }
.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}
.a11y-panel-head strong {
  font-size: .95rem;
  color: var(--blue-deep, #0D2A4A);
  letter-spacing: -.01em;
}
.a11y-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(23, 62, 108, .06);
  color: var(--blue-deep, #0D2A4A);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.a11y-close:hover {
  background: rgba(23, 62, 108, .12);
}
.a11y-opts-stack {
  flex-direction: column;
}
.a11y-opts-stack .a11y-opt {
  width: 100%;
  border-radius: 10px;
  text-align: left;
}
.a11y-group {
  margin-bottom: .85rem;
}
.a11y-group:last-of-type { margin-bottom: .95rem; }
.a11y-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #667084);
}
.a11y-opts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.a11y-opt {
  appearance: none;
  border: 1px solid rgba(23, 62, 108, .14);
  background: #fff;
  color: var(--blue-deep, #0D2A4A);
  border-radius: 999px;
  padding: .42rem .75rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.a11y-opt:hover {
  border-color: rgba(182, 140, 58, .45);
}
.a11y-opt.is-active,
.a11y-opt[aria-pressed="true"] {
  background: var(--blue, #173E6C);
  border-color: var(--blue, #173E6C);
  color: #fff;
}
.a11y-reset {
  width: 100%;
  border: 1px solid rgba(23, 62, 108, .14);
  background: #f4f8fc;
  color: var(--blue-deep, #0D2A4A);
  border-radius: 10px;
  padding: .55rem .8rem;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.a11y-reset:hover {
  background: #eaf2f8;
}

@media (max-width: 900px) {
  .a11y-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h, 70px) + .75rem);
    width: auto;
  }
}

/* ---------- Modes on html ---------- */
/*
 * Root rem scale enlarges content. Header stays compact:
 * logo + tools visible; nav collapses to hamburger (no wrap).
 */
html.a11y-font-large { font-size: 112.5%; }
html.a11y-font-xlarge { font-size: 125%; }

html.a11y-font-large,
html.a11y-font-xlarge {
  overflow-x: clip;
  --header-h: 70px;
}

html.a11y-font-large .site-header,
html.a11y-font-xlarge .site-header,
html.a11y-font-large .header-inner,
html.a11y-font-xlarge .header-inner {
  height: auto;
  min-height: 70px;
}

html.a11y-font-large .header-inner,
html.a11y-font-xlarge .header-inner {
  padding-block: .45rem;
  flex-wrap: nowrap;
  gap: .65rem;
}

html.a11y-font-large .logo,
html.a11y-font-xlarge .logo {
  max-width: min(250px, 38vw);
  overflow: hidden;
  flex: 0 1 auto;
}

html.a11y-font-large .logo-text,
html.a11y-font-xlarge .logo-text {
  overflow: hidden;
}

html.a11y-font-large img.logo-mark,
html.a11y-font-large .logo-mark,
html.a11y-font-xlarge img.logo-mark,
html.a11y-font-xlarge .logo-mark {
  width: 32px;
  height: 44px;
  max-width: 32px;
  max-height: 44px;
}

html.a11y-font-large .logo-eyebrow,
html.a11y-font-xlarge .logo-eyebrow {
  font-size: 9px;
}
html.a11y-font-large .logo-title,
html.a11y-font-xlarge .logo-title {
  font-size: 12px;
}
html.a11y-font-large .logo-sub,
html.a11y-font-xlarge .logo-sub {
  font-size: 9px;
}

html.a11y-font-large .nav-toggle,
html.a11y-font-xlarge .nav-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
}

html.a11y-font-large .header-desktop-nav,
html.a11y-font-xlarge .header-desktop-nav {
  display: none;
}

html.a11y-font-large .header-actions,
html.a11y-font-xlarge .header-actions {
  margin-left: auto;
  flex: 0 0 auto;
  gap: .55rem;
}

html.a11y-font-large .btn-header-desktop,
html.a11y-font-xlarge .btn-header-desktop {
  display: none;
}

html.a11y-font-large .mobile-drawer-nav > a,
html.a11y-font-large .mobile-drawer-nav .nav-link,
html.a11y-font-xlarge .mobile-drawer-nav > a,
html.a11y-font-xlarge .mobile-drawer-nav .nav-link {
  font-size: 1.05rem;
  padding: .95rem 1rem;
}

html.a11y-font-large .lang-switch-option,
html.a11y-font-xlarge .lang-switch-option {
  font-size: 13px;
}

html.a11y-font-large .a11y-toggle,
html.a11y-font-xlarge .a11y-toggle {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  html.a11y-font-large .logo,
  html.a11y-font-xlarge .logo {
    max-width: min(180px, 48vw);
  }
  html.a11y-font-large .logo-title,
  html.a11y-font-xlarge .logo-title {
    font-size: 12px;
  }
  html.a11y-font-large img.logo-mark,
  html.a11y-font-large .logo-mark,
  html.a11y-font-xlarge img.logo-mark,
  html.a11y-font-xlarge .logo-mark {
    width: 30px;
    height: 42px;
    max-width: 30px;
    max-height: 42px;
  }
}

html.a11y-underline a:not(.btn):not(.logo):not(.lang-switch-option):not(.skip-link) {
  text-decoration: underline;
  text-underline-offset: .18em;
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html.a11y-contrast {
  /* Keep brand hues for icons/accents; text is forced black below */
  --blue: #173E6C;
  --blue-deep: #0D2A4A;
  --blue-mid: #173E6C;
  --gold: #B68C3A;
  --cream: #fff;
  --sky: #fff;
  --text: #000;
  --muted: #111;
  --line: #000;
  --white: #fff;
  --shadow: none;
  --navy: #0D2A4A;
}

html.a11y-contrast body {
  background: #fff !important;
  color: #000 !important;
}

/* ----- Surfaces: force light readable panels ----- */
html.a11y-contrast .site-header,
html.a11y-contrast .breadcrumbs,
html.a11y-contrast .site-footer,
html.a11y-contrast .support-band,
html.a11y-contrast .cta-band,
html.a11y-contrast .donate-hero,
html.a11y-contrast .donate-banner,
html.a11y-contrast .about-mission,
html.a11y-contrast .hero,
html.a11y-contrast .hero-stage,
html.a11y-contrast .section,
html.a11y-contrast .section-alt,
html.a11y-contrast .contacts-page,
html.a11y-contrast .projects-page,
html.a11y-contrast .docs-page,
html.a11y-contrast .support-page,
html.a11y-contrast .partners-page,
html.a11y-contrast .help-page,
html.a11y-contrast .news-index,
html.a11y-contrast .home-contacts,
html.a11y-contrast .mobile-drawer,
html.a11y-contrast .mobile-drawer-head,
html.a11y-contrast .mobile-drawer-foot,
html.a11y-contrast .mobile-drawer-nav .submenu,
html.a11y-contrast .submenu,
html.a11y-contrast .a11y-panel {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
}

html.a11y-contrast .support-band,
html.a11y-contrast .cta-band,
html.a11y-contrast .donate-hero,
html.a11y-contrast .donate-banner,
html.a11y-contrast .about-mission,
html.a11y-contrast .site-footer {
  background: #fff !important;
  border-top: 2px solid #000 !important;
  border-bottom: 2px solid #000 !important;
}

html.a11y-contrast .support-band::before,
html.a11y-contrast .support-band::after,
html.a11y-contrast .cta-band::before,
html.a11y-contrast .cta-band::after,
html.a11y-contrast .donate-hero::before,
html.a11y-contrast .donate-hero::after {
  display: none !important;
}

/* Hero: keep media, but give text a solid readable plate */
html.a11y-contrast .hero-fade {
  display: block !important;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 38%,
    rgba(255, 255, 255, .96) 52%,
    rgba(255, 255, 255, .55) 68%,
    rgba(255, 255, 255, 0) 86%
  ) !important;
}
html.a11y-contrast .hero-stage::after {
  display: block !important;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .35) 45%,
    #fff 100%
  ) !important;
}
html.a11y-contrast .hero-content {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
  padding: 1.15rem 1.25rem 1.25rem !important;
  max-width: min(560px, 100%) !important;
}
html.a11y-contrast .hero-content .eyebrow,
html.a11y-contrast .hero-content h1,
html.a11y-contrast .hero-content .lead,
html.a11y-contrast .hero-content p {
  color: #000 !important;
}
html.a11y-contrast .hero-content .btn {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
}
html.a11y-contrast .hero-content .btn:hover {
  background: #fff !important;
  color: #000 !important;
}
html.a11y-contrast .hero-content .btn svg {
  color: inherit !important;
  stroke: currentColor !important;
}

/* ----- Typography: never leave light-on-light ----- */
html.a11y-contrast,
html.a11y-contrast body,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast dt,
html.a11y-contrast dd,
html.a11y-contrast label,
html.a11y-contrast span,
html.a11y-contrast strong,
html.a11y-contrast small,
html.a11y-contrast time,
html.a11y-contrast .muted,
html.a11y-contrast .lead,
html.a11y-contrast .eyebrow,
html.a11y-contrast .hero .eyebrow,
html.a11y-contrast .logo-eyebrow,
html.a11y-contrast .logo-title,
html.a11y-contrast .logo-sub,
html.a11y-contrast .logo-accent,
html.a11y-contrast .logo-footer .logo-eyebrow,
html.a11y-contrast .logo-footer .logo-title,
html.a11y-contrast .logo-footer .logo-sub,
html.a11y-contrast .logo-footer .logo-accent,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast .footer-org,
html.a11y-contrast .footer-copy,
html.a11y-contrast .footer-slogan-text,
html.a11y-contrast .footer-links a,
html.a11y-contrast .site-footer,
html.a11y-contrast .site-footer *,
html.a11y-contrast .support-band,
html.a11y-contrast .support-band *,
html.a11y-contrast .support-band-copy h2,
html.a11y-contrast .support-band-copy p,
html.a11y-contrast .support-band-qr p,
html.a11y-contrast .support-band-bank h3,
html.a11y-contrast .bank-list dt,
html.a11y-contrast .bank-list dd,
html.a11y-contrast .cta-band,
html.a11y-contrast .cta-band *,
html.a11y-contrast .about-mission,
html.a11y-contrast .about-mission *,
html.a11y-contrast .donate-hero,
html.a11y-contrast .donate-hero *,
html.a11y-contrast .hero-stat strong,
html.a11y-contrast .hero-stat span,
html.a11y-contrast .news-row-body time,
html.a11y-contrast .news-row-body h3,
html.a11y-contrast .news-row-body p,
html.a11y-contrast .tile h3,
html.a11y-contrast .breadcrumbs,
html.a11y-contrast .breadcrumbs * {
  color: #000 !important;
}

html.a11y-contrast a {
  color: #000 !important;
}
html.a11y-contrast a:hover {
  color: #000 !important;
  text-decoration: underline;
}

/* ----- Cards / tiles / forms ----- */
html.a11y-contrast .tile,
html.a11y-contrast .tile-audience,
html.a11y-contrast .tile-direction,
html.a11y-contrast .project-card,
html.a11y-contrast .contacts-card,
html.a11y-contrast .contacts-form-card,
html.a11y-contrast .partners-form-card,
html.a11y-contrast .help-form-card,
html.a11y-contrast .doc-card,
html.a11y-contrast .media-card,
html.a11y-contrast .news-card,
html.a11y-contrast .news-row,
html.a11y-contrast .partner-card,
html.a11y-contrast .partner-logo,
html.a11y-contrast .hero-stats,
html.a11y-contrast .hero-stat,
html.a11y-contrast .qr-box,
html.a11y-contrast .donate-card,
html.a11y-contrast .lead-card,
html.a11y-contrast .form-card,
html.a11y-contrast .info-card,
html.a11y-contrast .legal-prose,
html.a11y-contrast .membership-benefits,
html.a11y-contrast .membership-step,
html.a11y-contrast .membership-form-card,
html.a11y-contrast .membership-success,
html.a11y-contrast .membership-fieldset,
html.a11y-contrast .volunteer-help-card,
html.a11y-contrast .volunteer-who-card,
html.a11y-contrast .volunteer-timeline-card,
html.a11y-contrast .volunteer-aside-card,
html.a11y-contrast input,
html.a11y-contrast textarea,
html.a11y-contrast select,
html.a11y-contrast .a11y-opt,
html.a11y-contrast .a11y-reset {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
}

/* Icon wells: keep brand-colored glyphs, strong black frame */
html.a11y-contrast .icon-box,
html.a11y-contrast .icon-box-lg,
html.a11y-contrast .hero-stat-icon,
html.a11y-contrast .contacts-card-ico,
html.a11y-contrast .a11y-toggle {
  background: #fff !important;
  color: #173E6C !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
}

html.a11y-contrast .icon-box .icon,
html.a11y-contrast .icon-box-lg .icon,
html.a11y-contrast .hero-stat-icon .icon,
html.a11y-contrast .hero-stat-icon svg,
html.a11y-contrast .a11y-toggle svg,
html.a11y-contrast .nav-toggle,
html.a11y-contrast .nav-toggle svg,
html.a11y-contrast .contacts-card-ico svg {
  color: #173E6C !important;
  stroke: currentColor !important;
}

/* Dual-tone brand icons keep original fills/strokes */
html.a11y-contrast .audience-icon,
html.a11y-contrast .direction-icon {
  color: unset !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Outline / currentColor icons → navy, not forced black */
html.a11y-contrast svg.icon,
html.a11y-contrast .icon,
html.a11y-contrast .site-footer svg,
html.a11y-contrast .support-band svg,
html.a11y-contrast .cta-band svg,
html.a11y-contrast .contacts-card svg,
html.a11y-contrast .contacts-social-links a svg,
html.a11y-contrast .nav-chevron,
html.a11y-contrast .lang-switch svg {
  color: #173E6C !important;
}

/* Round social buttons: white glyphs on solid black (never dark-on-dark) */
html.a11y-contrast .social-round a,
html.a11y-contrast .social-round a:hover {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
html.a11y-contrast .social-round a svg,
html.a11y-contrast .social-round a svg * {
  color: #fff !important;
  stroke: currentColor !important;
}
html.a11y-contrast .social-round a svg[fill="currentColor"],
html.a11y-contrast .social-round a svg path[fill="currentColor"],
html.a11y-contrast .social-round a svg *[fill]:not([fill="none"]) {
  fill: #fff !important;
}

html.a11y-contrast .contacts-social-links a {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}
html.a11y-contrast .contacts-social-links a svg {
  color: #000 !important;
}

html.a11y-contrast .icon-box-lg::before,
html.a11y-contrast .icon-box-lg::after {
  display: none !important;
}

html.a11y-contrast .status-pill,
html.a11y-contrast .project-card-status,
html.a11y-contrast .badge {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

/* ----- Buttons ----- */
html.a11y-contrast .btn,
html.a11y-contrast .btn-primary,
html.a11y-contrast .btn-gold,
html.a11y-contrast .btn-outline,
html.a11y-contrast .btn-secondary,
html.a11y-contrast .a11y-opt.is-active,
html.a11y-contrast .a11y-opt[aria-pressed="true"] {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
  filter: none !important;
}

html.a11y-contrast .btn:hover,
html.a11y-contrast .btn-primary:hover,
html.a11y-contrast .btn-gold:hover,
html.a11y-contrast .btn-outline:hover {
  background: #fff !important;
  color: #000 !important;
}

html.a11y-contrast .btn svg,
html.a11y-contrast .btn-primary svg,
html.a11y-contrast .btn-gold svg,
html.a11y-contrast .btn-outline svg {
  color: #fff !important;
  stroke: currentColor !important;
  fill: none !important;
}
html.a11y-contrast .btn:hover svg,
html.a11y-contrast .btn-primary:hover svg,
html.a11y-contrast .btn-gold:hover svg,
html.a11y-contrast .btn-outline:hover svg {
  color: #000 !important;
}

/* ----- Nav ----- */
html.a11y-contrast .main-nav > a,
html.a11y-contrast .nav-link,
html.a11y-contrast .lang-switch-option,
html.a11y-contrast .mobile-drawer-nav > a,
html.a11y-contrast .mobile-drawer-nav .nav-link,
html.a11y-contrast .text-link {
  color: #000 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.a11y-contrast .main-nav > a.is-active,
html.a11y-contrast .nav-link.is-active,
html.a11y-contrast .lang-switch-option.is-active {
  background: #fff !important;
  color: #000 !important;
  outline: 2px solid #000;
  text-decoration: underline;
  text-underline-offset: .15em;
}

html.a11y-contrast .nav-backdrop {
  background: rgba(0, 0, 0, .55);
  backdrop-filter: none;
}

html.a11y-contrast .a11y-toggle {
  border: 2px solid #000 !important;
  background: #fff !important;
  color: #173E6C !important;
}

html.a11y-contrast .a11y-panel-head strong,
html.a11y-contrast .a11y-label,
html.a11y-contrast .a11y-close {
  color: #000 !important;
  background: #fff !important;
  border-color: #000 !important;
}

html.a11y-contrast :focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.a11y-contrast .contacts-map,
html.a11y-contrast .contacts-map-frame,
html.a11y-contrast .home-contacts-map {
  background: #fff !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
}

html.a11y-contrast .contacts-map-frame iframe,
html.a11y-contrast .home-contacts-map iframe {
  filter: none !important;
}

/* Footer slogan underline stays visible */
html.a11y-contrast .footer-slogan-text {
  border-bottom-color: #000 !important;
}

/* Progress / decorative gold lines */
html.a11y-contrast .hero-divider::before,
html.a11y-contrast .hero-divider::after,
html.a11y-contrast .hero-divider span,
html.a11y-contrast .progress-track > i {
  background: #000 !important;
}

html.a11y-contrast .skip-link {
  background: #000 !important;
  color: #fff !important;
}
