/* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
/* SPDX-License-Identifier: Apache-2.0 */

/* Documentation figures use one quiet visual treatment across light and dark pages. */
.md-typeset .documentation-figure {
  width: 100%;
  margin: 2rem auto 2.25rem;
  text-align: center;
}

.md-typeset .documentation-figure img,
.md-typeset img[src*="assets/diagrams/"] {
  display: block;
  width: 100%;
  max-width: 52rem;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--openshell-rule);
  border-radius: 1rem;
  background: var(--openshell-paper-raised);
  box-shadow: 0 0.8rem 2.2rem rgba(20, 28, 27, 0.1);
}

.md-typeset .documentation-figure--wide img {
  max-width: 60rem;
}

.md-typeset .documentation-figure--portrait img {
  max-width: 40rem;
}

.md-typeset .documentation-figure figcaption {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--openshell-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-wrap: balance;
}

.md-typeset .documentation-figure figcaption code {
  font-size: 0.75rem;
}

body[data-md-color-scheme="slate"] .md-typeset .documentation-figure img {
  box-shadow: 0 0.9rem 2.4rem rgba(0, 0, 0, 0.28);
}

@media screen and (max-width: 48rem) {
  .md-typeset .documentation-figure {
    margin-block: 1.5rem 1.8rem;
  }

  .md-typeset .documentation-figure img,
  .md-typeset img[src*="assets/diagrams/"] {
    border-radius: 0.7rem;
  }
}
