/* The site's own styles, beside mdBook's. Each colour is one of mdBook's theme variables, so
   the banner, the cards and the frame read in each of its light and dark themes. */

/* The banner at the top of each page: its release, and a link to every release. */
.mw-release {
    display: inline-block;
    margin: 0 0 0.5em;
    padding: 0.15em 0.6em;
    border: 1px solid var(--quote-border);
    border-radius: 1em;
    background: var(--quote-bg);
    color: var(--fg);
    font-size: 0.8em;
}

/* The start page's two choices, side by side where they fit. */
.mw-choose {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.content a.mw-card,
.content a.mw-card:link,
.content a.mw-card:visited {
    display: block;
    flex: 1 1 16rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--quote-border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.45;
    text-decoration: none;
}

.content a.mw-card:hover,
.content a.mw-card:focus-visible {
    border-color: var(--links);
    background: var(--quote-bg);
    text-decoration: none;
}

.mw-card strong {
    color: var(--links);
    font-size: 1.1em;
}

/* A reader's API reference, framed in the book. */
.mw-frame {
    display: block;
    width: 100%;
    height: 85vh;
    margin: 1rem 0;
    border: 1px solid var(--quote-border);
    border-radius: 4px;
    background: var(--bg);
}

/* A guide's page: Typst's HTML export of the guide, inside the book. Each diagram on a line of
   its own, its caption, the block Typst writes after it, small beneath it; and room after each
   table, before the label of the next. */
.mw-guide img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em 0 0.4em;
}

.mw-guide img + div {
    margin-bottom: 1.5em;
    font-size: 0.875em;
}

.mw-guide table {
    margin-bottom: 1em;
}
