/* Plataforma Catalisa (área logada da ONG e da empresa parceira).
   Usa os tokens de base.css; telas de referência em Ibiete/catalisa
   docs/referencias/sistema (Figma, página Protótipo). */

.muted { color: var(--texto-3); }
.centro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.titulo-rosa { font-family: var(--f-titulo); color: var(--rosa); font-weight: 600; font-size: 24px; }
.titulo-pagina { font-family: var(--f-titulo); color: var(--rosa); font-weight: 600; font-size: clamp(28px, 4vw, 44px); margin: 8px 0 16px; }
h2 { font-family: var(--f-titulo); font-weight: 600; font-size: 20px; margin-bottom: 12px; }
.plat-link { background: none; border: 0; padding: 0; color: var(--rosa); cursor: pointer; font-family: var(--f-titulo); font-weight: 500; }

/* Botões extras */
.botao--contorno { background: var(--branco); color: var(--rosa); border: 1px solid var(--rosa); padding: 11px 22px; font-size: 16px; line-height: 24px; }
.botao--pequeno { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.botao--cheio { width: 100%; }
.botao[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.botoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Topo da plataforma */
.plat-topo { background: var(--branco); box-shadow: var(--sombra-sm); position: sticky; top: 0; z-index: 30; }
.plat-topo__in { display: flex; align-items: center; gap: 24px; min-height: 84px; flex-wrap: wrap; padding-block: 10px; }
.plat-logo img { width: 240px; height: auto; }
.plat-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.plat-nav a { text-decoration: none; padding: 8px 14px; font-family: var(--f-titulo); font-size: 17px; color: var(--texto); border-bottom: 2px solid transparent; }
.plat-nav a + a { border-left: 1px solid var(--cinza-borda); }
.plat-nav a.ativo { color: var(--rosa); text-decoration: underline; text-underline-offset: 6px; }
.plat-conta { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.plat-conta__nome { color: var(--texto-3); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .plat-logo img { width: 180px; }
  .plat-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .plat-nav a { font-size: 15px; white-space: nowrap; }
  .plat-conta { margin-left: auto; }
}

.plat-main { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 24px; }
.onda-topo { height: 110px; margin-bottom: -60px; background: linear-gradient(180deg, #DFA6C6 0%, rgba(223, 166, 198, .35) 70%, transparent 100%); clip-path: ellipse(80% 100% at 30% 0); }

/* Cartões */
.cartao { background: var(--branco); border-radius: 16px; padding: 28px; box-shadow: var(--sombra-sm); display: block; color: inherit; text-decoration: none; }
.cartao--destaque { background: var(--fundo-lilas); border: 1px solid #E3C3D6; }
.cartao--destaque h1 { font-family: var(--f-titulo); color: var(--rosa); font-size: 24px; margin-bottom: 8px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grade-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grade-2 { grid-template-columns: 1fr; } .cartao { padding: 20px; } }

/* Barras de progresso */
.barra { height: 8px; background: var(--cinza-borda); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.barra > span { display: block; height: 100%; background: var(--rosa); border-radius: 99px; transition: width .3s ease; }
.barra--fina { height: 6px; display: block; flex: 0 0 200px; max-width: 280px; width: 200px; margin: 0; }
.progresso { margin-bottom: 16px; }
.progresso p { text-align: right; color: var(--texto-2); font-size: 14px; }

/* Níveis e eixos */
.nivel { display: inline-block; padding: 3px 12px; border-radius: 8px; font-size: 14px; border: 1px solid; }
.nivel--ok { color: #10915F; border-color: #10915F; background: #EFFFF6; }
.nivel--medio { color: #8A6A00; border-color: #E8C84A; background: #FFF9DB; }
.nivel--baixo { color: #B4232C; border-color: #E9A0A5; background: #FFF1F2; }
.eixo-tag { display: inline-block; padding: 1px 10px; border-radius: 8px; font-size: 13px; border: 1px solid; font-family: var(--f-titulo); }
.eixo-tag--governanca { color: #10915F; border-color: #7FC27F; }
.eixo-tag--estrategia { color: var(--azul); border-color: var(--s1-borda); }
.eixo-tag--tatico { color: #A238D6; border-color: #C98BEA; }

/* Login / cadastro */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; }
.auth__onda { position: absolute; inset: 0 0 auto 0; height: 260px; background: linear-gradient(120deg, #DFA6C6, #C9DCF0); clip-path: ellipse(90% 100% at 50% 0); z-index: -1; }
.auth__card { width: min(100%, 460px); background: var(--branco); border-radius: 20px; padding: 36px 32px; box-shadow: var(--sombra-botao); }
.auth__card--largo { width: min(100%, 760px); }
.auth__logo img { width: 220px; margin: 0 auto 20px; }
.auth h1 { font-family: var(--f-titulo); color: var(--rosa); font-size: 26px; text-align: center; }
.auth__sub { text-align: center; color: var(--texto-2); margin: 8px 0 20px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form--grade { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form--inteiro { grid-column: 1 / -1; }
@media (max-width: 640px) { .form--grade { grid-template-columns: 1fr; } .auth__card { padding: 28px 20px; } }
.form--linha { flex-direction: row; flex-wrap: wrap; align-items: end; gap: 12px; }
.form--linha .campo { flex: 1 1 180px; }
.form .campo > span:first-child { font-family: var(--f-titulo); font-weight: 500; font-size: 14px; color: var(--texto-2); }
.form .campo input, .form .campo select, .form .campo textarea { font-size: 16px; }
.campo__senha { display: flex; gap: 8px; }
.campo__senha input { flex: 1; }
.campo__senha button { background: none; border: 0; color: var(--rosa); cursor: pointer; font-size: 14px; }
.form__link { align-self: flex-end; color: var(--rosa); font-size: 14px; }
.form__rodape { text-align: center; color: var(--texto-2); }
.form__rodape a { color: var(--rosa); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--rosa); }
.check a { color: var(--rosa); }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.msg--erro { background: #FFF1F2; color: #9F1D26; border: 1px solid #F3C1C5; }
.msg--ok { background: #EFFFF6; color: #0B6B45; border: 1px solid #A8E2C5; }
.msg--info { background: var(--fundo-lilas); color: var(--vinho); }
.legal p { margin-bottom: 12px; color: var(--texto-2); line-height: 1.6; }

/* Diagnóstico */
.etapas { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; flex-wrap: wrap; }
.etapas button { background: var(--branco); border: 1px solid var(--cinza-borda); border-radius: 99px; padding: 8px 16px; cursor: pointer; font-family: var(--f-titulo); }
.etapas .ativa button { background: var(--rosa); color: var(--branco); border-color: var(--rosa); }
.etapas .feita button::before { content: "✓ "; color: #10915F; }
.pergunta { border: 0; border-bottom: 1px solid var(--cinza-linha); padding: 28px 0; margin: 0; }
.pergunta legend { font-family: var(--f-titulo); font-weight: 600; font-size: 18px; padding: 0; margin-bottom: 6px; }
.pergunta__ajuda { color: var(--texto-2); font-size: 15px; margin: 6px 0 14px; }
.pergunta__opcoes { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.pergunta__rodape { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; }
.pergunta__eixo { color: var(--texto-2); font-family: var(--f-titulo); }
.evidencia { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0 34px; align-items: center; }
.evidencia__link { flex: 1 1 240px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--cinza-borda); border-radius: 8px; background: var(--branco); }
.arquivo { display: flex; gap: 12px; align-items: center; border: 1px solid var(--cinza-linha); border-radius: 8px; padding: 8px 14px; color: var(--rosa); background: var(--branco); }
.arquivo button { background: none; border: 0; color: var(--rosa); font-size: 20px; cursor: pointer; }
.navegacao { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Relatório */
.relatorio__topo { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.selo-alerta { border: 1px solid #A8E2C5; }
.selo-alerta strong { color: #10915F; }
.donut { width: 160px; height: 160px; }
.donut__fundo { fill: none; stroke: var(--cinza-borda); stroke-width: 9; }
.donut__valor { fill: none; stroke: var(--rosa); stroke-width: 9; stroke-linecap: round; }
.donut__pct { font-family: var(--f-titulo); font-weight: 700; font-size: 18px; fill: var(--texto); }
.donut__rot { font-size: 8px; fill: var(--texto-3); }
.radar { width: 100%; max-width: 440px; }
.radar__grade { fill: none; stroke: var(--cinza-borda); }
.radar__eixo { stroke: var(--cinza-borda); }
.radar__area { fill: rgba(187, 41, 122, .25); stroke: var(--rosa); stroke-width: 2; }
.radar__antes { fill: rgba(115, 115, 115, .2); stroke: var(--texto-3); stroke-dasharray: 4 3; }
.radar__ponto { fill: var(--rosa); }
.radar__rotulo { font-size: 12px; fill: var(--texto-2); font-family: var(--f-texto); }
.radar__valor { font-size: 11px; font-weight: 700; fill: var(--texto); }
.resumo-resultado { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.comparar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.evolucao { list-style: none; padding: 0; display: grid; gap: 4px; }
.sobe { color: #10915F; } .desce { color: #B4232C; }
.acordeao { border: 1px solid var(--cinza-borda); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: var(--branco); }
.acordeao summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.acordeao[open] summary { margin-bottom: 10px; }
.criterios { list-style: none; padding: 0; display: grid; gap: 6px; }
.criterios .ok { color: #10915F; } .criterios .pendente { color: var(--texto-2); }

/* PDI */
.eixos { display: flex; flex-direction: column; gap: 12px; }
.eixo-card { border: 1px solid var(--cinza-borda); border-radius: 12px; padding: 12px 14px; }
.eixo-card__topo { display: flex; justify-content: space-between; }
.acao--feita summary span:first-child { text-decoration: line-through; color: var(--texto-3); }

/* Avisos, listas, mentorias */
.avisos__topo { display: flex; justify-content: space-between; align-items: center; }
.avisos ul, .lista { list-style: none; padding: 0; display: grid; gap: 10px; }
.temas { border: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.temas legend { font-family: var(--f-titulo); font-weight: 500; margin-bottom: 8px; }
.status { font-size: 14px; }
.status--realizada { color: #10915F; } .status--cancelada { color: var(--texto-3); } .status--encaminhada { color: var(--azul); }

/* Trilhas */
.trilha-card img { border-radius: 12px; margin-bottom: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.trilha-card:hover { box-shadow: var(--sombra-rosa); }
.voltar { color: var(--rosa); text-decoration: none; font-family: var(--f-titulo); }
.modulos { list-style: none; padding: 0; display: grid; gap: 12px; }
.modulos li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--branco); border-radius: 14px; padding: 16px; box-shadow: var(--sombra-sm); }
.modulos__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fundo-lilas); color: var(--rosa); font-weight: 700; }
.modulos .feito .modulos__num { background: #EFFFF6; color: #10915F; }
.modulos .bloqueado { opacity: .6; }
.setor { font-size: 12px; background: var(--s1-fundo); color: var(--s1); border-radius: 6px; padding: 1px 8px; margin-left: 6px; }
.eixos-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--branco); border-radius: 12px; padding: 12px 16px; font-size: 13px; }
@media (max-width: 640px) { .eixos-mini { grid-template-columns: 1fr; } .modulos li { grid-template-columns: 36px 1fr; } }
.sessao { animation: aparece .35s ease; }
.sessao--feita { opacity: .85; }
.sessao__texto p { margin-bottom: 10px; line-height: 1.6; }
.video { position: relative; aspect-ratio: 16/9; margin: 12px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 6px; margin: 10px 0; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tabelas (área do parceiro) */
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--cinza-borda); }
.tabela th { font-family: var(--f-titulo); font-weight: 500; color: var(--texto-2); }
.tabela-rolagem { overflow-x: auto; }

/* Rodapé */
.plat-rodape { padding: 32px 0 48px; }
.plat-rodape__in { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.plat-rodape__bloco { background: var(--branco); border-radius: 16px; padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-titulo); }
.plat-rodape__bloco img { height: 64px; width: auto; object-fit: contain; }

.plat-vazio { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; }

@media print {
  .plat-topo, .plat-rodape, .nao-imprimir, .onda-topo { display: none !important; }
  body { background: #fff; }
  .cartao { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .acordeao { break-inside: avoid; }
  details > *:not(summary) { display: block !important; }
}
