/* Figures inserted by preprocessor/guide.py. The SVGs have a white background,
   so they stay legible in the dark themes; the frame keeps them from looking
   like a hole in the page. */
figure.guide-figure {
    margin: 1.5em 0;
    text-align: center;
}

figure.guide-figure img {
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border: 1px solid var(--table-border-color, #d0d0d0);
    border-radius: 4px;
}

figure.guide-figure figcaption {
    margin-top: 0.4em;
    font-size: 0.9em;
    color: var(--fg);
    opacity: 0.85;
    text-align: left;
}

figure.guide-figure figcaption .figure-number {
    font-weight: 600;
}

figure.guide-figure .figure-interactive {
    font-size: 0.85em;
}

/* The gallery chapter: Plotly pages in a frame and collapsible example output. */
figure.example-plot iframe {
    width: 100%;
    height: 480px;
    background: #ffffff;
    border: 1px solid var(--table-border-color, #d0d0d0);
    border-radius: 4px;
}

details.example-output {
    margin: 0.75em 0;
}

details.example-output summary {
    cursor: pointer;
    font-weight: 600;
}

details.example-output pre {
    overflow-x: auto;
    font-size: 0.85em;
    padding: 0.6em;
    background: var(--quote-bg, #f4f4f4);
    border-radius: 4px;
}
