.l8-careers-overlay {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: grid;
    padding: 32px;
    opacity: 0;
    place-items: center;
    transition: opacity 220ms ease;
}

.l8-careers-overlay[hidden] {
    display: none;
}

.l8-careers-overlay.is-open {
    opacity: 1;
}

.l8-careers-overlay__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(234, 234, 231, .52);
    cursor: default;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.l8-careers-overlay__panel {
    position: relative;
    width: min(760px, calc(100vw - 64px));
    min-height: min(580px, calc(100dvh - 64px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    padding: 48px 40px 32px;
    background: rgba(247, 247, 244, .74);
    color: #303030;
    box-shadow: 0 20px 60px rgba(48, 48, 48, .08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(8px);
    transition: transform 220ms ease;
}

.l8-careers-overlay.is-open .l8-careers-overlay__panel {
    transform: translateY(0);
}

.l8-careers-overlay__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.l8-careers-overlay__header h2,
.l8-careers-overlay__intro,
.l8-careers-role {
    font-family: "SFMono-Regular", "Roboto Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
    letter-spacing: 0;
}

.l8-careers-overlay__header h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.l8-careers-overlay__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: #858585;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.l8-careers-overlay__close:hover,
.l8-careers-overlay__close:focus-visible {
    color: #303030;
    outline: 1px solid rgba(48, 48, 48, .12);
    outline-offset: 2px;
}

.l8-careers-overlay__intro {
    max-width: 560px;
    margin: 40px 0;
    color: #858585;
    font-size: 11px;
    line-height: 1.65;
}

.l8-careers-overlay__intro p,
.l8-careers-role p,
.l8-careers-role h3 {
    margin: 0;
}

.l8-careers-overlay__roles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.l8-careers-role {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    min-width: 0;
    min-height: 320px;
    box-sizing: border-box;
    align-items: start;
    gap: 18px;
    border: 1px solid rgba(48, 48, 48, .12);
    border-radius: 14px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, .24);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.l8-careers-role:hover,
.l8-careers-role:focus-within {
    border-color: rgba(48, 48, 48, .22);
    background: rgba(255, 255, 255, .42);
    transform: translateY(-1px);
}

.l8-careers-role__index,
.l8-careers-role__identity p {
    color: #a6a6a6;
    font-size: 10px;
    line-height: 1.5;
}

.l8-careers-role__identity h3 {
    color: #303030;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.l8-careers-role__identity p {
    margin-top: 7px;
}

.l8-careers-role__description {
    color: #858585;
    font-size: 11px;
    line-height: 1.6;
}

.l8-careers-role__apply {
    display: inline-flex;
    align-self: end;
    justify-self: start;
    min-width: 64px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(48, 48, 48, .14);
    border-radius: 999px;
    padding: 0 14px;
    color: #303030;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
}

.l8-careers-role__apply:hover,
.l8-careers-role__apply:focus-visible {
    border-color: rgba(48, 48, 48, .3);
    outline: none;
}

body.l8-careers-surface-open {
    overflow: hidden;
}

@media (max-width: 809.98px) {
    .l8-careers-overlay {
        padding: 14px;
    }

    .l8-careers-overlay__panel {
        width: calc(100vw - 28px);
        min-height: 0;
        max-height: calc(100dvh - 28px);
        border-radius: 18px;
        padding: 40px 24px 24px;
    }

    .l8-careers-overlay__close {
        top: 12px;
        right: 12px;
    }

    .l8-careers-overlay__intro {
        max-width: 100%;
        margin: 32px 0;
    }

    .l8-careers-overlay__roles {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .l8-careers-role {
        min-height: 0;
        gap: 12px;
        padding: 18px 16px;
    }

    .l8-careers-role__apply {
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .l8-careers-overlay,
    .l8-careers-overlay__panel,
    .l8-careers-role {
        transition: none;
    }

    .l8-careers-role:hover,
    .l8-careers-role:focus-within {
        transform: none;
    }
}
