/* ================= WIKI PAGE ================= */
.wiki-page {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

/* ===== TÍTULO PRINCIPAL ===== */
.wiki-page h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

/* ===== TÍTULOS DE SEÇÃO ===== */
.wiki-page h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--color-border);
}

/* ===== SUBSEÇÕES ===== */
.wiki-page h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

/* ===== PARÁGRAFOS ===== */
.wiki-page p {
  margin: 0.6rem 0 1rem;
  color: var(--color-text-main);
}

/* ===== LISTAS ===== */
.wiki-page ul,
.wiki-page ol {
  margin: 0.6rem 0 1.2rem 1.5rem;
}

.wiki-page li {
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

/* ===== LINKS ===== */
.wiki-page a {
  color: var(--color-primary);
  text-decoration: none;
}

.wiki-page a:hover {
  text-decoration: underline;
}

/* ===== SUMÁRIO (TOC) ===== */
.wiki-toc {
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.wiki-toc h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  border: none;
  padding: 0;
}

.wiki-toc ol {
  margin-left: 1.2rem;
}

/* ===== LINKS DO SUMÁRIO (TOC) ===== */
.wiki-toc a {
  color: var(--color-text-main);   /* branco normal */
  text-decoration: none;
}

.wiki-toc a:hover {
  color: var(--color-primary);     /* muda para a cor primária ao passar o mouse */
  text-decoration: underline;
}


/* ===== SEÇÃO DE REFERÊNCIAS ===== */
#referencias ul {
  list-style: disc;
}

#referencias li a {
  word-break: break-word;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  border-top: 1px solid var(--footer-border);
  font-size: var(--font-size-sm);
}
.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--color-primary);
}
.site-footer p {
  margin: 0;
  line-height: 1.5;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .wiki-page {
    padding: 0.8rem;
  }

  .wiki-page h1 {
    font-size: 1.9rem;
  }

  .wiki-page h2 {
    font-size: 1.3rem;
  }
}
