/* Legal Theme - Professional government proposal and legal document styling */
/* Inspired by NSF GOALI proposal formatting and federal document standards */

body {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 11pt;
  line-height: 1.4;
}

.content-container {
  max-width: 8.5in;
  padding: 1in;
}

@media print {
  .content-container {
    padding: 1.25in !important;
    max-width: 6in !important;
  }
}

/* Formal heading styles */
.prose h1, h1 {
  font-size: 16pt !important;
  font-weight: bold !important;
  text-align: center !important;
  margin-bottom: 20pt !important;
  font-family: "Times New Roman", Times, Georgia, serif !important;
}

.prose h2, h2 {
  font-size: 13pt !important;
  font-weight: bold !important;
  margin-top: 16pt !important;
  margin-bottom: 10pt !important;
  font-family: "Times New Roman", Times, Georgia, serif !important;
}

.prose h3, h3 {
  font-size: 11pt !important;
  font-weight: bold !important;
  margin-top: 10pt !important;
  margin-bottom: 6pt !important;
  font-family: "Times New Roman", Times, Georgia, serif !important;
}

.prose h4, h4, .prose h5, h5, .prose h6, h6 {
  font-size: 11pt !important;
  font-weight: bold !important;
  font-style: italic !important;
  margin-top: 10pt !important;
  margin-bottom: 5pt !important;
  font-family: "Times New Roman", Times, Georgia, serif !important;
}

.prose p, p {
  font-size: 11pt !important;
  text-align: justify !important;
  margin-bottom: 10pt !important;
  font-family: "Times New Roman", Times, Georgia, serif !important;
}

.prose li {
  font-size: 11pt !important;
  font-family: "Times New Roman", Times, Georgia, serif !important;
}

/* Table styling for government documents */
.prose table {
  font-size: 9pt !important;
  border-collapse: collapse !important;
}

.prose table th {
  background-color: #f0f0f0 !important;
  font-weight: bold !important;
  border: 1px solid #333 !important;
}

.prose table td {
  border: 1px solid #333 !important;
}

/* Sidebar adjustments for formal documents */
.chapter-navigation {
  font-family: Arial, Helvetica, sans-serif;
}

/* Visual element spacing for legal documents - tighter than default */
:root {
  --visual-spacing-top: 12pt;
  --visual-spacing-bottom: 12pt;
  --visual-spacing-print-top: 10pt;
  --visual-spacing-print-bottom: 10pt;
}

/* Figure and image styling for legal documents */
figure {
  margin-top: 12pt;
  margin-bottom: 12pt;
}

figcaption {
  font-size: 10pt !important;
  font-style: italic;
  text-align: center;
  margin-top: 6pt;
}

/* SVG and diagram styling */
.svg-container,
.mermaid {
  margin-top: 12pt;
  margin-bottom: 12pt;
}

/* Images in legal documents */
img {
  margin-top: 12pt;
  margin-bottom: 12pt;
}

figure img {
  margin-top: 0;
  margin-bottom: 0;
}

/* Print-optimized styling */
@media print {
  body {
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .chapter-navigation, .mobile-chapter-nav {
    display: none !important;
  }
  
  .chapter-content {
    padding-left: 0 !important;
    margin: 0 !important;
  }
  
  /* Ensure no content bleeds to edges */
  * {
    box-sizing: border-box !important;
  }
}
