.wy-nav-content {
    margin: 0;
    /* sphinx_rtd_theme defaults to max-width: 800px, which crops the page to
       a narrow column and makes the wide Mermaid diagrams hard to read.
       Widen it to use most of the available viewport instead. */
    max-width: 90%;
}

/* Fix: sphinx_rtd_theme sidebar sometimes loses its own scrollbar,
   trapping the ToC below the viewport with no way to scroll back up. */
.wy-nav-side {
    height: 100%;
    overflow-y: auto;
}

.wy-side-scroll {
    width: auto;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* sphinx_rtd_theme forces `.wy-nav-content img { height: auto !important; }`,
   which overrides plain HTML height="" attributes on acknowledgement logos.
   These classes win on specificity + !important so the logos stay small. */
.wy-nav-content img.ack-logo {
    height: 50px !important;
    width: auto !important;
    max-width: none;
    margin: 0 10px;
}

.wy-nav-content img.ack-logo-wide {
    width: 130px !important;
    height: auto !important;
    max-width: none;
}