/*
 * PHRO responsive compatibility layer.
 *
 * The project contains a compiled production bundle rather than the original
 * Tailwind source. Keep mobile and late-added page fixes here so they load
 * after both the compiled stylesheet and the legacy inline overrides.
 */

:root {
  --phro-mobile-gutter: clamp(0.75rem, 4vw, 1.25rem);
  --primary: 213 80% 47%;
}

.phro-site-footer .text-primary-foreground\/40,
.phro-site-footer .text-primary-foreground\/50 {
  color: hsl(var(--primary-foreground) / 0.7) !important;
}

.legal-section-summary {
  color: #4b5563 !important;
}

.legal-member-role {
  color: hsl(213 80% 40%) !important;
}

.legal-member-experience {
  color: #8a560b !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 280px;
}

img,
video,
canvas {
  max-width: 100%;
}

#root .grid > *,
#root .flex > * {
  min-width: 0;
}

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

/* Utilities referenced by the late-added Careers and Legal pages but absent
   from the compiled Tailwind stylesheet. */
.pt-36 {
  padding-top: 9rem;
}

.pb-24 {
  padding-bottom: 6rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.h-56 {
  height: 14rem;
}

.h-80 {
  height: 20rem;
}

.min-h-\[320px\] {
  min-height: 320px;
}

.max-h-\[90vh\] {
  max-height: 90vh;
}

.max-w-xl {
  max-width: 36rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-30 {
  opacity: 0.3;
}

.z-\[100\] {
  z-index: 100;
}

.bg-muted\/30 {
  background-color: hsl(var(--muted) / 0.3);
}

.bg-muted\/40 {
  background-color: hsl(var(--muted) / 0.4);
}

.from-navy {
  --tw-gradient-from: hsl(var(--navy)) var(--tw-gradient-from-position);
  --tw-gradient-to: hsl(var(--navy) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-navy\/80 {
  --tw-gradient-to: hsl(var(--navy) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--navy) / 0.8) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.via-navy\/85 {
  --tw-gradient-to: hsl(var(--navy) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--navy) / 0.85) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.space-y-12 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(3rem * (1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(3rem * var(--tw-space-y-reverse));
}

@media (min-width: 768px) {
  .md\:p-12 {
    padding: 3rem;
  }
}

/* Late-added feature heroes need explicit spacing because pt-36/pb-24 were
   not present in the original CSS build. */
.phro-feature-hero {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.phro-feature-hero > img {
  opacity: 0.28;
}

/* Keep homepage slideshow photography clear while retaining just enough
   contrast behind the floating header controls and bottom statistics. */
.phro-home-hero__overlay {
  background: linear-gradient(
    to bottom,
    hsl(var(--navy) / 0.12) 0%,
    hsl(var(--navy) / 0.02) 48%,
    hsl(var(--navy) / 0.18) 100%
  );
}

/* Fundraiser and Volunteer heroes: show natural image colors without navy tint. */
.phro-feature-hero > img.phro-untinted-hero-image,
.legal-advisory-hero > img.phro-untinted-hero-image {
  opacity: 1 !important;
  filter: none !important;
}

/* Legal Advisory hero: neutral contrast without the previous navy tint. */
.phro-legal-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.14) 50%,
    rgba(0, 0, 0, 0.26) 100%
  );
}

.phro-neutral-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.34) 48%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

.phro-feature-hero > .relative.container > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

.phro-modal-backdrop {
  z-index: 100;
}

.phro-modal-panel,
.phro-profile-modal {
  overscroll-behavior: contain;
}

/* Keep a 44px pointer target while drawing the visual indicator inside it. */
.phro-carousel-dot {
  position: relative;
  width: 2.75rem !important;
  min-width: 2.75rem;
  height: 2.75rem !important;
  min-height: 2.75rem;
  border-radius: 9999px !important;
  background: transparent !important;
}

.phro-carousel-dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary-foreground) / 0.48);
  content: "";
  transform: translate(-50%, -50%);
  transition: width 180ms ease, background-color 180ms ease;
}

.phro-carousel-dot[aria-current="true"]::after {
  width: 1.25rem;
  background: hsl(var(--primary-foreground));
}

@media (max-width: 1023px) {
  .phro-site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .phro-site-header .container,
  .phro-sticky-nav .container {
    padding-left: var(--phro-mobile-gutter) !important;
    padding-right: var(--phro-mobile-gutter) !important;
  }

  .phro-site-header .phro-brand img {
    width: auto;
    height: clamp(3.75rem, 20vw, 5rem) !important;
  }

  .phro-site-header .phro-brand {
    max-width: calc(100% - 4rem);
    padding: 0.3rem 0.45rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
  }

  .phro-menu-toggle,
  .phro-mobile-menu-close {
    display: inline-flex;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: hsl(var(--foreground)) !important;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.16);
  }

  .phro-sticky-nav {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .phro-mobile-menu {
    height: 100vh;
    height: 100dvh;
  }

  .phro-mobile-menu-panel {
    top: 0 !important;
    bottom: auto !important;
    width: min(88vw, 20rem) !important;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    padding-top: calc(4.75rem + env(safe-area-inset-top, 0px)) !important;
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: 1.25rem !important;
    overscroll-behavior: contain;
  }

  .phro-mobile-menu-close {
    top: calc(1rem + env(safe-area-inset-top, 0px)) !important;
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
  }

  .phro-mobile-menu-link,
  .phro-mobile-submenu-link,
  .phro-mobile-menu-panel .mt-5 a {
    display: flex !important;
    min-height: 2.75rem;
    align-items: center;
  }

  .phro-mobile-submenu {
    margin: -0.125rem 0 0.375rem;
    padding-left: 0.75rem;
    border-left: 2px solid hsl(var(--primary) / 0.25);
  }

  .phro-mobile-submenu-link {
    padding: 0.625rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.045em;
  }

  /* Detail pages keep their imagery while allowing long titles and summaries
     to determine a safe mobile/tablet height below the absolute header. */
  .phro-detail-hero {
    height: auto !important;
    min-height: clamp(24rem, 68svh, 34rem);
  }

  .phro-detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .phro-detail-hero > img[src*="-optimized.jpg"] {
    object-position: 66% center;
  }

  .phro-detail-hero__content {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    min-height: inherit;
    z-index: 2;
    padding: calc(7rem + env(safe-area-inset-top, 0px)) var(--phro-mobile-gutter) 3rem !important;
  }

  .phro-detail-hero h1 {
    max-width: 52rem;
    font-size: clamp(1.9rem, 7vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }

  .phro-detail-hero p {
    max-width: 42rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.55;
  }

  .phro-feature-hero {
    padding: calc(7.5rem + env(safe-area-inset-top, 0px)) var(--phro-mobile-gutter) 4rem !important;
  }

  .phro-feature-hero h1 {
    font-size: clamp(2rem, 7vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }

  .phro-profile-header {
    padding-top: calc(7rem + env(safe-area-inset-top, 0px)) !important;
  }

  /* Keep phone and tablet form controls readable and prevent Safari focus zoom. */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    max-width: 100%;
    font-size: 16px !important;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  button[type="submit"] {
    min-height: 2.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .phro-team-grid > .phro-team-card {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
  }

  main,
  section,
  footer,
  .min-h-screen {
    max-width: 100%;
  }

  section .max-w-6xl {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    padding-left: var(--phro-mobile-gutter) !important;
    padding-right: var(--phro-mobile-gutter) !important;
  }

  .container {
    max-width: 100%;
  }

  .min-h-screen > section.py-20,
  .min-h-screen > div.py-20,
  section.py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .min-h-screen [class~="gap-16"] {
    gap: 2rem !important;
  }

  .min-h-screen > .bg-navy.text-center {
    padding-left: var(--phro-mobile-gutter);
    padding-right: var(--phro-mobile-gutter);
  }

  .min-h-screen > .bg-navy.text-center h1 {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
    line-height: 1.1 !important;
  }

  /* Home hero */
  .phro-home-hero {
    height: 100svh !important;
    height: 100dvh !important;
    min-height: 35rem;
  }

  .phro-home-hero__image {
    object-position: 66% center;
  }

  .phro-home-hero__content {
    padding-top: calc(5rem + env(safe-area-inset-top, 0px)) !important;
    padding-right: var(--phro-mobile-gutter) !important;
    padding-bottom: 10rem !important;
    padding-left: var(--phro-mobile-gutter) !important;
  }

  .phro-home-hero__content h2 {
    max-width: 31rem;
    font-size: clamp(0.95rem, 4.7vw, 1.25rem) !important;
    line-height: 1.3;
  }

  .phro-home-hero__content h1 {
    max-width: 31rem;
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.02 !important;
  }

  .phro-carousel-controls {
    bottom: calc(10.25rem + env(safe-area-inset-bottom, 0px)) !important;
    gap: 0 !important;
    align-items: center;
    justify-content: center;
  }

  .phro-carousel-dot {
    position: relative;
    width: 2.75rem !important;
    min-width: 2.75rem;
    height: 2.75rem !important;
    min-height: 2.75rem;
    border-radius: 9999px !important;
    background: transparent !important;
  }

  .phro-carousel-dot::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: hsl(var(--primary-foreground) / 0.48);
    content: "";
    transform: translate(-50%, -50%);
    transition: width 180ms ease, background-color 180ms ease;
  }

  .phro-carousel-dot[aria-current="true"]::after {
    width: 1.25rem;
    background: hsl(var(--primary-foreground));
  }

  .phro-hero-stats > :nth-child(odd) {
    border-left-width: 0 !important;
  }

  .phro-hero-stats > :nth-child(n + 3) {
    border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
  }

  .phro-hero-stats > div {
    min-height: 5rem;
    padding-right: 0.35rem;
    padding-left: 0.35rem;
  }

  .phro-hero-stats p {
    overflow-wrap: normal;
  }

  /* Home content */
  .phro-mission-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .phro-program-card__body {
    padding: 1.25rem !important;
  }

  .phro-program-card img {
    height: clamp(12rem, 62vw, 16rem) !important;
  }

  .phro-program-card .flex.gap-8 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem !important;
  }

  /* Team hierarchy */
  .phro-team-card {
    min-width: 0 !important;
    max-width: 100%;
  }

  .phro-team-pair {
    gap: 0.75rem !important;
    align-items: stretch;
  }

  .phro-team-pair > .phro-team-card {
    width: calc(50% - 0.375rem) !important;
    flex: 0 1 calc(50% - 0.375rem);
  }

  .phro-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .phro-team-grid > .phro-team-card {
    width: 100% !important;
  }

  textarea {
    min-height: 7rem;
  }

  .rounded-3xl:has(form),
  .rounded-2xl:has(form) {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .phro-detail-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
  }

  .phro-detail-stats > div {
    min-width: 0;
    padding: 1rem !important;
  }

  .phro-detail-stats span {
    font-size: clamp(1.4rem, 7vw, 1.875rem) !important;
    overflow-wrap: anywhere;
  }

  /* Restore the intended horizontally-scrollable profile tabs. The older
     inline mobile patch converted every matching strip into a 2-column grid. */
  section .max-w-6xl .rounded-2xl.border > .phro-profile-tabs {
    display: flex !important;
    grid-template-columns: none !important;
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  section .max-w-6xl .rounded-2xl.border > .phro-profile-tabs > button {
    width: auto !important;
    min-width: max-content !important;
    min-height: 2.75rem;
    flex: 0 0 auto !important;
    padding: 0.75rem 1rem !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }

  .phro-profile-tabs + div .overflow-x-auto {
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .phro-profile-tabs + div table {
    min-width: 36rem;
  }

  /* Dialogs fit short screens and respect notches/home indicators. */
  .phro-modal-backdrop,
  .phro-profile-modal-backdrop {
    align-items: center !important;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
  }

  .phro-modal-panel,
  .phro-profile-modal {
    width: 100%;
    max-height: calc(100vh - 1.5rem) !important;
    max-height: calc(100dvh - 1.5rem) !important;
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .phro-modal-close,
  .phro-profile-modal-close,
  .phro-profile-photo-button {
    display: inline-flex;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    flex: 0 0 2.75rem !important;
    align-items: center;
    justify-content: center;
  }

  /* A single, consistent left alignment is easier to scan on narrow screens. */
  footer.bg-navy .footer-align-grid {
    justify-items: stretch !important;
    text-align: left !important;
  }

  footer.bg-navy .footer-align-col,
  footer.bg-navy .footer-align-grid > .footer-align-col:nth-child(2) {
    width: 100%;
    align-items: flex-start !important;
  }

  footer.bg-navy .footer-align-col:first-child > div:first-child,
  footer.bg-navy .footer-align-col:nth-child(3) .footer-align-bottom > div,
  footer.bg-navy .footer-align-col:nth-child(4) .footer-align-bottom {
    justify-content: flex-start !important;
  }

  footer.bg-navy .footer-align-col:first-child p {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  footer.bg-navy .footer-align-bottom {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  footer.bg-navy .footer-align-col a {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  footer.bg-navy .border-t > div,
  footer.bg-navy .border-t {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left;
  }

  footer.bg-navy .phro-footer-social {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }
}

@media (max-width: 359px) {
  .phro-team-pair {
    flex-direction: column;
    align-items: center;
  }

  .phro-team-pair > .phro-team-card,
  .phro-team-grid > .phro-team-card {
    width: min(100%, 15rem) !important;
    flex-basis: auto;
  }

  .phro-team-grid {
    width: min(100%, 15rem);
    grid-template-columns: minmax(0, 1fr) !important;
    margin-right: auto;
    margin-left: auto;
  }

  .phro-auth-providers {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .phro-feature-hero h1,
  .phro-detail-hero h1 {
    font-size: 1.875rem !important;
  }
}

@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  .phro-home-hero::after,
  .phro-detail-hero--embedded-copy::after {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      hsl(var(--navy)) 0%,
      hsl(var(--navy)) 46%,
      hsl(var(--navy) / 0.96) 54%,
      hsl(var(--navy) / 0.7) 63%,
      transparent 78%
    );
    content: "";
  }

  .phro-home-hero__content,
  .phro-detail-hero__content {
    z-index: 10;
  }

  .phro-site-header .phro-brand img {
    height: 3.25rem !important;
  }

  .phro-home-hero {
    min-height: 25rem;
  }

  .phro-home-hero__content {
    padding-top: 3.5rem !important;
    padding-bottom: 4rem !important;
  }

  .phro-home-hero__content h2 {
    font-size: 1rem !important;
  }

  .phro-home-hero__content h1 {
    font-size: 2.25rem !important;
  }

  .phro-carousel-controls {
    bottom: 6.5rem !important;
    z-index: 15;
  }

  .phro-detail-hero {
    min-height: 24rem;
  }

  .phro-detail-hero__content {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }

  .phro-feature-hero {
    padding-top: 5.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

.phro-program-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.phro-program-focus-list > span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.16);
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.07);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Success Story cards share one stable layout across home and listing pages. */
.phro-story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.phro-story-card > div:first-child {
  flex: 0 0 auto;
}

.phro-story-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.phro-story-card__body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.phro-story-card__body a {
  margin-top: auto;
  padding-top: 1rem;
}

.phro-story-card-badge {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  max-width: calc(100% - 1.5rem);
  min-height: 1.8rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 9999px;
  background: hsl(var(--navy) / 0.9);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.15;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Reusable, content-rich Program / Event / Success Story detail pages. */
.phro-full-detail {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.phro-full-detail-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 38rem;
  align-items: center;
  overflow: hidden;
  background: hsl(var(--navy));
}

.phro-full-detail-hero > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.phro-full-detail-hero__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    hsl(var(--navy)) 0%,
    hsl(var(--navy)) 64%,
    hsl(var(--navy) / 0.99) 72%,
    hsl(var(--navy) / 0.76) 86%,
    hsl(var(--navy) / 0.42) 100%
  );
}

.phro-full-detail-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 13rem 1.5rem 7rem;
  text-align: left;
}

.phro-full-detail-badge {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--accent) / 0.6);
  border-radius: 9999px;
  background: hsl(var(--navy) / 0.72);
  color: hsl(var(--accent));
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phro-full-detail-hero h1 {
  max-width: 48rem;
  color: hsl(var(--primary-foreground));
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 0.2rem 1.25rem rgba(0, 0, 0, 0.72);
}

.phro-full-detail-hero__content > p {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: hsl(var(--primary-foreground) / 0.86);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  text-shadow: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.9);
}

.phro-full-detail-main {
  padding: 4.5rem 0 6rem;
}

.phro-full-detail-container {
  width: min(calc(100% - 2rem), 72rem);
  margin: 0 auto;
}

.phro-full-detail-back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-bottom: 2rem;
  color: hsl(var(--primary));
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.phro-full-detail-back:hover {
  text-decoration: underline;
}

.phro-full-detail-overview,
.phro-full-detail-content-card {
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  background: hsl(var(--card));
  box-shadow: 0 1rem 3rem rgba(10, 19, 31, 0.07);
}

.phro-full-detail-overview {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.phro-full-detail-eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phro-full-detail-overview h2,
.phro-full-detail-section-heading h2,
.phro-full-detail-content-card h2,
.phro-full-detail-goal h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
}

.phro-full-detail-overview h2,
.phro-full-detail-section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.phro-full-detail-prose {
  display: grid;
  max-width: 58rem;
  gap: 1rem;
  margin-top: 1.25rem;
}

.phro-full-detail-prose p,
.phro-full-detail-content-card p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.8;
}

.phro-full-detail-key-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.phro-full-detail-key-card {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid hsl(var(--primary) / 0.18);
  border-radius: 1.15rem;
  background: hsl(var(--primary) / 0.06);
}

.phro-full-detail-key-card span {
  color: hsl(var(--foreground) / 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phro-full-detail-key-card strong {
  margin-top: 0.4rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.4;
}

.phro-full-detail-focus {
  margin-top: 3rem;
}

.phro-full-detail-focus ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phro-full-detail-focus li {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid hsl(var(--primary) / 0.16);
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.06);
  color: hsl(var(--foreground));
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.phro-full-detail-impact,
.phro-full-detail-related {
  margin-top: 4rem;
}

.phro-full-detail-section-heading {
  margin-bottom: 1.5rem;
}

.phro-full-detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
}

.phro-full-detail-stat-card {
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1.35rem;
  background: hsl(var(--navy));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1rem 2.5rem rgba(10, 19, 31, 0.16);
}

.phro-full-detail-stat-card strong {
  color: hsl(var(--accent));
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.phro-full-detail-stat-card span {
  margin-top: 0.65rem;
  color: hsl(var(--primary-foreground) / 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.phro-full-detail-sections {
  display: grid;
  gap: 1.25rem;
  margin-top: 4rem;
}

.phro-full-detail-content-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}

.phro-full-detail-section-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: hsl(var(--primary) / 0.8);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.phro-full-detail-content-card h2 {
  position: relative;
  max-width: calc(100% - 4rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.phro-full-detail-content-card p + p {
  margin-top: 0.9rem;
}

.phro-full-detail-content-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.phro-full-detail-content-card li {
  position: relative;
  min-width: 0;
  padding: 0.8rem 0.9rem 0.8rem 2rem;
  border-radius: 0.85rem;
  background: hsl(var(--muted) / 0.55);
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  line-height: 1.45;
}

.phro-full-detail-content-card li::before {
  position: absolute;
  top: 0.85rem;
  left: 0.8rem;
  color: hsl(var(--primary));
  font-weight: 900;
  content: "✓";
}

.phro-full-detail-goal {
  margin-top: 2rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, hsl(var(--navy)), hsl(var(--primary) / 0.88));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1.25rem 3rem rgba(10, 19, 31, 0.2);
}

.phro-full-detail-goal > span {
  display: block;
  margin-bottom: 0.75rem;
  color: hsl(var(--accent));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phro-full-detail-goal h2 {
  max-width: 58rem;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.35;
}

.phro-full-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.phro-full-detail-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1.35rem;
  background: hsl(var(--card));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0.75rem 2rem rgba(10, 19, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.phro-full-detail-related-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2.5rem rgba(10, 19, 31, 0.14);
}

.phro-full-detail-related-image {
  position: relative;
  height: 11rem;
  overflow: hidden;
  background: hsl(var(--navy));
}

.phro-full-detail-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.phro-full-detail-related-card:hover img {
  transform: scale(1.04);
}

.phro-full-detail-related-image > span {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  background: hsl(var(--navy) / 0.88);
  color: hsl(var(--primary-foreground));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phro-full-detail-related-copy {
  padding: 1.25rem;
}

.phro-full-detail-related-copy h3 {
  color: hsl(var(--foreground));
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.phro-full-detail-related-copy p {
  display: -webkit-box;
  margin-top: 0.6rem;
  overflow: hidden;
  color: hsl(var(--muted-foreground));
  font-size: 0.84rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.phro-full-detail-related-copy > span {
  display: inline-block;
  margin-top: 1rem;
  color: hsl(var(--primary));
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 1023px) {
  .phro-full-detail-hero {
    min-height: 36rem;
  }

  .phro-full-detail-hero__content {
    padding-top: calc(8rem + env(safe-area-inset-top, 0px));
    padding-bottom: 4.5rem;
  }

  .phro-full-detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phro-full-detail-focus ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .phro-full-detail-hero {
    min-height: 35.5rem;
    align-items: flex-end;
  }

  .phro-full-detail-hero__overlay {
    background: linear-gradient(
      180deg,
      hsl(var(--navy) / 0.5) 0%,
      hsl(var(--navy) / 0.82) 28%,
      hsl(var(--navy)) 48%,
      hsl(var(--navy)) 100%
    );
  }

  .phro-full-detail-hero__content {
    padding: calc(7rem + env(safe-area-inset-top, 0px)) 1rem 3rem;
    text-align: center;
  }

  .phro-full-detail-badge {
    justify-content: center;
    max-width: 100%;
    font-size: 0.68rem;
    text-align: center;
  }

  .phro-full-detail-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.25rem);
    line-height: 1.05;
  }

  .phro-full-detail-hero__content > p {
    max-width: 34rem;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .phro-full-detail-main {
    padding: 2rem 0 4rem;
  }

  .phro-full-detail-container {
    width: min(calc(100% - 1.5rem), 72rem);
  }

  .phro-full-detail-overview,
  .phro-full-detail-content-card {
    border-radius: 1.1rem;
  }

  .phro-full-detail-key-info,
  .phro-full-detail-stat-grid,
  .phro-full-detail-related-grid,
  .phro-full-detail-focus ul {
    grid-template-columns: 1fr;
  }

  .phro-full-detail-key-card {
    min-height: 5.75rem;
  }

  .phro-full-detail-impact,
  .phro-full-detail-sections,
  .phro-full-detail-related {
    margin-top: 2.75rem;
  }

  .phro-full-detail-content-card ul {
    grid-template-columns: 1fr;
  }

  .phro-full-detail-section-number {
    top: 1rem;
    right: 1rem;
    font-size: 2.35rem;
  }

  .phro-full-detail-related-image {
    height: 10.5rem;
  }
}

@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  .phro-full-detail-hero {
    min-height: 25rem;
  }

  .phro-full-detail-hero__content {
    padding-top: calc(5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2.5rem;
  }

  .phro-full-detail-hero h1 {
    font-size: clamp(2rem, 7vw, 3.4rem);
  }
}

/* Cause-specific donation selector and accessible form refinements. */
.phro-donate-causes {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 4%, hsl(var(--primary) / 0.1), transparent 26rem),
    radial-gradient(circle at 94% 94%, hsl(var(--accent) / 0.12), transparent 24rem),
    hsl(var(--background));
}

.phro-donate-section-heading {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
}

.phro-donate-eyebrow,
.phro-donate-selection-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: hsl(var(--primary));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.phro-donate-pricing-note {
  width: fit-content;
  max-width: 46rem;
  margin: 1.15rem auto 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid hsl(var(--primary) / 0.18);
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.06);
  color: hsl(var(--foreground) / 0.76);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.phro-donate-cause-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.72fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  width: min(100%, 74rem);
  margin: 0 auto;
}

.phro-donate-accordion {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.phro-donate-category {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1.15rem;
  background: hsl(var(--card));
  box-shadow: 0 0.55rem 1.75rem rgba(10, 25, 46, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.phro-donate-category:hover,
.phro-donate-category[data-open="true"] {
  border-color: hsl(var(--primary) / 0.42);
  box-shadow: 0 0.9rem 2.25rem rgba(10, 25, 46, 0.11);
}

.phro-donate-category[data-open="true"] {
  transform: translateY(-0.08rem);
}

.phro-donate-category-trigger {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) 2.5rem;
  gap: 1rem;
  align-items: center;
  width: 100%;
  min-height: 7rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground));
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.phro-donate-category-trigger:focus-visible,
.phro-donate-project-option:focus-visible,
.phro-donate-selection-cta:focus-visible,
.phro-donate-selection-clear:focus-visible,
.phro-donate-general-link:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.38);
  outline-offset: 3px;
}

.phro-donate-category-image {
  width: 5.75rem;
  height: 5.4rem;
  border-radius: 0.8rem;
  object-fit: cover;
  box-shadow: 0 0.35rem 0.9rem rgba(10, 25, 46, 0.16);
}

.phro-donate-category-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.phro-donate-category-copy strong {
  color: hsl(var(--foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.2;
}

.phro-donate-category-copy > span {
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  line-height: 1.5;
}

.phro-donate-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.09);
  color: hsl(var(--primary));
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease;
}

.phro-donate-category[data-open="true"] .phro-donate-category-toggle {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.phro-donate-category-panel {
  padding: 1.1rem 1.2rem 1.25rem;
  border-top: 1px solid hsl(var(--border));
  background: linear-gradient(180deg, hsl(var(--secondary) / 0.55), hsl(var(--card)));
}

.phro-donate-panel-intro {
  margin-bottom: 0.85rem;
  color: hsl(var(--foreground) / 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.phro-donate-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.phro-donate-project-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 8.4rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.9rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.phro-donate-project-option:hover {
  border-color: hsl(var(--primary) / 0.55);
  transform: translateY(-0.1rem);
  box-shadow: 0 0.55rem 1.25rem rgba(10, 25, 46, 0.08);
}

.phro-donate-project-option[aria-checked="true"] {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.065);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.24);
}

.phro-donate-project-title {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.35;
}

.phro-donate-project-title strong {
  font-size: 0.9rem;
}

.phro-donate-choice-dot {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.2rem;
  border: 2px solid hsl(var(--primary) / 0.55);
  border-radius: 9999px;
  background: hsl(var(--card));
}

.phro-donate-project-option[aria-checked="true"] .phro-donate-choice-dot {
  border: 3px solid hsl(var(--primary));
  background: hsl(var(--primary-foreground));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.14);
}

.phro-donate-project-description {
  margin-top: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.76rem;
  line-height: 1.45;
}

.phro-donate-project-action {
  margin-top: auto;
  padding-top: 0.7rem;
  color: hsl(var(--primary));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.phro-donate-selection {
  position: sticky;
  top: 7.5rem;
  overflow: hidden;
  min-height: 20rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.35rem;
  background: hsl(var(--card));
  box-shadow: 0 1.1rem 3rem rgba(10, 25, 46, 0.13);
}

.phro-donate-selection.is-selected {
  border-color: hsl(var(--primary) / 0.38);
}

.phro-donate-selection-image {
  width: 100%;
  height: 11.25rem;
  object-fit: cover;
}

.phro-donate-selection-body,
.phro-donate-selection-empty {
  padding: 1.5rem;
}

.phro-donate-selection-body h3,
.phro-donate-selection-empty h3 {
  color: hsl(var(--foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.phro-donate-selection-category {
  margin-top: 0.5rem;
  color: hsl(var(--primary));
  font-size: 0.76rem;
  font-weight: 800;
}

.phro-donate-selection-description,
.phro-donate-selection-empty p {
  margin-top: 0.8rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  line-height: 1.6;
}

.phro-donate-selection-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.65rem 1.4rem hsl(var(--destructive) / 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.phro-donate-selection-cta:hover {
  background: #991b1b;
  transform: translateY(-0.12rem);
  box-shadow: 0 0.85rem 1.65rem hsl(var(--destructive) / 0.28);
}

.phro-donate-selection-clear,
.phro-donate-general-link {
  display: block;
  width: fit-content;
  margin: 0.9rem auto 0;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: hsl(var(--primary));
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  cursor: pointer;
}

.phro-donate-selection-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 20rem;
  text-align: center;
}

.phro-donate-selection-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.09);
  color: hsl(var(--primary));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.25rem;
  font-weight: 800;
}

#choose-a-cause,
#donation-form,
#payment-options {
  scroll-margin-top: 6.5rem;
}

#donation-form form {
  align-self: start;
}

.phro-donate-form-selection {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid hsl(var(--primary) / 0.32);
  border-left: 4px solid hsl(var(--primary));
  border-radius: 0.85rem;
  background: hsl(var(--primary) / 0.06);
}

.phro-donate-form-selection > span {
  color: hsl(var(--primary));
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phro-donate-form-selection strong {
  color: hsl(var(--foreground));
  font-size: 0.9rem;
}

.phro-donate-form-selection small {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.phro-donate-amount-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.phro-donate-amount-options > div {
  margin-top: 0.55rem;
}

.phro-donate-field {
  display: grid;
  gap: 0.45rem;
}

.phro-donate-field-label {
  display: block;
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.phro-donate-field input,
.phro-donate-field select,
.phro-donate-field textarea {
  min-height: 3rem;
}

.phro-purpose-other {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin-top: 0.7rem;
  padding: 0.9rem;
  border: 1px solid hsl(var(--primary) / 0.24);
  border-left: 3px solid hsl(var(--primary));
  border-radius: 0.85rem;
  background: hsl(var(--primary) / 0.045);
  animation: phro-purpose-reveal 180ms ease-out both;
}

.phro-purpose-other textarea {
  width: 100%;
  min-width: 0;
  min-height: 5.5rem;
  resize: vertical;
}

.phro-purpose-help,
.phro-purpose-error {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
}

.phro-purpose-help {
  color: hsl(var(--muted-foreground));
}

.phro-purpose-error {
  color: #b91c1c;
  font-weight: 750;
}

@keyframes phro-purpose-reveal {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#donation-form button[type="submit"] {
  background: #b91c1c;
  color: #ffffff;
}

#donation-form button[type="submit"]:hover {
  background: #991b1b;
}

#donation-form p.text-destructive {
  color: #b91c1c;
}

.phro-donate-payment-note {
  max-width: 28rem;
  margin-top: 0.8rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  line-height: 1.55;
}

.phro-donate-payment-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 2px solid hsl(var(--primary));
  border-radius: 9999px;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.phro-donate-payment-contact:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.phro-donate-payment-contact:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.38);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .phro-donate-cause-layout {
    grid-template-columns: 1fr;
    width: min(100%, 50rem);
  }

  .phro-donate-selection {
    position: static;
    order: -1;
    min-height: 0;
  }

  .phro-donate-selection:not(.is-selected) {
    display: none;
  }

  .phro-donate-selection.is-selected > div {
    display: grid;
    grid-template-columns: minmax(11rem, 0.7fr) minmax(0, 1.3fr);
  }

  .phro-donate-selection-image {
    height: 100%;
    min-height: 16rem;
  }
}

@media (max-width: 767px) {
  .phro-donate-causes {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .phro-donate-section-heading {
    margin-bottom: 1.75rem;
  }

  .phro-donate-pricing-note {
    width: 100%;
    border-radius: 0.8rem;
  }

  .phro-donate-category-trigger {
    grid-template-columns: 4.25rem minmax(0, 1fr) 2.25rem;
    gap: 0.75rem;
    min-height: 6.25rem;
    padding: 0.65rem 0.75rem 0.65rem 0.65rem;
  }

  .phro-donate-category-image {
    width: 4.25rem;
    height: 4.65rem;
    border-radius: 0.65rem;
  }

  .phro-donate-category-copy strong {
    font-size: 1rem;
  }

  .phro-donate-category-copy > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.75rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .phro-donate-category-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .phro-donate-category-panel {
    padding: 0.9rem;
  }

  .phro-donate-project-grid {
    grid-template-columns: 1fr;
  }

  .phro-donate-project-option {
    min-height: 7.5rem;
  }

  .phro-donate-selection.is-selected > div {
    display: block;
  }

  .phro-donate-selection-image {
    height: 10.5rem;
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .phro-donate-category-trigger {
    grid-template-columns: minmax(0, 1fr) 2.25rem;
  }

  .phro-donate-category-image {
    display: none;
  }
}

/* Homepage donation spotlight: story, current/future work, amount and QR flow. */
.phro-home-donate {
  --phro-donate-red: #b91c1c;
  --phro-donate-red-dark: #991b1b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  background: hsl(var(--background));
}

.phro-home-donate::before {
  display: none;
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 25rem;
  background-image:
    linear-gradient(hsl(var(--primary-foreground) / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary-foreground) / 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.phro-home-donate__glow {
  display: none;
  position: absolute;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.phro-home-donate__glow--one {
  top: -12rem;
  left: -8rem;
  background: hsl(var(--primary));
}

.phro-home-donate__glow--two {
  top: 2rem;
  right: -12rem;
  background: hsl(var(--accent));
  opacity: 0.1;
}

.phro-home-donate__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
}

.phro-home-donate__heading {
  width: min(100%, 52rem);
  margin: 0 auto;
  text-align: center;
}

.phro-home-donate__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid hsl(var(--accent) / 0.5);
  border-radius: 9999px;
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.phro-home-donate__heading h2 {
  margin: 0;
  color: hsl(var(--primary-foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.phro-home-donate__heading p {
  max-width: 46rem;
  margin: 1.15rem auto 0;
  color: hsl(var(--primary-foreground) / 0.72);
  font-size: clamp(0.93rem, 1.5vw, 1.05rem);
  line-height: 1.75;
}

.phro-home-donate__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
  align-items: stretch;
  gap: clamp(1.25rem, 2.3vw, 2rem);
  margin-top: 0;
}

.phro-home-donate__story,
.phro-home-donate__panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.88);
  border-radius: 1.75rem;
  background: hsl(var(--card));
  box-shadow: 0 28px 70px hsl(var(--navy) / 0.18);
}

.phro-home-donate__story {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.phro-home-donate__visual {
  position: relative;
  min-height: 15.5rem;
  overflow: hidden;
  background: hsl(var(--navy));
}

.phro-home-donate__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.phro-home-donate__story:hover .phro-home-donate__visual img {
  transform: scale(1.025);
}

.phro-home-donate__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(var(--navy) / 0.08) 5%, hsl(var(--navy) / 0.92) 100%),
    linear-gradient(90deg, hsl(var(--navy) / 0.5), transparent 65%);
}

.phro-home-donate__visual-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.55rem;
  padding: 1.5rem clamp(1.35rem, 3vw, 2.25rem);
}

.phro-home-donate__visual-copy span {
  color: hsl(var(--accent));
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.phro-home-donate__visual-copy strong {
  max-width: 35rem;
  color: hsl(var(--primary-foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}

.phro-home-donate__story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.phro-home-donate__why > span,
.phro-home-donate__priority > span,
.phro-home-donate__panel-heading > div > span {
  display: block;
  color: hsl(var(--primary));
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.phro-home-donate__why h3 {
  margin: 0.4rem 0 0.65rem;
  color: hsl(var(--foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
}

.phro-home-donate__why p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.7;
}

.phro-home-donate__priorities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.phro-home-donate__priority {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.05rem;
}

.phro-home-donate__priority--now {
  background: hsl(var(--primary) / 0.055);
}

.phro-home-donate__priority--next {
  background: hsl(var(--accent) / 0.07);
}

.phro-home-donate__priority--next > span {
  color: hsl(32 86% 40%);
}

.phro-home-donate__priority h4 {
  margin: 0.4rem 0 0.75rem;
  color: hsl(var(--foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.phro-home-donate__priority ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phro-home-donate__priority li {
  position: relative;
  padding-left: 1.05rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.76rem;
  line-height: 1.5;
}

.phro-home-donate__priority li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
  content: "";
}

.phro-home-donate__priority--next li::before {
  background: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.15);
}

.phro-home-donate__closing {
  margin: auto 0 0;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid hsl(var(--accent));
  border-radius: 0 0.75rem 0.75rem 0;
  background: hsl(var(--navy) / 0.04);
  color: hsl(var(--foreground));
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}

.phro-home-donate__panel {
  align-self: start;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-top: 4px solid var(--phro-donate-red);
}

.phro-home-donate__panel-heading {
  display: grid;
  gap: 0.65rem;
}

.phro-home-donate__panel-heading h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  color: hsl(var(--foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.phro-home-donate__heart {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--phro-donate-red);
  fill: currentColor;
}

.phro-home-donate__panel-heading p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.84rem;
  line-height: 1.6;
}

.phro-home-donate__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
}

.phro-home-donate__trust span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid hsl(var(--primary) / 0.18);
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.055);
  color: hsl(var(--primary));
  font-size: 0.65rem;
  font-weight: 800;
}

.phro-home-donate__trust span::before {
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.4rem;
  border-radius: 9999px;
  background: hsl(var(--accent));
  content: "";
}

.phro-home-donate__form {
  display: grid;
  gap: 1rem;
}

.phro-home-donate__form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.phro-home-donate__form legend,
.phro-home-donate__field label {
  display: block;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.phro-home-donate__amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.phro-home-donate__amounts button {
  min-height: 2.85rem;
  padding: 0.65rem 0.5rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.8rem;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.phro-home-donate__amounts button:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  transform: translateY(-1px);
}

.phro-home-donate__amounts button.is-selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 8px 20px hsl(var(--primary) / 0.2);
}

.phro-home-donate__field {
  display: grid;
}

.phro-home-donate__field input,
.phro-home-donate__field select,
.phro-home-donate__field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.8rem;
  outline: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font: inherit;
  font-size: 0.86rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.phro-home-donate__field input::placeholder,
.phro-home-donate__field textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.phro-home-donate__field input:focus,
.phro-home-donate__field select:focus,
.phro-home-donate__field textarea:focus {
  border-color: hsl(var(--primary));
  background: hsl(var(--card));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.13);
}

.phro-home-donate__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 9999px;
  background: var(--phro-donate-red);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
  box-shadow: 0 12px 28px rgb(185 28 28 / 0.2);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.phro-home-donate__submit svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.phro-home-donate__submit:hover {
  background: var(--phro-donate-red-dark);
  box-shadow: 0 14px 32px rgb(153 27 27 / 0.27);
  transform: translateY(-1px);
}

.phro-home-donate__amounts button:focus-visible,
.phro-home-donate__submit:focus-visible,
.phro-home-donate__payment-links a:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.38);
  outline-offset: 3px;
}

.phro-home-donate__payment {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid hsl(var(--primary-foreground) / 0.12);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 100% 0%, hsl(var(--primary) / 0.3), transparent 42%),
    hsl(var(--navy));
  color: hsl(var(--primary-foreground));
  scroll-margin-top: 6.5rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.phro-home-donate__payment.is-ready {
  border-color: hsl(var(--accent) / 0.72);
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.12), 0 16px 30px hsl(var(--navy) / 0.18);
}

.phro-home-donate__payment--qr-only {
  grid-template-columns: minmax(0, 11rem);
  justify-content: center;
}

.phro-home-donate__payment--qr-only .phro-home-donate__qr {
  width: 100%;
}

.phro-home-donate__payment--qr-only .phro-home-donate__qr img {
  max-width: 9.5rem;
}

.phro-home-donate__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 24px hsl(var(--navy) / 0.25);
}

.phro-home-donate__qr img {
  width: 100%;
  max-width: 7.2rem;
  height: auto;
  image-rendering: crisp-edges;
}

.phro-home-donate__payment-copy {
  min-width: 0;
}

.phro-home-donate__payment-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.phro-home-donate__payment-title svg {
  width: 1.1rem;
  height: 1.1rem;
  color: hsl(var(--accent));
}

.phro-home-donate__payment-title h4 {
  margin: 0;
  color: hsl(var(--primary-foreground));
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.15rem;
  font-weight: 800;
}

.phro-home-donate__payment-copy > p {
  margin: 0;
  color: hsl(var(--primary-foreground) / 0.75);
  font-size: 0.72rem;
  line-height: 1.55;
}

.phro-home-donate__payment-copy > small {
  display: block;
  margin-top: 0.65rem;
  color: hsl(var(--primary-foreground) / 0.52);
  font-size: 0.62rem;
  line-height: 1.5;
}

.phro-home-donate__ready {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid hsl(var(--accent) / 0.28);
  border-radius: 0.65rem;
  background: hsl(var(--accent) / 0.1);
}

.phro-home-donate__ready span {
  color: hsl(var(--accent));
  font-size: 0.68rem;
  font-weight: 850;
}

.phro-home-donate__ready strong {
  color: hsl(var(--primary-foreground));
  font-size: 0.68rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.phro-home-donate__payment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.8rem;
}

.phro-home-donate__payment-links a {
  color: hsl(var(--accent));
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: hsl(var(--accent) / 0.45);
  text-underline-offset: 0.2rem;
}

.phro-home-donate__payment-links a:hover {
  color: hsl(var(--primary-foreground));
}

@media (max-width: 1100px) {
  .phro-home-donate__layout {
    grid-template-columns: 1fr;
    width: min(100%, 54rem);
    margin-right: auto;
    margin-left: auto;
  }

  .phro-home-donate__panel {
    width: 100%;
  }

  .phro-home-donate__amounts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phro-home-donate__payment {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .phro-home-donate {
    padding: 2.5rem 0;
    background: hsl(var(--background));
  }

  .phro-home-donate::before {
    height: 30rem;
  }

  .phro-home-donate__inner {
    padding-right: clamp(0.75rem, 4vw, 1.25rem) !important;
    padding-left: clamp(0.75rem, 4vw, 1.25rem) !important;
  }

  .phro-home-donate__heading {
    text-align: left;
  }

  .phro-home-donate__heading p {
    margin-left: 0;
  }

  .phro-home-donate__layout {
    gap: 1rem;
    margin-top: 0;
  }

  .phro-home-donate__story,
  .phro-home-donate__panel {
    border-radius: 1.25rem;
  }

  .phro-home-donate__visual {
    min-height: 13.5rem;
  }

  .phro-home-donate__visual-copy {
    padding: 1.2rem;
  }

  .phro-home-donate__story-body,
  .phro-home-donate__panel {
    padding: 1.2rem;
  }

  .phro-home-donate__priorities {
    grid-template-columns: 1fr;
  }

  .phro-home-donate__amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phro-home-donate__amounts button,
  .phro-home-donate__field input,
  .phro-home-donate__field select,
  .phro-home-donate__field textarea,
  .phro-home-donate__submit {
    min-height: 3rem;
  }

  .phro-home-donate__field input,
  .phro-home-donate__field select,
  .phro-home-donate__field textarea {
    font-size: 16px;
  }

  .phro-home-donate__payment {
    grid-template-columns: 1fr;
    padding: 1rem;
    text-align: center;
  }

  .phro-home-donate__qr {
    width: min(100%, 10.75rem);
    margin: 0 auto;
  }

  .phro-home-donate__qr img {
    max-width: 9.5rem;
  }

  .phro-home-donate__payment-title,
  .phro-home-donate__payment-links {
    justify-content: center;
  }

  .phro-home-donate__ready strong {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .phro-home-donate__trust {
    display: grid;
    grid-template-columns: 1fr;
  }

  .phro-home-donate__trust span {
    justify-content: center;
  }

  .phro-home-donate__payment-links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

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