/* Join page */
/* =============================
   Join
============================= */

.join-preview {
  border-radius: var(--radius-xl);
  padding: clamp(30px, 4rem, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) auto;
  gap: 24px;
  align-items: center;
}

.join-preview h2 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
}

.join-preview p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.join-preview-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.join-preview-list span {
  padding: 12px 14px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-lg);
  color: #12333b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.52)),
    rgba(255, 255, 255, 0.64);
  box-shadow: var(--control-shadow);
  font-size: 14px;
  font-weight: 800;
}

.join-layout,
.role-grid {
  display: grid;
  gap: 20px;
}

.join-layout {
  grid-template-columns: repeat(3, 1fr);
}

.role-grid {
  grid-template-columns: repeat(2, 1fr);
}

.join-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.join-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  font-weight: 900;
  font-size: 0;
}

.join-icon-person::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-8px);
}

.join-icon-person::after {
  width: 24px;
  height: 12px;
  border-radius: 14px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(9px);
}

.join-icon-build::before {
  width: 24px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 6px;
}

.join-icon-build::after {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 -6px 0 rgba(255, 255, 255, 0.96),
    0 6px 0 rgba(255, 255, 255, 0.96);
}

.join-icon-flow::before {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-left-color: transparent;
  border-radius: 999px;
}

.join-icon-flow::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.96);
  border-right: 2px solid rgba(255, 255, 255, 0.96);
  transform: translate(9px, -8px) rotate(45deg);
}

.join-card h2,
.role-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.join-card p,
.role-card p,
.join-project-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.78;
}

.join-project-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  letter-spacing: 0;
}

/* join/index.html also contains a compact third-party link section. */
.link-grid .link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (max-width: 920px) {
  .join-layout,
  .role-grid,
  .join-project-grid,
  .join-preview {
    grid-template-columns: 1fr;
  }

  .join-preview {
    align-items: flex-start;
  }

  .join-preview h2 {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .join-preview p {
    font-size: 16px;
  }

  .join-preview h2 {
    font-size: 32px;
  }
}
