/* Shared layout for Services and Data Monitoring overviews only. */

.page-hero.unified-service-overview-hero {
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

.unified-service-overview-hero .service-vector-hero-layout {
    min-height: 0 !important;
    margin-bottom: 0;
}

body:not(.home) main > .section.unified-overview-intro {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.unified-overview-intro > .container {
    position: relative;
    padding-top: 28px;
}

.unified-overview-intro > .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: currentColor;
    opacity: .18;
    pointer-events: none;
}

.unified-overview-intro > .container > h2 {
    margin-top: 0;
    margin-bottom: 22px;
}

.unified-overview-intro > .container > .split {
    margin-top: 0;
    align-items: start;
}

@media (max-width: 760px) {
    .page-hero.unified-service-overview-hero {
        padding-bottom: 18px !important;
    }

    .unified-overview-intro > .container {
        padding-top: 22px;
    }

    .unified-overview-intro > .container > h2 {
        margin-bottom: 18px;
    }
}

/* Services overview only — compact section transitions. */

body:has(.services-progressive-hero)
main .unified-overview-intro,
body:has(.services-progressive-hero)
main .specialist-consultancy-section {
    padding-bottom: 20px !important;
}

body:has(.services-progressive-hero)
main .unified-overview-intro + .section,
body:has(.services-progressive-hero)
main .structured-seo-approach {
    padding-top: 20px !important;
}

/* Remove accumulated padding from nested sections. */

body:has(.services-progressive-hero)
main > .section:has(.structured-seo-approach),
body:has(.services-progressive-hero)
main .structured-seo-approach {
    padding-bottom: 0 !important;
}

body:has(.services-progressive-hero)
.structured-seo-approach p:last-child {
    margin-bottom: 0;
}

/* Preserve the existing bottom spacing of the
   technical implementation section. Its original
   top padding is restored by removing the override. */

@media (min-width: 761px) {
    .unified-service-overview-hero
    .vital-motion-art.vital-motion-services,
    .unified-service-overview-hero
    .vital-motion-art.data-tracking-motion-art {
        width: 80% !important;
        max-width: 472px;
        height: auto !important;
        align-self: center;
    }
}

@media (max-width: 760px) {
    body:has(.services-progressive-hero)
    main .unified-overview-intro,
    body:has(.services-progressive-hero)
    main .specialist-consultancy-section {
        padding-bottom: 16px !important;
    }

    body:has(.services-progressive-hero)
    main .unified-overview-intro + .section,
    body:has(.services-progressive-hero)
    main .structured-seo-approach {
        padding-top: 16px !important;
    }
}

/* Data Monitoring overview — avoid accumulated heading spacing. */
main > .monitoring-overview-intro + .section
> .container > .prose > h2:first-child {
    margin-top: 0;
}
