/* Professional business report styling */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  max-width: 850px;
  margin: 0 auto;
  padding: 2.5rem;
  background: white;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0052cc;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid #0052cc;
  padding-bottom: 0.75rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #172b4d;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #dfe1e6;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #253858;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: #172b4d;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #dfe1e6;
}

th {
  background-color: #f4f5f7;
  font-weight: 600;
  color: #172b4d;
  border-bottom: 2px solid #0052cc;
}

tr:hover {
  background-color: #fafbfc;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #0052cc;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #505f79;
  background-color: #f4f5f7;
  padding: 1rem 1.25rem;
  border-radius: 4px;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 2px solid #dfe1e6;
  margin: 2.5rem 0;
}

/* Code and pre */
code {
  background-color: #f4f5f7;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.875rem;
  color: #c7254e;
}

pre {
  background-color: #f4f5f7;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  border-left: 3px solid #0052cc;
}

pre code {
  background: none;
  padding: 0;
  color: #172b4d;
}

/* Vega charts */
.vega-chart {
  margin: 2rem 0;
  text-align: center;
}

.vega-chart svg {
  max-width: 100%;
  height: auto;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  padding: 1rem;
  background: white;
}

/* Links */
a {
  color: #0052cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Metadata styling */
p em {
  color: #6b778c;
  font-size: 0.925rem;
}

/* Checkbox-style list items */
li:has(> *:first-child:is(✅, ❌, ⚡, 📈, 💡)) {
  list-style: none;
  margin-left: -1.5rem;
}
