/* Block: job-listing */
.job-listing {
    display: grid;
    gap: 1rem;
}

/* Element: item */
.job-listing__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Element: info (left column) */
.job-listing__info {
    flex: 1;
    min-width: 0;
}

.job-listing__title {
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black, #0a0a0a);
    line-height: 1.3;
}

.job-listing__location,
.job-listing__subtitle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: #71717a;
    line-height: 1.4;
}

/* Element: icon */
.job-listing__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #71717a;
}

/* Element: apply button */
.job-listing__apply {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.75rem;
    background: #fff;
    color: var(--black, #0a0a0a);
    text-decoration: none;
    border: 1.5px solid var(--black, #0a0a0a);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.job-listing__apply:hover {
    background: var(--black, #0a0a0a);
    color: #fff;
}

/* States */
.bwj2-error,
.bwj2-no-jobs {
    padding: 1rem 1.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
}

.bwj2-no-jobs {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

@media (max-width: 640px) {
    .job-listing__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
