/* ==========================================================================
   PAGE: CAREERS

   A fifth visual system. Solutions uses cards, Services alternating rows,
   Industries a split scroller, Media a masonry-ish grid — Careers is built on
   a left-ruled list, which is what a vacancy list actually wants to be.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO JUMP LIST  →  <CareersJump />
   The banner aside. Other pages put an illustration here; a careers page is
   read by someone looking for one specific section, so it gets a jump list.
   -------------------------------------------------------------------------- */
.careers-jump {
  display: grid;
  gap: 0.6rem;
}

.careers-jump__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0 0.9rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  background: var(--c-white);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.careers-jump__item:hover {
  border-color: transparent;
  box-shadow: var(--sh-card-hover);
  transform: translateX(3px);
}

.careers-jump__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-tint-indigo);
  color: var(--c-primary);
}

.careers-jump__icon svg {
  width: 21px;
  height: 21px;
}

.careers-jump__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
}

.careers-jump__meta {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-light);
  color: var(--c-ink-400);
}

.careers-jump__arrow {
  display: grid;
  place-items: center;
  color: var(--c-primary);
}

.careers-jump__arrow svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   OPENINGS  →  <JobRow />
   -------------------------------------------------------------------------- */
.jobs {
  display: grid;
  gap: 1rem;
}

.job {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: clamp(1.35rem, 1.1rem + 1vw, 1.56rem);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-lg);
  background: var(--c-white);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

/* The rule fills in on hover — the row's own progress bar, in effect. */
.job::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-base);
}

.job:hover {
  border-color: transparent;
  box-shadow: var(--sh-card-hover);
}

.job:hover::before {
  transform: scaleY(1);
}

.job__team {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-primary);
}

.job__team svg {
  width: 14px;
  height: 14px;
}

.job__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
  margin: 0.35rem 0 0.4rem;
}

.job__summary {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-500);
  margin: 0 0 0.9rem;
  max-width: 46rem;
}

.job__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.job__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-pill);
  background: var(--c-surface-alt);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-ink-500);
}

.job__facts svg {
  width: 13px;
  height: 13px;
  color: var(--c-primary);
}

/* Bootstrap's collapse holds the responsibilities; the row stays short until
   someone is actually interested. */
.job__more {
  grid-column: 1 / -1;
}

.job__points {
  list-style: none;
  padding: 1.1rem 0 0;
  margin: 1.1rem 0 0;
  border-top: 1px solid var(--c-border);
  display: grid;
  gap: 0.55rem;
}

.job__points li {
  position: relative;
  padding-left: 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: 1.6;
  color: var(--c-ink-600);
}

.job__points li svg {
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 15px;
  height: 15px;
  color: var(--c-primary);
}

.job__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.job__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-ink-500);
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.job__toggle:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* A caret drawn in CSS — no sprite entry needed for a 7px chevron. */
.job__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--t-base);
}

.job__toggle[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

@media (max-width: 767.98px) {
  .job {
    grid-template-columns: minmax(0, 1fr);
  }

  .job__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   INTERNSHIPS  →  <InternCard /> + <InternSteps />
   -------------------------------------------------------------------------- */
.intern {
  height: 100%;
  padding: clamp(1.4rem, 1.1rem + 1.1vw, 1.56rem);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-lg);
  background: var(--c-white);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.intern:hover {
  border-color: transparent;
  box-shadow: var(--sh-card-hover);
}

.intern__length {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--c-tint-indigo);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.5px;
  color: var(--c-primary);
  margin-bottom: 0.85rem;
}

.intern__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
  margin: 0 0 0.5rem;
}

.intern__text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-500);
  margin: 0;
}

/* Horizontal process rail — connected on lg+, stacked below. */
.intern-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: istep;
}

.intern-step {
  position: relative;
  padding-top: 3.25rem;
}

.intern-step::before {
  counter-increment: istep;
  content: counter(istep, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1px solid var(--c-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-primary);
  z-index: 1;
}

/* The connector runs from the marker to the next one, so the last step
   does not trail a line off the end of the row. */
.intern-step::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 44px;
  right: -1.5rem;
  height: 1px;
  background: var(--c-border-mid);
}

.intern-step:last-child::after {
  display: none;
}

.intern-step__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
  margin: 0 0 0.4rem;
}

.intern-step__text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-500);
  margin: 0;
}

@media (max-width: 991.98px) {
  .intern-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intern-step::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .intern-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   LIFE AT SYSIN  →  <LifeCard />
   -------------------------------------------------------------------------- */
.life {
  height: 100%;
  padding: clamp(1.4rem, 1.1rem + 1.1vw, 1.56rem);
  border-radius: var(--r-lg);
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  transition: background var(--t-base), transform var(--t-base);
}

.life:hover {
  background: var(--c-white);
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
}

.life__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--c-white);
  border: 1px solid var(--c-border-mid);
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.life:hover .life__icon {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

.life__icon svg {
  width: 22px;
  height: 22px;
}

.life__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
  margin: 0 0 0.45rem;
}

.life__text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-500);
  margin: 0;
}

/* --------------------------------------------------------------------------
   APPLY ONLINE  →  <ApplyForm />
   Reuses .field from components.css; only the surround is page-specific.
   -------------------------------------------------------------------------- */
.apply {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-white);
}

.apply__aside {
  padding: clamp(1.6rem, 1.3rem + 1.4vw, 2.03rem);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(82, 171, 255, 0.35) 0%, rgba(82, 171, 255, 0) 62%),
    var(--c-navy-700);
  color: var(--c-white);
}

.apply__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-white);
  margin: 0 0 0.6rem;
}

.apply__text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.5rem;
}

.apply__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.apply__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.apply__list svg {
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
  color: var(--c-accent);
}

.apply__form {
  padding: clamp(1.6rem, 1.3rem + 1.4vw, 2.03rem);
}

/* A file input styled without hiding it — the native control is the one
   assistive technology and mobile browsers handle correctly. */
.field__input[type="file"] {
  padding: 0.6rem 0.85rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-500);
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .apply {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   DRAFT NOTICE — shared with the legal pages (see pages/legal.css), repeated
   here so careers.css can be loaded on its own.
   -------------------------------------------------------------------------- */
.careers-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 0.9rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(240, 181, 88, 0.5);
  border-left: 3px solid var(--c-star);
  border-radius: var(--r-md);
  background: rgba(240, 181, 88, 0.08);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-ink-800);
}

.careers-note__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--c-star);
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-bold);
}

.careers-note p {
  margin: 0;
}

.careers-note strong {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
  margin-bottom: 0.2rem;
}
