/* assets/css/careers.css
 * Layout for the Careers page.
 */

/* ---- Page head ------------------------------------------------------
 * The scene runs the full width of the band. It is a wide interior with
 * no quiet middle, so the copy sits above it rather than over it.
 */

/* The artwork is a finished tableau — it carries its own headline, its own
   checklist and its own tagline, and measures 34% linework across its middle
   third. Nothing can sit on top of it, so the band is the image and the page
   heading follows underneath. */
.careers-hero {
  height: var(--hero-h);
  overflow: hidden;
  background: var(--band);
}

.careers-hero__scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.careers-intro {
  padding-top: 72px;
  text-align: center;
}

.careers-intro__title {
  /* FACE AND WEIGHT STATED, NOT INHERITED.
     These relied on the global `h1` rule for bold. That holds while the hero
     is an <h1> on a page that loaded base.css in the usual order — and stops
     holding the moment one is rendered from a React page, wrapped in another
     element, or reached with a different stylesheet order. A hero headline
     should not depend on which tag it happens to be in. */
  font-family: var(--font-heading);
  font-weight: 700;

  --hard-shadow-offset: 3px;
  font-size: var(--hero);
  line-height: var(--hero-lh);
}

.careers-intro__lead {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: var(--lead);
  line-height: 28px;
}

/* ---- How we work ----------------------------------------------------- */

.tenets {
  padding-top: 110px;
}

.tenets .sec-head {
  gap: 10px;
}

.tenets__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.tenet {
  padding: 34px 30px 36px;
  border-radius: var(--radius);
  background: var(--paper);
}

.tenet__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h5);
  line-height: 39px;
  color: var(--brand);
}

.tenet__title {
  margin-top: 10px;
  font-size: var(--h6);
  line-height: var(--h6-lh);
}

.tenet__body {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* ---- Open roles ------------------------------------------------------- */

.roles {
  padding-top: 110px;
}

.roles .sec-head {
  gap: 10px;
}

.roles__list {
  max-width: 900px;
  margin: 54px auto 0;
}

.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.role + .role {
  margin-top: 14px;
}

.role:hover {
  border-color: var(--forest);
  background: var(--paper);
}

.role__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h6);
  line-height: var(--h6-lh);
}

.role__meta {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.role__cta {
  flex: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand);
}

/* Empty state. A careers page with nothing on it should still give a
   person something to do. */
.roles__empty {
  padding: 50px 46px;
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.roles__empty-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h6);
  line-height: var(--h6-lh);
}

.roles__empty p:not(.roles__empty-title) {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--ink-soft);
}

.roles__empty .btn {
  margin-top: 28px;
}

/* ---- How to apply ------------------------------------------------------ */

.apply {
  padding: 110px 0 20px;
}

.apply__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 70px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
}

.apply .eyebrow,
.apply__title {
  color: var(--white);
}

.apply__title {
  margin-top: 6px;
  font-size: var(--h3);
  line-height: var(--h3-lh);
}

.apply__lead {
  margin-top: 16px;
  color: var(--band);
}

.apply__list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(166, 232, 196, 0.25);
  font-size: var(--lead);
  line-height: 26px;
}

.apply__list li:first-child {
  padding-top: 0;
}

.apply__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1340px) {
  .tenets__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .careers-hero {
    height: 340px;
  }

  .careers-intro {
    padding-top: 48px;
  }

  

  .careers-intro__title .marker {
    display: none;
  }

  .tenets,
  .roles,
  .apply {
    padding-top: 72px;
  }

  .apply__box {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 36px;
  }
}

@media (max-width: 640px) {
  .careers-hero {
    height: 230px;
  }

  

  /* The interior is far too wide to read at phone size, so it crops to the
     table where the people are. */
  .tenets__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .roles__empty {
    padding: 34px 24px;
  }

  .role {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px;
  }

  .apply__box {
    padding: 34px 24px;
  }
}
