@font-face{font-family:'DM Serif Display';font-style:normal;font-weight:400;font-display:swap;src:url('./DMSerifDisplay-Regular.ttf') format('truetype')}
/* Homepage editorial teaser — native Divi modules, loops and links. */
.nysa-home-stories{background:#faf8f5!important;padding:80px 0!important;row-gap:0!important}
.nysa-home-stories .hp-stories-shell{width:calc(100% - 80px)!important;flex-basis:calc(100% - 80px)!important;max-width:1200px!important;padding:0!important;margin:0 auto!important}
.nysa-home-stories .et_pb_column,.nysa-home-stories .et_pb_group{row-gap:0!important;min-width:0}
.nysa-home-stories .hp-stories-intro{padding-bottom:32px!important}.nysa-home-stories .hp-stories-intro .et_pb_column{max-width:800px!important}
.nysa-home-stories .hp-story-label{font-size:.75rem!important;line-height:1.5!important;letter-spacing:.08em;text-transform:uppercase;font-weight:600;margin-bottom:12px!important}
.nysa-home-stories .hp-story-label *{font-size:inherit!important;line-height:inherit!important;padding-bottom:0!important}
.nysa-home-stories .hp-all-stories{margin-top:20px!important}.nysa-home-stories .hp-all-stories a{color:#1a3a5c!important;text-decoration:underline;text-underline-offset:4px;font-size:.9375rem}
.nysa-home-stories .hp-stories-grid{display:grid!important;grid-template-columns:1.1fr 1fr!important;gap:28px!important;align-items:stretch}
.nysa-home-stories .hp-story-card{width:100%!important;max-width:100%!important;flex-basis:auto!important;padding:30px!important;border:1px solid #c5d4e3;border-radius:12px;background:white}
.nysa-home-stories .hp-story-feature{background:#eef3f8;border-top:4px solid #ffb27f;justify-content:center!important}
.nysa-home-stories .hp-stories-side{width:100%!important;max-width:100%!important;flex-basis:auto!important;gap:20px!important}
.nysa-home-stories .hp-story-title{margin:0!important}.nysa-home-stories .hp-story-title h3{padding:0!important}
.nysa-home-stories .hp-story-excerpt{margin-top:16px!important}.nysa-home-stories .hp-story-excerpt p{padding-bottom:0!important}
.nysa-home-stories .hp-story-link{margin-top:16px!important;align-self:flex-start}
.nysa-home-stories a.hp-story-link{padding:10px 0!important;border:0!important;border-radius:0!important;background:transparent!important;font:600 .9375rem/1.5 Inter,sans-serif!important;color:#1a3a5c!important;text-decoration:underline;text-underline-offset:4px;min-height:44px}
.nysa-home-stories a.hp-story-link:after{display:none!important}.nysa-home-stories a:focus-visible{outline:3px solid #1a3a5c;outline-offset:4px}
@media(max-width:767px){.nysa-home-stories{padding:56px 0!important}.nysa-home-stories .hp-stories-shell{width:calc(100% - 44px)!important;flex-basis:calc(100% - 44px)!important}.nysa-home-stories .hp-stories-grid{grid-template-columns:1fr!important;gap:20px!important}.nysa-home-stories .hp-story-card{padding:24px!important}}

/* Homepage image links and compact spacing for the stacked youth pathways. */
.nysa-home-content-image img {
  border-radius: 8px;
}
.nysa-home-content-image a:focus-visible {
  outline: 3px solid #1a3a5c;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  #explore-programs {
    row-gap: 24px;
  }
  #explore-programs .et_pb_row {
    padding-block: 0;
  }
  #explore-programs .et_pb_row:has(.nysa-home-content-image) {
    row-gap: 36px;
  }
  #explore-programs .et_pb_column,
  #explore-programs .et_pb_group {
    row-gap: 14px;
  }
}

/* Let the two program thumbnails fill their column at their original ratio. */
.nysa-home-content-image:has(:is(.wp-image-240028,.wp-image-240040)) > a,
.nysa-home-content-image:has(:is(.wp-image-240028,.wp-image-240040)) .et_pb_image_wrap {
  display: block;
  width: 100%;
}
.nysa-home-content-image :is(.wp-image-240028,.wp-image-240040) {
  display: block;
  width: 100%;
  height: auto;
  max-height: none !important;
}

/* Homepage mission statement and About link. */
.nysa-home-mission.et_pb_section {
  padding-block: clamp(32px, 4vw, 56px);
}
.nysa-home-mission > .et_pb_row {
  padding-block: 0;
}
.nysa-home-mission .et_pb_column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px clamp(24px, 5vw, 72px);
}
.nysa-home-mission .et_pb_text {
  max-width: 44rem;
  margin: 0;
}
.nysa-home-mission .et_pb_text,
.nysa-home-mission .et_pb_text p {
  color: #fff;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  line-height: 1.45;
}
.nysa-home-mission .et_pb_text p { padding-bottom: 0; }
.nysa-home-mission .et_pb_button_module_wrapper { margin: 0; }
.nysa-home-mission .et_pb_button { white-space: nowrap; }
.nysa-home-mission .et_pb_button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  .nysa-home-mission .et_pb_column {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 20px;
  }
}

/* Align the pathway buttons when the three cards share a row. */
@media (min-width: 768px) {
  #explore-programs .et_pb_row:has(.nysa-home-content-image) {
    align-items: stretch;
  }
  #explore-programs .et_pb_column > .et_pb_group:has(.nysa-home-content-image) {
    flex: 1 0 auto;
  }
  #explore-programs .et_pb_group:has(.nysa-home-content-image) > .et_pb_button_module_wrapper {
    margin-top: auto;
  }
}

/* Three stepped brand dots in the mission band. */
.nysa-home-mission {
  position: relative;
  isolation: isolate;
}
.nysa-home-mission::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(168px, 24vw, 360px);
  height: 100%;
  background:
    radial-gradient(circle at 25% 25%, rgb(255 211 172 / 17%) 0 9px, transparent 10px),
    radial-gradient(circle at 52% 50%, rgb(255 178 127 / 15%) 0 24px, transparent 25px),
    radial-gradient(circle at 88% 100%, rgb(255 133 89 / 13%) 0 clamp(49px, 7vw, 104px), transparent calc(clamp(49px, 7vw, 104px) + 1px));
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 767px) {
  .nysa-home-mission::after {
    width: 155px;
    height: 112px;
    opacity: .78;
  }
}

/* Give linked photos and the mission button immediate input feedback. */
@media (hover: hover) and (pointer: fine) {
  .nysa-home-content-image > a:hover img {
    filter: brightness(1.06);
  }
}
.nysa-home-content-image > a:active img {
  filter: brightness(.91);
}
.nysa-home-mission .et_pb_button:active {
  filter: brightness(.9);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .nysa-home-content-image > a img {
    transition: transform 150ms ease-out, filter 150ms ease-out;
  }
  .nysa-home-mission .et_pb_button {
    transition: transform 150ms ease-out, filter 150ms ease-out;
  }
  @media (hover: hover) and (pointer: fine) {
    .nysa-home-content-image > a:hover img,
    .nysa-home-mission .et_pb_button:hover {
      transform: translateY(-2px);
    }
  }
  .nysa-home-content-image > a:active img,
  .nysa-home-mission .et_pb_button:active {
    transform: scale(.99);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nysa-home-content-image > a img,
  .nysa-home-mission .et_pb_button {
    transition: none;
  }
}

.nysa-home-stories .hp-story-feature {
  background: #fff;
  justify-content: flex-start !important;
}
.nysa-home-stories .hp-story-photo.et_pb_image {
  margin-bottom: 18px !important;
}
.nysa-home-stories .hp-story-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Dawn horizon behind the homepage newsletter. */
.nysa-home-newsletter.et_pb_section {
  background-color: #eef3f8 !important;
  position: relative;
  isolation: isolate;
}
.nysa-home-newsletter.et_pb_section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 9% 100%, #ffd3ac 0%, #fff2e4 32%, #eaf2fa 70%);
  mask-image: linear-gradient(110deg, #000 27%, #0008 70%, transparent);
}
@media (max-width: 767px) {
  .nysa-home-newsletter.et_pb_section::before {
    mask-image: linear-gradient(135deg, #000 5%, #0008 54%, transparent 90%);
  }
}
