/* Marble Studio docs: the Pro badge and the image-spot placeholder. */
.mms-pro {
  display: inline-block;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25em 0.5em;
  margin-left: 0.4em;
  border-radius: 0.3em;
  vertical-align: middle;
  color: #fff;
  background: var(--md-accent-fg-color, #ff6e42);
}
.md-typeset .admonition.abstract,
.md-typeset details.abstract {
  border-style: dashed;
}
.md-typeset .mms-shot img {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 4px;
}

/* Links and the accent take the landing page's ribbon blue (#8bc5d4), so the manual reads as the same product. */
[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #8bc5d4;
  --md-accent-fg-color: #8bc5d4;
}

/* Discussed sections (a panel, a quickstart step) sit in a subtle box. A panel screenshot floats on the RIGHT of
   the box with the text wrapping beside it (.mms-side); a wide shot or a clip spans the box (.mms-wide, .mms-clip).
   On a phone the float drops and everything stacks in one column. Colours are theme variables, so the box reads
   the same on the dark scheme and on a light one. */
.md-typeset .mms-box {
  display: flow-root;                      /* the box always wraps its floated screenshot */
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  background: rgba(128, 128, 128, 0.07);
  padding: 0.2rem 1rem 0.6rem;
  margin: 1.25em 0 1.75em;
}
.md-typeset .mms-box > h2,
.md-typeset .mms-box > h3 {
  margin-top: 0.7em;
}
.md-typeset .mms-box > :last-child {
  margin-bottom: 0.4em;
}
.md-typeset .mms-box img.mms-side {
  float: right;
  width: min(45%, 320px);
  margin: 0.3em 0 0.8em 1.2em;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 4px;
}
.md-typeset .mms-box p:has(> img.mms-side:only-child) {
  margin: 0;                               /* the float's paragraph takes no room of its own */
}
.md-typeset img.mms-wide,
.md-typeset video.mms-clip {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.8em 0;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 4px;
  background: #000;
}
/* Only the clips get a fixed shape (they are all 1280 x 800, so nothing shifts while they load). A wide screenshot
   keeps its own shape: a fixed ratio on an image squashes or stretches it. */
.md-typeset video.mms-clip {
  aspect-ratio: 16 / 10;
}
@media screen and (max-width: 45em) {
  .md-typeset .mms-box {
    padding: 0.2rem 0.7rem 0.5rem;
  }
  .md-typeset .mms-box img.mms-side {
    float: none;
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0.8em auto;
  }
}

/* Inside a box, the "exact words" folds and the callouts render flat: no inner frame, so there is never a
   box inside a box. The coloured left edge keeps them recognisable. */
.md-typeset .mms-box details,
.md-typeset .mms-box .admonition {
  border-width: 0 0 0 0.2rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-right: 0;
}
.md-typeset .mms-box details > summary,
.md-typeset .mms-box .admonition > .admonition-title {
  background: transparent;
  border-radius: 0;
}
