/* Painel 50 Hz — identidade da newsletter «50 Hz» (azul-noite e dourado) */
@font-face { font-family: "Source Serif 4"; src: url("/fontes/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fontes/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fontes/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fontes/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --noite: #1C1D38;
  --noite-2: #2A2C4E;
  --dourado: #B0871F;
  --dourado-claro: #D9B252;
  --fundo: #FAF8F3;
  --cartao: #FFFFFF;
  --texto: #1F2933;
  --texto-2: #52606D;
  --texto-3: #7B8794;
  --linha: #E3DED3;
  --aprecisa: #A12C34;

  /* Cores reservadas às fontes de energia (versões seguintes) */
  --solar: #E0A526; --eolica: #1F7A7A; --hidrica: #2E6FB0; --armazenamento: #3B8C4A;
  --gas: #6B7280; --nuclear: #6A4C9C; --espanha: #E07A5F;
  --verde: #2F855A; --ambar: #D69E2E; --vermelho: #C53030;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --raio: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.contentor { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.estreito { max-width: 760px; }
.salto { position: absolute; left: -9999px; }
.salto:focus { left: 16px; top: 16px; background: #fff; color: var(--noite); padding: 8px 12px; z-index: 10; }

/* Faixa superior */
.faixa { background: var(--aprecisa); font-size: .85rem; }
.faixa-in { display: flex; justify-content: space-between; gap: 12px; }
.faixa a { color: #F7F0E1; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.faixa a:hover { text-decoration: underline; }
.faixa img { border-radius: 50%; }

/* Cabeçalho azul-noite com a onda dourada */
.topo { background: var(--noite); color: #fff; padding: 36px 0 56px; }
.onda { height: 90px; overflow: hidden; margin-bottom: 18px; }
.onda svg { width: 200%; height: 100%; animation: deslizar 10s linear infinite; }
.onda path { fill: none; stroke: var(--dourado); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.onda .eixo { stroke: #5A5C80; stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
@keyframes deslizar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .onda svg { animation: none; } }
.sobretitulo { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dourado-claro); margin-bottom: 10px; }
.topo h1 { font-size: clamp(2rem, 6vw, 3.3rem); letter-spacing: -.01em; }
.topo .lema { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #D4D5E6; max-width: 46ch; margin: 0; }

/* Secções */
section { padding: 56px 0; }
.alt { background: #F1EEE6; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
section h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--noite); }
.intro { color: var(--texto-2); max-width: 62ch; margin-bottom: 28px; }

/* Perguntas */
.perguntas { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .perguntas { grid-template-columns: repeat(2, 1fr); } }
.pergunta { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px 22px; display: flex; flex-direction: column; border-top: 4px solid var(--noite); }
.pergunta .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--noite); color: var(--dourado-claro); font-family: var(--serif); font-weight: 600; margin-bottom: 14px; }
.pergunta h3 { font-size: 1.22rem; color: var(--noite); }
.pergunta p { color: var(--texto-2); flex: 1; }
.estado { align-self: flex-start; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--dourado); border: 1px dashed var(--dourado); border-radius: 999px; padding: 4px 12px; }

/* Newsletter */
.newsletter { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.newsletter img { border-radius: 8px; flex-shrink: 0; }
.newsletter > div { flex: 1; min-width: 260px; }
.newsletter p { color: var(--texto-2); }
.botao { display: inline-block; text-decoration: none; background: var(--noite); color: #fff; padding: 11px 20px; border-radius: var(--raio); font-weight: 600; }
.botao:hover { background: var(--noite-2); }

/* Método */
.metodo { padding-left: 1.2em; margin: 0; }
.metodo li { margin-bottom: .8em; color: var(--texto-2); }
.metodo strong { color: var(--texto); }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding: 28px 0 36px; font-size: .9rem; color: var(--texto-2); }
.rodape p { margin: 0 0 .4em; }
.rodape .aviso { font-size: .8rem; color: var(--texto-3); max-width: 80ch; margin-top: .8em; }

/* ---------- v0.2: respostas ---------- */
:root { --carvao: #3F3F46; --biomassa: #8A6D3B; }
.topo-p { padding: 28px 0 32px; }
.topo-p h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); max-width: 30ch; }
.sobretitulo a { color: var(--dourado-claro); text-decoration: none; }
.resposta { padding: 36px 0 8px; }
.resposta .et { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dourado); font-weight: 600; margin-bottom: 6px; }
.frase { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.5; color: var(--noite); }
.frase strong { color: #8A2A2F; }
section h3 { font-size: 1.15rem; color: var(--noite); margin-top: 28px; }
.grafico { margin: 8px 0 18px; background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px; }
.grafico svg { width: 100%; height: auto; display: block; }
.grafico .g { stroke: var(--linha); stroke-width: 1; }
.grafico .ty { font: 11px var(--sans); fill: var(--texto-3); text-anchor: end; }
.grafico .tx { font: 11px var(--sans); fill: var(--texto-3); text-anchor: middle; }
.linha-carga { fill: none; stroke: var(--noite); stroke-width: 2.5; }
polygon.s-espanha, .s-espanha { fill: var(--espanha); background: var(--espanha); }
polygon.s-gas, .s-gas { fill: var(--gas); background: var(--gas); }
polygon.s-carvao, .s-carvao { fill: var(--carvao); background: var(--carvao); }
polygon.s-hidrica, .s-hidrica { fill: var(--hidrica); background: var(--hidrica); }
polygon.s-armazenamento, .s-armazenamento { fill: var(--armazenamento); background: var(--armazenamento); }
polygon.s-biomassa, .s-biomassa { fill: var(--biomassa); background: var(--biomassa); }
polygon.s-eolica, .s-eolica { fill: var(--eolica); background: var(--eolica); }
polygon.s-solar, .s-solar { fill: var(--solar); background: var(--solar); }
.legenda { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--texto-2); }
.pt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.nota-graf { font-size: .85rem; color: var(--texto-3); margin: 8px 0 0; }
.tabela { width: 100%; border-collapse: collapse; margin: 10px 0 8px; font-size: .95rem; background: var(--cartao); }
.tabela th { text-align: left; background: var(--noite); color: #fff; font-weight: 600; padding: 8px 10px; font-size: .85rem; }
.tabela td { padding: 7px 10px; border-bottom: 1px solid var(--linha); }
.tabela tr.total td { font-weight: 600; }
@media (max-width: 640px) { .tabela { font-size: .82rem; } .tabela th, .tabela td { padding: 6px 6px; } section .contentor > .tabela { display: block; overflow-x: auto; } }
.barras { display: grid; gap: 6px; margin: 10px 0 18px; }
.b-linha { display: grid; grid-template-columns: minmax(150px, 34%) 1fr 64px; gap: 10px; align-items: center; font-size: .9rem; }
.b-rot { color: var(--texto-2); }
.b-barra { background: #ECE7DC; border-radius: 4px; height: 16px; overflow: hidden; }
.b-val { display: block; height: 100%; border-radius: 4px; }
.b-num { font-weight: 600; text-align: right; color: var(--noite); }
@media (max-width: 560px) { .b-linha { grid-template-columns: 1fr 52px; } .b-rot { grid-column: 1 / -1; } }
.cobertura { display: grid; gap: 10px; margin: 12px 0 6px; }
.c-linha { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: 12px; align-items: center; font-size: .9rem; }
.c-rot { color: var(--texto-2); }
.c-barra { display: flex; height: 22px; border-radius: 4px; overflow: hidden; background: #ECE7DC; }
.seg { display: block; height: 100%; }
@media (max-width: 560px) { .c-linha { grid-template-columns: 1fr; gap: 4px; } }
.nav-perguntas { display: flex; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 8px; }
.nav-perguntas a { color: var(--noite); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--dourado); }
.texto ul { padding-left: 1.2em; } .texto li { margin-bottom: .6em; color: var(--texto-2); }
.pergunta .curta { color: var(--texto); font-size: .95rem; flex: 1; }
.pergunta .ver { align-self: flex-start; font-weight: 600; color: var(--noite); text-decoration: none; border-bottom: 2px solid var(--dourado); margin-top: 8px; }
.w0 { width: 0%; }
.w1 { width: 1%; }
.w2 { width: 2%; }
.w3 { width: 3%; }
.w4 { width: 4%; }
.w5 { width: 5%; }
.w6 { width: 6%; }
.w7 { width: 7%; }
.w8 { width: 8%; }
.w9 { width: 9%; }
.w10 { width: 10%; }
.w11 { width: 11%; }
.w12 { width: 12%; }
.w13 { width: 13%; }
.w14 { width: 14%; }
.w15 { width: 15%; }
.w16 { width: 16%; }
.w17 { width: 17%; }
.w18 { width: 18%; }
.w19 { width: 19%; }
.w20 { width: 20%; }
.w21 { width: 21%; }
.w22 { width: 22%; }
.w23 { width: 23%; }
.w24 { width: 24%; }
.w25 { width: 25%; }
.w26 { width: 26%; }
.w27 { width: 27%; }
.w28 { width: 28%; }
.w29 { width: 29%; }
.w30 { width: 30%; }
.w31 { width: 31%; }
.w32 { width: 32%; }
.w33 { width: 33%; }
.w34 { width: 34%; }
.w35 { width: 35%; }
.w36 { width: 36%; }
.w37 { width: 37%; }
.w38 { width: 38%; }
.w39 { width: 39%; }
.w40 { width: 40%; }
.w41 { width: 41%; }
.w42 { width: 42%; }
.w43 { width: 43%; }
.w44 { width: 44%; }
.w45 { width: 45%; }
.w46 { width: 46%; }
.w47 { width: 47%; }
.w48 { width: 48%; }
.w49 { width: 49%; }
.w50 { width: 50%; }
.w51 { width: 51%; }
.w52 { width: 52%; }
.w53 { width: 53%; }
.w54 { width: 54%; }
.w55 { width: 55%; }
.w56 { width: 56%; }
.w57 { width: 57%; }
.w58 { width: 58%; }
.w59 { width: 59%; }
.w60 { width: 60%; }
.w61 { width: 61%; }
.w62 { width: 62%; }
.w63 { width: 63%; }
.w64 { width: 64%; }
.w65 { width: 65%; }
.w66 { width: 66%; }
.w67 { width: 67%; }
.w68 { width: 68%; }
.w69 { width: 69%; }
.w70 { width: 70%; }
.w71 { width: 71%; }
.w72 { width: 72%; }
.w73 { width: 73%; }
.w74 { width: 74%; }
.w75 { width: 75%; }
.w76 { width: 76%; }
.w77 { width: 77%; }
.w78 { width: 78%; }
.w79 { width: 79%; }
.w80 { width: 80%; }
.w81 { width: 81%; }
.w82 { width: 82%; }
.w83 { width: 83%; }
.w84 { width: 84%; }
.w85 { width: 85%; }
.w86 { width: 86%; }
.w87 { width: 87%; }
.w88 { width: 88%; }
.w89 { width: 89%; }
.w90 { width: 90%; }
.w91 { width: 91%; }
.w92 { width: 92%; }
.w93 { width: 93%; }
.w94 { width: 94%; }
.w95 { width: 95%; }
.w96 { width: 96%; }
.w97 { width: 97%; }
.w98 { width: 98%; }
.w99 { width: 99%; }
.w100 { width: 100%; }
.b-val.w0 { width: 2px; }
.grafico .tu { font: 600 11px var(--sans); fill: var(--texto-2); }
.contas ol { padding-left: 1.2em; } .contas ol li { margin-bottom: .7em; color: var(--texto-2); }
.conta { background: var(--cartao); border: 1px solid var(--linha); border-left: 4px solid var(--dourado); border-radius: 6px; padding: 12px 16px; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.conta p { margin: 0 0 .4em; color: var(--texto); } .conta p:last-child { margin-bottom: 0; }
.contas .tabela { font-variant-numeric: tabular-nums; }
.assinatura { font-size: .88rem; color: var(--texto-3); border-top: 1px solid var(--linha); padding-top: 10px; margin-top: 28px; }
@media print { .faixa, .nav-perguntas { display: none; } .topo { background: #fff; color: var(--noite); padding: 0 0 10px; } .topo h1 { color: var(--noite); } .sobretitulo a { color: var(--dourado); } section { padding: 14px 0; } .conta, .tabela, tr { break-inside: avoid; } h2, h3 { break-after: avoid; } .rodape { display: none; } .contentor { max-width: none; padding: 0; } }
.contas .tabela td { white-space: nowrap; }
@media print { .contas h2 { break-before: page; } .contas h2:first-of-type { break-before: auto; } .contas .tabela { font-size: 8.5pt; } }
