/*
  Subpage-only typography & responsive rhythm.
  Intentionally NOT loaded by index.html, so the home page remains unchanged.
*/

:root {
  --sub-font-heading: 'Poppins', sans-serif;
  --sub-font-body: 'Inter', sans-serif;
  --sub-h1: clamp(2.25rem, 4.25vw, 3.375rem);
  /* 36–54px */
  --sub-h2: 40px;
  /* 40px */
  --sub-h3: clamp(1.5rem, 2vw, 1.875rem);
  /* 24–30px */
  --sub-h4: clamp(1.25rem, 1.5vw, 1.375rem);
  /* 20–22px */
  --sub-h5: 1.1875rem;
  /* 19px */
  --sub-h6: 1.0625rem;
  /* 17px */
  --sub-p: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
  /* 16–18px */
  --sub-li: 1.125rem;
  /* 18px */
  --sub-span: 0.9375rem;
  /* 15px */
  --sub-section-space: clamp(3.5rem, 6vw, 6rem);
}

.subpage {
  font-family: var(--sub-font-body);
  color: #000000;
  overflow-wrap: break-word;
}

/* One semantic type scale for every inner page. Important overrides old page-level inline sizes. */
.subpage h1,
.subpage h2,
.subpage h3,
.subpage h4,
.subpage h5,
.subpage h6 {
  font-family: var(--sub-font-heading) !important;
  font-style: normal;
  margin-top: 0;
  text-wrap: balance;
}

.subpage h1 {
  font-size: var(--sub-h1) !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
}

.subpage h2 {
  font-size: 40px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.subpage h3 {
  font-size: var(--sub-h3) !important;
  line-height: 1.28 !important;
  font-weight: 500 !important;
}

.subpage h4 {
  font-size: var(--sub-h4) !important;
  line-height: 1.32 !important;
  font-weight: 500 !important;
}

.subpage h5 {
  font-size: var(--sub-h5) !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}

.subpage h6 {
  font-size: var(--sub-h6) !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

.subpage p {
  font-family: var(--sub-font-body) !important;
  font-size: var(--sub-p) !important;
  line-height: 1.7 !important;
  color: #000000;
}

.subpage li {
  font-family: var(--sub-font-body) !important;
  font-size: var(--sub-li) !important;
  line-height: 1.65 !important;
  color: #000000;
}

.subpage span {
  font-size: var(--sub-span) !important;
  line-height: 1.5;
}

/* White text exceptions on subpages */
.subpage [style*="; color: #fff"] p,
.subpage [style*="; color: #ffffff"] p,
.subpage [style*="; color: white"] p,
[style^="color: #fff"] p,
[style^="color:#fff"] p,
[style^="color: #ffffff"] p,
[style^="color:#ffffff"] p,
.subpage [style*="background-color: #0065BD"] p,
.subpage [style*="background-color: #0065BD"] h2,
.subpage .text-white,
.subpage .text-white p,
.subpage .text-white li {
  color: #ffffff !important;
}

/* UI copy follows the same heading family used by the home page. */
.subpage .nav-link,
.subpage .btn,
.subpage button,
.subpage label,
.subpage input,
.subpage select,
.subpage textarea,
.subpage .breadcrumbs,
.subpage [class*='badge'],
.subpage [class*='label'],
.subpage [class*='kicker'],
.subpage [class*='eyebrow'],
.subpage [class*='tag'] {
  font-family: var(--sub-font-heading) !important;
}

/* Consistent inner-page hero and section rhythm. */
.subpage .page-hero {
  text-align: center !important;
  padding-top: clamp(4.25rem, 7vw, 6.25rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 5rem) !important;
}

.subpage .page-hero-title {
  text-align: center !important;
  margin-bottom: 0.75rem;
}

.subpage .page-hero-subtitle {
  text-align: center !important;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.subpage .page-hero .breadcrumbs {
  display: inline-flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.subpage>section:not(.page-hero) {
 /* padding-top: var(--sub-section-space) !important;
  padding-bottom: var(--sub-section-space) !important;*/
}

/* Responsive safety shared by every subpage. */
.subpage .row>*,
.subpage [class*='grid']>*,
.subpage [class*='flex']>* {
  min-width: 0;
}

.subpage img,
.subpage video,
.subpage iframe {
  max-width: 100%;
}

.subpage table {
  max-width: 100%;
}

.subpage a,
.subpage p,
.subpage li,
.subpage span,
.subpage h1,
.subpage h2,
.subpage h3,
.subpage h4,
.subpage h5,
.subpage h6 {
  overflow-wrap: anywhere;
}

@media (max-width: 991px) {
  .subpage .page-hero {
    text-align: center;
  }

  .subpage .page-hero .breadcrumbs {
    justify-content: center;
  }

  .subpage .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 767px) {
  :root {
    --sub-h1: 2.25rem;
    --sub-h2: 1.875rem;
    --sub-h3: 1.5rem;
    --sub-h4: 1.25rem;
    --sub-h5: 1.125rem;
    --sub-h6: 1rem;
    --sub-p: 1rem;
    --sub-li: 1rem;
    --sub-span: 0.875rem;
  }

  .subpage .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .subpage .page-hero {
    padding-top: 3.75rem !important;
    padding-bottom: 3.25rem !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 479px) {
  :root {
    --sub-h1: 2rem;
    --sub-h2: 1.75rem;
    --sub-h3: 1.375rem;
  }
}