/* Candidates visual-parity layer. All rules are scoped to the structured page. */
[data-screen-label="For Candidates"] {
  --candidates-content: 1200px;
  --candidates-gutter: clamp(20px, 3vw, 40px);
  --candidates-section-y: clamp(56px, 5vw, 80px);
  overflow: clip;
}

[data-screen-label="For Candidates"] > div > div {
  box-sizing: border-box;
}

/* Hero */
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] {
  min-height: clamp(600px, 48vw, 680px) !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] > div:first-child {
  flex: 0 1 52% !important;
  padding: clamp(64px, 6vw, 88px) clamp(36px, 5vw, 72px) !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] > div:last-child {
  flex: 1 1 48% !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] h1 {
  max-width: 620px !important;
  font-size: clamp(42px, 4vw, 56px) !important;
  line-height: 1.06 !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] h1 ~ p {
  max-width: 540px !important;
  line-height: 1.65 !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] img {
  object-position: center center;
}

/* Built For */
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Built For"] {
  min-height: 64px;
  padding-block: 16px !important;
  column-gap: clamp(20px, 2.1vw, 30px) !important;
}
[data-screen-label="For Candidates"] .candidate-built-for-label {
  padding-left: var(--candidates-gutter) !important;
  font-size: 12px !important;
  line-height: 1;
}
[data-screen-label="For Candidates"] .candidate-built-for-viewport {
  isolation: isolate;
}
[data-screen-label="For Candidates"] .candidate-built-for-sequence {
  gap: 0 !important;
  padding-right: 0 !important;
}
[data-screen-label="For Candidates"] .candidate-built-for-item {
  line-height: 1.15;
  font-size: clamp(20px, 1.55vw, 22px) !important;
}
[data-screen-label="For Candidates"] .candidate-built-for-separator {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-inline: clamp(11px, 1.25vw, 18px);
  color: rgba(45, 31, 107, .32);
  font-family: 'DM Sans', Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1;
}
@media (max-width: 600px) {
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Built For"] {
    column-gap: 14px !important;
  }
  [data-screen-label="For Candidates"] .candidate-built-for-label {
    font-size: 10px !important;
    letter-spacing: .14em !important;
  }
  [data-screen-label="For Candidates"] .candidate-built-for-item {
    font-size: 19px !important;
  }
  [data-screen-label="For Candidates"] .candidate-built-for-separator {
    margin-inline: 10px;
  }
}

/* At a Glance */
[data-screen-label="For Candidates"] > div > div:nth-child(3) {
  padding: 52px var(--candidates-gutter) 38px !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(3) > div {
  width: min(100%, var(--candidates-content));
}
[data-screen-label="For Candidates"] > div > div:nth-child(3) > div > div:last-child {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(24px, 4vw, 64px) !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(3) > div > div:last-child > div > p:first-child {
  font-size: clamp(34px, 3.2vw, 42px) !important;
}

/* Departments */
[data-screen-label="For Candidates"] > div > div:nth-child(4) {
  padding: 12px var(--candidates-gutter) 68px !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(4) .rolesGrid {
  width: min(100%, var(--candidates-content));
  gap: 16px !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(4) .rolesGrid > div {
  min-height: 64px;
  padding: 20px 18px !important;
  display: grid;
  place-items: center;
}

/* Featured Openings */
[data-screen-label="For Candidates"] > div > div:nth-child(5) {
  padding: 44px var(--candidates-gutter) 64px !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) > div {
  width: min(100%, var(--candidates-content));
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) [data-ref="rolesCarouselRef"] {
  gap: 20px !important;
  padding: 6px 0 12px !important;
  scroll-padding-inline: 0;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card {
  flex-basis: 220px !important;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__media {
  width: 100%;
  height: 165px;
  flex: 0 0 165px;
  overflow: hidden;
  background: #f6f6f7;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__media > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__media > img[src=""],
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__media > img:not([src]) {
  color: transparent !important;
  font-size: 0 !important;
  visibility: hidden;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__content {
  padding: 12px 14px 14px !important;
  background: #fff;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__content > p:nth-of-type(1) {
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__content > p:nth-of-type(2) {
  min-height: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__content > p:nth-of-type(3) {
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card__content span {
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  padding: 3px 7px !important;
}

/* Founding Mission */
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Founding Mission"] {
  padding: 54px var(--candidates-gutter) 60px !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Founding Mission"] > div {
  width: min(100%, 1200px);
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Founding Mission"] > div > div:first-child > h2 {
  font-size: clamp(32px, 29px + 0.95vw, 42px) !important;
  line-height: 1.15 !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 220px) !important;
  gap: 20px !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-grid > div {
  min-width: 0;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-feature > div:last-child {
  left: 20px !important;
  right: 20px !important;
  bottom: 18px !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-feature > div:last-child > p:first-child {
  max-width: 460px;
  font-size: clamp(32px, 2.3vw, 33px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-feature > div:last-child > p:last-child {
  max-width: 480px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-support {
  padding: 20px !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-support > p:first-child {
  min-height: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-mission-support > p:last-child {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

/* How It Works */
[data-screen-label="For Candidates"] [data-screen-label="Candidates — How It Works"] {
  padding: 76px var(--candidates-gutter) 80px !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — How It Works"] > div {
  width: min(100%, 940px);
  margin-inline: auto;
}
[data-screen-label="For Candidates"] .heyvar-candidates-journey-desktop {
  margin-top: 34px !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-journey-desktop > div > div {
  gap: 32px !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-journey-nav {
  flex: 0 0 238px !important;
  min-width: 0 !important;
}
[data-screen-label="For Candidates"] .heyvar-candidates-journey-panel {
  flex: 1 1 0 !important;
  max-width: 540px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 30px !important;
}
[data-screen-label="For Candidates"] .candidates-how-it-works-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(45, 31, 107, 0.10);
  border-radius: 14px;
  background: #f6f6f7;
}
[data-screen-label="For Candidates"] .candidates-how-it-works-media img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
}
[data-screen-label="For Candidates"] .candidates-how-it-works-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #77758f;
  font-family: 'DM Sans', Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
[data-screen-label="For Candidates"] .candidates-how-it-works-placeholder[hidden] {
  display: none;
}
[data-screen-label="For Candidates"] .candidates-how-it-works-placeholder::before {
  content: '▧';
  margin-right: 8px;
  color: #9b99ad;
}

/* What We're Changing */
[data-screen-label="For Candidates"] [data-screen-label="Candidates — What We're Changing"] {
  min-height: 650px;
  padding: 88px var(--candidates-gutter) !important;
  display: grid;
  place-items: center;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — What We're Changing"] > div:last-child {
  box-sizing: border-box;
  width: min(100%, 680px);
  padding: 64px 54px !important;
}

/* FAQ */
[data-screen-label="For Candidates"] #candidate-faqs {
  padding: 72px var(--candidates-gutter) 78px !important;
}
[data-screen-label="For Candidates"] #candidate-faqs > div {
  width: min(100%, var(--candidates-content));
  display: grid !important;
  grid-template-columns: minmax(260px, .78fr) minmax(420px, 1.22fr);
  gap: 64px !important;
}
[data-screen-label="For Candidates"] #candidate-faqs > div > div {
  min-width: 0 !important;
}
[data-screen-label="For Candidates"] .candidates-faq-item[hidden] {
  display: none !important;
}

/* Real People */
[data-screen-label="For Candidates"] > div > div:nth-child(10) {
  padding: 66px var(--candidates-gutter) 82px !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(10) > div:last-child {
  width: min(100%, var(--candidates-content));
}
[data-screen-label="For Candidates"] > div > div:nth-child(10) [data-ref="testimonialsCarouselRef"] {
  gap: 22px !important;
  padding: 8px 44px 16px !important;
}
[data-screen-label="For Candidates"] > div > div:nth-child(10) [data-ref="testimonialsCarouselRef"] > div {
  flex-basis: 240px !important;
}

/* Beta and final CTA */
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Beta Is Open"] {
  padding: 68px var(--candidates-gutter) 72px !important;
}
[data-screen-label="For Candidates"] [data-screen-label="Candidates — Beta Is Open"] h2 {
  margin-bottom: 20px !important;
}
[data-screen-label="For Candidates"] [aria-label="Find the place you're meant to stay"] {
  min-height: 470px;
  padding: 72px var(--candidates-gutter) !important;
  display: grid;
  place-items: center;
}
[data-screen-label="For Candidates"] [aria-label="Find the place you're meant to stay"] > div:last-child {
  box-sizing: border-box;
  width: min(100%, 760px);
}

@media (max-width: 1100px) {
  [data-screen-label="For Candidates"] {
    --candidates-section-y: 60px;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] {
    min-height: 590px !important;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] > div:first-child {
    padding: 60px 40px !important;
  }
  [data-screen-label="For Candidates"] .heyvar-candidates-mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: minmax(190px, auto) !important;
  }
  [data-screen-label="For Candidates"] .heyvar-candidates-mission-grid > div {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  [data-screen-label="For Candidates"] .heyvar-candidates-mission-grid > div:first-child {
    grid-column: 1 / -1 !important;
    min-height: 430px;
  }
  [data-screen-label="For Candidates"] #candidate-faqs > div {
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
    gap: 44px !important;
  }
}

@media (max-width: 700px) {
  [data-screen-label="For Candidates"] {
    --candidates-gutter: 20px;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] {
    flex-direction: column !important;
    min-height: 0 !important;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] > div:first-child {
    min-width: 0 !important;
    padding: 56px 24px 48px !important;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] > div:last-child {
    min-width: 0 !important;
    min-height: 360px;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Hero"] h1 {
    font-size: clamp(38px, 11vw, 48px) !important;
  }
  [data-screen-label="For Candidates"] > div > div:nth-child(3) {
    padding-block: 46px 34px !important;
  }
  [data-screen-label="For Candidates"] > div > div:nth-child(3) > div > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px 16px !important;
  }
  [data-screen-label="For Candidates"] > div > div:nth-child(4) .rolesGrid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  [data-screen-label="For Candidates"] > div > div:nth-child(4) .rolesGrid > div {
    min-height: 54px;
    padding: 16px !important;
  }
  [data-screen-label="For Candidates"] > div > div:nth-child(5) .candidate-role-card {
    flex-basis: min(76vw, 280px) !important;
    min-width: min(76vw, 280px);
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Founding Mission"] {
    padding-block: 52px !important;
  }
  [data-screen-label="For Candidates"] .heyvar-candidates-mission-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
  }
  [data-screen-label="For Candidates"] .heyvar-candidates-mission-grid > div:first-child {
    min-height: 430px;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — How It Works"] {
    padding-block: 58px !important;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — What We're Changing"] {
    min-height: 0;
    padding-block: 56px !important;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — What We're Changing"] > div:last-child {
    padding: 42px 24px !important;
  }
  [data-screen-label="For Candidates"] #candidate-faqs {
    padding-block: 54px !important;
  }
  [data-screen-label="For Candidates"] #candidate-faqs > div {
    grid-template-columns: 1fr;
    gap: 34px !important;
  }
  [data-screen-label="For Candidates"] > div > div:nth-child(10) {
    padding-block: 54px 66px !important;
  }
  [data-screen-label="For Candidates"] > div > div:nth-child(10) [data-ref="testimonialsCarouselRef"] > div {
    flex-basis: min(76vw, 280px) !important;
  }
  [data-screen-label="For Candidates"] [data-screen-label="Candidates — Beta Is Open"] {
    padding-block: 56px !important;
  }
  [data-screen-label="For Candidates"] [aria-label="Find the place you're meant to stay"] {
    min-height: 410px;
    padding-block: 56px !important;
  }
}
