html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.prose h2,
.prose h3 {
    font-weight: 700;
    color: #0d4b89;
    font-family: "Exo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-margin-top: 100px;
}

.prose a:hover,
.prose h2,
.prose h3 {
    color: #0d4b89
}

.prose img,
.prose pre {
    border-radius: .375rem
}

.prose code,
.prose pre {
    background-color: #f3f4f6
}

.prose {
    color: #333;
    margin: 0 auto
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: .75rem
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.7
}

.prose ol,
.prose ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem
}

.prose li {
    margin-bottom: .5rem
}

.prose img {
    margin: 1.5rem 0
}

/* Table Styling */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.prose table caption {
    padding: 1rem;
    font-weight: 700;
    color: #0d4b89;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.prose thead {
    background-color: #0d4b89;
    color: white;
}

.prose th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.prose td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    line-height: 1.5;
}

.prose tr:last-child td {
    border-bottom: none;
}

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

.prose tr:hover td {
    background-color: #f1f5f9;
}

.prose a {
    color: #fc8102;
    text-decoration: underline
}

.prose blockquote {
    border-left: 4px solid #fc8102;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563;
    margin: 1.5rem 0
}

.prose pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0
}

.prose code {
    padding: .2rem .4rem;
    border-radius: .25rem;
    font-family: monospace
}

/* Table of Contents Styling */
.toc-container {
    background: #f8fafc;
    border: none;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d4b89;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.toc-list {
    list-style: decimal inside;
    padding: 0;
    margin: 0;
    color: #0d4b89;
}

.toc-list li {
    margin-bottom: 0.75rem;
    font-weight: 500;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 0.5rem;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list li.ml-4 {
    list-style: none;
    font-size: 0.9rem;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
}

.toc-list li.ml-4::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: #fc8102;
}

.toc-list a {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #6b7280
}