/* Base do painel Nexar: cores, fonte e regras gerais, usadas por todas as páginas.
   Escuro por padrão (com opção de tema claro), detalhes dourados e títulos em serifa.
   Cor sempre acompanhada de texto. A CSP do nginx não aceita style="" nem fontes externas: tudo aqui é CSS local. */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --page: #f1f5f2;
  --panel: #ffffff;
  --panel-soft: #f5f9f6;
  --ink: #12302a;
  --muted: #4d6a5f;
  --line: #d3e2d8;
  --gold: #8a6a1c;
  --gold-soft: rgba(138, 106, 28, .12);
  --brand: #075b40;
  --brand-hover: #064631;
  --side: #0a2a20;
  --card-temp: linear-gradient(135deg, #eaf7ef, #f8fcf9 75%);
  --card-temp-line: #a9d6bb;
  --card-umid: linear-gradient(135deg, #e8f1fb, #f7fbff 75%);
  --card-umid-line: #adc9e8;
  --good: #126b3c;
  --good-bg: #e0f5e7;
  --good-line: #2f9e63;
  --warn: #714600;
  --warn-bg: #fff1bd;
  --warn-line: #d89a00;
  --bad: #922020;
  --bad-bg: #ffe2df;
  --bad-line: #c52b2b;
  --cinza: #7b8a93;
  --serie-temp: #1b9a52;
  --serie-umid: #2b78c2;
  --serie-fora: #9a7b25;
  --focus: #113fca;
  --radius: 14px;
  --base-scale: 1;
  --lateral: 208px;
}

:root.dark, body.dark {
  --page: #0a1014;
  --panel: #0e171c;
  --panel-soft: #131f26;
  --ink: #eef5f1;
  --muted: #9fb4ab;
  --line: #20323a;
  --gold: #dcb862;
  --gold-soft: rgba(220, 184, 98, .12);
  --brand: #dcb862;
  --brand-hover: #ecca7c;
  --side: #080e11;
  --card-temp: linear-gradient(135deg, #0f3b27, #0b1d17 72%);
  --card-temp-line: #1e6a45;
  --card-umid: linear-gradient(135deg, #0e2c4d, #0a1a2c 72%);
  --card-umid-line: #1f4f86;
  --good: #5eea96;
  --good-bg: rgba(34, 197, 94, .14);
  --good-line: #22c55e;
  --warn: #fbc94a;
  --warn-bg: rgba(251, 191, 36, .14);
  --warn-line: #f5b82e;
  --bad: #ff8f86;
  --bad-bg: rgba(239, 68, 68, .16);
  --bad-line: #ef4444;
  --cinza: #8fa0aa;
  --serie-temp: #2ecc71;
  --serie-umid: #3b9be8;
  --serie-fora: #dcb862;
  --focus: #a9c7ff;
}

* { box-sizing: border-box; }
html { font-size: calc(16px * var(--base-scale)); scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, Roboto, "Open Sans", Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, a, select, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--panel); color: var(--ink); padding: .6rem .9rem; border: 2px solid var(--focus); border-radius: 6px; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- rodapé fixo: créditos e apoiadores (montado por js/layout.js) ---------- */
.rodape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: .5rem 1.25rem; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .12); }
body.com-menu .rodape { left: var(--lateral); }
body.tem-rodape main { padding-bottom: 6rem; }
.rodape-info { min-width: 0; }
.rodape-info p { margin: 0; }
.rodape-titulo { font-family: var(--serif); font-size: .95rem; font-weight: 600; color: var(--ink); }
.rodape-texto { font-size: .74rem; line-height: 1.35; color: var(--muted); }
.rodape-logos { display: flex; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; flex: 0 0 auto; }
.brand-logo { display: flex; align-items: center; justify-content: center; height: 46px; padding: 5px 9px; background: #f4f7f5; border: 1px solid var(--line); border-radius: 8px; }
.brand-logo img { display: block; max-height: 34px; width: auto; height: auto; max-width: 96px; object-fit: contain; }
.brand-logo.see img { max-width: 48px; }
.brand-logo.secti img { max-width: 104px; }
.brand-logo.ete img { max-width: 92px; }
.brand-logo.facepe img { max-width: 92px; }
.brand-logo.agil img { max-width: 60px; }
@media (max-width: 1100px) { .rodape-texto:last-child { display: none; } }
@media (max-width: 850px) {
  /* no celular a barra de navegação já ocupa o rodapé da tela: créditos e logos ficam no fim da página */
  .rodape, body.com-menu .rodape { position: static; flex-direction: column; align-items: flex-start; padding: 1rem 1rem 5.5rem; box-shadow: none; }
  .rodape-texto:last-child { display: block; }
  .rodape-logos { flex-wrap: wrap; }
  body.tem-rodape main { padding-bottom: 1rem; }
}
