/*
 * Open Positions block.
 *
 * Vertical list of job rows: role + location on the left, the standard
 * .btn (lime variant, navy text) on the right. Every row is followed by a
 * 1px Quartz/20 line at 20% opacity. Rows stack on mobile.
 */

.openpos-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    /* The block often sits in a centered column: rows are always left-aligned. */
    text-align: left;
    /* Match Figma's grayscale rendering: subpixel AA makes text look bolder on macOS. */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.openpos-item {
    align-items: flex-start;
    border-bottom: 1px solid rgb(252 251 251 / 0.2); /* Quartz/20 @ 20% */
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0 0 32px;
}

.openpos-item + .openpos-item {
    padding-top: 32px;
}

.openpos-info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    word-break: break-word;
}

.openpos-role {
    color: var(--color-quartz-20);
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 32px;
    margin: 0;
}

.openpos-location {
    color: var(--color-quartz-60);
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 28px;
    margin: 0;
}

.openpos-cta {
    --btn-fg: var(--color-navy-80);

    flex-shrink: 0;
}

@media (min-width: 768px) {
    .openpos-item {
        align-items: center;
        flex-direction: row;
        gap: 50px;
    }

    .openpos-info {
        align-items: center;
        flex-direction: row;
        gap: 32px;
    }

    .openpos-role {
        flex: 0 0 406px;
        max-width: 50%;
    }

    .openpos-location {
        flex: 1 1 0;
        min-width: 0;
    }
}
