#header .tps-desktop-panel[hidden] { display: none !important; }

@media (min-width: 1000px) {
    body:has(#header.tps-desktop-menu-ready .tps-desktop-menu-toggle[aria-expanded="true"])
        :is(.tps-service-float,.tps-guide-entry,.tps-guide-page-top,.ct-back-to-top) {
        visibility: hidden !important;
        pointer-events: none !important;
    }
    #header.tps-desktop-menu-ready [data-device="desktop"] nav[data-id="menu"] .menu > li > a.ct-menu-link {
        font-size: clamp(16px,1.35vw,19px);
        font-weight: 670;
        letter-spacing: .025em;
    }
    #header.tps-desktop-menu-ready [data-device="desktop"] [data-id="button"] .ct-button {
        border-radius: 13px !important;
        background: #18365f !important;
        color: #fff;
        box-shadow: 0 4px 12px rgba(22,57,105,.14);
    }
    #header.tps-desktop-menu-ready [data-device="desktop"] [data-id="button"] .ct-button:hover {
        background: #234980 !important;
    }
    #header [data-device="desktop"] .tps-desktop-menu-item {
        display: flex;
        align-items: center;
    }
    #header [data-device="desktop"] .tps-desktop-menu-toggle {
        box-sizing: border-box;
        display: inline-grid;
        place-items: center;
        flex: 0 0 32px;
        width: 32px;
        height: 36px;
        margin-inline: -5px 7px;
        padding: 0;
        border: 0;
        border-radius: 9px !important;
        background: transparent !important;
        color: #345783;
        box-shadow: none;
        cursor: pointer;
    }
    #header [data-device="desktop"] .tps-desktop-menu-toggle:is(:hover,[aria-expanded="true"]) {
        background: #ecf2fc !important;
        color: #20498a;
    }
    #header [data-device="desktop"] .tps-desktop-menu-item[data-menu-open] > a.ct-menu-link {
        color: #183c75;
    }
    #header .tps-desktop-menu-caret {
        width: 8px;
        height: 8px;
        margin-block-start: -4px;
        border-inline-end: 1.6px solid currentColor;
        border-block-end: 1.6px solid currentColor;
        transform: rotate(45deg);
    }
    #header .tps-desktop-menu-toggle[aria-expanded="true"] .tps-desktop-menu-caret {
        margin-block-start: 4px;
        transform: rotate(225deg);
    }
    #header [data-device="desktop"] .tps-desktop-panel {
        position: fixed;
        z-index: 1;
        top: var(--tps-site-header-bottom,85px);
        box-sizing: border-box;
        max-height: min(74dvh,calc(100dvh - var(--tps-site-header-bottom,85px) - 16px));
        overflow: auto;
        overscroll-behavior: contain;
        border: 1px solid #dce5f0;
        border-block-start: 2px solid #2c518c;
        border-radius: 0 0 20px 20px;
        background: #fffefa;
        color: #172c47;
        box-shadow: 0 24px 48px rgba(18,46,86,.15),0 4px 10px rgba(24,53,97,.07);
        text-align: start;
    }
    #header [data-device="desktop"] .tps-desktop-panel-services {
        width: min(1160px,calc(100vw - 64px));
        padding: 26px;
    }
    #header [data-device="desktop"] .tps-desktop-panel-articles {
        width: min(700px,calc(100vw - 64px));
        padding: 23px;
    }
    #header .tps-desktop-service-content,
    #header .tps-desktop-article-content {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(188px,.28fr);
        gap: clamp(16px,2vw,28px);
    }
    #header .tps-desktop-article-content:has(.tps-desktop-feature-article) {
        grid-template-columns: minmax(0,1fr) minmax(200px,.67fr);
    }
    #header .tps-desktop-article-content { grid-template-columns: 1fr; }
    #header .tps-desktop-category-heading {
        margin: 0 0 10px;
        color: #193356;
        font-size: 19px;
        font-weight: 750;
        letter-spacing: .02em;
        line-height: 1.35;
    }
    #header .tps-desktop-service-columns {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    #header .tps-desktop-service-group { min-width: 0; padding: 0 13px; }
    #header .tps-desktop-service-group:first-child { padding-inline-start: 0; }
    #header .tps-desktop-service-group:last-child { padding-inline-end: 0; }
    #header .tps-desktop-service-group + .tps-desktop-service-group {
        border-inline-start: 1px solid #e4eaf3;
    }
    #header .tps-desktop-group-heading {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        margin: 0 0 7px;
        padding: 5px 5px 10px;
        border-block-end: 1px solid #dbe6f1;
        color: #193356;
        font-size: clamp(15px,1.22vw,17px);
        font-weight: 750;
        line-height: 1.35;
    }
    #header .tps-desktop-group-heading::before {
        flex: 0 0 6px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #c88341;
        content: "";
    }
    #header .tps-desktop-menu-links {
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    #header .tps-desktop-panel-articles .tps-desktop-menu-links {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 2px 10px;
    }
    #header .tps-desktop-menu-link {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 36px;
        padding: 7px 8px;
        border-radius: 7px;
        color: #2f4660;
        font-size: clamp(14px,1.12vw,16px);
        font-weight: 550;
        line-height: 1.4;
        text-decoration: none;
    }
    #header .tps-desktop-panel-articles .tps-desktop-menu-link {
        min-height: 45px;
        padding-inline: 9px;
        font-size: 15px;
        border-block-end: 1px solid #e7ecf3;
    }
    #header .tps-desktop-panel-articles .tps-desktop-menu-link::after {
        flex: 0 0 6px;
        width: 6px;
        height: 6px;
        border-inline-end: 1.4px solid #5272a5;
        border-block-start: 1.4px solid #5272a5;
        transform: rotate(45deg);
        content: "";
    }
    #header .tps-desktop-menu-link:is(:hover,:focus-visible,[aria-current]) {
        background: #edf3fc;
        color: #204987;
    }
    #header .tps-desktop-menu-link[aria-current] {
        box-shadow: inset 3px 0 #315b97;
        font-weight: 700;
    }
    #header .tps-desktop-menu-link:focus-visible { outline-offset: -2px; }
    #header .tps-desktop-feature {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #dce5f0;
        border-radius: 15px;
        background: #f2f5fa;
        color: #193356;
        text-decoration: none;
    }
    #header .tps-desktop-feature:focus-visible { outline-offset: -4px; }
    #header .tps-desktop-feature-services {
        min-height: 245px;
        justify-content: flex-end;
        border-color: #294971;
        background: #17365e;
        color: #fff;
    }
    #header .tps-desktop-feature-media {
        position: relative;
        display: block;
        overflow: hidden;
        min-height: 128px;
        flex: 1 1 128px;
        background: #d7e2f1;
    }
    #header .tps-desktop-feature-services .tps-desktop-feature-media { min-height: 172px; }
    #header .tps-desktop-feature-services .tps-desktop-feature-media::after {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,rgba(25,56,97,.07) 55%,#17365e 100%);
        pointer-events: none;
        content: "";
    }
    #header .tps-desktop-feature-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        filter: saturate(.88);
    }
    #header .tps-desktop-feature-body { display: block; padding: 15px; }
    #header .tps-desktop-feature-services .tps-desktop-feature-body { padding: 16px 15px 20px; }
    #header .tps-desktop-feature-caption {
        display: block;
        margin: 0 0 6px;
        color: #4f6482;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .08em;
    }
    #header .tps-desktop-feature-services .tps-desktop-feature-caption { color: #d5e3f7; }
    #header .tps-desktop-feature-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    #header .tps-desktop-feature-title { color: inherit; font-size: 17px; line-height: 1.38; }
    #header .tps-desktop-feature-arrow {
        display: inline-grid;
        place-items: center;
        flex: 0 0 29px;
        width: 29px;
        height: 29px;
        border-radius: 50%;
        background: #e4ecf8;
        color: #1e479c;
        font-size: 17px;
    }
    #header .tps-desktop-feature-services .tps-desktop-feature-arrow { background: #ede2d5; color: #17365e; }
    #header .tps-desktop-feature:hover .tps-desktop-feature-title { text-decoration: underline; text-underline-offset: 4px; }
}

@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    #header [data-device="desktop"] .tps-desktop-panel:not([hidden]) {
        animation: tps-desktop-panel-in .16s ease-out both;
    }
    @keyframes tps-desktop-panel-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}
