/*
 * Service title alignment plus Blog-matched Search Services / Next Service controls.
 * The main Blog page and all non-service pages are excluded by the body class.
 */
body.bsha-service-title-align-v120 .page-content-section,
body.bsha-service-title-align-v120 main > .section:first-child {
    padding-top: var(--page-top-margin, 72px) !important;
}

body.bsha-service-title-align-v120 .page-content-section > .content-body {
    padding-top: 0 !important;
}

body.bsha-service-title-align-v120 .page-content-section > .content-body > .service-page:first-child > .service-hero-clean:first-child,
body.bsha-service-title-align-v120 .page-content-section > article.content-body > .service-page:first-child > .service-hero-clean:first-child,
body.bsha-service-title-align-v120 .service-page:first-child > .service-hero-clean:first-child,
body.bsha-service-title-align-v120 .seo-service-page:first-child > .service-hero-clean:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.bsha-service-title-align-v120 .service-hero-clean:first-child > h1:first-of-type,
body.bsha-service-title-align-v120 .seo-service-page:first-child .service-hero-clean:first-child > h1:first-of-type {
    margin-top: 0 !important;
}

.bsha-service-controls-v110 {
    position: relative;
    z-index: 10020;
    min-height: 70px;
}

.bsha-search-shell-v110 {
    pointer-events: none;
}

.bsha-search-shell-v110 .bsha-search-pill-v110,
.bsha-search-shell-v110 .bsha-search-panel-v110 {
    pointer-events: auto;
}

.bsha-next-wrap-v110 {
    pointer-events: none !important;
}

.bsha-next-button-v110 {
    box-sizing: border-box;
    pointer-events: auto !important;
    white-space: nowrap;
    text-decoration: none !important;
}

.bsha-next-button-v110:hover,
.bsha-next-button-v110:focus-visible,
.bsha-next-button-v110:active {
    text-decoration: none !important;
}

.bsha-content-fallback-v110 {
    margin-bottom: 1.5rem;
}

/* Exact fallback dimensions and interaction treatment used by the Blog pill. */
.bsha-search-pill-v110,
.bsha-next-button-v110 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid #355e3b;
    border-radius: 999px;
    background: #fff;
    color: #355e3b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(37, 57, 42, .12);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.bsha-search-pill-v110:hover,
.bsha-search-pill-v110:focus-visible,
.bsha-search-pill-v110[aria-expanded="true"],
.bsha-next-button-v110:hover,
.bsha-next-button-v110:focus-visible,
.bsha-next-button-v110:active {
    border-color: #355e3b;
    background: #355e3b;
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.bsha-search-panel-v110 {
    pointer-events: auto;
    width: min(455px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(51, 94, 59, .18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(32, 46, 37, .18);
}

.bsha-search-panel-v110[hidden] {
    display: none !important;
}

/* Keep controls floating, as on /blog/, so the service heading is not pushed down. */
@media (min-width: 901px) {
    body.bsha-service-title-align-v120 .bsha-service-controls-v110 {
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
}

@media (max-width: 900px) {
    body.bsha-service-title-align-v120 .page-content-section,
    body.bsha-service-title-align-v120 main > .section:first-child {
        padding-top: var(--page-top-margin, 56px) !important;
    }

    .bsha-service-controls-v110 {
        min-height: 126px;
    }

    .bsha-next-wrap-v110 {
        display: flex !important;
        justify-content: center !important;
        margin: 10px 14px 0 !important;
    }
}

@media (max-width: 560px) {
    body.bsha-service-title-align-v120 .page-content-section,
    body.bsha-service-title-align-v120 main > .section:first-child {
        padding-top: var(--page-top-margin, 44px) !important;
    }
}
