/*
 * Estilo da landing pública — Fase 5, plano 05-01.
 *
 * Arquivo, nunca inline: em produção o helmet aplica a CSP padrão, com
 * style-src 'self' https: e SEM 'unsafe-inline'. Estilo embutido passaria em
 * desenvolvimento e quebraria só depois do deploy.
 *
 * Tipografia de sistema. A Fase 3 já removeu fonte de terceiro do projeto:
 * quem abre uma página pública não escolheu entregar o IP dele a ninguém.
 */
:root {
  --azul: #003366;
  --ouro: #ffd700;
  --tinta: #1a1a1a;
  --tinta-fraca: #555;
  --linha: #d8dee6;
  --fundo: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fundo);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 0 1rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  color: var(--azul);
  margin: 0 0 .75rem;
  border-bottom: 4px solid var(--ouro);
  padding-bottom: .6rem;
}

h2 {
  font-size: 1.3rem;
  color: var(--azul);
  margin: 2.25rem 0 .5rem;
}

section { margin-bottom: 1.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .75rem;
}

caption {
  text-align: left;
  font-size: .85rem;
  color: var(--tinta-fraca);
  padding-bottom: .5rem;
}

th, td {
  text-align: left;
  padding: .6rem .5rem;
  border-bottom: 1px solid var(--linha);
}

td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

th[scope="row"] { font-weight: 400; color: var(--tinta-fraca); }

strong { color: var(--azul); }

/* Cabeçalho de coluna alinha com o dado que ele nomeia. */
thead th[scope="col"] { text-align: right; color: var(--tinta-fraca); font-size: .85rem; }
thead th[scope="col"]:first-child { text-align: left; }

/* Navegação entre estados — Fase 5, plano 05-02. Sem ela a página é uma ilha. */
nav { margin: 2.5rem 0 1rem; }

nav ul {
  list-style: none;
  padding: 0;
  margin: .75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

a { color: var(--azul); }

a:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }

main > ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .4rem 1rem;
}

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--linha);
  font-size: .85rem;
  color: var(--tinta-fraca);
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  body { font-size: 1rem; }
}
