/*
 * FastCIT styles on top of pgmpy's custom.css. Colours come from the theme variables,
 * so the light and dark themes (html[data-theme]) both work.
 */

/* The hero has the page title above it, so it needs less space on top than on pgmpy.org. */
.hero-grid {
    padding-top: 0;
}

/* The summary of a test page (data type and API names). */
.bd-article dl.field-list {
    column-gap: 1rem;
    margin: 0 0 1.25rem;
}

.bd-article dl.field-list > dt {
    color: var(--pst-color-text-muted);
    font-weight: 600;
}

/*
 * Narrow screens: the theme's two-column grid (basic.css: fit-content(30%) for the names) breaks
 * the field names into single letters. Show each name above its value instead.
 */
@media (max-width: 40rem) {
    .bd-article dl.field-list {
        display: block;
    }

    .bd-article dl.field-list > dt {
        padding-left: 0;
        word-break: normal;
    }

    .bd-article dl.field-list > dd {
        margin: 0 0 0.5rem;
        padding-left: 0;
    }

    .bd-article dl.field-list > dd code.literal span.pre {
        white-space: normal;
        overflow-wrap: break-word;
    }
}

/* Long inline code, such as a full function call, wraps on narrow screens instead of leaving the column. */
.bd-article p code.literal span.pre,
.bd-article li code.literal span.pre {
    white-space: normal;
    overflow-wrap: break-word;
}

/* The file name above each example. */
.sd-tab-content .code-block-caption {
    font-size: 0.85rem;
    color: var(--pst-color-text-muted);
}
