/* Small adjustments to the stock mdbook theme. */

/* The one-line summary under each page's title, written as a blockquote on the line after the H1. It is
   also what scripts/docs.sh puts in llms.txt, so it earns its prominence. */
.content h1 + blockquote {
    border-left: none;
    padding: 0 0 0.6rem 0;
    margin: -0.4rem 0 1.6rem 0;
    font-size: 1.1em;
    color: var(--fg);
    opacity: 0.75;
    border-bottom: 1px solid var(--quote-border);
}

.content h1 + blockquote p {
    margin: 0;
}

/* Diagrams sit on the page background rather than mermaid's own white, which is wrong in the dark themes. */
pre.mermaid {
    background: none;
    border: none;
    text-align: center;
    overflow-x: auto;
}

/* Tables in these docs are mostly two columns of prose; the stock theme lets them run narrow. */
.content table {
    width: 100%;
}

.content table td {
    vertical-align: top;
}
