/* Keep the standard documentation layout, with a quiet neutral palette. */
.wy-side-nav-search { background: #30383b; }
.wy-nav-top { background: #30383b; }
.wy-nav-content { max-width: 960px; }
a { color: #24646a; }
h1, h2, h3 { font-family: inherit; }
.wy-table-responsive table td { white-space: normal; }
@media (max-width: 768px) {
  .wy-nav-content { padding: 1.4em; }
}

/* Tool demonstrations fit the content column on desktop and mobile. */
.demo { margin: 1.5em 0; }
.demo img { display: block; width: 100%; max-width: 684px; height: auto; border-radius: 4px; }
.demo figcaption { margin-top: .5em; color: #555; font-size: .9em; }

/* Embedded tutorial videos keep a 16:9 frame in the content column. */
.video { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; margin: 1.5em 0 .4em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.video-caption { color: #555; font-size: .9em; margin-bottom: 1.5em; }

/* Product cards (BagaPie Assets, other add-ons). */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2em; margin: 1.5em 0; }
.card { border: 1px solid #e1e4e5; border-radius: 4px; overflow: hidden; background: #fff; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .card-body { padding: .7em .9em 1em; }
.card .card-body strong { display: block; margin-bottom: .3em; }
.card .card-body p { margin: 0 0 .6em; font-size: .92em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6em; margin: 1.2em 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
