/* One position's page (Figma 518:6928), over roles.css (GNB, hero label, footer): a dark hero with
   the title, then the job description beside a sticky card with the facts and 지원하기. */

.role-hero {
  background: var(--dark);
  color: #fff;
}

.role-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 80px;
  padding-left: calc(var(--gutter) + 98px);
}

/* OPEN ROLES over the title goes back to the list */
.role-hero-back {
  align-self: flex-start;
  transition: color 0.2s ease;
}

.role-hero-back:hover {
  color: #fff;
}

.role-hero-title {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.1;
  word-break: keep-all;
}

.role-hero-lead {
  max-width: 1006px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
  word-break: keep-all;
}

.role-body {
  background: var(--bright);
}

.role-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  align-items: start;
  column-gap: 27px;
  padding-block: 52px;
}

.role-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 200px;
  padding-left: 101px;
}

.role-sections,
.role-job {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
}

.role-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.role-section h2,
.role-closing {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: #18191b;
  word-break: keep-all;
}

.role-section h2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* the triangles, turned to point right */
.mark {
  flex: none;
  width: 14px;
  height: 14px;
  padding: 0 0.94px 3.5px;
  rotate: 90deg;
}

.role-section p,
.role-list-items {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #101012;
  word-break: keep-all;
}

.role-list-items {
  padding-left: 24px;
  list-style: disc;
}

.role-rule {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(112, 115, 124, 0.16);
}

.role-apply {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 24px;
}

.role-apply li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: #101012;
  word-break: keep-all;
}

.role-apply .role-mail {
  font-weight: 600;
  color: var(--brand);
}

.role-apply .role-mail:hover {
  text-decoration: underline;
}

.role-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.2s ease;
}

.role-back:hover {
  color: var(--ink);
}

/* the facts card stays in view under the GNB while the description scrolls */
.role-card {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 16px;
  border: 1px solid rgba(112, 115, 124, 0.16);
  border-radius: 8px;
}

.role-facts {
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* rows 12px apart with a line between, as the design's dividers */
.role-fact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0 8px 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.role-fact + .role-fact {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(112, 115, 124, 0.16);
}

.role-fact dt {
  flex: none;
  width: 56px;
  font-weight: 700;
}

.role-fact dd {
  flex: 1;
  margin: 0;
  font-weight: 500;
  word-break: keep-all;
}

.role-apply-button {
  display: block;
  padding: 8px 32px;
  border-radius: 100px;
  background: #18191b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  transition: background 0.2s ease;
}

.role-apply-button:hover {
  background: var(--brand);
}

@media (max-width: 900px) {
  .role-hero-inner {
    padding-block: 56px;
    padding-left: var(--gutter);
  }

  .role-hero-title {
    font-size: 36px;
  }

  /* the card comes first, under the hero, and scrolls with the page */
  .role-body-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
    padding-block: 32px 64px;
  }

  .role-card {
    position: static;
    order: -1;
  }

  .role-main {
    gap: 96px;
    padding-left: 0;
  }

  .role-section h2,
  .role-closing {
    font-size: 24px;
  }

  .role-apply li {
    align-items: flex-start;
    font-size: 16px;
  }

  .role-apply li .mark {
    margin-top: 6px;
  }
}
