:root {
  --black: #000;
  --white: #fff;
  --tile: #131313;
  --acid: #d3de5d;
  --amber: #f4c542;
  --coral: #ff8a73;
  --grey: #6e6e6e;
  --line: #000;
  --soft-line: rgba(0, 0, 0, .14);
  --gutter: 30px;
  --rail-h: 56px;
  --font: "Inter", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--white); }
body { margin: 0; padding-bottom: var(--rail-h); color: var(--black); font: 400 14px/1.4 var(--font); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.micro { font-size: 12px; line-height: 1.2; color: var(--grey); }
.muted { color: var(--grey); }
.eyebrow { margin: 0; font-weight: 700; font-size: 15px; }
.eyebrow sup { font-weight: 400; font-size: 11px; color: var(--grey); margin-left: 3px; }

/* ---------- controles ---------- */
.capsule {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 90px; border: 2px solid var(--black); background: var(--white); color: var(--black);
  font-size: 14px; white-space: nowrap; text-decoration: none; transition: background-color .2s, color .2s;
}
.capsule:hover { background: var(--black); color: var(--white); }
.capsule.strong { background: var(--black); color: var(--white); }
.capsule.strong:hover { background: var(--white); color: var(--black); }
.link { border: 0; background: none; padding: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; transition: opacity .4s cubic-bezier(.19,1,.22,1); }
.link:hover { opacity: .5; }
.tag { display: inline-block; max-width: 100%; height: 24px; line-height: 22px; padding: 0 10px; border: 1px solid var(--black); border-radius: 90px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.soft { border-color: var(--soft-line); color: #333; }
.tag.new { background: var(--acid); border-color: var(--acid); color: var(--black); font-weight: 700; }

/* ---------- barra fixa no rodapé ---------- */
.top {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; min-height: var(--rail-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px var(--gutter);
  background: var(--black); color: var(--white); border-top: 1px solid #333;
}
.identity { font-weight: 800; font-size: 15px; letter-spacing: -.02em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.top .micro { color: #a8a8a8; }
.top .capsule { height: 38px; border-color: var(--white); background: var(--black); color: var(--white); font-size: 13px; }
.top .capsule:hover, .top .capsule[aria-expanded="true"] { background: var(--white); color: var(--black); }
.top .capsule.strong { background: var(--white); color: var(--black); }
.top .capsule.strong:hover { background: var(--acid); border-color: var(--acid); }
.sources { display: inline-flex; gap: 4px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 90px; cursor: pointer; font-size: 13px; color: #a8a8a8; border: 1px solid #3a3a3a; }
.toggle:has(input:checked) { color: var(--white); border-color: #8a8a8a; }
.toggle input { margin: 0; accent-color: var(--acid); }

/* ---------- gaveta do perfil ---------- */
.profile {
  position: fixed; left: 0; right: 0; bottom: var(--rail-h); z-index: 29; max-height: min(70vh, 560px); overflow: auto;
  padding: 26px var(--gutter) 30px; background: var(--white); border-top: 2px solid var(--black);
  box-shadow: 0 -24px 48px rgba(0,0,0,.12);
}
.profile-grid { display: grid; grid-template-columns: .8fr 1.3fr 1fr 1fr; gap: 36px; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.upload { align-self: flex-start; cursor: pointer; }
.note { margin: 0; font-size: 12.5px; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 12px; border: 1px solid var(--black); border-radius: 90px; font-size: 13px; }
.chip button { border: 0; background: none; padding: 0 7px; font-size: 15px; line-height: 1; }
.chip button:hover { opacity: .5; }
.add { display: flex; gap: 6px; }
.add .capsule { width: 40px; padding: 0; font-size: 18px; }
input:not([type="range"]):not([type="checkbox"]), select {
  min-width: 0; height: 40px; padding: 0 16px; border-radius: 90px; border: 1px solid var(--black); background: var(--white); font-size: 14px;
}
select { appearance: none; padding-right: 34px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 15px center; }
.add input { flex: 1; }

/* ---------- abertura ---------- */
.hero { position: relative; min-height: 230px; background: var(--black); color: var(--white); overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 40px var(--gutter) 28px; }
.pixel-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 4.6vw, 64px); line-height: .82; letter-spacing: -.03em; text-transform: uppercase; }
.hero-note { margin: 14px 0 0; max-width: 420px; font-size: 14px; color: #cfcfcf; }
.emblem { position: relative; z-index: 1; width: 92px; height: 92px; padding: 20px; box-sizing: content-box; border-radius: 30px; background: var(--black); fill: var(--white); flex: none; }

/* ---------- layout: filtros + vagas ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding: 30px var(--gutter) 60px; align-items: start; }
.rail { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.rail-head .eyebrow { font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-transform: uppercase; }
.field-label, .rail .field > .micro { font-weight: 700; font-size: 13px; color: var(--black); }
.rail .field { display: flex; flex-direction: column; gap: 6px; }
.rail .field select, .rail .field input:not([type="range"]) { width: 100%; }
.rail .field b { font-weight: 400; }
.rail input[type="range"] { width: 100%; accent-color: var(--black); margin: 6px 0 0; }
.rail-foot { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--soft-line); line-height: 1.6; }

.status { margin-bottom: 24px; padding: 16px 20px; border-radius: 24px; border: 1px solid var(--black); white-space: pre-wrap; font-size: 14px; }
.status.error { background: var(--coral); }

/* grupos */
.group + .group { margin-top: 56px; }
.group-head { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; margin-bottom: 22px; border-top: 1px solid var(--line); }
.group-head .eyebrow { font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; }
.group-head .eyebrow sup { font-size: 14px; letter-spacing: 0; color: var(--grey); }
.group-head .hint { margin-left: auto; }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
@media (min-width: 1750px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- card de vaga ---------- */
.job { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 24px; background: var(--white); border: 1px solid var(--black); border-radius: 28px; }
.job-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.logo { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--soft-line); background: var(--white); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 16px; letter-spacing: -.02em; text-transform: uppercase; }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo.mono { border: 0; background: var(--tile); color: var(--white); }
.who { min-width: 0; }
.company { margin: 0; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.score { align-self: start; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 9px 12px 8px; border-radius: 20px; color: var(--black); }
.score b { font-weight: 800; font-size: 24px; line-height: .9; letter-spacing: -.03em; }
.score small { margin-top: 3px; font-size: 11px; }
.score.hi { background: var(--acid); }
.score.md { background: var(--amber); }
.score.lo { background: var(--coral); }
.score.na { border: 1px dashed var(--black); }
.title { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.facts dt { font-weight: 700; font-size: 12px; color: var(--black); }
.facts dd, .fit dd { margin: 4px 0 0; font-size: 14px; }
.facts .approx { color: var(--grey); }
.fit { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.fit div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.fit dt { font-weight: 700; font-size: 12px; color: var(--black); }
.fit dd { margin: 0; }
.have { font-weight: 700; }
.miss { color: var(--grey); font-weight: 300; }
details summary { cursor: pointer; width: max-content; font-weight: 700; font-size: 13px; color: var(--black); }
details summary:hover { opacity: .5; }
.desc { white-space: pre-wrap; max-height: 260px; overflow: auto; margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: #2a2a2a; }
.job-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.links a:not(.capsule) { color: var(--black); font-size: 12.5px; }
.links a:not(.capsule):hover { opacity: .5; }
.actions { display: flex; gap: 18px; }
.empty { padding: 80px 0; text-align: center; font-weight: 800; font-size: 28px; letter-spacing: -.03em; text-transform: uppercase; }

@media (max-width: 1150px) {
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .jobs { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; --rail-h: 112px; }
  .layout { grid-template-columns: 1fr; }
  .rail { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .rail-head, .rail-foot { grid-column: 1 / -1; }
  .top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .top-actions { justify-content: flex-start; }
  .emblem { width: 64px; height: 64px; }
}
@media (max-width: 560px) {
  .profile-grid, .rail { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- ajuda "?" ---------- */
.help {
  position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit;
  font: 700 11px/1 var(--font); vertical-align: 1px; cursor: help; opacity: .7;
}
.help:hover, .help:focus-visible { opacity: 1; }
.help::after {
  content: attr(data-help); position: absolute; z-index: 50; left: -6px; top: calc(100% + 8px); width: 260px;
  padding: 12px 14px; border-radius: 16px; background: var(--black); color: var(--white);
  font: 400 13px/1.45 var(--font); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none;
}
.help:hover::after, .help:focus::after, .help.open::after { opacity: 1; visibility: visible; transform: none; }
.help-left::after { left: auto; right: -6px; }
.help-up::after { top: auto; bottom: calc(100% + 8px); }
.top .help { width: 22px; height: 22px; color: var(--white); }
.top .help::after { background: var(--white); color: var(--black); }

.account { line-height: 1.9; }
.account span { color: var(--black); font-weight: 700; }
.job .tag.aff { background: var(--black); color: var(--white); border-color: var(--black); }
