/* The header is transparent and 130px tall. A banner that opens the page runs up behind it,
   so the header never sits on a white strip above a coloured banner. */
header.header {
    position: relative;
    z-index: 20;
}

/* Solid-colour banners: a transparent top border extends the background behind the header. */
.under-header {
    margin-top: -130px;
    border-top: 130px solid transparent;
}

/* Banners whose image or overlay covers only the padding box get the extra height as padding. */
.breadcrumb-area[data-black-overlay] {
    margin-top: -130px;
    padding-top: 130px;
}

.aidr-hero-banner {
    margin-top: -130px;
    padding-top: 190px !important; /* the banner sets its 60px padding inline */
}

.sw-dev-hero {
    margin-top: -130px;
    padding-top: 250px !important;
}

@media only screen and (max-width: 1199px) {
    .sw-dev-hero { padding-top: 226px !important; }
}

@media only screen and (max-width: 991px) {
    .sw-dev-hero { padding-top: 218px !important; }
}

@media only screen and (max-width: 767px) {
    .sw-dev-hero { padding-top: 190px !important; }
}

/* Dark banners need the light logo and menu, as dark.css gives other dark pages. */
body:has(.aidr-hero-banner) .dynlogo,
body:has(.breadcrumb-area[data-black-overlay]) .dynlogo {
    content: url(/assets/images/logo/logo-2.svg);
}

body:has(.aidr-hero-banner) .header .menu-mobile-trigger span,
body:has(.breadcrumb-area[data-black-overlay]) .header .menu-mobile-trigger span {
    background: white;
}

@media (min-width: 992px) {
    body:has(.aidr-hero-banner) .dyncolor,
    body:has(.breadcrumb-area[data-black-overlay]) .dyncolor {
        color: white !important;
    }
}

/* Footer link columns: two per row on phones instead of one long centred stack. */
@media only screen and (max-width: 767px) {
    .footer .footer-widgets {
        display: flex;
        flex-wrap: wrap;
        text-align: left;
    }

    .footer .footer-widgets > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }

    .footer .footer-widgets .single-widget {
        text-align: left;
    }
}
