/* =========================================================
   igual — páginas de detalhe de vaga
   Carregado depois de styles.css (reaproveita tokens, header,
   footer, botões, .container, .eyebrow).
   ========================================================= */

/* ---------- Hero da vaga ---------- */
.job-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 clamp(36px, 5vw, 60px);
  background:
    radial-gradient(90% 120% at 100% 0%, var(--goiaba-50), transparent 60%),
    radial-gradient(80% 120% at 0% 0%, var(--azul-50), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.job-hero__symbol {
  position: absolute;
  right: clamp(-80px, -3vw, -20px);
  top: 50%;
  width: clamp(280px, 34vw, 460px);
  transform: translateY(-50%) rotate(-3deg);
  fill: var(--ink);
  opacity: .045;
  pointer-events: none;
}
.job-hero__inner { position: relative; z-index: 1; max-width: 880px; }

.job-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 22px;
  text-wrap: balance;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700);
}
.chip svg { width: 15px; height: 15px; fill: var(--goiaba); flex: none; }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--goiaba); flex: none; }

/* ---------- Layout corpo + aside ---------- */
.job-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px);
}

.job-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: var(--shadow);
}
.job-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.job-card__facts { list-style: none; padding: 0; margin: 14px 0 22px; }
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.fact:first-child { border-top: 0; }
.fact__k { color: var(--text-muted); font-size: .9rem; }
.fact__v { color: var(--ink); font-weight: 600; font-size: .92rem; text-align: right; }
.job-card .btn { width: 100%; }
.job-card__note { font-size: .82rem; color: var(--text-muted); margin-top: 14px; text-align: center; }

.btn__external {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Prosa ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 2.2em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); font-size: 1.05rem; line-height: 1.68; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  color: var(--goiaba-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--goiaba-100);
  text-underline-offset: 3px;
  transition: text-decoration-color .25s var(--ease);
}
.prose a:hover { text-decoration-color: var(--goiaba); }

.prose ul { list-style: none; padding: 0; margin-top: 1.1em; display: grid; gap: 14px; }
.prose li {
  position: relative;
  padding-left: 30px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--goiaba);
  box-shadow: 0 0 0 4px var(--goiaba-50);
}

.prose__intro {
  font-size: clamp(1.12rem, 1.6vw, 1.3rem) !important;
  line-height: 1.55 !important;
  color: var(--ink-700) !important;
}

/* Bloco de candidatura no fim da prosa */
.apply-block {
  margin-top: 2.4em;
  padding: clamp(26px, 3vw, 38px);
  background: var(--ink);
  color: var(--offwhite);
  border-radius: var(--r-lg);
}
.apply-block h2 { color: #fff; margin-top: 0; }
.apply-block p { color: rgba(240, 239, 235, 0.8); }
.apply-block .btn { margin-top: 20px; }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .job-layout { grid-template-columns: 1fr; gap: 0; }
  .job-aside {
    position: static;
    order: -1;
    margin-bottom: clamp(32px, 5vw, 44px);
  }
  .prose { max-width: none; }
}

@media (max-width: 760px) {
  .job-card .btn,
  .apply-block .btn { width: 100%; }
}
