
/* DX Jobs Listing v1.3 */

.dx-jobs-list,
.dx-jobs-list * {
    box-sizing: border-box;
}

.dx-jobs-list {
    --dx-purple: #c8a247;
    --dx-purple-soft: #f7f3ea;
    --dx-ink: #050505;
    --dx-text: #22364f;
    --dx-muted: #7e8792;
    --dx-border: #d9d4ca;
    --dx-soft: #f5f3ee;
    --dx-company-soft: #f4f1e9;
    --dx-company-icon: #5f6770;

    width: 100%;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dx-job-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(220px, .88fr) minmax(150px, auto);
    align-items: center;
    gap: 26px;
    min-height: 92px;
    padding: 18px 20px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid var(--dx-border);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(20, 28, 45, .05);

    color: var(--dx-ink) !important;
    text-decoration: none !important;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.dx-job-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 0 8px 8px 0;
    background: var(--dx-purple);
    transform: translateY(-50%);
    transition: height .18s ease;
}

.dx-job-card--clickable {
    cursor: pointer;
}

.dx-job-card--clickable:hover {
    transform: translateY(-1px);
    border-color: #d6c59c;
    box-shadow: 0 10px 26px rgba(20, 28, 45, .075);
}

.dx-job-card--clickable:hover::before {
    height: 34%;
}

.dx-job-card--clickable:focus-visible {
    outline: 2px solid rgba(200, 162, 71, .42);
    outline-offset: 2px;
}

/* Job title */
.dx-job-role {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dx-job-role-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--dx-purple-soft);
    color: var(--dx-purple);
}

.dx-job-role-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dx-job-title {
    min-width: 0;
    margin: 0;
    color: #050505;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

/* Company */
.dx-job-company-block {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dx-job-meta-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--dx-company-soft);
    color: var(--dx-company-icon);
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.dx-job-meta-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dx-job-company {
    min-width: 0;
    color: #22364f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Date */
.dx-job-date-wrap {
    display: flex;
    justify-content: flex-end;
}

.dx-job-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid var(--dx-border);
    border-radius: 11px;
    background: #f7f5f0;
    color: #22364f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.dx-job-date-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7d838a;
}

.dx-job-date-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dx-jobs-empty {
    padding: 22px;
    border: 1px solid var(--dx-border);
    border-radius: 14px;
    background: #fff;
    color: var(--dx-text);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

/* Tablet */
@media (max-width: 920px) {
    .dx-job-card {
        grid-template-columns: minmax(0, 1.4fr) minmax(170px, .75fr) auto;
        gap: 18px;
        padding: 16px 18px;
    }

    .dx-job-role-icon {
        width: 48px;
        height: 48px;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .dx-job-card {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "role date"
            "company company";
        gap: 12px 14px;
        min-height: auto;
        padding: 16px;
        border-radius: 15px;
    }

    .dx-job-role {
        grid-area: role;
    }

    .dx-job-company-block {
        grid-area: company;
        padding-left: 64px;
    }

    .dx-job-date-wrap {
        grid-area: date;
    }

    .dx-job-role-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .dx-job-title {
        font-size: 15px;
    }
}

/* Small mobile */
@media (max-width: 520px) {
    .dx-job-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "role"
            "company"
            "date";
        gap: 11px;
    }

    .dx-job-company-block {
        padding-left: 0;
    }

    .dx-job-date-wrap {
        justify-content: flex-start;
    }
}


/* v1.5 visual theme — black / navy / warm gold */
.dx-job-card,
.dx-job-card * {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.dx-job-title {
    color: #050505;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dx-job-company {
    color: #22364f;
    font-weight: 500;
}

.dx-job-date-pill {
    color: #22364f;
    font-weight: 500;
    background: #f7f5f0;
    border-color: #ddd8ce;
}

.dx-job-role-icon {
    background: #f6f1e6;
    color: #c8a247;
}

.dx-job-meta-icon {
    background: #f4f1ea;
    color: #686f78;
}

.dx-job-card--clickable:hover {
    border-color: #d6c59c;
    box-shadow: 0 10px 26px rgba(17, 24, 39, .075);
}

.dx-job-card--clickable:hover::before {
    background: #c8a247;
}
