/* Header-only rules extracted from the approved homepage stylesheet. */
.ait-header--home,
.ait-header--home * {
    box-sizing: border-box;
}

.ait-header--home {
    position: absolute !important;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    background: transparent !important;
    font-family: "Open Sans", sans-serif;
}

.ait-header--home a {
    text-decoration: none;
}

.ait-home-header__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 49px;
    padding: 0 40px;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    font-size: 15px;
    font-weight: 500;
    line-height: 25px;
}

.ait-home-header__welcome,
.ait-home-header__social {
    display: flex;
    align-items: center;
}

.ait-home-header__welcome-icon {
    position: relative;
    left: -2px;
    display: inline-flex;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    margin-right: 4px;
    color: #fff;
}

.ait-home-header__welcome-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentcolor;
}

.ait-home-header__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 6px;
    color: #ff3838;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline !important;
}

.ait-home-header__contact-link svg {
    width: 10px;
    height: 11px;
    fill: #ff3838;
}

.ait-home-header__social {
    gap: 30px;
}

.ait-home-header__social a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 15px;
}

.ait-home-header__social a:hover,
.ait-home-header__contact-link:hover {
    color: #fd3737;
}

.ait-home-header__main {
    display: flex;
    align-items: center;
    min-height: 111px;
    padding: 6px 40px;
}

.ait-home-header__main-left {
    display: flex;
    flex: 0 0 75%;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 10px 50px 10px 10px;
}

.ait-home-header__logo {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
}

.ait-home-header__logo img {
    display: block;
    width: auto;
    max-width: 155px;
    max-height: 50px;
    object-fit: contain;
}

.ait-home-header__nav {
    margin-left: auto;
}

.ait-home-header__nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ait-home-header__nav > ul > li {
    position: relative;
    margin: 0 20px 0 0;
}

.ait-home-header__nav > ul > li:last-child {
    margin-right: 0;
}

.ait-home-header__nav > ul > li > a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: 28px 20px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
}

.ait-home-header__nav > ul > li.is-current > a,
.ait-home-header__nav > ul > li > a:hover,
.ait-home-header__nav > ul > li > a:focus-visible {
    color: #ff3838;
}

.ait-home-header__nav > ul > li.is-current > a::before {
    position: absolute;
    z-index: -1;
    top: 19px;
    right: 0;
    bottom: 19px;
    left: 0;
    border-radius: 6px;
    background: linear-gradient(91.04deg, rgb(255 255 255 / 20%) 0.82%, rgb(255 255 255 / 17%) 0.99%);
    content: "";
}

.ait-home-header__nav .has-submenu > a span {
    margin-left: 5px;
    font-size: 13px;
    line-height: 1;
}

.ait-home-header__nav .submenu {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    display: block;
    width: 235px;
    padding: 8px 0;
    border-radius: 6px;
    background: #132241;
    box-shadow: 0 12px 35px rgb(0 0 0 / 18%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.ait-home-header__nav .has-submenu:hover > .submenu,
.ait-home-header__nav .has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ait-home-header__nav .submenu li {
    margin: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.ait-home-header__nav .submenu li:last-child {
    border-bottom: 0;
}

.ait-home-header__nav .submenu a {
    display: block;
    padding: 12px 30px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
}

.ait-home-header__nav .submenu a:hover,
.ait-home-header__nav .submenu a:focus-visible {
    color: #fff;
    background: #0e1a33;
}

.ait-home-header__tools {
    display: flex;
    flex: 0 0 25%;
    justify-content: flex-end;
    min-width: 0;
    padding: 10px 10px 10px 0;
}

.ait-home-header__phone {
    display: flex;
    align-items: center;
}

.ait-home-header__phone > img {
    align-self: flex-start;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: auto;
    margin: 13px 15px 0 0;
}

.ait-home-header__phone-label {
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    white-space: nowrap;
}

.ait-home-header__phone-number {
    display: block;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    white-space: nowrap;
}

.ait-home-header__phone-number:hover {
    color: #fd3737;
}

.ait-home-header__mobile-menu {
    display: none;
}

@media (max-width: 1024px) {
    .ait-home-header__topbar {
        padding-inline: 20px;
    }

    .ait-home-header__main-left {
        flex: 1 1 100%;
        padding: 10px 30px 10px 10px;
    }

    .ait-home-header__logo img {
        max-height: 45px;
    }

    .ait-home-header__nav > ul > li > a {
        min-height: 52px;
        padding: 14px 10px;
    }

    .ait-home-header__nav > ul > li.is-current > a::before {
        top: 5px;
        bottom: 5px;
    }

    .ait-home-header__nav > ul > li {
        margin-right: 10px;
    }

    .ait-home-header__tools {
        display: none;
    }
}

@media (max-width: 767px) {
    .ait-home-header__topbar,
    .ait-home-header__nav,
    .ait-home-header__tools {
        display: none;
    }

    .ait-home-header__main {
        min-height: 80px;
        padding: 0 15px;
    }

    .ait-home-header__main-left {
        flex: 1 1 auto;
        padding: 10px 0;
    }

    .ait-home-header__mobile-menu {
        position: relative;
        display: block;
        margin-left: auto;
    }

    .ait-home-header__mobile-menu summary {
        display: grid;
        width: 44px;
        height: 44px;
        padding: 10px;
        cursor: pointer;
        list-style: none;
    }

    .ait-home-header__mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .ait-home-header__mobile-menu summary span {
        display: block;
        height: 2px;
        margin-block: 2px;
        background: #fff;
    }

    .ait-home-header__mobile-menu nav {
        position: absolute;
        top: 50px;
        right: 0;
        display: grid;
        width: 235px;
        padding: 12px;
        border-radius: 6px;
        background: #132241;
        box-shadow: 0 12px 35px rgb(0 0 0 / 18%);
    }

    .ait-home-header__mobile-menu nav a {
        padding: 10px;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
    }
}

/* Internal-page wrapper: same approved header, no homepage-section styles. */
.ait-site-header-slot {
    position: relative;
    z-index: 999;
    display: block;
    width: 100%;
    min-height: 160px;
    margin: 0 !important;
    overflow: visible !important;
    background-color: #152445;
    background-image: none;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.ait-site-header-slot > .ait-header--home {
    position: relative !important;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: visible;
    background: transparent !important;
}

.ait-site-header-placeholder {
    display: none;
    width: 100%;
}

.ait-site-header-placeholder.is-active {
    display: block;
}

.ait-site-header-slot.sticky {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
    min-height: 0;
    width: 100%;
    backface-visibility: hidden;
    animation: ait-site-sticky-enter .5s forwards;
}

.ait-site-header-slot.sticky > .ait-header--home {
    background: #152445 !important;
}

.ait-site-header-slot.sticky .ait-home-header__topbar {
    display: none;
}

.ait-site-header-slot.sticky .ait-home-header__logo img {
    max-height: 40px !important;
}

body.admin-bar .ait-site-header-slot.sticky {
    top: 32px;
}

@keyframes ait-site-sticky-enter {
    from {
        transform: translateY(-40px);
    }

    to {
        transform: translateY(0);
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .ait-site-header-slot.sticky {
        top: 46px;
    }
}

@media (max-width: 767px) {
    .ait-site-header-slot {
        min-height: 80px;
    }

    .ait-site-header-slot .ait-home-header__mobile-menu nav a.is-current {
        color: #ff3838;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ait-site-header-slot.sticky {
        animation: none;
    }
}

/* AIT_INTERNAL_PAGE_HERO_COMPACT */
body:not(.home) .ait-page-hero {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 24px 18px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

body:not(.home) .ait-page-hero::before,
body:not(.home) .ait-page-hero::after {
    display: none !important;
    content: none !important;
}

body:not(.home) .ait-page-hero h1,
body:not(.home) .ait-page-hero .wp-block-post-title {
    margin: 0 0 10px !important;
    color: #111111 !important;
}

body:not(.home) .ait-page-hero [class*="breadcrumb"],
body:not(.home) .ait-page-hero [class*="breadcrumb"] a,
body:not(.home) .ait-page-hero [class*="breadcrumb"] span {
    color: #111111 !important;
}

body:not(.home) .ait-page-hero [class*="breadcrumb"] a:hover,
body:not(.home) .ait-page-hero [class*="breadcrumb"] a:focus-visible {
    color: #ff3838 !important;
}

@media (max-width: 767px) {
    body:not(.home) .ait-page-hero {
        padding: 10px 16px 14px !important;
    }

    body:not(.home) .ait-page-hero h1,
    body:not(.home) .ait-page-hero .wp-block-post-title {
        margin-bottom: 8px !important;
    }
}

/* AIT_INTERNAL_PAGE_HERO_TIGHT_SPACING */
body:not(.home) .ait-page-hero {
    justify-content: flex-start !important;
}

body:not(.home) .ait-page-hero > .wp-block-group,
body:not(.home) .ait-page-hero > .wp-block-group__inner-container,
body:not(.home) .ait-page-hero .ait-page-hero__inner {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    justify-content: flex-start !important;
}

body:not(.home) .ait-page-hero h1,
body:not(.home) .ait-page-hero .wp-block-post-title {
    margin-top: 0 !important;
}

/* AIT_INTERNAL_PAGE_HERO_LEFT_ALIGNMENT */
body:not(.home) .ait-page-hero {
    text-align: left !important;
}

body:not(.home) .ait-page-hero > .wp-block-group,
body:not(.home) .ait-page-hero > .wp-block-group__inner-container,
body:not(.home) .ait-page-hero .ait-page-hero__inner,
body:not(.home) .ait-page-hero > h1,
body:not(.home) .ait-page-hero > .wp-block-post-title,
body:not(.home) .ait-page-hero > [class*="breadcrumb"] {
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: left !important;
}

body:not(.home) .ait-page-hero > .wp-block-group,
body:not(.home) .ait-page-hero > .wp-block-group__inner-container,
body:not(.home) .ait-page-hero .ait-page-hero__inner {
    align-items: flex-start !important;
}

body:not(.home) .ait-page-hero .ait-page-hero__inner h1,
body:not(.home) .ait-page-hero .ait-page-hero__inner .wp-block-post-title,
body:not(.home) .ait-page-hero .ait-page-hero__inner [class*="breadcrumb"],
body:not(.home) .ait-page-hero > .wp-block-group h1,
body:not(.home) .ait-page-hero > .wp-block-group .wp-block-post-title,
body:not(.home) .ait-page-hero > .wp-block-group [class*="breadcrumb"] {
    width: 100% !important;
    text-align: left !important;
}

body:not(.home) .ait-page-hero [class*="breadcrumb"] {
    justify-content: flex-start !important;
}

@media (max-width: 767px) {
    body:not(.home) .ait-page-hero > .wp-block-group,
    body:not(.home) .ait-page-hero > .wp-block-group__inner-container,
    body:not(.home) .ait-page-hero .ait-page-hero__inner,
    body:not(.home) .ait-page-hero > h1,
    body:not(.home) .ait-page-hero > .wp-block-post-title,
    body:not(.home) .ait-page-hero > [class*="breadcrumb"] {
        width: calc(100% - 32px) !important;
    }
}

/* AIT_INTERNAL_BREADCRUMB_H1_ALIGNMENT */
body:not(.home) .ait-page-hero .ait-breadcrumbs,
body:not(.home) .ait-page-hero [class*="breadcrumb"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    align-self: stretch !important;
    justify-content: flex-start !important;
}

body:not(.home) .ait-page-hero .ait-breadcrumbs ol,
body:not(.home) .ait-page-hero .ait-breadcrumbs ul,
body:not(.home) .ait-page-hero [class*="breadcrumb"] ol,
body:not(.home) .ait-page-hero [class*="breadcrumb"] ul {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

body:not(.home) .ait-page-hero [class*="breadcrumb"] > :first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Keep article titles on one line where the viewport can accommodate them. */
@media (min-width: 768px) {
    body.single-post .ait-page-hero__title {
        max-width: none !important;
        font-size: clamp(30px, 3.2vw, 46px);
        white-space: nowrap;
    }
}
