/* Site público da Pilatiza. Tema claro do painel (D-67) com destaque pêssego (D-68); fontes servidas pelo próprio site.
   Contraste (WCAG) dos pares usados: texto 15,9:1 e --muted 5,9:1 sobre --bg; links (--accent) 4,9:1 sobre --bg e
   5,3:1 sobre --surface; --accent-hover 6,5:1 sobre --bg. */

@font-face { font-family: "Inter"; src: url("/fontes/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fontes/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fontes/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --surface2: #F4F4F0;
  --line: #ECEBE6;
  --border: #E4E3DD;
  --text: #1A1B1F;
  --strong: #0E0F12;
  --text2: #3A3D45;
  --muted: #5A5F69;
  --accent: #A9532A;
  --accent-hover: #8F4321;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titulos: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--texto);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  /* Rodapé no fim da tela também nas páginas curtas. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.faixa {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Links: sempre sublinhados (não dependem só da cor) e com contorno visível no foco do teclado. */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.pular {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pular:focus { top: 8px; }

/* Cabeçalho */
.topo {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topo .faixa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
/* Logo oficial (D-76), em preto; o arquivo tem uma margem própria em volta do desenho. */
.marca { display: block; line-height: 0; }
.logo { display: block; height: 2.25rem; width: auto; }
.logo-grande { display: block; width: 100%; max-width: 18rem; height: auto; margin-left: -0.6%; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
nav li, nav li + li { margin: 0; }
.topo nav a { font-size: 0.9375rem; }
nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

/* Conteúdo */
main {
  flex: 1 0 auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1, h2, h3 {
  font-family: var(--titulos);
  font-weight: 700;
  color: var(--strong);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.375rem; }
li + li { margin-top: 0.5rem; }
li::marker { color: var(--muted); }
strong { font-weight: 600; color: var(--strong); }

.atualizacao { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.destaque { font-size: 1.1875rem; line-height: 1.5; color: var(--text2); }

.paginas { list-style: none; padding: 0; margin-top: 1.5rem; }
.paginas li + li { margin-top: 0.625rem; }

/* Tabelas: normais no computador; no celular, cada linha vira um cartão (ver abaixo). */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.5;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--strong);
}
tbody th { font-weight: 600; color: var(--strong); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Rodapé */
.rodape {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.875rem;
}
.rodape .faixa { padding-top: 1.5rem; padding-bottom: 2rem; }
.rodape p { margin: 0 0 0.75rem; }

@media (min-width: 40em) {
  .faixa { padding-left: 24px; padding-right: 24px; }
  .logo { height: 2.5rem; }
  .logo-grande { max-width: 22rem; }
  main { padding-top: 3rem; padding-bottom: 4rem; }
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.375rem; }
}

/* Celular: a tabela vira uma lista de cartões, sem rolagem lateral. Os papéis ARIA no HTML mantêm a estrutura para os
   leitores de tela; o nome de cada coluna vem do atributo data-rotulo (o mesmo texto do cabeçalho da tabela). */
@media (max-width: 39.99em) {
  table, thead, tbody, tr, th, td { display: block; }
  table { background: transparent; border: 0; }
  thead tr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.75rem;
  }
  tbody th, tbody td { padding: 0; border: 0; }
  tbody th {
    font-family: var(--titulos);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
  }
  tbody td { margin-top: 0.625rem; }
  td::before {
    content: attr(data-rotulo);
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
  }
}
