/* Wider chapter column: mdBook defaults to --content-max-width: 750px (~narrow on large screens). */
:root {
    --content-max-width: 70vw;
}

/* flex related styling */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* Single combined SVG per example */
object.rv-viz-combined {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 240px;
}

/* Example pages: avoid hard-coded negative margins; responsive overflow */
.rv-vis-block {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.rv-vis-block object[type="image/svg+xml"] {
    transition: opacity 0.2s ease, filter 0.2s ease;
}
