/* ========================================
   MastHP Common
======================================== */


/* ----------------------------------------
   Scrollbar
---------------------------------------- */

@media (min-width: 993px) {
    html {
        scrollbar-gutter: stable;
    }
}


/* ----------------------------------------
   Header
---------------------------------------- */

body:not(.header_scrolled) .site-header-logo {
    padding-top: 16px;
    margin-bottom: 16px;
}

body:not(.header_scrolled) .site-header-logo img {
    width: auto;
    max-height: 64px;
}

@media (min-width: 993px) {

    body:not(.header_scrolled) .site-header--layout--nav-float .site-header-container {
        align-items: center;
        min-height: 112px;
    }

    body:not(.header_scrolled) .site-header-logo {
        padding-top: 20px;
        margin-bottom: 20px;
    }

    body:not(.header_scrolled) .site-header-logo img {
        max-height: 72px;
    }

}


/* ----------------------------------------
   Global Navigation
---------------------------------------- */

/* Dev-MaST desktop styling; native Lightning spacing, weight and
   accordion behavior remain shared below this visual breakpoint. */
@media (min-width: 1100px) {
    .global-nav-list > li > a .global-nav-name {
        font-size: 16px;
    }
    .global-nav-list > li > ul.sub-menu {
        left: -2px;
        margin-left: 0;
        width: 240px;
        border: 1px solid #e5e8eb;
        background-color: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    }
    .global-nav-list > li > ul.sub-menu > li {
        background-color: #fff;
    }
    .global-nav-list > li > ul.sub-menu > li > a {
        font-size: 16px;
        line-height: 1.4;
        padding: 14px 1.2em;
        color: #2b2b2b;
        border-bottom: 1px solid #e5e8eb;
        background-color: #fff;
    }
    .global-nav-list > li > ul.sub-menu > li:last-child > a {
        border-bottom: 0;
    }
    /* Cover pointer focus/press as well as hover: Lightning uses :focus-within. */
    .global-nav-list > li > ul.sub-menu > li > a:hover,
    .global-nav-list > li > ul.sub-menu > li > a:focus,
    .global-nav-list > li > ul.sub-menu > li > a:focus-within,
    .global-nav-list > li > ul.sub-menu > li > a:active {
        background-color: #f3f8fc;
        color: #0068b7;
    }
    .global-nav-list > li > ul.sub-menu > li[class*="current"] > a {
        background-color: #fff;
        color: #0068b7;
    }
}
@media (min-width: 993px) {
    .global-nav-list > li.menu-item-has-children::after {
        display: none;
    }
}

/* ----------------------------------------
   Focus
---------------------------------------- */

.site-header a:focus-visible,
.vk-mobile-nav a:focus-visible,
.breadcrumb a:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}



/* ----------------------------------------
   Breadcrumb
---------------------------------------- */

.breadcrumb {
    background-color: #fff;
}

.breadcrumb .breadcrumb-list {
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: anywhere;
}


/* ----------------------------------------
   Footer
---------------------------------------- */

.site-footer {
    color: #565d66;
    background-color: #fff;
    border-top: 1px solid var(--vk-color-border-hr, #e5e5e5);
}

.site-footer .footer-nav-list {
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer .footer-nav a,
.site-footer .site-footer-copyright a {
    color: inherit;
    text-underline-offset: .22em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.site-footer .site-footer-copyright {
    padding-top: 28px;
    padding-bottom: 28px;
    font-size: .75rem;
    line-height: 1.7;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

/* Mobile common chrome */
@media (max-width: 767px) {


    /* Header */

    body:not(.header_scrolled) .site-header-logo {
        padding-top: 12px;
        margin-bottom: 12px;
    }

    body:not(.header_scrolled) .site-header-logo img {
        max-height: 52px;
    }


    /* Footer */

    .site-footer .site-footer-copyright {
        padding-top: 24px;
        padding-bottom: 24px;
    }


}

/* Compact lower-page identifier; separate from the TOP Hero. */
.mast-page-hero,
.mast-page-hero * { box-sizing: border-box; }
.mast-page-hero {
    height: 80px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: #20252a;
    border: 0;
}
.mast-page-hero__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1110px, calc(100% - 48px));
    height: 100%;
    margin-inline: auto;
}
.mast-page-hero__icon {
    display: block;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    /* Keep the original SVG asset; recolor only this img instance. */
    filter: brightness(0) invert(1);
}
.mast-page-hero__content {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.mast-page-hero .mast-page-hero__label {
    flex-shrink: 0;
    margin: 0;
    color: #dce2e7;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .12em;
}
.mast-page-hero .mast-page-hero__title {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .04em;
}
.mast-page-hero__title::before,
.mast-page-hero__title::after { content: none; }
@media (max-width: 599px) {
    .mast-page-hero__inner {
        width: calc(100% - 40px);
        gap: 8px;
    }
    .mast-page-hero__content { gap: 10px; }
    .mast-page-hero .mast-page-hero__label {
        font-size: 10px;
        letter-spacing: .06em;
    }
    .mast-page-hero .mast-page-hero__title {
        font-size: 20px;
        letter-spacing: .02em;
    }
}
