/* Portal Concursos — ficha do concurso V38 (mesmo visual da página inicial; topo com painel, duas colunas e cargos em cartões).
   Identidade da logo da Agência Sertão: azul-marinho #244264 e azul #3C83C2.
   Carregado apenas na ficha do concurso; todas as classes usam o prefixo cx-. */
.ed-body{background:#f2f5f9}
.ed-body .ed-breadcrumb{color:#50627a;font-size:13px;margin-bottom:14px}
.ed-body .ed-breadcrumb a{color:#2866ae}
.ed-body .ed-breadcrumb a:hover{text-decoration:underline}

.cx{
  --cx-navy:#244264;--cx-navy-deep:#1a3150;--cx-blue:#3c83c2;--cx-link:#2866ae;
  --cx-ink:#15273b;--cx-muted:#50627a;--cx-line:#d8e1ec;--cx-soft:#f2f5f9;--cx-tint:#eaf2fb;
  --cx-radius:14px;
  color:var(--cx-ink);font-size:15px;line-height:1.55;
}
.cx *,.cx *::before,.cx *::after{box-sizing:border-box}
.cx a{color:var(--cx-link);text-decoration:none}
.cx a:hover{text-decoration:underline}
.cx a:focus-visible,.cx summary:focus-visible{outline:3px solid var(--cx-blue);outline-offset:2px;border-radius:4px}
.cx h1,.cx h2,.cx p,.cx ul,.cx ol,.cx dl,.cx dd{margin:0}
.cx ul,.cx ol{padding:0;list-style:none}
.cx-icon{flex:0 0 auto}
.cx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cx-muted{color:var(--cx-muted)}
.cx-text{color:#22364d;max-width:78ch;overflow-wrap:anywhere}
.cx-note{font-size:13px;color:var(--cx-muted)}
.cx-dash{color:#8494a8}

/* Topo */
.cx-hero{background:var(--cx-navy);color:#fff;border-radius:16px;padding:28px 32px;display:flex;gap:28px;align-items:stretch}
.cx-hero-copy{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:14px}
.cx-eyebrow{font-size:13px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:#c4daf2}
.cx-hero h1{font-size:clamp(24px,2.7vw,36px);line-height:1.15;letter-spacing:-.015em;font-weight:750;color:#fff;overflow-wrap:anywhere}
.cx-hero-sub{margin-top:4px;color:#d8e5f3;font-size:17px;line-height:1.4}
.cx-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;color:#d8e5f3;font-size:14px}
.cx-hero-meta strong{color:#fff;font-weight:650}
.cx-hero-deadline{font-weight:650;color:#fff}
.cx-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.cx-hero-cover{flex:0 0 34%;max-width:420px;border-radius:12px;overflow:hidden}
.cx-hero-cover img{display:block;width:100%;height:100%;min-height:180px;object-fit:cover}

/* V34: topo da ficha — logo/brasão/bandeira/letras do órgão, selo do estado e números */
.cx-hero--ficha{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:26px 40px;align-items:center;padding:34px 38px}
.cx-hero--ficha.cx-hero--panel{grid-template-columns:minmax(0,1fr) minmax(360px,460px)}
.cx-hero--ficha .cx-hero-copy{gap:18px}
.cx-hero-id{display:flex;align-items:center;gap:28px;min-width:0}
.cx-hero-head{display:flex;flex-direction:column;gap:7px;min-width:0}
.cx-hero--ficha .cx-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0}
.cx-chip{display:inline-flex;align-items:center;gap:7px;padding:3px 11px 3px 8px;border-radius:999px;background:rgba(255,255,255,.15);color:#fff;font-size:12px;font-weight:800;letter-spacing:.05em;line-height:1.5}
.cx-flag{display:inline-flex;flex:none;width:26px;height:18px}
.cx-flag img{display:block;width:100%;height:100%;object-fit:contain;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.cx-hero--ficha h1{font-size:clamp(24px,2.8vw,36px)}
.cx-logo{display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;background:#fff;border-radius:14px}
.cx-logo img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.cx-logo--hero{width:176px;height:136px;padding:12px;border-radius:18px;box-shadow:0 4px 18px rgba(8,22,40,.3)}
.cx-logo--brasao{width:148px;height:164px}
.cx-logo--flag img{border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.14)}
.cx-mono{display:grid;place-items:center;min-width:58px;height:58px;padding:0 6px;border-radius:999px;background:#e6eef6;color:var(--cx-navy);font-size:21px;font-weight:800;letter-spacing:.01em}
.cx-logo--hero .cx-mono{min-width:92px;height:92px;font-size:32px}

.cx-pill{display:inline-flex;align-items:center;font-size:13px;font-weight:700;padding:4px 12px;border-radius:999px;background:#e3e8ef;color:#33435a}
.cx-pill--abertas{background:#dcf3e3;color:#14532d}
.cx-pill--previstas{background:#ffe9c7;color:#663c00}

.cx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:9px;font-weight:650;font-size:15px;border:1px solid transparent;text-align:center}
.cx .cx-btn:hover{text-decoration:none}
.cx .cx-btn--light{background:#fff;color:var(--cx-navy)}
.cx .cx-btn--light:hover{background:#eaf2fb}
.cx .cx-btn--ghost{border-color:#8fb0d3;color:#fff}
.cx .cx-btn--ghost:hover{background:#ffffff1f}
.cx .cx-btn--primary{background:var(--cx-navy);color:#fff}
.cx .cx-btn--primary:hover{background:var(--cx-navy-deep)}
.cx .cx-btn--outline{border-color:var(--cx-navy);color:var(--cx-navy);background:#fff}
.cx .cx-btn--outline:hover{background:var(--cx-tint)}
.cx-hero .cx-btn:focus-visible{outline-color:#fff}

/* Números-chave */
.cx-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:12px;margin-top:12px}
.cx-stat{background:#fff;border:1px solid var(--cx-line);border-radius:var(--cx-radius);padding:14px 18px;display:grid;grid-template-rows:auto 1fr auto;gap:2px;min-width:0}
.cx-stat strong{display:flex;align-items:center;min-height:44px}
.cx-stat-label{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--cx-muted)}
.cx-stat-big{font-size:30px;line-height:1.2;font-weight:750;color:var(--cx-navy);letter-spacing:-.01em}
.cx-stat-value{font-size:20px;line-height:1.3;font-weight:750;color:var(--cx-navy);overflow-wrap:anywhere;text-wrap:balance}
.cx-stat-hint{font-size:13px;color:var(--cx-muted)}

/* Navegação entre seções */
.cx-jump{position:sticky;top:0;z-index:5;display:flex;gap:4px 26px;margin:16px 0 20px;padding:0 18px;background:#fff;border:1px solid var(--cx-line);border-radius:12px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
.cx .cx-jump a{display:inline-flex;align-items:center;min-height:48px;font-weight:650;font-size:14px;color:#33475f;border-bottom:3px solid transparent}
.cx .cx-jump a:hover{color:var(--cx-navy);border-bottom-color:var(--cx-blue);text-decoration:none}
.cx [id]{scroll-margin-top:68px}

/* Grade */
.cx-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px 24px;align-items:start}
.cx-layout--single{grid-template-columns:minmax(0,1fr)}
.cx-main,.cx-side{display:flex;flex-direction:column;gap:20px;min-width:0}

.cx-card{background:#fff;border:1px solid var(--cx-line);border-radius:var(--cx-radius);padding:22px 26px;display:flex;flex-direction:column;gap:16px;min-width:0}
.cx-card-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px}
.cx-card h2{font-size:20px;line-height:1.25;font-weight:700;color:var(--cx-navy);letter-spacing:-.01em}
.cx-card-note{font-size:13px;color:var(--cx-muted)}
.cx-side .cx-card{padding:20px 22px}
.cx-side .cx-card h2{font-size:18px}

/* Pares rótulo/valor */
.cx-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px 28px}
.cx-fact{min-width:0}
.cx-fact--wide{grid-column:1 / -1}
.cx-fact dt{font-size:13px;color:var(--cx-muted)}
.cx-fact dd{font-weight:600;color:var(--cx-ink);overflow-wrap:anywhere}
.cx-fact--wide dd{font-weight:500;max-width:78ch}
.cx-levels{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--cx-line);padding-top:16px}
.cx-levels-label{font-size:13px;color:var(--cx-muted)}
.cx-chips{display:flex;flex-wrap:wrap;gap:8px}
.cx-chips li{background:var(--cx-tint);color:var(--cx-navy);font-weight:600;font-size:14px;padding:5px 12px;border-radius:9px}

/* Passos da inscrição */
.cx-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.cx-step{background:var(--cx-soft);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:2px;min-width:0}
.cx-step-tag{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--cx-muted)}
.cx-step-name{font-weight:600}
.cx-step-date{font-size:18px;font-weight:750;color:var(--cx-navy)}
.cx-step--now{background:#dcf3e3}
.cx-step--now .cx-step-tag{color:#14532d}
.cx-step--next{background:var(--cx-tint)}
.cx-step--next .cx-step-tag{color:var(--cx-link)}
.cx-step--later .cx-step-tag{color:var(--cx-link)}
.cx-step--done .cx-step-name,.cx-step--done .cx-step-date{color:var(--cx-muted)}

/* Lista de cargos: linha = cargo; abre o resumo de requisitos */
.cx-roles{border:1px solid var(--cx-line);border-radius:10px;overflow:hidden}
.cx-role-row{display:grid;grid-template-columns:minmax(0,1fr) 104px 120px;gap:4px 16px;align-items:center;padding:12px 16px}
.cx-roles--level .cx-role-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 104px 120px}
.cx-roles--pay .cx-role-row{grid-template-columns:minmax(0,1fr) 104px 142px 120px}
.cx-roles--level.cx-roles--pay .cx-role-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 96px 136px 120px}
.cx-roles-head{background:var(--cx-soft);font-size:13px;font-weight:700;color:var(--cx-muted);padding-top:10px;padding-bottom:10px}
.cx-role{border-top:1px solid var(--cx-line)}
.cx-role summary{list-style:none;cursor:pointer}
.cx-role summary::-webkit-details-marker{display:none}
.cx-role summary:hover,.cx-role[open]>summary{background:#f7fafd}
.cx-role-name a,.cx-role-name b{font-weight:650}
.cx-role-name small{display:block;font-size:13px;color:var(--cx-muted)}
.cx-role-level{color:#33475f;overflow-wrap:anywhere}
.cx-role-vagas,.cx-role-pay{text-align:right;font-variant-numeric:tabular-nums}
.cx-role-vagas{white-space:nowrap}
.cx-role-vagas strong{font-size:16px;color:var(--cx-navy)}
.cx-role-toggle{justify-self:end;display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;border:1px solid #c3cfdd;border-radius:8px;background:#fff;color:var(--cx-navy);font-size:13px;font-weight:650;white-space:nowrap}
.cx-role-toggle::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-4px}
.cx-role summary:hover .cx-role-toggle{border-color:var(--cx-blue);background:var(--cx-tint)}
.cx-role-close,.cx-role[open] .cx-role-open{display:none}
.cx-role[open] .cx-role-close{display:inline}
.cx-role[open] .cx-role-toggle::after{transform:rotate(-135deg);margin-top:4px}
.cx-role-toggle--link{border:0;padding:0;background:none}
.cx-role-toggle--link::after{display:none}
.cx-role-body{padding:6px 16px 18px;background:#f7fafd;display:flex;flex-direction:column;gap:14px}
.cx-role-body .cx-facts{gap:12px 28px}
.cx-role-body .cx-fact dd{font-weight:500}
.cx-role-spec{margin:6px 0 0;font-size:15px;color:var(--cx-navy)}
.cx-role-link{align-self:flex-start;display:inline-flex;align-items:center;gap:2px;font-weight:650;font-size:14px}
.cx-quota{display:flex;flex-direction:column;gap:4px}
.cx-quota span{color:var(--cx-muted)}
.cx-tag{display:inline-block;background:#e3e8ef;color:#33435a;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}

.cx-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.cx-pages-label{font-size:14px;color:var(--cx-muted)}
.cx-pages-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cx .cx-page{min-width:42px;min-height:42px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #c3cfdd;border-radius:9px;background:#fff;color:var(--cx-ink);font-weight:600;font-size:14px}
.cx .cx-page:hover{border-color:var(--cx-blue);background:var(--cx-tint);text-decoration:none}
.cx .cx-page--current{background:var(--cx-navy);border-color:var(--cx-navy);color:#fff}
.cx-page--step{padding:0 14px}
.cx-page-gap{color:var(--cx-muted);padding:0 2px}

/* Blocos recolhidos */
.cx-more summary{cursor:pointer;font-weight:650;color:var(--cx-link);min-height:40px;display:flex;align-items:center}
.cx-more[open] summary{margin-bottom:10px}

/* Documentos */
.cx-docs{display:flex;flex-direction:column}
.cx-docs li{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--cx-line);color:var(--cx-link)}
.cx-docs li:first-child{border-top:0;padding-top:0}
.cx-docs li div{color:var(--cx-ink);min-width:0}
.cx-docs small{display:block;font-size:13px;color:var(--cx-muted)}
.cx-docs p{font-size:14px;color:#33475f}

/* Lateral */
.cx-links{display:flex;flex-direction:column}
.cx-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;font-weight:600;border-top:1px solid var(--cx-line)}
.cx-links li:first-child a{border-top:0}

/* Cronograma */
.cx-timeline{display:flex;flex-direction:column}
.cx-tl{position:relative;padding:0 0 16px 24px}
.cx-tl:last-child{padding-bottom:0}
.cx-tl::before{content:"";position:absolute;left:0;top:5px;width:11px;height:11px;border-radius:50%;background:#fff;border:2px solid var(--cx-blue)}
.cx-tl::after{content:"";position:absolute;left:5px;top:20px;bottom:0;width:1px;background:var(--cx-line)}
.cx-tl:last-child::after{display:none}
.cx-tl-when{display:block;font-size:13px;color:var(--cx-muted);font-variant-numeric:tabular-nums}
.cx-tl strong{display:block;font-weight:650}
.cx-tl p{font-size:13px;color:var(--cx-muted)}
.cx-tl--done::before{background:#aab7c7;border-color:#aab7c7}
.cx-tl--done strong{font-weight:500;color:#33475f}
.cx-tl--focus{background:var(--cx-tint);border-radius:10px;padding:10px 12px 10px 34px;margin:0 -10px 14px}
.cx-tl--focus::before{left:11px;top:15px;background:var(--cx-navy);border-color:var(--cx-navy)}
.cx-tl--focus::after{display:none}
.cx-tl--focus .cx-tl-when{color:var(--cx-navy);font-weight:650}

/* Localidades */
.cx-places{display:flex;flex-direction:column;gap:10px}
.cx-places li{display:flex;gap:10px;color:var(--cx-link)}
.cx-places li div{color:var(--cx-ink)}
.cx-places small{display:block;font-size:13px;color:var(--cx-muted)}
.cx-places p{font-size:13px;color:var(--cx-muted)}

/* Telas menores */
@media(max-width:1099px){
  .cx-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:720px){
  .cx-hero,.cx-hero--ficha{flex-direction:column;padding:22px 16px;border-radius:14px;gap:18px}
  .cx-hero-id{flex-direction:column;align-items:flex-start;gap:14px}
  .cx-logo--hero{width:128px;height:100px;padding:9px;border-radius:14px}
  .cx-logo--brasao{width:108px;height:120px}
  .cx-logo--hero .cx-mono{min-width:68px;height:68px;font-size:24px}
  .cx-mono{min-width:42px;height:42px;font-size:16px}
  .cx-hero-cover{flex:none;max-width:none}
  .cx-hero-actions .cx-btn{flex:1 1 150px}
  .cx-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cx-stat{padding:12px 14px}
  .cx-stat:last-child:nth-child(odd){grid-column:1 / -1}
  .cx-stat-big{font-size:26px}
  .cx-stat-value{font-size:16px}
  .cx-jump{margin:12px 0 16px;padding:0 14px;gap:4px 20px}
  .cx-card{padding:18px 16px}
  .cx-side .cx-card{padding:18px 16px}
  .cx-roles{border:0;border-radius:0}
  .cx-roles-head{display:none}
  .cx-roles .cx-role-row,.cx-roles--level .cx-role-row,.cx-roles--pay .cx-role-row,.cx-roles--level.cx-roles--pay .cx-role-row{grid-template-columns:minmax(0,1fr) auto;padding:12px 0;gap:2px 12px}
  .cx-role:first-of-type{border-top:0}
  .cx-role-name{grid-column:1}
  .cx-role-vagas{grid-column:2;grid-row:1}
  .cx-role-level,.cx-role-pay{grid-column:1;text-align:left;font-size:13px;color:var(--cx-muted)}
  .cx-role-toggle{grid-column:2;grid-row:2 / span 2;align-self:end;justify-self:end}
  .cx-role summary:hover,.cx-role[open]>summary{background:none}
  .cx-role-body{padding:10px 12px 16px;border-radius:10px;margin-bottom:12px}
  .cx-pages{justify-content:center}
}
@media(max-width:380px){.cx-stats{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media print{.cx-jump,.cx-hero-actions{display:none}.cx-hero{background:#fff;color:#000;border:1px solid #999}.cx-hero h1{color:#000}}

/* ---------- V36: vitrines Opção (publicidade) na lateral ---------- */
.cx-op{gap:12px}
.cx-op .cx-card-head{align-items:center}
.cx-op-tag{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--cx-muted);border:1px solid var(--cx-line);border-radius:999px;padding:2px 9px;background:#f7f9fc}
.cx-op-lead{font-size:13px;line-height:1.45;color:var(--cx-muted);margin:0}
.cx-op-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.cx-op-item+.cx-op-item{border-top:1px solid var(--cx-line)}
.cx-op-link{display:flex;gap:12px;align-items:flex-start;padding:12px 0;text-decoration:none;color:inherit}
.cx-op-item:first-child .cx-op-link{padding-top:4px}
.cx-op-cover{flex:0 0 64px;width:64px;height:86px;object-fit:cover;border-radius:6px;border:1px solid var(--cx-line);background:#f2f5f9}
.cx-op-cover--vazia{display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;font-weight:700;color:var(--cx-blue,#3c83c2);padding:4px}
.cx-op-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.cx-op-title{font-size:14px;line-height:1.35;font-weight:600;color:var(--cx-navy);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cx-op-link:hover .cx-op-title{text-decoration:underline}
.cx-op-aff{font-size:12px;line-height:1.35;color:var(--cx-muted)}
.cx-op-badge{align-self:flex-start;font-size:11px;line-height:1.3;font-weight:600;color:#7a5a00;background:#fff6dc;border:1px solid #f0dc9c;border-radius:6px;padding:2px 7px}
.cx-op-price{font-size:15px;font-weight:700;color:var(--cx-navy)}
.cx-op-cta{font-size:13px;font-weight:600;color:var(--cx-blue,#3c83c2)}
.cx-op-link:focus-visible{outline:2px solid var(--cx-blue,#3c83c2);outline-offset:2px;border-radius:6px}
.cx-op-foot{font-size:11.5px;line-height:1.4;color:var(--cx-muted);margin:0}
@media print{.cx-op{display:none}}

/* ---------- V34: ficha ---------- */
.cx-stat{transition:border-color .15s}
.cx-roles{border-radius:12px;border-color:#cfdbe8}
.cx-role summary{transition:background .12s}
.cx-role-name small{margin-top:1px}
.cx .cx-bullets{list-style:disc;padding-left:20px;display:flex;flex-direction:column;gap:5px;font-weight:500}
.cx .cx-notes{list-style:disc;padding-left:22px;display:flex;flex-direction:column;gap:7px;color:#22364d;max-width:78ch}
.cx-notes li::marker,.cx-bullets li::marker{color:var(--cx-blue)}
.cx-role-body .cx-note{margin-top:6px}
.cx-dist{border:1px solid var(--cx-line);border-radius:10px;background:#fff;overflow:hidden}
.cx-dist>summary{cursor:pointer;display:flex;align-items:center;min-height:44px;padding:0 14px;font-weight:650;color:var(--cx-link)}
.cx-dist[open]>summary{border-bottom:1px solid var(--cx-line)}
.cx-dist .cx-note{padding:8px 14px}
.cx-table-scroll{overflow-x:auto}
.cx-table{width:100%;border-collapse:collapse;font-size:14px}
.cx-table th,.cx-table td{padding:9px 14px;text-align:left;vertical-align:top;border-top:1px solid #e3ecf2}
.cx-table thead th{border-top:0;background:var(--cx-soft);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--cx-muted)}
.cx-table tbody th{font-weight:600;color:var(--cx-ink)}
.cx-table th small{display:block;font-size:12px;font-weight:500;color:var(--cx-muted)}
.cx-table .cx-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:720px){.cx-table th,.cx-table td{padding:8px 10px}}

/* V35: busca e filtro da lista de cargos */
.cx-role[hidden]{display:none}
.cx-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;align-items:end;margin:0 0 12px}
.cx-filter-search input,.cx-filter-sort select{width:100%;min-height:44px;padding:0 14px;border:1px solid #b9c8da;border-radius:10px;background:#fff;color:var(--cx-ink);font:inherit;font-size:15px}
.cx-filter-search input:focus-visible,.cx-filter-sort select:focus-visible{outline:3px solid var(--cx-blue);outline-offset:1px}
.cx-filter-sort{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--cx-muted)}
.cx-filter-sort select{text-transform:none;letter-spacing:0;font-weight:500;padding-right:8px}
.cx-filter-chips{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px}
.cx-chipbtn{min-height:36px;padding:0 14px;border:1px solid #b9c8da;border-radius:999px;background:#fff;color:var(--cx-navy);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.cx-chipbtn:hover{background:var(--cx-tint)}
.cx-chipbtn[aria-pressed="true"]{background:var(--cx-navy);border-color:var(--cx-navy);color:#fff}
.cx-chipbtn:focus-visible{outline:3px solid var(--cx-blue);outline-offset:2px}
.cx-filter-count{grid-column:1 / -1;margin:0;font-size:13px;color:var(--cx-muted)}
.cx-roles-empty{margin:12px 0 0;padding:18px;border:1px dashed var(--cx-line);border-radius:10px;color:var(--cx-muted);text-align:center}
@media(max-width:700px){
  .cx-filter{grid-template-columns:minmax(0,1fr)}
  .cx-filter-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .cx-chipbtn{flex:none}
}

/* ---------- V38: topo com painel de números ---------- */
.cx-hero-aside{display:flex;flex-direction:column;gap:14px;min-width:0}
.cx-hero-aside .cx-hero-cover{flex:none;max-width:none;height:150px}
.cx-hero-aside .cx-hero-cover img{min-height:0;height:100%}
.cx-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cx-tile{display:flex;flex-direction:column;gap:3px;min-width:0;padding:15px 18px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.09)}
.cx-tile-label{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#bcd5ef}
.cx-tile-value{font-size:22px;line-height:1.2;font-weight:750;color:#fff;overflow-wrap:anywhere;text-wrap:balance}
.cx-tile--big .cx-tile-value{font-size:32px;letter-spacing:-.01em}
.cx-tile-hint{font-size:13px;line-height:1.35;color:#cbddf1}
.cx-tile:first-child:nth-last-child(odd){grid-column:1 / -1}
.cx-tile:first-child:nth-last-child(odd).cx-tile--big .cx-tile-value{font-size:46px;line-height:1.05}

/* ---------- V38: coluna lateral que acompanha a rolagem ---------- */
.cx-side{align-self:stretch}
.cx-side-tail{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.cx-side-stick{position:sticky;top:68px;display:flex;flex-direction:column;gap:20px;max-height:calc(100vh - 84px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px;margin:-3px}
.cx-role{scroll-margin-top:68px}

/* ---------- V38: cargos em cartões (telas a partir de 721 px; "Lista" volta à tabela) ---------- */
.cx-filter{grid-template-columns:minmax(0,1fr) auto auto}
.cx-filter-view{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--cx-muted)}
.cx-view-group{display:inline-flex;border:1px solid #b9c8da;border-radius:10px;overflow:hidden;background:#fff}
.cx-view-btn{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 13px;border:0;background:#fff;color:var(--cx-navy);font:inherit;font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;cursor:pointer}
.cx-view-btn+.cx-view-btn{border-left:1px solid #b9c8da}
.cx-view-btn:hover{background:var(--cx-tint)}
.cx-view-btn[aria-pressed="true"]{background:var(--cx-navy);color:#fff}
.cx-view-btn:focus-visible{outline:3px solid var(--cx-blue);outline-offset:-3px}
.cx-view-btn svg{flex:none}

@media(min-width:721px){
  .cx-roles:not([data-view="list"]){display:grid;grid-template-columns:repeat(auto-fill,minmax(262px,1fr));gap:12px;align-items:stretch;border:0;border-radius:0;overflow:visible}
  .cx-roles:not([data-view="list"]) .cx-roles-head{display:none}
  .cx-roles:not([data-view="list"]) .cx-role{border:1px solid #cfdbe8;border-radius:12px;background:#fff;overflow:hidden;transition:border-color .12s,box-shadow .12s}
  .cx-roles:not([data-view="list"]) .cx-role:hover{border-color:var(--cx-blue);box-shadow:0 3px 12px rgba(36,66,100,.1)}
  .cx-roles:not([data-view="list"]) .cx-role-row,
  .cx-roles:not([data-view="list"]).cx-roles--level .cx-role-row,
  .cx-roles:not([data-view="list"]).cx-roles--pay .cx-role-row,
  .cx-roles:not([data-view="list"]).cx-roles--level.cx-roles--pay .cx-role-row{
    grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"lvl vagas" "name name" "pay tog";gap:10px 12px;align-items:center;padding:14px 16px}
  .cx-roles:not([data-view="list"]) .cx-role-level{align-self:start}
  .cx-roles:not([data-view="list"]) .cx-role-vagas{align-self:start}
  .cx-roles:not([data-view="list"]) .cx-role:not([open])>summary,.cx-roles:not([data-view="list"]) .cx-role:not([open])>.cx-role-row{height:100%;grid-template-rows:auto 1fr auto}
  .cx-roles:not([data-view="list"]) .cx-role-name{grid-area:name;align-self:start;font-size:16px;line-height:1.3}
  .cx-roles:not([data-view="list"]) .cx-role-level{grid-area:lvl;justify-self:start;max-width:100%;padding:3px 10px;border-radius:10px;background:var(--cx-tint);color:var(--cx-navy);font-size:12.5px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .cx-roles:not([data-view="list"]) .cx-role-vagas{grid-area:vagas;text-align:right}
  .cx-roles:not([data-view="list"]) .cx-role-pay{grid-area:pay;text-align:left;font-weight:650;color:var(--cx-navy)}
  .cx-roles:not([data-view="list"]) .cx-role-toggle{grid-area:tog}
  .cx-roles:not([data-view="list"]) .cx-role summary:hover,
  .cx-roles:not([data-view="list"]) .cx-role[open]>summary{background:#f7fafd}
  /* Cargo aberto: ocupa a linha inteira e o resumo vira uma linha só */
  .cx-roles:not([data-view="list"]) .cx-role[open]{grid-column:1 / -1;border-color:var(--cx-blue)}
  .cx-roles:not([data-view="list"]) .cx-role[open]>.cx-role-row{align-items:start;grid-template-columns:minmax(220px,2fr) minmax(0,1.2fr) auto auto auto;grid-template-areas:"name lvl pay vagas tog";gap:12px 18px}
  .cx-roles:not([data-view="list"]) .cx-role-body{border-top:1px solid var(--cx-line)}
}

/* Tablets e celulares */
/* Telas médias: topo mais compacto para o painel caber ao lado do título */
@media(min-width:1100px) and (max-width:1279px){
  .cx-hero--ficha,.cx-hero--ficha.cx-hero--panel{padding:30px 30px;gap:26px 28px}
  .cx-hero--ficha.cx-hero--panel{grid-template-columns:minmax(0,1fr) 340px}
  .cx-hero--ficha .cx-hero-id{gap:22px}
  .cx-logo--hero{width:148px;height:116px}
  .cx-logo--brasao{width:128px;height:142px}
  .cx-logo--hero .cx-mono{min-width:78px;height:78px;font-size:27px}
  .cx-tile{padding:13px 15px}
  .cx-tile-value{font-size:20px}
  .cx-tile--big .cx-tile-value{font-size:28px}
  .cx-tile:first-child:nth-last-child(odd).cx-tile--big .cx-tile-value{font-size:40px}
}
@media(max-width:1099px){
  .cx-hero--ficha.cx-hero--panel{grid-template-columns:minmax(0,1fr)}
  .cx-tile:first-child:nth-last-child(odd).cx-tile--big .cx-tile-value{font-size:36px}
  .cx-ficha .cx-layout{display:flex;flex-direction:column;align-items:stretch;gap:20px}
  .cx-ficha .cx-main,.cx-ficha .cx-side,.cx-ficha .cx-side-tail,.cx-ficha .cx-side-stick{display:contents}
  .cx-ficha .cx-layout .cx-card{order:5}
  .cx-ficha .cx-layout #inscricoes{order:1}
  .cx-ficha .cx-layout #cargos{order:2}
  .cx-ficha .cx-layout #sobre{order:3}
  .cx-ficha .cx-layout #documentos{order:4}
}
@media(max-width:720px){
  .cx-hero--ficha,.cx-hero--ficha.cx-hero--panel{padding:22px 16px;gap:18px}
  .cx-panel{gap:10px}
  .cx-tile{padding:12px 14px}
  .cx-tile-value{font-size:18px}
  .cx-tile--big .cx-tile-value{font-size:26px}
  .cx-tile:first-child:nth-last-child(odd).cx-tile--big .cx-tile-value{font-size:34px}
  .cx-tile-hint{font-size:12.5px}
  .cx-filter{grid-template-columns:minmax(0,1fr)}
  .cx-filter-view{display:none}
}
@media(max-width:380px){.cx-panel{grid-template-columns:minmax(0,1fr)}}
@media print{.cx-side-stick{position:static;max-height:none;overflow:visible}}

/* A barra de busca se adapta à largura do cartão (e não à da tela) */
.cx-card--roles{container-type:inline-size}
@container (max-width:720px){
  .cx-filter{grid-template-columns:minmax(0,1fr) auto}
  .cx-filter-search{grid-column:1 / -1}
}
@media(max-width:720px){.cx-filter{grid-template-columns:minmax(0,1fr)}}

/* Página inicial: os números ficam centralizados (a regra de altura mínima acima os deixava à esquerda) */
.inicio-estatisticas .cx-stat strong{justify-content:center;text-align:center}

/* Paginação dos cargos (feita no navegador) */
.cx-pager{margin-top:16px}
.cx-pager[hidden]{display:none}
.cx-pager .cx-pages-label{margin:0}
.cx button.cx-page{font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.cx button.cx-page:disabled{opacity:.45;cursor:default;background:#fff}
.cx button.cx-page:disabled:hover{border-color:#c3cfdd;background:#fff}
.cx button.cx-page:focus-visible{outline:3px solid var(--cx-blue);outline-offset:2px}
.cx-filter{scroll-margin-top:68px}
@media(max-width:720px){.cx-pager{justify-content:center}.cx-pager .cx-pages-label{width:100%;text-align:center}.cx-pager .cx-page{min-width:38px}}
