/**
 * Build 39: About scale correction and safe founder CTA targeting.
 */

.site-main .trinity-section-header:has(.trinity-about-intro) .trinity-about-intro,
.site-main .trinity-section-header .container > .trinity-about-intro,
.site-main p.trinity-about-intro {
  max-width: 840px !important;
  font-size: clamp(26px, 1.6vw, 32px) !important;
  line-height: 1.52 !important;
  letter-spacing: -.01em !important;
}

/* Explicitly restore a final biography paragraph when it contains no CTA. */
.site-main .trinity-founder-card .founder-full__bio > p:last-child:not(:has(a)),
.site-main .trinity-founders-grid .trinity-founder-card .founder-full__bio > p:last-child:not(:has(a)),
.site-main .container:has(> .trinity-founder-card) .trinity-founder-card .founder-full__bio > p:last-child:not(:has(a)) {
  margin-top: 24px !important;
  margin-bottom: 1em !important;
  color: #66564d !important;
  font-size: clamp(20px, 1.15vw, 23px) !important;
  font-weight: 400 !important;
  line-height: 1.68 !important;
  letter-spacing: -.008em !important;
}

/* Match the two actual consultation anchors without styling their containers. */
.site-main .trinity-founder-card .founder-contact a,
.site-main .trinity-founder-card .founder-full__bio > p:has(> a:only-child) > a,
.site-main .trinity-founder-card .founder-full__bio > a:last-child {
  color: var(--forest, #253c2d) !important;
  font-size: clamp(19px, 1.05vw, 21px) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  letter-spacing: -.004em !important;
  text-decoration: none !important;
}

.site-main .trinity-founder-card .founder-contact a:hover,
.site-main .trinity-founder-card .founder-full__bio > p:has(> a:only-child) > a:hover,
.site-main .trinity-founder-card .founder-full__bio > a:last-child:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

@media (max-width: 900px) {
  .site-main .trinity-section-header:has(.trinity-about-intro) .trinity-about-intro,
  .site-main .trinity-section-header .container > .trinity-about-intro,
  .site-main p.trinity-about-intro {
    max-width: 720px !important;
    font-size: clamp(24px, 3.8vw, 28px) !important;
  }
}

@media (max-width: 560px) {
  .site-main .trinity-section-header:has(.trinity-about-intro) .trinity-about-intro,
  .site-main .trinity-section-header .container > .trinity-about-intro,
  .site-main p.trinity-about-intro {
    font-size: 22px !important;
    line-height: 1.55 !important;
  }

  .site-main .trinity-founder-card .founder-full__bio > p:last-child:not(:has(a)) {
    font-size: 18px !important;
    line-height: 1.66 !important;
  }

  .site-main .trinity-founder-card .founder-contact a,
  .site-main .trinity-founder-card .founder-full__bio > p:has(> a:only-child) > a,
  .site-main .trinity-founder-card .founder-full__bio > a:last-child {
    font-size: 19px !important;
  }
}
