/* SUPERHUMANO · gabinete de inteligência — direção em docs/DIRECAO-DESIGN.md
   A sala é escura (vigília à noite); o briefing é um documento de papel sobre
   a mesa. Paleta dos candidatos validada p/ superfície escura (skill dataviz). */
:root {
  --noite: #0A1A12;          /* fundo da sala */
  --sala: #0E2519;           /* respiro entre painéis */
  --painel: #122B1D;         /* cartões */
  --painel-2: #16331F;       /* hover/apoio */
  --linha: #26493A;          /* hairlines */
  --texto: #EDEAE0;          /* creme AAA sobre a noite */
  --texto-2: #A9B8AB;        /* apoio */
  --ambar: #E8B34B;          /* sinal, foco, marca */
  --ambar-tinta: #1C1608;
  --papel: #F7F4EA;          /* o documento */
  --papel-sombra: #E4DFCE;
  --tinta: #20261F;          /* texto sobre papel */
  --tinta-2: #475242;          /* AAA 7,47:1 sobre o papel (aferido) */
  --verde-lampada: #57D387;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --corpo: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--noite); color: var(--texto);
  font-family: var(--corpo); font-size: 19px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before { /* profundidade da sala: luz fria vinda do alto */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1200px 600px at 70% -100px, rgba(87, 211, 135, .07), transparent 60%),
              radial-gradient(900px 500px at 8% 10%, rgba(232, 179, 75, .05), transparent 55%);
}
a { color: var(--texto); text-decoration-color: var(--ambar); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 4px;
}
img { max-width: 100%; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 22, 15, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo-linha {
  max-width: 1220px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.marca { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.marca-nome {
  font-weight: 800; letter-spacing: .34em; font-size: 17px; color: var(--ambar);
}
.marca-sub { font-size: 13px; color: var(--texto-2); letter-spacing: .04em; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; }
.menu a {
  color: var(--texto); text-decoration: none; font-weight: 650; font-size: 16.5px;
  padding: 11px 15px; border-radius: 999px; min-height: 48px;
  display: inline-flex; align-items: center; border: 1px solid transparent;
}
.menu a:hover { border-color: var(--linha); background: var(--painel); }
.menu a.ativo { background: var(--ambar); color: var(--ambar-tinta); font-weight: 750; }

/* ---------- estrutura ---------- */
main { max-width: 1220px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 1; }
section { padding: 64px 0 8px; scroll-margin-top: 92px; }
.secao-cabeca { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.secao-num {
  font-size: 13.5px; font-weight: 800; letter-spacing: .22em; color: var(--ambar);
  text-transform: uppercase;
}
h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--texto); }
h1 { font-size: clamp(46px, 6.4vw, 82px); line-height: 1.04; letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
h3 { font-size: 22px; margin: 0 0 8px; font-weight: 750; }
.explica { color: var(--texto-2); font-size: 18.5px; max-width: 76ch; margin: 8px 0 26px; }
.cartoes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.cartao {
  background: linear-gradient(180deg, var(--painel-2), var(--painel) 22%);
  border: 1px solid var(--linha); border-radius: 18px;
  padding: 26px; grid-column: span 12; min-width: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 40px rgba(0, 0, 0, .35);
}
.c6 { grid-column: span 6; } .c4 { grid-column: span 4; } .c8 { grid-column: span 8; }
@media (max-width: 900px) { .c6, .c4, .c8 { grid-column: span 12; } }
.rotulo {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; border-radius: 999px; padding: 4px 12px;
}
.rotulo-fato { background: rgba(87, 211, 135, .14); color: #8FE0AE; border: 1px solid rgba(87, 211, 135, .3); }
.rotulo-leitura { background: rgba(232, 179, 75, .12); color: var(--ambar); border: 1px solid rgba(232, 179, 75, .35); }
.fonte-nota { color: var(--texto-2); font-size: 15px; margin-top: 12px; }
.tabela-envolve { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 17px; }
th { text-align: left; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); padding: 8px 10px; border-bottom: 1px solid var(--linha); }
td { padding: 11px 10px; border-bottom: 1px solid rgba(38, 73, 58, .5); font-variant-numeric: tabular-nums; }
td.forte { font-weight: 700; }

/* ---------- herói ---------- */
.heroi { padding-top: 56px; }
.heroi-grade { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 1020px) { .heroi-grade { grid-template-columns: 1fr; } }
.heroi-grade > * { min-width: 0; }
.heroi-grade > .cartao, .heroi-grade > .papel { grid-column: auto; }
.heroi .lede { font-size: 21.5px; color: var(--texto-2); max-width: 56ch; margin: 20px 0 0; }
.heroi .lede strong { color: var(--texto); }

/* a ronda — instrumento da sala */
.ronda {
  margin-top: 34px; border: 1px solid var(--linha); border-radius: 18px;
  background: linear-gradient(180deg, #0D2318, #0A1D13);
  padding: 20px 22px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px rgba(0, 0, 0, .4);
}
.ronda-cabeca { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ronda-titulo {
  font-weight: 800; letter-spacing: .2em; font-size: 12.5px; color: var(--ambar);
  text-transform: uppercase;
}
.ronda-quando { font-size: 18px; color: var(--texto); font-weight: 700; }
.ronda-luzes { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.luz { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--texto-2); }
.luz i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--verde-lampada);
  box-shadow: 0 0 10px rgba(87, 211, 135, .9), 0 0 2px rgba(87, 211, 135, 1); flex: 0 0 auto;
}
.luz.apagada i { background: #3A4A3E; box-shadow: none; }
.luz.apagada { color: #93A79A; } /* 6,87:1 sobre a ronda — AA em 14,5px (aferido) */
@media (prefers-reduced-motion: no-preference) {
  .luz i { animation: pulso 3.4s ease-in-out infinite; }
  @keyframes pulso { 50% { box-shadow: 0 0 4px rgba(87, 211, 135, .5); } }
  .luz.apagada i { animation: none; }
}

/* ---------- o papel (briefing como documento) ---------- */
.papel {
  background: var(--papel); color: var(--tinta);
  border-radius: 6px; padding: 0 26px 22px; border: 0;
  box-shadow: 0 2px 0 var(--papel-sombra) inset, 0 30px 70px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .4);
}
.papel-tarja {
  margin: 0 -26px 18px; padding: 12px 26px 10px;
  background: var(--ambar); color: var(--ambar-tinta);
  border-radius: 6px 6px 0 0;
  font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.papel h2, .papel h3 { font-family: var(--display); font-size: 26px; line-height: 1.25; color: var(--tinta); margin: 0 0 8px; }
.papel .explica { color: var(--tinta-2); font-size: 16px; margin: 2px 0 10px; }
.papel .fonte-nota { color: var(--tinta-2); border-top: 1px dashed #CFC9B4; padding-top: 12px; }
.briefing-item { padding: 15px 0; border-bottom: 1px solid #E3DECB; }
.briefing-item:last-of-type { border-bottom: 0; }
.briefing-item a.manchete {
  font-family: var(--display); font-size: 21.5px; line-height: 1.28; color: var(--tinta);
  text-decoration: none; display: block;
}
.briefing-item a.manchete:hover { text-decoration: underline; text-decoration-color: var(--ambar); }
.briefing-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 5px; font-size: 15px; color: var(--tinta-2); }
.papel .ia-frase { background: #F0E8D2; border-left: 3px solid #B98A1E; color: #4A4636; }
.ia-frase { margin-top: 8px; font-size: 16px; padding: 7px 12px; border-radius: 0 8px 8px 0; }
.ia-frase b { font-weight: 800; }
.cartao .ia-frase { background: rgba(232, 179, 75, .09); border-left: 3px solid var(--ambar); color: var(--texto-2); }
.cartao .ia-frase b { color: var(--ambar); }
.chip-cand { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 750; }
.chip-cand i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* ---------- placar ---------- */
.placar-linha { display: grid; grid-template-columns: 66px 1fr 118px; gap: 16px; align-items: center; padding: 11px 0; }
.placar-foto { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid var(--linha); box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }
.placar-nome { font-weight: 750; font-size: 19.5px; }
.placar-partido { color: var(--texto-2); font-size: 15px; }
.placar-trilha { height: 14px; background: rgba(0, 0, 0, .35); border-radius: 999px; overflow: hidden; margin-top: 8px; border: 1px solid rgba(38, 73, 58, .6); }
.placar-preenche { height: 100%; border-radius: 999px; min-width: 4px; }
.placar-valor {
  font-family: var(--display); font-size: 38px; font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.chamada {
  background: rgba(232, 179, 75, .09); border: 1px solid rgba(232, 179, 75, .4);
  border-radius: 14px; padding: 16px 18px; font-size: 18.5px; margin-top: 16px;
}
.chamada b { color: var(--ambar); }

/* série */
.grafico-envolve { overflow-x: auto; }
svg.serie text { font-family: var(--corpo); }

/* imprensa */
.mencao-linha { display: grid; grid-template-columns: 54px 1fr 72px; gap: 14px; align-items: center; padding: 9px 0; }
.mencao-foto { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--linha); }
.matriz td, .matriz th { text-align: center; }
.matriz td:first-child, .matriz th:first-child { text-align: left; }

/* disputa */
.ficha { display: flex; gap: 18px; }
.ficha-foto { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; border: 1px solid var(--linha); }
.ficha dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 16.5px; }
.ficha dt { color: var(--texto-2); }
.ficha dd { margin: 0; font-weight: 650; }
.numero-urna {
  display: inline-block; background: var(--ambar); color: var(--ambar-tinta); font-weight: 800;
  border-radius: 8px; padding: 2px 11px; font-size: 18px; font-variant-numeric: tabular-nums;
}
.datas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .datas { grid-template-columns: repeat(2, 1fr); } }
.data-carta {
  text-align: center; padding: 22px 12px 18px; border: 1px solid var(--linha);
  border-radius: 16px; background: linear-gradient(180deg, #12291C, #0F2418);
}
.data-dias { font-family: var(--display); font-size: 58px; font-weight: 700; line-height: 1; color: var(--ambar); font-variant-numeric: tabular-nums; }
.data-rot { font-size: 14px; color: var(--texto-2); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
.data-quando { font-size: 15.5px; font-weight: 700; margin-top: 6px; color: var(--texto); }

/* serviço */
details.pergunta { border-bottom: 1px solid var(--linha); }
details.pergunta summary {
  cursor: pointer; font-size: 19px; font-weight: 700; padding: 15px 4px;
  min-height: 48px; display: list-item; color: var(--texto);
}
details.pergunta summary::marker { color: var(--ambar); }
details.pergunta summary:hover { color: var(--ambar); }
details.pergunta[open] summary { color: var(--ambar); }
details.pergunta p { margin: 0 0 16px; padding: 0 4px; font-size: 17px; color: var(--texto-2); }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ambar); color: var(--ambar-tinta);
  font-size: 20px; font-weight: 800; text-decoration: none; padding: 17px 30px;
  border-radius: 999px; min-height: 56px;
  box-shadow: 0 10px 30px rgba(232, 179, 75, .25);
}
.cta:hover { filter: brightness(1.07); }

/* alturas reservadas: o conteúdo é montado por JS; sem isso há layout shift */
#ronda { min-height: 185px; }
.papel { min-height: 540px; }
#portoes { min-height: 380px; }
#imprensaCartoes, #disputaCartoes, #servicoCartoes { min-height: 620px; }

/* AGORA: julgamentos com semântica de classe */
.coleta-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--texto-2); min-height: 24px; min-width: 240px; }
@media (min-width: 1001px) { .coleta-chip { min-width: 330px; min-height: 20px; justify-content: flex-end; } }
.coleta-chip a { color: var(--texto-2); }
.coleta-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde-lampada); box-shadow: 0 0 6px rgba(87, 211, 135, .8); }
.coleta-chip i.off { background: var(--ambar); box-shadow: none; }
.mudou {
  display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 4px 0 24px;
  padding: 13px 18px; border: 1px solid var(--linha); border-radius: 14px;
  background: var(--painel); font-size: 16.5px; color: var(--texto-2);
}
.mudou strong { color: var(--texto); font-variant-numeric: tabular-nums; }
.agora-grade { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .agora-grade { grid-template-columns: 1fr; } }
.agora-grade > * { min-width: 0; }
.julg {
  background: linear-gradient(180deg, var(--painel-2), var(--painel) 22%);
  border: 1px solid var(--linha); border-left-width: 5px; border-radius: 16px;
  padding: 20px 24px; margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 40px rgba(0, 0, 0, .35);
}
.julg.atencao { border-left-color: var(--ambar); }
.julg.agenda { border-left-color: #4c96cc; }
.julg.informativo { border-left-color: #5E6E61; }
.julg-topo { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.julg-classe { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.julg.atencao .julg-classe { color: var(--ambar); }
.julg.agenda .julg-classe { color: #7FB8E0; }
.julg.informativo .julg-classe { color: var(--texto-2); }
.julg-rotulo { font-size: 14px; color: var(--texto-2); }
.julg h3 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.julg-corpo { margin: 0; display: grid; grid-template-columns: 132px 1fr; gap: 7px 14px; font-size: 17px; }
.julg-corpo dt { color: var(--texto-2); font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.julg-corpo dd { margin: 0; }
@media (max-width: 640px) { .julg-corpo { grid-template-columns: 1fr; gap: 2px; } .julg-corpo dt { margin-top: 8px; } }
.julg-evid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
a.evid {
  display: inline-flex; align-items: center; font-size: 15px; font-weight: 650;
  color: var(--texto); background: rgba(0, 0, 0, .25); border: 1px solid var(--linha);
  border-radius: 999px; padding: 8px 14px; min-height: 44px; text-decoration: none;
}
a.evid:hover { border-color: var(--ambar); }
.hz { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(38, 73, 58, .5); font-size: 16.5px; }
.hz:last-child { border-bottom: 0; }
.hz strong { color: var(--ambar); font-variant-numeric: tabular-nums; }
a.atalho { display: block; padding: 11px 0; border-bottom: 1px solid rgba(38, 73, 58, .5); text-decoration: none; }
a.atalho:last-child { border-bottom: 0; }
a.atalho strong { display: block; font-size: 18px; color: var(--texto); }
a.atalho span { font-size: 15px; color: var(--texto-2); }
a.atalho:hover strong { color: var(--ambar); }
.triade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
@media (max-width: 900px) { .triade { grid-template-columns: 1fr; } }
.triade div { border: 1px solid var(--linha); border-radius: 14px; padding: 16px; background: var(--painel); }
.triade strong { display: block; letter-spacing: .14em; color: var(--ambar); font-size: 15px; margin-bottom: 6px; }
.triade span { font-size: 16px; color: var(--texto-2); }

/* alturas reservadas do AGORA (conteúdo JS não pode empurrar layout) */
.mudou { min-height: 58px; }
#julgamentos { min-height: 1450px; }
#horizonteCartao { min-height: 300px; }
#atalhosCartao { min-height: 330px; }
@media (max-width: 1000px) { #julgamentos { min-height: 1650px; } }

/* selos de revisão/expiração + comitê + ajustes da auditoria 2 */
.julg-pe { display: flex; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(38, 73, 58, .5); }
.selo { font-size: 13.5px; color: var(--texto-2); }
.selo-rev { color: #8FE0AE; font-weight: 700; }
.selo-auto { color: var(--ambar); font-weight: 700; }
.julg.expirado { opacity: .75; border-left-color: #5E6E61; }
.julg-expirado { color: var(--ambar); font-size: 16px; margin: 0 0 10px; font-weight: 650; }
.agora-grade aside { position: sticky; top: 96px; }
.comite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .comite { grid-template-columns: 1fr; } }
.comite div { border: 1px solid var(--linha); border-radius: 12px; padding: 14px; background: var(--painel); }
.comite strong { display: block; color: var(--ambar); font-size: 16px; margin-bottom: 4px; }
.comite span { font-size: 15.5px; color: var(--texto-2); }
@media (max-width: 700px) {
  .menu { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; padding-bottom: 4px; }
  .menu a { white-space: nowrap; font-size: 15.5px; padding: 9px 12px; }
  .topo-linha { gap: 10px; }
  .coleta-chip { order: 3; width: 100%; }
}

/* portões (home) */
a.portao { display: block; text-decoration: none; padding: 30px 28px 24px; position: relative; transition: transform .15s ease, border-color .15s ease; }
a.portao:hover { transform: translateY(-3px); border-color: var(--ambar); }
.portao h3 { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--texto); }
.portao-dado { margin: 10px 0 6px; font-size: 18.5px; color: var(--texto); }
.portao-sub { margin: 0 0 18px; font-size: 16px; color: var(--texto-2); }
.portao-entrar { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--ambar); letter-spacing: .04em; text-transform: uppercase; }
a.portao:hover .portao-entrar span { transform: translateX(4px); }
.portao-entrar span { transition: transform .15s ease; }

/* rodapé */
footer { background: #08150E; color: var(--texto-2); margin-top: 70px; font-size: 15px; border-top: 1px solid var(--linha); }
.rodape-linha { max-width: 1220px; margin: 0 auto; padding: 30px 24px; display: grid; gap: 9px; }
footer a { color: var(--texto); }
footer strong { color: var(--ambar); letter-spacing: .2em; }

/* impressão: papel */
@media print {
  body { background: #fff; color: #111; font-size: 13px; }
  body::before, .topo, .cta { display: none; }
  .cartao, .ronda, .data-carta { background: #fff; color: #111; box-shadow: none; border-color: #bbb; break-inside: avoid; }
}
