/* ==========================================================
   style.css — tema vermelho, amarelo e branco
   Usado pelas duas páginas (index.html e rh.html)
   ========================================================== */

:root {
  --red: #c8102e;
  --red-dark: #a50d26;
  --red-deep: #8a0a20;
  --red-soft: #fdecee;
  --yellow: #ffc20e;
  --yellow-dark: #e0a800;
  --yellow-soft: #fff4cc;
  --yellow-ink: #6b4e00;

  --bg: #f6f5f5;
  --surface: #ffffff;
  --ink: #1f1a1a;
  --muted: #6a6161;
  --line: #e9e4e3;
  --line-strong: #d6cecc;
  --danger: #b3261e;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(31, 26, 26, 0.06), 0 4px 16px rgba(31, 26, 26, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
h3 { font-size: 0.9375rem; font-weight: 600; }
a { color: var(--red); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- marca (logo) ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.topbar .brand__logo { height: 42px; }

/* ---------- botões ---------- */
.btn {
  appearance: none; font: inherit; font-weight: 500; font-size: 0.9375rem; line-height: 1;
  padding: 11px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover:not(:disabled) { background: var(--bg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--yellow:hover:not(:disabled) { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn--small { padding: 8px 12px; font-size: 0.875rem; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--ghost-light:hover:not(:disabled) { background: rgba(255,255,255,0.14); }
.btn--danger { color: var(--danger); border-color: #e7c4c1; }
.btn--danger:hover:not(:disabled) { background: #fdf0ef; }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.875rem;
  color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .field__label { font-size: 0.875rem; font-weight: 500; }
.field__hint { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.field__error { font-size: 0.8125rem; color: var(--danger); }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: #a39a98; }
.input:hover, .select:hover, .textarea:hover { border-color: #bdb2af; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.is-invalid, .is-invalid:hover { border-color: var(--danger); }
.select {
  appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c8102e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select:disabled { background-color: var(--bg); color: #a39a98; cursor: not-allowed; }
.textarea { resize: vertical; min-height: 96px; }
.field .input, .field .select { min-height: 44px; }
.input[type="date"] { appearance: none; -webkit-appearance: none; display: block; line-height: 1.4; }

.input-group { position: relative; }
.input-group__prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.9375rem; pointer-events: none;
}
.input-group .input { padding-left: 38px; }

/* ==========================================================
   PÁGINA DO CANDIDATO
   ========================================================== */
.hero {
  background: var(--red);
  border-bottom: 6px solid var(--yellow);
  color: #fff;
  padding: 28px 24px 112px;
}
.hero__inner { max-width: 920px; margin: 0 auto; }
.hero h1 { margin-top: 48px; font-size: 2.125rem; }
.hero p { margin-top: 10px; max-width: 56ch; color: rgba(255,255,255,0.88); font-size: 1.0625rem; }

.page { max-width: 920px; margin: 0 auto; padding: 0 24px 72px; }
.page--overlap { margin-top: -64px; position: relative; }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-required-note { padding: 24px 32px 0; }

.section {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  padding: 32px; border: 0; margin: 0; min-width: 0;
}
.section + .section { border-top: 1px solid var(--line); }
.section__head h2 { margin-bottom: 4px; }
.section__head p { font-size: 0.875rem; color: var(--muted); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start; }
.field--full { grid-column: 1 / -1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 14px; font-size: 0.875rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  transition: background-color 0.15s, border-color 0.15s;
}
.chip:hover span { border-color: var(--yellow-dark); }
.chip input:checked + span {
  background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 500;
}
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.dropzone {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--bg); cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover, .dropzone:focus-within, .dropzone.is-over {
  border-color: var(--red); background: var(--red-soft);
}
.dropzone__icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--yellow); color: var(--red); display: grid; place-items: center;
}
.dropzone__title { font-weight: 500; }
.dropzone__hint { font-size: 0.8125rem; color: var(--muted); }
.file-info {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-top: 4px; background: var(--yellow-soft);
  border: 1px solid #f3dd8a; border-radius: var(--radius-sm); font-size: 0.875rem;
}
.file-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 32px; border-top: 1px solid var(--line);
  background: #fcfbfa; border-radius: 0 0 var(--radius) var(--radius);
}
.consent-field { max-width: 54ch; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--red); }
.form-error {
  margin: 0 32px 24px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #fdf0ef; color: var(--danger); font-size: 0.875rem; border: 1px solid #f0c9c6;
}

.success { text-align: center; padding: 64px 32px; display: grid; justify-items: center; gap: 12px; }
.success__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--red);
  display: grid; place-items: center; margin-bottom: 8px;
}
.success p { color: var(--muted); max-width: 46ch; }
.success .btn { margin-top: 12px; }


/* ==========================================================
   PAINEL DO RH
   ========================================================== */
.topbar { background: var(--red); border-bottom: 4px solid var(--yellow); }
.topbar__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.panel-page { max-width: 1440px; margin: 0 auto; padding: 28px 24px 56px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.panel-head p { color: var(--muted); margin-top: 4px; }

/* resumo por status */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
  --c: var(--red);
  appearance: none; font: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.stat:hover { box-shadow: 0 2px 4px rgba(31,26,26,0.08), 0 8px 20px rgba(31,26,26,0.07); }
.stat.is-active { background: var(--yellow-soft); border-color: var(--c); }
.stat__num { display: block; font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.stat__label { font-size: 0.8125rem; color: var(--muted); }
.stat--total { --c: var(--red); }
.stat--cadastrado { --c: #5b6b7d; }
.stat--em-analise { --c: var(--yellow); }
.stat--em-entrevista { --c: var(--red-dark); }
.stat--banco-de-talentos { --c: #6b4fb5; }
.stat--contratado { --c: #1b8a4a; }

/* filtros */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
}
.search { position: relative; margin-bottom: 16px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--red); }
.search .input { padding: 13px 14px 13px 44px; font-size: 1rem; }
.filters__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.filters__grid .field > label { font-size: 0.8125rem; color: var(--muted); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters__actions {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.filters__count { font-size: 0.9rem; color: var(--muted); }
.filters__count strong { color: var(--ink); font-weight: 600; }
.filters__right { display: flex; align-items: center; gap: 10px; }
.filters__right .select { width: auto; min-width: 190px; padding-top: 8px; padding-bottom: 8px; }

/* lista + detalhe */
.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr); gap: 20px; align-items: start; }
.table-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left; font-weight: 500; font-size: 0.8125rem; color: var(--muted);
  padding: 12px 16px; background: #fcfbfa; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tbody tr { cursor: pointer; transition: background-color 0.12s; }
tbody tr:hover { background: #faf6f4; }
tbody tr:focus-visible { outline-offset: -2px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-selected { background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--red); }
.person__name { font-weight: 500; }
.person__meta { font-size: 0.8125rem; color: var(--muted); }

.empty { padding: 48px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty p { color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 6px; }

.table-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); background: #fcfbfa;
}
.pager { display: flex; align-items: center; gap: 8px; }

/* status */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge--sem-status { background: #efecec; color: #5d5555; }
.badge--cadastrado { background: #e6ebf1; color: #34475c; }
.badge--em-analise { background: #ffeaa3; color: #6b4e00; }
.badge--em-entrevista { background: #fbd9de; color: #9e0b23; }
.badge--aguardando-retorno { background: #ffe3cc; color: #8f4308; }
.badge--banco-de-talentos { background: #ece6f7; color: #4a2f94; }
.badge--contratado { background: #d6f1e0; color: #166a37; }
.badge--reprovado { background: #3b3333; color: #fff; }

/* detalhe */
.detail {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.detail--empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.detail__head { padding: 24px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius) var(--radius) 0 0; }
.detail__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail__sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.detail__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 0.875rem; }
.detail__block { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.detail__block:last-child { border-bottom: 0; }
.detail__block > h3 { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin-top: 2px; font-size: 0.9rem; overflow-wrap: anywhere; }
.facts .facts__wide { grid-column: 1 / -1; }
.status-form { display: grid; gap: 12px; }
.status-form__actions { display: flex; justify-content: flex-end; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--line-strong);
}
.timeline li::after { content: ""; position: absolute; left: 7px; top: 19px; bottom: -3px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--red); box-shadow: 0 0 0 3px var(--yellow); }
.timeline__title { font-size: 0.9rem; font-weight: 500; }
.timeline__meta { font-size: 0.8125rem; color: var(--muted); }
.timeline__note { font-size: 0.875rem; margin-top: 4px; overflow-wrap: anywhere; }

/* aviso rápido */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  border-left: 5px solid var(--yellow); box-shadow: 0 8px 24px rgba(0,0,0,0.25); font-size: 0.9rem; max-width: calc(100% - 32px);
}
.toast--erro { border-left-color: #ff6b6b; }

/* ---------- responsivo ---------- */
/* dois campos sempre lado a lado (ex.: nascimento + sexo) */
.field-pair {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace { grid-template-columns: 1fr; }
  .detail { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .hero { padding: 20px 16px 96px; }
  .hero h1 { margin-top: 32px; font-size: 1.75rem; }
  .page { padding: 0 16px 56px; }
  .section { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .form-required-note { padding: 20px 20px 0; }
  .fields { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; padding: 20px; }
  .form-footer .btn { width: 100%; }
  .panel-page { padding: 20px 16px 40px; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__grid { grid-template-columns: 1fr 1fr; }
  .filters__actions { flex-direction: column; align-items: stretch; }
  .filters__right { flex-direction: column; align-items: stretch; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 359px) { .field-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ==========================================================
   AÇÕES DO DETALHE + FICHA PARA IMPRESSÃO
   ========================================================== */
.detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail__actions .btn svg { flex: none; }

/* a ficha só existe na impressão */
.ficha { display: none; }

@media print {
  @page { size: A4; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; }
  body > *:not(#ficha) { display: none !important; }

  .ficha { display: block; color: #1a1616; font-size: 10pt; line-height: 1.45; }
  .ficha h1, .ficha h2, .ficha h3 { margin: 0; }

  .ficha__topo {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--red); border-bottom: 4px solid var(--yellow);
    padding: 10px 16px; color: #fff;
  }
  .ficha__logo { height: 40px; width: auto; display: block; }
  .ficha__titulo { text-align: right; }
  .ficha__titulo h1 { font-size: 14pt; font-weight: 600; }
  .ficha__titulo p { font-size: 8.5pt; color: rgba(255,255,255,0.9); }

  .ficha__ident {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
    padding: 14px 2px 10px; border-bottom: 1px solid #cfc8c6;
  }
  .ficha__ident h2 { font-size: 17pt; font-weight: 600; }
  .ficha__ident p { color: #5d5555; font-size: 10pt; }
  .ficha__status {
    border: 1.5px solid var(--red); color: var(--red); border-radius: 999px;
    padding: 2px 12px; font-weight: 600; font-size: 9.5pt; white-space: nowrap;
  }

  .ficha__secao { margin-top: 14px; break-inside: avoid; }
  .ficha__secao > h3 {
    font-size: 10.5pt; font-weight: 600; color: var(--red);
    padding-bottom: 3px; margin-bottom: 8px; border-bottom: 2px solid var(--yellow);
  }
  .ficha__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; }
  .ficha__grid dt { font-size: 8.5pt; color: #6a6161; }
  .ficha__grid dd { margin: 0; font-size: 10pt; overflow-wrap: anywhere; }
  .ficha__grid .ficha__largo { grid-column: 1 / -1; }

  .ficha table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .ficha th, .ficha td { border: 1px solid #d6cecc; padding: 4px 8px; text-align: left; vertical-align: top; white-space: normal; background: #fff; }
  .ficha th { background: #f6f5f5; color: #3b3333; font-weight: 600; font-size: 8.5pt; }
  .ficha tr { break-inside: avoid; cursor: default; }

  .ficha__rodape {
    margin-top: 18px; padding-top: 8px; border-top: 1px solid #cfc8c6;
    font-size: 8pt; color: #6a6161;
  }
}

/* ==========================================================
   CARREIRAS E GESTÃO DE VAGAS
   ========================================================== */
.public-nav { float: right; margin-top: 8px; }
.public-nav .btn-voltar { padding: 10px 20px 10px 16px; font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.public-nav .btn-voltar svg { flex: none; transition: transform .15s; }
.public-nav .btn-voltar:hover svg { transform: translateX(-3px); }
.hero--careers { padding: 28px 24px 32px; }
.hero--careers .hero__inner { max-width: 920px; }
.careers-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--red { color: var(--red); }
.hero--careers h1 { max-width: none; margin-top: 32px; font-size: 2.125rem; }
.hero--careers p:not(.eyebrow) { max-width: 56ch; font-size: 1.0625rem; }
.careers-page { max-width: 1200px; margin: 0 auto; padding: 44px 24px 64px; }
.careers-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.careers-heading h2 { margin: 5px 0; font-size: 1.75rem; }
.careers-heading p:not(.eyebrow) { color: var(--muted); }
.career-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow); }
.career-card__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.career-tag { padding: 4px 10px; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow-ink); font-size: .8rem; font-weight: 600; }
.career-card__area { color: var(--muted); font-size: .85rem; }
.career-card h3 { margin-top: 14px; font-size: 1.3rem; }
.career-location { margin-top: 4px; color: var(--muted); }
.career-location span { color: var(--red); font-size: 1.15rem; }
.career-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; width: 100%; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.career-facts dt { color: var(--muted); font-size: .78rem; }
.career-facts dd { margin-top: 2px; font-weight: 500; }
.career-more { width: 100%; margin-top: 14px; }
.career-more summary { color: var(--red); cursor: pointer; font-weight: 500; }
.career-more h4 { margin-top: 14px; font-size: .875rem; }
.career-more p, .career-more ul { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.career-more ul { padding-left: 20px; }
.career-card__apply { margin-top: 20px; }
.career-empty { display: grid; flex: 1 1 100%; justify-items: center; gap: 12px; width: 100%; max-width: 780px; margin: 0 auto; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.career-empty p { max-width: 55ch; color: var(--muted); }
.careers-talent-action { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; text-align: center; }
.careers-talent-action p { color: var(--muted); }
.careers-talent-button { min-width: 220px; justify-content: center; padding: 13px 24px; border-radius: 999px; box-shadow: 0 8px 20px rgba(120, 84, 0, .18); }

.vacancies-table-card { width: 100%; min-width: 0; }
.vacancy-dialog {
  width: min(960px, calc(100% - 32px)); max-width: none; max-height: 90vh; max-height: 90dvh;
  margin: auto; padding: 0; overflow: auto; border: 0; border-radius: var(--radius); background: transparent;
}
.vacancy-dialog::backdrop { background: rgba(31, 26, 26, .62); backdrop-filter: blur(2px); }
.vacancy-form-card { padding: 24px; background: var(--surface); border-top: 4px solid var(--red); box-shadow: 0 24px 70px rgba(31, 26, 26, .24); }
.vacancy-form-card .form-error { margin: 16px 0 0; }
.vacancy-form__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.vacancy-form__head h2 { margin-top: 4px; font-size: 1.35rem; }
.icon-button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.choice-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-field legend { margin-bottom: 8px; font-size: .875rem; font-weight: 500; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: .84rem; transition: background-color .15s, border-color .15s; }
.choice:hover span { border-color: var(--yellow-dark); }
.choice input:checked + span { border-color: var(--yellow); background: var(--yellow); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.vacancy-form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.vacancy-row__actions { display: flex; gap: 6px; }
.vacancy-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.vacancy-status--ativa { background: #d6f1e0; color: #166a37; }
.vacancy-status--inativa { background: #efecec; color: #5d5555; }
.vacancies-table-card tbody tr { cursor: default; }
.vacancies-table-card tbody tr:hover { background: transparent; }

@media (max-width: 640px) {
  .public-nav { margin-top: 4px; }
  .public-nav .btn-voltar { padding: 8px 14px 8px 11px; font-size: .875rem; gap: 6px; }
  .hero--careers { padding: 20px 16px 28px; }
  .hero--careers h1 { margin-top: 32px; font-size: 1.75rem; }
  .careers-page { padding: 32px 16px 48px; }
  .careers-heading { flex-direction: column; align-items: flex-start; }
  .career-card { padding: 20px; }
  .careers-talent-action { margin-top: 22px; }
  .vacancy-form-card { padding: 20px; }
  .choice-grid--inline { align-items: flex-start; }
}


/* ==========================================================
   LOGIN DO RH, TROCA DE SENHA E BARRA DO USUÁRIO
   ========================================================== */
.topbar__user { display: flex; align-items: center; gap: 10px; color: #fff; }
.topbar__name { font-size: 0.875rem; margin-right: 6px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.session-check { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: var(--muted); font-weight: 600; }
.login__card {
  width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.login__logo { height: 48px; width: auto; align-self: flex-start; object-fit: contain; }
.login__sub { color: var(--muted); margin-top: -8px; }
.login .btn { width: 100%; }

.dlg { border: 0; padding: 0; background: transparent; max-width: calc(100% - 32px); }
.dlg::backdrop { background: rgba(31, 26, 26, 0.55); }
.dlg__card {
  width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px;
}
.dlg__aviso { background: var(--yellow-soft); color: var(--yellow-ink); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; }
.dlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

@media (max-width: 640px) {
  .topbar__name { display: none; }
}

/* ==========================================================
   CARREIRAS — por que trabalhar, valores e carrossel de vagas
   ========================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.careers-body section[id] { scroll-margin-top: 16px; }

.hero--careers .hero__inner--wide { max-width: 1152px; }
.careers-nav__links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.careers-nav__links a { color: rgba(255,255,255,.9); font-weight: 500; text-decoration: none; }
.careers-nav__links a:hover { color: #fff; text-decoration: underline; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn--pill { padding: 13px 24px; border-radius: 999px; }
.hero--careers .btn--yellow { box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hero--careers .btn--ghost-light { color: #fff; }

.careers-section { padding: 72px 24px; }
.careers-section__inner { max-width: 1152px; margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 6px; font-size: 1.875rem; line-height: 1.2; }
.section-head p:not(.eyebrow) { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }

/* imagens com fundo da marca enquanto a foto não existir */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--empty img { display: none; }
.media--empty::after { content: ""; position: absolute; inset: 0; background: url("assets/logo.png") center / 38% no-repeat; opacity: .22; filter: brightness(0) invert(1); }

/* 1. por que trabalhar */
.why { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.why-card { position: relative; margin: 0; min-height: 260px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.why-card--feature { grid-row: span 2; min-height: 540px; }
.why-card:nth-child(4) { grid-column: 2 / span 2; }
.why-card .media { position: absolute; inset: 0; }
.why-card .media img { transition: transform .5s ease; }
.why-card:hover .media img { transform: scale(1.04); }
.why-card figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 22px 20px; color: #fff; background: linear-gradient(to top, rgba(20,6,8,.85) 0%, rgba(20,6,8,.55) 55%, transparent 100%); }
.why-card h3 { font-size: 1.2rem; }
.why-card--feature h3 { font-size: 1.5rem; }
.why-card figcaption p { margin-top: 4px; max-width: 46ch; color: rgba(255,255,255,.9); }
.why-card figcaption::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--yellow); }

/* 2. valores */
.values { background: var(--bg); }
.values-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.values-tabs [role=tab] {
  appearance: none; font: inherit; font-weight: 500; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); transition: background-color .15s, color .15s, border-color .15s;
}
.values-tabs [role=tab]:hover { border-color: var(--red); color: var(--red); }
.values-tabs [role=tab][aria-selected=true] { background: var(--red); border-color: var(--red); color: #fff; }
.values-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.value-panel { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 420px; }
.value-panel__media { min-height: 320px; }
.value-panel__media img { position: absolute; inset: 0; } /* a foto não define a altura do painel */
.value-panel__text { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.value-panel__num { color: var(--yellow-dark); font-size: .9rem; font-weight: 600; letter-spacing: .1em; }
.value-panel h3 { margin-top: 4px; color: var(--red); font-size: 2rem; line-height: 1.15; }
.value-panel__lead { margin-top: 8px; font-size: 1.125rem; font-weight: 500; }
.value-panel ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.value-panel li { position: relative; padding-left: 28px; color: #3d3535; }
.value-panel li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.value-panel.is-entering .value-panel__media img { animation: valor-img .5s ease both; }
.value-panel.is-entering .value-panel__text > * { animation: valor-texto .45s ease both; }
.value-panel.is-entering .value-panel__text > :nth-child(2) { animation-delay: .04s; }
.value-panel.is-entering .value-panel__text > :nth-child(3) { animation-delay: .08s; }
.value-panel.is-entering .value-panel__text > :nth-child(4) { animation-delay: .12s; }
@keyframes valor-img { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes valor-texto { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 3. vagas — carrossel infinito */
.jobs { background: var(--surface); overflow-x: clip; }
.carousel { --per-view: 3; --gap: 20px; --peek: 120px; --card-max: 380px; --card-w: 360px; position: relative; }
/* o carrossel ocupa a largura toda da tela para mostrar as vagas desfocadas nas laterais */
.carousel__viewport {
  overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); padding: 18px 0 44px; margin-bottom: -22px; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.carousel__track { display: flex; align-items: center; gap: var(--gap); will-change: transform; }
.carousel__track.is-animating { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.carousel__track > .career-card {
  flex: 0 0 var(--card-w); width: var(--card-w);
  transform: scale(.86); filter: blur(3px) saturate(.7); opacity: .45;
  transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .6s ease, opacity .6s ease, box-shadow .6s ease;
}
.carousel__track > .career-card.is-near { transform: scale(.92); filter: blur(2.5px) saturate(.8); opacity: .6; cursor: pointer; }
.carousel__track > .career-card.is-active { transform: none; filter: none; opacity: 1; box-shadow: 0 14px 34px rgba(31,26,26,.13); }
.carousel__track > .career-card:not(.is-active) * { pointer-events: none; }
.carousel__track > .career-card.is-near:hover { opacity: .85; filter: blur(1px); }
.carousel__track.is-dragging > .career-card { transition: none; }
.carousel__track .career-card__apply { margin-top: 20px; }
.carousel--static .carousel__viewport { width: auto; margin-left: 0; -webkit-mask-image: none; mask-image: none; }
.carousel--static .carousel__track { flex-wrap: wrap; justify-content: center; align-items: stretch; }
.carousel--static .carousel__track > .career-card { transform: none; filter: none; opacity: 1; flex: 1 1 340px; max-width: 420px; }
.carousel--static .carousel__track > .career-card * { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .carousel__track > .career-card, .carousel__track.is-animating { transition: none; }
}
.carousel-controls { display: flex; gap: 8px; flex: none; }
.carousel-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 3px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface);
  color: var(--red); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .15s, color .15s;
}
.carousel-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: width .2s, background-color .2s; }
.carousel__dots button[aria-current=true] { width: 26px; background: var(--red); }

@media (max-width: 1024px) {
  .carousel { --per-view: 2; --peek: 70px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card--feature { grid-column: span 2; grid-row: auto; min-height: 360px; }
  .why-card:nth-child(4) { grid-column: span 2; }
  .value-panel { grid-template-columns: 1fr; }
  .values-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 680px; margin-inline: auto; }
  .values-tabs [role=tab] { width: 100%; min-width: 0; text-align: center; }
  .value-panel__media { min-height: 280px; }
}
@media (max-width: 720px) {
  .carousel { --per-view: 1; --peek: 30px; --gap: 10px; }
  .carousel__viewport { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%); }
  .careers-nav__links { display: none; }
  .careers-section { padding: 52px 16px; }
  .section-head h2 { font-size: 1.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card, .why-card--feature, .why-card:nth-child(4) { grid-column: auto; min-height: 300px; }
  .values-tabs { gap: 8px; max-width: none; margin-bottom: 22px; }
  .values-tabs [role=tab] { width: 100%; min-width: 0; padding: 10px 8px; font-size: .875rem; text-align: center; overflow-wrap: anywhere; }
  .value-panel__media { min-height: 220px; }
  .value-panel__text { padding: 26px 22px 30px; }
  .value-panel h3 { font-size: 1.6rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .values-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .values-tabs [role=tab] { padding: 9px 6px; font-size: .8125rem; }
}

/* enquadramento das fotos */
.media img[src$="empatia.jpeg"] { object-position: center 22%; }
.media img[src$="evento.jpeg"] { object-position: center 40%; }
@media (max-width: 380px) {
  .hero .brand__logo { height: 44px; }
}
@media (max-width: 340px) {
  .hero .brand__logo { height: 38px; }
}

/* galeria "Nosso dia a dia" — faixa de fotos em movimento contínuo */
.gallery { margin-top: 48px; }
.gallery__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.gallery__head h3 { font-size: 1.35rem; }
.gallery__head p { color: var(--muted); }
.gallery__viewport {
  overflow: hidden; margin-inline: -24px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gallery__track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 4px 0 10px; list-style: none; animation: galeria 140s linear infinite; }
.gallery__viewport:hover .gallery__track { animation-play-state: paused; }
.gallery__track li { flex: none; width: 210px; height: 300px; border-radius: var(--radius); overflow: hidden; background: var(--red-soft); box-shadow: var(--shadow); }
.gallery__track li.is-wide { width: 420px; }
.gallery__track img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__track li:hover img { transform: scale(1.05); }
@keyframes galeria { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) {
  .gallery__track { animation: none; }
  .gallery__viewport { overflow-x: auto; }
}
@media (max-width: 720px) {
  .gallery { margin-top: 36px; }
  .gallery__viewport { margin-inline: -16px; }
  .gallery__track li { width: 160px; height: 230px; }
  .gallery__track li.is-wide { width: 320px; }
}

/* enquadramento das fotos dos valores */
.media img[src$="valor-respeito.jpg"] { object-position: center 55%; }
.media img[src$="valor-comprometimento.jpg"] { object-position: center 30%; }
.media img[src$="valor-organizacao.jpg"] { object-position: center 35%; }
.media img[src$="valor-credibilidade.jpg"] { object-position: center 40%; }

/* título das vagas com filtro por setor */
.jobs-title__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.jobs-filter { position: relative; display: inline-flex; }
.jobs-filter select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: .9375rem; font-weight: 500; color: var(--ink); cursor: pointer;
  min-width: 220px; padding: 10px 40px 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.jobs-filter select:hover { border-color: var(--red); }
.jobs-filter select:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.15); }
.jobs-filter::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg);
}
.jobs-filter[hidden] { display: none; }
.jobs-count { color: var(--red); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) {
  .jobs-title__row { flex-direction: column; align-items: stretch; }
  .jobs-filter, .jobs-filter select { width: 100%; }
}

/* botão "ver detalhes" no cartão da vaga */
.career-more-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 500; color: var(--red); text-align: left; cursor: pointer;
}
.career-more-btn span { transition: transform .15s; }
.career-more-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.career-more-btn:hover span { transform: translateX(3px); }

/* modal da vaga */
html.modal-aberto { overflow: hidden; }
.job-modal {
  width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 820px); padding: 0; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(20,6,8,.35); overflow: hidden;
}
.job-modal[open] { display: flex; flex-direction: column; animation: modal-entra .25s ease both; }
.job-modal::backdrop { background: rgba(31,10,14,.55); backdrop-filter: blur(3px); animation: modal-fundo .25s ease both; }
@keyframes modal-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modal-fundo { from { opacity: 0; } to { opacity: 1; } }
.job-modal__content { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-top: 5px solid var(--red); }
.job-modal__head { padding: 26px 64px 0 28px; }
.job-modal__head h2 { margin-top: 12px; font-size: 1.5rem; line-height: 1.25; }
.job-modal__head .career-facts { margin-top: 16px; }
.job-modal__body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 28px 20px; overscroll-behavior: contain; }
.job-modal__body section { margin-top: 18px; }
.job-modal__body h3 { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: 1rem; }
.job-modal__body h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--yellow); }
.job-modal__body p { margin-top: 6px; color: #3d3535; }
.job-modal__benefits { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.job-modal__benefits li { padding: 6px 12px; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow-ink); font-size: .875rem; font-weight: 500; }
.job-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--bg); }
.job-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; padding: 0 0 2px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.job-modal__close:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 720px) {
  .job-modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .job-modal[open] { animation-name: modal-sobe; }
  @keyframes modal-sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .job-modal__head { padding: 22px 60px 0 20px; }
  .job-modal__head h2 { font-size: 1.3rem; }
  .job-modal__body { padding: 4px 20px 18px; }
  .job-modal__foot { padding: 14px 20px; }
  .job-modal__foot .btn { flex: 1; white-space: nowrap; padding-inline: 12px; }
  .job-modal__foot [data-fechar-modal] { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .job-modal[open], .job-modal::backdrop { animation: none; } }

/* ==========================================================
   RODAPÉ
   ========================================================== */
.site-footer { background: #1a1415; color: rgba(255,255,255,.78); border-top: 5px solid var(--yellow); font-size: .9375rem; }
.site-footer__inner { max-width: 1152px; margin: 0 auto; padding: 48px 24px 0; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 40px; padding-bottom: 36px; }
.site-footer__logo { display: block; height: 52px; width: auto; }
.site-footer__brand p { margin-top: 14px; max-width: 30ch; color: rgba(255,255,255,.7); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .15s; }
.site-footer__nav a:hover { color: var(--yellow); }
.site-footer__label { margin-bottom: 12px; color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__social ul { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-weight: 500; transition: background-color .15s, border-color .15s, color .15s;
}
.site-footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.site-footer a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: .8125rem;
}
.site-footer__bottom strong { color: #fff; font-weight: 600; }
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__inner { padding: 40px 16px 0; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; text-align: center; align-items: center; }
}
@media print { .site-footer { display: none; } }

/* ==========================================================
   DOCUMENTOS — página do contratado (/documentos/...)
   ========================================================== */
.hero--docs h1 { margin-top: 36px; }
.docs-page { display: grid; gap: 18px; }
.docs-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.docs-card > h2 { margin-bottom: 14px; font-size: 1.2rem; }
.docs-help { color: var(--muted); font-size: .9rem; }
.docs-alert { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow); }
.docs-alert p { margin-top: 8px; color: var(--muted); }
.docs-intro { display: grid; gap: 18px; }
.docs-deadline { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--yellow-soft); color: var(--yellow-ink); }
.docs-deadline div { display: grid; }
.docs-deadline span { color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.docs-progress__bar, .mini-progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.docs-progress__bar span, .mini-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), #e3364f); transition: width .4s ease; }
.docs-progress p { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.docs-tips { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; display: grid; gap: 4px; }
.docs-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.doc-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s, background-color .2s; }
.doc-item--ok { border-color: #bfe3cc; background: #f6fcf8; }
.doc-item--sending { border-color: var(--yellow); }
.doc-item__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.doc-item__title { flex: 1 1 200px; font-weight: 500; }
.doc-item__btn { cursor: pointer; }
.doc-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #efecec; color: #5d5555; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.doc-chip--ok { background: #d6f1e0; color: #166a37; }
.doc-chip--pend { background: var(--red-soft); color: var(--red-dark); }
.doc-chip--info { background: var(--yellow-soft); color: var(--yellow-ink); }
.doc-progress { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.doc-progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .2s; }
.doc-files { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.doc-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg); font-size: .875rem; }
.doc-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-file__size { color: var(--muted); white-space: nowrap; }
.doc-file__del { color: var(--danger); }
.docs-group-title { margin: 18px 0 10px; font-size: .95rem; }
.docs-dep { margin-bottom: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.docs-dep__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.docs-add { display: flex; gap: 10px; }
.docs-add .input { flex: 1; min-height: 42px; }
.docs-finish { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 4px solid var(--yellow); }
.docs-footer { max-width: 920px; margin: 0 auto; padding: 8px 24px 40px; color: var(--muted); font-size: .8125rem; text-align: center; display: grid; gap: 4px; }
@media (max-width: 640px) {
  .docs-card { padding: 18px 16px; }
  .docs-finish { flex-direction: column; align-items: stretch; }
  .docs-add { flex-direction: column; }
  .doc-item__title { flex-basis: 100%; }
  .doc-item__btn { margin-left: auto; }
  .docs-footer { padding: 8px 16px 32px; }
}

/* ==========================================================
   DOCUMENTOS — painel do RH (/rh-documentos e painel de candidatos)
   ========================================================== */
.dlg--wide .dlg__card { width: min(620px, calc(100vw - 32px)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { appearance: none; font: inherit; font-size: .8125rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.chip:hover { border-color: var(--red); color: var(--red); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font-size: .85rem; }
.btn--whatsapp { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn--whatsapp:hover:not(:disabled) { background: #188247; border-color: #188247; }
.detail__block--docs { background: #f6fcf8; }
.detail__hint { color: var(--muted); font-size: .875rem; margin-bottom: 12px; }
.detail__docs-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.docs-workspace { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.docs-people { padding: 16px; }
.docs-people__filters { display: grid; gap: 10px; margin-bottom: 10px; }
.docs-people__filters .search { margin: 0; }
.people-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-height: calc(100vh - 290px); overflow: auto; }
.person-row {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; text-align: left;
  font: inherit; color: inherit; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s;
}
.person-row:hover { border-color: var(--line-strong); background: var(--bg); }
.person-row.is-selected { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.person-row__main { display: grid; gap: 2px; min-width: 0; }
.person-row__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row__meta { color: var(--muted); font-size: .8rem; }
.person-row__side { display: grid; justify-items: end; gap: 6px; flex: none; }
.mini-progress { width: 90px; height: 6px; }
.people-empty { padding: 28px 12px; color: var(--muted); text-align: center; }

.docs-detail { position: sticky; top: 16px; max-height: none; }
.docs-linkbox { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.docs-linkbox.is-open { background: var(--yellow-soft); border-color: #f3dc8d; }
.docs-linkbox__text { display: grid; gap: 6px; font-size: .9rem; }
.prazo-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.prazo-form .input { width: auto; min-height: 36px; padding: 6px 10px; }
.docs-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.docs-tab { appearance: none; font: inherit; font-weight: 500; padding: 12px 12px 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.docs-tab[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.docs-tab__n { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--bg); font-size: .75rem; text-align: center; }
.docs-tabpanel { padding: 18px 20px 22px; }
.docs-tab-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.docs-empty { padding: 20px 4px; color: var(--muted); }
.doc-file--rh { flex-wrap: wrap; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); }
.doc-file__info { flex: 1 1 260px; display: grid; gap: 3px; min-width: 0; }
.doc-file__tipo { font-weight: 600; font-size: .85rem; }
.doc-file__meta { color: var(--muted); font-size: .78rem; }
.doc-file__info .doc-chip { justify-self: start; }
.doc-file__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-file__actions .btn { padding: 6px 10px; font-size: .8125rem; }
.doc-version { padding: 0 6px; border-radius: 4px; background: var(--yellow-soft); color: var(--yellow-ink); font-weight: 600; }
.doc-versions { flex-basis: 100%; font-size: .8125rem; }
.doc-versions summary { color: var(--red); cursor: pointer; }
.doc-versions ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.doc-versions li { display: flex; flex-wrap: wrap; gap: 8px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .875rem; color: var(--muted); }

.viewer { width: min(1100px, calc(100vw - 24px)); height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 12px; overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(31, 10, 14, .6); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.viewer__bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__actions { display: flex; gap: 8px; flex: none; }
.viewer__body { flex: 1; min-height: 0; display: grid; place-items: center; background: #2b2626; overflow: auto; }
.viewer__body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer__body img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 1180px) {
  .docs-workspace { grid-template-columns: 1fr; }
  .people-list { max-height: 360px; }
  .docs-detail { position: static; }
}
@media (max-width: 640px) {
  .docs-linkbox { flex-direction: column; }
  .docs-tabpanel { padding: 16px 14px; }
  .viewer__bar { flex-direction: column; align-items: stretch; }
  .viewer__actions { flex-wrap: wrap; }
}

#docs-app { display: grid; gap: 18px; }
#sd-etapa-prazo, #sd-etapa-link { display: grid; gap: 14px; }
#sd-etapa-prazo[hidden], #sd-etapa-link[hidden] { display: none; }
.form-error:empty { display: none; }
