
/* =========================================================
   PAGE-END / FOOTER SPACING v92
   Keeps the global footer visually attached to content without
   creating an oversized blank closing area on shorter pages.
   ========================================================= */

.site-footer{
  margin-top:0!important;
}

/* StoryMap-style pages previously kept a larger 74px closing pad. */
body.story-page .spatial-story{
  padding-bottom:48px!important;
}

/* Large final sections normalized to the portfolio's compact rhythm. */
body.uav-field-page .field-evidence-section{
  padding-bottom:44px!important;
}

body.credential-page .credential-record-section{
  padding-bottom:48px!important;
}

body.teaching-capacity-page .tc-shell{
  padding-bottom:44px!important;
}

body.urban-planning-page .up-shell{
  padding-bottom:42px!important;
}

body.portfolio-route-page .portfolio-route-section{
  padding-bottom:48px!important;
}

body.automation-compact-page .automation-compact-section{
  padding-bottom:42px!important;
}

body.simple-education-page .education-simple-section{
  padding-bottom:38px!important;
}

body.blog-page main>.section:last-child,
body:not([class]) main>.section:last-child{
  padding-bottom:46px!important;
}

/* Avoid accidental margins between the actual last content block and footer. */
main>:last-child{
  margin-bottom:0!important;
}

@media(max-width:700px){
  body.story-page .spatial-story,
  body.uav-field-page .field-evidence-section,
  body.credential-page .credential-record-section,
  body.teaching-capacity-page .tc-shell,
  body.urban-planning-page .up-shell,
  body.portfolio-route-page .portfolio-route-section,
  body.automation-compact-page .automation-compact-section{
    padding-bottom:38px!important;
  }
}
