/**
 * Business Report Style - Professional corporate formatting
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 11pt;
  line-height: 1.6;
  color: #1a1a1a;
  max-width: 8.5in;
  margin: 0.75in auto;
  padding: 0;
}

/* Report header */
h1 {
  font-size: 28pt;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.1in 0;
  line-height: 1.2;
  border-bottom: 4px solid #2563eb;
  padding-bottom: 0.15in;
}

/* Subtitle */
h1 + p {
  font-size: 12pt;
  font-weight: 500;
  color: #4b5563;
  margin: 0.1in 0 0.05in 0;
}

h1 + p + p {
  font-size: 9pt;
  color: #6b7280;
  margin: 0 0 0.25in 0;
  font-style: italic;
}

/* Horizontal divider */
hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 0.2in 0;
}

/* Section headers (h2) */
h2 {
  font-size: 16pt;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0.3in 0 0.15in 0;
  padding-top: 0.15in;
  border-top: 2px solid #dbeafe;
}

/* First h2 should not have top border */
h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Subsection headers (h3) */
h3 {
  font-size: 13pt;
  font-weight: 600;
  color: #1f2937;
  margin: 0.2in 0 0.1in 0;
}

/* Paragraphs */
p {
  margin: 0.1in 0;
  text-align: left;
}

/* Lists */
ul, ol {
  margin: 0.1in 0;
  padding-left: 0.3in;
}

li {
  margin: 0.06in 0;
}

/* Nested lists */
li ul, li ol {
  margin: 0.05in 0;
}

/* Blockquotes (for executive quotes) */
blockquote {
  margin: 0.15in 0.4in;
  padding: 0.15in 0.2in;
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  font-style: italic;
  color: #1e3a8a;
  font-size: 10.5pt;
}

blockquote p {
  margin: 0.05in 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.15in 0;
  font-size: 10pt;
  background: white;
}

thead {
  background: #1e3a8a;
  color: white;
}

th {
  padding: 0.1in;
  text-align: left;
  font-weight: 600;
  border: none;
}

td {
  padding: 0.08in;
  border-bottom: 1px solid #e5e7eb;
}

tr:nth-child(even) {
  background: #f9fafb;
}

tr:last-child td {
  border-bottom: 2px solid #1e3a8a;
}

/* Bold table rows (for totals) */
td strong {
  font-weight: 700;
}

/* Emphasis */
strong {
  font-weight: 600;
  color: #1a1a1a;
}

em {
  font-style: italic;
  color: #4b5563;
}

/* Metrics and numbers */
h3 + ul li strong:first-child {
  color: #2563eb;
  font-weight: 700;
}

/* Checkmarks for completed items */
p:has(✅) {
  background: #f0fdf4;
  padding: 0.08in;
  margin: 0.05in 0;
  border-radius: 4px;
  border-left: 3px solid #10b981;
}

/* Code/inline metrics */
code {
  font-family: 'Courier New', monospace;
  background: #f3f4f6;
  padding: 0.02in 0.06in;
  border-radius: 3px;
  font-size: 10pt;
  color: #dc2626;
  font-weight: 500;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Numbered sections in priority lists */
ol li strong:first-child {
  color: #2563eb;
  font-weight: 700;
}

/* Key highlights box */
h3:contains("Key Highlights") + ul {
  background: #dbeafe;
  padding: 0.15in;
  border-radius: 6px;
  list-style-position: inside;
}

/* Footer/appendix styling */
h2:last-of-type ~ p {
  font-size: 9pt;
  color: #6b7280;
}

/* Page breaks for print */
@media print {
  h2 {
    page-break-before: auto;
    page-break-after: avoid;
  }

  table {
    page-break-inside: avoid;
  }

  blockquote {
    page-break-inside: avoid;
  }
}

/* Header styling for financial data */
table caption {
  font-weight: 600;
  text-align: left;
  margin-bottom: 0.08in;
  color: #1f2937;
}
