/* Fix banner extra gap beneath sticky headers; compatible with legacy class names */
/* Banner itself should not add extra top margin */
.page-header-banner,
.page-header--banner{ margin-top:0 !important; border-top:0 !important; }
body.admin-bar .page-header-banner,
body.admin-bar .page-header--banner{ margin-top:0 !important; }
.header-sticky + .page-header-banner,
.header-sticky + .page-header--banner{ margin-top:0 !important; }
.page-template .page-header-banner:first-child,
.page-template .page-header--banner:first-child{ margin-top:0 !important; }

/* When body has df-has-banner, normalize header container margins */
body.df-has-banner .site-header,
body.df-has-banner header.header{ margin-bottom:0 !important; border-bottom:0 !important; box-shadow:none !important; }
body.df-has-banner .header-sticky,
body.df-has-banner .header-sticky-last,
body.df-has-banner .site-header .container,
body.df-has-banner header.header .container{ margin-bottom:0 !important; padding-bottom:0 !important; }

/* Clear spacer elements if any */
body.df-has-banner .wp-header-height,
body.df-has-banner .header-spacer,
body.df-has-banner .header-gap{ height:0 !important; margin:0 !important; padding:0 !important; }
body.df-has-banner .site-main,
body.df-has-banner .content-area{ padding-top:0 !important; }

@media (max-width:782px){
  body.admin-bar .page-header-banner,
  body.admin-bar .page-header--banner{ margin-top:0 !important; }
}
