/* Clean report style -- mimics Quarto default HTML output */
:root {
    --text-color: #1a1a1a;
    --muted-color: #6c757d;
    --border-color: #dee2e6;
    --bg-color: #ffffff;
    --code-bg: #f5f5f5;
    --accent-color: #2c5282;
    --link-color: #2b6cb0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Title and metadata */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin: 0.75rem 0;
}

em {
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

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

thead {
    background-color: #f8f9fa;
}

th {
    font-weight: 600;
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
}

td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}

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

/* Bold in tables for emphasis */
td strong, th strong {
    color: var(--accent-color);
}

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

li {
    margin: 0.3rem 0;
}

/* Code */
code {
    font-family: "SFMono-Regular", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
    font-size: 0.85em;
    background-color: var(--code-bg);
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

/* Images (charts) */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    body {
        max-width: none;
        padding: 0;
        font-size: 12px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; page-break-after: avoid; }
    h3 { font-size: 1rem; page-break-after: avoid; }
    table { page-break-inside: avoid; }
    img { max-width: 90%; page-break-inside: avoid; }
}
