/* Custom CSS for PyStrata documentation */

/* Improve code block styling */
.highlight {
    border-radius: 4px;
    margin: 1em 0;
}

/* Better spacing for admonitions */
.admonition {
    margin: 1.5em 0;
    padding: 1em;
    border-radius: 4px;
}

/* Math styling */
div.math {
    text-align: center;
    margin: 1.5em 0;
}

/* Improve table styling */
table.docutils {
    border-collapse: collapse;
    margin: 1em 0;
}

table.docutils th,
table.docutils td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

table.docutils th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Gallery grid styling */
.nbgallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.nbgallery-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.nbgallery-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Improve citation styling */
.citation {
    font-size: 0.9em;
    margin: 0.5em 0;
}

/* Better notebook cell styling */
.nbinput .highlight,
.nboutput .highlight {
    border-left: 3px solid #1f77b4;
    padding-left: 10px;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .nbgallery {
        grid-template-columns: 1fr;
    }
}
