/* Match homepage hero content vertical start without modifying forest scaling. */
@media(min-width:768px){
body.pro-new-theme main.pro-main .am19-hero{align-items:flex-start!important;justify-content:center!important;padding-top:clamp(86px,8.5vw,135px)!important;padding-bottom:100px!important;min-height:690px!important}
body.pro-new-theme main.pro-main .am19-hero .am19-hero-inner{margin:0 auto!important;transform:none!important}
body.pro-new-theme main.pro-main .directory-hero{display:flex!important;align-items:flex-start!important;justify-content:center!important;padding-top:clamp(86px,8.5vw,135px)!important;min-height:690px!important}
}
@media(max-width:767px){body.pro-new-theme main.pro-main .am19-hero,body.pro-new-theme main.pro-main .directory-hero{min-height:540px!important;padding-top:76px!important;padding-bottom:90px!important}}

/* v2: hero content is top-aligned, not vertically centered in a tall viewport. */
@media(min-width:768px){
 body.pro-new-theme main.pro-main > .am19-hero,
 body.pro-new-theme main.pro-main > .directory-hero {
   display:flex!important;
   flex-direction:column!important;
   justify-content:flex-start!important;
   align-items:center!important;
   padding-top:24px!important;
   padding-bottom:100px!important;
   min-height:690px!important;
 }
 body.pro-new-theme main.pro-main > .am19-hero > .am19-hero-inner,
 body.pro-new-theme main.pro-main > .directory-hero > .am19-hero-inner{
   margin-top:0!important;margin-bottom:0!important;
   padding-top:0!important;transform:none!important;
 }
}
@media(max-width:767px){
 body.pro-new-theme main.pro-main > .am19-hero,
 body.pro-new-theme main.pro-main > .directory-hero {
   justify-content:flex-start!important;
   align-items:center!important;
   padding-top:36px!important;
 }
}


/* Ancillary page hero rhythm: match the homepage headline's vertical starting area.
   This corrects the prior 24px top padding, which pushed text too high. */
@media(min-width:768px){
 html body.pro-new-theme main.pro-main > section.am19-hero,
 html body.pro-new-theme main.pro-main > section.directory-hero,
 html body.midg-public-theme main.pro-main > section.am19-hero,
 html body.midg-public-theme main.pro-main > section.directory-hero{
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  align-items:center!important;
  padding-top:clamp(110px,12vh,150px)!important;
  padding-bottom:90px!important;
  min-height:690px!important;
 }
 html body.pro-new-theme main.pro-main > section.am19-hero > .am19-hero-inner,
 html body.midg-public-theme main.pro-main > section.am19-hero > .am19-hero-inner{
  margin-top:0!important;margin-bottom:0!important;transform:none!important;
 }
}
@media(max-width:767px){
 html body.pro-new-theme main.pro-main > section.am19-hero,
 html body.midg-public-theme main.pro-main > section.am19-hero{
  padding-top:clamp(65px,10vh,100px)!important;
 }
}
