.oms-careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.oms-careers-card {
    border: 2px solid #7948ae;
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.oms-careers-card-title {
    margin: 0 0 8px;
}

.oms-careers-card-location {
    margin: 0 0 4px;
    color: #555;
}

.oms-careers-card-apply {
    /* !important needed here: the shortcode sits inside a Divi Text module
       set to center-align, and the site's Customizer Additional CSS has
       ".et_pb_module.et_pb_text_align_center .cta-button { margin: 10px }"
       - that's 3 classes vs. this rule's 1, and Additional CSS is injected
       on wp_head at a very late priority so it wins the cascade regardless
       of specificity or stylesheet load order. */
    display: block !important;
    width: fit-content !important;
    margin: auto auto 0 !important;
    padding-top: 16px;
}

.oms-careers-empty {
    margin: 24px 0;
}

.oms-careers-detail {
    display: flex;
    gap: 40px;
    margin: 24px 0;
}

.oms-careers-detail-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.oms-careers-detail-main {
    flex: 1;
    min-width: 0;
}

.oms-careers-back-link {
    display: inline-block;
}

.oms-careers-apply-button {
    text-align: center;
}

@media (max-width: 767px) {
    .oms-careers-detail {
        flex-direction: column;
        gap: 24px;
    }

    .oms-careers-detail-sidebar {
        flex: 1 1 auto;
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
}
