@font-face {
    font-family: "THEIA Instrument Sans";
    src: url("instrument.woff") format("woff");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
#ast-desktop-header, #ast-mobile-header, #ast-hf-mobile-menu, #ast-mobile-popup {
    --tn-brand: var(--ast-global-color-0, #124554);
    --tn-font: "THEIA Instrument Sans", Arial, sans-serif;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) > li > :is(.menu-link,.tn-trigger),
:is(#ast-desktop-header,#ast-mobile-header,#ast-mobile-popup) .tn-locale-trigger {
    font: 550 16px/24px var(--tn-font);
    letter-spacing: 0;
    color: var(--tn-brand);
    box-sizing: border-box;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) { align-items: center; gap: clamp(2px,.65vw,13px); }
:is(#ast-hf-menu-1,#ast-hf-menu-2) > li { display: flex; align-items: center; }
:is(#ast-hf-menu-1,#ast-hf-menu-2) > li > :is(.menu-link,.tn-trigger) {
    display: inline-flex; align-items: center; min-height: 44px; height: auto;
    padding: 10px clamp(7px,.85vw,15px); white-space: nowrap;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) > .tn-parent > .tn-trigger:is(:hover,[aria-expanded="true"]) {
    background: transparent; color: var(--tn-brand);
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-trigger[aria-expanded="true"] {
    box-shadow: inset 0 -2px #a91853; border-radius: 0;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-panel :is(.tn-label,.tn-description,.tn-feature-title,.tn-feature-eyebrow,.tn-platform) {font-family: var(--tn-font);}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-parent .tn-panel::before {display:none;}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-desktop > .tn-panel:not([hidden]) {border-radius:13px; background:white;}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-desktop > .tn-login:not([hidden]) {padding:7px; width:185px;}
.tn-panel.tn-login .tn-badge {
    display:inline-grid; place-items:center; flex:0 0 32px; width:32px; height:32px;
    border-radius:8px; color:var(--tn-ink); background:#edf3f1;
}
.tn-panel.tn-login .tn-badge .tn-icon {width:18px;height:18px;}

:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-panel .tn-platform {
    display:flex; align-items:center; gap:10px; border:0; border-top:1px solid #dce5e2;
    margin:6px 3px 0; padding:12px 8px 2px; color:#a91853; background:transparent;
    font-size:14px; line-height:20px; font-weight:600; width:auto; height:auto;
}
.tn-platform .tn-icon {width:15px;height:15px;}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-panel .tn-feature {
    position:relative; isolation:isolate; overflow:hidden; padding:16px; border-radius:9px;
    background:linear-gradient(0deg,#082e38ef 0%,#082e3880 36%,transparent 75%),url('ecm.webp') center/cover;
    color:white; gap:3px;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-panel .tn-feature.tn-study {
    background:linear-gradient(0deg,#082e38f5 0%,#082e3890 38%,transparent 75%),#edf3f0 url('etude.webp') center 15%/cover;
}
.tn-panel .tn-feature-eyebrow {font:500 12px/1.3 var(--tn-font);color:white;}
.tn-panel .tn-feature-title {font:600 19px/1.17 var(--tn-font);letter-spacing:-.02em;padding-right:20px;}
.tn-panel .tn-feature > .tn-icon {position:absolute;right:14px;bottom:19px;}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) > :is(.menu-item-10163,.menu-item-2475) > a.menu-link {
    color: white; background: var(--tn-brand); border: 0; border-radius: 7px;
    display: inline-flex; align-items: center; gap: 10px; min-height:44px; height:auto;
    padding:10px 17px; font:550 16px/24px var(--tn-font); text-decoration:none;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) > :is(.menu-item-10163,.menu-item-2475) > a.menu-link:is(:hover,:focus-visible) {
    background:color-mix(in srgb,var(--tn-brand) 82%,black);color:white;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) > :is(.menu-item-10163,.menu-item-2475) > a.menu-link::after {
    content:none; display:none;
}
#ast-hf-mobile-menu > .menu-item-2475 {padding:8px 18px;}
#ast-hf-mobile-menu > .menu-item-2475 > a.menu-link {width:100%;min-height:46px;justify-content:space-between;}
#ast-hf-menu-2 > li.tn-native-locale {display:none !important;}
.tn-locale {position:relative;align-self:center;list-style:none;}
:is(#ast-desktop-header,#ast-mobile-header,#ast-mobile-popup) .tn-locale button {appearance:none; border:0; border-radius:6px; margin:0; text-transform:none; box-shadow:none; cursor:pointer;}
:is(#ast-desktop-header,#ast-mobile-header,#ast-mobile-popup) .tn-locale .tn-locale-trigger {
    background:transparent;display:inline-flex; align-items:center; justify-content:center;gap:7px;
    height:44px; min-width:44px; padding:8px; color:var(--tn-brand); font:550 16px/24px var(--tn-font);
}
.tn-locale-trigger::after {content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);}
.tn-locale-trigger[aria-expanded=true]::after {transform:translateY(2px) rotate(225deg);}
.tn-locale .tn-locales {position:absolute;z-index:10010;top:100%;right:0;min-width:115px;margin:0;padding:4px;border:1px solid #d8e2de;border-radius:9px;background:white;box-shadow:0 6px 22px #163d3c1c;}
.tn-locale .tn-locales[hidden],.tn-locale .tn-locales button[hidden]{display:none!important;}
:is(#ast-desktop-header,#ast-mobile-header,#ast-mobile-popup) .tn-locales button {
    display:block; text-align:left; min-height:44px; width:100%; padding:9px 12px; color:var(--tn-brand); background:white;
    font:550 16px/24px var(--tn-font);
}
:is(#ast-desktop-header,#ast-mobile-header,#ast-mobile-popup) .tn-locales button:is(:hover,:focus-visible){background:#eff5f3;}
:is(#ast-desktop-header,#ast-mobile-header,#ast-mobile-popup) .tn-locale :is(button,a):focus-visible,
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) :is(.menu-item-10163,.menu-item-2475) > a:focus-visible {outline:2px solid var(--tn-brand);outline-offset:3px;}
#ast-mobile-header .tn-locale {display:inline-flex;margin-right:9px;}
@media(max-width:1100px) and (min-width:922px) {
    :is(#ast-hf-menu-1,#ast-hf-menu-2) {gap:1px;}
    :is(#ast-hf-menu-1,#ast-hf-menu-2) > li > :is(.menu-link,.tn-trigger) {padding-inline:8px;}
}

@media (min-width:922px) {
    #ast-desktop-header .site-primary-header-wrap > .ast-builder-grid-row:has(#ast-hf-menu-2 > .menu-item-10163) {
        display:grid;
        grid-template-columns:max-content minmax(max-content,1fr) max-content;
        align-items:center; column-gap:clamp(12px,2.2vw,36px);
    }
    #ast-desktop-header .site-primary-header-wrap .site-header-primary-section-right:has(#ast-hf-menu-2 > .menu-item-10163) {display:contents;}
    #ast-desktop-header .site-header-primary-section-right:has(#ast-hf-menu-2 > .menu-item-10163) > .ast-builder-menu-1 {
        grid-column:2; grid-row:1; justify-self:start; width:auto; padding-inline:0;
    }
    #ast-desktop-header .site-header-primary-section-right:has(#ast-hf-menu-2 > .menu-item-10163) > .ast-builder-menu-2 {
        grid-column:3; grid-row:1; justify-self:end; width:auto; padding-inline:0;
    }
}

@media (max-width:921px) {
    #ast-mobile-popup .ast-mobile-popup-overlay {background:rgba(9,37,44,.42);}
    #ast-mobile-popup .ast-mobile-popup-inner {
        left:auto; right:max(8px,env(safe-area-inset-right)); bottom:auto;
        top:max(8px,env(safe-area-inset-top)); width:calc(100% - 16px); max-width:440px;
        height:auto; max-height:calc(100vh - 20px);
        max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));
        background:#fff; border:1px solid #d6e1df; border-radius:16px;
        display:flex; flex-direction:column; overflow:hidden;
        box-shadow:0 14px 45px #082e3838; transform:translateY(-12px);
        transition:transform .18s ease,opacity .18s ease;
    }
    #ast-mobile-popup.active .ast-mobile-popup-inner {transform:translateY(0);}
    body.admin-bar #ast-mobile-popup .ast-mobile-popup-inner {top:calc(var(--wp-admin--admin-bar--height,46px) + 8px);max-height:calc(100dvh - var(--wp-admin--admin-bar--height,46px) - 22px);}
    #ast-mobile-popup .ast-mobile-popup-header {
        position:relative; z-index:2; display:flex; align-items:center; justify-content:flex-start;
        flex:none; min-height:64px; padding:8px 14px 8px 20px; gap:4px; border-bottom:1px solid #e1e9e7; background:white;
    }
    #ast-mobile-popup .tn-drawer-brand {display:flex; align-items:center; justify-content:flex-start; margin-right:auto; min-height:44px;}
    #ast-mobile-popup .tn-drawer-brand img {display:block;width:91px;height:auto;}
    #ast-mobile-popup .tn-locale-trigger {min-width:44px;padding:8px; font-size:14px;}
    #ast-mobile-popup .tn-locale .tn-locales {right:0; min-width:126px; background:white;}
    #ast-mobile-popup .ast-mobile-popup-header .menu-toggle-close {
        display:grid;place-items:center; width:44px; height:44px; min-height:44px; margin:0; padding:0;
        border:0; border-radius:50%; color:#144653; background:#eef4f2; box-shadow:none;
    }
    #ast-mobile-popup .menu-toggle-close svg {display:block; width:17px; height:17px;}
    #ast-mobile-popup .ast-mobile-popup-header .menu-toggle-close:focus:not(:focus-visible) {outline:none;}
    #ast-mobile-popup :is(a,button):focus-visible {outline:2px solid #17677a;outline-offset:-3px;}
    #ast-mobile-popup .ast-mobile-popup-content {flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 16px 16px;}
    #ast-mobile-popup #ast-hf-mobile-menu {display:flex; flex-direction:column; width:100%; margin:0; padding:0; background:white;}
    #ast-mobile-popup #ast-hf-mobile-menu > li {
        display:block; width:100%; margin:0; padding:0; border:0; border-bottom:1px solid #e6edeb; background:white;
    }
    #ast-mobile-popup #ast-hf-mobile-menu > li > :is(.tn-trigger,a.menu-link) {
        display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
        min-height:49px; height:auto; margin:0;padding:10px 6px;box-sizing:border-box;
        border:0; border-radius:0; box-shadow:none; background:transparent; color:#124554;
        font:560 17px/1.32 var(--tn-font);letter-spacing:-.012em;
    }
    #ast-mobile-popup #ast-hf-mobile-menu > li > .tn-trigger > .tn-icon {width:15px;height:15px;margin-right:1px;}
    #ast-mobile-popup #ast-hf-mobile-menu > li:not(.menu-item-2475) > a.menu-link::after {
        content:""; position:static; display:block; width:7px; height:7px; margin:0 5px 0 0; opacity:1;
        border:solid #54717a; border-width:1.5px 1.5px 0 0; background:none; transform:rotate(45deg);
    }
    #ast-mobile-popup #ast-hf-mobile-menu > .tn-parent > .tn-trigger[aria-expanded=true] {color:#115e68;}
    #ast-mobile-popup #ast-hf-mobile-menu > .tn-parent > .tn-panel:not([hidden]) {
        padding:4px 8px; margin:0 0 10px; width:100%; border:0; border-radius:10px; background:#f2f6f5;
    }
    #ast-mobile-popup #ast-hf-mobile-menu .tn-panel a.tn-row {min-height:44px; padding:8px 3px;}
    #ast-mobile-popup #ast-hf-mobile-menu .tn-panel .tn-label {font-size:15px;}
    #ast-mobile-popup #ast-hf-mobile-menu .tn-panel .tn-description {line-height:1.38;}
    #ast-mobile-popup #ast-hf-mobile-menu .tn-panel .tn-platform {min-height:44px;}
    #ast-mobile-popup #ast-hf-mobile-menu > .menu-item-10222 {border-bottom:0;}
    #ast-mobile-popup #ast-hf-mobile-menu > .menu-item-2475 {margin-top:7px; border:0;}
    #ast-mobile-popup #ast-hf-mobile-menu > .menu-item-2475 > a.menu-link {
        min-height:46px; padding:11px 15px; border-radius:8px; background:var(--tn-brand); color:white;
    }
    #ast-mobile-popup #ast-hf-mobile-menu > .menu-item-2475 > a.menu-link:focus-visible {outline-color:white;}
}
@media (prefers-reduced-motion:reduce) {
    #ast-mobile-popup .ast-mobile-popup-inner,#ast-mobile-popup .ast-mobile-popup-overlay {transition:none;}
}

@media (min-width:922px) {
    #ast-desktop-header {--tn-desktop-size:14px;}
    #ast-desktop-header :is(#ast-hf-menu-1,#ast-hf-menu-2) > li > :is(.menu-link,.tn-trigger),
    #ast-desktop-header .tn-locale .tn-locale-trigger {
        font:500 var(--tn-desktop-size)/1.43 var(--tn-font); min-height:44px;
    }
    #ast-desktop-header :is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-panel .tn-label {font-size:14px; font-weight:550; line-height:1.43; letter-spacing:0;}
    #ast-desktop-header :is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-panel .tn-description {font-size:13px;line-height:1.4;}
}
@media (min-width:922px) and (max-width:1100px) {
    #ast-desktop-header {--tn-desktop-size:13px;}
}

@media (max-width:921px) {
    #ast-mobile-popup #ast-hf-mobile-menu .tn-panel .tn-badge {
        background-color:#d4e6e2; color:#174955;
        box-shadow:inset 0 0 0 1px rgba(20,65,78,.10);
    }
    #ast-mobile-popup #ast-hf-mobile-menu .tn-panel .tn-badge:is(.tn-book,.tn-spark) {
        background-color:#e6def3; color:#584570;
    }
    #ast-mobile-popup #ast-hf-mobile-menu .tn-panel .tn-badge:is(.tn-check,.tn-support) {
        background-color:#f5dcea; color:#8b2453;
    }
}

@media (min-width:922px) {
    #ast-desktop-header #ast-hf-menu-2 > .menu-item-10163 > a.menu-link {
        min-height:38px; height:38px; padding-block:0;
    }
}

:is(#ast-desktop-header,#ast-mobile-header,#ast-mobile-popup) .tn-locale-trigger > span {
    font-family:Arial,Helvetica,sans-serif;
    font-size:14px;
    font-style:normal;
    font-weight:400;
    letter-spacing:.015em;
    line-height:1;
}

#ast-mobile-popup #ast-hf-mobile-menu > .menu-item-2475 > a.menu-link {justify-content:center;}
