/* Use Furo's theme classes and state; also provide the same fallback for other themes. */
.plantuml-theme-pair { position: relative; }
.plantuml-theme-pair .only-light { display: block !important; }
.plantuml-theme-pair .only-dark { display: none !important; }
.plantuml-theme-pair .plantuml { margin: 0; }
.plantuml-theme-pair object, .plantuml-theme-pair img { max-width: 100%; }
div.plantuml-downloads {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
.plantuml-downloads a {
    color: var(--color-foreground-primary);
    text-decoration: underline;
}
div.plantuml-downloads a {
    padding: 0.25rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 0.2rem;
}
.plantuml-downloads a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media not print {
    body[data-theme="dark"] .plantuml-theme-pair .only-light { display: none !important; }
    body[data-theme="dark"] .plantuml-theme-pair .only-dark { display: block !important; }
    @media (prefers-color-scheme: dark) {
        body:not([data-theme="light"]) .plantuml-theme-pair .only-light { display: none !important; }
        body:not([data-theme="light"]) .plantuml-theme-pair .only-dark { display: block !important; }
    }
}
@media print {
    .plantuml-downloads { display: none !important; }
}
