/* "Para quem" (jcs/perfis.njk): abas por área da empresa e, em cada uma, o texto à esquerda e um mini painel de
   exemplo à direita. Sem JS, os painéis ficam um embaixo do outro */

.perfis {
  background: #fff;
}
.perfis .section-head {
  margin-bottom: min(4vh, 36px);
}

/* Abas: botões em pílula; a escolhida fica azul */
.perfis__abas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  border-radius: 999px;
  background: #eef4fa;
  width: fit-content;
}
.perfis__abas[hidden] {
  display: none;
}
.perfis__abas button {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #34516e;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.perfis__abas button:hover {
  color: #0b5db8;
}
.perfis__abas button[aria-selected="true"] {
  background: #0b5db8;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 93, 184, 0.25);
}
.perfis__abas button:focus-visible {
  outline: 2px solid #0b5db8;
  outline-offset: 2px;
}

/* Um painel: texto e mini painel lado a lado, num card azul bem claro */
.perfil {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: linear-gradient(120deg, #eef4fa, #f8fbfe 70%);
  border: 1px solid #e2eaf3;
}
.perfil[hidden] {
  display: none;
}
.perfil + .perfil {
  margin-top: 16px;
}
.perfil__area {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0b5db8;
}
.perfil h3 {
  margin: 10px 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #112842;
}
.perfil__texto > p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #4d6178;
}
.perfil__pontos {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.perfil__pontos li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #112842;
}
.perfil__pontos li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b5db8;
  color: #fff;
  font-size: 11px;
}
.perfil__sistemas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.perfil__sistemas > span {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8193a6;
}
.perfil__sistemas a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d3e3f3;
  font-size: 13px;
  font-weight: 700;
  color: #112842;
  text-decoration: none;
  transition: border-color 0.2s;
}
.perfil__sistemas a:hover {
  border-color: #0b5db8;
}
.perfil__sistemas img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

/* Mini painel de exemplo: uma janela clara com números ou com linhas */
.perfil-painel {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e2eaf3;
  box-shadow: 0 30px 70px rgba(16, 42, 71, 0.12);
}
.perfil-painel__topo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.perfil-painel__pontos {
  display: flex;
  gap: 5px;
}
.perfil-painel__pontos i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d3dde8;
}
.perfil-painel__topo strong {
  font-size: 14px;
  color: #112842;
}
.perfil-painel__topo em {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff1dc;
  color: #a35b00;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.perfil-painel__numeros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perfil-painel__numeros li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: #f5f8fc;
}
.perfil-painel__numeros span,
.perfil-painel__barras > span {
  font-size: 11px;
  font-weight: 700;
  color: #607286;
}
.perfil-painel__numeros strong {
  font-size: clamp(20px, 1.9vw, 28px);
  letter-spacing: -0.04em;
  color: #0b5db8;
}
.perfil-painel__numeros small {
  font-size: 11px;
  color: #0b8a4a;
}
.perfil-painel__barras {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f5f8fc;
}
.perfil-painel__barras > div {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
  margin-top: 10px;
}
.perfil-painel__barras i {
  flex: 1;
  height: var(--altura);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #2a87f4, #0b5db8);
}
.perfil-painel__linhas {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perfil-painel__linhas li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
}
.perfil-painel__linhas li:last-child {
  border-bottom: 0;
}
.perfil-painel__linhas span {
  font-weight: 700;
  color: #112842;
}
.perfil-painel__linhas strong {
  color: #34516e;
  font-variant-numeric: tabular-nums;
}
.perfil-painel__linhas em {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.selo-verde {
  background: #e3f6ec;
  color: #0b7a42;
}
.selo-azul {
  background: #e6f0fa;
  color: #0b5db8;
}
.selo-laranja {
  background: #fff1dc;
  color: #a35b00;
}
.selo-cinza {
  background: #eef2f7;
  color: #607286;
}

@media (max-width: 960px) {
  .perfil {
    grid-template-columns: 1fr;
  }
  .perfis__abas {
    flex-wrap: nowrap;
    width: auto;
    overflow-x: auto;
    border-radius: 18px;
  }
  .perfis__abas button {
    flex: none;
  }
}

@media (max-width: 600px) {
  .perfil-painel__numeros {
    grid-template-columns: 1fr;
  }
  .perfil-painel__linhas li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .perfil-painel__linhas strong {
    grid-row: 2;
    font-size: 13px;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .perfis.section {
    padding: min(7vh, 56px) 0;
  }
  .perfis h2 {
    font-size: clamp(32px, 3.6vw, 56px);
  }
  .perfil-painel__barras > div {
    height: 64px;
  }
}
