:root {
  --background: #faf8f5;
  --foreground: #1a1612;
  --card: #f5f2ed;
  --primary: #8b5a2b;
  --primary-light: #c4956a;
  --secondary: #e8e4dc;
  --muted: #9a8b7a;
  --accent: #d4880f;
  --border: #ddd5c8;
  --copper: #b87333;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow-card: 0 8px 30px -8px rgba(26, 22, 18, 0.12);
  --shadow-hover: 0 12px 40px -10px rgba(26, 22, 18, 0.18);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--primary);
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-desktop a, .nav-mobile a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.nav-desktop a:hover, .nav-mobile a:hover {
  color: var(--foreground);
}

.nav-desktop a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.active {
  display: flex;
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

/* Hero */
.hero {
  padding: 140px 1.5rem 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.greeting {
  font-style: italic;
  color: var(--copper);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease-out;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  animation: slideUp 0.6s ease-out 0.1s both;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease-out 0.2s both;
}

.hero-description {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  animation: slideUp 0.6s ease-out 0.3s both;
}

.hero-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 3rem auto 0;
  animation: fadeIn 0.6s ease-out 0.4s both;
}

/* Pillars (Home Grid) */
.pillars {
  padding: 60px 0 80px;
}

.pillars-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pillars-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.pillars-header p {
  color: var(--muted);
}

/* Ajuste para centralizar o único card */
.pillars-grid.single-column {
  display: flex;
  justify-content: center;
}

.pillars-grid.single-column .pillar-card {
  max-width: 500px;
  width: 100%;
}

.pillar-card {
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.pillar-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pillar-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pillar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pillar-links a {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--secondary);
  color: var(--foreground);
  text-decoration: none;
  border-radius: 20px;
  transition: var(--transition);
}

.pillar-links a:hover {
  background: var(--primary);
  color: white;
}

.pillar-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.pillar-cta:hover {
  color: var(--accent);
}

/* Book Highlight (Home) & Book Section (Family Page) */
.book-highlight {
  padding: 80px 0;
  background: var(--secondary);
}

.book-card, .book-card-page {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.book-icon {
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  background: rgba(139, 90, 43, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  font-weight: 500;
}

.book-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0.5rem 0 1rem;
}

.book-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.book-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 600px) {
  .book-card, .book-card-page {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  display: block;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Styles (Familia & Contato) */
.page-hero {
  padding: 140px 1.5rem 60px;
  text-align: center;
}

.page-hero .icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 60px 0;
}

.content-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.content-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.content-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-card .arrow {
  color: var(--primary);
  font-size: 1.25rem;
  transition: var(--transition);
}

.content-card:hover .arrow {
  transform: translateX(4px);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Featured Card Style */
.content-card.featured {
  background: linear-gradient(135deg, var(--card) 0%, var(--secondary) 100%);
  margin-bottom: 2rem;
}

/* Book Section Specifics */
.book-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent);
}

/* Contact Page Specifics */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.75rem;
  width: 55px;
  height: 55px;
  background: rgba(139, 90, 43, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info a,
.contact-info p {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}

.contact-info a:hover {
  color: var(--primary);
}

.contact-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* =========================================
   ESTILOS DA CRÔNICA (Migrado do HTML)
   ========================================= */

.chronicle-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.chronicle-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    /* Alinhamento à esquerda é melhor para leitura em telas pequenas. 
       Se quiser justificado, descomente as duas linhas abaixo: */
    text-align: left;
    /* text-align: justify; */
    /* hyphens: auto; */
}

/* Títulos coloridos da crônica */
.chronicle-title, .chronicle-subtitle {
    color: var(--primary); /* Certifique-se que essa var existe no topo do CSS */
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}
.chronicle-subtitle {
    margin-top: 3rem;
}

.chronicle-highlight {
    background-color: #fdfbf7;
    border-left: 4px solid var(--copper);
    padding: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* --- FOTOS E FIGURAS --- */
figure.memory-figure {
    margin: 2rem 0;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
}

figure.memory-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    max-height: 500px;
}

figure.memory-figure figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-family: var(--font-body);
    font-style: italic;
}

/* Placeholder para imagem quebrada */
.img-missing {
    background-color: #eee;
    border: 2px dashed #ccc;
    color: #777;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
}

/* --- LISTA DA TURMA (Refatorada para UL/LI) --- */
.class-list {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.class-list h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
    /* Reset de estilo de lista */
    list-style: none;
    padding: 0;
    margin: 0;
}

.landgraf-highlight {
    background-color: #e3f2fd;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
    color: #0d47a1;
}

.missing-people-alert {
    margin-top: 2rem;
    border-top: 1px dashed #ccc;
    padding-top: 1rem;
}

/* =========================================
   PÁGINA FAMÍLIA RENNÓ (Genealogia)
   ========================================= */

.bio-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.bio-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333; 
  margin-bottom: 1.2rem;
  text-align: justify;
}

.highlight-box {
  background-color: #fdfbf7; 
  border-left: 4px solid var(--copper);
  padding: 20px;
  margin: 2rem 0;
  border-radius: 4px;
}

/* --- Estilo da Árvore Genealógica --- */
.renno-tree {
  list-style: none;
  padding-left: 0;
}

.gen-title {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.6rem;
  margin-top: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.sub-title {
  font-family: var(--font-display);
  color: var(--copper);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.person-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: var(--transition);
}

/* Pequeno efeito hover para manter consistência com o resto do site */
.person-card:hover {
  box-shadow: var(--shadow-hover);
}

.person-name {
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.person-details {
  font-size: 0.9rem;
  color: #666; /* Ou var(--muted) */
  line-height: 1.5;
}

/* --- Indentação para sub-níveis (Filhos/Netos) --- */
.sub-list {
  margin-left: 20px;
  border-left: 2px solid #e0e0e0;
  padding-left: 15px;
  list-style: none;
  margin-top: 10px;
}

.descendant-group {
  margin-left: 15px;
  margin-top: 5px;
  font-size: 0.9rem;
  color: #555;
}

.btn-link {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 8px;
  transition: var(--transition);
}

.btn-link:hover {
  background-color: #e3dcd0; /* Um pouco mais escuro que secondary */
  color: var(--foreground);
}

/* =========================================
   PÁGINA JOANA & MARTIM (Timeline)
   ========================================= */

/* Nota: Já existe uma .bio-container na seção Família Rennó.
   Esta regra abaixo reforça o estilo para esta página específica. */
.bio-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 2rem 0 4rem; 
}

.timeline-block {
    border-left: 3px solid var(--border);
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-block::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid #fff;
}

.timeline-year {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.bio-text { 
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: #333; 
    margin-bottom: 1rem; 
    text-align: justify; 
}

/* Estilo das Imagens */
figure.bio-figure { 
    margin: 1.5rem 0; 
    text-align: center; 
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}

figure.bio-figure img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 4px; 
}

figure.bio-figure figcaption { 
    font-size: 0.9rem; 
    color: #666; 
    margin-top: 10px; 
    font-style: italic; 
}

.img-placeholder { 
    background: #eee; 
    height: 250px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #777; 
    border: 2px dashed #ccc; 
    padding: 20px;
    font-size: 0.9rem;
}

/* Destaque para Lara e Ilana */
.special-note {
    background-color: #fff0f5;
    border: 1px solid #ffc0cb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 3rem; 
}

/* =========================================
   ESTILOS EXCLUSIVOS DA PÁGINA DE DOWNLOAD
   (Migrados do HTML)
   ========================================= */

.book-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-top: -2rem; /* Leve sobreposição no hero para efeito visual */
    position: relative;
    z-index: 10;
    border: 1px solid var(--border);
}

.book-cover-container {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    margin: 0 auto;
}

.book-cover-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    display: block;
}

.book-details {
    flex: 2;
    min-width: 300px;
}

.book-details h2 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.book-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.synopsis {
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.download-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.download-section h3 {
    font-family: var(--font-display);
    color: var(--copper);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

/* Cores específicas para cada serviço */
.dl-drive { background-color: #1FA463; } /* Verde Drive */
.dl-mega { background-color: #D9272E; }  /* Vermelho Mega */
.dl-mediafire { background-color: #0070F0; } /* Azul Mediafire */

/* Ícones simples via texto */
.dl-icon { margin-right: 8px; font-size: 1.1rem; }

@media (max-width: 768px) {
    .book-showcase { padding: 1.5rem; flex-direction: column; }
    .book-cover-container { max-width: 100%; width: 200px; }
    .book-details h2 { font-size: 1.8rem; }
}

/* =========================================
   PÁGINA OS GOMES (Estilos Específicos)
   ========================================= */

.article-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding-bottom: 4rem; 
}

.article-block { 
    margin-bottom: 4rem; 
    text-align: justify; 
}

.article-block h2 { 
    font-family: var(--font-display); 
    color: var(--primary); 
    margin-top: 2rem; 
    margin-bottom: 1.5rem; 
    font-size: 2rem; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 0.5rem; 
}

.article-block h3 { 
    font-family: var(--font-display); 
    color: var(--copper); 
    margin-top: 2rem; 
    margin-bottom: 1rem; 
    font-size: 1.5rem; 
}

.article-block p { 
    margin-bottom: 1.2rem; 
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: var(--foreground); 
}

/* Estilo para Imagens e Legendas */
figure.img-container {
    margin: 2rem 0;
    text-align: center;
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Placeholder cinza - Apenas para a DIV de fallback */
.img-placeholder {
    background-color: #eee;
    color: #777;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-family: monospace;
    border: 2px dashed #ccc;
}

/* A imagem real respeita a proporção (height: auto) */
figure.img-container img {
    max-width: 100%;
    height: auto; 
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

figure.img-container figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 0.5rem;
    font-family: var(--font-body);
}

/* Box de Curiosidade Histórica */
.history-sidebar {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-left: 4px solid var(--accent);
}

.history-sidebar h4 {
    color: var(--primary);
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Genealogia */
.genealogy-tree { 
    list-style: none; 
    padding-left: 0; 
}

.genealogy-tree > li { 
    margin-bottom: 2rem; 
    background: #fff; 
    padding: 1.5rem; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); 
}

.genealogy-tree strong { 
    color: var(--primary); 
    font-family: var(--font-display); 
    font-size: 1.3rem; 
    display: block; 
    margin-bottom: 0.5rem; 
}

.descendants-list { 
    list-style: none; 
    padding-left: 1rem; 
    margin-top: 1rem; 
    font-size: 1rem; 
    color: #555; 
    border-left: 2px solid var(--border); 
    margin-left: 0.5rem; 
}

.descendants-list li { 
    margin-bottom: 0.8rem; 
    padding-left: 0.8rem; 
    position: relative; 
}

.descendants-list li span.code { 
    display: inline-block; 
    font-size: 0.75rem; 
    color: #999; 
    width: 100px; /* Um pouco mais largo para os códigos que forem longo dos Gomes */
    font-family: monospace; 
}

/* Breadcrumb Específico */
.breadcrumb { 
    margin-bottom: 2rem; 
    font-size: 0.9rem; 
    color: var(--muted); 
}

.breadcrumb a { 
    text-decoration: none; 
    color: var(--primary); 
}

/* =========================================
   ADENDOS - PÁGINA OS LANDGRAF
   ========================================= */

/* Estilo específico para referência documental */
.doc-ref {
    font-size: 0.85rem;
    color: #666;
    background: #f9f9f9;
    padding: 1rem;
    border: 1px dotted #ccc;
    margin-top: 1rem;
    font-family: var(--font-body);
}

/* AJUSTE DE LARGURA DO CÓDIGO GENEALÓGICO
   Substitui/Complementa a regra anterior para ser mais flexível.
   Assim funciona tanto para códigos longos (Gomes) quanto curtos (Landgraf). 
*/
.descendants-list li span.code { 
    display: inline-block; 
    font-size: 0.75rem; 
    color: #999; 
    min-width: 50px; /* Garante alinhamento mínimo */
    margin-right: 10px; /* Dá espaço se o código for longo */
    font-family: monospace; 
}

/* =========================================
   ADENDOS - PÁGINA OS SCHEIN
   ========================================= */

/* Box de destaque/aviso (Usado para o aviso de Manutenção) */
.highlight-box { 
    background: var(--card); 
    padding: 2rem; 
    border-radius: 8px; 
    border-left: 4px solid var(--primary); 
    margin: 2rem 0; 
    font-style: italic; 
    color: var(--muted); 
}

/* Pequeno ajuste para listas aninhadas dentro da árvore,
   caso elas não estejam pegando o recuo correto globalmente */
.descendants-list ul {
    list-style: none;
    padding-left: 1rem;
}

/* =========================================
   ADENDOS - PÁGINA TONICO RENNÓ
   ========================================= */

/* Container de Biografia */
.bio-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 2rem 0 4rem; 
}

/* Títulos específicos dentro da biografia */
.bio-container h3 {
    font-family: var(--font-display);
    color: var(--copper);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.bio-text { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #333; 
    margin-bottom: 1.5rem; 
    text-align: justify; 
}

/* Caixa de Citação */
.quote-box { 
    background-color: #f9f9f9; 
    border-left: 4px solid var(--primary); 
    padding: 15px 20px; 
    margin: 1.5rem 0; 
    font-style: italic; 
    color: #555; 
}

/* ESTILO DO POEMA */
.poem-box { 
    background-color: #fff0f5; 
    padding: 2rem; 
    border-radius: 8px; 
    margin: 2rem 0; 
    text-align: center; 
    border: 1px solid #ffc0cb; 
    font-family: var(--font-display); 
}

.poem-title { 
    font-weight: bold; 
    margin-bottom: 1rem; 
    color: #880e4f; 
    font-size: 1.4rem; 
}

.poem-verse { 
    font-style: italic; 
    margin-bottom: 1rem; 
    color: #555; 
    line-height: 1.6; 
}

.poem-author {
    font-size: 0.85rem; 
    margin-top: 1rem; 
    color: #880e4f;
}

/* ESTILO DO JORNAL ANTIGO */
.newspaper-box { 
    background-color: #f4e4bc; 
    padding: 2rem; 
    margin: 3rem 0; 
    border: 1px solid #d4c49c; 
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1); 
    font-family: 'Times New Roman', serif; 
}

.newspaper-header { 
    text-align: center; 
    border-bottom: 2px solid #333; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}

.newspaper-title { 
    font-size: 1.8rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #1a1a1a;
}

.newspaper-meta { 
    font-size: 0.9rem; 
    font-style: italic; 
    margin-top: 5px; 
    color: #444;
}

.newspaper-content { 
    font-size: 1rem; 
    line-height: 1.6; 
    text-align: justify; 
    color: #222;
}

.newspaper-content p { 
    margin-bottom: 10px; 
}

/* Estilo para Imagens e Figuras na Bio */
figure.bio-figure { 
    margin: 2rem 0; 
    text-align: center; 
    background: #fff; 
    padding: 10px; 
    border: 1px solid #eee; 
    border-radius: 8px; 
}

figure.bio-figure img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 4px; 
}

figure.bio-figure figcaption { 
    font-size: 0.9rem; 
    color: #666; 
    margin-top: 10px; 
    font-style: italic; 
    text-align: center;
    padding: 0 10px; 
}

figure.bio-figure figcaption strong { 
    color: var(--primary); 
    display: block; 
    margin-top: 5px; 
}

/* Box Origem (Azul) */
.origin-box { 
    background-color: #e3f2fd; 
    border: 1px solid #bbdefb; 
    border-radius: 8px; 
    padding: 2rem; 
    margin-top: 3rem; 
}

/* Lista de Documentos */
.doc-list { 
    background: #fff; 
    padding: 1.5rem; 
    border: 1px dashed #ccc; 
    border-radius: 4px; 
    list-style: none; 
}

.doc-list li { 
    margin-bottom: 0.8rem; 
    padding-left: 1.5rem; 
    position: relative; 
    font-family: var(--font-body);
}

.doc-list li::before { 
    content: '📄'; 
    position: absolute; 
    left: 0; 
    font-size: 0.9rem;
}