/* WCAG 2.2 AA keyboard, focus, contrast, and reflow improvements. */
.sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 18px;
  color: #fff;
  background: #2e253a;
  border: 3px solid #fff;
  border-radius: 4px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(
  a[href],
  button,
  input:not([type="hidden"]),
  select,
  textarea,
  summary,
  iframe,
  [contenteditable="true"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px #2e253a !important;
  border-radius: 3px;
}

.contact-section .gform_wrapper input:not([type="hidden"]):focus-visible,
.contact-section .gform_wrapper select:focus-visible,
.contact-section .gform_wrapper textarea:focus-visible,
.contact-section .gform_wrapper button:focus-visible,
.contact-section .gform_wrapper .gform_button:focus-visible,
.contact-section .gform_wrapper input[type="submit"]:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px #2e253a !important;
}

#main-content:focus {
  outline: none;
}

button {
  font: inherit;
}

#aboutMenuToggle,
#openSearch,
#closeSearch,
.social-share-button {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

#aboutMenuToggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px;
  color: #000;
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  line-height: 28px;
}

#openSearch,
#closeSearch,
.social-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}

#closeSearch {
  color: #fff;
  font-size: 28px;
}

#plaintext-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  color: #212529;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#plaintext-toggle:hover {
  border-color: #ad5ad6;
  background: #fafafa;
}

#plaintext-toggle[aria-pressed="true"] {
  border-color: #401856;
  background: #f3f4f6;
}

.plaintext-toggle__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 18px;
}

.plaintext-toggle__plus {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  color: #212529;
  font-size: 12px;
  font-weight: 800;
  line-height: 9px;
  text-align: center;
}

.plaintext-toggle__label {
  white-space: nowrap;
}

.search-error:not(:empty) {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 10px 0 0 !important;
  clip: auto !important;
  overflow: visible !important;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  text-transform: none;
}

input[aria-invalid="true"] {
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 3px #b42318 !important;
}

.donate-btn {
  background-color: #ad5ad6;
  color: #fff;
}

.category-card__tag,
.da-latest-post-category {
  background-color: #ad5ad6;
  color: #fff;
}

@media (max-width: 640px) {
  #plaintext-toggle {
    min-height: 42px;
    padding: 8px 12px;
    gap: 7px;
    font-size: 13px;
  }

  .plaintext-toggle__icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 15px;
  }
}

.dropdown-label,
.mega-block-title {
  color: #595959 !important;
}

.footer-policy span {
  display: inline-block;
  color: #ddd;
  font-size: 12px;
  font-weight: 500;
}

.unavailable-link {
  cursor: default;
}

.campaign-section__button.unavailable-link {
  color: #2e253a !important;
}

.campaign-section__button {
  color: #2e253a !important;
}

.campaign-section__button svg path {
  fill: #2e253a !important;
}

.page-id-111 #main-content a {
  color: #ff842d;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

/* Match H1-based banners to the shared H2 hero treatment. */
.banner-section__content > h1 {
  margin: 0;
  color: var(--White, #fff);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .banner-section__content > h1 {
    font-size: clamp(3rem, 9vw, 5rem);
    line-height: 1;
  }
}

@media (max-width: 576px) {
  .banner-section__content > h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}

.feature-card--left p {
  color: #2e253a !important;
}

.back-memoriam a {
  color: #71368e !important;
}

.feature-highlight__badge,
.page-numbers.current,
.meta-tags-container span,
.article-header > span {
  color: #fff !important;
  background-color: #ad5ad6 !important;
}

.article-page-wrapper a:not([class*="btn"]):not([class*="button"]) {
  color: #9a3b00;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.section3-container {
  overflow-x: clip;
}

.social-icons > span,
.social-share-button {
  line-height: 1;
}

.topics-tag-cloud button.category-card__tag {
  border: 0;
  cursor: pointer;
}

.topics-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.search-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 100%;
}

.search-result-card,
.search-result-card__image,
.search-result-card__excerpt {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.search-result-card img {
  max-width: 100%;
  height: auto;
}

[aria-hidden="true"][inert] {
  pointer-events: none;
}

@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .left-nav {
    opacity: 1 !important;
    visibility: visible !important;
  }

  #aboutMenuToggle {
    display: none;
  }

  #menuToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #111;
  }

  .menu-section:not(.open) {
    visibility: hidden;
  }

  .menu-section.open {
    visibility: visible;
  }
}

@media (max-width: 400px) {
  .layout-container,
  .container,
  .topbar-container,
  .footer,
  .footer-container,
  .dropdown-grid {
    max-width: 100%;
  }

  .topbar-container,
  .footer,
  .footer-container,
  .dropdown-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .footer-container,
  .footer-bottom,
  .feed-layout-grid,
  .content-accordion-layout,
  .article-layout {
    display: block;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  a,
  button {
    overflow-wrap: anywhere;
  }

  img,
  video,
  iframe,
  svg {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .footer-policy span {
    font-size: 11px;
  }
}

/* Keep every staff and board bio image in the same portrait frame. */
.member-details-image {
  width: 315px;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  align-self: flex-start;
  flex-shrink: 0;
  overflow: hidden;
}

.member-details-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Improve white-name contrast on board cards that use coming-soon artwork. */
.director-card--placeholder::after {
  background: linear-gradient(
    to top,
    rgba(64, 24, 86, 0.94) 0%,
    rgba(64, 24, 86, 0.82) 32%,
    rgba(64, 24, 86, 0.42) 62%,
    rgba(64, 24, 86, 0.22) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  :where(
    a[href],
    button,
    input:not([type="hidden"]),
    select,
    textarea,
    summary,
    iframe,
    [contenteditable="true"],
    [tabindex]:not([tabindex="-1"])
  ):focus-visible {
    outline: 3px solid Highlight !important;
    box-shadow: none !important;
  }
}
	