/* ─── JOBS HERO ─── */

.jobs-hero {
  background: var(--black);
  padding: 130px var(--px) 80px;
  color: var(--white);
}

.jobs-hero-inner {
  max-width: 680px;
}

.jobs-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.jobs-hero-h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 20px;
}

/* Nothing follows the headline: drop the trailing gap so the dark band
   stays balanced top and bottom. */
.jobs-hero-h1:last-child {
  margin-bottom: 0;
}

/* ─── JOBS WRAP ─── */

.jobs-wrap {
  background: var(--bg-alt);
  min-height: 60vh;
  padding: 64px var(--px) 120px;
}

.jobs-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── JOB CARD ─── */

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

/* Each card is a <details>: the head is the clickable <summary> that
   reveals the description. The native marker is replaced by the +/−
   indicator below, matching the FAQ accordion on /documentation/. */
.job-card-head {
  padding: 32px 36px 28px 36px;
  position: relative;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s;
}

.job-card-head::-webkit-details-marker { display: none; }

.job-card-head:hover {
  background: rgba(28, 51, 255, .03);
}

.job-card-head::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.job-card[open] .job-card-head {
  border-bottom: 1px solid var(--border);
}

.job-card[open] .job-card-head::after { content: '\2212'; }

/* Keyboard focus lands on the summary — make that visible. */
.job-card-head:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.job-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-right: 28px;
}

.job-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(28, 51, 255, .08);
  color: var(--blue);
}

.job-badge--neutral {
  background: rgba(0, 0, 0, .06);
  color: rgba(0, 0, 0, .5);
}

.job-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 6px;
}

.job-subtitle {
  display: block;
  font-size: 14px;
  color: rgba(0, 0, 0, .45);
  line-height: 1.5;
  padding-right: 28px;
}

.job-card-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.job-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .35);
  margin-bottom: 2px;
}

.job-section p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 0, 0, .7);
}

/* Sub-heading inside a section: "Required" / "Nice to have". */
.job-sublabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-top: 6px;
}

.job-sublabel:first-of-type {
  margin-top: 0;
}

/* Keyword line closing a description: search terms, deliberately quiet.
   Needs to out-specify the `.job-section p` rule above. */
.job-section p.job-keywords {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(0, 0, 0, .4);
}

/* ─── ROLE LIST ─── */

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-list li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, .7);
  padding-left: 18px;
  position: relative;
}

.job-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.job-list li strong {
  font-weight: 600;
  color: var(--black);
}

/* ─── PROCESS ─── */

.job-process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-process-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.job-process-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.job-process-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, .7);
  padding-top: 2px;
}

/* ─── CARD FOOTER ─── */

.job-card-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .02);
}

.job-apply-note {
  font-size: 13px;
  color: rgba(0, 0, 0, .4);
}

/* ─── TEASER CARD ─── */

.job-card--teaser .job-card-body {
  padding-top: 24px;
  padding-bottom: 24px;
}

.job-coming-soon {
  font-style: italic;
  color: rgba(0, 0, 0, .35) !important;
}

/* ─── MOBILE ─── */

@media (max-width: 640px) {
  .jobs-hero {
    padding: 100px 20px 56px;
  }

  .jobs-wrap {
    padding: 40px 20px 80px;
  }

  .job-card-head,
  .job-card-body,
  .job-card-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
}
