body {
    font-family: 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    margin: 1in;
    color: #333;
}

h1 {
    color: #1f4e79;
    font-size: 24pt;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 2px solid #1f4e79;
}

h2 {
    color: #2e5984;
    font-size: 18pt;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h3 {
    color: #3d6b9a;
    font-size: 14pt;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border: 1px solid #ddd;
}

strong {
    color: #1f4e79;
}

a {
    color: #1f4e79;
    text-decoration: none;
}

ul, ol {
    margin-left: 2em;
}

li {
    margin-bottom: 0.5em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    body {
        margin: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        margin: 1rem;
        font-size: 14px;
        line-height: 1.6;
    }

    h1 { font-size: 20pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 13pt; }

    /* Reduce left indent for lists on small screens */
    ul, ol {
        margin-left: 1rem;
        padding-left: 1.25rem;
    }

    /* Make the TOC more compact */
    nav#TOC {
        margin: 1rem 0;
    }
    nav#TOC ul {
        padding-left: 1rem;
    }

    /* Override hanging-indents for narrow viewports */
    div.hanging-indent {
        margin-left: 0;
        text-indent: 0;
    }

    /* Columns stack on mobile */
    .columns {
        flex-direction: column;
        gap: 1rem;
    }

    /* Improve readability for quotes */
    blockquote {
        margin-left: 1rem;
        margin-right: 0;
    }

    /* Tables and code blocks should scroll rather than overflow */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }
    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-x: auto;
    }
}
