/*
  Footer colour meets the last section (MB-77): loaded only when Shared data › Header, menu and footer › Footer colour is
  set (Views/Partials/site/footer.cshtml). When the page's last section runs edge to edge (a Hero or Form side panel, or a
  coloured section with Site settings › Brand › "Coloured sections run edge to edge" on), <main>'s bottom padding goes,
  so no white strip shows between that section and the footer band. Any other last section keeps the gap as before.
*/
.site-main:has(+ .site-footer--band):has(> .umb-block-list:last-child > :last-child:is(.hero:not(.hero--contained), .form-block--panel)),
.site-main--edge:has(+ .site-footer--band):has(> .umb-block-list:last-child > .section-colour:last-child:not(.band--plain)) {
  padding-bottom: 0;
}
