/* The home page's example, compiled. At the column's full width a 1000-pixel panel fills
   the screen and pushes the explanation out of sight; at this size it reads as the answer
   to the YAML above it. */
img[src$="two-characters.svg"] {
  display: block;
  max-width: min(100%, 34rem);
  margin: 1rem auto 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgb(16 24 40 / 14%);
}

/* A gallery example drawn whole (#243): a panel, a strip of panels or a page, on the Gallery
   page and in the language reference. Sphinx keeps each file's name under _images/, which is
   how a page and a strip are told from a panel. On paper, each sits apart from the page. */
.bd-article img[src*="_images/"][src$=".svg"] {
  display: block;
  height: auto;
  max-width: min(100%, 34rem);
  margin: 1rem auto 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgb(16 24 40 / 14%);
}

/* A strip reads across, and its panels need the column's whole width to be seen. */
.bd-article img[src*="_images/"][src$=".strip.svg"] {
  max-width: 100%;
}

/* A page is tall: limited by height, so it fits on a screen. */
.bd-article img[src*="_images/"][src*=".page-"] {
  width: auto;
  max-height: 40rem;
}

/* Two pages of one document, side by side as a spread. */
.bd-article p:has(> img[src*=".page-"] + img[src*=".page-"]) {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.bd-article p:has(> img[src*=".page-"] + img[src*=".page-"]) img {
  max-width: calc(50% - 0.5rem);
  margin: 1rem 0 1.5rem;
}

/* A key card's own example (#319), compiled when the documentation is built: smaller than a
   gallery picture, since it shows one key, and set right under the document it is. */
.bd-article .scenet-example-picture img {
  display: block;
  height: auto;
  max-width: min(100%, 24rem);
  margin: 0.5rem 0 0.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgb(16 24 40 / 14%);
}

/* The front page's buttons, side by side under the sentence that says what Scenet does. */
.scenet-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.scenet-hero-buttons > * {
  margin: 0;
}

/* The AI-generated notice: said in full, as one compact line under the hero. */
.scenet-notice {
  font-size: 0.85rem;
  color: var(--pst-color-text-muted);
  border-left: 3px solid var(--pst-color-border);
  padding-left: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.scenet-notice p {
  margin: 0;
}

/* The tour's page, the hero: limited by height, so the sentence under it stays in sight. */
.bd-article img[src*="_images/"][src$="38-tour.page-1.svg"] {
  display: block;
  max-height: 26rem;
  width: auto;
  margin: 0.5rem auto 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgb(16 24 40 / 14%);
}
