/* ============================================================
   JOB CARD — GLOBAL STANDARD
   ------------------------------------------------------------
   Moved out of index.php's inline <style> block. Previously this
   whole block was printed inline on every homepage request, which
   duplicated the same CSS on every page load, could not be cached
   by the browser separately from the HTML, and mixed presentation
   into markup. It now ships as its own cacheable stylesheet and is
   linked from <head> alongside global.css.
   ============================================================ */

.jo-job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}


/* ============================================================
   CARD
   ============================================================ */

.jo-job-card-horizontal {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    overflow: hidden;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.jo-job-card-horizontal:hover {
    border-color: #b8c7d9;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}


.jo-job-card-content {
    padding: 1.5rem;
}


/* ============================================================
   HEADER
   ============================================================ */

.jo-job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #e8edf3;
}

.jo-job-card-title-wrap {
    min-width: 0;
}

.jo-job-card-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}


.jo-job-title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.35;
}

.jo-job-title a {
    color: #0f172a;
    text-decoration: none;
}

.jo-job-title a:hover,
.jo-job-title a:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
}


/* ============================================================
   JOB TYPE
   ============================================================ */

.jo-job-type {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.4rem 0.7rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}


/* ============================================================
   DETAILS
   ============================================================ */

.jo-job-details {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 0;
}


.jo-job-detail {
    min-width: 0;
}


.jo-job-detail-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.jo-job-detail-value {
    display: block;
    color: #1e293b;
    font-size: 0.92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* ============================================================
   ORIGINAL TITLE
   ============================================================ */

.jo-job-original {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.65rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.5;
}


/* ============================================================
   SOURCE / EMPLOYER ATTRIBUTION NOTICE
   ============================================================ */

.jo-job-source-notice {
    margin-top: 1.15rem;
    padding: 0.9rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.55;
}

.jo-job-source-notice a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.jo-job-source-notice a:hover,
.jo-job-source-notice a:focus-visible {
    text-decoration: underline;
}

.jo-job-source-notice p {
    margin: 0.35rem 0 0;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.jo-job-description {
    padding: 1.15rem 0 0;
}


.jo-job-description p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


/* ============================================================
   APPLICATION LINK
   ============================================================ */

.jo-job-application {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.jo-job-application a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.jo-job-application a:hover,
.jo-job-application a:focus-visible {
    text-decoration: underline;
}


/* ============================================================
   CARD FOOTER
   ============================================================ */

.jo-job-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e8edf3;
}


.jo-job-footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-width: 0;
}


.jo-job-footer-item {
    min-width: 0;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.5;
}


.jo-job-footer-item time {
    display: block;
    font-weight: 700;
    color: #b45309;
}


/* ============================================================
   ACTION
   ============================================================ */

.jo-job-footer-action {
    flex: 0 0 auto;
}


.jo-job-view-button {
    white-space: nowrap;
    text-decoration: none;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .jo-job-details {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .jo-job-card-footer {
        align-items: flex-start;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .jo-job-card-content {
        padding: 1.15rem;
    }

    .jo-job-card-header {
        display: block;
    }

    .jo-job-type {
        margin-top: 0.75rem;
    }

    .jo-job-details {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .jo-job-card-footer {
        display: block;
    }

    .jo-job-footer-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .jo-job-footer-action {
        margin-top: 1rem;
    }

    .jo-job-view-button {
        display: block;
        width: 100%;
        text-align: center;
    }

}
