/* Dusk to Dawn. These classes belong to the editable homepage sections. */
body.home #et-main-area {
  --nysa-home-width: 75rem;
  --nysa-home-gutters: clamp(2.5rem, 8vw, 7rem);
  --nysa-home-section-space: clamp(3rem, 5.3vw, 5rem);
  --nysa-home-navy: var(--gcid-nysa-brand-primary, #1a3a5c);
  --nysa-home-dawn: #f0f5f8;
  --nysa-home-warmth: #faf4ed;
  --nysa-home-h2: clamp(1.875rem, 1.46rem + 1.28vw, 2.625rem);
  --nysa-home-h3: clamp(1.3125rem, 1.15rem + .45vw, 1.625rem);
}

body.home #et-main-area :is(.et_pb_section_0.nysa-home-hero, #explore-programs, .nysa-home-mission, .nysa-home-featured, .nysa-home-stories, .nysa-home-newsletter) > .et_pb_row {
  width: calc(100% - var(--nysa-home-gutters)) !important;
  flex-basis: auto !important;
  max-width: var(--nysa-home-width) !important;
  margin-inline: auto !important;
  padding-block: 0;
}

body.home #et-main-area .nysa-home-hero.et_pb_section_0 > .et_pb_row > .et_pb_column:first-child {
  max-width: min(100%, 46rem) !important;
  row-gap: clamp(1rem, 2vw, 1.5rem) !important;
}

body.home #et-main-area .nysa-home-hero .et_pb_heading h1 {
  font-size: clamp(1.9375rem, 1.18rem + 3.25vw, 4.25rem) !important;
  line-height: 1.08;
  padding-bottom: 0;
  text-wrap: balance;
}

body.home #et-main-area .nysa-home-hero .et_pb_text p {
  font-size: clamp(1rem, .963rem + .14vw, 1.125rem);
  line-height: 1.6;
  max-width: 47ch;
}

body.home #et-main-area .nysa-home-hero.et_pb_section_0 .et_pb_text {
  flex: 0 0 100% !important;
  max-width: none;
}

body.home #et-main-area :is(#explore-programs, .nysa-home-featured, .nysa-home-stories, .nysa-home-newsletter) h2 {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: var(--nysa-home-h2) !important;
  line-height: 1.16;
  padding-bottom: 0;
  text-wrap: balance;
}

body.home #et-main-area :is(#explore-programs, .nysa-home-featured, .nysa-home-stories) h3 {
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 650 !important;
  font-size: var(--nysa-home-h3) !important;
  line-height: 1.25;
  padding-bottom: 0;
  text-wrap: balance;
}

body.home #et-main-area :is(#explore-programs, .nysa-home-featured, .nysa-home-stories, .nysa-home-newsletter) .et_pb_text:not(.hp-story-label, .hp-all-stories) p {
  line-height: 1.6;
}

body.home #et-main-area #explore-programs {
  background: linear-gradient(#e4eef6, var(--nysa-home-dawn)) !important;
  padding-block: var(--nysa-home-section-space) clamp(1.5rem, 3.1vw, 2.75rem) !important;
  row-gap: clamp(1.5rem, 2.7vw, 2.5rem);
}

#explore-programs .et_pb_row:has(.nysa-home-content-image) {
  column-gap: clamp(1.25rem, 3vw, 2.625rem);
}

#explore-programs .et_pb_group:has(.nysa-home-content-image) {
  row-gap: clamp(.875rem, 1.7vw, 1.5rem);
}

@media (min-width: 768px) {
  #explore-programs .et_pb_row:has(.nysa-home-content-image) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #explore-programs .et_pb_row:has(.nysa-home-content-image) > .et_pb_column {
    min-width: 0;
    width: 100% !important;
  }
}

body.home #et-main-area .nysa-home-mission {
  background: var(--nysa-home-dawn) !important;
  padding: .75rem 0 var(--nysa-home-section-space) !important;
}

.nysa-home-mission::after { display: none; }

body.home #et-main-area .nysa-home-mission .et_pb_text {
  max-width: 53rem;
  border-inline-start: 3px solid #ff8559;
  padding-inline-start: clamp(.875rem, 2.2vw, 1.625rem);
}

body.home #et-main-area .nysa-home-mission .et_pb_text p {
  color: var(--nysa-home-navy) !important;
  font: 400 clamp(1.625rem, 1.28rem + 1.05vw, 2.375rem)/1.2 'DM Serif Display', Georgia, serif !important;
}

.nysa-home-mission .et_pb_button:focus-visible { outline-color: #1a3a5c; }

body.home #et-main-area .nysa-home-featured,
body.home #et-main-area .nysa-home-stories {
  background: var(--nysa-home-warmth) !important;
}

body.home #et-main-area .nysa-home-featured {
  padding-block: var(--nysa-home-section-space) clamp(2.75rem, 4.4vw, 4rem) !important;
  row-gap: clamp(1.5rem, 2.7vw, 2.5rem);
}

.nysa-home-featured .nysa-home-programs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.625rem);
}

.nysa-home-featured .nysa-home-program-intro .et_pb_column { row-gap: .5rem; }
.nysa-home-featured .nysa-home-program-kicker p {
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
  padding-bottom: 0;
}

.nysa-home-featured .nysa-home-program-card {
  width: 100% !important;
  min-width: 0;
  row-gap: 1rem;
}

.nysa-home-program-card .nysa-home-content-image :is(a, .et_pb_image_wrap) {
  display: block;
  width: 100%;
}

.nysa-home-program-card .nysa-home-content-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.nysa-home-program-card .et_pb_text p:last-child { padding-bottom: 0; }
.nysa-home-program-card .et_pb_button_module_wrapper { margin-top: auto; }

body.home #et-main-area .nysa-home-stories {
  padding-block: 0 var(--nysa-home-section-space) !important;
}

body.home #et-main-area .nysa-home-stories .hp-stories-intro {
  border-top: 1px solid #ddcec2;
  padding-block: clamp(2.5rem, 4.4vw, 4rem) clamp(1.5rem, 2.8vw, 2.5rem) !important;
}

.nysa-home-stories .hp-stories-intro .et_pb_column { max-width: 48rem !important; }
.nysa-home-stories .hp-stories-side { gap: 0 !important; }
.nysa-home-stories .hp-story-card {
  background: transparent !important;
  border: 0;
  border-radius: 0;
  padding: 0 !important;
}
.nysa-home-stories .hp-story-small {
  border-top: 1px solid #ddcec2;
  padding-block: 1rem !important;
}
.nysa-home-stories .hp-story-excerpt { margin-top: .625rem !important; }
.nysa-home-stories .hp-story-link { margin-top: .375rem !important; }
.nysa-home-stories .hp-story-photo img { aspect-ratio: 3 / 2; object-fit: cover; }

body.home #et-main-area .nysa-home-newsletter {
  background: radial-gradient(ellipse at 7% 110%, #ffb27f 0%, transparent 70%), linear-gradient(112deg, #ffdbbc, #f5ebe1 63%, #e3edf5) !important;
  padding-block: var(--nysa-home-section-space) !important;
}

.nysa-home-newsletter.et_pb_section::before { display: none; }
.nysa-home-newsletter > .et_pb_row { align-items: center; position: relative; }
.nysa-home-newsletter > .et_pb_row > .et_pb_column:last-child { position: static !important; }
.nysa-home-newsletter .et_pb_text { max-width: 42ch; }
body.home #et-main-area .nysa-home-newsletter .forminator-button-submit {
  color: #fff !important;
  background-color: var(--nysa-home-navy) !important;
}

/* Decorative Dot cameo. A single blink responds to pointer hover. */
.nysa-home-newsletter .nysa-home-dot-module {
  position: absolute !important;
  inset-inline-end: 0;
  inset-block-start: -2rem;
  margin: 0 !important;
  pointer-events: none;
}

.nysa-home-newsletter .nysa-home-dot {
  position: relative;
  display: block;
  width: clamp(1.5rem, 3vw, 2.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffa486, #ff8559 44%, #dc603f);
  box-shadow: 0 .18rem .35rem #1b335225;
}

.nysa-home-dot::before,
.nysa-home-dot::after {
  content: '';
  position: absolute;
  inset-block-start: 43%;
  width: 23%;
  height: 25%;
  border-radius: 50%;
  background: radial-gradient(circle at 49% 35%, #fff 0 10%, #101820 11% 40%, #fff8ec 43%);
}
.nysa-home-dot::before { inset-inline-start: 24%; }
.nysa-home-dot::after { inset-inline-start: 53%; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .nysa-home-newsletter:hover .nysa-home-dot::before,
  .nysa-home-newsletter:hover .nysa-home-dot::after { animation: nysa-home-dot-blink .65s .15s both; }
}

@keyframes nysa-home-dot-blink {
  0%, 25%, 73%, 100% { transform: scaleY(1); }
  45%, 55% { transform: scaleY(.12); }
}

@media (max-width: 767px) {
  .nysa-home-featured .nysa-home-programs-grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .nysa-home-program-card:not(:first-child) { border-top: 1px solid #ddcec2; padding-top: 2rem; }
  .nysa-home-newsletter .nysa-home-dot-module { inset-block-start: -1.5rem; }
}
