/* User Provided Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* Space Grotesk font for body text and reading content */
body, .content, article, .article-content, .myst {
    font-family: Space Grotesk, 'Times New Roman', Times, serif;
}

/* Ensure headings also use Space Grotesk */
h1, h2, h3, h4, h5, h6 {
    font-family: Space Grotesk, 'Times New Roman', Times, serif;
}

/* Paragraph styling with Space Grotesk */
p {
    font-family: Space Grotesk, 'Times New Roman', Times, serif;
    line-height: 1.6;
}

/* Lists and other text elements */
li, blockquote, dd, dt {
    font-family: Space Grotesk, 'Times New Roman', Times, serif;
}

/* Keep code elements in monospace */
code, pre, .highlight {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Custom styling for MyST elements */
.admonition {
    border-left: 4px solid #007acc;
    padding: 1rem;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.admonition.important {
    border-left-color: #ff6b35;
    background: #fff5f5;
}

.admonition.note {
    border-left-color: #17a2b8;
    background: #f0f8ff;
}

/* Figure styling */
figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    border-color: var(--pst-color-border);
}

table td {
    border-color: var(--pst-color-border);
}

/* Dark mode table styles */
@media (prefers-color-scheme: dark) {
    table th {
        background-color: var(--pst-color-background);
        color: var(--pst-color-text-base);
    }
    
    table td {
        border-color: #444;
    }
}

/* Hide MyST logo from TOC */
.bd-sidebar .bd-sidebar__bottom {
    display: none;
}
