/*
 * The Babcock theme already supplies the definitive Search Articles and
 * Staff Login styles. These rules are intentionally limited to article-page
 * placement, equal sizing, and safe fallbacks.
 */
.bban-article-controls-v110 {
    position: relative;
    z-index: 10020;
    min-height: 70px;
}

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

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

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

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

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

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

/* Fallback styling for installations where the Babcock theme classes are absent. */
.bban-search-pill-v110,
.bban-next-button-v110 {
    display: inline-flex;
    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;
}

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

.bban-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);
}

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

@media (max-width: 900px) {
    .bban-article-controls-v110 {
        min-height: 126px;
    }

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

/* v1.2.0: Match the first individual-article heading to the main Blog page. */
@media (min-width: 901px) {
    /* The Blog page's controls float below the header and do not reserve a row.
       Remove the article-only spacer so its title starts on the same baseline. */
    body.single-post.bban-article-title-align-v120 .bban-article-controls-v110 {
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
}

body.single-post.bban-article-title-align-v120 #content > .page-content-section:first-child,
body.single-post.bban-article-title-align-v120 #content > main > .page-content-section:first-child {
    padding-top: var(--page-top-margin, 72px) !important;
}

body.single-post.bban-article-title-align-v120 .page-content-section > .content-body,
body.single-post.bban-article-title-align-v120 .page-content-section > article.content-body,
body.single-post.bban-article-title-align-v120 .seo-blog-post:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.single-post.bban-article-title-align-v120 .bban-article-primary-heading-v120,
body.single-post.bban-article-title-align-v120 .page-content-section > .content-body > .seo-blog-post:first-child > h1:first-child,
body.single-post.bban-article-title-align-v120 .page-content-section > article.content-body > .seo-blog-post:first-child > h1:first-child,
body.single-post.bban-article-title-align-v120 .page-content-section > .content-body > h1:first-child,
body.single-post.bban-article-title-align-v120 .page-content-section > article.content-body > h1:first-child {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin-top: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
}

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

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