:root {
    --header-color: #44546f;
    --header-background-color: #ffffff;
    --header-button-color: #44546f;
    --header-button-background-color: #ffffff;
    --custom-header-link-color: #44546f;
    --custom-header-link-font-size: 0;
    --custom-header-margin: 7px 15px;
    --header-color-dark-mode: #d3d7e6;
    --header-background-color-dark-mode: #161a1d;
    --header-button-color-dark-mode: #d3d7e6;
    --header-button-background-color-dark-mode: #161a1d;
    --custom-header-link-color-dark-mode: #d3d7e6;

    --ds-space-0: 0rem;
    --ds-space-025: 0.125rem;
    --ds-space-050: 0.25rem;
    --ds-space-075: 0.375rem;
    --ds-space-100: 0.5rem;
    --ds-space-150: 0.75rem;
    --ds-space-200: 1rem;
    --ds-space-250: 1.25rem;
    --ds-space-300: 1.5rem;
    --ds-border-width: 1px;
    --ds-border-width-outline: 2px;
}

html.light-mode {
    color-scheme: light;
}

html.dark-mode {
    color-scheme: dark;
}

nav {
    --header-text: var(--header-color);
    --header-background: var(--header-background-color);
    --header-button-text: var(--header-button-color);
    --header-button-background: var(--header-button-background-color);
    --header-button-hover-text: var(--header-button-hover-color);
    --header-button-hover-background: var(--header-button-hover-background-color);
    --header-link-text: var(--custom-header-link-color);
    --header-link-background: var(--custom-link-background-color);
    --header-link-hover-text: var(--custom-header-link-hover-color);
    --header-link-hover-background: var(--header-link-hover-background-color);
    --header-divider: var(--divider-line-color);
    --header-shadow-mix: black;
}

html.dark-mode nav {
    --header-text: var(--header-color-dark-mode);
    --header-background: var(--header-background-color-dark-mode);
    --header-button-text: var(--header-button-color-dark-mode);
    --header-button-background: var(--header-button-background-color-dark-mode);
    --header-button-hover-text: var(--header-button-hover-color-dark-mode);
    --header-button-hover-background: var(--header-button-hover-background-color-dark-mode);
    --header-link-text: var(--custom-header-link-color-dark-mode);
    --header-link-background: var(--custom-link-background-color-dark-mode);
    --header-link-hover-text: var(--custom-header-link-hover-color-dark-mode);
    --header-link-hover-background: var(--header-link-hover-background-color-dark-mode);
    --header-divider: var(--divider-line-color-dark-mode);
    --header-shadow-mix: white;
}

nav {
    position: fixed;
    top: 0;
    z-index: 100000;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0 auto;
    background-color: var(--header-background);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--header-background) 85%, var(--header-shadow-mix));

    &.editorToolbarTrue {
        height: 80px;
        min-height: 80px;
    }

    &.logged {
        @media (min-width: 1024px) {
            height: 105px;
        }
    }

    body.has-banner & {
        top: var(--banner-height, 48px);
    }

    & a {
        border: 0;
        border-radius: 3px;
        font-size: 14px;
        font-weight: 400;
        text-decoration: none;

        &:hover {
            text-decoration: none;
        }
    }

    & .container {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    & .logo-container {
        z-index: 1000;
        display: flex;
        margin: 0 15px;
    }

    & .app-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }

    &.editorToolbarTrue .app-link {
        width: auto;
    }

    & .app-title {
        overflow: hidden;
        margin-inline: 10px;
        padding-inline-end: 0.15em;
        font-size: 24px;
        font-weight: bold;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: var(--header-text);

        & a {
            white-space: nowrap;
            font-size: 24px;
            font-weight: bold;
            text-decoration: none;
            color: var(--header-text);
        }
    }

    & .button {
        height: 2.1em;
        margin-left: auto;
        padding: 0.5em;
        border-radius: 0.25em;
        line-height: 1.15;
        text-decoration: none;
        color: var(--header-button-text);

        &.account,
        &.logout,
        &.settings,
        &.dashboard,
        &.secondary {
            display: flex;
            align-items: center;
            white-space: nowrap;
        }

        &.secondary,
        &.dashboard {
            background-color: var(--header-button-background);
            color: var(--header-button-text);
        }

        &:hover {
            background-color: transparent;
        }

        &.secondary:hover,
        &.dashboard:hover {
            background-color: var(--header-button-hover-background);
            color: var(--header-button-hover-text);
        }
    }

    &.editorToolbarTrue.hideLinksTrue .header-app-icon {
        width: 44px;
        height: 44px;
    }

    & .header-app-icon:hover {
        background-color: var(--header-button-hover-background);
        color: var(--header-button-hover-text);
    }

    &:not(.editorToolbarTrue) .nav-links .links {
        width: 100%;
        max-width: 50vw;
    }

    &.editorToolbarTrue .nav-links {
        width: auto !important;
    }

    &.editorToolbarTrue .nav-links-left {
        margin: 0 -1px 0 0;
    }

    &:not(.editorToolbarTrue) .header-center .nav-links .links {
        max-width: 30vw;
        margin-left: 10px;
    }

    & .header-center .nav-links {
        height: 45px;
    }

    & .subscribe-and-search {
        display: flex;
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
    }

    & .subscribe-wrapper {
        flex-shrink: 0;
        margin-left: 10px;
    }

    & .search-wrapper {
        flex-grow: 1;
    }

    & .header-center .header-search-container:has(.open),
    & .header-center .open .header-search-search,
    & .header-center .open .header-search-inner-container-3 {
        width: 20vw;
    }

    & .header-center .header-search-dialog-wrapper {
        width: auto;
    }

    & .header-right .links,
    & .header-right .subscribe-wrapper,
    & .header-right #width-control-box,
    & .header-right #dark-mode-toggle-box {
        order: 2;
    }

    & .header-right .user-section,
    & .header-right .search-wrapper,
    & .header-right .nav-links-left {
        order: 1;
    }

    & .header-right .subscribe-and-search {
        order: 3;
    }

    & .header-right .user-section {
        margin-left: 0;
    }
}

@media (max-width: 1450px) {
    nav.editorToolbarTrue.showSearchTrue {
        height: 110px;
    }
}

@media (max-width: 1400px) {
    nav.editorToolbarTrue:not(.hideLinksTrue) .container {
        display: block;
    }

    nav.editorToolbarTrue:not(.hideLinksTrue) {
        height: 110px;
    }

    div.static-filler.editorToolbarTrue:not(.hideLinksTrue) {
        height: 45px;
    }

    #top {
        overflow: visible !important;
    }
}

@media (max-width: 1280px) {
    nav.hideLinksTrue.editorToolbarTrue {
        height: 120px;
    }

    div.static-filler.hideLinksTrue {
        height: 50px;
    }

    nav.hideLinksTrue #cke_editor {
        height: 80px;
        overflow: auto;
    }

    #top {
        overflow: visible !important;
    }
}

@media (max-width: 1150px) {
    nav.showSearchTrue.logoutTrue .header-search-form {
        min-width: 150px;
    }

    nav.showSearchTrue.logoutTrue .app-title a {
        font-size: 20px;
    }
}

@media (max-width: 1020px) {
    #cke_editor {
        max-width: 520px;
    }
}

@media (max-width: 970px) {
    nav.showSearchTrue.logoutTrue .app-title {
        display: none;
    }
}

@media (max-width: 840px) {
    button#publishButton {
        margin-left: 147px !important;
    }

    #cke_editor {
        height: 100px;
        overflow: auto;
    }

    nav.hideLinksTrue button#publishButton {
        margin-left: 7px !important;
    }

    nav.hideLinksTrue #cke_editor {
        height: 80px;
        overflow: auto;
    }

    nav.editorToolbarTrue:not(.hideLinksTrue) {
        height: 140px;
    }

    div.static-filler.editorToolbarTrue:not(.hideLinksTrue) {
        height: 75px;
    }
}

.header-app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background-color: var(--header-button-background);
    font-size: 14px;
    color: var(--header-button-text);
    cursor: pointer;
}

.account-menu-wrap {
    position: relative;

    #account-menu-trigger {
        padding: 0;
        border: 0;
    }

    #account-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        inset-inline-end: 0;
        z-index: 1000;
        min-width: 280px;
        padding: 6px 0;
        border-radius: 4px;
        background: var(--ds-surface-overlay, #ffffff);
        box-shadow: var(--ds-shadow-overlay, 0px 8px 12px #1e1f2126, 0px 0px 1px #1e1f214f);
        font-size: 14px;
        line-height: 20px;
        color: var(--ds-text, #292a2e) !important;

        &.open {
            display: block;
        }

        #dark-mode-on {
            display: none;
        }

        .account-menu-id {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 16px;
        }

        .account-menu-id-text {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .account-menu-name {
            font-size: 20px;
            font-weight: 650;
            line-height: 24px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--ds-text, #292a2e) !important;
        }

        .account-menu-email {
            margin-top: 2px;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--ds-text-subtlest, #6b6e76) !important;
        }

        .account-menu-section {
            padding: 6px 0;
            border-block-start: 1px solid var(--ds-border, #0b120e24);

            &:last-child {
                padding-bottom: 0;
            }
        }

        .account-menu-section:first-child,
        .account-menu-id + .account-menu-section {
            padding-top: 0;
            border-block-start: none;
        }

        .account-menu-theme {
            display: contents;
        }

        .account-menu-row {
            box-sizing: border-box;
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            min-height: 40px;
            padding: 8px 16px;
            border: 0;
            background: transparent;
            font: inherit;
            text-align: left;
            text-decoration: none;
            color: var(--ds-text, #292a2e) !important;
            cursor: pointer;

            &:hover {
                background: var(--ds-background-neutral-subtle-hovered, #0515240f);
            }
        }
    }
}

#dark-mode-toggle-box #dark-mode-off,
#dark-mode-toggle-box-mobile #dark-mode-off {
    display: none;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    & .links .header-links {
        width: 100%;
    }

    & a {
        color: var(--header-text) !important;
    }
}

ul.header-links li {
    display: inline;
    margin-right: 10px;

    & a {
        margin: var(--custom-header-margin);
        padding: var(--custom-header-padding) !important;
        font-size: var(--custom-header-link-font-size);
        color: var(--header-link-text) !important;
    }
}

.user-section {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 20px;
    margin-bottom: 0;

    nav.editorToolbarTrue & {
        align-items: normal;
    }

    & #subscribe-opts {
        display: flex;
    }

    & a {
        text-decoration: none;
        color: var(--header-text) !important;
    }
}

#top {
    overflow: hidden;
    width: 1000px;
    height: 44px;
    margin-left: 7px;
    border-radius: 3px;
}

#cke_editor {
    border: none;
}

.cke_top {
    border: none;
    background: #fff;
}

menu {
    max-width: 75em;
    height: 32px;
    margin: 0 auto 0 50px;

    @media (min-width: 768px) {
        margin: 0 auto 0 200px;
    }

    @media (min-width: 1024px) {
        margin: 0 auto 0 300px;
    }

    & a {
        text-decoration: none;
        color: rgb(52, 69, 99);
        box-shadow: none;

        &.active {
            border-bottom: solid 4px rgb(0, 82, 204);
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }

        &:hover {
            background-color: rgba(222, 235, 255, 0.9);
            color: rgb(0, 82, 204);
            box-shadow: transparent 0 0 0 2px;
        }
    }
}

@media (min-width: 576px) {
    .nav-links-left {
        display: flex;
        gap: 2px;
    }
}

.header-links {
    display: flex;
    max-height: 40px;

    & .group-link,
    & .link-ungrouped {
        margin-right: 10px;
    }

    & .group-link {
        position: relative;
        border-radius: 0.25em;
        background-color: var(--header-link-background);
    }

    & .group-button:hover,
    & .link-ungrouped:hover {
        font-size: var(--header-link-hover-font-size);
        font-weight: var(--header-link-hover-font-weight);
    }

    & .link-group,
    & .link-section,
    & .link-ungrouped-div,
    & .group-button {
        font-size: var(--custom-header-link-font-size);
        font-weight: var(--header-link-font-weight);
    }

    & .link-group:hover,
    & .link-section:hover,
    & .link-ungrouped-div:hover,
    & .group-button:hover {
        font-size: var(--header-link-hover-font-size);
        font-weight: var(--header-link-hover-font-weight);
    }

    & .link-ungrouped-div {
        display: flex;
    }

    & a,
    & .group-children a {
        border-radius: unset;
        text-decoration: none;
    }
}

.header-links > .group-link .group-button,
.header-links > .link-ungrouped,
.dropdown-links-toggle {
    display: flex;
    align-items: center;
    height: 39px;
    border-radius: 0.25em;
    background-color: var(--header-link-background);
    line-height: normal;
    font-size: var(--custom-header-link-font-size);
    font-weight: var(--header-link-font-weight);
    color: var(--header-link-text) !important;
}

.header-links > .group-link .group-button:focus-within,
button.group-button:focus-within,
.dropdown-links-toggle:focus-within {
    height: 39px;
    background-color: var(--header-link-hover-background);
    font-size: var(--header-link-hover-font-size);
    font-weight: var(--header-link-hover-font-weight);
    color: var(--header-link-hover-text) !important;
}

.header-links .group-button,
.header-links .link-ungrouped-div,
.dropdown-links-toggle {
    padding: 0.5em;
    white-space: nowrap;
}

.header-links .group-children,
.dropdown-links-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    background-color: var(--header-link-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.group-button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
}

.group-link.open .group-children,
.dropdown-links-menu.open {
    min-width: 350px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
}

.group-children a,
.group-children .section-links {
    font-size: 15px;
}

.group-children .section-title {
    font-size: 14px;
    font-weight: bold;
}

.group-children-title {
    padding: 12px 0 12px 6px;
    font-size: var(--custom-header-link-font-size);
    font-weight: 650;
    color: var(--header-link-text);
}

.section-link .section-title {
    padding: 8px 0 8px 6px;
}

.section-link .section-title,
.section-link .section-links {
    padding-bottom: 7px;
    color: var(--header-link-text);
}

.section-links a:hover,
.link-group-div:hover,
.link-group:hover,
.link-group:hover .link-group-div,
.link-section:hover .link-section-div {
    background-color: var(--header-link-hover-background);
    color: var(--header-link-hover-text) !important;
}

.link-section,
.link-group,
.dropdown-links-menu a,
.dropdown-links-menu .group-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-left: 7px;
}

.link-section-div,
.link-group-div {
    color: var(--header-link-text);
}

@media (min-width: 576px) {
    a.link-ungrouped:hover,
    .group-link:hover,
    .group-link .group-button:hover,
    .dropdown-links-toggle:hover {
        background-color: var(--header-link-hover-background);
        color: var(--header-link-hover-text) !important;
    }
}

.dropdown-container {
    position: relative;
    padding-right: 5px;
}

.dropdown-links-toggle {
    border: none;
}

.dropdown-links-menu {
    display: none;

    &.open {
        display: block;
    }

    & .link-ungrouped-div {
        font-size: 15px;
    }

    & .group-button,
    & .link-ungrouped {
        background-color: var(--header-link-background);
        color: var(--header-link-text) !important;
    }

    & .link-ungrouped,
    & .group-link {
        margin: 0 !important;
        padding: 0 !important;
    }

    & .group-button {
        display: flex;
        align-items: center;
        height: 39px;
        padding: 0.5em !important;
        border-radius: 0.25em;
        line-height: normal;
        font-size: 15px;
    }

    & .group-children {
        top: -7px;
        left: 100%;
    }

    & a,
    & .link-ungrouped,
    & .group-link {
        width: 100%;
        margin-right: 0;
        padding: 0;
    }

    & .section-link .section-title {
        padding: 0;
    }

    & .group-link.open .group-children {
        margin-left: 7px;
    }

    & .group-link.open .group-children .link-group,
    & .group-link.open .group-children .link-section,
    & .group-link.open .group-children .section-title {
        padding-left: 7px;
    }
}

.chevron-icon {
    display: none;
}

.expand-icon {
    display: flex;
}

.in-dropdown .expand-icon {
    display: none;
}

.in-dropdown .chevron-icon {
    display: flex !important;
}

.separator {
    margin: 0.5em 0;
    border-bottom: 1px solid var(--header-divider);
}

.header-search-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    & > * {
        flex-shrink: 0;
    }
}

.header-search-component {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    & a,
    & a:visited,
    & a:focus,
    & a:hover,
    & a:active {
        color: var(--ds-link-pressed, #0052cc);
    }

    & a:focus,
    & a:active {
        text-decoration: none;
    }

    & a:focus-visible {
        outline: var(--ds-border-width-outline, 2px) solid var(--ds-border-focused, #2684ff);
        outline-offset: var(--ds-space-025, 2px);
    }
}

.header-search-dialog-input {
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    padding: 0 var(--ds-space-150, 12px) 0 30px;
    border-radius: 5px;
    font: var(
        --ds-font-body,
        normal 400 14px / 20px ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Ubuntu,
        system-ui,
        'Helvetica Neue',
        sans-serif
    );
    outline: none;

    .closed & {
        border: var(--ds-border-width, 1px) solid var(--ds-border-input, #7a869a);
        background-color: var(--ds-background-input, #ffffff);
        color: var(--ds-text-subtlest, #6b778c);
        box-shadow: none;

        @media (max-width: 780px) {
            display: none;
        }
    }

    .open & {
        border: var(--ds-border-width, 1px) solid var(--ds-border-focused, #2684ff);
        background-color: var(--ds-background-input-pressed, #ffffff);

        @media (max-width: 780px) {
            margin: 0 24px 0 0;
            padding: 0 12px 2px;
        }
    }
}

.header-search-inner-container-1 {
    box-sizing: border-box;
    width: 100%;
    border: none;
    appearance: none;
}

.header-search-inner-container-2 {
    position: relative;
    width: 32px;
    height: 32px;

    @media (min-width: 781px) {
        min-width: 200px;
    }
}

.open .header-search-inner-container-3 {
    position: relative;
    right: 0;
    z-index: 10000;
}

.closed .header-search-inner-container-4 {
    position: relative;
}

.open .header-search-inner-container-4 {
    position: relative;

    @media (max-width: 1130px) {
        position: fixed;
        z-index: 10000;
    }

    @media (max-width: 780px) {
        inset: 0;
        display: flex;
        flex-direction: column;
        overflow: auto;
    }
}

.closed .header-search-search.closed {
    position: relative;
    width: 200px;
    max-width: 100%;
}

.closed .header-search-search {
    @media (max-width: 780px) {
        width: 100%;
    }
}

.open .header-search-search {
    position: relative;

    @media (max-width: 780px) {
        display: flex;
        align-items: center;
        width: 100%;
        height: 56px;
        max-width: initial;
        background-color: var(--ds-background-input, #ffffff);
    }
}

.closed .header-search-icon-container-1 {
    display: none;

    @media (max-width: 780px) {
        display: block;
    }
}

.open .header-search-icon-container-1 {
    display: none;

    @media (max-width: 780px) {
        display: none;
    }
}

.header-search-icon-container-2 {
    box-sizing: border-box;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    column-gap: var(--ds-space-050, 4px);
    flex-shrink: 0;
    position: relative;
    width: 2.28571em;
    height: 2.28571em;
    max-width: 100%;
    padding-block: var(--ds-space-075, 6px);
    padding-inline-end: var(--ds-space-0, 0px);
    padding-inline-start: var(--ds-space-0, 0px);
    border: 1px solid lightgray;
    border-image: initial;
    border-radius: var(--ds-border-radius-100, 3px);
    background: var(--ds-background-neutral-subtle, #00000000);
    font-size: 14px;
    font-weight: var(--ds-font-weight-medium, 500);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    color: var(--ds-text-subtle, #42526e);
    cursor: pointer;
    transition: background 0.1s ease-out;
    appearance: none;

    &:hover {
        background: var(--ds-background-neutral-subtle-hovered, #091e420f);
        text-decoration: none;
        color: var(--ds-text-subtle, #42526e);
    }
}

.header-search-icon-container-3 {
    box-sizing: border-box;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    align-self: center;
    border: none;
    font-size: 0px;
    line-height: 0;
    user-select: none;
    transition: opacity 0.3s;
    appearance: none;
}

.header-search-dialog-input-icon-container {
    position: absolute;
    top: 6px;
    left: 4px;
    display: inline-flex;
    align-items: baseline;
    width: 20px;
    height: 20px;

    @media (max-width: 780px) {
        display: none;
    }

    .closed & {
        color: var(--ds-text-subtlest, #6b778c);
    }

    .open & {
        color: var(--ds-text, #091e42);
    }
}

.header-search-back-icon-container {
    display: none;
    height: 32px;
    margin: 0 8px;
    padding-bottom: 2px;
    color: var(--ds-text-subtlest, #6b778c);

    @media (max-width: 780px) {
        display: flex;
        align-items: center;
    }

    &:hover {
        border-radius: 100%;
        background-color: var(--ds-background-input-hovered, #ffffff);
    }

    .closed & {
        display: none;
    }
}

@media (max-width: 1100px) {
    nav .header-center .header-search-component.open .header-search-back-icon-container {
        display: flex;
        align-items: center;
    }
}

.header-search-dialog-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100%;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 3px;
    background-color: var(--ds-surface-overlay, #fff);
    box-shadow: var(--ds-shadow-overlay, 0 4px 8px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31));

    @media (max-width: 780px) {
        flex: 1 1 0%;
        max-width: 100%;
        margin-top: 0;
        overflow: auto;
        border-radius: 0;
    }

    .closed & {
        box-shadow: none;
    }

    [aria-label]:hover:after,
    [aria-label]:focus-visible:after {
        display: none !important;
    }

    .closed & {
        display: none;
    }
}

.header-search-dialog-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;

    @media (max-width: 780px) {
        flex-grow: 1;
    }
}

.header-search-results-container-1 {
    display: flex;
    flex: 1 1 0%;
    box-sizing: border-box;
    max-height: calc(-176px + 100vh);
    min-height: auto;

    @media (min-height: 1016px) {
        max-height: 744px;
    }

    @media (max-width: 780px) {
        max-height: initial;
        overflow: auto;
    }
}

@media (min-width: 780px) {
    .open .header-search-search,
    nav .header-search-container:has(.open) {
        width: 200px;
    }
}

@media (min-width: 1020px) {
    .open .header-search-search,
    nav .header-search-container:has(.open),
    .open .header-search-inner-container-3 {
        width: 30vw;
    }
}

@media (max-width: 1300px) {
    nav .header-center .user-section {
        width: 440px;
    }

    nav.showSearchTrue.logoutTrue .header-center .app-title {
        display: none;
    }
}

@media (max-width: 1100px) {
    nav .header-center .user-section {
        width: auto;
    }

    nav .header-center .closed .header-search-dialog-input {
        display: none;
    }

    nav .header-center .open .header-search-dialog-input {
        margin: 0 24px 0 0;
        padding: 0 12px 2px;
    }

    nav .header-center .open .header-search-inner-container-4 {
        inset: 0;
        display: flex;
        flex-direction: column;
        overflow: auto;
    }

    nav .header-center .closed .header-search-search {
        width: 100%;
    }

    nav .header-center .open .header-search-search {
        display: flex;
        align-items: center;
        width: 100%;
        height: 56px;
        max-width: initial;
        background-color: var(--ds-background-input, #ffffff);
    }

    nav .header-center .closed .header-search-icon-container-1 {
        display: block;
    }

    nav .header-center .open .header-search-icon-container-1 {
        display: none;
    }

    nav .header-center .header-search-dialog-input-icon-container {
        display: none;
    }

    nav .header-center .header-search-dialog-wrapper {
        flex: 1 1 0%;
        max-width: 100%;
        margin-top: 0;
        overflow: auto;
        border-radius: 0;
    }

    nav .header-center .header-search-dialog-panel {
        flex-grow: 1;
    }

    nav .header-center .header-search-results-container-1 {
        max-height: initial;
        overflow: auto;
    }

    nav .header-center .compact .header-search-result-item-title-wrapper,
    nav .header-center .full .header-search-result-item-title-wrapper {
        width: 100%;
    }

    nav .header-center .header-search-inner-container-2 {
        min-width: 0;
    }
}

@media (min-width: 576px) and (max-width: 780px) {
    nav .header-center .logo-container {
        display: none;
    }

    nav .header-center .nav-links {
        position: relative !important;
    }
}

@media (min-width: 1100px) and (max-width: 1500px) {
    nav .header-center .open .header-search-search,
    nav .header-center .header-search-container:has(.open) {
        width: 200px;
    }
}

.header-search-results-container-2 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    max-width: 100%;
    overflow: hidden;
}

.header-search-results-container-3 {
    box-sizing: border-box;
    flex: 1 1 0%;
    max-width: 100%;
    overflow: hidden auto;
}

.header-search-results-container-4 {
    padding: var(--ds-space-100, 8px) 0;
}

.header-search-results-header-wrapper {
    max-height: 32px;
    margin-top: var(--ds-space-075, 6px);
    margin-bottom: var(--ds-space-075, 6px);
}

.header-search-results-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    font-size: 12px;
    font-weight: var(--ds-font-weight-semibold, 600);
    line-height: 16px;
    text-transform: uppercase;
    color: var(--ds-text-subtlest, #6b778c);
}

.header-search-results-header-counter-container-1 {
    margin-left: 8px;
    font-weight: var(--ds-font-weight-regular, 400);
}

.header-search-results-header-counter {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
    block-size: min-content;
    min-width: var(--ds-space-300, 24px);
    padding-inline: var(--ds-space-050, 4px);
    border-radius: var(--ds-border-radius-050, 2px);
    background-color: #dddee1;
    color: #292a2e;
}

.header-search-results-header-counter-text {
    margin: 0px;
    font: var(
        --ds-font-body-small,
        normal 400 11px / 16px ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Ubuntu,
        system-ui,
        'Helvetica Neue',
        sans-serif
    );
    overflow-wrap: anywhere;
    text-align: center;
}

.header-search-result-item-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: var(--ds-text, #091e42);

    .header-search-component &:focus {
        outline-offset: -2px;
    }
}

.header-search-result-item-wrapper {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    background-color: transparent;

    .compact & {
        height: 32px;
    }

    .full & {
        height: 40px;
    }

    .compact &:hover,
    .full &:hover {
        background-color: var(--ds-background-neutral-subtle-hovered, #f4f5f7);
    }
}

.header-search-result-item-icon-container {
    display: flex;
    align-items: center;
    flex: 0 0 16px;
    width: 16px;
    margin-right: 16px;
    line-height: 16px;
}

.header-search-result-item-icon-wrapper {
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;

    .compact & {
        width: 16px;
        height: 16px;
    }

    .full & {
        width: 24px;
        height: 24px;
    }

    & > svg {
        max-width: 100%;
        max-height: 100%;
        overflow: hidden;
        vertical-align: bottom;
        color: var(--icon-primary-color);
        fill: var(--icon-secondary-color);
        pointer-events: none;
    }

    .compact & > svg {
        width: 16px;
        height: 16px;
    }

    .full & > svg {
        width: 24px;
        height: 24px;
    }
}

.header-search-result-item-view-container {
    display: block;
    flex-grow: 1;
    min-width: 0;
}

.header-search-result-item-title-wrapper {
    flex: 1 0 auto;
    overflow: hidden;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ds-text, #091e42);

    .compact & {
        width: 376px;
    }

    .full & {
        width: initial;
    }

    @media (max-width: 780px) {
        .compact &,
        .full & {
            width: 100%;
        }
    }
}

.header-search-result-item-button-container {
    width: 24px;
    height: 16px;
    right: 12px;
    margin: 4px 0 4px 4px;
    border-radius: 3px;
    opacity: 0;

    .compact & {
        top: 4px;
    }

    .full & {
        top: 8px;
    }
}

.header-search-result-item-subtitle-wrapper {
    display: flex;
    max-width: 432px;
}

.header-search-result-item-subtitle {
    overflow: hidden;
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ds-text-subtlest, #6b778c);
}

.css-1ny10yz {
    width: 152px;
    margin-left: 24px;
    overflow: hidden;
    font: var(
        --ds-font-body-small,
        normal 400 11px / 16px ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Ubuntu,
        system-ui,
        'Helvetica Neue',
        sans-serif
    );
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ds-text-subtlest, #6b778c);
}

.header-search-dialog-loading-spinner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 96px;
}

.header-search-dialog-loading-spinner-inner-container {
    margin: 0 auto;
}

.header-search-advanced-search-container {
    width: 100%;
    height: 48px;
    border-top: 1px solid var(--ds-border, rgba(9, 30, 66, 0.13));
}

.header-search-advanced-search-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--ds-space-075, 6px) 14px;
    border: 2px solid transparent;
    background-color: var(--ds-background-neutral-subtle, #ffffff);
    color: var(--ds-text, #091e42);
    cursor: pointer;

    .header-search-component &,
    .header-search-component &:visited {
        color: var(--ds-text, #091e42);
    }

    .header-search-component &:hover {
        background-color: var(--ds-background-neutral, #f4f5f7);
        text-decoration: none;
        color: var(--ds-text, #091e42);
    }

    .header-search-component &:focus {
        border: 2px solid var(--ds-border-focused, #4c9aff);
        outline: none;
    }
}

.header-search-advanced-search-body-container {
    display: flex;
    height: 100%;
}

.header-search-advanced-search-body-wrapper {
    display: flex;
    align-items: center;
}

.header-search-icon-wrapper {
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
    padding-inline-end: var(--ds--button--new-icon-padding-end, 0);
    padding-inline-start: var(--ds--button--new-icon-padding-start, 0);
    line-height: 1;
    color: var(--ds-text-subtlest, #6b778c);

    .open & {
        color: var(--ds-text, #172b4d);
    }
}

.header-search-icon {
    overflow: hidden;
    vertical-align: bottom;
    color: currentcolor;
    pointer-events: none;
}

.header-search-advanced-search-text {
    display: flex;
    align-items: center;
    padding-left: var(--ds-space-200, 16px);
    font: var(
        --ds-font-body,
        normal 400 14px / 20px ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Ubuntu,
        system-ui,
        'Helvetica Neue',
        sans-serif
    );
}

html.dark-mode nav .nav-links a,
html.dark-mode nav .user-section a {
    color: var(--header-link-text) !important;
}

[aria-label] {
    position: relative;

    &::after {
        content: attr(aria-label);
        position: absolute;
        top: 110%;
        left: 50%;
        z-index: 5000;
        display: none;
        padding: 4px 10px;
        overflow: visible;
        border-radius: 3px;
        background-color: var(--ds-background-neutral-bold, #172b4d);
        font-size: 0.9em;
        font-weight: normal;
        line-height: 15px;
        white-space: nowrap;
        text-decoration: none;
        text-indent: 0;
        color: var(--ds-text-inverse, #ffffff);
        text-shadow: 1px 0 1px #888;
        transform: translateX(-50%);
        pointer-events: none;
        box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
    }

    &:hover::after,
    &:focus-visible::after {
        display: block;
    }
}
