/* 1. RESET E BOX MODEL - Garante que margens e preenchimentos sejam consistentes em todos os navegadores. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. BASE (ESTILOS GLOBAIS DE TAGS) - Define a aparência padrão do texto e do fundo. */
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.5;
}

h1 {
  margin: 1.0rem 0.0rem 0.5rem;
  font-weight: 600;
  line-height: 1.2;
  font-size: 2rem;
}

h2 {
    margin: 2rem 0 0.5rem;
    font-weight: 600;
    color: #000000;
    font-size: 1.5rem;
}

h3 {
    margin: 2rem 0 0.5rem;
    font-weight: 600;
    color: #000000;
}
h4 {
    
    margin-top: 1.0rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: #000000;
    font-size: 1.0rem;
}

p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #003366;
  text-decoration: underline;
}

/* ul da pagina do blog/notes*/
ul.indice {
  list-style: none;
  margin-top: 1.2rem;
}
/* li da pagina do blog/notes*/
ul.indice li {
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr; /* coluna da data + coluna do título */
  column-gap: 0.5rem;
  margin-bottom: 0.4rem; /* espaço reduzido entre artigos */
  line-height: 1.3;      /* linhas mais compactas */
}

/* 3. LAYOUT (ESTRUTURA DA PÁGINA) - Define os grandes blocos como Header, Content e Footer. */
header {
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid #ddd;
  background: #ffffff;
  color: #555;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

footer {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 1rem 1rem 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

/* 4. COMPONENTES E CLASSES ESPECÍFICAS - Elementos menores e reutilizáveis. */

/* Navegação interna do Header */
nav a {
  margin-right: 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: #0066cc;
}
nav a:hover {
  text-decoration: underline;
}

/* Logotipo em texto */
.text-logo {
  text-decoration: none;
  font-weight: 500;
  color: #000000;
  font-size: 1.0rem;
}
.text-logo:hover {
  color: #0066cc;
}

/* Metadados (Data e Autor) */
.autor {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.0rem;
}

/* Imagem com efeito Sticky */
.sticky-image {
  position: sticky;
  top: 40px; /* para ficar abaixo do header */ 
  z-index: 1; /* fica atrás do texto -1 */
  width: 100%;
  max-height: 100%; /* ajuste como quiser 260px */
  display: block;
  object-fit: cover;
  margin: 0rem 0;
  border-radius: 0px;
  margin-top: 0.0rem;
}

.legenda {
  font-size: 0.8rem;
  font-style: italic;
  color: #777;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  display: block;
}
.legenda-top {
  font-size: 0.8rem;
  font-style: italic;
  color: #777;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
  border-bottom: 1px solid #ddd;
}
.legenda-bottom {
  font-size: 0.8rem;
  font-style: italic;
  color: #777;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  display: block;
  border-top: 1px solid #ddd;
}

/* Imagem normal no fluxo da pagina */
.relative-image {
  position: relative;
  top: 10px; /* para ficar abaixo do header */ 
  width: 100%;
  max-height: 100%; /* ajuste como quiser 260px */
  object-fit: cover;
  margin: 1rem 0;
  border-radius: 4px;
}

ul.post { 
  list-style: initial; 
  margin-top: 0;
  margin-bottom: 1.0rem;
}

ul.post li { 
  display: list-item; 
  /*margin-bottom: 0.2rem; */
  line-height: 1.5;
  margin: 0rem 1.5rem;  
}

ol.post { 
  list-style: decimal; 
  margin-top: 0;
  margin-bottom: 1.0rem;
}

ol.post li { 
  display: list-item; 
  /*margin-bottom: 0.2rem; */
  line-height: 1.5;
  margin: 0rem 1.5rem;  
}
.disclaimer {
  font-size: 13px;
  margin-bottom: 1rem;
}

.tradutor {
  font-size: 13px;
  font-style: italic;
}

/* login restrito */
.login-container {
      margin: 4rem auto;
      padding: 2rem;
      border-radius: 4px;
      text-align: center;
      max-width: 500px;
}

.login-container input[type="password"] {
  width: 100%;
  max-width: 250px;
  padding: 0.6rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-container button {
  padding: 0.6rem 2rem;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.login-container button:hover { background: #0066cc; }
.error-msg { color: #cc0000; font-size: 0.85rem; margin-top: 0.5rem; }
.logout-btn { 
  font-size: 12px; 
  float: right; 
  color: #777; 
  text-decoration: none; 
  margin-top: 10px;
}

.separador {
      border: 0;                /* Remove o estilo padrão */
      border-top: 1px dashed #ccc ; /* Cria a linha real */
      margin: 20px 0;           /* Espaçamento em cima e embaixo */
    }