/* The look is not designed yet: this only sets rules and examples apart from the text. */
.mtp-rule {
  border-left: 3px solid var(--pst-color-primary);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1rem 0;
}
.mtp-rule-head {
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.mtp-example {
  border: 1px solid var(--pst-color-border);
  border-radius: 6px;
  margin: 1rem 0;
}
.mtp-example .highlight {
  margin: 0;
}
.mtp-live {
  padding: 1rem;
}
.mtp-term-tip {
  position: absolute;
  z-index: 1000;
  max-width: min(24rem, calc(100vw - 16px));
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pst-color-border);
  border-radius: 6px;
  background: var(--pst-color-on-background);
  color: var(--pst-color-text-base);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.15);
  font-size: 0.875rem;
  line-height: 1.45;
  pointer-events: none;
}
.mtp-term-tip strong {
  font-weight: 600;
}
.mtp-diagram {
  margin: 1.5rem auto;
  max-width: 30rem;
}
.mtp-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--pst-font-family-base);
}
.mtp-d-person {
  fill: var(--pst-color-primary-bg);
  stroke: var(--pst-color-primary);
  stroke-width: 1.5;
}
.mtp-d-file,
.mtp-d-part {
  fill: var(--pst-color-on-background);
  stroke: var(--pst-color-border);
  stroke-width: 1.5;
}
.mtp-d-live {
  fill: var(--pst-color-surface);
  stroke: var(--pst-color-border);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.mtp-d-name {
  fill: var(--pst-color-text-base);
  font-size: 15px;
  font-weight: 600;
}
.mtp-d-code {
  fill: var(--pst-color-text-base);
  font-family: var(--pst-font-family-monospace);
  font-size: 14px;
}
.mtp-d-sub,
.mtp-d-label,
.mtp-d-livename {
  fill: var(--pst-color-text-muted);
  font-size: 12.5px;
}
.mtp-d-livename {
  font-weight: 600;
}
.mtp-d-arrow {
  stroke: var(--pst-color-text-muted);
  stroke-width: 1.5;
}
.mtp-d-headpath {
  fill: var(--pst-color-text-muted);
}

/* An example page, open in a frame, as a reader sees it. */
iframe.mtp-page {
  display: block;
  width: 100%;
  height: 25rem;
  margin: 1rem 0;
  border: 1px solid var(--pst-color-border);
  border-radius: 6px;
  background: #fff;
}

/* A whole .mtpc is long: it scrolls inside its block. */
div.mtpc-whole pre,
pre.mtpc-whole {
  max-height: 24rem;
  overflow: auto;
}
