/* academic.css */
body {
    font-family: "Georgia", "Times New Roman", serif;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #111;
    margin-top: 2rem;
    font-weight: bold;
}

h1 { font-size: 2.2rem; border-bottom: 2px solid #eaeaea; padding-bottom: 0.5rem; }
h2 { font-size: 1.7rem; border-bottom: 1px solid #eaeaea; padding-bottom: 0.3rem; }
h3 { font-size: 1.4rem; }

/* Links */
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Code Blocks (for R or Python snippets) */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    overflow-x: auto;
}
code {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.9em;
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Blockquotes (good for definitions or theorems) */
blockquote {
    border-left: 4px solid #0066cc;
    margin: 1.5em 0;
    padding-left: 1em;
    font-style: italic;
    background: #f9fcfd;
    padding: 10px 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th { background-color: #f2f2f2; }

/* Images */
img { max-width: 100%; height: auto; display: block; margin: 20px auto; }

/* MathJax Display Equations */
.MathJax_Display { margin: 1em 0 !important; }