/**
 * PWD 2026 — Listing Cards + Search Results v2.5.1
 */
.pwd-2026 .job_listing,
.pwd-2026 .type-job_listing { transition: transform var(--pwd-transition), box-shadow var(--pwd-transition); }

.pwd-2026 .type-job_listing.style-grid .content-box {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(32,32,30,.075);
    border-radius: 20px;
    background: #fff;
    box-shadow: none;
}
.pwd-2026 .type-job_listing.style-grid .content-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(31,29,25,.10);
}

/* Image is photography, not a text background. */
.pwd-2026 .type-job_listing.style-grid .job_listing-entry-header {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    background-position: center;
    background-size: cover;
}
.pwd-2026 .type-job_listing.style-grid .job_listing-entry-header:after,
.pwd-2026 .type-job_listing.style-grid .job_listing-entry-header.has-image:after {
    background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,.05));
}

/* Once JS relocates the card metadata, hide the old overlay wrapper. */
.pwd-2026 .type-job_listing.style-grid.pwd-card-enhanced .job_listing-entry-header-wrapper {
    display: none;
}

.pwd-2026 .type-job_listing.style-grid .job_listing-entry-footer,
.pwd-2026 .type-job_listing.style-grid .image_content_company_logo {
    display: block;
    position: relative;
    min-height: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: #fff;
}

.pwd-2026 .pwd-card-copy {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 22px;
}

/* Two-line, predictable title footprint. JS also caps unusually long card titles. */
.pwd-2026 .pwd-card-copy .job_listing-title {
    display: -webkit-box;
    min-height: 2.28em;
    max-height: 2.28em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--pwd-text);
    font-family: var(--pwd-font-display);
    font-size: clamp(18px, 1.45vw, 23px);
    font-weight: 400;
    letter-spacing: -.005em;
    line-height: 1.14;
    text-overflow: ellipsis;
    text-shadow: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Host sits directly under the title, before the rule. */
.pwd-2026 .pwd-card-copy > .host {
    min-height: 18px;
    margin: 0;
    color: var(--pwd-text);
    font-family: var(--pwd-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Price + dates share the row below the rule. */
.pwd-2026 .pwd-card-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pwd-border);
}
.pwd-2026 .pwd-card-meta-row .grid_cost {
    flex: 0 0 auto;
    margin: 0;
    color: var(--pwd-accent-hover);
    font-family: var(--pwd-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.4;
    text-shadow: none;
}
.pwd-2026 .pwd-card-meta-row .pwd-card-date {
    flex: 1 1 auto;
    margin: 0;
    color: var(--pwd-text-soft);
    font-family: var(--pwd-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: right;
}

/* Keep the heart on the image. */
.pwd-2026 .type-job_listing.style-grid .astoundify-favorites-link,
.pwd-2026 .type-job_listing.style-grid .wp-job-manager-bookmarks-form {
    z-index: 8;
}

/* Company/logo content should not create a second visual footer block. */
.pwd-2026 .type-job_listing.style-grid .listing-entry-company-image { margin: 0 22px 20px; }

/* Search/filter controls should feel like one calm interface. */
.pwd-2026 .job_search_form,
.pwd-2026 .search_jobs,
.pwd-2026 .facetwp-facet { color: var(--pwd-text); }
.pwd-2026 .facetwp-dropdown,
.pwd-2026 .facetwp-search { border-color: var(--pwd-border); background: var(--pwd-surface); }

@media (max-width: 560px) {
    .pwd-2026 .pwd-card-copy { padding: 19px 20px 20px; }
    .pwd-2026 .pwd-card-meta-row { gap: 12px; }
    .pwd-2026 .pwd-card-meta-row .pwd-card-date { max-width: 64%; }
}


/* ===== v2.5 card refinements ===== */

/* Listify draws the Featured outline with a pseudo-element.
   Match it to our 20px card/image radius so the gold stroke
   follows the top corners cleanly. */
.pwd-2026 .type-job_listing.style-grid.job_position_featured .job_listing-entry-header,
.pwd-2026 .type-job_listing.style-grid.job_position_featured .job_listing-entry-header:before,
.pwd-2026 .type-job_listing.style-grid.job_position_featured .job_listing-entry-header:after {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.pwd-2026 .type-job_listing.style-grid.job_position_featured .job_listing-entry-header:before {
    overflow: hidden;
}

/* Slightly stronger separation now that metadata is larger. */
.pwd-2026 .pwd-card-copy > .host {
    margin-top: 2px;
}

.pwd-2026 .pwd-card-meta-row {
    align-items: center;
}

@media (max-width: 560px) {
    .pwd-2026 .pwd-card-copy > .host,
    .pwd-2026 .pwd-card-meta-row .grid_cost,
    .pwd-2026 .pwd-card-meta-row .pwd-card-date {
        font-size: 13px;
    }
}


/* ===== v2.5.1 host typography ===== */
.pwd-2026 .pwd-card-copy > .host {
    font-size: 18px !important;
    line-height: 1.35;
}

@media (max-width: 560px) {
    .pwd-2026 .pwd-card-copy > .host {
        font-size: 16px !important;
    }
}
