/* -----------------------------------------------------------------------
   Careers — page-specific components only.
   -----------------------------------------------------------------------
   Loaded after landing-preview.css and service-detail.css, which between
   them already supply everything structural: the hero, the light/dark
   bands, the container gutters, .lp-btn, .lp-svc-head, .lp-svc-form-card,
   .cme-field and the entrance roles.

   base.css supplies .switch-group, .terms-text and .cme-form-grid, so the
   application form needs no field styling of its own — it inherits the same
   controls as the enquiry forms, and the dark-band overrides in
   landing-preview.css apply because the apply section is a .lp-dark-section.

   What is left here is the three offer cards, the two role panels, and the
   handful of utilities that previously had no home outside this file.
   ----------------------------------------------------------------------- */

/* Previously defined only here and in home.css, neither of which is loaded
   by the migrated pages. Kept local rather than pushed into base.css during
   a launch task. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cme-asterisk {
  color: var(--brand-600, #0284c7);
  font-weight: 800;
  margin-left: 0.25rem;
}
.lp-dark-section .cme-asterisk { color: var(--brand-light, #38bdf8); }

/* -----------------------------
   What we offer
   ----------------------------- */
.lp-careers-offer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(28px, 4vw, 40px);
}

.lp-careers-offer__item {
  padding-top: 20px;
  /* A rule rather than a bordered box: these are three short statements, and
     boxing them would give them more weight than the role panels below. */
  border-top: 2px solid rgba(11, 21, 33, 0.14);
}

.lp-careers-offer__icon {
  display: inline-grid;
  place-items: center;
  width: clamp(58px, 6vw, 72px);
  height: clamp(58px, 6vw, 72px);
  margin-bottom: 18px;
  color: var(--lp-light-accent-strong);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1;
}

.lp-careers-offer__item h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lp-light-ink);
}

.lp-careers-offer__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lp-light-muted);
}

/* The original used a gradient fill on these words. Flat brand colour instead:
   the emphasis is preserved, and it stays legible at small sizes and in high
   contrast, which a gradient across two light blues does not. */
.lp-careers-accent { color: var(--lp-light-accent); }
.lp-dark-section .lp-careers-accent { color: var(--brand-light, #38bdf8); }

/* -----------------------------
   Life at CME
   ----------------------------- */
.lp-careers-roles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 40px);
}

.lp-careers-panel h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.lp-careers-panel > p {
  margin: 0 0 16px;
  color: var(--lp-dark-muted);
  line-height: 1.65;
}

.lp-careers-bullets {
  margin: 0;
  padding-left: 1.15em;
  color: var(--lp-dark-muted);
  line-height: 1.6;
}
.lp-careers-bullets li { margin-bottom: 8px; }
.lp-careers-bullets li:last-child { margin-bottom: 0; }

.lp-careers-contact {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  max-width: 680px;
}
.lp-careers-contact p {
  margin: 0;
  color: var(--lp-dark-muted);
  line-height: 1.65;
}
.lp-dark-section .lp-careers-contact .lp-link { color: var(--brand-light, #38bdf8); }

/* The note beside the form head had no link styling, so it fell through to
   Bootstrap's default #0d6efd — 3.46:1 on the dark card, below AA. The site's
   own dark-section link colour is 7.26:1. */
.lp-svc-form-note a { color: var(--brand-light, #38bdf8); }

/* -----------------------------
   Application form
   -----------------------------
   Only rhythm and the two trailing elements. Every control itself is the
   shared .cme-field / .switch-group / .cme-file system. */
.careers-form > * + * { margin-top: clamp(14px, 2vw, 18px); }

.lp-careers-submit {
  width: 100%;
  margin-top: clamp(20px, 3vw, 26px);
}

.lp-careers-eligibility {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--lp-dark-muted);
}

/* -----------------------------
   Responsive
   ----------------------------- */
@media (max-width: 991.98px) {
  .lp-careers-offer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .lp-careers-offer__grid,
  .lp-careers-roles__grid { grid-template-columns: 1fr; }
}

@media (min-width: 480px) {
  .lp-careers-submit { width: auto; min-width: 240px; }
}
