/* The documentation site's colours (mkdocs.yml: extra_css), from the app's icon: a dark slate header, the orange of
   its x as the accent, a darker orange-brown for links on white (4.7:1), the bright orange for links on dark. */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1b2a2f;
  --md-primary-fg-color--light: #2e434a;
  --md-primary-fg-color--dark: #111b1e;
  --md-accent-fg-color: #de7324;
  --md-accent-fg-color--transparent: rgba(222, 115, 36, 0.1);
  --md-typeset-a-color: #b85a14;
  --pmx-slate: #1b2a2f;
  --pmx-slate-dark: #111b1e;
  --pmx-orange: #de7324;
  --pmx-orange-text: #b85a14; /* the orange for text and buttons on white: 4.7:1 with white */
  --pmx-muted: #9aa7a9;
  --pmx-card-bg: #ffffff;
  --pmx-band-bg: #f4f1ec;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1b2a2f;
  --md-primary-fg-color--light: #2e434a;
  --md-primary-fg-color--dark: #111b1e;
  --md-accent-fg-color: #de7324;
  --md-accent-fg-color--transparent: rgba(222, 115, 36, 0.1);
  --md-typeset-a-color: #de7324;
  --pmx-orange-text: #de7324;
  --pmx-card-bg: var(--md-default-bg-color--light);
  --pmx-band-bg: #222f33;
}

/* the grey of the icon's dots for the footer's secondary text */
.md-footer-meta {
  --md-footer-fg-color--light: #9aa7a9;
}

/* Buttons: the primary one in the orange-brown that holds 4.7:1 with white text */
.md-typeset .md-button--primary {
  background-color: var(--pmx-orange-text);
  border-color: var(--pmx-orange-text);
  color: #fff;
}

.md-typeset .md-button--primary:hover,
.md-typeset .md-button--primary:focus {
  background-color: var(--pmx-slate);
  border-color: var(--pmx-slate);
  color: #fff;
}

/* The home page (docs/index.md) ---------------------------------------------------------------------------------- */

/* the hero: the slate of the header, in both schemes, running on from it */
.md-typeset .pmx-hero {
  background: linear-gradient(160deg, var(--pmx-slate) 0%, var(--pmx-slate-dark) 100%);
  color: #f3f5f5;
  border-radius: 0.4rem;
  margin: 0 0 2rem;
  padding: 2.2rem 2.4rem 2rem;
}

.md-typeset .pmx-hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}

.md-typeset .pmx-hero__picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.45);
}

.md-typeset .pmx-hero__picture:empty {
  display: none;
}

.md-typeset .pmx-hero h1 {
  color: #fff;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.2rem;
}

.md-typeset .pmx-hero__logo {
  display: block;
  width: 88px;
  height: auto;
  border-radius: 18%;
}

.md-typeset .pmx-hero__tagline {
  color: #f6b37c; /* a lighter orange: 8:1 on the slate */
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.md-typeset .pmx-hero p {
  color: #dfe5e6;
}

.md-typeset .pmx-hero a:not(.md-button) {
  color: #f6b37c;
}

.md-typeset .pmx-hero .highlight,
.md-typeset .pmx-hero pre {
  max-width: 26rem;
}

.md-typeset .pmx-hero pre > code {
  background-color: #0b1214;
  color: #f3f5f5;
  font-size: 0.85rem;
}

.md-typeset .pmx-hero .md-clipboard {
  color: #9aa7a9;
}

.md-typeset .pmx-hero .md-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  margin: 0.3rem 0.4rem 0.3rem 0;
}

.md-typeset .pmx-hero .md-button:hover,
.md-typeset .pmx-hero .md-button:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* on the slate, the primary button is the bright orange with dark text (4.5:1) */
.md-typeset .pmx-hero .md-button--primary {
  background-color: var(--pmx-orange);
  border-color: var(--pmx-orange);
  color: var(--pmx-slate-dark);
}

.md-typeset .pmx-hero .md-button--primary:hover,
.md-typeset .pmx-hero .md-button--primary:focus {
  background-color: #f08a3c;
  border-color: #f08a3c;
  color: var(--pmx-slate-dark);
}

/* the cards: an orange rule at the top, the icons in orange */
.md-typeset .grid.cards > ul > li {
  background-color: var(--pmx-card-bg);
  border-top: 3px solid var(--pmx-orange);
}

.md-typeset .grid.cards .twemoji,
.md-typeset .pmx-trust__icon {
  color: var(--pmx-orange-text);
}

.md-typeset .grid.cards .lg {
  height: 2rem;
  width: 2rem;
}

.md-typeset .pmx-tiles > ul > li {
  border-top-width: 2px;
  font-size: 0.68rem;
}

.md-typeset .pmx-tiles > ul > li p {
  margin: 0.3em 0;
}

.md-typeset .pmx-tiles .twemoji,
.md-typeset .pmx-tiles .twemoji svg {
  height: 1.3rem;
  width: 1.3rem;
}

.md-typeset .pmx-tiles > ul > li strong {
  display: block;
  font-size: 0.8rem;
  margin: 0.2em 0 0.1em;
}

/* the strip of charts, and the gallery: pictures the width of their card, on white even in the dark scheme (the
   charts are drawn on white) */
.md-typeset .grid.pmx-strip,
.md-typeset .grid.pmx-gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
}

.md-typeset .pmx-strip > ul > li,
.md-typeset .pmx-gallery > ul > li {
  border-top: 0;
  padding: 0.6rem;
}

.md-typeset .pmx-strip img,
.md-typeset .pmx-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 0.2rem;
}

.md-typeset .pmx-strip p,
.md-typeset .pmx-gallery p {
  font-size: 0.7rem;
  margin: 0.4em 0 0;
}

/* the trust strip: two statements side by side, one above the other on a phone */
.md-typeset .pmx-trust {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  background-color: var(--pmx-band-bg);
  border-radius: 0.4rem;
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
}

.md-typeset .pmx-trust p {
  margin: 0.3em 0;
}

.md-typeset .pmx-trust__icon {
  height: 1.8rem;
  width: 1.8rem;
}

.md-typeset .pmx-trust__icon svg {
  height: 1.8rem;
  width: 1.8rem;
}

/* The How do I pages' pictures of the app: a frame, as a window has */
.md-typeset figure.pmx-shot img {
  border: 1px solid rgba(27, 42, 47, 0.25);
  border-radius: 0.25rem;
  box-shadow: 0 0.2rem 0.8rem rgba(17, 27, 30, 0.12);
}

/* a dialog narrower than a window: its text at about the size of the page's */
.md-typeset figure.pmx-shot--dialog img {
  max-width: min(100%, 27rem);
}

.md-typeset figure.pmx-shot figcaption {
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  max-width: 36rem;
}

/* the hero's picture under its text on a tablet, left out on a phone */
@media screen and (max-width: 59.9375em) {
  .md-typeset .pmx-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .pmx-hero__picture {
    display: none;
  }

  /* three charts of the strip on a phone; the gallery has the rest */
  .md-typeset .pmx-strip > ul > li:nth-child(n + 4) {
    display: none;
  }

  .md-typeset .pmx-hero {
    margin: 0 -0.8rem 1.5rem;
    border-radius: 0;
    padding: 1.4rem 1rem 1.3rem;
  }

  .md-typeset .pmx-hero h1 {
    font-size: 1.9rem;
  }

  .md-typeset .pmx-hero__tagline {
    font-size: 1.1rem;
  }

  .md-typeset .pmx-hero .md-button {
    display: block;
    text-align: center;
    margin: 0.5rem 0 0;
  }
}

/* in the dark scheme the hero's slate is near the page's: a faint edge */
[data-md-color-scheme="slate"] .md-typeset .pmx-hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* The diagrams (docs/assets/diagrams/*.html, the result cards make_docs_images.py draws, and the hubs of why.md):
   drawn with the page's own colours, so they follow the light and dark schemes; their text is real text ------------ */

:root,
[data-md-color-scheme="default"] {
  --pmx-diagram-line: rgba(27, 42, 47, 0.35);
}

[data-md-color-scheme="slate"] {
  --pmx-diagram-line: rgba(226, 228, 233, 0.3);
}

.md-typeset .pmx-diagram {
  margin: 1.6rem 0 2rem;
}

.md-typeset .pmx-diagram > figcaption {
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  margin: 0.8rem auto 0;
  max-width: 40rem;
  text-align: center;
}

/* inline SVG: the wide version on a screen, the tall one on a phone */
.md-typeset .pmx-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 47.5rem;
  margin: 0 auto;
  font-family: var(--md-text-font-family, sans-serif);
  font-size: 14px;
}

.md-typeset .pmx-svg--tall {
  display: none;
  max-width: 24rem;
}

.pmx-svg text {
  fill: var(--md-default-fg-color);
}

.pmx-svg .pmx-svg__head-text {
  font-weight: 700;
  font-size: 14.5px;
}

.pmx-svg .pmx-svg__muted,
.pmx-svg .pmx-svg__label {
  fill: var(--md-default-fg-color--light);
  font-size: 13px;
}

.pmx-svg .pmx-svg__label {
  font-size: 12px;
  font-style: italic;
}

.pmx-svg .pmx-svg__small {
  font-size: 13px;
}

.pmx-svg .pmx-svg__mono,
.pmx-svg .pmx-svg__mono tspan {
  font-family: var(--md-code-font-family, monospace);
  font-size: 13px;
}

.pmx-svg .pmx-svg__code,
.pmx-svg .pmx-svg__code text {
  font-size: 12px;
}

.pmx-svg .pmx-svg__accent,
.pmx-svg .pmx-svg__step {
  fill: var(--pmx-orange-text);
  font-weight: 700;
}

.pmx-svg .pmx-svg__step {
  font-size: 15px;
}

.pmx-svg .pmx-svg__name {
  font-size: 18px;
}

.pmx-svg .pmx-svg__verb {
  font-size: 15px;
}

.pmx-svg .pmx-svg__big {
  fill: var(--pmx-orange-text);
  font-size: 32px;
  font-weight: 700;
}

.pmx-svg .pmx-svg__box {
  fill: var(--pmx-card-bg);
  stroke: var(--pmx-diagram-line);
  stroke-width: 1.5;
}

.pmx-svg .pmx-svg__box--accent {
  stroke: var(--pmx-orange);
  stroke-width: 2.5;
}

.pmx-svg .pmx-svg__pill {
  fill: var(--md-accent-fg-color--transparent);
  stroke: var(--pmx-orange);
  stroke-width: 1.5;
}

.pmx-svg .pmx-svg__band {
  fill: var(--pmx-band-bg);
}

.pmx-svg .pmx-svg__rule {
  stroke: var(--pmx-diagram-line);
  stroke-width: 1;
}

.pmx-svg .pmx-svg__line line,
.pmx-svg .pmx-svg__line path {
  fill: none;
  stroke: var(--md-default-fg-color--light);
  stroke-width: 1.8;
}

.pmx-svg .pmx-svg__line--accent line,
.pmx-svg .pmx-svg__line--accent path {
  stroke: var(--pmx-orange);
}

.pmx-svg .pmx-svg__head {
  fill: var(--md-default-fg-color--light);
}

/* a hub: a centre with spokes round it, joined by short orange lines; one column on a phone */
.md-typeset .pmx-hub {
  display: grid;
  gap: 1.4rem 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.7fr) minmax(0, 1fr);
  grid-template-areas:
    "a centre b"
    "c centre d";
  align-items: stretch;
}

.md-typeset .pmx-hub--stack {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "a b"
    "centre centre"
    "c d";
}

.md-typeset .pmx-hub__centre {
  grid-area: centre;
  align-self: center;
  justify-self: center;
  text-align: center;
  border: 2.5px solid var(--pmx-orange);
  border-radius: 0.8rem;
  background: var(--pmx-card-bg);
  padding: 1rem 0.9rem;
  width: 100%;
}

.md-typeset .pmx-hub--stack .pmx-hub__centre {
  max-width: 34rem;
}

.md-typeset .pmx-hub__centre p {
  margin: 0.25em 0;
}

.md-typeset .pmx-hub__spoke {
  position: relative;
  background: var(--pmx-card-bg);
  border: 1px solid var(--pmx-diagram-line);
  border-radius: 0.5rem;
  padding: 0.8rem 0.9rem;
  min-width: 0;
}

.md-typeset .pmx-hub__spoke--a { grid-area: a; }
.md-typeset .pmx-hub__spoke--b { grid-area: b; }
.md-typeset .pmx-hub__spoke--c { grid-area: c; }
.md-typeset .pmx-hub__spoke--d { grid-area: d; }

/* the joins: towards the centre column, or (stacked) towards the centre row */
.md-typeset .pmx-hub__spoke::after {
  content: "";
  position: absolute;
  background: var(--pmx-orange);
}

.md-typeset .pmx-hub:not(.pmx-hub--stack) .pmx-hub__spoke--a::after,
.md-typeset .pmx-hub:not(.pmx-hub--stack) .pmx-hub__spoke--c::after {
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 2px;
}

.md-typeset .pmx-hub:not(.pmx-hub--stack) .pmx-hub__spoke--b::after,
.md-typeset .pmx-hub:not(.pmx-hub--stack) .pmx-hub__spoke--d::after {
  top: 50%;
  left: -2rem;
  width: 2rem;
  height: 2px;
}

.md-typeset .pmx-hub--stack .pmx-hub__spoke--a::after,
.md-typeset .pmx-hub--stack .pmx-hub__spoke--b::after {
  left: 50%;
  bottom: -1.4rem;
  width: 2px;
  height: 1.4rem;
}

.md-typeset .pmx-hub--stack .pmx-hub__spoke--c::after,
.md-typeset .pmx-hub--stack .pmx-hub__spoke--d::after {
  left: 50%;
  top: -1.4rem;
  width: 2px;
  height: 1.4rem;
}

.md-typeset .pmx-hub__spoke p {
  margin: 0.35em 0;
  font-size: 0.72rem;
}

.md-typeset .pmx-hub__spoke p:first-child strong,
.md-typeset .pmx-hub__title strong {
  font-size: 0.8rem;
}

.md-typeset .pmx-hub__icon,
.md-typeset .pmx-hub__icon svg {
  color: var(--pmx-orange-text);
  height: 1.6rem;
  width: 1.6rem;
  vertical-align: middle;
  margin-right: 0.2rem;
}

.md-typeset .pmx-hub__kicker {
  display: block;
  color: var(--pmx-orange-text);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md-typeset .pmx-hub__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

.md-typeset .pmx-hub__title code {
  font-size: 0.62rem;
}

.md-typeset .pmx-hub__views {
  display: block;
  color: var(--md-default-fg-color--light);
  font-size: 0.65rem;
  margin-top: 0.5rem;
}

/* the surfaces: a window, a notebook's output, a report on paper, the Python */
.md-typeset .pmx-hub__surface img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--pmx-diagram-line);
  border-radius: 0.25rem;
}

.md-typeset .pmx-hub__surface pre {
  margin: 0;
}

.md-typeset .pmx-hub__surface pre > code {
  font-size: 0.6rem;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.md-typeset .pmx-notebook {
  font-size: 0.6rem;
  border-left: 3px solid var(--md-default-fg-color--lightest);
  padding-left: 0.5rem;
  overflow-x: auto;
}

.md-typeset .pmx-notebook__in {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.md-typeset .pmx-notebook__in span {
  color: var(--md-default-fg-color--light);
  font-family: var(--md-code-font-family);
}

.md-typeset .pmx-notebook__out table {
  display: table;
  font-size: 0.6rem;
  margin: 0.2em 0;
  border: 0;
  box-shadow: none;
}

.md-typeset .pmx-notebook__out table td,
.md-typeset .pmx-notebook__out table th {
  padding: 1px 6px !important;
  min-width: 0;
}

.md-typeset .pmx-notebook__out p {
  margin: 0.2em 0;
  font-size: 0.6rem;
}

/* a report, on paper in both schemes */
.md-typeset .pmx-paper {
  background: #fff;
  color: #222;
  border-radius: 0.2rem;
  box-shadow: 0 0.2rem 0.8rem rgba(17, 27, 30, 0.15);
  padding: 0.6rem 0.8rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.6rem;
  overflow-x: auto;
}

.md-typeset .pmx-paper p,
.md-typeset .pmx-paper h4 {
  margin: 0.3em 0;
  color: #222;
  font-size: 0.62rem;
}

.md-typeset .pmx-paper table {
  display: table;
  background: #fff;
  color: #222;
  border: 0;
  box-shadow: none;
  font-size: 0.58rem;
  margin: 0.2em 0 0.6em;
}

.md-typeset .pmx-paper table th,
.md-typeset .pmx-paper table td {
  background: #fff;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding: 2px 5px;
  min-width: 0;
}

.md-typeset .pmx-paper td.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.md-typeset .pmx-paper a {
  color: #b85a14;
}

/* chips: a result's views */
.md-typeset ul.pmx-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.md-typeset ul.pmx-chips li {
  margin: 0;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--pmx-diagram-line);
  border-radius: 1rem;
  font-size: 0.62rem;
  line-height: 1.5;
}

/* the anatomy of a result: an annotated card */
.md-typeset .pmx-anatomy__card {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--pmx-card-bg);
  border: 2.5px solid var(--pmx-orange);
  border-radius: 0.6rem;
  overflow: hidden;
}

.md-typeset .pmx-anatomy__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  background: var(--pmx-slate);
  color: #f3f5f5;
  padding: 0.7rem 1rem;
}

.md-typeset .pmx-anatomy__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pmx-orange-text);
  background: none;
  padding: 0;
}

.md-typeset .pmx-anatomy__head .pmx-anatomy__name {
  color: #f6b37c;
}

.md-typeset .pmx-anatomy__type {
  font-size: 0.72rem;
  font-weight: 600;
}

.md-typeset .pmx-hub__centre .pmx-anatomy__type {
  display: block;
}

.md-typeset .pmx-anatomy__formula code {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f5f5;
  font-size: 0.68rem;
}

.md-typeset .pmx-anatomy__row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.4rem 1.2rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--pmx-diagram-line);
}

.md-typeset .pmx-anatomy__head + .pmx-anatomy__row {
  border-top: 0;
}

.md-typeset .pmx-anatomy__label {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  align-content: start;
  column-gap: 0.4rem;
  font-size: 0.72rem;
}

.md-typeset .pmx-anatomy__label > :not(.pmx-anatomy__n) {
  grid-column: 2;
}

.md-typeset .pmx-anatomy__label code {
  justify-self: start;
  font-size: 0.62rem;
  margin: 0.15rem 0;
}

.md-typeset .pmx-anatomy__n {
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--pmx-orange);
  color: var(--pmx-slate-dark);
  font-weight: 700;
  font-size: 0.68rem;
}

.md-typeset .pmx-anatomy__note {
  color: var(--md-default-fg-color--light);
  font-size: 0.64rem;
  font-style: italic;
}

.md-typeset .pmx-anatomy__body {
  min-width: 0;
}

.md-typeset .pmx-anatomy__body pre {
  margin: 0;
}

.md-typeset .pmx-anatomy__body pre > code {
  font-size: 0.64rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.md-typeset table.pmx-anatomy__table {
  display: table;
  border: 0;
  box-shadow: none;
  font-size: 0.68rem;
  margin: 0;
  background: transparent;
}

.md-typeset table.pmx-anatomy__table th,
.md-typeset table.pmx-anatomy__table td {
  padding: 0.15rem 0.8rem 0.15rem 0;
  border-top: 0;
  min-width: 0;
  background: transparent;
  vertical-align: top;
}

.md-typeset table.pmx-anatomy__table th:not(:first-child),
.md-typeset table.pmx-anatomy__table:not(.pmx-anatomy__table--kv) td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.md-typeset table.pmx-anatomy__table--kv td:first-child {
  color: var(--md-default-fg-color--light);
  white-space: nowrap;
}

.md-typeset table.pmx-anatomy__table--kv td:first-child code {
  font-size: 0.58rem;
}

.md-typeset .pmx-anatomy .pmx-chips {
  justify-content: flex-start;
  margin: 0;
}

/* the comparison of why.md: two columns, one under the other on a phone */
.md-typeset .pmx-contrast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.md-typeset .pmx-contrast > div {
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--pmx-diagram-line);
  background: var(--pmx-card-bg);
}

.md-typeset .pmx-contrast > div:last-child {
  border: 2.5px solid var(--pmx-orange);
}

.md-typeset .pmx-contrast ul {
  margin: 0.4em 0 0;
  padding: 0;
  list-style: none;
}

.md-typeset .pmx-contrast ul li {
  margin: 0.5em 0 0;
  font-size: 0.72rem;
}

.md-typeset .pmx-contrast li strong {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
}

.md-typeset .pmx-contrast > div > p:first-child {
  margin: 0;
  font-weight: 700;
}

.md-typeset .pmx-contrast > div:last-child > p:first-child {
  color: var(--pmx-orange-text);
}

/* the home page's mission strip */
.md-typeset .pmx-mission {
  border-left: 4px solid var(--pmx-orange);
  background-color: var(--pmx-band-bg);
  border-radius: 0 0.4rem 0.4rem 0;
  margin: 2rem 0 1rem;
  padding: 1rem 1.4rem;
}

.md-typeset .pmx-mission h2 {
  margin: 0 0 0.4rem;
}

.md-typeset .pmx-mission ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.2rem 1.4rem;
  list-style: none;
  margin: 0.4rem 0;
  padding: 0;
}

.md-typeset .pmx-mission ul li {
  margin: 0.2em 0;
  font-size: 0.74rem;
}

.md-typeset .pmx-mission p {
  margin: 0.4em 0 0;
}

.md-typeset .pmx-not-drawn {
  color: var(--md-default-fg-color--light);
  font-size: 0.72rem;
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .pmx-svg--wide {
    display: none;
  }

  .md-typeset .pmx-svg--tall {
    display: block;
  }

  .md-typeset .pmx-hub,
  .md-typeset .pmx-hub--stack {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "centre" "a" "b" "c" "d";
    gap: 1rem;
  }

  /* (classes doubled: above the wide layout's joins, which name the spoke and the kind of hub) */
  .md-typeset .pmx-hub .pmx-hub__spoke.pmx-hub__spoke.pmx-hub__spoke::after {
    left: 1.2rem;
    right: auto;
    top: -1rem;
    bottom: auto;
    width: 2px;
    height: 1rem;
  }

  .md-typeset .pmx-anatomy__row {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.7rem 0.8rem;
  }

  .md-typeset .pmx-contrast {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the diagrams' text reads from the left (a figure centres its contents), and a hub's caption runs under it all */
.md-typeset .pmx-hub__spoke,
.md-typeset .pmx-anatomy__card,
.md-typeset .pmx-contrast {
  text-align: left;
}

.md-typeset .pmx-hub > figcaption {
  grid-column: 1 / -1;
}

.md-typeset .pmx-paper table {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}

.md-typeset .pmx-paper table th {
  vertical-align: bottom;
  white-space: nowrap;
}

/* the surfaces' hub: the window and the report wider than the Python and the notebook */
.md-typeset .pmx-surfaces {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-areas:
    "a a a a a b b b b b"
    "centre centre centre centre centre centre centre centre centre centre"
    "c c c c c d d d d d";
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .pmx-surfaces {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "centre" "a" "b" "c" "d";
  }
}
