/* Utility bar only. The theme also uses .very_top on unrelated hero sections. */
.ks-top-bar {
    --ks-top-bg: #102694;
    --ks-top-accent: #ffcc00;
    --ks-top-label-gap: 28px;
    --ks-top-business-gap: 8px;
    box-sizing: border-box;
    background: var(--ks-top-bg);
    color: #fff;
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-shadow: none;
}

.ks-top-bar *,
.ks-top-bar *::before,
.ks-top-bar *::after {
    box-sizing: border-box;
}

.ks-top-bar .ks-top-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0;
    max-width: 1450px;
    min-height: 56px;
    margin-inline: auto;
    padding: 0 20px;
}

.ks-top-bar .ks-top-bar__intro,
.ks-top-bar .ks-top-bar__call,
.ks-top-bar .ks-top-bar__connect,
.ks-top-bar ul,
.ks-top-bar li {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    font: inherit;
    letter-spacing: normal;
}

.ks-top-bar .ks-top-bar__intro {
    flex-wrap: wrap;
    /* Include the first service's 6px inset in the visible label gap. */
    column-gap: calc(var(--ks-top-label-gap) - 6px);
    padding-inline-end: 24px;
    /* Keep the content close to the logo's overlapping upper edge. */
    padding-inline-start: 208px;
}

.ks-top-bar .ks-top-bar__businesses {
    flex-wrap: wrap;
    color: #f5f7ff;
    gap: 0 var(--ks-top-business-gap);
}

.ks-top-bar .ks-top-bar__businesses li {
    position: relative;
    gap: 3px;
    min-height: 32px;
}

.ks-top-bar .ks-top-bar__businesses li + li::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(-0.5 * var(--ks-top-business-gap) - 0.5px);
    top: 50%;
    width: 1px;
    height: 24px;
    background: rgba(201, 211, 255, 0.14);
    transform: translateY(-50%);
    pointer-events: none;
}

.ks-top-bar .ks-top-bar__business {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 6px;
    border-radius: 6px;
    color: #f5f7ff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
    text-decoration: none;
}

.ks-top-bar .ks-top-bar__legacy-businesses {
    color: var(--ks-top-accent);
}

/* Mobile uses a disclosure; tablets and desktop show the regular service list. */
.ks-top-bar .ks-top-bar__services {
    display: none;
}

.ks-top-bar span.ks-top-bar__business {
    font-weight: 600;
    opacity: 1;
}

.ks-top-bar .ks-top-bar__businesses [aria-current="true"] > .ks-top-bar__business {
    background: transparent;
    color: var(--ks-top-accent);
    font-weight: 600;
    opacity: 1;
}

.ks-top-bar .ks-top-bar__call,
.ks-top-bar .ks-top-bar__connect {
    flex-shrink: 0;
    gap: 10px;
}

.ks-top-bar .ks-top-bar__call {
    /* Match the visible space before the social glyph, including its inset. */
    gap: var(--ks-top-label-gap);
    padding-inline: 24px;
}

.ks-top-bar .ks-top-bar__connect {
    padding-inline-start: 20px;
}

.ks-top-bar .ks-top-bar__label {
    color: #c9d3ff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: uppercase;
}

.ks-top-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    text-decoration: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    /* Override the legacy global transition:all !important on anchors. */
    transition: color 120ms ease, background-color 120ms ease !important;
}

.ks-top-bar a:hover {
    background: transparent;
    color: var(--ks-top-accent);
    text-decoration: underline;
}

.ks-top-bar .ks-top-bar__businesses a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.ks-top-bar .ks-top-bar__businesses a:hover {
    background: transparent;
    color: var(--ks-top-accent);
    text-decoration: underline;
}

.ks-top-bar .ks-top-bar__businesses a:focus {
    outline-offset: -4px;
}

.ks-top-bar a:focus {
    /* The theme globally removes every anchor outline with !important. */
    outline: 2px solid var(--ks-top-accent) !important;
    outline-offset: 3px;
}

.ks-top-bar .ks-top-bar__cta {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    min-width: 136px;
    min-height: 36px;
    padding: 5px 0;
    border: 0;
    border-radius: 6px;
    background: var(--ks-top-accent);
    color: var(--ks-top-bg);
    font-weight: 700;
    text-align: center;
}

.ks-top-bar .ks-top-bar__cta-icon {
    box-sizing: content-box;
    display: block;
    width: 18px;
    height: 18px;
    padding: 4px 10px;
    border-inline-end: 1px solid rgba(16, 38, 148, 0.3);
}

.ks-top-bar .ks-top-bar__cta-label {
    padding-inline: 12px;
}

.ks-top-bar .ks-top-bar__cta:hover {
    background: #e6b800;
    color: var(--ks-top-bg);
    text-decoration: none;
}

.ks-top-bar .ks-top-bar__cta:focus {
    outline-color: var(--ks-top-bg) !important;
    outline-offset: -4px;
}

.ks-top-bar .ks-top-bar__connect {
    align-self: stretch;
}

.ks-top-bar .ks-top-bar__socials li {
    align-items: stretch;
}

.ks-top-bar .ks-top-bar__socials {
    align-self: center;
    align-items: center;
    gap: 0;
}

.ks-top-bar .ks-top-bar__socials a {
    width: 44px;
    height: 36px;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 6px;
    text-decoration: none;
}

.ks-top-bar .ks-top-bar__socials a:hover {
    background: #0d2185;
    color: var(--ks-top-accent);
    text-decoration: none;
}

.ks-top-bar .ks-top-bar__socials a:focus {
    outline-offset: -4px;
}

.ks-top-bar .ks-top-bar__socials svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

@media (min-width: 80rem) {
    /* All masthead variants now share the navigation's 1450px container. */
    .ks-top-bar--inner .ks-top-bar__intro {
        padding-inline-start: 208px;
        padding-inline-end: 12px;
    }
}

/* With Open Sans, all desktop labels need about 1351px. Hide the social
   caption first; the tablet rules below remove the call caption next. */
@media (max-width: 84.99rem) {
    .ks-top-bar .ks-top-bar__contact { display: none; }
}

@media (max-width: 79.99rem) {
    .ks-top-bar .ks-top-bar__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px 16px;
        padding: 8px 20px;
    }

    .ks-top-bar .ks-top-bar__intro {
        grid-column: auto;
        justify-content: flex-start;
        gap: 4px 16px;
        padding: 0;
    }

    .ks-top-bar .ks-top-bar__intro > .ks-top-bar__businesses {
        /* Align the first service's text with Welcome when the list wraps below it. */
        margin-inline-start: -6px;
    }

    .ks-top-bar .ks-top-bar__call,
    .ks-top-bar .ks-top-bar__connect {
        padding: 0;
        border-inline: 0;
    }

    .ks-top-bar .ks-top-bar__call > .ks-top-bar__label,
    .ks-top-bar .ks-top-bar__contact {
        display: none;
    }

    .ks-top-bar .ks-top-bar__socials a {
        width: 36px;
        padding-inline: 9px;
    }
}

@media (max-width: 39.99rem) {
    .ks-top-bar {
        font-size: 13px;
    }

    .ks-top-bar .ks-top-bar__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding-block: 12px 16px;
    }

    .ks-top-bar .ks-top-bar__intro {
        flex-direction: column;
        padding: 0;
        border: 0;
    }

    .ks-top-bar .ks-top-bar__businesses {
        justify-content: center;
    }

    .ks-top-bar .ks-top-bar__call,
    .ks-top-bar .ks-top-bar__connect {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        padding: 0;
        border: 0;
    }

    .ks-top-bar .ks-top-bar__call {
        flex-wrap: nowrap;
    }

    .ks-top-bar .ks-top-bar__call .ks-top-bar__label {
        min-width: 0;
    }

    .ks-top-bar a {
        min-height: 44px;
    }

    .ks-top-bar .ks-top-bar__cta,
    .ks-top-bar .ks-top-bar__socials a {
        min-height: 36px;
    }

    .ks-top-bar .ks-top-bar__socials a {
        width: 44px;
    }
}

@media (max-width: 30rem) {
    .ks-top-bar .ks-top-bar__inner {
        grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
        column-gap: 0;
        row-gap: 8px;
    }

    .ks-top-bar .ks-top-bar__call > .ks-top-bar__label,
    .ks-top-bar .ks-top-bar__contact {
        display: none;
    }

    .ks-top-bar .ks-top-bar__call {
        grid-column: 2;
    }

    .ks-top-bar .ks-top-bar__connect {
        grid-column: 3;
        margin-inline-start: 12px;
    }

    .ks-top-bar .ks-top-bar__socials a {
        width: 36px;
        padding-inline: 9px;
    }
}

@media (max-width: 23rem) {
    .ks-top-bar {
        /* Keep the four services together on the narrowest screens. */
        --ks-top-business-gap: 4px;
    }

    .ks-top-bar .ks-top-bar__inner {
        padding-inline: 12px;
    }
}

@media (max-width: 39.99rem) {
    .ks-top-bar {
        position: relative;
        /* Float over the masthead while staying below the main navigation. */
        z-index: 90;
    }

    .ks-top-bar .ks-top-bar__business { font-size: 13px; }
    .ks-top-bar .ks-top-bar__businesses li + li::before { content: none; }

    .ks-top-bar .ks-top-bar__inner {
        /* Let enlarged text reflow without shrinking the touch targets. */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 8px;
        row-gap: 12px;
        padding-inline: 8px;
    }

    .ks-top-bar .ks-top-bar__intro--disclosure {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
    }

    .ks-top-bar .ks-top-bar__welcome { max-width: 100%; min-height: 0; }

    .ks-top-bar .ks-top-bar__intro--disclosure > .ks-top-bar__businesses {
        display: none;
    }

    .ks-top-bar .ks-top-bar__call { flex: 0 0 auto; }
    .ks-top-bar .ks-top-bar__connect { flex: 0 0 auto; margin-inline-start: clamp(8px, calc(100vw - 272px), 24px); }
    .ks-top-bar .ks-top-bar__cta-label { white-space: nowrap; }
    .ks-top-bar .ks-top-bar__socials a { width: 36px; padding-inline: 9px; }

    .ks-top-bar .ks-top-bar__services {
        position: relative;
        display: block;
        flex: 0 0 auto;
        min-width: 96px;
    }

    .ks-top-bar .ks-top-bar__services-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        min-height: 36px;
        padding: 6px 12px;
        border: 1px solid #fff;
        border-radius: 6px;
        background: transparent;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
        cursor: pointer;
        list-style: none;
    }

    .ks-top-bar .ks-top-bar__services-toggle::-webkit-details-marker { display: none; }
    .ks-top-bar .ks-top-bar__services-toggle::marker { content: ""; }
    .ks-top-bar .ks-top-bar__service-current { color: #fff; }
    .ks-top-bar .ks-top-bar__services-chevron { display: block; flex: 0 0 10px; width: 10px; height: 10px; }
    .ks-top-bar .ks-top-bar__services[open] .ks-top-bar__services-toggle { border-radius: 6px 6px 0 0; }
    .ks-top-bar .ks-top-bar__services[open] .ks-top-bar__services-chevron { transform: rotate(180deg); }
    .ks-top-bar .ks-top-bar__services-toggle:hover { color: var(--ks-top-accent); }
    .ks-top-bar .ks-top-bar__services-toggle:focus-visible { outline: 2px solid var(--ks-top-accent) !important; outline-offset: -3px; }
    .ks-top-bar .ks-top-bar__services:not([open]) > .ks-top-bar__businesses { display: none; }

    .ks-top-bar .ks-top-bar__services > .ks-top-bar__businesses {
        position: absolute;
        inset-block-start: 100%;
        inset-inline-start: 0;
        inset-inline-end: auto;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 8px 4px 4px;
        border: 0;
        border-top: 1px solid rgba(201, 211, 255, .2);
        border-radius: 0 0 6px 6px;
        background: #0d2185;
        color: #fff;
        box-shadow: none;
    }

    .ks-top-bar .ks-top-bar__services .ks-top-bar__business {
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        padding: 10px 9px;
        border-radius: 0;
        color: #fff;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .ks-top-bar .ks-top-bar__services [aria-current="true"] > .ks-top-bar__business {
        border: 0;
        background: transparent;
        color: #fff;
        font-weight: 600;
    }

    .ks-top-bar .ks-top-bar__services li:not([aria-current]) > span {
        color: #fff;
        font-weight: 600;
        opacity: .78;
    }

    .ks-top-bar .ks-top-bar__services a:hover {
        background: #f0f4ff;
        color: var(--ks-top-bg);
        text-decoration: underline;
    }

    .ks-top-bar .ks-top-bar__services a:focus {
        background: var(--ks-top-bg);
        color: #fff;
        text-decoration: underline;
        outline: 2px solid var(--ks-top-accent) !important;
        outline-offset: -3px;
    }
}

@media (max-width: 20rem) {
    .ks-top-bar .ks-top-bar__business { padding-inline: 3px; font-size: 13px; }
}

/* Full CTA and the wider social gap need 380px, plus the 16px outer inset. */
@media (max-width: 395.98px) {
    /* The link keeps its full accessible name when the visible label is hidden. */
    .ks-top-bar .ks-top-bar__cta {
        grid-template-columns: 1fr;
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    .ks-top-bar .ks-top-bar__cta-label { display: none; }
    .ks-top-bar .ks-top-bar__cta-icon { justify-self: center; width: 16px; height: 16px; padding: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ks-top-bar a {
        transition: none !important;
    }
}

@media (forced-colors: active) {
    .ks-top-bar .ks-top-bar__cta {
        border: 1px solid ButtonText;
    }

    .ks-top-bar a:focus,
    .ks-top-bar .ks-top-bar__services-toggle:focus-visible {
        outline-color: Highlight !important;
    }
}
