/* 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;
}

/* The look shared with mtp-lang.org: the Aris background, the Aris fonts and the BRAIID colors.
   The logo is a stand-in until the exported files replace it. */
html[data-theme="light"] {
  --pst-color-background: #fafaf8;
  --pst-color-on-background: #ffffff;
  --pst-color-surface: #f3f2ef;
  --pst-color-text-base: #3c4952;
  --pst-color-text-muted: #6b7d8a;
  --pst-color-border: #e3e6e8;
  --pst-color-primary: #8b4dbf;
  --pst-color-primary-bg: #f1e8fc;
  --pst-color-secondary: #ad71f2;
  --pst-color-link: #7d45c4;
  --pst-color-link-hover: #8b4dbf;
  --pst-color-inline-code: #7d45c4;
}
html[data-theme="dark"] {
  --pst-color-background: #111518;
  --pst-color-on-background: #13181b;
  --pst-color-surface: #1a2024;
  --pst-color-text-base: #ced6dc;
  --pst-color-text-muted: #8a9aa6;
  --pst-color-border: #273036;
  --pst-color-primary: #b98af5;
  --pst-color-primary-bg: #2a2236;
  --pst-color-secondary: #b98af5;
  --pst-color-link: #c9a3f7;
  --pst-color-link-hover: #d8bdf9;
  --pst-color-inline-code: #c9a3f7;
}
html {
  --pst-font-family-base: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --pst-font-family-heading: "Crimson Pro", Georgia, "Times New Roman", serif;
  --pst-font-family-monospace: "Source Code Pro", ui-monospace, Menlo, monospace;
}
h1, h2, h3, h4, .bd-content h1, .bd-content h2, .bd-content h3 {
  font-weight: 500;
}
.navbar-brand img.logo__image {
  height: 2rem;
}
