/* Timed menu campaign popup. The page menu itself stays evergreen. */
.hpc-new-menu-popup[hidden],
.hpc-new-menu-popup[aria-hidden="true"] {
    display: none !important;
}

.hpc-new-menu-popup {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: grid;
    place-items: center;
    padding: clamp(16px, 2.5vw, 34px);
}

.hpc-new-menu-popup__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 3, 2, .84);
    backdrop-filter: blur(10px);
    cursor: default;
}

.hpc-new-menu-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 32px));
    min-height: 560px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid rgba(232, 190, 115, .34);
    border-radius: 6px;
    background: #100b08;
    box-shadow: 0 34px 96px rgba(0, 0, 0, .76), 0 0 56px rgba(194, 137, 62, .12);
    animation: hpc-new-menu-enter .48s cubic-bezier(.2, .78, .2, 1) both;
}

.hpc-new-menu-popup__dialog::after {
    content: "";
    position: absolute;
    inset: 13px;
    z-index: 4;
    border: 1px solid rgba(232, 190, 115, .15);
    pointer-events: none;
}

.hpc-new-menu-popup__close {
    position: absolute;
    top: 19px;
    right: 19px;
    z-index: 7;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 247, 231, .32);
    border-radius: 50%;
    background: rgba(16, 11, 8, .74);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.hpc-new-menu-popup__close:hover {
    border-color: rgba(232, 190, 115, .82);
    background: rgba(30, 19, 12, .96);
    transform: rotate(5deg);
}

.hpc-new-menu-popup__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 1px;
    background: #fff7e7;
}

.hpc-new-menu-popup__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.hpc-new-menu-popup__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.hpc-new-menu-popup__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #140d08;
}

.hpc-new-menu-popup__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 44% center;
}

.hpc-new-menu-popup__media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 5, 3, .02) 0%, rgba(8, 5, 3, .08) 38%, rgba(16, 11, 8, .88) 62%, #100b08 78%),
        linear-gradient(0deg, rgba(7, 4, 3, .42), transparent 48%);
}

.hpc-new-menu-popup__media-mark {
    position: absolute;
    left: 34px;
    bottom: 28px;
    color: rgba(255, 247, 231, .78);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .42em;
}

.hpc-new-menu-popup__content {
    position: relative;
    z-index: 3;
    display: flex;
    width: 47%;
    min-height: 560px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    padding: 66px 56px 52px 58px;
    color: #fff7e7;
}

.hpc-new-menu-popup__eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    color: #e8be73;
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
}

.hpc-new-menu-popup__eyebrow span {
    width: 34px;
    height: 1px;
    background: currentColor;
}

.hpc-new-menu-popup__content h2 {
    max-width: 430px;
    margin: 0;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(42px, 4.3vw, 58px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
}

.hpc-new-menu-popup__content strong {
    display: block;
    margin-top: 20px;
    color: #e8be73;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .03em;
}

.hpc-new-menu-popup__content p {
    max-width: 410px;
    margin: 15px 0 0;
    color: rgba(255, 247, 231, .74);
    font-family: Manrope, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.62;
}

.hpc-new-menu-popup__actions {
    display: grid;
    gap: 11px;
    margin-top: 27px;
}

.hpc-new-menu-popup__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 13px 20px;
    border: 1px solid rgba(232, 190, 115, .5);
    color: #fff7e7;
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.hpc-new-menu-popup__button svg {
    width: 17px;
    height: 17px;
    margin-left: 10px;
    fill: currentColor;
}

.hpc-new-menu-popup__button--primary {
    background: linear-gradient(135deg, rgba(232, 190, 115, .24), rgba(118, 75, 27, .13));
    box-shadow: inset 0 0 24px rgba(232, 190, 115, .08);
}

.hpc-new-menu-popup__button:hover {
    border-color: #e8be73;
    background: #e8be73;
    color: #150d08;
    transform: translateY(-1px);
}

@keyframes hpc-new-menu-enter {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 920px) and (min-width: 761px) {
    .hpc-new-menu-popup__dialog,
    .hpc-new-menu-popup__content { min-height: 510px; }
    .hpc-new-menu-popup__content { width: 50%; padding: 62px 42px 45px; }
    .hpc-new-menu-popup__content h2 { font-size: 44px; }
}

@media (max-width: 760px) {
    .hpc-new-menu-popup {
        align-items: center;
        padding: 12px;
    }

    .hpc-new-menu-popup__dialog {
        display: block;
        width: min(430px, 94vw);
        min-height: 0;
        max-height: 90svh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hpc-new-menu-popup__dialog::after { inset: 8px; }

    .hpc-new-menu-popup__close {
        top: 13px;
        right: 13px;
        width: 40px;
        height: 40px;
    }

    .hpc-new-menu-popup__media {
        position: relative;
        inset: auto;
        height: clamp(210px, 31vh, 270px);
    }

    .hpc-new-menu-popup__media img { object-position: 47% center; }

    .hpc-new-menu-popup__media-shade {
        background: linear-gradient(0deg, #100b08 0%, rgba(16, 11, 8, .08) 62%);
    }

    .hpc-new-menu-popup__media-mark {
        left: 22px;
        bottom: 18px;
        font-size: 10px;
    }

    .hpc-new-menu-popup__content {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 25px 26px 29px;
        background: #100b08;
    }

    .hpc-new-menu-popup__eyebrow {
        margin-bottom: 13px;
        font-size: 9px;
    }

    .hpc-new-menu-popup__content h2 {
        font-size: clamp(34px, 10.5vw, 43px);
        line-height: 1;
    }

    .hpc-new-menu-popup__content strong {
        margin-top: 13px;
        font-size: 14px;
    }

    .hpc-new-menu-popup__content p {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.5;
    }

    .hpc-new-menu-popup__actions {
        gap: 9px;
        margin-top: 18px;
    }

    .hpc-new-menu-popup__button {
        min-height: 49px;
        padding: 12px 15px;
        font-size: 10px;
    }
}

@media (max-width: 390px), (max-width: 760px) and (max-height: 700px) {
    .hpc-new-menu-popup__media { height: 180px; }
    .hpc-new-menu-popup__content { padding: 21px 21px 24px; }
    .hpc-new-menu-popup__content h2 { font-size: 32px; }
    .hpc-new-menu-popup__content p { font-size: 12px; }
    .hpc-new-menu-popup__button { min-height: 45px; }
}

@media (prefers-reduced-motion: reduce) {
    .hpc-new-menu-popup__dialog { animation: none; }
    .hpc-new-menu-popup__button,
    .hpc-new-menu-popup__close { transition: none; }
}
