/*
 * Yices documentation layout, written for the stock Sphinx classic theme.
 * Copyright (c) 2026, SRI International
 * SPDX-License-Identifier: BSD-3-Clause
 * Full terms: licenses/YICES-BSD-3-Clause.txt
 */

body {
    max-width: 67.5rem;
    margin: 0 auto;
    line-height: 1.55;
}

div.document {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
}

div.documentwrapper {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: auto;
    min-width: 0;
}

div.bodywrapper {
    margin: 0;
}

div.body {
    min-width: 0;
    max-width: none;
    padding: 1.25rem 2rem 2.5rem;
    overflow-wrap: anywhere;
}

div.sphinxsidebar {
    grid-column: 1;
    grid-row: 1;
    float: none;
    width: auto;
    margin: 0;
    font-size: 0.9rem;
}

div.sphinxsidebarwrapper {
    padding: 1.25rem 1rem;
}

img.logo {
    width: 175px;
    max-width: 100%;
    height: auto;
}

div.related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.75rem;
    padding: 0.4rem 1rem;
}

div.related li.right {
    float: none;
}

div.body pre {
    max-width: 100%;
    overflow: auto;
}

div.body p {
    text-align: left;
}

div.body code.literal,
div.body code.literal .pre,
div.body .sig,
div.body .sig .pre,
div.sphinxsidebar code.literal,
div.sphinxsidebar code.literal .pre {
    white-space: normal;
    overflow-wrap: anywhere;
}

div.body table.docutils {
    display: block;
    max-width: 100%;
    overflow: auto;
    border-collapse: collapse;
}

div.body table.docutils th,
div.body table.docutils td {
    border: 1px solid #a9b3c5;
    padding: 0.4rem 0.65rem;
}

div.body figure,
div.body div.figure {
    margin: 1.5rem 0;
    text-align: center;
}

div.body img,
div.body object {
    max-width: 100%;
    height: auto;
}

div.body .lemma {
    border-inline-start: 3px solid #1A419d;
    padding-inline-start: 1rem;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.yices-build-notice {
    margin: 0;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
}

@media screen and (max-width: 52rem) {
    div.document {
        grid-template-columns: minmax(0, 1fr);
    }

    div.documentwrapper {
        grid-column: 1;
    }

    div.sphinxsidebar {
        grid-column: 1;
        grid-row: 2;
    }

    div.body {
        padding: 1rem;
    }

    table.genindextable td {
        display: block;
        width: auto !important;
    }
}

@media print {
    div.document {
        display: block;
    }

    div.body {
        padding: 0;
    }
}
