.hb-search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-block: 18px 28px;
}

.hb-search-results-grid .hb-search-result-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: clamp(14px, 2vw, 24px);
    overflow-wrap: anywhere;
}

.hb-search-result-card :is(h3, p, dl) {
    margin: 0;
}

.hb-search-result-card h3 {
    font-size: clamp(1.125rem, 1.7vw, 1.375rem);
    line-height: 1.5;
}

.hb-search-result-card .hb-job-card__top,
.hb-search-result-card__labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hb-search-result-card__excerpt {
    color: var(--hb-muted);
    font-size: .9375rem;
    line-height: 1.65;
}

.hb-search-result-card .hb-job-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: auto;
}

.hb-search-result-card .hb-job-card__pay dd {
    color: var(--hb-primary);
    font-weight: 700;
}

.hb-search-result-card__points summary {
    color: var(--hb-primary);
    cursor: pointer;
    width: fit-content;
}

.hb-search-result-card__points ul {
    flex-wrap: wrap;
    margin-block: 8px 0;
}

.hb-search-result-card .job-btnarea {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

@media (max-width: 767px) {
    .hb-search-results-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hb-search-result-card .hb-job-card__facts:has(.hb-search-result-card__wide-fact) {
        grid-template-columns: minmax(0, 1fr);
    }

    .hb-job-results-content :is(.hb-job-results-count, .search-result_layout, .pagination, .hb-job-refine__details) {
        min-width: 0;
        max-width: 100%;
    }

    .hb-job-results-content .pagination .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .hb-job-results-content .pagination .page-numbers {
        flex: 0 0 40px;
    }

    .hb-job-results-content .hb-job-refine :is(input, .hb-tax-filter__selection) {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Contrast only for the expandable feature links on search result cards. */
.hb-search-result-card .hb-search-result-card__points .job-point a.btn.btn-outline {
    color: #173b53 !important;
    background-color: #eaf4fb !important;
    border-color: #6b879b;
}

.hb-search-result-card .hb-search-result-card__points .job-point a.btn.btn-outline:is(:hover, :focus-visible) {
    color: #ffffff !important;
    background-color: #245884 !important;
    border-color: #245884;
}

.hb-search-result-card .hb-search-result-card__points .job-point a.btn.btn-outline:focus-visible {
    outline: 2px solid #245884;
    outline-offset: 2px;
}
