/* Shared typography for the content pages. All sizes scale with the reader's font setting. */
:root {
  --type-display: clamp(2.125rem, 1.125rem + 3.95vw, 4.25rem);
  --type-section: clamp(1.625rem, 1.25rem + 1.2vw, 2.25rem);
  --type-subsection: clamp(1.3125rem, 1.1rem + .65vw, 1.625rem);
  --type-card: clamp(1.1875rem, 1.075rem + .48vw, 1.4375rem);
  --type-intro: clamp(1rem, .94rem + .22vw, 1.125rem);
  --type-question: clamp(1rem, .95rem + .25vw, 1.125rem);
  --section-space: clamp(2.25rem, 4.6vw, 3.75rem);
  --heading-gap: clamp(1.5rem, 2.6vw, 2rem);
}

/* One headline scale across the site, with smaller supporting lines. */
#top #home .hero-content h1,
#top :is(.booking-heading, .faq-title, .about-story-copy) h1 {
  font-size: var(--type-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-transform: none;
}
#top .hero-content :is(.program-title, .host-workshop-title) > :is(strong, span) {
  text-transform: none;
}
#top .hero .hero-content h1.program-title > :is(strong, span) {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}
#top .hero-content > :is(.program-eyebrow, .bank-audience),
#top .workshop-presenter-copy > .workshop-eyebrow {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .075em;
  text-transform: uppercase;
}

/* Major section titles, including the closing invitations, share one scale. */
#top main h2 {
  font-size: var(--type-section);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.028em;
  white-space: normal;
  text-wrap: balance;
  text-transform: none;
}
#top main :is(.faq-group, .financial-investment, .contact-email-card) h2,
#top main h2.about-story-question {
  font-size: var(--type-subsection);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.018em;
}
#top main :is(.system-card, .program-step-list, .financial-plan-grid,
              .workshop-sponsor-invitation, .coach-card) h3,
#top main .marketing-capabilities summary {
  font-size: var(--type-card);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.015em;
  text-transform: none;
}
#top main .financial-inclusions h3,
#top main .capability-grid h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
#top main .problem-card h3,
#top main .faq-question {
  font-size: var(--type-question);
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
}
:where(main h2[id], main h3[id]) { scroll-margin-top: 7rem; }

/* Allow the approved illustrations and colors to distinguish sections. */
#top main .system-intro > .system-shell,
#top main .financial-value {
  padding-block: var(--section-space);
}
#top main .financial-workshop {
  padding-block: 0;
}
#top main :is(.system-heading, .program-how-heading, .financial-section-heading) {
  margin-bottom: var(--heading-gap);
}
#top main :is(.system-heading, .program-how-heading) > .system-title-row {
  margin-bottom: 0;
}
#top main :is(.system-heading, .program-how-heading, .financial-section-heading) > p {
  max-width: 72ch;
  margin: 1rem auto 0;
  font-size: var(--type-intro);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}
#top main :is(.halfday-three, .financial-benefit-grid, .program-grid) {
  gap: clamp(1rem, 2vw, 1.5rem);
}
#top main :is(.halfday-three, .financial-benefit-grid, .program-grid) > .system-card {
  padding: clamp(1.375rem, 2.2vw, 1.875rem);
}
#top main :is(.system-card, .program-step-list, .financial-plan-grid) > p,
#top main :is(.program-step-list, .financial-plan-grid) li p,
#top main .faq-answer {
  font-size: 1rem;
  line-height: 1.7;
}
#top main figcaption {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Use the same labels and button case in the menu and the page itself. */
#top .site-nav .nav-link,
#top .site-nav .nav-dropdown-menu a,
#top .btn-17,
#top .btn-17 .text,
#top .system-card-link,
#top .system-marketing-link {
  text-transform: none;
}
#top .site-nav .nav-link,
#top .site-nav .nav-dropdown-menu a,
#top .nav-program-copy strong {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: 0;
}
#top .btn-17,
#top .system-card-link,
#top .system-marketing-link {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
#top .site-nav .button-small { font-size: .875rem; }
#top .nav-program-copy > span { font-weight: 400; }

@media (min-width: 1001px) {
  @supports (grid-template-rows: subgrid) {
    #top main .halfday-three > .system-card {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
      justify-items: center;
    }
    #top main .halfday-three > .system-card h3 { align-self: start; }
  }
}
@media (max-width: 1000px) {
  #top .system-grid.halfday-three {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 36.25rem;
    margin-inline: auto;
  }
}
@media (max-width: 620px) {
  :where(main h2[id], main h3[id]) { scroll-margin-top: 6.25rem; }
  #top main .system-title-row { gap: .625rem; }
  #top main .system-title-row > span { flex: 0 0 .75rem; width: .75rem; }
}
