/* Portal de vagas: lista (/vagas) e página da vaga com candidatura (/vagas/<slug>) */

.nav a[aria-current="page"], .gaveta a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red-2); text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* ---------- capa ---------- */
.vg-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 112px 0 104px; }
.vg-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 15%, transparent 70%); opacity: .5; }
.vg-hero-in { position: relative; max-width: var(--wrap); }
.vg-hero h1 { font-size: clamp(2.375rem, 5vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 15em; }
.vg-hero h1 em { font-style: normal; color: var(--red-2); }
.vg-hero .eyebrow, .vg-topo .eyebrow, .vg-talentos .eyebrow { color: var(--red-2); }
.vg-hero-conta { margin-top: 28px; font: 500 .875rem var(--mono); color: var(--muted-dark); min-height: 1.4em; }

/* ---------- seções ---------- */
.vg-sec { padding: 96px 0; }
.vg-sec-paper { background: var(--paper); }
.vg-cabeca { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.vg-cabeca h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -0.035em; }
.vg-conta { font: 500 .875rem var(--mono); color: var(--muted); }

/* filtros */
.vg-filtros { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.vg-filtros label { display: block; position: relative; flex: 0 0 220px; }
.vg-filtros .vg-busca { flex: 1 1 320px; }
.vg-filtros input, .vg-filtros select { width: 100%; height: 52px; font: 400 1rem var(--sans); color: var(--text); background: #fff; border: 1px solid #d6d4cd; border-radius: 12px; padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.vg-busca input { padding-left: 46px; }
.vg-busca svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.vg-filtros select, .vg-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 42px; }
.vg-filtros input:focus, .vg-filtros select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(209, 10, 30, .12); }

/* lista */
.vg-lista { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.vg-lista > li { border-bottom: 1px solid var(--line); }
.vg-item { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 28px 8px; text-decoration: none; color: inherit; transition: background .2s; border-radius: 4px; }
.vg-item:hover { background: var(--paper); }
.vg-item:hover h3 { color: var(--red); }
.vg-item-area { font: 500 .8125rem var(--mono); color: var(--red); margin-bottom: 8px; }
.vg-item h3 { font-size: 1.375rem; letter-spacing: -0.025em; transition: color .2s; }
.vg-item-resumo { color: var(--muted); margin-top: 8px; max-width: 46em; }
.vg-item-tags { margin-top: 12px; font-size: .9375rem; color: var(--text); }
.vg-item-tags span { color: #b5b3ad; }
.vg-item-lado { display: grid; justify-items: end; gap: 6px; text-align: right; }
.vg-item-quando, .vg-item-prazo { font: 500 .8125rem var(--mono); color: var(--muted); white-space: nowrap; }
.vg-item-ver { margin-top: 10px; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.vg-item-ver span { display: inline-block; transition: transform .2s; }
.vg-item:hover .vg-item-ver span { transform: translateX(4px); }
.vg-esqueleto { height: 132px; background: linear-gradient(90deg, var(--paper) 0%, #fbfaf7 50%, var(--paper) 100%) 0 0 / 200% 100%; animation: brilho 1.4s linear infinite; margin: 12px 0; border-radius: 12px; border: 0 !important; }
@keyframes brilho { to { background-position: -200% 0; } }
.vg-vazio { margin-top: 24px; padding: 48px 32px; border: 1px dashed #d6d4cd; border-radius: 16px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.vg-vazio b { font-size: 1.125rem; }
.vg-vazio p { color: var(--muted); }
.vg-vazio .btn { margin-top: 10px; }

/* processo */
.vg-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: passo; border-top: 1px solid var(--ink); }
.vg-passos li { counter-increment: passo; padding: 28px 28px 0 0; }
.vg-passos li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.vg-passos li::before { content: '0' counter(passo); display: block; font: 500 .8125rem var(--mono); color: var(--red); margin-bottom: 14px; }
.vg-passos b { display: block; font-size: 1.125rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.vg-passos p { color: var(--muted); font-size: .9375rem; }

/* banco de talentos */
.vg-talentos { background: var(--ink); color: #fff; padding: 88px 0; }
.vg-talentos-in { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.vg-talentos h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -0.035em; }
.vg-talentos .lead { margin-top: 16px; }

/* ---------- página da vaga ---------- */
.vg-topo { background: var(--ink); color: #fff; padding: 56px 0 72px; }
.vg-voltar { margin-bottom: 40px; }
.vg-voltar a { color: var(--muted-dark); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.vg-voltar a:hover { color: #fff; }
.vg-topo h1 { font-size: clamp(2.125rem, 4.6vw, 3.75rem); letter-spacing: -0.04em; line-height: 1.04; max-width: 18em; }
.vg-topo .lead { margin-top: 18px; }
.vg-meta { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line-dark); }
.vg-meta div { padding: 16px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line-dark); }
.vg-meta div:last-child { border-right: 0; margin-right: 0; }
.vg-meta dt { font: 500 .75rem var(--mono); color: var(--muted-dark); }
.vg-meta dd { margin: 4px 0 0; font-weight: 500; }
.vg-topo .hero-cta { margin-top: 36px; }
.vg-copiado { margin-top: 12px; font-size: .875rem; color: #4ade80; min-height: 1.3em; }
.vg-esq-topo { height: 180px; border-radius: 16px; background: linear-gradient(90deg, #16161a 0%, #1f1f24 50%, #16161a 100%) 0 0 / 200% 100%; animation: brilho 1.4s linear infinite; }
.vg-fim h1 { max-width: 16em; }

.vg-corpo { display: grid; grid-template-columns: 1fr 340px; gap: 64px; padding-top: 72px; padding-bottom: 88px; align-items: start; }
.vg-texto { min-width: 0; }
.vg-texto section + section { margin-top: 48px; }
.vg-texto h2 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 16px; }
.vg-texto p { color: #2c2c31; font-size: 1.0625rem; line-height: 1.7; }
.vg-texto p + p { margin-top: 14px; }
.vg-texto ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vg-texto li { position: relative; padding-left: 26px; color: #2c2c31; font-size: 1.0625rem; line-height: 1.6; }
.vg-texto li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 2px; background: var(--red); }
.vg-lado { position: sticky; top: 92px; }
.vg-lado-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 18px; background: #fff; }
.vg-lado-tit { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.25; }
.vg-lado-meta { margin: 0; display: grid; }
.vg-lado-meta div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.vg-lado-meta dt { color: var(--muted); }
.vg-lado-meta dd { margin: 0; font-weight: 500; }
.vg-lado-card .btn { width: 100%; }
.vg-lado-nota { font-size: .8125rem; color: var(--muted); text-align: center; }

/* ---------- candidatura ---------- */
.vg-cand { background: var(--paper); padding: 88px 0 104px; scroll-margin-top: 68px; }
.vg-cand-in { max-width: 860px; }
.vg-cand-head { margin-bottom: 32px; }
.vg-cand-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.035em; }
.vg-cand-head p:last-child { color: var(--muted); margin-top: 10px; }
.vg-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; display: grid; gap: 32px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); }
.vg-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vg-form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 28px; }
.vg-form legend { float: left; width: 100%; }
.vg-form legend + * { clear: both; }
.vg-form legend { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; margin-bottom: 20px; padding: 0; }
.vg-form legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .8125rem var(--mono); }
.vg-form legend em, .vg-campo em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .875rem; }
.vg-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.vg-campo-l { grid-column: 1 / -1; }
.vg-campo { display: grid; gap: 8px; font-size: .9375rem; font-weight: 500; align-content: start; }
.vg-campo input, .vg-campo select, .vg-campo textarea { width: 100%; font: 400 1rem var(--sans); color: var(--text); background: #fff; border: 1px solid #d6d4cd; border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.vg-campo textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.vg-campo input:focus, .vg-campo select:focus, .vg-campo textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(209, 10, 30, .12); }
.vg-form [aria-invalid="true"] { border-color: #c2081b !important; background-color: #fff8f8; }
.vg-form small[data-erro], .vg-erro-solto { display: block; color: #b0081a; font-size: .8125rem; font-weight: 500; min-height: 0; }
.vg-form small[data-erro]:empty { display: none; }
.vg-contador { justify-self: end; font: 400 .75rem var(--mono); color: var(--muted); }

.vg-solta { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 36px 20px; border: 2px dashed #cfcdc6; border-radius: 16px; background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; }
.vg-solta:hover, .vg-solta.sobre, .vg-solta:focus-visible { border-color: var(--red); background: #fdf3f4; }
.vg-solta svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.vg-solta b { font-weight: 500; }
.vg-solta u { color: var(--red); text-underline-offset: 3px; }
.vg-solta span { font-size: .8125rem; color: var(--muted); }
.vg-solta[aria-invalid="true"] { border-color: #c2081b; }
.vg-escolhido { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid #b9dfc7; background: #f1fbf4; border-radius: 14px; }
.vg-escolhido svg { width: 30px; height: 30px; fill: none; stroke: #0d7a3e; stroke-width: 1.8; stroke-linejoin: round; }
.vg-escolhido b { display: block; font-weight: 600; word-break: break-all; }
.vg-escolhido span { font-size: .8125rem; color: var(--muted); }
.vg-erro-solto:not(:empty) { margin-top: 8px; }
.link-acao { background: none; border: 0; padding: 0; font: 500 .875rem var(--sans); color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-acao:hover { color: var(--red); }

.vg-aceites { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.vg-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.vg-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.vg-check a { color: var(--text); }
.vg-enviar { display: grid; gap: 14px; justify-items: start; }
.vg-enviar .btn { min-width: 240px; height: 56px; font-size: 1rem; }
.vg-enviar .btn:disabled { opacity: .75; cursor: wait; }
.vg-progresso { width: 100%; max-width: 420px; height: 6px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.vg-progresso i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 4px; transition: width .2s; }
.vg-msg { font-size: .9375rem; min-height: 1.3em; }
.vg-msg.erro { color: #b0081a; font-weight: 500; }
.vg-rascunho { font-size: .8125rem; color: var(--muted); }
.vg-rascunho:empty { display: none; }
.vg-resumo-erros { border: 1px solid #f0c2c7; background: #fff5f6; border-radius: 14px; padding: 18px 20px; outline: none; }
.vg-resumo-erros:focus-visible { box-shadow: 0 0 0 3px rgba(209, 10, 30, .2); }
.vg-resumo-erros b { color: #b0081a; }
.vg-resumo-erros ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.vg-resumo-erros a { color: #b0081a; font-size: .9375rem; }

.vg-ok { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 48px 40px; text-align: center; display: grid; justify-items: center; gap: 14px; outline: none; animation: surge .5s ease both; }
@keyframes surge { from { opacity: 0; transform: translateY(12px); } }
.vg-ok svg { width: 64px; height: 64px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vg-ok svg circle { stroke: #0d7a3e; stroke-width: 2.5; }
.vg-ok svg path { stroke: #0d7a3e; stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: risca .5s .25s ease forwards; }
@keyframes risca { to { stroke-dashoffset: 0; } }
.vg-ok h2 { font-size: 2rem; letter-spacing: -0.035em; }
.vg-ok > p { color: var(--muted); font-size: 1.0625rem; max-width: 32em; }
.vg-protocolo { font-size: .9375rem; color: var(--muted); }
.vg-protocolo b { color: var(--text); letter-spacing: .06em; }
.vg-proximos { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: left; width: 100%; border-top: 1px solid var(--line); }
.vg-proximos li { padding: 18px 18px 0 0; }
.vg-proximos li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.vg-proximos b { display: block; font-size: .9375rem; margin-bottom: 4px; }
.vg-proximos span { font-size: .875rem; color: var(--muted); }
.vg-ok .hero-cta { margin-top: 12px; justify-content: center; }
.vg-ok .btn-line { color: var(--ink); }
.vg-ok .btn-line:hover, .vg-vazio .btn-line:hover { background: rgba(0, 0, 0, .05); }

/* barra fixa no celular */
.vg-barra-cel { display: none; }

/* alto contraste */
html[data-contraste="alto"] .vg-hero, html[data-contraste="alto"] .vg-topo, html[data-contraste="alto"] .vg-talentos, html[data-contraste="alto"] .vg-sec,
html[data-contraste="alto"] .vg-cand, html[data-contraste="alto"] .vg-form, html[data-contraste="alto"] .vg-lado-card, html[data-contraste="alto"] .vg-ok,
html[data-contraste="alto"] .vg-item:hover, html[data-contraste="alto"] .vg-solta { background: #000 !important; color: #fff !important; }
html[data-contraste="alto"] .vg-texto p, html[data-contraste="alto"] .vg-texto li, html[data-contraste="alto"] .vg-item-resumo, html[data-contraste="alto"] .vg-item-tags { color: #fff !important; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .vg-corpo { grid-template-columns: 1fr; gap: 40px; }
  .vg-lado { display: none; }
}
@media (max-width: 900px) {
  .vg-passos { grid-template-columns: 1fr 1fr; }
  .vg-passos li:nth-child(3) { padding-left: 0; border-left: 0; }
  .vg-passos li:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
  .vg-filtros label { flex: 1 1 200px; }
  .vg-filtros .vg-busca { flex-basis: 100%; }
  .vg-talentos-in { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 640px) {
  .vg-hero { padding: 64px 0 64px; }
  .vg-sec { padding: 64px 0; }
  .vg-item { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .vg-item:hover { background: none; }
  .vg-item-lado { justify-items: start; text-align: left; grid-auto-flow: row; }
  .vg-item-ver { margin-top: 4px; }
  .vg-item h3 { font-size: 1.25rem; }
  .vg-passos { grid-template-columns: 1fr; }
  .vg-passos li, .vg-passos li + li { padding: 22px 0 0; border-left: 0; }
  .vg-passos li + li { margin-top: 22px; border-top: 1px solid var(--line); }
  .vg-topo { padding: 40px 0 56px; }
  .vg-voltar { margin-bottom: 28px; }
  .vg-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .vg-meta div { border-right: 0; margin-right: 0; padding-right: 12px; }
  .vg-corpo { padding-top: 48px; padding-bottom: 56px; }
  .vg-cand { padding: 56px 0 120px; }
  .vg-form { padding: 22px 18px; border-radius: 18px; gap: 26px; }
  .vg-g2 { grid-template-columns: 1fr; }
  .vg-escolhido { grid-template-columns: auto 1fr; }
  .vg-escolhido .link-acao { grid-row: 2; }
  .vg-escolhido label.link-acao { grid-column: 1 / 2; }
  .vg-enviar .btn { width: 100%; }
  .vg-ok { padding: 36px 20px; }
  .vg-proximos { grid-template-columns: 1fr; }
  .vg-proximos li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 14px; }
  .vg-barra-cel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 14px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgba(11, 11, 12, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; border-top: 1px solid var(--line-dark); }
  .vg-barra-cel[hidden] { display: none !important; }
  .vg-barra-cel div { flex: 1; min-width: 0; }
  .vg-barra-cel b { display: block; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vg-barra-cel span { display: block; font-size: .75rem; color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vg-barra-cel .btn { width: auto; flex: none; }
}
