/* ═══════════════════════════════════════════════════════════
   CAREERS PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.careers-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.careers-hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.careers-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 50%, #000 100%);
}
.careers-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.careers-hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  /* Match the advisory hero title (.hero__title) exactly */
  font-size: clamp(44px, 9vw, 70px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.careers-hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* ── Job Board Section ───────────────────────────────── */
.job-board {
  padding: 60px 24px 120px;
  max-width: 1000px;
  margin: 0 auto;
}
.job-board__intro {
  text-align: center;
  margin-bottom: 48px;
}
.job-board__intro h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 12px;
}
.job-board__intro p {
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Filters ─────────────────────────────────────────── */
.filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-row__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-label {
  font-size: 13px;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s linear, color 0.1s linear, border-color 0.1s linear;
}
.filter-pill:hover, .filter-pill.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.filter-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  transform: rotate(45deg);
  background: #fff;
}
.filter-pill__count {
  font-size: 12px;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 0;
}
.filter-pill:hover .filter-pill__count, .filter-pill.active .filter-pill__count {
  color: #fff;
  background: rgba(255,255,255,0.2);
}

/* Brand chip colours come from ESBG.careersBrands in js/roles-data.js */

/* ── Job List ────────────────────────────────────────── */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.job-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid #333;
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.1s linear, background 0.1s linear;
}
@media (min-width: 768px) {
  .job-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
  }
}
.job-card:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.04);
}
.job-card__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text-secondary);
}
.job-card__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  align-self: center;
}
.job-list__empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px solid var(--border-subtle);
}
.job-card__title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.job-card__location {
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-card__action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.3s ease;
}
.job-card:hover .job-card__action {
  gap: 12px;
}

/* ── Open Application ────────────────────────────────── */
.open-application {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.open-application h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}
.open-application p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
