/* Keep the desktop branding and search together above compact navigation. */
#ast-desktop-header .site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    text-align: left;
}

#ast-desktop-header .site-branding .site-logo-img,
#ast-desktop-header .site-branding .custom-logo-link {
    display: block;
    flex: none;
}

#ast-desktop-header .site-branding .custom-logo-link img {
    display: block;
    width: 76px;
    max-width: 76px;
    height: auto;
    margin: 0;
}

#ast-desktop-header .site-branding .site-title a {
    color: #fff;
}

#ast-desktop-header .site-header-above-section-right .vultures-header-search {
    position: static;
    width: min(280px, 100%);
    margin-inline-start: 12px;
}

#ast-desktop-header .site-header-above-section-right .ast-builder-social-element {
    margin-inline: 6px;
}

#ast-desktop-header #ast-hf-menu-1 {
    justify-content: center;
}

#ast-desktop-header #ast-hf-menu-1 > .menu-item {
    line-height: 1.3;
}

#ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
    display: flex;
    align-items: center;
    padding: 0 clamp(7px, .65vw, 11px);
    min-height: 46px;
    line-height: 1.3;
    white-space: nowrap;
}

#ast-desktop-header #ast-hf-menu-1 > .current-menu-item > .menu-link {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .32em;
}

/* Keep the phone masthead short and both controls comfortably tappable. */
#ast-mobile-header .site-branding {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
    margin-inline-start: 0;
}

#ast-mobile-header .site-branding .site-logo-img,
#ast-mobile-header .site-branding .custom-logo-link {
    display: block;
    flex: none;
}

#ast-mobile-header .site-branding .custom-logo-link img {
    display: block;
    width: clamp(46px, 15vw, 64px);
    height: auto;
    margin: 0;
}

#ast-mobile-header .site-branding .site-title {
    max-width: 17ch;
    font-size: clamp(12px, 3.75vw, 16px);
    line-height: 1.25;
}

#ast-mobile-header .site-header-primary-section-right {
    gap: 3px;
    justify-content: center;
    align-items: center;
}

#ast-mobile-header .vultures-mobile-search {
    padding: 0;
    margin: 0;
}

#ast-mobile-header .vultures-mobile-search summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 10px;
}

#ast-mobile-header .vultures-mobile-search:not([open]) .vultures-header-search {
    display: none;
}

#ast-mobile-header .ast-button-wrap .menu-toggle {
    min-height: 44px;
    min-width: 44px;
}

/* Align simple research pages with the site's olive reading templates. */
body:is(.page-id-10001, .page-id-9335, .page-id-9336, .page-id-9267) #content {
    background: #5d6532;
    color: #fff;
}

body:is(.page-id-10001, .page-id-9335, .page-id-9336, .page-id-9267) #content article {
    max-width: 76ch;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 62px) clamp(16px, 3vw, 32px);
    background: transparent;
    color: #fff;
}

body:is(.page-id-10001, .page-id-9335, .page-id-9336, .page-id-9267) #content article :is(h1, h2, h3, h4) {
    color: inherit;
}

body:is(.page-id-10001, .page-id-9335, .page-id-9336, .page-id-9267) #content article :is(.entry-header, .entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > h2, .entry-content > h3) {
    margin-inline: 0;
}

body:is(.page-id-10001, .page-id-9335, .page-id-9336, .page-id-9267) #content article .entry-content a:not(.wp-block-button__link) {
    color: #ffe28a;
    text-decoration: underline;
    text-underline-offset: .16em;
    overflow-wrap: anywhere;
}

#ast-desktop-header .site-header-above-section-right > .ast-builder-layout-element:has(.header-social-item) {
    position: static;
    order: 1;
}

@media (min-width: 1340px) {
    #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
        padding-inline: clamp(4px, calc((100vw - 1230px) / 34), 11px);
    }
}

@media (min-width: 922px) and (max-width: 1339px) {
    #ast-desktop-header #ast-hf-menu-1 {
        display: grid;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        width: 100%;
    }

    #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
        justify-content: center;
        text-align: center;
        white-space: normal;
    }
}

#ast-mobile-header .site-branding .custom-logo-link img {
    max-width: clamp(46px, 15vw, 64px);
}

#ast-mobile-header .site-header-primary-section-right > .ast-builder-layout-element {
    margin: 0;
}
