/* BNCC em dados: estilos compartilhados pelas páginas de Computação, Matemática e Arte */
:root { --e0: #166c40; --e1: #3a62c9; --e2: #c9661b; --e3: #8a3fb5; --e4: #c2366b; --e0-soft: #e3f1e8; --e1-soft: #e5ebfa; --e2-soft: #fbeadb; --e3-soft: #f1e6f8; --e4-soft: #fbe4ec; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --e0: #6fd39b; --e1: #8eaaf2; --e2: #f0a35a; --e3: #c79af0; --e4: #f08bb0; --e0-soft: #173323; --e1-soft: #1b2440; --e2-soft: #3a2614; --e3-soft: #2e1d3a; --e4-soft: #3a1a26; }
}
:root[data-theme="dark"] { --e0: #6fd39b; --e1: #8eaaf2; --e2: #f0a35a; --e3: #c79af0; --e4: #f08bb0; --e0-soft: #173323; --e1-soft: #1b2440; --e2-soft: #3a2614; --e3-soft: #2e1d3a; --e4-soft: #3a1a26; }

.rede { min-width: 760px; }
.sec-oculta { display: none; }
.rede .no rect { stroke: var(--ink); stroke-width: 1.2; cursor: pointer; }
.rede .no text { font-size: 11px; font-weight: 600; pointer-events: none; }
.rede .no:focus { outline: none; }
.rede .no:focus rect { stroke-width: 3; }
.rede .lig { fill: none; stroke: var(--ink-3); stroke-opacity: .35; }
.rede.foco .no { opacity: .18; }
.rede.foco .lig { stroke-opacity: .06; }
.rede.foco .no.on { opacity: 1; }
.rede.foco .lig.on { stroke: var(--ink); stroke-opacity: .85; }
.rede .no.sel rect { stroke-width: 3; }
.rede .ano-titulo { font: 800 15px var(--display); }
.eixo-e0 { fill: var(--e0-soft); } .eixo-e1 { fill: var(--e1-soft); } .eixo-e2 { fill: var(--e2-soft); } .eixo-e3 { fill: var(--e3-soft); } .eixo-e4 { fill: var(--e4-soft); }
.barra-e0 { fill: var(--e0); } .barra-e1 { fill: var(--e1); } .barra-e2 { fill: var(--e2); } .barra-e3 { fill: var(--e3); } .barra-e4 { fill: var(--e4); }
.sw-e0 { background: var(--e0-soft); } .sw-e1 { background: var(--e1-soft); } .sw-e2 { background: var(--e2-soft); } .sw-e3 { background: var(--e3-soft); } .sw-e4 { background: var(--e4-soft); }
.legenda b { border-radius: 4px; }

.detalhe { border-bottom: 1.5px dashed var(--line); padding-bottom: 12px; min-height: 60px; }
.detalhe h3 { margin: 0 0 4px; font-size: 19px; }
.detalhe p { margin: 0 0 8px; }
.detalhe .trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; font-size: 14px; }
.detalhe .trilha .seta { color: var(--ink-3); }
.detalhe ul { margin: 6px 0 8px; padding-left: 1.2rem; font-size: 15px; }
.cod { font: 600 13px ui-monospace, Consolas, monospace; border: 1.5px solid var(--ink); border-radius: 8px; padding: 1px 6px; background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; }
button.cod:hover, a.cod:hover { background: var(--pill); }

.mapa-calor { border-collapse: separate; border-spacing: 6px; min-width: 520px; width: 100%; }
.mapa-calor th { font: 800 14px var(--display); text-align: left; padding: 4px 6px; }
.mapa-calor td button { width: 100%; min-height: 52px; border: 1.5px solid var(--ink); border-radius: 12px; font: 800 22px var(--display); color: var(--ink); cursor: pointer; }
.mapa-calor td button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sombra); }
.mapa-calor td button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }

.busca input { font: inherit; font-size: 16px; border: 1.5px solid var(--ink); border-radius: 99px; padding: 8px 16px; min-width: min(420px, 80vw); background: var(--paper); color: var(--ink); }
.lista-habs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.lista-habs li { border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; background: var(--paper); border-left-width: 8px; }
.lista-habs li.eixo-e0 { border-left-color: var(--e0); } .lista-habs li.eixo-e1 { border-left-color: var(--e1); } .lista-habs li.eixo-e2 { border-left-color: var(--e2); } .lista-habs li.eixo-e3 { border-left-color: var(--e3); } .lista-habs li.eixo-e4 { border-left-color: var(--e4); }
.lista-habs .topo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 4px; }
.lista-habs .topo strong { font-size: 15px; }
.lista-habs .meta-hab { font-size: 13px; color: var(--ink-2); }
.lista-habs p { margin: 0 0 6px; }
.lista-habs .acoes { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
