/* Recruitment QR assets and layout from Figma 765:3798. */
.careers-canvas,
.careers-main {
  height: auto;
}

.careers-main {
  padding-top: 1077.447px;
}

/* Figma 765:3833 uses a vertical stack with 16px gaps. */
.careers-talent {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
}

.careers-talent h2,
.careers-talent h3,
.careers-talent p {
  position: static;
  width: 100%;
  margin: 0;
}

.careers-talent h2 {
  line-height: 50px;
  letter-spacing: -0.75px;
}

.careers-talent h3 {
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.careers-talent .talent-core-title {
  padding-top: 22px;
}

.careers-talent p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.07px;
  color: rgba(255, 255, 255, 0.8);
}

.careers-openings {
  position: relative;
  top: auto;
  height: auto;
  margin-top: 60px;
}

.opening-category-apply {
  position: relative;
  top: auto;
  height: auto;
  margin-top: 32px;
}

.opening-category-apply h3 {
  position: static;
}

.application-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 95px;
  padding-top: 24px;
}

.application-method {
  position: relative;
  width: 231px;
  max-width: 100%;
}

.application-method > .opening-link {
  position: relative;
  width: 100%;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.application-method > .opening-link::-webkit-details-marker {
  display: none;
}

.application-method > .opening-link::before {
  width: 100%;
}

.application-method > .opening-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.application-destination {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.application-destination:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.application-qr {
  position: relative;
  z-index: 2;
  display: none;
  width: 100%;
  padding-top: 24px;
  text-align: center;
}

.application-method[open] > .application-qr {
  display: block;
}

.application-qr img {
  display: block;
  width: 227px;
  max-width: 100%;
  height: auto;
}

.application-qr img.is-loading {
  visibility: hidden;
}

.careers-footer {
  position: relative;
  top: auto;
  margin-top: 48px;
}

/* Desktop positions and spacing from the complete 1280px Figma frame. */
@media (min-width: 768px) {
  .careers-hero-bg {
    position: absolute;
    height: 558px;
  }

  .careers-main {
    padding-top: 1044.826px;
  }

  .careers-hero-title,
  .careers-intro,
  .careers-plan,
  .careers-talent,
  .careers-openings {
    left: 246px;
  }

  .careers-hero-title {
    top: 147px;
  }

  .careers-intro {
    top: 448px;
    height: 189px;
  }

  .careers-copy {
    top: 49px;
  }

  .careers-copy p,
  .process-step p {
    color: rgba(255, 255, 255, 0.8);
  }

  .careers-plan {
    top: 697px;
    height: 258.826px;
  }

  .careers-process {
    height: 258.826px;
  }

  .careers-process::before {
    top: 165.434px;
  }

  .process-apply,
  .process-offer,
  .process-onboard {
    top: 82.957px;
  }

  .process-interview {
    top: 82px;
  }

  .careers-openings > h2 {
    line-height: 50px;
  }

  .opening-category-apply {
    margin-top: 40px;
  }

  .opening-category-apply h3 {
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .application-methods {
    gap: 95.338px;
    padding-top: 30.784px;
    /* Reserve the 40px gap and 227px QR image even while hidden. */
    padding-bottom: 267px;
    align-items: start;
  }

  .application-qr {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 40px;
  }

  .careers-footer {
    margin-top: 24px;
    height: 344px;
  }

  .careers-footer-slogan,
  .careers-footer-menu,
  .careers-footer-social,
  .careers-footer-contact {
    top: 40px;
  }

  .careers-footer-copyright {
    top: 302px;
  }
}

@media (max-width: 767px) {
  .careers-shell,
  .careers-canvas,
  .careers-main {
    height: auto !important;
  }

  .careers-main {
    padding-top: 1180px;
  }

  .careers-canvas {
    position: relative;
  }

  .careers-talent,
  html[lang="zh-CN"] .careers-talent {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    margin-inline: auto;
  }

  .careers-talent h2 {
    line-height: 1.5;
    letter-spacing: -0.6px;
  }

  html[lang="zh-CN"] .careers-talent h2 br {
    display: initial;
  }

  html[lang="zh-CN"] .talent-title-mobile-comma {
    display: none;
  }

  html[lang="en"] .talent-title-mobile-nowrap {
    font-size: inherit;
    white-space: normal;
  }

  .careers-talent .talent-core-title {
    padding-top: 12px;
  }

  .careers-talent p {
    font-size: 12px;
  }

  .careers-openings {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    margin-inline: auto;
    margin-top: 48px;
  }

  .opening-category-apply {
    position: relative;
    top: auto;
    width: 100%;
    margin-top: 28px;
  }

  .opening-category-apply h3 {
    position: static;
  }

  .application-methods {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 20px;
  }

  .application-method {
    width: 100%;
  }

  .application-method > .opening-link {
    height: auto;
    min-height: 44px;
    padding: 12px 24px 12px 0;
    white-space: normal;
  }

  .application-method > .opening-link::after {
    top: 12px;
  }

  .application-destination {
    pointer-events: none;
  }

  .application-qr {
    position: static;
    padding-top: 16px;
  }

  .application-qr img {
    margin-inline: auto;
  }

  .careers-footer {
    position: relative;
    top: auto;
    margin-top: 32px;
  }
}
