/* css styles */

dl {
    display: block;
}

dt {
    width: auto;
}

@media (min-width: 768px) {
    dl {
        display: grid;
        /* minmax(0, 1fr) rather than 1fr: a grid track's automatic minimum is
           its content's intrinsic width, so wide content (a display equation,
           say) would otherwise stretch the grid past the page. */
        grid-template-columns: 15em minmax(0, 1fr);
        column-gap: 2em;
        row-gap: 0.5em;
        align-items: baseline;
    }

    dt {
        grid-column: 1;
        width: auto;
    }

    dd {
        grid-column: 2;
        margin-left: 0;
    }
}

dd {
    margin-left: 2em;
}

/* Keep generated figures inside their column instead of overflowing it. */
.cell-output-display img,
figure.figure img,
img.figure-img {
    max-width: 100%;
    height: auto;
}

/* Anything still too wide scrolls itself rather than the page. */
.math.display {
    overflow-x: auto;
    overflow-y: hidden;
}

.bottom-align-panel .quarto-layout-row {
    align-items: flex-end;
}

.bottom-align-panel .quarto-layout-cell {
    justify-content: flex-end !important;
}