/* PILS Documentation Custom Styles */

/* Code block improvements */
.md-typeset code {
    font-size: 0.85em;
}

/* Table improvements */
.md-typeset table:not([class]) {
    font-size: 0.85em;
}

.md-typeset table:not([class]) th {
    background-color: var(--md-primary-fg-color);
    color: var(--md-primary-bg-color);
}

/* Admonition tweaks */
.md-typeset .admonition {
    font-size: 0.9em;
}

/* Grid cards */
.grid.cards > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    padding: 0;
}

.grid.cards > ul > li {
    list-style: none;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Mermaid diagram centering */
.mermaid {
    text-align: center;
}

/* API reference formatting */
.md-typeset h3 code {
    font-size: 1em;
    background: none;
    padding: 0;
}

/* Parameter tables */
.md-typeset table:not([class]) td:first-child code {
    white-space: nowrap;
}

/* Schema tables */
.md-typeset table:not([class]) td:nth-child(2) {
    font-family: var(--md-code-font-family);
    font-size: 0.85em;
}
