/* Hosting demo action in the public site header. */
:is(#header .menu-wrap, .login-page-header) a.fh-demo-nav {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 13px !important;
    border: 1px solid #8e710f;
    border-radius: 9px;
    background: #fff8df;
    color: #624b00 !important;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

body[data-background="dark"] :is(#header .menu-wrap, .login-page-header) a.fh-demo-nav {
    border-color: #c39c2b;
    background: #292820;
    color: #ffdf63 !important;
}

:is(#header .menu-wrap, .login-page-header) a.fh-demo-nav:hover,
body[data-background="dark"] :is(#header .menu-wrap, .login-page-header) a.fh-demo-nav:hover {
    border-color: #b48a12;
    background: #ffda30;
    color: #201b0e !important;
}

:is(#header .menu-wrap, .login-page-header) a.fh-demo-nav:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

#header .menu-wrap.mobile .fh-demo-nav-brand {
    min-width: 0;
}

#header .menu-wrap.mobile .fh-demo-nav-actions {
    align-items: center;
    gap: 7px;
}

#header .menu-wrap.mobile .fh-demo-nav-actions > a.fh-demo-nav {
    flex: 0 0 auto;
    margin: 0 !important;
    padding-inline: 10px !important;
}

@media (forced-colors: active) {
    :is(#header .menu-wrap, .login-page-header) a.fh-demo-nav {
        border-color: LinkText;
    }
}

#header #menu-mobile .fh-portal-mobile-row {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
}

#header #menu-mobile .fh-demo-nav-brand {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
}

#header #menu-mobile .fh-demo-nav-brand img {
    max-width: 100%;
    height: auto;
}

#header #menu-mobile .fh-demo-nav-controls {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

#header #menu-mobile .fh-demo-nav-actions {
    display: flex;
    justify-content: flex-end;
}

#header #menu-mobile .fh-demo-nav-actions > .menu-toggle {
    position: relative;
    inset: auto;
    flex: 0 0 44px;
    min-height: 44px;
    width: 44px;
    margin: 0 !important;
}

#header #menu-mobile.active .fh-demo-nav-actions > a.fh-demo-nav {
    position: relative;
    z-index: 1001;
}

.login-page-header .fh-auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.login-page-header:has(.fh-auth-actions) .navbar-brand {
    flex: 0 1 122px;
    min-width: 70px;
    margin-inline-end: 6px;
}

.login-page-header:has(.fh-auth-actions) .navbar-brand img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 420px) {
    .login-page-header .fh-auth-actions {
        gap: 5px;
    }

    .login-page-header .fh-auth-actions :is(.fh-demo-nav, .fasting-auth-link) {
        padding-inline: 9px !important;
        font-size: .8rem !important;
    }
}
