/* ============================================================
   CAREERS — uses the tokens already defined in styles.css.
   Section rhythm: navy hero → navy-2 role explorer → cream
   "what you will do" → navy process → cream-deep application
   → navy recruiter note → footer.
   ============================================================ */

.nav__links a.is-current,
.nav__mobile a.is-current { color: var(--gold); }

/* ---------- HERO ---------- */
.chero {
  background:
    radial-gradient(120% 90% at 80% -10%, var(--accent-glow), transparent 60%),
    var(--navy);
  padding-top: clamp(4.5rem, 9vw, 7.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.chero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.chero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--light);
  max-width: 20ch;
}
.chero__aside { max-width: 34ch; }
.chero__aside p { color: var(--light-soft); }
.chero__open {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding: .5rem .85rem;
}

/* ---------- ROLE EXPLORER ---------- */
.explorer-section { background: var(--navy-2); }
.explorer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: start;
}

.exp-list { position: sticky; top: 96px; border-top: 1px solid var(--line-dark); }
.exp-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-left: 3px solid transparent;
  padding: 1.4rem 1.2rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .18s ease, background .18s ease;
}
.exp-tab:hover { background: rgba(255, 255, 255, .03); }
.exp-tab__name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--light-soft);
  transition: color .18s ease;
}
.exp-tab__type {
  display: block;
  margin-top: .5rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--light-soft);
  opacity: .7;
}
.exp-tab.is-active { border-left-color: var(--gold); background: rgba(124, 77, 255, .07); }
.exp-tab.is-active .exp-tab__name { color: var(--light); }
.exp-tab.is-active .exp-tab__type { color: var(--gold); opacity: 1; }

.exp-list__foot { padding: 1.6rem 1.2rem 0; }
.exp-list__foot p { color: var(--light-soft); font-size: .92rem; }
.exp-list__link {
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
  text-decoration: none;
}
.exp-list__link:hover { color: var(--gold-soft); }

.exp-pane {
  background: var(--navy);
  border: 1px solid var(--line-dark);
  padding: clamp(1.9rem, 3.5vw, 3rem);
}
.exp-pane__panel { display: none; }
.exp-pane__panel.is-active { display: block; }
.exp-pane__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  color: var(--light);
}
.exp-pane__tags {
  margin-top: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.exp-pane__intro { margin-top: 1.6rem; color: var(--light-soft); font-size: 1.02rem; max-width: 74ch; }

/* role responsibility / highlight lists inside the pane */
.role__grouplabel {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.7rem 0 .8rem;
}
.role__list { list-style: none; }
.role__list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--light-soft);
  font-size: .98rem;
  margin-bottom: .5rem;
  max-width: 84ch;
}
.role__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  background: var(--gold);
}

.exp-pane__strip {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-dark);
}
.exp-pane__stat { flex: 1 1 140px; padding: 1.1rem 1.3rem; border-right: 1px solid var(--line-dark); }
.exp-pane__stat:last-child { border-right: 0; }
.exp-pane__stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.exp-pane__stat span {
  display: block;
  margin-top: .5rem;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--light-soft);
}
.exp-pane__cta { margin-top: 1.8rem; }

/* ---------- WHAT YOU WILL ACTUALLY DO ---------- */
.what { background: var(--cream); }
.what__grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.what__grid .pillar { border-top: 2px solid var(--accent-ink); }

/* ---------- HOW HIRING WORKS ---------- */
.process { background: var(--navy); }
.stepper {
  margin-top: clamp(2.8rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  position: relative;
}
.step { position: relative; padding-top: 2.6rem; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 21px;
  width: calc(100% + 1.6rem - 21px);
  height: 1px;
  background: var(--line-dark);
}
.step::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background: var(--navy);
  border: 3px solid var(--gold);
  border-radius: 50%;
}
.step__num {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: .5rem;
}
.step__text { color: var(--light-soft); font-size: .96rem; max-width: 30ch; }

/* ---------- APPLICATION (stepped form) ---------- */
.apply { background: var(--cream-deep); }
.stepform { max-width: 760px; margin: 0 auto; }
.stepform__head { text-align: center; }
.stepform__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  color: var(--ink);
}
.stepform__lead { margin-top: 1rem; color: var(--ink-soft); }
.stepform__chip {
  display: none;
  margin: 1.4rem auto 0;
  width: fit-content;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-ink);
  padding: .45rem .85rem;
}
.stepform__chip.is-visible { display: block; }

.progress { margin: 2.4rem 0 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.progress__seg { border-top: 3px solid var(--line-light); padding-top: .8rem; }
.progress__seg span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.progress__seg.is-done { border-top-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.progress__seg.is-active { border-top-color: var(--accent-ink); }
.progress__seg.is-active span { color: var(--accent-ink); }

.stepform__panel { display: none; }
.stepform__panel.is-active { display: block; }
.stepform__actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.stepform__count { font-size: .85rem; color: var(--ink-soft); margin-left: auto; }
.stepform__hint { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }

/* form primitives */
.form { margin-top: 2rem; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 1.4rem;
  align-items: end; /* keeps controls on a row aligned when a label wraps */
}
.field--full { grid-column: 1 / -1; }
.field__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: .55rem;
  color: var(--ink);
}
.field__req { color: var(--accent-ink); margin-left: .2rem; }
.field input,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: .98rem;
  padding: .82rem .9rem;
  border-radius: 0;
  background-color: #fff;
  border: 1px solid var(--line-light);
  color: var(--ink);
  transition: border-color .18s ease;
}
.field input::placeholder { color: rgba(81, 90, 117, .55); }
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent-ink); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235b3fd6' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 11px;
  padding-right: 2.4rem;
}
.form__note { margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }

.btn--accent { background: var(--accent-ink); color: #fff; border: 0; cursor: pointer; font-family: var(--sans); }
.btn--accent:hover { background: var(--gold); }
.btn--back {
  background: none;
  border: 1px solid var(--line-light);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--sans);
}
.btn--back:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--gold { border: 0; cursor: pointer; font-family: var(--sans); }

/* ---------- NOTE TO RECRUITERS ---------- */
.recruiters { background: var(--navy); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.recruiters__strip {
  border: 1px solid var(--line-dark);
  padding: 1.6rem 1.9rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.recruiters__strip h2 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.recruiters__strip p { color: var(--light-soft); font-size: .95rem; max-width: 80ch; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .explorer { grid-template-columns: 1fr; }
  .exp-list { position: static; }
  .stepper { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .step:not(:last-child)::after { display: none; }
  .what__grid { grid-template-columns: 1fr; gap: 0; }
  .what__grid .pillar { margin-top: 1.6rem; }
  .recruiters__strip { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 620px) {
  .form__grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .exp-pane__stat { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .exp-pane__stat:last-child { border-bottom: 0; }
  .progress { grid-template-columns: 1fr; gap: .3rem; }
  .progress__seg { padding-top: .5rem; }
}

/* Application form: submitted / failed states for the status line. */
.form__note--done {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent-ink);
  background: var(--accent-glow);
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.55;
}
.form__note--error { color: #b3261e; }
