/* ============================================================
   Job detail page. Uses the tokens already defined in style.css
   — no new colours, no new type. Layout only.
   ============================================================ */

.job-hero {
  background: linear-gradient(150deg, var(--navy) 0%, #22365e 62%, var(--navy-deep) 100%);
  color: #fff;
  padding: 46px 0 54px;
  position: relative;
  overflow: hidden;
}
.job-hero::after {
  content: ""; position: absolute; right: -140px; top: -160px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,141,217,.28), transparent 68%);
  pointer-events: none;
}
.job-hero > .container { position: relative; z-index: 1; }

.job-crumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,255,255,.62); margin-bottom: 22px;
}
.job-crumb a { color: rgba(255,255,255,.82); transition: color .2s; }
.job-crumb a:hover { color: #fff; text-decoration: underline; }
.job-crumb span[aria-hidden] { opacity: .45; }

.job-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-data); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 15px; border-radius: 999px; margin-bottom: 16px;
}
.job-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.job-status.is-open   { background: rgba(33,160,90,.18);  color: #6BE3A2; border: 1px solid rgba(33,160,90,.4); }
.job-status.is-closed { background: rgba(255,255,255,.10); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.2); }

.job-hero h1 { color: #fff; max-width: 20ch; margin-bottom: 20px; }

.job-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.job-fact {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  padding: 7px 15px; border-radius: 999px;
  font-size: .86rem; color: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}
.job-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.job-hero-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.job-hero-actions .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- body ---------- */
.job-main { padding-top: 56px; }
.job-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.9fr); gap: 44px; align-items: start; }

.job-block { margin-bottom: 40px; }
.job-block h2 { font-size: 1.4rem; margin-bottom: 16px; }
.job-rich { color: var(--muted); }
.job-rich p { margin-bottom: 14px; }
.job-rich ul, .job-rich ol { margin: 0 0 16px 20px; }
.job-rich li { margin-bottom: 8px; }
.job-rich strong { color: var(--ink); }
.job-pre { color: var(--muted); white-space: pre-wrap; }

/* ---------- sidebar ---------- */
.job-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.job-side-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.job-side-card h3 { font-size: 1.05rem; margin-bottom: 16px; }

.job-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .92rem; }
.job-dl dt { color: var(--muted); }
.job-dl dd { color: var(--ink); font-weight: 500; text-align: right; }

.job-share-hint { color: var(--muted); font-size: .88rem; margin: -8px 0 16px; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 12px; border-radius: 10px; min-height: 46px;
  font-size: .88rem; font-weight: 600; color: #fff;
  transition: transform .18s, box-shadow .22s, filter .18s;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.06); }
.share-btn:active { transform: translateY(0); }
.s-li { background: #0A66C2; }
.s-wa { background: #1EA855; }
.s-fb { background: #1877F2; }
.s-em { background: var(--navy); }

.copy-row { display: flex; gap: 8px; margin-top: 14px; }
.copy-row input {
  flex: 1; min-width: 0; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .84rem; color: var(--muted);
  background: var(--bg-soft);
}
.btn-copy { padding: 10px 16px; font-size: .84rem; min-height: 44px; white-space: nowrap; }
.btn-copy.is-copied { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- apply form ---------- */
#apply .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#apply label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--navy); }
#apply input[type=text], #apply input[type=email], #apply input[type=file], #apply textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: #fff;
}
#apply input:focus, #apply textarea:focus { outline: none; border-color: var(--blue); }
#apply textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-success {
  background: #e7f6ed; border: 1px solid #b4e3c8; color: #17703c;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500;
}
.apply-success.apply-error { background: #fdecea; border-color: #f4c3bd; color: #a32218; }

@media (max-width: 900px) {
  .job-layout { grid-template-columns: 1fr; gap: 34px; }
  .job-side { position: static; }
}
@media (max-width: 560px) {
  .job-hero { padding: 32px 0 40px; }
  .share-row { grid-template-columns: 1fr; }
  #apply .row2 { grid-template-columns: 1fr; }
  .job-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .job-dl dd { text-align: left; margin-bottom: 10px; font-weight: 600; }
  .copy-row { flex-direction: column; }
  .btn-copy { width: 100%; }
}

/* ============================================================
   Join Us list — cards now open the job's own page instead of
   expanding in place, so they need a link affordance.
   ============================================================ */
.job-card.job-link { display: block; cursor: pointer; }
.job-card.job-link .job-header { cursor: pointer; }
.job-card.job-link:hover { border-color: var(--blue); }
.job-excerpt { color: var(--muted); font-size: .93rem; margin-top: 10px; max-width: 62ch; }
.job-go {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  font-weight: 600; font-size: .9rem; color: var(--navy); white-space: nowrap;
}
.job-go svg { transition: transform .28s cubic-bezier(.16,1,.3,1); }
.job-card.job-link:hover .job-go svg { transform: translateX(5px); }
@media (max-width: 640px) {
  .job-go { margin-top: 14px; }
}
