/* ═══════════════════════════════════════════════════════════════
   XIPE – Job Listing Page  (editorial, matches current site style)
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
#jd-hero {
  min-height: 100vh;
  background: #0a0c14;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px clamp(24px, 8vw, 100px) clamp(64px, 8vh, 100px);
  position: relative;
  overflow: hidden;
}

.jd-hero-back {
  position: absolute;
  top: 100px;
  left: clamp(24px, 8vw, 100px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  transition: color 0.2s, gap 0.2s;
}

.jd-hero-back:hover { color: rgba(255,255,255,0.65); gap: 10px; }

.jd-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b84ff;
  margin-bottom: 20px;
  display: block;
}

.jd-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 10vw, 130px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.jd-hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 48px;
}

.jd-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 36px;
}

.jd-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.jd-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

.jd-meta-tag i { color: #6b84ff; font-size: 14px; }

.jd-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0a0c14;
  border-radius: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.jd-hero-cta:hover {
  background: #f0ff6e;
  transform: translateY(-2px);
}

/* ─── SHARED SECTION STRUCTURE ─── */
.jd-section {
  padding: clamp(80px, 10vh, 120px) clamp(24px, 8vw, 100px);
}

.jd-section--white  { background: #ffffff; }
.jd-section--beige  { background: #f5f3ef; }
.jd-section--dark   { background: #0a0c14; }

.jd-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.jd-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3d50e0;
  margin-bottom: 20px;
  display: block;
}

.jd-section--dark .jd-section-label { color: #6b84ff; }

.jd-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0a0c14;
  margin-bottom: 0;
}

.jd-section--dark .jd-section-title { color: #ffffff; }

.jd-section-title em {
  font-style: italic;
  color: #3d50e0;
}

.jd-section-sub {
  font-size: 13px;
  font-weight: 700;
  color: #3d50e0;
  margin-top: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jd-section--dark .jd-section-title em { color: #6b84ff; }

/* ─── OVERVIEW: two-column layout ─── */
.jd-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
  padding-top: clamp(32px, 4vh, 56px);
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: clamp(28px, 3vh, 40px);
}

.jd-overview-body p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 20px;
}

.jd-overview-body p:last-child { margin-bottom: 0; }

.jd-overview-body em { color: #3d50e0; font-style: italic; }

.jd-overview-body strong { color: #0a0c14; font-weight: 700; }

/* ─── NUMBERED ROWS (like principles) ─── */
.jd-row-list {
  margin-top: clamp(32px, 4vh, 48px);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.jd-section--dark .jd-row-list { border-top: 1px solid rgba(255,255,255,0.08); }

.jd-row-item {
  display: grid;
  grid-template-columns: 52px 1fr 1.6fr;
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 3.5vh, 44px) 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.jd-section--dark .jd-row-item { border-bottom: 1px solid rgba(255,255,255,0.06); }

.jd-row-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,0.25);
  padding-top: 4px;
}

.jd-section--dark .jd-row-num { color: rgba(255,255,255,0.2); }

.jd-row-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: #0a0c14;
  line-height: 1.25;
  padding-top: 2px;
}

.jd-section--dark .jd-row-title { color: #ffffff; }

.jd-row-body {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.75;
}

.jd-section--dark .jd-row-body { color: rgba(255,255,255,0.5); }

.jd-row-body strong { color: #0a0c14; font-weight: 600; }

.jd-section--dark .jd-row-body strong { color: rgba(255,255,255,0.8); }

/* ─── TECH LIST (plain bullet style on beige) ─── */
.jd-tech-list {
  margin-top: clamp(32px, 4vh, 48px);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.jd-tech-item {
  display: flex;
  gap: 20px;
  padding: clamp(20px, 2.5vh, 32px) 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  align-items: flex-start;
}

.jd-tech-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.2);
  min-width: 32px;
  padding-top: 3px;
}

.jd-tech-text {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
}

.jd-tech-text strong { color: #0a0c14; font-weight: 700; }

/* ─── RESULTS GRID ─── */
.jd-results-grid {
  margin-top: clamp(32px, 4vh, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.jd-results-grid .jd-result-card:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  max-width: calc(33.333% - 14px);
}

.jd-result-card {
  background: #ffffff;
  border: 1.5px solid #0a0c14;
  border-radius: 20px;
  padding: 32px 28px;
}

.jd-result-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0a0c14;
  margin-bottom: 10px;
  line-height: 1.25;
}

.jd-result-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* ─── BENEFITS ─── */
.jd-benefits-grid {
  margin-top: clamp(32px, 4vh, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.jd-benefit-card {
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.jd-benefit-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: rgba(0,0,0,0.08);
  line-height: 1;
  flex-shrink: 0;
}

.jd-benefit-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0a0c14;
  margin-bottom: 8px;
}

.jd-benefit-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
}

/* ─── APPLY CTA ─── */
#jd-apply {
  background: #0a0c14;
  padding: clamp(100px, 14vh, 160px) clamp(24px, 8vw, 100px);
}

.jd-apply-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.jd-apply-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 8vw, 100px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: clamp(32px, 4vh, 52px);
  max-width: 900px;
}

.jd-apply-title em {
  color: #6b84ff;
  font-style: italic;
}

.jd-apply-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 36px;
}

.jd-apply-note {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  max-width: 480px;
  line-height: 1.7;
}

.jd-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0a0c14;
  border-radius: 10px;
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.jd-apply-btn:hover {
  background: #f0ff6e;
  transform: translateY(-2px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .jd-row-item { grid-template-columns: 36px 1fr; }
  .jd-row-body { grid-column: 2; }

  .jd-overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .jd-results-grid { grid-template-columns: 1fr 1fr; }
  .jd-hero-bottom { flex-direction: column; align-items: flex-start; }
  .jd-apply-bottom { flex-direction: column; }
}

@media (max-width: 600px) {
  .jd-row-item { grid-template-columns: 1fr; gap: 8px; }
  .jd-row-num { display: none; }
  .jd-row-body { grid-column: 1; }

  .jd-results-grid { grid-template-columns: 1fr; }
  .jd-benefits-grid { grid-template-columns: 1fr; }
  .jd-benefit-num { display: none; }
}
