/* Aitorio Business Plan Styles - Professional Document Layout */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Calibri', 'Verdana', 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.8;
  color: #1a1a1a;
  background: #ffffff;
}
@media print {
  div {
    break-inside: avoid;
  }
}
.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 60px 80px;
}

/* Header - Business Plan Title Page */
.header {
  text-align: center;
  padding: 100px 40px 80px;
  border-bottom: 3px solid #1a1a1a;
  margin-bottom: 60px;
}

.header h1 {
  font-size: 2.8em;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.header p {
  font-size: 1.1em;
  color: #4a4a4a;
  font-weight: 400;
  font-style: italic;
}

/* Content - Document Body */
.content {
  padding: 0;
  max-width: 100%;
}

.content h1 {
  font-size: 2.2em;
  color: #1a1a1a;
  margin-top: 60px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
  font-weight: 700;
  page-break-after: avoid;
}

.content h2 {
  font-size: 1.7em;
  color: #1a1a1a;
  margin-top: 40px;
  margin-bottom: 18px;
  font-weight: 600;
  page-break-after: avoid;
}

.content h3 {
  font-size: 1.4em;
  color: #2a2a2a;
  margin-top: 32px;
  margin-bottom: 14px;
  font-weight: 600;
  page-break-after: avoid;
}

.content h4 {
  font-size: 1.2em;
  color: #3a3a3a;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  font-style: italic;
}

.content p {
  margin-bottom: 18px;
  text-align: left;
  line-height: 1.8;
}

.content ul,
.content ol {
  margin-left: 35px;
  margin-bottom: 18px;
  line-height: 1.8;
}

.content li {
  margin-bottom: 10px;
}

.content strong {
  color: #1a1a1a;
  font-weight: 700;
}

.content em {
  color: #3a3a3a;
  font-style: italic;
}

/* Tables - Professional Document Style */
.table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  background: white;
  border: 1px solid #d0d0d0;
  font-family: 'Arial', 'Helvetica', sans-serif;
}

th {
  background: #f5f5f5;
  color: #1a1a1a;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #1a1a1a;
  font-size: 0.9em;
}

td {
  padding: 10px 16px;
  border-bottom: 1px solid #d0d0d0;
  vertical-align: top;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

tr:last-child td {
  border-bottom: 1px solid #d0d0d0;
}

tbody tr:hover {
  background-color: #f0f0f0;
}

/* Code blocks */
pre {
  background: #f8f8f8;
  padding: 18px;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid #d0d0d0;
  font-size: 0.85em;
}

code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.88em;
  background: #f0f0f0;
  padding: 2px 5px;
  border: 1px solid #e0e0e0;
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #1a1a1a;
  padding-left: 24px;
  margin: 24px 0;
  color: #4a4a4a;
  font-style: italic;
  font-size: 0.95em;
}

/* Mermaid diagrams - Clean Document Style */
.mermaid {
  margin: 35px 0;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  overflow-x: auto;
  max-width: 100%;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Make Mermaid diagram text smaller */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon {
  font-size: 14px !important;
}

.mermaid .nodeLabel,
.mermaid .edgeLabel {
  font-size: 14px !important;
}

.mermaid .titleText {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.mermaid text {
  font-size: 14px !important;
}

/* Gantt chart specific */
.mermaid .taskText {
  font-size: 14px !important;
}

.mermaid .sectionTitle {
  font-size: 13px !important;
}

/* Pie chart specific */
.mermaid .pieCircle text {
  font-size: 14px !important;
}

.mermaid .legend text {
  font-size: 14px !important;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid #d0d0d0;
  margin: 48px 0;
}

/* Links */
a {
  color: #1a5490;
  text-decoration: underline;
}

a:hover {
  color: #0d3a6e;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 40px;
  margin-top: 80px;
  border-top: 3px solid #1a1a1a;
  font-size: 0.9em;
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  .container {
    box-shadow: none;
    max-width: 100%;
  }
  
  .header {
    page-break-after: always;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .mermaid {
    page-break-inside: avoid;
  }
  
  table {
    page-break-inside: auto;
    font-size: 0.85em;
  }
  
  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  th, td {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .container {
    padding: 40px 30px;
  }
  
  .header {
    padding: 60px 20px 50px;
  }
  
  .header h1 {
    font-size: 2em;
  }
  
  .header p {
    font-size: 1em;
  }
  
  .content h1 {
    font-size: 1.8em;
  }
  
  .content h2 {
    font-size: 1.5em;
  }
  
  .content h3 {
    font-size: 1.3em;
  }
  
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: 0.8em;
  }
  
  th, td {
    padding: 8px 10px;
  }
}

/* Table of Contents */
.toc {
  font-size: 0.9em;
  padding: 20px 25px;
  background: #f8f8f8;
  border: 1px solid #d0d0d0;
  margin: 30px 0;
}

.toc h2 {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.toc a {
  text-decoration: none;
  color: #1a5490;
  display: block;
  padding: 4px 0;
}

.toc a:hover {
  text-decoration: underline;
  color: #0d3a6e;
}

/* Page numbers for print */
@page {
  margin: 1in;
  @bottom-center {
    content: counter(page);
  }
}
