.usa-jobs-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Match the USA listing: keep the staffing button, not its covering bubble. */
.staff-request-widget__bubble { display: none; }

.usa-jobs-results-grid .job-card {
    position: relative;
    min-width: 0;
    min-height: 286px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 14px 13px;
    overflow: hidden;
    border: 1px solid #dbe7ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(11, 51, 102, 0.06);
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.usa-jobs-results-grid .job-card:hover,
.usa-jobs-results-grid .job-card:focus-within {
    transform: translateY(-4px);
    border-color: #79d9d6;
    background: #ffffff !important;
    box-shadow: 0 18px 38px rgba(11, 51, 102, 0.12);
}

.job-card-topline {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.job-like-button {
    min-width: 34px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    color: #74a4bf;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.job-like-button i {
    font-size: 13px;
}

.job-like-button .job-like-count {
    min-width: 8px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.job-like-button:hover,
.job-like-button:focus-visible {
    color: #d83f61;
    background: #fff0f4;
    transform: translateY(-1px);
}

.job-like-button.is-liked {
    color: #d83f61;
    background: #fff0f4;
}

.job-like-button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.job-card-label {
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 11px;
    border-radius: 999px;
    background: #10c9c3;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(10, 186, 181, 0.18);
}

.job-card-label.featured {
    background: #6552e8;
    box-shadow: 0 4px 10px rgba(101, 82, 232, 0.18);
}

.job-card-identity {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.job-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #e2f9fa, #cceef1);
    color: #08aaa5;
    font-size: 20px;
}

.job-card-icon.violet {
    background: linear-gradient(145deg, #f0edff, #e3ddff);
    color: #6d53e8;
}

.job-card-icon.blue {
    background: linear-gradient(145deg, #e4f4ff, #d3edfc);
    color: #1599d0;
}

.job-card-heading {
    min-width: 0;
}

.usa-jobs-results-grid .job-title {
    min-height: 0;
    margin: 0 0 3px;
    color: #0b3366;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.job-card-heading p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 7px;
    margin: 0;
    color: #3182aa;
    font-size: 11px;
    line-height: 1.35;
}

.job-employment-type {
    padding: 2px 6px;
    border-radius: 4px;
    background: #eff8fa;
    color: #597189;
    font-size: 9px;
    font-weight: 600;
}

.job-status {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.job-status.is-active {
    background: #dcf8e7;
    color: #087a43;
}

.job-status.is-expired {
    background: #ffe3e3;
    color: #c42f3b;
}

.job-location {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 7px 0 6px;
    color: #287ca5;
    font-size: 10px;
    line-height: 1.3;
}

.job-location i {
    color: #0abab5;
}

.job-location span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-location img {
    width: 17px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
}

.job-quick-facts {
    display: grid;
    grid-template-columns: 1.12fr 0.72fr 1.28fr;
    gap: 6px;
    margin: 0;
}

.job-quick-facts span {
    min-width: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border: 1px solid #edf3f6;
    border-radius: 5px;
    background: #f8fbfc;
    color: #39769a;
    font-size: 9px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.job-quick-facts i {
    flex: 0 0 auto;
    color: #08aaa5;
    font-size: 12px;
}

.job-quick-facts .job-deadline-fact.is-active {
    border-color: #f1d765;
    background: #fffbea;
    color: #79620b;
}

.job-quick-facts .job-deadline-fact.is-active i {
    color: #c39600;
}

.job-quick-facts .job-deadline-fact.is-expired {
    border-color: #ffc7cb;
    background: #fff1f2;
    color: #b32632;
}

.job-quick-facts .job-deadline-fact.is-expired i {
    color: #d83c49;
}

.usa-jobs-results-grid .job-desc {
    display: -webkit-box;
    min-height: 43px;
    margin: 8px 0 9px;
    overflow: hidden;
    color: #4d7896;
    font-size: 10.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.job-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: auto;
}

.usa-jobs-results-grid .job-card-actions a {
    min-width: 0;
    height: 34px;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.usa-jobs-results-grid .job-card-actions .btn-secondary {
    border: 1px solid #0abab5;
    background: #ffffff;
    color: #099e99;
}

.usa-jobs-results-grid .job-card-actions .btn-secondary:hover {
    background: #eefbfb;
}

.usa-jobs-results-grid .job-card-actions .apply-btn {
    border: 1px solid #0abab5;
    background: linear-gradient(180deg, #13c9c4, #06aaa5);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(10, 186, 181, 0.18);
}

.usa-jobs-results-grid .job-card-actions .apply-btn:hover {
    background: linear-gradient(180deg, #0fbab5, #079793);
}

.usa-jobs-results-grid .job-card-actions .apply-btn.expired,
.usa-jobs-results-grid .job-card-actions .apply-btn.expired:hover {
    border-color: #e4a6aa;
    background: #fff1f2;
    color: #b32632;
    box-shadow: none;
}

.jobs-section .jobs-filters input[type="text"],
.jobs-section .filter-dropdown-toggle,
.jobs-section .jobs-native-filter select,
.jobs-section .active-only-filter,
.jobs-section .filter-dropdown-menu button,
.jobs-section .jobs-filter-btn {
    color: #48627e;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
}

.jobs-section .jobs-filters input[type="text"]::placeholder {
    color: #71879a;
    opacity: 1;
}

.jobs-section .jobs-filter-btn {
    color: #ffffff;
    font-weight: 700;
}

.home-jobs-results-grid {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.home-jobs-section {
    position: relative;
    background: #edf7f9;
    border-top: 1px solid #dcebef;
    border-bottom: 1px solid #dcebef;
}

.home-jobs-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(208, 170, 38, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 170, 38, 0.16) 1px, transparent 1px);
    background-size: 86px 86px;
}

.home-jobs-section > * {
    position: relative;
    z-index: 1;
}

.usa-jobs-results-grid.is-list-view {
    grid-template-columns: 1fr;
}

.usa-jobs-results-grid.is-list-view .job-card {
    min-height: 0;
}

@media (max-width: 1040px) {
    .jobs-section .jobs-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jobs-section .jobs-filter-btn {
        width: 100%;
    }

    .usa-jobs-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .jobs-section {
        padding: 28px 0 54px;
    }

    .jobs-section > .container {
        width: 100%;
        max-width: none;
        padding-right: 14px;
        padding-left: 14px;
        box-sizing: border-box;
    }

    .jobs-section .jobs-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .jobs-section .jobs-filter-btn {
        width: 100%;
        align-self: stretch;
    }

    .jobs-listing-toolbar {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
    }

    .jobs-listing-title h2 {
        font-size: 20px;
    }

    .jobs-sort-control select {
        width: 136px;
        font-size: 10px;
    }

    .jobs-view-toggle {
        display: none;
    }

    .usa-jobs-results-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .usa-jobs-results-grid .job-card {
        min-height: 0;
        padding: 15px;
    }

    .usa-jobs-results-grid .job-title {
        min-height: 0;
        font-size: 15px;
    }

    .job-quick-facts {
        grid-template-columns: 1fr 1fr;
    }

    .job-quick-facts span:last-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .usa-jobs-results-grid .job-card {
        transition: none;
    }
}

/* Readable card copy at every viewport, with room for wrapped actions. */
.usa-jobs-results-grid .job-title { font-size: 16px; line-height: 1.4; }
.job-card-heading p { font-size: 13px; }
.job-employment-type, .job-status { font-size: 11px; }
.job-location { font-size: 12px; }
.job-quick-facts span { font-size: 11px; line-height: 1.4; }
.usa-jobs-results-grid .job-desc { font-size: 13px; line-height: 1.55; min-height: 61px; }
.usa-jobs-results-grid .job-card-actions a {
    font-size: 13px;
    height: auto;
    min-height: 40px;
    padding: 9px;
    line-height: 1.4;
}
