/* 35 & Under page (/35) — loaded only by templates/pages/_35-under.twig.
   Hero + How it works follow the /referral page in the site fonts; the stats block
   below reuses the homepage #giving-stats styles from app.css. */

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

/* Cream page background behind the hero, as in the design; the stats section has its own blue */
.u35 {
  background: #F7F3EF;
}

/* Hero + How it works */
.u35-hero {
  display: grid;
  grid-template-columns: minmax(0, 611fr) minmax(0, 509fr);
  gap: 64px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 1.875rem 80px;
}

.u35 .u35-title {
  max-width: 560px;
  margin: 0 0 24px;
  font-family: "cooper-black-std", serif;
  font-size: 48px;
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #1A5C8C;
}

.u35 .u35-body h2,
.u35 .u35-body h3,
.u35 .u35-body h4 {
  margin: 0 0 24px;
  font-family: "Roboto Slab", serif;
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: #1A1A1A;
}

.u35 .u35-body p {
  margin: 0;
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  line-height: 28.8px;
  font-weight: 300;
  letter-spacing: normal;
  color: #0A0A0A;
}

.u35 .u35-body p + p {
  margin-top: 28.8px;
}

.u35 .u35-body strong,
.u35 .u35-body b {
  font-weight: 700;
}

.u35 .u35-body em {
  font-style: italic;
}

.u35 .u35-body a {
  color: inherit;
  text-decoration: underline;
}

.u35 .u35-body img {
  max-width: 100%;
  height: auto;
}

.u35 .u35-steps-title {
  margin: 0 0 24px;
  font-family: "Roboto Slab", serif;
  font-size: 20px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #000000;
}

.u35-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Hand-drawn boxes, same shapes as the /referral page */
.u35-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 4px solid #000000;
  color: #1A1A1A;
}

/* Each step links to /nonprofits; the label's link covers the whole box */
.u35 .u35-step-label {
  color: inherit;
  text-decoration: none;
}

.u35 .u35-step-label::after {
  content: "";
  position: absolute;
  inset: 0;
}

.u35 .u35-step-label:focus {
  outline: none;
}

.u35-step:focus-within {
  outline: 3px solid #000000;
  outline-offset: 4px;
}

.u35-step-icon {
  transition: transform 0.3s ease;
}

.u35-step:hover .u35-step-icon {
  transform: translateX(4px);
}

.u35-step--orange {
  background: #E8A756;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.u35-step--pink {
  background: #F4A0CC;
  border-radius: 15px 225px 15px 255px / 225px 15px 255px 15px;
}

.u35-step--red {
  background: #E04625;
  border-radius: 225px 15px 15px 255px / 15px 255px 225px 15px;
  color: #ffffff;
}

.u35-step--blue {
  background: #2E6ABE;
  border-radius: 15px 255px 225px 15px / 255px 15px 15px 225px;
  color: #ffffff;
}

.u35-step-number {
  flex-shrink: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
  -webkit-text-stroke: 2px #000000;
}

.u35-step-label {
  flex: 1;
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
}

.u35-step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Stats: the homepage "At a Glance" 35 & Under block, styled entirely by app.css.
   Only spacing around it and the call to action below are added here. */
.u35-stats {
  padding: 60px 0;
}

/* In the design the blue stats section sits directly on the footer */
.page-35-under #site-footer {
  margin-top: 0;
}

/* Final call to action */
.u35-cta-wrapper {
  display: flex;
  justify-content: center;
}

.u35 .u35-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 682px;
  padding: 24px;
  border-radius: 4px;
  background: #E8A756;
  color: #ffffff;
  text-decoration: none;
}

.u35-cta-title {
  flex: 1;
  font-family: "cooper-black-std", serif;
  font-size: 28px;
  line-height: 32px;
}

.u35-cta-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 3px solid #000000;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.u35 .u35-cta:hover .u35-cta-icon {
  transform: translateX(4px);
}

/* Tablet */
/* Tablet: stacked like the /referral page, in a narrower centered column with How it works centered */
@media (max-width: 1023px) {
  .u35-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 768px;
    padding: 48px 24px 56px;
  }

  .u35-steps {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
  }

}

/* Phone */
@media (max-width: 640px) {
  .u35-hero {
    padding: 32px 16px 48px;
  }

  .u35 .u35-title {
    font-size: 34px;
  }

  .u35 .u35-body h2,
  .u35 .u35-body h3,
  .u35 .u35-body h4 {
    font-size: 20px;
    line-height: 30px;
  }

  .u35 .u35-body p {
    font-size: 16px;
    line-height: 26px;
  }

  .u35-step {
    padding: 12px 16px;
  }

  .u35-step-number {
    font-size: 48px;
  }

  .u35-step-label {
    font-size: 16px;
  }

  .u35-cta-title {
    font-size: 22px;
    line-height: 28px;
  }
}
