/* Ficha V4 — topo compacto, linha do tempo, faixa de números e "Em 30 segundos".
   Vale para a ficha do concurso e para a página do cargo; vem depois de concurso-v38.css. */

/* Topo: identificação à esquerda, cartão de ação à direita */
.cx4-head{display:grid;grid-template-columns:minmax(0,1fr) 340px;background:#fff;border:1px solid var(--cx-line);border-radius:18px;overflow:hidden}
.cx4-id{min-width:0;display:flex;flex-direction:column;gap:20px;padding:28px 32px 26px}
.cx4-idrow{display:flex;align-items:center;gap:22px;min-width:0}
.cx4-title{display:flex;flex-direction:column;gap:6px;min-width:0}
.cx4-head .cx-logo--hero{width:92px;height:92px;padding:10px;border-radius:16px;border:1px solid var(--cx-line);box-shadow:none}
.cx4-head .cx-logo--brasao{width:84px;height:98px}
.cx4-head .cx-logo--hero .cx-mono{min-width:64px;height:64px;font-size:23px}
.cx4-head .cx-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cx-muted)}
.cx4-head .cx-chip{background:var(--cx-tint);color:var(--cx-navy-deep);letter-spacing:.04em}
.cx4-head .cx-flag img{box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.cx4-head h1{font-size:clamp(24px,2.5vw,33px);line-height:1.14;letter-spacing:-.025em;font-weight:800;color:var(--cx-ink);overflow-wrap:anywhere;text-wrap:balance}
.cx4-role{font-size:19px;line-height:1.35;font-weight:700;color:var(--cx-navy-deep)}
.cx4-role span{display:inline-block;margin-right:4px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cx-muted)}
.cx4-org{font-size:15px;line-height:1.4;color:#3a4f68}
.cx4-org a{font-weight:600}

/* Linha do tempo horizontal */
.cx4-time{border-top:1px solid #e3e9f1;padding-top:20px}
.cx .cx4-time-t{margin:0 0 30px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cx-muted)}
.cx4-steps{display:grid;grid-template-columns:repeat(var(--n,5),minmax(0,1fr));margin:0;padding:0;list-style:none}
.cx4-steps li{position:relative;min-width:0;padding:26px 8px 0 0;font-size:13px;line-height:1.35}
.cx4-steps li::before{content:"";position:absolute;top:8px;left:0;right:0;height:4px;background:#d8e1ec}
.cx4-steps li:last-child::before{right:auto;width:16px}
.cx4-steps li.done::before{background:var(--cx-blue)}
.cx4-steps li.cx4-lastdone::before{background:linear-gradient(90deg,var(--cx-blue) var(--p,50%),#d8e1ec var(--p,50%))}
.cx4-dot{position:absolute;top:2px;left:0;z-index:1;width:16px;height:16px;border-radius:50%;box-sizing:border-box;background:#fff;border:3px solid #aab7c7}
.cx4-steps li.done .cx4-dot{background:var(--cx-blue);border-color:var(--cx-blue)}
.cx4-steps li.next .cx4-dot{border-color:var(--cx-blue);box-shadow:0 0 0 4px rgba(60,131,194,.22)}
.cx4-steps strong{display:block;font-size:14px;font-weight:700;color:var(--cx-ink)}
.cx4-steps li>span:last-child{color:var(--cx-muted)}
.cx4-today{position:absolute;top:-24px;left:var(--p,0%);z-index:2;transform:translateX(-50%);padding:2px 8px;border-radius:6px;background:var(--cx-ink);color:#fff;font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap}
.cx4-steps li.cx4-firstnext .cx4-today{transform:none}

/* Cartão de ação */
.cx4-act{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:26px;background:var(--cx-navy-deep);color:#fff}
.cx4-act .cx-pill{align-self:flex-start}
.cx4-count{font-size:28px;line-height:1.12;font-weight:800;letter-spacing:-.02em;color:#fff}
.cx4-count small{display:block;margin-top:6px;font-size:14px;font-weight:500;letter-spacing:0;color:#c9d6e6}
.cx4-actions{display:flex;flex-direction:column;gap:10px}
.cx4-actions .cx-btn{width:100%;border-radius:12px}
.cx4-actions .cx-btn:focus-visible{outline-color:#fff}
.cx4-mini{font-size:13px;color:#c9d6e6}

/* Faixa de números */
.cx .cx4-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));margin:16px 0 0;background:#fff;border:1px solid var(--cx-line);border-radius:16px;overflow:hidden}
.cx4-fact{min-width:0;padding:16px 22px;border-left:1px solid #e3e9f1}
.cx4-fact:first-child{border-left:0}
.cx4-fact dt{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--cx-muted)}
.cx .cx4-fact dd{margin:4px 0 0;display:flex;flex-direction:column}
.cx4-fact strong{font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.02em;color:var(--cx-ink);overflow-wrap:anywhere;text-wrap:balance}
.cx4-fact--big strong{font-size:30px}
.cx4-fact small{font-size:13px;line-height:1.35;color:var(--cx-muted)}

/* Em 30 segundos */
.cx4-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cx4-q{padding:14px 16px;border-radius:12px;background:var(--cx-soft)}
.cx4-q:last-child:nth-child(odd){grid-column:1 / -1}
.cx .cx4-q h3{margin:0 0 4px;font-size:13px;font-weight:700;color:var(--cx-muted)}
.cx .cx4-q p{margin:0;overflow-wrap:anywhere}

/* Menu de seções: destaque da seção atual */
.cx .cx-jump a.on{color:var(--cx-navy-deep);border-bottom-color:var(--cx-blue)}

@media (max-width:1099px){
  .cx4-head{grid-template-columns:minmax(0,1fr)}
  .cx4-act{padding:22px 26px}
  .cx4-actions{flex-direction:row;flex-wrap:wrap}
  .cx4-actions .cx-btn{flex:1 1 190px;width:auto}
  .cx .cx4-facts{display:flex;flex-wrap:wrap;gap:1px;background:var(--cx-line)}
  .cx4-fact{flex:1 1 calc(33.333% - 1px);border-left:0;background:#fff}
  /* ordem no celular: resumo, inscrições, cargos, apostilas, sobre, documentos e o resto (cronograma, links, localidades, cursos) */
  .cx-ficha .cx-layout .cx-card{order:6}
  .cx-ficha .cx-layout #resumo{order:0}
  .cx-ficha .cx-layout #inscricoes{order:1}
  .cx-ficha .cx-layout #cargos{order:2}
  .cx-ficha .cx-layout #apostilas{order:3}
  .cx-ficha .cx-layout #sobre{order:4}
  .cx-ficha .cx-layout #documentos{order:5}
}
@media (max-width:760px){
  .cx4-head{display:flex;flex-direction:column;border-radius:16px}
  .cx4-id{display:contents}
  .cx4-idrow{order:1;padding:18px 18px 4px}
  .cx4-act{order:2;margin:14px 18px 18px;border-radius:14px;padding:18px}
  .cx4-time{order:3;margin:0 18px 20px;padding-top:16px}
  .cx4-head .cx-logo--hero{width:60px;height:60px;padding:7px;border-radius:12px}
  .cx4-head .cx-logo--brasao{width:56px;height:64px}
  .cx4-head .cx-logo--hero .cx-mono{min-width:44px;height:44px;font-size:17px}
  .cx4-idrow{gap:14px;align-items:flex-start}
  .cx4-head h1{font-size:22px}
  .cx4-role{font-size:17px}
  .cx4-count{font-size:24px}
  .cx4-actions{flex-direction:column}
  .cx4-actions .cx-btn{flex:0 0 auto}
  .cx4-sep{display:none}
  .cx .cx4-time-t{margin-bottom:14px}
  .cx4-steps{display:block}
  .cx4-steps li{padding:0 0 16px 30px;font-size:14px}
  .cx4-steps li:last-child{padding-bottom:0}
  .cx4-steps li::before{top:16px;bottom:-4px;left:7px;right:auto;width:3px;height:auto;background:#d8e1ec}
  .cx4-steps li:last-child::before{display:none}
  .cx4-steps li.done::before{background:var(--cx-blue)}
  .cx4-steps li.cx4-lastdone::before{background:linear-gradient(180deg,var(--cx-blue) var(--p,50%),#d8e1ec var(--p,50%))}
  .cx4-dot{top:2px}
  .cx4-today{position:static;display:inline-block;transform:none;margin:0 0 4px;background:var(--cx-ink)}
  .cx4-steps li.cx4-firstnext .cx4-today{transform:none}
  .cx4-fact{flex:1 1 calc(50% - 1px);padding:13px 15px}
  .cx4-fact strong{font-size:18px}
  .cx4-fact--big strong{font-size:26px}
  .cx4-quick{grid-template-columns:1fr}
}
@media print{.cx4-act{background:#fff;color:#000;border-top:1px solid #999}.cx4-count,.cx4-count small,.cx4-mini{color:#000}.cx4-actions{display:none}}
