/* //////////////////////////////////////////////////////////////////////////

   BBE Custom Blocks

   //////////////////////////////////////////////////////////////////////////

   I.BBE
   |
   ├─ 1.Logo
   ├─ 2.Header
   ├─ 3.Fixed Header (27-07-2026 feature request UEITFRONTEND-965)
   └─ 4.Members inline signup (Members-only teaser)

*/

.isNavOpen {
    height: 100vh;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   1.Logo
   -------------------------------------------------------------------------- */

.Logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.Logo svg {
    fill: currentColor;
}

.Logo-text {
    margin-left: 0.62rem;
}

/* --------------------------------------------------------------------------
   2.Header
   -------------------------------------------------------------------------- */

.Header {
    color: var(--color-custom-five);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: calc(21 / 14);
    /* margin: 0 0 4.35rem; */
    margin: 0;
    padding: 2rem 0;
    position: relative;
}

.Header a {
    color: currentColor;
}

.Header a:hover {
    color: #969696;
}

.Header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.Header-logo {
    position: relative;
    z-index: 11;
}

.Header-menuBtn {
    background: transparent;
    border: 0;
    color: currentColor;
    font-weight: 500;
    padding: 0;
    position: relative;
    z-index: 11;
}

.Header-search {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 1px;
    margin: 0 0.8rem;
    height: 1.2rem;
    width: 1.2rem;
}

.Header-search:hover {
    opacity: 0.55;
}

.Header-search svg {
    display: block;
    width: 100%;
    height: 100%;
}

.Header-navWrapper {
    box-sizing: border-box;
    display: none;
}

@media (max-width:1024px) {
    .Header {
        margin-bottom: 1.35rem;
    }

    .isNavOpen .Header {
        color: #fff;
    }

    .isNavOpen .Header-navWrapper {
        background: var(--color-custom-five);
        color: #fff;
        display: flex;
        flex-direction: column;
        overflow: auto;
        padding-top: 5.2rem;
        padding-bottom: 5.2rem;
        padding-right: var(--margin-wrap-left-right);
        padding-left: var(--margin-wrap-left-right);
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        height: 100vh;
        z-index: 10;
    }

    .Header-nav {
        margin-top: 1.6rem;
    }

    .Header-nav a,
    .Header-navAuth a {
        display: block;
        font-size: 1.8rem;
        line-height: calc(26.4 / 24);
        padding: 1.5rem 0;
    }
}

@media (min-width:1025px) {
    .Header {
        font-size: 1.5rem;
        line-height: calc(19.8 / 16);
    }

    .Header-navWrapper {
        display: contents;
    }

    .Header-nav {
        margin: 0 auto;
    }
}

@media (min-width:1281px) {
    .Header {
        font-size: 1.9rem;
        line-height: calc(19.8 / 16);
    }

    .Header-search {
        margin: 0 1rem;
        height: 1.4rem;
        width: 1.4rem;
    }
}

.Header-nav ul,
.Header-navSocials {
    list-style: none;
    margin: 0;
    padding: 0;
}

.Header-nav li {
    border-bottom: 1px solid #ffffff10;
}

.Header-navSocials {
    margin: auto 0 0;
    padding: 4rem 0 0;
}

.Header-navSocials li:not(:last-child) {
    border-bottom: 1px solid #ffffff10;
}

.Header-navSocials a {
    display: block;
    font-size: 1.4rem;
    line-height: calc(19.2 / 16);
    padding: 1.5rem 0;
}

@media (min-width:1025px) {
    .Header-nav ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: calc(var(--scale) * 25);
    }

    .Header-menuBtn,
    .Header-navSocials {
        display: none;
    }
}

@media (min-width:1481px) {
    .Header-logo,
    .Header-controlsWrapper {
        min-width: 22rem;
    }

    .Header-navAuth,
    .Header-controlsWrapper {
        text-align: right;
    }
}

/* --------------------------------------------------------------------------
   3.Fixed Header
   -------------------------------------------------------------------------- */

.Header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.global-wrap {
    padding-top: calc(65px + 4.35rem);
}

.global-notification div {
    z-index: 1100;
    top: calc(65px + 1.4rem);
}

/* --------------------------------------------------------------------------
   4.Members inline signup (Members-only teaser)
   -------------------------------------------------------------------------- */

.post-content .members-cta h2 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin: 0 auto 3vh;
}

@media (min-width:1025px) {
    .post-content .members-cta h2 {
        font-size: 4rem;
    }
}

.post-content .members-cta .members-signup {
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
    color: var(--color-font-one);
    margin: 4vh auto 0;
    padding: 20px;
    overflow: visible;
    text-align: center;
}

.members-signup-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.post-content .members-cta .members-signup-fields input[type="email"] {
    background-color: var(--color-twelve);
    color: var(--color-font-one);
    font-size: 2.2rem;
    border-radius: var(--border-radius);
    box-sizing: border-box; 
    margin: 0;
    padding: 16px 20px;
    height: 68px;
    width: 100%;
}

.post-content .members-cta .members-signup-fields input[type="email"]::-moz-placeholder {
    color: rgba(21, 22, 24, 0.7);
}

.post-content .members-cta .members-signup-fields input[type="email"]::placeholder {
    color: rgba(21, 22, 24, 0.7);
}

.post-content .members-cta .members-signup-fields input[type="email"]:focus {
    color: rgba(21, 22, 24, 1);
    outline: none;
}

.post-content .members-cta .members-signup-fields button.global-button {
    color: var(--color-white);
    background-color: var(--ghost-accent-color);
    border-radius: var(--border-radius);
    display: block;
    padding: 16px 20px;
    height: 68px;
    width: 100%;
}

@media (min-width:1025px) {
    .members-signup-fields {
        flex-direction: row;
        gap: 0;
    }

    .post-content .members-cta .members-signup-fields input[type="email"] {
        padding-right: 260px;
    }

    .post-content .members-cta .members-signup-fields button.global-button {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 240px;
    }
}

.post-content .members-cta .members-signup-fields button.global-button:hover {
    color: var(--color-white);
    background-color: var(--ghost-accent-color);
}

.members-signup-fields button[disabled] {
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

.members-signup-alert {
    margin-top: 14px;
}

.members-signup .global-alert {
    display: none;
}

.members-signup.loading .alert-loading,
.members-signup.success .alert-success,
.members-signup.error .alert-error {
    display: inline-block;
}

.members-signup.success .alert-success {
    color: var(--color-font-black);
    background-color: var(--color-alert-success);
}

.members-signup.error .alert-error {
    color: var(--color-font-black);
    background-color: var(--color-alert-error);
}

/* Hide the field once the magic link has been sent. */
.members-signup.success .members-signup-fields {
    display: none;
}
