/* Inspired by futureswithoutviolence.org — design tokens & patterns only; original content. */

:root {
  --fwv-black: #282828;
  --fwv-white: #ffffff;
  --fwv-green: #53712b;
  --fwv-orange: #e6893c;
  --fwv-blue: #3d5476;
  --fwv-purple: #44254f;
  --fwv-yellow: #ffd400;
  --header-bg: #262b2f;
  /* Solid bar (no glass); scrolled can match or use a hair of contrast */
  --header-glass: #ffffff;
  --header-glass-scrolled: #ffffff;
  --shadow-dropdown: 0 12px 24px rgba(0, 0, 0, 0.35);
  --surface-muted: #f3f4f6;
  --text-muted: #6b7280;
  --text-body: #111827;
  --text-soft: #374151;
  --border-input: #d1d5db;
  --text-label: #1f2937;
  --header-h: 56px;
  --header-h-lg: 82px;
  --max: 1200px;
  --font: "Work Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.075, 0.82, 0.165, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t-med: 0.45s;
  --t-slow: 1s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Fallback includes notch / status safe area; JS overwrites with measured #header height */
  --site-header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  scroll-padding-top: var(--site-header-offset);
}

@media (min-width: 960px) {
  html {
    --site-header-offset: calc(var(--header-h-lg) + env(safe-area-inset-top, 0px));
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--fwv-black);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--site-header-offset);
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* Hero (blue + logo) tucks under fixed header; offset handled inside .hero */
body.page-home {
  padding-top: 0;
}

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

a {
  color: var(--fwv-orange);
  transition:
    color 0.3s var(--ease-soft),
    text-decoration-color 0.3s var(--ease-soft);
}

a:hover {
  color: var(--fwv-blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 1rem 1.5rem;
  background: var(--fwv-orange);
  color: var(--fwv-white);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:focus {
  left: max(0px, env(safe-area-inset-left, 0px));
  top: max(0px, env(safe-area-inset-top, 0px));
}

.standard-width {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* —— Header —— */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--header-glass);
  border-bottom: 1px solid rgba(61, 84, 118, 0.12);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition:
    box-shadow 0.5s var(--ease-soft),
    background-color 0.45s var(--ease-soft);
}

@media (min-width: 960px) {
  #header {
    min-height: calc(var(--header-h-lg) + env(safe-area-inset-top, 0px));
  }
}

#header.is-scrolled {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
  background-color: var(--header-glass-scrolled);
}

/* Inner-pages text logo on solid white bar */
#header .logo {
  color: var(--fwv-black);
}

#header .logo:hover,
#header .logo:focus-visible {
  color: var(--fwv-orange);
}

#header .nav-toggle {
  border-color: var(--fwv-blue);
  background: transparent;
}

#header .nav-toggle:hover,
#header .nav-toggle:focus-visible {
  background: rgba(61, 84, 118, 0.06);
  border-color: var(--fwv-orange);
}

#header .nav-toggle svg circle,
#header .nav-toggle svg path {
  stroke: var(--fwv-blue);
}

#header .nav-toggle svg rect:first-of-type {
  fill: var(--fwv-blue);
}

@media (min-width: 960px) {
  #header .primary-menu > ul > li > a {
    color: var(--fwv-blue);
  }

  #header .primary-menu > ul > li > a:hover,
  #header .primary-menu > ul > li > a:focus-visible {
    color: var(--fwv-orange);
  }

  #header .submenu-toggle {
    color: var(--fwv-blue);
  }

  #header .submenu-toggle:hover,
  #header .submenu-toggle:focus-visible {
    color: var(--fwv-orange);
  }

  #header .has-sub.is-open-sub > .submenu-toggle {
    color: var(--fwv-orange);
  }

  #header .header-actions .help-link {
    color: var(--fwv-blue);
  }

  #header .header-actions .help-link:hover,
  #header .header-actions .help-link:focus-visible {
    color: var(--fwv-orange);
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  width: 100%;
  max-width: 1280px;
  padding: 0 max(1.5rem, env(safe-area-inset-right, 0px)) 0 max(1.5rem, env(safe-area-inset-left, 0px));
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .header-inner {
    min-height: var(--header-h-lg);
    align-items: flex-end;
    padding-bottom: 0.2rem;
  }
}

.page-home .header-inner {
  justify-content: flex-end;
}

/* Inner pages: logo left, nav block fills the rest and aligns right (desktop) */
body:not(.page-home) .header-inner {
  justify-content: flex-start;
}

body:not(.page-home) .header-inner > .logo.logo-image-wrap {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 2;
  margin: 0;
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .header-inner {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }
}

.logo {
  text-decoration: none;
  color: var(--fwv-white);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  max-width: 11rem;
  transition: color var(--t-fast) var(--ease-smooth), opacity var(--t-fast) var(--ease-smooth);
}

.logo:hover,
.logo:focus-visible {
  color: var(--fwv-orange);
}

@media (min-width: 782px) {
  .logo {
    font-size: 1rem;
    max-width: 9rem;
  }
}

@media (min-width: 1280px) {
  .logo {
    font-size: 1.15rem;
    max-width: 13rem;
  }
}

.logo span {
  display: block;
  font-weight: 400;
  font-size: 0.7em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 2px solid var(--fwv-white);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--fwv-orange);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle svg rect:first-of-type {
  fill: var(--fwv-white);
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.primary-wrap {
  position: fixed;
  top: var(--site-header-offset);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2100;
  padding: 1rem;
  margin-top: 0;
  background: var(--fwv-black);
  max-height: calc(100dvh - var(--site-header-offset));
  overflow: auto;
  display: block;
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.65rem);
  transition:
    opacity 0.34s var(--ease-soft),
    visibility 0s linear 0.34s,
    transform 0.4s var(--ease-soft);
}

.primary-wrap.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.4s var(--ease-soft),
    visibility 0s,
    transform 0.44s var(--ease-out);
}

@media (min-width: 960px) {
  .primary-wrap {
    position: static;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    gap: 0.35rem;
    width: auto;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
}

.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu > ul > li {
  margin: 1rem 0;
  position: relative;
}

@media (min-width: 960px) {
  .primary-menu > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
  }

  .primary-menu > ul > li {
    margin: 0;
  }
}

@media (min-width: 1280px) {
  .primary-menu > ul {
    gap: 0.25rem 1rem;
  }
}

.primary-menu a {
  display: block;
  color: var(--fwv-white);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.3s var(--ease-soft);
}

@media (min-width: 960px) {
  .primary-menu > ul > li > a {
    font-size: 0.78rem;
    letter-spacing: 0.025em;
  }
}

.primary-menu > ul > li > a:hover,
.primary-menu > ul > li > a:focus-visible {
  color: var(--fwv-orange);
}

.submenu-toggle {
  background: transparent;
  border: 0;
  color: var(--fwv-white);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem 0.75rem;
  line-height: 1;
  transition: color 0.25s var(--ease-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.has-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.has-sub > a {
  display: inline-block;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.sub-menu {
  display: none;
  margin: 0.5rem 0 0 1rem;
  padding: 0;
  width: 100%;
}

.has-sub.is-open-sub .sub-menu {
  display: block;
}

.has-sub.is-open-sub > .submenu-toggle {
  color: var(--fwv-orange);
}

.sub-menu a {
  font-weight: 600;
  font-size: 1rem;
}

@media (min-width: 960px) {
  .has-sub {
    flex-wrap: nowrap;
  }

  .submenu-toggle {
    margin-left: 0.2rem;
    padding: 0;
  }

  .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 13rem;
    margin: 0;
    padding: 0.5rem 0;
    background: var(--fwv-black);
    box-shadow: var(--shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition:
      opacity 0.4s var(--ease-soft),
      visibility 0.4s,
      transform 0.42s var(--ease-out);
    pointer-events: none;
  }

  .sub-menu li {
    padding: 0.35rem 1rem;
  }

  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu,
  .has-sub.is-open-sub .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Last top-level item (“Support us”): default left:0 overflows past the viewport */
  .primary-menu > ul > li.has-sub:last-child .sub-menu {
    left: auto;
    right: 0;
  }
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0;
  align-items: flex-start;
}

@media (min-width: 960px) {
  .header-actions {
    position: absolute;
    top: 0.1rem;
    right: 1rem;
    z-index: 2;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
    margin-left: 0;
  }
}

.header-actions-main {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .primary-menu {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
  }

  .header-actions-main {
    gap: 0.5rem;
  }
}

.header-actions .help-link {
  color: var(--fwv-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease-soft);
}

@media (min-width: 960px) {
  .header-actions .help-link {
    font-size: 0.72rem;
  }
}

/* Home only: staff login sits under I need help (sibling row in .header-actions, not beside it in .header-actions-main) */
.page-home .header-actions--home-staff {
  gap: 0.65rem;
}

.page-home .header-actions--home-staff .help-link--staff {
  display: block;
  width: 100%;
  text-align: right;
  font-size: 0.76rem;
  opacity: 0.95;
}

@media (max-width: 959px) {
  .page-home .header-actions--home-staff .help-link--staff {
    text-align: left;
  }
}

@media (min-width: 960px) {
  .page-home .header-actions--home-staff .help-link--staff {
    font-size: 0.62rem;
  }
}

.staff-login-cta {
  margin: 0;
  text-align: center;
}

.staff-login-page .staff-login-masthead .informed-masthead__desc {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.staff-login-hub {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0 0 2rem;
}

.staff-login-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .staff-login-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .staff-login-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@keyframes staff-login-card-bounce-in {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.staff-login-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 84, 118, 0.14);
  background: linear-gradient(155deg, #ffffff 0%, #f5f7fb 55%, #fffaf6 100%);
  box-shadow:
    0 4px 18px rgba(61, 84, 118, 0.07),
    0 0 0 1px rgba(61, 84, 118, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    border-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft),
    transform 0.3s var(--ease-out);
  animation: staff-login-card-bounce-in 0.42s var(--ease-out) both;
}

.staff-login-grid > .staff-login-card:nth-child(1) {
  animation-delay: 0s;
}

.staff-login-grid > .staff-login-card:nth-child(2) {
  animation-delay: 0.05s;
}

.staff-login-grid > .staff-login-card:nth-child(3) {
  animation-delay: 0.1s;
}

.staff-login-grid > .staff-login-card:nth-child(4) {
  animation-delay: 0.15s;
}

.staff-login-grid > .staff-login-card:nth-child(5) {
  animation-delay: 0.2s;
}

.staff-login-grid > .staff-login-card:nth-child(6) {
  animation-delay: 0.25s;
}

.staff-login-grid > .staff-login-card:nth-child(7) {
  animation-delay: 0.3s;
}

.staff-login-card:hover {
  border-color: rgba(61, 84, 118, 0.22);
  transform: translateY(-2px);
  box-shadow:
    0 8px 26px rgba(61, 84, 118, 0.1),
    0 0 0 1px rgba(230, 137, 60, 0.18),
    0 0 22px rgba(230, 137, 60, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.staff-login-card--muted {
  background: linear-gradient(155deg, #fafbfc 0%, #f0f3f8 100%);
}

@media (prefers-reduced-motion: reduce) {
  .staff-login-card {
    animation: none;
    box-shadow:
      0 4px 18px rgba(61, 84, 118, 0.07),
      0 0 0 1px rgba(61, 84, 118, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.9) inset;
  }

  .staff-login-card:hover {
    transform: none;
    box-shadow:
      0 6px 22px rgba(61, 84, 118, 0.09),
      0 0 0 1px rgba(230, 137, 60, 0.16),
      0 0 18px rgba(230, 137, 60, 0.1),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
  }
}

.staff-login-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fwv-black);
}

.staff-login-card__desc {
  margin: 0 0 1.15rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.staff-login-card__btn {
  align-self: flex-start;
  margin-top: auto;
}

.staff-forms-section {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0 0 2rem;
}

.staff-forms-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.6rem 1.65rem;
  border-radius: 16px;
  border: 1px dashed rgba(61, 84, 118, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 251, 0.92) 100%);
  box-shadow:
    0 4px 24px rgba(61, 84, 118, 0.06),
    0 0 28px rgba(230, 137, 60, 0.08);
}

.staff-forms-card__placeholder {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.staff-forms-download-intro {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.staff-forms-download-intro code {
  font-size: 0.88em;
}

.staff-forms-download-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.65;
}

.staff-forms-download-item {
  margin: 0 0 0.35rem;
}

.staff-forms-download-link {
  color: var(--fwv-blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  word-break: break-word;
}

.staff-forms-download-link:hover,
.staff-forms-download-link:focus-visible {
  color: var(--fwv-orange);
  text-decoration-thickness: 2px;
}

.staff-forms-page .staff-login-back {
  margin-top: 1.5rem;
  text-align: center;
}

.staff-login-notice {
  margin: 1.75rem 0 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  background: rgba(61, 84, 118, 0.06);
  border: 1px solid rgba(61, 84, 118, 0.1);
}

.staff-login-notice code {
  font-size: 0.85em;
}

.staff-login-page .staff-login-back {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.staff-login-page .staff-login-back a {
  font-weight: 600;
}

.staff-token-panel {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 84, 118, 0.18);
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fb 100%);
}

.staff-token-label {
  display: block;
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fwv-black);
}

.staff-token-input {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid rgba(61, 84, 118, 0.25);
  border-radius: 8px;
  box-sizing: border-box;
}

.staff-login-card--admin {
  border: 1px solid rgba(230, 137, 60, 0.45);
  box-shadow: 0 0 0 1px rgba(230, 137, 60, 0.12);
}

.staff-sign-in-section {
  max-width: 26rem;
  margin: 0 auto 2rem;
  padding: 0 0.5rem;
}

.staff-sign-in-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.staff-sign-in-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--fwv-blue);
}

.staff-sign-in-input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid rgba(61, 84, 118, 0.28);
  border-radius: 10px;
  box-sizing: border-box;
}

.staff-sign-in-submit-wrap {
  margin: 0.5rem 0 0;
}

.staff-sign-in-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(180, 40, 40, 0.08);
  border: 1px solid rgba(180, 40, 40, 0.25);
  color: #7f1d1d;
  font-weight: 600;
}

.staff-users-flash {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.staff-users-flash--ok {
  background: rgba(34, 120, 80, 0.1);
  border: 1px solid rgba(34, 120, 80, 0.28);
  color: #14532d;
}

.staff-users-flash--err {
  background: rgba(180, 40, 40, 0.08);
  border: 1px solid rgba(180, 40, 40, 0.25);
  color: #7f1d1d;
}

.staff-users-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 84, 118, 0.12);
}

.staff-users-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.staff-users-table th,
.staff-users-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(61, 84, 118, 0.1);
}

.staff-users-table th {
  font-weight: 800;
  color: var(--fwv-blue);
  background: rgba(61, 84, 118, 0.05);
}

.staff-users-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 1.25rem !important;
}

.staff-users-row--master td {
  background: rgba(61, 84, 118, 0.04);
}

.staff-users-no-action {
  color: var(--text-soft);
  font-size: 0.9em;
}

.staff-users-inline-form {
  margin: 0;
}

.staff-users-subhead {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--fwv-blue);
}

.staff-users-add-form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.staff-submissions-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.staff-submissions-notes {
  max-width: 14rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.staff-submissions-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.35;
}

.staff-submissions-ip {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.staff-submissions-ua {
  max-width: 20rem;
  word-break: break-word;
  font-size: 0.8rem;
}

.staff-submissions-table th,
.staff-submissions-table td {
  border: 1px solid rgba(61, 84, 118, 0.14);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.staff-submissions-table th {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--fwv-blue);
  background: rgba(61, 84, 118, 0.06);
}

.staff-submissions-empty {
  padding: 1.25rem !important;
  color: var(--text-soft);
  font-style: italic;
}

.button.staff-delete-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  background: transparent;
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.45);
  box-shadow: none;
}

.button.staff-delete-btn:hover,
.button.staff-delete-btn:focus-visible {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

/* —— Buttons —— */
.button {
  display: inline-block;
  background: var(--fwv-orange);
  color: var(--fwv-white);
  padding: 0.5rem 1.5rem;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font);
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
  transition:
    background-color 0.35s var(--ease-soft),
    color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-soft);
}

.button:hover,
.button:focus-visible {
  background: var(--fwv-blue);
  color: var(--fwv-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 84, 118, 0.35);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.button.button--secondary {
  background: transparent;
  color: var(--fwv-blue);
  border: 2px solid var(--fwv-blue);
  box-shadow: none;
}

.button.button--secondary:hover,
.button.button--secondary:focus-visible {
  background: rgba(61, 84, 118, 0.08);
  color: var(--fwv-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(61, 84, 118, 0.2);
}

/* —— Staff server status —— */
.server-status-page .server-status-panel {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 84, 118, 0.16);
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fb 100%);
}

.server-status-panel__title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fwv-blue);
}

.server-status-panel__note {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.server-status-panel__note strong {
  color: var(--text-body);
  font-weight: 700;
}

.server-status-panel--summary .server-status-panel__title {
  margin-bottom: 0.5rem;
}

.server-status-badge {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.server-status-badge--ok {
  color: #166534;
}

.server-status-badge--warn {
  color: #a16207;
}

.server-status-badge--bad {
  color: #b91c1c;
}

.server-status-pre {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(38, 43, 47, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(61, 84, 118, 0.12);
  max-height: 24rem;
  overflow: auto;
}

.server-status-pre--short {
  max-height: none;
}

.server-status-pre--connections {
  max-height: 28rem;
}

/* —— Jump to top —— */
.jump-to-top {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  background: var(--fwv-orange);
  color: var(--fwv-white);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity var(--t-med) var(--ease-smooth),
    transform var(--t-med) var(--ease-smooth),
    background-color var(--t-fast) var(--ease-smooth);
}

.jump-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.jump-to-top:hover,
.jump-to-top:focus-visible {
  background: var(--fwv-blue);
}

/* —— Hero —— */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  min-height: min(600px, 90vh);
  min-height: min(600px, 90dvh);
  color: var(--fwv-white);
  background: linear-gradient(145deg, #334c6b 0%, var(--fwv-blue) 45%, #2c4259 100%);
  overflow: hidden;
}

/* Blue meets the top of the viewport; left column paints above the glass header (see .hero__content::before) */
.page-home .hero {
  margin-top: calc(-1 * var(--site-header-offset));
  padding-top: var(--site-header-offset);
  overflow: visible;
}

.page-home .hero__image {
  overflow: hidden;
}

/* Narrow / mobile: Pexels hero — fill a fixed band with absolute img so object-position/top anchoring is reliable (flow layout breaks % height + cover) */
@media (max-width: 781px) {
  .page-home .hero__image {
    position: relative;
    min-height: max(min(72vw, 460px), 40vh);
    min-height: max(min(72vw, 460px), 40svh);
    overflow: hidden;
  }

  .page-home .hero__image picture,
  .page-home .hero__image img {
    min-height: 0;
  }

  .page-home .hero__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    /* Push image down so heads clear the top crop / header edge on phones */
    transform: translateY(calc(28px + env(safe-area-inset-top, 0px)));
    transform-origin: center top;
    animation: none !important;
  }
}

@media (min-width: 782px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 560px;
  }
}

.hero__image {
  position: relative;
  grid-row: 1;
  min-height: 240px;
  background: linear-gradient(145deg, #334c6b 0%, var(--fwv-blue) 42%, #2f4a63 100%);
}

@media (min-width: 782px) {
  .hero__image {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
  }
}

.hero__image picture,
.hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 270px;
}

.hero__image img {
  object-fit: cover;
}

@media (min-width: 782px) {
  .hero__image picture,
  .hero__image img {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__image img {
    animation: hero-kenburns 18s var(--ease-smooth) infinite alternate;
  }
}

@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero__content {
  grid-row: 2;
  align-self: center;
  padding: 1.5rem 1.5rem 2.5rem;
}

@media (min-width: 782px) {
  .hero__content {
    grid-column: 1;
    grid-row: 1;
    padding: 2rem 2rem 2rem 1.5rem;
  }
}

@media (min-width: 1280px) {
  .hero__content {
    padding-left: calc((100vw - var(--max)) / 2 + 1.5rem);
  }
}

/* Homepage only: logo above eyebrow; centered at top of hero column */
.hero__logo.logo-image-wrap {
  display: block;
  width: 132px;
  max-width: min(132px, 100%);
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 auto 0.35rem;
}

.hero .hero__logo:hover,
.hero .hero__logo:focus-visible {
  color: var(--fwv-white);
  opacity: 0.88;
}

/* Mobile / narrow: same darker→lighter band behind logo + copy */
@media (max-width: 781px) {
  body.page-home .hero__content {
    position: relative;
    z-index: 0;
  }

  body.page-home .hero__content::before {
    content: "";
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: 0;
    bottom: 0;
    background: linear-gradient(
      180deg,
      #141d2b 0%,
      #1f2e44 18%,
      #2a3d56 38%,
      var(--fwv-blue) 65%,
      #4d6b8f 100%
    );
    z-index: -1;
    pointer-events: none;
  }
}

@media (min-width: 782px) {
  body.page-home .hero__content {
    align-self: start;
    padding-top: 0.5rem;
    padding-bottom: 1.75rem;
    position: relative;
    z-index: 2010;
  }

  /* Left column behind logo: darker at header edge, lighter toward content */
  body.page-home .hero__content::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    right: -2rem;
    top: calc(-1 * var(--site-header-offset));
    bottom: 0;
    background: linear-gradient(
      180deg,
      #141d2b 0%,
      #1f2e44 14%,
      #2a3f5a 32%,
      var(--fwv-blue) 58%,
      #4a6490 82%,
      #5c7fa8 100%
    );
    z-index: -1;
    pointer-events: none;
  }

  .hero__logo.logo-image-wrap {
    width: 168px;
    max-width: min(168px, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.4rem;
  }
}

@media (min-width: 1280px) {
  body.page-home .hero__content {
    padding-top: 0.45rem;
  }

  body.page-home .hero__content::before {
    left: calc(-1 * ((100vw - var(--max)) / 2 + 1.5rem));
    right: -2rem;
  }

  .hero__logo.logo-image-wrap {
    width: 196px;
    max-width: min(196px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero p.lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 36ch;
}

.hero .button {
  width: 100%;
}

@media (min-width: 782px) {
  .hero .button {
    width: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    opacity: 0;
    animation: hero-fade-up 0.9s var(--ease-out) forwards;
  }

  .hero__content > *:nth-child(1) {
    animation-delay: 0.06s;
  }

  .hero__content > *:nth-child(2) {
    animation-delay: 0.14s;
  }

  .hero__content > *:nth-child(3) {
    animation-delay: 0.22s;
  }

  .hero__content > *:nth-child(4) {
    animation-delay: 0.26s;
  }

  .hero__content > *:nth-child(5) {
    animation-delay: 0.34s;
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.email-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 782px) {
  .email-form__row {
    flex-direction: row;
    align-items: stretch;
  }
}

.email-form input[type="email"] {
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem 0.75rem;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--fwv-black);
}

.email-form .button {
  width: 100%;
  max-width: 12rem;
}

/* —— News —— */
.news-showcase {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, rgba(237, 242, 252, 0.65) 0%, rgba(255, 253, 248, 0.4) 100%);
}

.news-showcase h2 {
  margin: 0 0 2rem;
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fwv-black);
}

.news-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 782px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 280px;
  background: var(--fwv-black);
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-soft);
}

.news-card:hover img {
  transform: scale(1.08);
}

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.38) 65%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.news-card a {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: var(--fwv-white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.news-card a:hover {
  color: var(--fwv-white);
}

.news-footer {
  margin-top: 2rem;
  text-align: center;
}

/* —— Text + image band (resources) —— */
.text-band {
  position: relative;
  display: grid;
  color: var(--fwv-white);
  background: var(--fwv-green);
}

@media (min-width: 782px) {
  .text-band {
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
  }
}

.text-band__copy {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

@media (min-width: 1280px) {
  .text-band__copy {
    padding-left: calc((100vw - var(--max)) / 2 + 1.5rem);
  }
}

.text-band h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.text-band p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
}

.text-band .button:hover,
.text-band .button:focus-visible {
  background: var(--fwv-blue);
}

.text-band__visual {
  min-height: 220px;
  background: var(--fwv-green);
}

@media (min-width: 782px) {
  .text-band__visual {
    min-height: 100%;
  }
}

.text-band__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* —— Priorities —— */
.priorities {
  padding: 3rem 0;
  background: linear-gradient(185deg, #eef6f0 0%, #f8f4ef 50%, #edf2fa 100%);
}

.priorities h2 {
  margin: 0 0 2rem;
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.priorities-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 782px) {
  .priorities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.priority-card {
  display: block;
  background: var(--fwv-white);
  text-decoration: none;
  color: var(--fwv-black);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.4s var(--ease-soft),
    transform 0.4s var(--ease-out);
}

.priority-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.priority-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: var(--fwv-blue);
}

.priority-card h3 {
  margin: 0;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

/* —— Impact —— */
.impact {
  padding: 3rem 0;
  background: linear-gradient(180deg, #fffefb 0%, #f4f7fc 55%, #faf8f4 100%);
}

.impact h2 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.impact-intro {
  margin: 0 auto 2.5rem;
  max-width: 52ch;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.stats {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 782px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--fwv-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.impact-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--fwv-black);
  color: var(--fwv-white);
  padding: 2.5rem 1.5rem max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

.site-footer a {
  color: var(--fwv-white);
  transition: color 0.3s var(--ease-soft);
}

.site-footer a:hover {
  color: var(--fwv-orange);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 782px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer .logo {
  max-width: none;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  opacity: 0.85;
}

h1,
h2,
h3 {
  font-family: var(--font);
}

/* —— Scroll reveal (IntersectionObserver adds .is-visible) —— */
.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— HTML5 details / FAQ —— */
.faq-panel {
  margin: 2rem 0 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(61, 84, 118, 0.08);
}

.faq-panel__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fwv-blue);
}

.faq-item {
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color var(--t-fast) var(--ease-smooth);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.7);
}

.faq-item summary {
  cursor: pointer;
  padding: 0.85rem 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--t-fast) var(--ease-smooth);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--fwv-orange);
  border-bottom: 2px solid var(--fwv-orange);
  transform: rotate(45deg);
  transition: transform var(--t-med) var(--ease-smooth);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--fwv-orange);
}

.faq-item p {
  margin: 0;
  padding: 0 0.25rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
  animation: faq-open var(--t-med) var(--ease-smooth);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Resource library —— */
.resource-library__disclaimer {
  margin: 0 auto 2rem;
  max-width: 52ch;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  background: rgba(230, 137, 60, 0.1);
  border-left: 4px solid var(--fwv-orange);
  border-radius: 8px;
  color: #374151;
}

.resource-library__disclaimer p {
  margin: 0;
}

.resource-library__toc {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface-muted);
  border: 1px solid rgba(61, 84, 118, 0.12);
  border-radius: 10px;
  text-align: left;
}

.resource-library__toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.resource-library__toc-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.resource-library__toc-list a {
  color: var(--fwv-blue);
  font-weight: 600;
}

.resource-library__toc-list a:hover {
  color: var(--fwv-orange);
}

.resource-grid {
  display: grid;
  gap: 1.15rem;
  margin: 0 auto 1rem;
  max-width: 56rem;
}

@media (min-width: 720px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resource-card {
  margin: 0;
  padding: 1.1rem 1.25rem;
  text-align: left;
  background: var(--surface-muted);
  border: 1px solid rgba(61, 84, 118, 0.12);
  border-radius: 10px;
  transition: box-shadow 0.4s var(--ease-soft), transform 0.4s var(--ease-out);
}

.resource-card:hover {
  box-shadow: 0 8px 24px rgba(61, 84, 118, 0.12);
  transform: translateY(-2px);
}

.resource-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.resource-card__title a {
  color: var(--fwv-blue);
  text-decoration: none;
}

.resource-card__title a:hover {
  text-decoration: underline;
  color: var(--fwv-orange);
}

.resource-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
}

.resource-library .impact + .impact {
  padding-top: 2rem;
}

/* —— Card & list polish —— */
.news-card,
.location-card,
.contact-card {
  transition:
    transform 0.48s var(--ease-soft),
    box-shadow 0.48s var(--ease-soft);
}

.location-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 84, 118, 0.12);
}

.contact-cards--team .contact-card {
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-cards--team .contact-card:hover {
  transform: translateY(-14px) scale(1.035);
  box-shadow: 0 20px 40px rgba(61, 84, 118, 0.22);
}

.donation-list li {
  transition: transform var(--t-fast) var(--ease-smooth), color var(--t-fast) var(--ease-smooth);
}

.donation-list li:hover {
  transform: translateX(6px);
  color: var(--fwv-blue);
}

/* —— Focus rings (keyboard) —— */
:focus-visible {
  outline: 2px solid var(--fwv-yellow);
  outline-offset: 3px;
  transition:
    outline-offset 0.2s var(--ease-soft),
    outline-color 0.2s var(--ease-soft);
}

.button:focus-visible {
  outline-offset: 4px;
}

/* —— Respect reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__image img {
    animation: none !important;
  }

  .hero__content > * {
    opacity: 1 !important;
    animation: none !important;
  }

  .donation-list li:hover {
    transform: none;
  }

  .contact-cards--team .contact-card:hover {
    transform: none;
  }

  .resource-card:hover {
    transform: none;
  }

  .photo-pair__item:hover img {
    transform: none;
  }
}

/* —— Mission / our story —— */
.mission-section {
  padding: 2.75rem 1.5rem;
  text-align: center;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.mission-section h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fwv-black);
}

.mission-statement {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #374151;
}

.mission-statement strong {
  color: var(--fwv-black);
}

.mission-section .mission-statement a {
  color: var(--fwv-blue);
  font-weight: 600;
  text-underline-offset: 2px;
}

.mission-section .mission-statement a:hover {
  color: var(--fwv-orange);
}

.mission-kicker {
  margin: -0.35rem 0 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fwv-blue);
}

.mission-block {
  margin: 0 auto 1.25rem;
  max-width: 50rem;
  text-align: left;
}

.mission-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--fwv-black);
}

.mission-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
  color: #374151;
}

.mission-list li {
  margin-bottom: 0.5rem;
}

.mission-motto,
.mission-signature {
  margin: 0.8rem auto 0;
  max-width: 50rem;
}

.mission-signature {
  color: #4b5563;
  font-weight: 600;
}

.stock-gallery {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  background: linear-gradient(180deg, rgba(255, 244, 230, 0.35) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.stock-gallery h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.stock-gallery__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) and (max-width: 781px) {
  .stock-gallery__grid--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 782px) {
  .stock-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stock-gallery__grid--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stock-gallery__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.48s var(--ease-soft);
}

.stock-gallery__grid img:hover {
  transform: translateY(-4px);
}

/* —— Events page: card grid + flyer lightbox —— */
body.page-events .events-page {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

body.page-events .events-page__section-title {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
}

body.page-events .events-page__lede {
  margin-bottom: 1.25rem;
}

body.page-events .events-cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-events .events-cards-grid__item {
  margin: 0;
  padding: 0;
}

@media (min-width: 960px) {
  body.page-events .events-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  }
}

body.page-events .event-card {
  margin: 0;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fb 55%, #fff9f2 100%);
  border: 1px solid rgba(61, 84, 118, 0.12);
  box-shadow:
    0 4px 24px rgba(61, 84, 118, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

@media (min-width: 782px) {
  body.page-events .event-card {
    padding: 2rem 2rem 2rem 2.25rem;
  }
}

body.page-events .event-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--fwv-blue);
}

body.page-events .event-card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--fwv-black);
}

body.page-events .event-card__sep {
  margin: 0 0.35rem;
  color: var(--text-soft);
  font-weight: 600;
}

body.page-events .event-card__guests {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-soft);
}

body.page-events .event-card__guests a {
  color: var(--fwv-orange);
  font-weight: 700;
}

body.page-events .event-card .event-flyer-wrap {
  margin-bottom: 0;
}

body.page-events .events-page--prior {
  margin-top: 2.5rem;
}

body.page-events .events-page--prior-flyers {
  margin-top: 2.5rem;
}

body.page-events .events-prior-grid,
.page-get-informed .beauty-services-grid {
  display: grid;
  gap: 0.15rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  body.page-events .events-prior-grid,
  .page-get-informed .beauty-services-grid {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.2rem;
  }
}

body.page-events .events-prior-grid > li,
.page-get-informed .beauty-services-grid > li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

body.page-events .events-prior-thumb,
.page-get-informed .beauty-services-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
  text-align: center;
  font: inherit;
  color: inherit;
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 7.5rem;
  transition: transform 0.3s var(--ease-soft);
}

body.page-events .events-prior-thumb:hover,
body.page-events .events-prior-thumb:focus-visible,
.page-get-informed .beauty-services-thumb:hover,
.page-get-informed .beauty-services-thumb:focus-visible {
  transform: translateY(-3px);
}

body.page-events .events-prior-thumb:focus,
.page-get-informed .beauty-services-thumb:focus {
  outline: none;
}

body.page-events .events-prior-thumb:focus-visible,
.page-get-informed .beauty-services-thumb:focus-visible {
  outline: 2px solid var(--fwv-orange);
  outline-offset: 3px;
}

body.page-events .events-prior-thumb img,
.page-get-informed .beauty-services-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  flex: 1 1 auto;
  align-self: stretch;
}

.page-get-informed #hair-beauty-services .beauty-services-gallery__lede {
  margin: 1.5rem auto 0.85rem;
}

.page-get-informed .informed-gallery-lightbox__lede {
  margin: 0 auto 0.85rem;
  max-width: 40rem;
  text-align: center;
  font-size: 0.95rem;
}

.page-get-informed .informed-gallery-lightbox__lede--panel {
  margin-top: 1.25rem;
}

/* Closet + shared living: thumbnail buttons match prior tile layout */
.page-get-informed .informed-gallery-lightbox-thumb {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: inherit;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}

.page-get-informed .informed-gallery-section .informed-gallery.stock-gallery__grid .informed-gallery-lightbox-thumb {
  height: 7.5rem;
}

.page-get-informed .informed-panel .informed-gallery--tight.stock-gallery__grid .informed-gallery-lightbox-thumb--tight {
  height: 10rem;
}

.page-get-informed .informed-gallery-lightbox-thumb:hover,
.page-get-informed .informed-gallery-lightbox-thumb:focus-visible {
  transform: translateY(-2px);
}

.page-get-informed .informed-gallery-lightbox-thumb:focus {
  outline: none;
}

.page-get-informed .informed-gallery-lightbox-thumb:focus-visible {
  outline: 2px solid var(--fwv-orange);
  outline-offset: 3px;
}

.page-get-informed .informed-gallery-lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Prior photos in lightbox: full image visible, scaled to viewport (dark matte, no white matting) */
.flyer-lightbox__panel.flyer-lightbox__panel--prior-photo {
  max-width: min(98vw, 54rem);
  max-height: min(96vh, 85rem);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  border-radius: 0;
  box-shadow: none;
}

.flyer-lightbox__img.flyer-lightbox__img--prior {
  width: auto;
  height: auto;
  max-width: min(calc(98vw - 2rem), 54rem);
  max-height: min(calc(96vh - 2.5rem), 85rem);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

body:not(.page-home) .event-flyer-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.25rem;
}

body:not(.page-home) .event-flyer-card {
  display: block;
  width: 100%;
  max-width: 18rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(61, 84, 118, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(61, 84, 118, 0.12);
  cursor: zoom-in;
  text-align: center;
  font: inherit;
  color: inherit;
  transition:
    transform 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

body:not(.page-home) .event-flyer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(61, 84, 118, 0.16);
}

body:not(.page-home) .event-flyer-card:focus {
  outline: 3px solid var(--fwv-orange);
  outline-offset: 3px;
}

body:not(.page-home) .event-flyer-card:focus:not(:focus-visible) {
  outline: none;
}

body:not(.page-home) .event-flyer-card:focus-visible {
  outline: 3px solid var(--fwv-orange);
  outline-offset: 3px;
}

body:not(.page-home) .event-flyer-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

body:not(.page-home) .event-flyer-card__hint {
  display: block;
  padding: 0.55rem 0.85rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fwv-blue);
  background: linear-gradient(180deg, rgba(61, 84, 118, 0.06) 0%, #fff 100%);
}

/* Closed dialog must not take layout space or sit after footer in the tree */
dialog.flyer-lightbox:not([open]) {
  display: none !important;
}

.flyer-lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 1.25rem;
  border: none;
  background: transparent;
  box-sizing: border-box;
}

dialog.flyer-lightbox[open] {
  position: fixed;
  inset: 0;
  max-width: none;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-lightbox::backdrop {
  background: rgba(17, 24, 39, 0.86);
  cursor: pointer;
}

.flyer-lightbox__panel {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  max-width: min(92vw, 32rem);
}

.flyer-lightbox__img {
  display: block;
  width: 100%;
  max-width: min(92vw, 32rem);
  max-height: min(88vh, 48rem);
  height: auto;
  object-fit: contain;
}

.flyer-lightbox__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.flyer-lightbox__close:hover,
.flyer-lightbox__close:focus-visible {
  background: rgba(17, 24, 39, 0.95);
}

.flyer-lightbox__close:focus {
  outline: 2px solid var(--fwv-orange);
  outline-offset: 2px;
}

/* —— Inner pages (non-home): masthead + program-style blocks —— */
body:not(.page-home) .informed-masthead {
  position: relative;
  margin: 0 0 0.35rem;
  padding: 1.2rem 0 1.35rem;
  overflow: hidden;
  color: var(--fwv-white);
  background:
    linear-gradient(135deg, rgba(61, 84, 118, 0.97) 0%, rgba(68, 37, 79, 0.88) 48%, rgba(83, 113, 43, 0.85) 100%);
}

body:not(.page-home) .informed-masthead__glow {
  position: absolute;
  inset: -40% -20% auto 40%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(255, 212, 0, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

body:not(.page-home) .informed-masthead__inner {
  position: relative;
  z-index: 1;
}

body:not(.page-home) .informed-masthead__eyebrow {
  margin: 0 0 0.22rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

body:not(.page-home) .informed-masthead__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body:not(.page-home) .informed-masthead__desc {
  margin: 0 0 0.75rem;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

body:not(.page-home) .informed-masthead__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

body:not(.page-home) .informed-masthead__toc-link {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--fwv-black);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.25s var(--ease-soft),
    background-color 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft);
}

body:not(.page-home) .informed-masthead__toc-link:hover,
body:not(.page-home) .informed-masthead__toc-link:focus-visible {
  color: var(--fwv-white);
  background: rgba(230, 137, 60, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

body:not(.page-home) .informed-feature {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

body:not(.page-home) .informed-feature__grid {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fb 55%, #fff9f2 100%);
  border: 1px solid rgba(61, 84, 118, 0.12);
  box-shadow:
    0 4px 24px rgba(61, 84, 118, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

@media (min-width: 782px) {
  body:not(.page-home) .informed-feature__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem;
    padding: 2rem 2rem 2rem 2.25rem;
    align-items: center;
  }

  body:not(.page-home) .informed-feature__figure {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  body:not(.page-home) .informed-feature__figure img {
    max-height: min(52vh, 28rem);
  }
}

body:not(.page-home) .informed-chip {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fwv-blue);
  background: rgba(61, 84, 118, 0.1);
  border-radius: 999px;
}

body:not(.page-home) .informed-chip--muted {
  color: #374151;
  background: rgba(83, 113, 43, 0.12);
}

body:not(.page-home) .informed-feature__title {
  position: relative;
  display: inline-block;
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--fwv-black);
}

body:not(.page-home) .informed-feature__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 72%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fwv-orange) 0%, rgba(230, 137, 60, 0.12) 100%);
}

body:not(.page-home) .informed-schedule-card {
  margin: 0 0 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(230, 137, 60, 0.14) 0%, rgba(255, 212, 0, 0.12) 100%);
  border: 1px solid rgba(230, 137, 60, 0.28);
}

body:not(.page-home) .informed-schedule-card__label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fwv-blue);
}

body:not(.page-home) .informed-schedule-card__time {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--fwv-black);
}

body:not(.page-home) .informed-schedule-card__time + .informed-schedule-card__time {
  margin-top: 0.35rem;
}

body:not(.page-home) .informed-schedule-card__note {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-soft);
}

body:not(.page-home) .informed-schedule-card__day {
  color: var(--fwv-orange);
}

body:not(.page-home) .informed-feature__lede {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
}

body:not(.page-home) .informed-checklist {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
  color: var(--text-body);
  font-size: 0.98rem;
}

body:not(.page-home) .informed-checklist li {
  margin-bottom: 0.4rem;
}

body:not(.page-home) .informed-checklist li::marker {
  color: var(--fwv-green);
}

/* Centered housing blurb spanning full closet/pantry feature (Get informed) */
.page-get-informed #clothing-closet-pantry .informed-feature__housing-note {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.15rem 0.75rem 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-soft);
  border-top: 1px solid rgba(61, 84, 118, 0.12);
}

.page-get-informed #clothing-closet-pantry .informed-feature__housing-note strong {
  color: var(--text-body);
  font-weight: 800;
}

body:not(.page-home) .informed-feature__figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(61, 84, 118, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

body:not(.page-home) .informed-feature__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(160deg, #eef2f7 0%, #ffffff 90%);
}

body.page-get-informed .informed-feature__figure {
  border: none;
  box-shadow: none;
}

body.page-get-informed .informed-feature__figure img {
  object-fit: cover;
  background: transparent;
}

body:not(.page-home) .informed-gallery-section {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

body:not(.page-home) .informed-section-head {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

body:not(.page-home) .informed-section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 48rem;
}

body:not(.page-home) .informed-section-head__title {
  position: relative;
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--fwv-black);
}

body:not(.page-home) .informed-section-head__sub {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-soft);
}

body:not(.page-home) .informed-section-head__sub--left {
  max-width: 42rem;
}

body:not(.page-home) .informed-section-head__title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin-top: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fwv-orange), rgba(230, 137, 60, 0.2));
}

body:not(.page-home) .informed-section-head--left .informed-section-head__title::after {
  margin-left: 0;
}

body:not(.page-home) .informed-gallery.stock-gallery__grid img {
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 782px) {
  body:not(.page-home) .informed-gallery.stock-gallery__grid img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
    max-height: none;
  }
}

body:not(.page-home) .informed-gallery--tight.stock-gallery__grid img:first-child {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
}

body:not(.page-home) .informed-panel .informed-section-head {
  margin-bottom: 1.25rem;
}

body:not(.page-home) .informed-panel .contact-cards {
  margin-top: 0.5rem;
}

body:not(.page-home) .informed-contact-band {
  margin-top: 1rem;
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(61, 84, 118, 0.06) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(61, 84, 118, 0.1);
}

body:not(.page-home) .informed-contact-band .informed-section-head__title::after {
  background: linear-gradient(90deg, var(--fwv-blue), rgba(61, 84, 118, 0.2));
}

@media (max-width: 781px) {
  body:not(.page-home) .informed-masthead {
    padding: 1rem 0 1.1rem;
  }

  body:not(.page-home) .informed-masthead__toc-link {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
  }

  body:not(.page-home) .informed-feature__grid {
    padding: 1.35rem 1.15rem;
  }

  body:not(.page-home) .informed-feature__figure img {
    aspect-ratio: 16 / 10;
    max-height: min(42vw, 320px);
  }

  body.page-get-informed .informed-feature__figure img {
    object-fit: cover;
    background: transparent;
  }
}

/* Inner pages: card-style sections (match clothing closet / pantry program blocks) */
body:not(.page-home) main > section.impact:not(.informed-feature):not(.informed-contact-band),
body:not(.page-home) main > section.mission-section,
body:not(.page-home) main > section.informed-gallery-section {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fb 55%, #fff9f2 100%);
  border: 1px solid rgba(61, 84, 118, 0.12);
  box-shadow:
    0 4px 24px rgba(61, 84, 118, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body:not(.page-home) main > section.mission-section:first-child,
body:not(.page-home) main > section.impact:not(.informed-feature):not(.informed-contact-band):first-child,
body:not(.page-home) main > section.informed-gallery-section:first-child {
  margin-top: 0;
}

body:not(.page-home) main > .informed-masthead + section {
  margin-top: 1.25rem;
}

@media (min-width: 782px) {
  body:not(.page-home) main > section.impact:not(.informed-feature):not(.informed-contact-band),
  body:not(.page-home) main > section.mission-section,
  body:not(.page-home) main > section.informed-gallery-section {
    padding: 2rem 2rem 2rem 2.25rem;
  }
}

/* Get informed: compact gallery thumbnails */
.page-get-informed .informed-gallery-section .informed-gallery.stock-gallery__grid,
.page-get-informed .informed-panel .informed-gallery.stock-gallery__grid {
  max-width: 52rem;
  margin-inline: auto;
  gap: 0.45rem !important;
}

.page-get-informed .informed-gallery.stock-gallery__grid img {
  max-height: 7.5rem;
  width: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 3;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Inside the closet: fixed tile height; full image visible inside tile */
.page-get-informed .informed-gallery-section .informed-gallery.stock-gallery__grid img {
  height: 7.5rem;
  max-height: none;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.page-get-informed .informed-gallery--tight.stock-gallery__grid img {
  height: 10rem;
  max-height: none;
  width: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 782px) {
  .page-get-informed .informed-gallery.stock-gallery__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .page-get-informed .informed-gallery.stock-gallery__grid img:first-child {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 4 / 3 !important;
    max-height: 7.5rem !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .page-get-informed .informed-gallery-section .informed-gallery.stock-gallery__grid img:first-child {
    height: 7.5rem !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* Hair & beauty: 3× portrait (771×1024), black matte; row capped so tiles stay modest */
.page-get-informed #hair-beauty-services .informed-gallery--tight.stock-gallery__grid {
  max-width: min(100%, 26rem);
  margin-inline: auto;
}

.page-get-informed #hair-beauty-services .informed-gallery--tight.stock-gallery__grid img,
.page-get-informed #hair-beauty-services .informed-gallery--tight.stock-gallery__grid img:first-child {
  aspect-ratio: 771 / 1024 !important;
  max-height: none !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 782px) {
  .page-get-informed #hair-beauty-services .informed-gallery--tight.stock-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: min(100%, 30rem);
  }

  .page-get-informed #hair-beauty-services .informed-gallery--tight.stock-gallery__grid img:first-child {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 771 / 1024 !important;
    max-height: none !important;
    height: auto !important;
  }
}

body:not(.page-home) #hair-beauty-services .informed-gallery.stock-gallery__grid img {
  border-radius: 0;
}

/* —— God's Vision Impact Center content —— */
.logo.logo--long {
  font-size: 0.95rem;
  max-width: 11rem;
  line-height: 1.15;
}

@media (min-width: 960px) {
  .logo.logo--long {
    font-size: 1.05rem;
    max-width: 17rem;
  }
}

.logo.logo--long span {
  display: block;
  margin-top: 0.1rem;
}

.logo-image-wrap {
  width: 46px;
  max-width: 46px;
  height: calc(var(--header-h) - 8px);
  display: flex;
  align-items: center;
}

#header .logo-image-wrap {
  width: 66px;
  max-width: 66px;
  height: calc(var(--header-h) - 8px);
  margin-left: 0;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .logo-image-wrap {
    width: 54px;
    max-width: 54px;
    height: calc(var(--header-h-lg) - 10px);
  }

  #header .logo-image-wrap {
    width: 100px;
    max-width: 100px;
    height: calc(var(--header-h-lg) - 10px);
  }
}

.logo-image {
  display: block;
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  transition: opacity var(--t-fast) var(--ease-smooth);
}

.logo-image-wrap:hover .logo-image,
.logo-image-wrap:focus-visible .logo-image {
  opacity: 1;
}

.logo--footer.logo-image-wrap {
  width: 168px;
  max-width: 168px;
  height: auto;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fwv-yellow);
}

.button.button--lg {
  padding: 0.65rem 1.75rem;
  font-size: 1rem;
}

.section-intro {
  margin: -1rem 0 1.25rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.donation-list {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.donation-list li {
  margin-bottom: 0.65rem;
}

.community-updates-list li {
  margin-bottom: 1.25rem;
}

.community-updates-list li:last-child {
  margin-bottom: 0;
}

.photo-pair {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 782px) {
  .photo-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.photo-pair__item {
  margin: 0;
}

.photo-pair__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
  border-radius: 6px;
  transition:
    transform 0.5s var(--ease-soft),
    box-shadow 0.5s var(--ease-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.photo-pair__item:hover img {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.photo-pair__item figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.4;
}

.location-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 782px) {
  .location-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.location-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--fwv-yellow);
}

.location-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fwv-white);
}

.location-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.text-band .location-card {
  background: rgba(0, 0, 0, 0.2);
}

.text-band .location-card h3 {
  color: var(--fwv-white);
}

.why-donate-section {
  padding-top: 2.5rem;
}

.why-donate-text {
  margin: 0 auto 2rem;
  max-width: 48rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.65;
}

.priorities-grid--three {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .priorities-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.priority-card--static {
  cursor: default;
}

.priority-card--static:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-section .impact-intro {
  margin-bottom: 1.5rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto 1rem;
}

@media (min-width: 782px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
  }

  .contact-card--wide {
    grid-column: 1 / -1;
  }
}

.contact-card {
  background: var(--surface-muted);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.contact-card--wide:has(.shared-living-details) {
  padding: 0.75rem 1.1rem;
}

.contact-card--wide:has(.shared-living-details) .contact-card__label {
  margin-bottom: 0.15rem;
}

.contact-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-card__value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-card__value a {
  text-decoration: none;
}

.contact-card__value a:hover {
  text-decoration: underline;
}

.volunteer-form {
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
  text-align: left;
  position: relative;
}

.volunteer-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.volunteer-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--text-label);
}

.volunteer-form input,
.volunteer-form select,
.volunteer-form textarea {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text-body);
  background: var(--fwv-white);
  transition:
    border-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

.volunteer-form input:focus-visible,
.volunteer-form select:focus-visible,
.volunteer-form textarea:focus-visible {
  border-color: rgba(61, 84, 118, 0.5);
}

.volunteer-form textarea {
  resize: vertical;
}

.volunteer-form__notes-wrap {
  gap: 0.25rem;
}

.volunteer-form__counter {
  display: block;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.volunteer-form__counter.is-at-limit {
  color: var(--fwv-orange);
}

@media (max-width: 959px) {
  .volunteer-form input,
  .volunteer-form select,
  .volunteer-form textarea {
    font-size: 16px;
  }
}

.volunteer-form__status {
  margin: 0.2rem 0 0;
  font-weight: 600;
  color: var(--text-soft);
}

/* Wrapper + overflow:hidden keeps avatars circular on mobile Safari (img border-radius alone is flaky). */
.team-card__photo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.mission-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer-heading--spaced {
  margin-top: 1.25rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card .social-links {
  align-items: center;
}

.contact-card .social-link {
  justify-content: center;
}

.social-links--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  color: var(--fwv-blue);
}

.social-icon {
  flex-shrink: 0;
  display: block;
}

.site-footer .social-link {
  color: inherit;
}

.footer-tagline {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

.footer-address {
  margin: 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-heading {
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

.footer-list li {
  margin-bottom: 0.35rem;
}

/* —— Nonprofit visual polish (trustworthy + warm) —— */
body {
  background:
    radial-gradient(ellipse 90% 50% at 15% -10%, rgba(83, 113, 43, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(230, 137, 60, 0.11) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(61, 84, 118, 0.08) 0%, transparent 45%),
    linear-gradient(168deg, #faf7f2 0%, #f5f8fc 38%, #fdf9f4 100%);
}

.hero {
  box-shadow: inset 0 -80px 120px rgba(0, 0, 0, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero h1 {
  text-wrap: balance;
  letter-spacing: 0.01em;
}

.hero p.lead {
  max-width: 42ch;
}

.mission-section {
  background:
    linear-gradient(180deg, rgba(83, 113, 43, 0.14) 0%, rgba(230, 137, 60, 0.06) 42%, rgba(83, 113, 43, 0.04) 100%);
  border-bottom-color: rgba(61, 84, 118, 0.12);
}

#mission-faq {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.shared-living-details {
  text-align: left;
  margin: 0.15rem auto 0;
  max-width: 28rem;
}

.donation-list.shared-living-details {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.3;
  font-size: 1.02rem;
}

.donation-list.shared-living-details li {
  margin-bottom: 0;
}

.mission-statement {
  font-size: 1.17rem;
}

.button {
  border-radius: 999px;
  padding-inline: 1.7rem;
}

.button.button--lg {
  padding-inline: 2rem;
}

.news-showcase h2,
.priorities h2,
.impact h2,
.stock-gallery h2,
.mission-section h2,
#mission-faq h2,
.text-band h2 {
  position: relative;
  display: inline-block;
}

.news-showcase h2::after,
.priorities h2::after,
.impact h2::after,
.stock-gallery h2::after,
.mission-section h2::after,
#mission-faq h2::after,
.text-band h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 68%;
  height: 4px;
  background: linear-gradient(90deg, var(--fwv-orange) 0%, rgba(230, 137, 60, 0.1) 100%);
  border-radius: 999px;
}

.news-grid,
.photo-pair,
.location-cards,
.priorities-grid,
.contact-cards {
  gap: 1.15rem;
}

.news-card,
.priority-card,
.contact-card,
.location-card,
.faq-panel {
  border-radius: 10px;
}

.news-card {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.news-card::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 38%,
    rgba(0, 0, 0, 0.44) 66%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.faq-panel {
  border: 1px solid rgba(61, 84, 118, 0.18);
  background:
    linear-gradient(160deg, #f9fbfd 0%, #f2f6fb 100%);
}

.text-band {
  overflow: hidden;
}

.text-band::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -110px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.why-donate-text strong {
  color: var(--fwv-green);
}

.contact-card {
  border: 1px solid rgba(61, 84, 118, 0.12);
}

.footer-meta {
  opacity: 0.92;
}

/* —— Mobile responsiveness pass —— */
@media (max-width: 959px) {
  body {
    overscroll-behavior-y: none;
  }

  /*
   * Hero / mastheads can use z-index > 2000 for paint order (e.g. home hero over glass bar).
   * The nav drawer lives inside #header, so the header’s stacking context must sit above main
   * or the open menu looks “broken” / invisible (especially ~782–959px, e.g. phone landscape).
   */
  #header {
    z-index: 3000;
    /*
     * iOS/WebKit: backdrop-filter on an ancestor creates a containing block, so position:fixed
     * children (the nav drawer) are laid out and clipped to the short header strip instead of
     * the viewport — the menu “flashes” or looks stuck hidden. Use a solid bar on small screens.
     */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: #ffffff;
    /* Stable bar: no animated shadow/background that reads as the header shrinking while scrolling */
    transition: none;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(61, 84, 118, 0.12);
    /* Min height only: max-height + URL-bar math caused visible jitter; overflow stays visible */
    min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  #header.is-scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(61, 84, 118, 0.12);
  }

  :root {
    --header-h: 52px;
  }

  html {
    --site-header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    scroll-padding-top: var(--site-header-offset);
    scroll-behavior: auto;
  }

  /*
   * Hero defaults use 90dvh — on iOS/Android the dynamic viewport height changes as the URL bar
   * shows/hides, so the hero (especially home) reflows and the line under the fixed header “moves”.
   * svh = stable small viewport; does not resize during that chrome animation.
   */
  .hero {
    min-height: min(600px, 90vh);
    min-height: min(600px, 90svh);
  }

  .header-inner {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: var(--header-h);
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(4.25rem, calc(0.85rem + 44px + env(safe-area-inset-right, 0px)));
    align-items: center;
  }

  body:not(.page-home) .header-inner {
    justify-content: flex-start;
  }

  .page-home .header-inner {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    justify-content: flex-end;
  }

  #header .logo-image-wrap {
    width: 58px;
    max-width: 58px;
    height: calc(var(--header-h) - 8px);
  }

  .nav-toggle {
    position: absolute;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-width: 2px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Stay above .primary-wrap (z-index 2100) so taps always hit the button, never the drawer layer */
    z-index: 2201;
  }

  .nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  .primary-wrap {
    position: fixed;
    inset-inline: 0;
    left: 0;
    right: 0;
    top: var(--site-header-offset);
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: var(--header-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
  }

  /* “I need help” flush under the glass bar border; match .header-inner horizontal inset */
  .primary-wrap > .header-actions {
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
    padding: 0.45rem max(1rem, env(safe-area-inset-left, 0px)) 0.55rem max(1rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Nav fills remaining height; scroll here so last items’ submenus aren’t clipped */
  .primary-wrap > .primary-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.45rem max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .header-actions-main {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .header-actions .help-link {
    font-size: 0.82rem;
  }

  .primary-menu a {
    font-size: 0.98rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    white-space: normal;
    word-break: break-word;
  }

  /*
   * Grid row: label + chevron share one row (no float — float caused overlapping taps / wrong submenu).
   * Submenu spans full width on the next row.
   */
  .primary-menu > ul > li.has-sub {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.35rem;
    width: 100%;
    margin: 0.35rem 0;
  }

  .primary-menu > ul > li.has-sub.is-open-sub {
    z-index: 2;
  }

  .has-sub > a {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 100%;
    padding: 0.45rem 0;
    margin: 0;
    vertical-align: unset;
  }

  .has-sub > .submenu-toggle {
    grid-column: 2;
    grid-row: 1;
    float: none;
    margin: 0;
    align-self: center;
    justify-self: end;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .has-sub > .sub-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0.25rem 0 0;
    padding-left: 0.35rem;
    box-sizing: border-box;
  }

  .sub-menu li {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .standard-width {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 1.1rem 1rem 1.6rem;
  }

  body.page-home .hero__content {
    padding-top: 0.4rem;
  }

  body.page-home .hero__logo.logo-image-wrap {
    width: 118px;
    max-width: min(118px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.08;
  }

  .hero p.lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .button,
  .button.button--lg {
    width: 100%;
    max-width: 100%;
    padding-inline: 1.2rem;
  }

  .section-intro,
  .why-donate-text,
  .impact-intro {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .news-showcase,
  .priorities,
  .impact,
  .stock-gallery,
  .mission-section,
  #mission-faq {
    padding-top: 2rem;
    padding-bottom: 1.6rem;
  }

  .news-showcase h2,
  .priorities h2,
  .impact h2,
  .stock-gallery h2,
  .mission-section h2,
  #mission-faq h2,
  .text-band h2 {
    font-size: 1.55rem;
  }

  .news-card {
    min-height: 230px;
  }

  .news-card img {
    min-height: 230px;
  }

  .news-card a {
    font-size: 1.05rem;
    padding: 1rem;
  }

  .donation-list {
    font-size: 0.98rem;
    padding-left: 1rem;
  }

  .faq-panel {
    margin-top: 1.3rem;
    padding: 1rem 0.85rem;
  }

  .faq-item summary {
    font-size: 0.95rem;
  }

  .text-band__copy {
    padding: 1.5rem 1rem;
  }

  .location-card {
    padding: 0.9rem 1rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .contact-card--wide:has(.shared-living-details) {
    padding: 0.65rem 0.85rem;
  }
}

/* --- Digital business card (business_card.php) --- */
body.page-business-card {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 237, 244, 0.9), transparent 55%),
    linear-gradient(165deg, #e4e9f0 0%, #dce3ed 50%, #e6ecf4 100%);
}

body.page-business-card .business-card-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 2.75rem) 1rem clamp(2.5rem, 8vh, 4rem);
  min-height: calc(100dvh - var(--site-header-offset) - 5.5rem);
}

body.page-business-card .business-card-stage {
  perspective: 800px;
}

body.page-business-card .business-card-directory {
  box-sizing: border-box;
  width: min(100%, 24rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 1.6rem);
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 55%, #f4f6f8 100%);
  border: 1px solid rgba(61, 84, 118, 0.14);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 1px 2px rgba(40, 40, 40, 0.04),
    0 10px 28px rgba(61, 84, 118, 0.14),
    0 24px 48px rgba(40, 40, 40, 0.08);
}

body.page-business-card .business-card-directory__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--fwv-blue);
  text-align: center;
}

body.page-business-card .business-card-directory__intro {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
}

body.page-business-card .business-card-directory__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.page-business-card .business-card-directory__item {
  margin: 0;
}

body.page-business-card .business-card-directory__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 84, 118, 0.1);
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition:
    border-color var(--t-fast) var(--ease-soft),
    box-shadow var(--t-fast) var(--ease-soft);
}

body.page-business-card .business-card-directory__thumb.team-card__photo-wrap {
  width: 52px;
  height: 52px;
  margin: 0;
  flex-shrink: 0;
}

body.page-business-card .business-card-directory__text {
  min-width: 0;
  flex: 1;
}

body.page-business-card .business-card-directory__link:hover {
  border-color: rgba(61, 84, 118, 0.22);
  box-shadow: 0 4px 14px rgba(61, 84, 118, 0.1);
}

body.page-business-card .business-card-directory__link:hover .business-card-directory__name {
  color: var(--fwv-orange);
}

body.page-business-card .business-card-directory__name {
  display: block;
  font-weight: 700;
  color: var(--fwv-blue);
}

body.page-business-card .business-card-directory__role {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
  font-weight: 500;
}

body.page-business-card .business-card-mini {
  position: relative;
  box-sizing: border-box;
  width: min(calc(100vw - 1.25rem), 30rem);
  max-width: 30rem;
  aspect-ratio: 3.5 / 2;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #fdfcfa 0%, #f7f5f2 48%, #efede9 100%);
  border: 1px solid rgba(40, 40, 40, 0.16);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.06);
  transform: rotateX(1deg);
  transform-style: preserve-3d;
  overflow: hidden;
}

body.page-business-card .business-card-mini--message {
  aspect-ratio: auto;
  min-height: 10rem;
  width: min(100%, 22.5rem);
  padding: 1.25rem 1rem;
  justify-content: center;
  gap: 0.75rem;
  transform: rotateX(1deg);
  text-align: center;
}

body.page-business-card .business-card-mini__message {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fwv-blue);
}

body.page-business-card .business-card-mini__message-actions {
  margin: 0;
  font-size: 0.9rem;
}

body.page-business-card .business-card-mini__message-actions a {
  font-weight: 600;
}

body.page-business-card .business-card-mini__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, var(--fwv-orange) 0%, #c96a24 100%);
}

body.page-business-card .business-card-mini__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.44rem 0.55rem 0.38rem 0.62rem;
  padding-left: calc(0.62rem + 4px);
}

body.page-business-card .business-card-mini__brand {
  margin: 0 0 0.28rem;
  padding-bottom: 0.24rem;
  border-bottom: 1px solid rgba(61, 84, 118, 0.2);
  font-size: clamp(0.68rem, 1.55vw + 0.36rem, 0.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  color: #1a2b3d;
}

body.page-business-card .business-card-mini__grid {
  display: grid;
  grid-template-columns: 6.35rem minmax(0, 1fr);
  gap: 0.36rem 0.48rem;
  align-items: center;
  flex: 1;
  min-height: 0;
}

body.page-business-card .business-card-mini__aside {
  display: flex;
  justify-content: center;
  align-self: center;
}

body.page-business-card .business-card-mini__photo-wrap.team-card__photo-wrap {
  width: 6rem;
  height: 6rem;
  margin: 0;
}

body.page-business-card .business-card-mini__main {
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
}

body.page-business-card .business-card-mini__identity {
  margin-bottom: 0.55rem;
}

body.page-business-card .business-card-mini__name {
  margin: 0;
  padding: 0;
  font-size: clamp(1.02rem, 2.05vw + 0.42rem, 1.32rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--fwv-blue);
  overflow-wrap: anywhere;
}

body.page-business-card .business-card-mini__role {
  margin: 0.14rem 0 0;
  font-size: clamp(0.78rem, 1.25vw + 0.38rem, 0.92rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--fwv-orange);
  overflow-wrap: anywhere;
}

body.page-business-card .business-card-mini__details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

body.page-business-card .business-card-mini__row {
  display: grid;
  grid-template-columns: 2.95rem minmax(0, 1fr);
  gap: 0.16rem 0.38rem;
  align-items: start;
  font-size: clamp(0.72rem, 1.15vw + 0.32rem, 0.88rem);
  line-height: 1.28;
}

body.page-business-card .business-card-mini__row dt {
  margin: 0;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  padding-top: 0.08rem;
}

body.page-business-card .business-card-mini__row dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

body.page-business-card .business-card-mini__row a {
  font-weight: 600;
}

body.page-business-card .business-card-mini__address {
  line-height: 1.3;
  color: var(--text-soft);
  font-weight: 500;
}

body.page-business-card .business-card-mini__share {
  margin: 0.18rem 0 0;
  padding-top: 0.18rem;
  border-top: 1px solid rgba(61, 84, 118, 0.12);
  font-size: 0.68rem;
  line-height: 1.22;
  word-break: break-all;
}

body.page-business-card .business-card-mini__share a {
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(61, 84, 118, 0.25);
  text-underline-offset: 1px;
}

body.page-business-card .business-card-mini__share a:hover {
  color: var(--fwv-blue);
  text-decoration-color: rgba(61, 84, 118, 0.45);
}

@media (max-width: 520px) {
  body.page-business-card .business-card-mini:not(.business-card-mini--message) {
    aspect-ratio: auto;
    width: min(100%, 27rem);
    max-width: 27rem;
  }

  body.page-business-card .business-card-mini__grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    text-align: center;
  }

  body.page-business-card .business-card-mini__main {
    text-align: center;
  }

  body.page-business-card .business-card-mini__row {
    grid-template-columns: 1fr;
    gap: 0.06rem;
    text-align: center;
  }

  body.page-business-card .business-card-mini__row dt {
    text-align: center;
    padding-top: 0;
  }
}

@media (max-width: 380px) {
  body.page-business-card .business-card-mini__row {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-business-card .business-card-mini,
  body.page-business-card .business-card-mini--message {
    transform: none;
  }
}
