/* ============================================================
   DekoJobs · Candidate space — website/dekojobs/candidate
   Values from the Dékolé Haiti reference (/dekotravay/candidate,
   CandidateEntry). Scoped to .djb-p-candidate.
   ============================================================ */

.djb-p-candidate .djp-cand {
  --djp-ink: #102d34;
  --djp-muted: #60777c;
  --djp-line: #bfd4d4;
  --djp-violet: #665cf2;
  background: #f5faf9;
  color: var(--djp-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.djb-p-candidate .djp-cand h1,
.djb-p-candidate .djp-cand h2 { color: var(--djp-ink); font-weight: 750; letter-spacing: -.04em; text-wrap: balance; }
.djb-p-candidate .djp-cand h3 { color: var(--djp-ink); font-weight: 680; text-wrap: balance; }
.djb-p-candidate .djp-cand p { font-weight: 440; }
.djb-p-candidate .djp-cand a { font-weight: 640; }

/* Hero */
.djb-p-candidate .djp-cand-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--djp-line);
  background:
    radial-gradient(circle at 82% 12%, rgba(101, 92, 242, .14), transparent 32%),
    linear-gradient(135deg, #edfdf8 0, #f7fbfb 55%, #f2f0ff 100%);
}
.djb-p-candidate .djp-cand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 105, 101, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 105, 101, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(#000, transparent 86%);
  mask-image: linear-gradient(#000, transparent 86%);
}
.djb-p-candidate .djp-cand-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, .72fr);
  align-items: center;
  gap: clamp(40px, 5vw, 76px);
  min-height: 540px;
  padding: 42px 0 48px;
}
/* 720px / 700px on the reference; a little wider here because the site's
   Geist bold is wider than the reference's synthetic bold (same line breaks). */
.djb-p-candidate .djp-cand-copy { max-width: 790px; }
.djb-p-candidate .djp-cand-crumb { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; color: #5f777b; font-size: 12px; }
.djb-p-candidate .djp-cand-crumb a { color: #147869; }
.djb-p-candidate .djp-cand-crumb a:hover { color: #0b5a4f; }
.djb-p-candidate .djp-cand-crumb strong { color: #243f45; font-weight: 700; }
.djb-p-candidate .djp-cand-signal { display: flex; align-items: center; gap: 9px; color: #117a69; font-size: 10px; font-weight: 850; letter-spacing: .12em; line-height: 1.2; }
.djb-p-candidate .djp-cand-signal i { width: 8px; height: 8px; border-radius: 50%; background: #4bdec1; box-shadow: 0 0 16px rgba(53, 201, 174, .65); }
.djb-p-candidate .djp-cand-copy h1 { max-width: 780px; margin: 17px 0 16px; font-size: clamp(42px, 4.4vw, 62px); line-height: .94; }
.djb-p-candidate .djp-cand-copy h1 em { color: var(--djp-violet); font-style: normal; }
.djb-p-candidate .djp-cand-copy > p { max-width: 660px; color: var(--djp-muted); font-size: 15px; line-height: 1.6; }
.djb-p-candidate .djp-cand-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.djb-p-candidate .djp-cand-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 0 19px;
  border: 1px solid #12353a;
  border-radius: 7px;
  background: #12353a;
  color: #fff;
  font-size: 12px;
  transition: transform .2s, box-shadow .2s;
}
.djb-p-candidate .djp-cand-actions a.is-mint { border-color: #1aa990; background: #5ae3c7; color: #071e1a; }
.djb-p-candidate .djp-cand-actions a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(19, 65, 68, .13); }
.djb-p-candidate .djp-cand-actions a.is-mint:hover { color: #071e1a; }
.djb-p-candidate .djp-cand-promise { display: block; max-width: 650px; margin-top: 15px; color: #557075; font-size: 11px; line-height: 1.5; }

.djb-p-candidate .djp-cand-command {
  overflow: hidden;
  border: 1px solid #accdcc;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 34px 80px rgba(25, 71, 77, .13);
  backdrop-filter: blur(20px);
}
.djb-p-candidate .djp-cand-command > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 0 22px; border-bottom: 1px solid #cadbdb; }
.djb-p-candidate .djp-cand-command > header span { color: #187b6b; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.djb-p-candidate .djp-cand-command > header b { padding: 7px 9px; border: 1px solid #beb8ff; border-radius: 999px; background: #f2f0ff; color: #5c53d0; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.djb-p-candidate .djp-cand-command ol { margin: 0; padding: 0; list-style: none; }
.djb-p-candidate .djp-cand-command li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; min-height: 88px; padding: 15px 22px; border-bottom: 1px solid #d4e1e1; }
.djb-p-candidate .djp-cand-command li > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #a9d8cf; border-radius: 12px; background: #ecfcf8; color: #127b69; font-size: 9px; font-weight: 850; }
.djb-p-candidate .djp-cand-command li div { display: grid; gap: 5px; }
.djb-p-candidate .djp-cand-command li strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.djb-p-candidate .djp-cand-command li small { color: #6a7f83; font-size: 10px; line-height: 1.4; }
.djb-p-candidate .djp-cand-command li > i { color: #6c5ee6; font-style: normal; }
.djb-p-candidate .djp-cand-command > footer { display: grid; gap: 7px; padding: 19px 22px; background: linear-gradient(110deg, #e4fbf5, #f1efff); }
.djb-p-candidate .djp-cand-command > footer span { display: flex; align-items: center; gap: 8px; color: #175f55; font-size: 10px; font-weight: 850; }
.djb-p-candidate .djp-cand-command > footer span i { width: 7px; height: 7px; border-radius: 50%; background: #2fc8a7; }
.djb-p-candidate .djp-cand-command > footer small { color: #667b7e; font-size: 9px; }

/* Four-step rail */
.djb-p-candidate .djp-cand-rail { border-bottom: 1px solid var(--djp-line); background: #fff; }
.djb-p-candidate .djp-cand-rail > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.djb-p-candidate .djp-cand-rail a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 0 20px;
  border-right: 1px solid #d3e0e0;
  color: var(--djp-ink);
}
.djb-p-candidate .djp-cand-rail a:last-child { border-right: 0; }
.djb-p-candidate .djp-cand-rail a small { color: #1b8978; font-size: 9px; font-weight: 850; }
.djb-p-candidate .djp-cand-rail a strong { font-size: 13px; font-weight: 700; }
.djb-p-candidate .djp-cand-rail a span { color: #6459df; }
.djb-p-candidate .djp-cand-rail a:hover { background: #edfaf7; color: var(--djp-ink); }

/* Tools */
.djb-p-candidate .djp-cand-tools { padding: 82px 0 92px; background: linear-gradient(#fff, #f1f8f7); scroll-margin-top: 140px; }
.djb-p-candidate .djp-cand-tools > div > header { display: grid; grid-template-columns: 1fr minmax(300px, .7fr); align-items: end; gap: 50px; margin-bottom: 34px; }
.djb-p-candidate .djp-cand-tools > div > header span,
.djb-p-candidate .djp-cand-boundary span { color: #137c6b; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.djb-p-candidate .djp-cand-tools h2,
.djb-p-candidate .djp-cand-boundary h2 { margin: 12px 0 0; font-size: clamp(36px, 4.2vw, 58px); line-height: .94; }
.djb-p-candidate .djp-cand-tools > div > header p,
.djb-p-candidate .djp-cand-boundary p { color: var(--djp-muted); font-size: 13px; line-height: 1.65; }
.djb-p-candidate .djp-cand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--djp-line); border-radius: 18px; background: #cad9da; }
.djb-p-candidate .djp-cand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px;
  background: #fff;
  color: var(--djp-ink);
  transition: background .2s, transform .2s;
}
.djb-p-candidate .djp-cand-card:hover,
.djb-p-candidate .djp-cand-card:focus-visible { z-index: 1; color: var(--djp-ink); background: linear-gradient(145deg, #edfcf8, #f5f2ff); transform: translateY(-2px); box-shadow: inset 0 0 0 2px #55d7bd; }
.djb-p-candidate .djp-cand-card > header { display: flex; align-items: center; justify-content: space-between; }
.djb-p-candidate .djp-cand-card > header span { color: #167a6a; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.djb-p-candidate .djp-cand-card > header i { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #c7d9d8; border-radius: 12px; background: #f6f5ff; color: #6258dc; font-style: normal; }
.djb-p-candidate .djp-cand-card h3 { max-width: 220px; margin: 56px 0 12px; font-size: 24px; line-height: 1.02; letter-spacing: -.045em; }
.djb-p-candidate .djp-cand-card p { color: var(--djp-muted); font-size: 12px; line-height: 1.6; }
.djb-p-candidate .djp-cand-card > footer { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-top: auto; border-top: 1px solid #d3e0e0; color: #146f61; font-size: 10px; font-weight: 850; }

/* Roles stay separate */
.djb-p-candidate .djp-cand-boundary { padding: 60px 0; border-block: 1px solid var(--djp-line); background: radial-gradient(circle at 90% 0, rgba(101, 92, 242, .15), transparent 33%), #edf9f6; }
.djb-p-candidate .djp-cand-boundary > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 55px; }
.djb-p-candidate .djp-cand-boundary h2 { font-size: 36px; }
.djb-p-candidate .djp-cand-boundary p { max-width: 750px; margin-top: 13px; }
.djb-p-candidate .djp-cand-boundary a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #655be8;
  border-radius: 7px;
  background: #fff;
  color: #5146cf;
  font-size: 11px;
  transition: background-color .2s;
}
.djb-p-candidate .djp-cand-boundary a:hover { background: #f4f2ff; color: #5146cf; }

@media (max-width: 1050px) {
  .djb-p-candidate .djp-cand-hero-inner { grid-template-columns: 1fr; gap: 44px; padding-block: 54px; }
  .djb-p-candidate .djp-cand-command { max-width: 720px; }
  .djb-p-candidate .djp-cand-grid,
  .djb-p-candidate .djp-cand-rail > div { grid-template-columns: 1fr 1fr; }
  .djb-p-candidate .djp-cand-rail a:nth-child(2) { border-right: 0; }
  .djb-p-candidate .djp-cand-rail a:nth-child(-n+2) { border-bottom: 1px solid #d3e0e0; }
}
@media (max-width: 700px) {
  .djb-p-candidate .djp-cand-hero-inner { min-height: 0; padding-block: 38px 44px; }
  .djb-p-candidate .djp-cand-copy h1 { font-size: 44px; }
  .djb-p-candidate .djp-cand-copy > p { font-size: 14px; }
  .djb-p-candidate .djp-cand-actions { display: grid; }
  .djb-p-candidate .djp-cand-actions a { width: 100%; min-height: 52px; }
  .djb-p-candidate .djp-cand-command { border-radius: 15px; }
  .djb-p-candidate .djp-cand-command li { min-height: 82px; padding-inline: 16px; }
  .djb-p-candidate .djp-cand-rail a { min-height: 76px; padding: 0 14px; }
  .djb-p-candidate .djp-cand-rail a strong { font-size: 11px; }
  .djb-p-candidate .djp-cand-tools { padding: 58px 0; }
  .djb-p-candidate .djp-cand-tools > div > header { grid-template-columns: 1fr; gap: 18px; }
  .djb-p-candidate .djp-cand-grid { grid-template-columns: 1fr; }
  .djb-p-candidate .djp-cand-card h3 { margin-top: 38px; }
  .djb-p-candidate .djp-cand-boundary > div { grid-template-columns: 1fr; gap: 25px; }
  .djb-p-candidate .djp-cand-boundary a { justify-content: space-between; }
}
@media (max-width: 640px) {
  .djb-p-candidate .djp-cand { font-size: 15px; }
}
@media (max-width: 430px) {
  .djb-p-candidate .djp-cand-copy h1 { font-size: 38px; }
  .djb-p-candidate .djp-cand-rail > div { grid-template-columns: 1fr; }
  .djb-p-candidate .djp-cand-rail a { border-right: 0; border-bottom: 1px solid #d3e0e0; }
  .djb-p-candidate .djp-cand-rail a:last-child { border-bottom: 0; }
  .djb-p-candidate .djp-cand-command > header { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
  .djb-p-candidate .djp-cand-command li small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .djb-p-candidate .djp-cand-actions a { transition: none; }
  .djb-p-candidate .djp-cand-actions a:hover { transform: none; }
}

/* Phase 1 · live counts on the tool cards (signed-in members) */
.djb-p-candidate .djp-cand-stat {
  padding: 3px 10px; border-radius: 999px; background: #dcf5ec; color: #0b6b55;
  font-size: 12px; font-weight: 700; letter-spacing: 0; white-space: nowrap;
}
