/* Portal Synergi. Cores e tipografia de docs/MARCA.md e docs/tokens.json.
   Fontes do sistema, nenhum recurso externo. Um acento (turquesa) por tela: o item ativo do menu. */
:root {
  --petroleo: #0B2B2E; --petroleo-claro: #14403F; --ardosia: #5E7D7C; --turquesa: #2BA8A0; --gelo: #E8F1F0;
  --surface: #F7FBFA; --surface-card: #FFFFFF; --ink: #0B2B2E; --ink-muted: #4F6B6A; --rule: #D3E0DE;
  --accent-text: #1A7D77; --bloco-tinta: #CFE3E0; --sev-alta: #D9822B;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --surface: #0B2B2E; --surface-card: #14403F; --ink: #E8F1F0; --ink-muted: #9FB5B3; --rule: #1E4F4E;
          --accent-text: #45BDB5; --bloco-tinta: #1E4F4E; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.mono, code, pre { font-family: var(--mono); }
.mudo { color: var(--ink-muted); }

/* Topo */
.topo { background: var(--petroleo); color: var(--gelo); display: flex; flex-wrap: wrap; align-items: center;
        gap: 8px 24px; padding: 12px 24px; border-bottom: 1px solid var(--petroleo-claro); }
.topo .marca { display: flex; }
.topo .marca img { display: block; height: auto; }
.topo nav { display: flex; flex-wrap: wrap; gap: 4px 4px; flex: 1 1 auto; }
.topo nav a { color: var(--gelo); text-decoration: none; padding: 6px 10px; border-bottom: 2px solid transparent; }
.topo nav a:hover { background: var(--petroleo-claro); }
.topo nav a.ativo { border-bottom-color: var(--turquesa); font-weight: 600; }
.sair { display: flex; align-items: center; gap: 12px; margin: 0; }
.sair .quem { font: 500 12px/1.3 var(--mono); color: #9FB5B3; }
.sair button { background: transparent; color: var(--gelo); border: 1px solid var(--ardosia); border-radius: 4px;
               padding: 6px 12px; font: inherit; cursor: pointer; }
.sair button:hover { background: var(--petroleo-claro); }

/* Conteúdo */
main { max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 12px;
     padding-top: 16px; border-top: 1px solid var(--rule); }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 24px 0 8px; }
h4, h5, h6 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
p, ul, ol, dl { margin: 0 0 16px; }
.texto > p, .texto > ul, .texto > ol, .texto > blockquote, .resumo { max-width: 70ch; }
li { margin-bottom: 4px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 2px solid var(--ardosia); color: var(--ink-muted); }
code { font-size: 14px; background: var(--bloco-tinta); padding: 1px 4px; border-radius: 2px; overflow-wrap: anywhere; }
pre { background: var(--surface-card); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; overflow-x: auto;
      font-size: 14px; line-height: 1.5; }
pre code { background: none; padding: 0; overflow-wrap: normal; }

.rolagem { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; background: var(--surface-card); font-size: 15px; line-height: 1.45; }
th, td { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; vertical-align: top; }
th { font-weight: 600; background: var(--bloco-tinta); }
td ul, td dl, td .rolagem { margin-bottom: 0; }
.alinha-right { text-align: right; } .alinha-center { text-align: center; }

.trilha { font-size: 14px; color: var(--ink-muted); margin-bottom: 16px; }
.origem { font-size: 14px; color: var(--ink-muted); margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--rule); }
.etiqueta { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
            border: 1px solid var(--ardosia); border-radius: 2px; padding: 2px 6px; }
.resumo { font-size: 18px; }
.lista-docs { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.lista-docs li { margin: 0; border-bottom: 1px solid var(--rule); }
.lista-docs a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 600; }
.lista-docs a:hover { background: var(--bloco-tinta); }

/* Campos de YAML */
dl.campos { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 0; border-top: 1px solid var(--rule); }
dl.campos > dt { font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
dl.campos > dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
dd > ul, dd > dl, dd > .rolagem { margin-bottom: 0; }

/* Status da tabela de preços: severidade com rótulo em texto, nunca só cor */
.status { font-weight: 600; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface-card); }
.status.alerta { border-left: 6px solid var(--sev-alta); }

/* Login */
.tela-login { background: var(--petroleo); color: var(--gelo); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login { width: 100%; max-width: 400px; padding: 40px 24px; margin: 0; }
.login img { display: block; height: auto; max-width: 100%; }
.login .rotulo { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #9FB5B3; margin: 8px 0 32px; }
.login label { display: block; font-size: 14px; margin: 16px 0 4px; }
.login input { width: 100%; padding: 10px 12px; font: inherit; color: var(--gelo); background: var(--petroleo-claro);
               border: 1px solid var(--ardosia); border-radius: 4px; }
.login input.mono { font-family: var(--mono); letter-spacing: 0.2em; }
.login input:focus-visible { outline-color: var(--gelo); }
.login button { width: 100%; margin-top: 24px; padding: 12px; font: inherit; font-weight: 600; cursor: pointer;
                color: var(--petroleo); background: var(--turquesa); border: 0; border-radius: 4px; }
.login .aviso { border: 1px solid var(--ardosia); border-left: 6px solid var(--sev-alta); border-radius: 4px; padding: 12px 16px; margin: 0 0 8px; }

@media (max-width: 640px) {
  .topo { padding: 12px 16px; }
  .topo nav { order: 3; flex-basis: 100%; }
  .sair { margin-left: auto; }
  .sair .quem { display: none; }
  main { padding: 24px 16px 48px; }
  h1 { font-size: 28px; } h2 { font-size: 21px; }
  dl.campos { grid-template-columns: 1fr; }
  dl.campos > dt { border-bottom: 0; padding-bottom: 0; }
}
@media print { .topo { display: none; } }
