/* locust's manual: a few adjustments to sphinx_book_theme.
 *
 * Screenshots of a 1280-pixel-wide tracker are wide; give them the
 * content's full width, a border so a white page against a white
 * background still has an edge, and a caption that reads as a caption.
 */

img.screenshot,
figure img {
    width: 100%;
    height: auto;
    border: 1px solid var(--pst-color-border, #ccc);
    border-radius: 2px;
}

figcaption {
    font-size: 0.9em;
    font-style: italic;
}

/* Option and page-name tables: the first column is a literal and should
 * not wrap in the middle of an option name. */
table.option-table td:first-child,
table.option-table th:first-child {
    white-space: nowrap;
}

/* The language switcher under the logo (_templates/languages.html): the
 * languages on one line, the one being read in bold. */
nav.lc-languages {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 0.75em;
    font-size: 0.9em;
}

nav.lc-languages ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.9em;
    margin: 0;
    padding: 0;
    list-style: none;
}
