/* PBRx.Vet Version 46: tighter homepage section rhythm. */
body .home-resources {
  padding-block: 64px;
}

body .home-va-news {
  padding-block: 58px;
}

body .home-dispatch {
  padding-block: 60px;
}

body .section,
body .continuity-section,
body .trust-section,
body .report-showcase,
body .beta {
  padding-top: 76px;
  padding-bottom: 76px;
}

body .veteran-testimonial {
  padding-top: 64px;
  padding-bottom: 64px;
}

body .section-heading {
  margin-bottom: 42px;
}

body .section-heading.compact {
  margin-bottom: 34px;
}

body .intelligence-band {
  min-height: 560px;
}

body .workflow {
  margin-top: 42px;
}

body .guardrail {
  margin-top: 30px;
}

/* Version 51: top navigation lands on the first word of each section title. */
#health-vault-title,
#care-gaps-title,
#report-showcase-title,
#appointment-prep-title,
#beta-title {
  scroll-margin-top: 145px;
}

/* The page already supplies 100px of header clearance. Avoid double-offsetting
   the two centered titles that otherwise appear too low after navigation. */
#care-gaps-title,
#report-showcase-title {
  scroll-margin-top: 0;
}

/* Match the requested desktop framing: label visible beneath the fixed header,
   title at left, and Visit Brief panel visible alongside it. */
#appointment-prep-title {
  scroll-margin-top: 85px;
}

/* Match the supplied Health Vault framing: the title begins immediately below
   the fixed navigation while the description and four cards remain in view. */
#health-vault-title {
  scroll-margin-top: 20px;
}

@media (max-width: 620px) {
  body .home-resources,
  body .home-va-news,
  body .home-dispatch {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body .section,
  body .continuity-section,
  body .trust-section,
  body .report-showcase,
  body .beta {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  body .veteran-testimonial {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  body .section-heading,
  body .section-heading.compact {
    margin-bottom: 30px;
  }

  body .intelligence-band {
    min-height: 540px;
  }

  #health-vault-title,
  #care-gaps-title,
  #report-showcase-title,
  #appointment-prep-title,
  #beta-title {
    scroll-margin-top: 120px;
  }

  #care-gaps-title,
  #report-showcase-title {
    scroll-margin-top: 0;
  }

  #appointment-prep-title {
    scroll-margin-top: 60px;
  }

  #health-vault-title {
    scroll-margin-top: 10px;
  }
}
