/* Professional job-list presentation shared by public and member job boards. */
.jobs-page {
  --job-list-border: #dfe7e2;
  --job-list-muted: #637068;
  --job-list-soft: #f6faf7;
  --job-list-mint: #e5f1ea;
  --job-list-green: #17623f;
  --job-list-ink: #17231b;
}

.jobs-page .jobs-results-main {
  min-width: 0;
}

.jobs-page .jobs-results-header {
  padding: 15px 18px;
  border: 1px solid var(--job-list-border);
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.jobs-page .jobs-results-header h2 {
  margin: 2px 0 3px;
  color: var(--job-list-ink);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.jobs-page .job-results-summary {
  margin: 0;
  color: var(--job-list-muted);
  font-size: .76rem;
}

.jobs-page .jobs-sort-control {
  min-width: 150px;
}

.jobs-page .jobs-sort-control select {
  min-height: 40px;
  border-radius: 8px;
  font-size: .75rem;
}

.jobs-page .public-jobs-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--job-list-border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.jobs-page .public-job-card,
.member-jobs-page .member-saved-jobs .public-job-card {
  min-height: 142px;
  padding: 16px 18px;
  grid-template-columns: 66px minmax(0, 1fr) 108px !important;
  grid-template-rows: auto auto auto !important;
  grid-template-areas:
    "logo title actions"
    "logo company actions"
    "logo meta actions" !important;
  gap: 5px 14px;
  border: 0;
  border-bottom: 1px solid var(--job-list-border);
  border-left: 3px solid transparent;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.jobs-page .public-job-card[data-job-detail-href],
.member-jobs-page .public-job-card[data-job-detail-href] {
  cursor: pointer;
}

.jobs-page .public-job-card:last-child,
.member-jobs-page .member-saved-jobs .public-job-card:last-child {
  border-bottom: 0;
}

.jobs-page .public-job-card:hover,
.jobs-page .public-job-card:focus-within {
  transform: none;
  border-left-color: #d2a72b;
  background: var(--job-list-soft);
  box-shadow: none;
}

.jobs-page .job-logo-cell,
.member-jobs-page .member-saved-jobs .job-logo-cell {
  grid-area: logo !important;
}

.jobs-page .job-company-logo,
.member-jobs-page .job-company-logo {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  border: 1px solid var(--job-list-border);
  border-radius: 10px;
  background: linear-gradient(145deg, #edf6f1, #dcece3);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(23, 98, 63, .05);
}

.jobs-page .job-company-logo:not(.has-logo)::after,
.member-jobs-page .job-company-logo:not(.has-logo)::after {
  position: absolute;
  z-index: -1;
  right: -13px;
  bottom: -17px;
  width: 43px;
  height: 43px;
  border: 9px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
}

.jobs-page .job-company-logo:not(.has-logo) b,
.member-jobs-page .job-company-logo:not(.has-logo) b {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.jobs-page .job-company-logo.logo-brand-0,
.member-jobs-page .job-company-logo.logo-brand-0 { background: linear-gradient(145deg, #17623f, #26865c); }
.jobs-page .job-company-logo.logo-brand-1,
.member-jobs-page .job-company-logo.logo-brand-1 { background: linear-gradient(145deg, #b78b22, #ddba55); }
.jobs-page .job-company-logo.logo-brand-2,
.member-jobs-page .job-company-logo.logo-brand-2 { background: linear-gradient(145deg, #24677a, #3d98a9); }
.jobs-page .job-company-logo.logo-brand-3,
.member-jobs-page .job-company-logo.logo-brand-3 { background: linear-gradient(145deg, #5b4d86, #8575b0); }
.jobs-page .job-company-logo.logo-brand-4,
.member-jobs-page .job-company-logo.logo-brand-4 { background: linear-gradient(145deg, #8a4f35, #bb7656); }
.jobs-page .job-company-logo.logo-brand-5,
.member-jobs-page .job-company-logo.logo-brand-5 { background: linear-gradient(145deg, #365a4c, #708c73); }

.jobs-page .job-company-logo.has-logo,
.member-jobs-page .job-company-logo.has-logo {
  background: #fff;
}

.jobs-page .job-company-logo img,
.member-jobs-page .job-company-logo img {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  background: #fff;
}

.jobs-page .job-company-logo img[src*="prevail-group.png"],
.member-jobs-page .job-company-logo img[src*="prevail-group.png"] {
  transform: scale(1.45);
}

.jobs-page .job-company-logo.has-logo b,
.member-jobs-page .job-company-logo.has-logo b {
  display: none;
}

.jobs-page .job-title-cell,
.member-jobs-page .member-saved-jobs .job-title-cell {
  grid-area: title !important;
}

.jobs-page .job-card-topline {
  margin: 0 0 4px;
  gap: 5px;
}

.jobs-page .job-source,
.jobs-page .job-pill {
  padding: 3px 7px;
  font-size: .55rem;
  line-height: 1.25;
  letter-spacing: .01em;
}

.jobs-page .job-title-cell h3 {
  margin: 0;
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.98rem, 1.4vw, 1.13rem);
  font-weight: 800;
  line-height: 1.22;
}

.jobs-page .job-title-cell h3 a {
  color: var(--job-list-ink);
  text-decoration: none;
}

.jobs-page .job-title-cell h3 a:hover,
.jobs-page .job-title-cell h3 a:focus-visible {
  color: var(--job-list-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jobs-page .job-title-cell .job-description {
  width: auto;
  margin: 4px 0 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: #7a6728;
  font-size: .65rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-page .job-title-cell > small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--job-list-muted);
  font-size: .68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-page .job-company-cell,
.member-jobs-page .member-saved-jobs .job-company-cell {
  grid-area: company !important;
  min-width: 0;
  align-items: center;
  color: var(--job-list-green);
  font-size: .76rem;
  line-height: 1.25;
}

.jobs-page .job-company-cell strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-page .job-company-cell small {
  margin-left: auto;
  color: var(--job-list-muted);
  font-size: .61rem;
  font-weight: 500;
  white-space: nowrap;
}

.jobs-page .job-meta-row,
.member-jobs-page .member-saved-jobs .job-meta-row {
  grid-area: meta !important;
  min-width: 0;
  margin: 1px 0 0;
  padding: 7px 0 0;
  grid-template-columns: minmax(112px, 1.25fr) minmax(90px, .8fr) minmax(72px, .65fr) minmax(88px, .75fr);
  gap: 8px;
  border-top: 1px solid #edf1ee;
}

.jobs-page .job-location-cell,
.jobs-page .job-type-cell,
.jobs-page .job-posted-cell,
.jobs-page .job-deadline-cell {
  min-width: 0;
  overflow: hidden;
  font-size: .62rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-page .job-actions-cell,
.member-jobs-page .member-saved-jobs .job-actions-cell {
  grid-area: actions !important;
  align-self: center;
  min-height: 0;
  margin: 0;
  padding: 0 0 0 12px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 38px;
  gap: 0;
  border-top: 0;
  border-left: 1px solid var(--job-list-border);
}

.jobs-page .job-actions-cell .button,
.jobs-page .job-actions-cell .button:not(.secondary):not(.job-apply-disabled),
.jobs-page .job-actions-cell .button.secondary,
.jobs-page .job-actions-cell .job-apply-disabled {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .68rem;
}

.jobs-page .job-actions-cell .button:not(.secondary):not(.job-apply-disabled) {
  grid-column: 1;
  grid-row: 1;
}

.jobs-page .job-actions-cell .button.secondary {
  grid-column: 1;
  grid-row: 2;
}

.jobs-page .job-save-button,
.member-jobs-page .job-save-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  grid-column: 2;
  grid-row: 1;
  border-radius: 8px;
  background: #fff;
  font-size: .88rem;
}

.jobs-page .job-report-link,
.member-jobs-page .job-report-link {
  min-height: 36px;
  grid-column: 2;
  grid-row: 2;
  justify-self: stretch;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c6251;
  font-size: .54rem;
  text-align: center;
}

.member-jobs-page .member-jobs-intro {
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.member-jobs-page .member-jobs-intro h2 {
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.member-jobs-page .member-job-board {
  padding: clamp(16px, 2vw, 24px);
  border-radius: 14px;
}

@media (max-width: 760px) {
  .jobs-page .jobs-results-header {
    padding: 12px;
    align-items: end;
  }

  .jobs-page .jobs-results-header .eyebrow {
    display: none;
  }

  .jobs-page .jobs-results-header h2 {
    font-size: 1.12rem;
  }

  .jobs-page .jobs-sort-control {
    min-width: 118px;
  }

  .jobs-page .jobs-sort-control select {
    min-height: 36px;
    padding: 6px 28px 6px 8px;
  }

  .jobs-page .public-job-card,
  .member-jobs-page .public-job-card,
  .member-jobs-page .member-saved-jobs .public-job-card {
    min-height: 0;
    padding: 11px 12px;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto !important;
    grid-template-areas:
      "logo title"
      "logo company"
      "meta meta"
      "actions actions" !important;
    gap: 3px 10px;
  }

  .jobs-page .job-company-logo,
  .member-jobs-page .job-company-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }

  .jobs-page .job-card-topline {
    margin-bottom: 3px;
  }

  .jobs-page .job-title-cell h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: .96rem;
    line-height: 1.16;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .jobs-page .job-title-cell .job-description,
  .jobs-page .job-title-cell > small,
  .jobs-page .job-company-cell small {
    display: none;
  }

  .jobs-page .job-company-cell {
    display: flex;
    font-size: .69rem;
  }

  .jobs-page .job-meta-row,
  .member-jobs-page .member-saved-jobs .job-meta-row {
    margin-top: 3px;
    padding-top: 6px;
    grid-template-columns: minmax(0, 1.15fr) minmax(68px, .75fr) minmax(80px, .8fr);
    gap: 6px;
  }

  .jobs-page .job-location-cell,
  .jobs-page .job-type-cell,
  .jobs-page .job-deadline-cell {
    grid-column: auto;
    font-size: .57rem;
  }

  .jobs-page .job-posted-cell {
    display: none;
  }

  .jobs-page .job-actions-cell,
  .member-jobs-page .job-actions-cell,
  .member-jobs-page .member-saved-jobs .job-actions-cell {
    min-height: 0;
    margin-top: 1px;
    padding: 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    border-top: 1px solid #edf1ee;
    border-left: 0;
  }

  .jobs-page .job-actions-cell .button,
  .jobs-page .job-actions-cell .button:not(.secondary):not(.job-apply-disabled),
  .jobs-page .job-actions-cell .button.secondary,
  .jobs-page .job-actions-cell .job-apply-disabled {
    width: auto;
    min-width: 82px;
    min-height: 34px;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: .61rem;
  }

  .jobs-page .job-save-button,
  .member-jobs-page .job-save-button {
    width: 31px;
    height: 31px;
    min-height: 31px;
    margin-left: auto;
    flex: 0 0 31px;
    border-radius: 7px;
  }

  .jobs-page .job-report-link,
  .member-jobs-page .job-report-link {
    min-height: 31px;
    padding: 0 2px;
    font-size: .55rem;
  }

  .member-jobs-page .member-jobs-main {
    width: min(100% - 14px, 620px) !important;
  }

  .member-jobs-page .member-job-board {
    padding: 11px 8px;
  }

  .member-jobs-page .member-jobs-intro {
    margin-bottom: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .member-jobs-page .member-jobs-intro h2 {
    margin-bottom: 4px;
    font-size: 1.28rem;
  }

  .member-jobs-page .member-jobs-intro p:last-child {
    font-size: .7rem;
    line-height: 1.4;
  }
}

@media (max-width: 420px) {
  .jobs-page .job-results-summary-detail {
    display: none;
  }

  .jobs-page .public-job-card,
  .member-jobs-page .public-job-card,
  .member-jobs-page .member-saved-jobs .public-job-card {
    padding: 9px 10px;
  }

  .jobs-page .job-card-topline {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .jobs-page .job-source {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jobs-page .public-job-card {
    transition: none;
  }
}

/* Phone-first job discovery: less page chrome and scan-friendly rows. */
@media (max-width: 600px) {
  .jobs-page .section-inner {
    width: min(calc(100% - 20px), 620px);
  }

  .jobs-page .jobs-hero {
    padding: 12px 0 11px;
  }

  .jobs-page .jobs-hero .eyebrow {
    font-size: .56rem;
    letter-spacing: .12em;
  }

  .jobs-page .jobs-hero .eyebrow::before {
    width: 20px;
    margin-right: 7px;
  }

  .jobs-page .jobs-hero h1 {
    margin: 4px 0 5px;
    font-size: clamp(1.58rem, 7.2vw, 1.9rem) !important;
  }

  .jobs-page .jobs-hero .hero-copy {
    font-size: .73rem;
    line-height: 1.35;
  }

  .jobs-page .mission-band {
    padding-top: 8px;
  }

  .jobs-page .jobs-search-panel {
    margin-bottom: 8px;
    padding: 5px;
    gap: 5px;
  }

  .jobs-page .jobs-hero-search {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .jobs-page .jobs-hero-search label {
    min-height: 45px;
    padding: 4px 8px;
    gap: 1px;
    border-bottom: 1px solid var(--job-list-border);
    font-size: .55rem;
  }

  .jobs-page .jobs-hero-search label:first-child {
    border-right: 1px solid var(--job-list-border);
  }

  .jobs-page .jobs-hero-search input {
    min-height: 25px;
    font-size: .72rem;
  }

  .jobs-page .jobs-hero-search .button {
    min-height: 34px;
    padding: 0 12px;
    grid-column: 1 / -1;
    justify-self: stretch;
    border-radius: 0 0 4px 4px;
    font-size: .68rem;
  }

  .jobs-page .jobs-search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .jobs-page .jobs-search-actions .button {
    min-height: 32px;
    padding: 0 7px;
    justify-self: stretch;
    font-size: .61rem;
  }

  .jobs-page .jobs-results-shell {
    gap: 8px;
  }

  .jobs-page .jobs-filter-sidebar summary {
    min-height: 44px;
    padding: 8px 11px;
  }

  .jobs-page .jobs-filter-sidebar summary small {
    display: none;
  }

  .jobs-page .jobs-results-header {
    padding: 9px 10px;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
  }

  .jobs-page .jobs-results-header h2 {
    font-size: 1.02rem;
  }

  .jobs-page .job-results-summary {
    margin-top: 2px;
    font-size: .62rem;
  }

  .jobs-page .jobs-sort-control {
    min-width: 0;
    gap: 2px;
    font-size: .55rem;
  }

  .jobs-page .jobs-sort-control select {
    min-height: 32px;
    padding: 4px 24px 4px 7px;
    font-size: .62rem;
  }

  .jobs-page .public-job-card {
    min-height: 98px;
    padding: 8px 9px;
    grid-template-columns: 34px minmax(0, 1fr) 64px !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "logo title actions"
      "logo company actions"
      "meta meta actions" !important;
    gap: 2px 7px;
  }

  .jobs-page .job-company-logo {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: .5rem;
  }

  .jobs-page .job-card-topline {
    margin-bottom: 2px;
    flex-wrap: nowrap;
    gap: 3px;
    overflow: hidden;
  }

  .jobs-page .job-source,
  .jobs-page .job-pill {
    max-width: 50%;
    padding: 2px 5px;
    overflow: hidden;
    font-size: .47rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jobs-page .job-title-cell h3 {
    font-size: .86rem;
    line-height: 1.08;
  }

  .jobs-page .job-title-cell .job-description,
  .jobs-page .job-title-cell > small,
  .jobs-page .job-company-cell small {
    display: none;
  }

  .jobs-page .job-company-cell {
    display: flex;
    font-size: .59rem;
    line-height: 1.15;
  }

  .jobs-page .job-company-cell strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jobs-page .job-company-cell .verified-mark {
    display: none;
  }

  .jobs-page .job-meta-row {
    margin-top: 1px;
    padding-top: 4px;
    grid-template-columns: minmax(0, 1.12fr) minmax(58px, .58fr) minmax(72px, .78fr);
    gap: 4px;
  }

  .jobs-page .job-location-cell,
  .jobs-page .job-type-cell,
  .jobs-page .job-deadline-cell {
    min-width: 0;
    overflow: hidden;
    font-size: .51rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jobs-page .job-type-cell {
    flex-wrap: nowrap;
  }

  .jobs-page .job-type-cell small,
  .jobs-page .job-posted-cell {
    display: none;
  }

  .jobs-page .job-actions-cell {
    min-height: 0;
    margin: 0;
    padding: 0 0 0 7px;
    display: grid;
    align-self: stretch;
    align-items: center;
    justify-content: stretch;
    border-top: 0;
    border-left: 1px solid #edf1ee;
  }

  .jobs-page .job-actions-cell .button,
  .jobs-page .job-actions-cell .button:not(.secondary):not(.job-apply-disabled),
  .jobs-page .job-actions-cell .button.secondary,
  .jobs-page .job-actions-cell .job-apply-disabled {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 4px 5px;
    border-radius: 6px;
    font-size: .56rem;
    line-height: 1.1;
  }
}
