/* Public portfolio layout helpers — class names only; uses Material theme variables. */

.stat-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-tiles .stat-tile {
  flex: 1 1 8rem;
  min-width: calc(50% - 0.5rem);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: none;
}

@media screen and (min-width: 48em) {
  .stat-tiles .stat-tile {
    min-width: 7rem;
  }
}

.stat-tiles .stat-value {
  /* scales with the screen so "Hundreds" and "$500M+" never break across two lines in a narrow tile */
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--md-default-fg-color);
}

.stat-tiles .stat-label {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--md-default-fg-color--light);
  margin-top: 0.25rem;
}

.stat-tiles .stat-window {
  font-size: 0.625rem;
  line-height: 1.35;
  color: var(--md-default-fg-color--light);
  margin-top: 0.4rem;
}

.stat-tiles .stat-about {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--md-default-fg-color--light);
}

/* Below a wide desktop the four tiles are narrow (two to a row on a phone, four across on a tablet): "about" or "over" sits on a line of its own above the figure, as in the three-tile strip below, so "over 1.5 million" is not cut off at the tile's edge */
@media screen and (max-width: 79.99em) {
  .stat-tiles .stat-value {
    white-space: normal;
  }

  .stat-tiles .stat-about {
    display: block;
    line-height: 1.2;
  }
}

.md-typeset .stat-more {
  font-size: 0.75rem;
  margin: -0.5rem 0 1.5rem;
}

.md-typeset .stat-more p {
  margin: 0;
}

/* The one-sentence hook at the top of the home page, repeated at the top of "Start here" */
.md-typeset .home-hook {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 1rem 0 0.25rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 0.2rem solid var(--md-accent-fg-color);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 1.25rem;
  align-items: center;
}

/* Primary track entry points (Material grid cards) */
.path-entry-cards {
  margin: 1.5rem 0;
}

.path-entry-cards > ul {
  list-style: none;
  padding: 0;
}

.path-entry-cards > ul > li {
  border-top: 0.2rem solid var(--md-accent-fg-color);
}

.path-entry-cards > ul > li > p:first-child strong {
  font-size: 1.05rem;
}

.path-entry-cards > ul > li:only-child {
  max-width: 100%;
  margin-right: auto;
}

.looking-for {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 0.2rem solid var(--md-accent-fg-color);
  background: var(--md-admonition-bg-color);
  border-radius: 0 var(--md-default-border-radius) var(--md-default-border-radius) 0;
}

.looking-for p {
  margin: 0.5rem 0;
}

.looking-for p:first-child {
  margin-top: 0;
}

.looking-for p:last-child {
  margin-bottom: 0;
}

.md-typeset .mermaid {
  text-align: center;
}

.md-typeset .mermaid svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* Owner values that are not final (docs-site/site-values.yml): the danger role in the preview, never present in a release build */
.pv-pending,
a[data-pv] {
  color: var(--ds-danger);
  text-decoration: underline dashed;
  text-underline-offset: 3px;
}

.md-typeset a.md-button[data-pv] {
  background: var(--ds-danger);
  border-color: var(--ds-danger);
  color: var(--md-accent-bg-color);
  text-decoration: none;
  outline: 2px dashed var(--ds-danger);
  outline-offset: 2px;
}

/* Draft release: a button whose link is not set yet (status placeholder) shows as disabled, never as a dead link */
.md-typeset .md-button.pv-coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* A status note that is only a title (the "Last reviewed" line on pages with the minimal banner) reads as a muted line, not a boxed banner. A warning (a stale page) stays prominent. */
.md-typeset .admonition:not(.warning):has(> .admonition-title:only-child) {
  border: 0;
  box-shadow: none;
  background: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.md-typeset .admonition:not(.warning):has(> .admonition-title:only-child) > .admonition-title {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
}
.md-typeset .admonition:not(.warning):has(> .admonition-title:only-child) > .admonition-title::before {
  display: none;
}

/* ============================================================================================================================================
   Design pass, 26 Oct 2026 (design review fixes 3, 4, 5, 6, 9 and the quick polish): a white header, one deeper-teal accent, a stronger
   title hierarchy, footer links on every page, the "what this shows" line first on each deep page, diagrams that scroll on a phone.
   27 Oct 2026 (Michael, relayed 06:51:56Z): every colour is now a role of the shared design system (assets/css/ds-mkdocs-material.css, generated, loaded
   first), for the light and the dark page alike. This file names roles (--md-* and --ds-*) and never a hex value, so a new palette recolours the site
   without touching it; a test holds that. See docs-site/README.md, "Colours and emphasis".
   ============================================================================================================================================ */

body[data-md-color-primary] {
  --md-primary-fg-color: var(--ds-surface);
  --md-primary-fg-color--light: var(--md-footer-bg-color);
  --md-primary-fg-color--dark: var(--ds-border);
  --md-primary-bg-color: var(--md-default-fg-color);
  --md-primary-bg-color--light: var(--md-default-fg-color--light);
  --md-default-bg-color: var(--ds-surface);  /* the reading surface: the role for cards and the main reading area, white on the light page */
}

/* Header: the page surface, a thin rule, no stock book glyph; the site name is the wordmark */
.md-header,
.md-tabs {
  background-color: var(--ds-surface);
  color: var(--md-default-fg-color);
  box-shadow: none;
}

.md-header {
  border-bottom: 1px solid var(--ds-border);
}

.md-header__button.md-logo {
  display: none;
}

.md-header__title {
  margin-left: 1rem;
}

.md-header__topic:first-child {
  font-weight: 600;
}

.md-tabs__link {
  color: var(--md-default-fg-color--light);
  opacity: 1;
  font-weight: 500;
}

.md-tabs__link:hover,
.md-tabs__item--active .md-tabs__link {
  color: var(--md-default-fg-color);
}

.md-tabs__item--active {
  box-shadow: inset 0 -2px 0 var(--md-accent-fg-color);
}

.md-search__form {
  background-color: var(--md-footer-bg-color);
  box-shadow: inset 0 0 0 1px var(--ds-border);
}

.md-search__input::placeholder {
  color: var(--md-default-fg-color--light);
}

/* Buttons: the primary one is the filled accent, the others are outlined; written out because the theme derives them from the (surface-coloured) primary colour */
.md-typeset .md-button {
  color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
}

.md-typeset .md-button:hover,
.md-typeset .md-button:focus {
  background-color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
  color: var(--md-accent-bg-color);
}

.md-typeset .md-button--primary {
  background-color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
  color: var(--md-accent-bg-color);
}

.md-typeset .md-button--primary:hover,
.md-typeset .md-button--primary:focus {
  background-color: color-mix(in srgb, var(--md-accent-fg-color) 80%, var(--md-default-fg-color));
  border-color: color-mix(in srgb, var(--md-accent-fg-color) 80%, var(--md-default-fg-color));
}

/* Type: a stronger title and section hierarchy, 17 px body text */
.md-typeset {
  font-size: 0.85rem;
  line-height: 1.65;
}

.md-typeset h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0 0 0.6rem;
  color: var(--md-default-fg-color);
}

.md-typeset h2 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  margin: 2.8rem 0 0.8rem;
}

.md-typeset h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}

@media screen and (max-width: 29.94em) {
  .md-typeset h1 {
    font-size: 1.7rem;
  }
  .md-typeset h2 {
    font-size: 1.25rem;
    margin-top: 2.2rem;
  }
}

/* The permalink anchor sits in the margin so a long heading never wraps onto a second line because of it */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  position: relative;
}

.md-typeset .headerlink {
  display: none;
}

@media screen and (min-width: 60em) {
  .md-typeset .headerlink {
    display: inline;
    position: absolute;
    left: -1.1rem;
    margin-left: 0;
  }
}

/* Tables fill the column */
.md-typeset__table {
  display: block;
  width: 100%;
}

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
}

/* The first thing on a deep page is the one line that says what it shows about me; then a quiet status; then the plain-terms paragraph */
.md-typeset .page-lead {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--md-default-fg-color);
  margin: 0 0 0.75rem;
}

.md-typeset .admonition.plain {
  border: 0;
  border-left: 3px solid var(--md-accent-fg-color);
  border-radius: 0;
  box-shadow: none;
  background: none;
  padding: 0 0 0 1rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

.md-typeset .admonition.plain > .admonition-title {
  background: none;
  padding: 0;
  margin: 0 0 0.25rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
}

.md-typeset .admonition.plain > .admonition-title::before {
  display: none;
}

/* Home: the text blocks keep a readable measure, the buttons sit in a tidy 2 x 2 grid on a phone, the card links line up at the bottom */
.md-content__inner:has(.hero-actions) > p {
  max-width: 46rem;
}

.md-typeset .home-gloss {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
  margin: 0.25rem 0 1rem;
}

@media screen and (max-width: 31em) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .hero-actions .md-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0.625em 0.8em;
  }
}

.path-entry-cards > ul > li {
  display: flex;
  flex-direction: column;
}

.path-entry-cards > ul > li > p:last-child {
  margin-top: auto;
}

/* Footer: links to the résumé and to contact on every page (the text comes from the footer line in the site config) */
.md-footer-meta__inner {
  padding: 2.4rem 0.8rem;
}

.md-copyright {
  width: 100%;
  font-size: 0.7rem;
  color: var(--md-footer-fg-color--light);
}

.md-footer-meta .md-copyright a {
  color: var(--md-accent-fg-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-md-color-scheme="slate"] .md-footer-meta .md-copyright a {
  color: inherit;
}

/* The platform layers: eight stacked bars, top of the stack first */
.md-typeset ol.layer-stack {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  counter-reset: layer;
}

.md-typeset ol.layer-stack > li {
  counter-increment: layer;
  margin: 0 0 0.25rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left: 3px solid var(--md-accent-fg-color);
  background: var(--md-code-bg-color);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Diagrams are drawn at their natural size. A desktop column shrinks a wide one to fit; a phone keeps the readable size and the diagram scrolls sideways,
   with a soft shadow on the edge that has more to see (only when it does). */
.md-typeset .mermaid {
  overflow-x: auto;
}

.md-typeset .mermaid svg {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 44.99em) {
  .md-typeset .mermaid {
    text-align: left;
    background:
      linear-gradient(to right, var(--md-default-bg-color) 30%, rgba(255, 255, 255, 0)) left center / 2rem 100% no-repeat local,
      linear-gradient(to left, var(--md-default-bg-color) 30%, rgba(255, 255, 255, 0)) right center / 2rem 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0)) left center / 0.6rem 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0)) right center / 0.6rem 100% no-repeat scroll;
  }
  .md-typeset .mermaid svg {
    max-width: none;
    margin-left: 0;
  }
}

/* Diagrams: ONE standard style for every Mermaid diagram on the site (Michael, 27 Oct 2026, relayed 06:51:56Z: "They should be standardized"), drawn with the
   design system's roles so it follows the light and the dark page. Mermaid bakes its colours into each SVG under that diagram's own #id, so these
   rules need !important. Nodes: the surface role with a strong border. Lines and arrowheads: the muted text role. Labels: the body text role. Clusters:
   the muted surface. The one accent, for the nodes that stand for a check (the independent reviewer, the read-only auditors, the operator gate), is the
   accent role on its soft tint. A diagram source names no colour; tests/docs_site/test_visual_leads.py holds that. */
.md-typeset .mermaid svg {
  color: var(--md-default-fg-color);
}

.md-typeset .mermaid .node rect,
.md-typeset .mermaid .node circle,
.md-typeset .mermaid .node ellipse,
.md-typeset .mermaid .node polygon,
.md-typeset .mermaid .node path {
  fill: var(--ds-surface) !important;
  stroke: var(--ds-border-strong) !important;
}

.md-typeset .mermaid .cluster rect {
  fill: var(--md-footer-bg-color) !important;
  stroke: var(--ds-border) !important;
}

.md-typeset .mermaid .flowchart-link,
.md-typeset .mermaid .edgePath .path {
  stroke: var(--md-default-fg-color--light) !important;
}

.md-typeset .mermaid .marker,
.md-typeset .mermaid .marker path,
.md-typeset .mermaid .arrowMarkerPath {
  fill: var(--md-default-fg-color--light) !important;
  stroke: var(--md-default-fg-color--light) !important;
}

.md-typeset .mermaid .label,
.md-typeset .mermaid .label text,
.md-typeset .mermaid .label span,
.md-typeset .mermaid .label p,
.md-typeset .mermaid .nodeLabel,
.md-typeset .mermaid .cluster-label text,
.md-typeset .mermaid .cluster-label span {
  color: var(--md-default-fg-color) !important;
  fill: var(--md-default-fg-color) !important;
}

.md-typeset .mermaid .edgeLabel,
.md-typeset .mermaid .edgeLabel rect,
.md-typeset .mermaid .edgeLabel span,
.md-typeset .mermaid .labelBkg {
  background-color: var(--md-default-bg-color) !important;
  fill: var(--md-default-bg-color) !important;
}

.md-typeset .mermaid .node.guard rect,
.md-typeset .mermaid .node.guard polygon,
.md-typeset .mermaid .node.guard path {
  fill: var(--md-accent-fg-color--transparent) !important;
  stroke: var(--md-accent-fg-color) !important;
  stroke-width: 2px !important;
}

/* A diagram can colour its boxes by what they stand for (Home, Mechanical): hardware and manufacturing takes the info role, AI agent systems the warning
   role (a warm hue against the cool one, so the two stay apart for readers who confuse blue and green), and the place the picture arrives at takes the
   accent role as a solid box. A group is a soft tint of its role on the page surface; a box keeps the page surface and takes the role as its border, so the
   words always sit on the surface or the tint in the body text colour. The source names a meaning (hardware, agents, goal), never a colour. */
.md-typeset .mermaid .node.hardware rect,
.md-typeset .mermaid .node.hardware polygon,
.md-typeset .mermaid .node.hardware path {
  fill: var(--ds-surface) !important;
  stroke: var(--ds-info) !important;
  stroke-width: 2px !important;
}

.md-typeset .mermaid .node.agents rect,
.md-typeset .mermaid .node.agents polygon,
.md-typeset .mermaid .node.agents path {
  fill: var(--ds-surface) !important;
  stroke: var(--ds-warning) !important;
  stroke-width: 2px !important;
}

.md-typeset .mermaid .cluster.hardware rect {
  fill: color-mix(in srgb, var(--ds-info) 12%, var(--ds-surface)) !important;
  stroke: var(--ds-info) !important;
}

.md-typeset .mermaid .cluster.agents rect {
  fill: color-mix(in srgb, var(--ds-warning) 12%, var(--ds-surface)) !important;
  stroke: var(--ds-warning) !important;
}

.md-typeset .mermaid .node.goal rect,
.md-typeset .mermaid .node.goal polygon,
.md-typeset .mermaid .node.goal path {
  fill: var(--md-accent-fg-color) !important;
  stroke: var(--md-accent-fg-color) !important;
}

.md-typeset .mermaid .node.goal .label,
.md-typeset .mermaid .node.goal .label text,
.md-typeset .mermaid .node.goal .label span,
.md-typeset .mermaid .node.goal .label p,
.md-typeset .mermaid .node.goal .nodeLabel {
  color: var(--md-accent-bg-color) !important;
  fill: var(--md-accent-bg-color) !important;
}

/* Home: the headline and the ask lead; a hardware strip and the About paragraph come before the agent figures */
.md-typeset .home-headline {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.25rem 0 0.6rem;
}

.md-typeset .home-ask {
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.home-intro {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.home-intro-text {
  flex: 1 1 auto;
  min-width: 0;
}

.md-typeset .home-portrait img {
  display: block;
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 50%;
}

.md-typeset .home-proof {
  max-width: 46rem;
  margin: 1.25rem 0 0.5rem;
}

.md-typeset .stat-heading {
  margin: 1.75rem 0 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
}

.md-typeset .stat-heading + .stat-tiles {
  margin-top: 0.5rem;
}

/* the footer ask line sits above the links */
.md-footer-meta .md-copyright {
  line-height: 1.8;
}

/* Two drawings of one diagram: the left-to-right one for a desktop, the top-to-bottom one for a phone, so a phone never has to scroll sideways
   to find the reviewer. Both are in the page and both are drawn when it loads (a drawing in a display:none box comes out empty, and would stay empty
   when a phone is turned sideways); the stylesheet only takes the other one out of the layout and out of sight. */
.md-typeset .diagram-narrow {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}

@media screen and (max-width: 44.99em) {
  .md-typeset .diagram-wide {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
  }
  .md-typeset .diagram-narrow {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    visibility: visible;
  }
}

/* The one wide picture (Autonomation) may run a little past the text column on a desktop, so its labels stay readable */
@media screen and (min-width: 60em) {
  .md-typeset .diagram-wide.diagram-bleed {
    margin-left: -2.5rem;
    margin-right: -2.5rem;
  }
}

/* Text blocks keep a readable measure on every page, including the ones with the menu and contents hidden (About, Glossary, Mechanical) */
.md-content__inner > :is(p, ul, ol) {
  max-width: 46rem;
}

/* The header wordmark lines up with the first menu tab when the tabs are shown */
@media screen and (min-width: 76.25em) {
  [dir="ltr"] .md-header__title {
    margin-left: 0.6rem;
  }
}

/* Mechanical: the cards read in one column inside the text column, not two with an empty slot */
.md-typeset .grid.cards:not(.path-entry-cards) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
}

/* Project cards (the Software projects cards, the Mechanical pictures): several to a row where there is room, a picture on top of each */
.md-typeset .grid.cards.project-cards:not(.path-entry-cards) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  max-width: 62rem;
}

/* A card with no picture leads with its title: a size and weight up from the body, as on the path cards above */
.project-cards > ul > li > p:first-child strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.project-cards .psv-img,
.project-figure .psv-img {
  --img-aspect: 3 / 2;
  margin: 0.2rem 0 0.6rem;
}

.project-figure {
  max-width: 24rem;
}

/* Glossary: a term on the left and its meaning on the right, a heading for each kind of term, a jump line at the top */
.md-typeset .glossary-jump {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.md-typeset .glossary {
  max-width: 52rem;
}

.md-typeset .glossary h2 {
  margin: 2rem 0 0.4rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  font-size: 1.1rem;
}

.md-typeset .glossary dl {
  margin: 0;
}

.md-typeset .glossary dt {
  margin: 0.8rem 0 0.1rem;
  font-weight: 700;
}

.md-typeset .glossary dd {
  margin: 0;
}

@media screen and (min-width: 45em) {
  .md-typeset .glossary dl {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .md-typeset .glossary dt {
    grid-column: 1;
    margin: 0.7rem 0 0;
  }
  .md-typeset .glossary dd {
    grid-column: 2;
    margin: 0.7rem 0 0;
  }
}

/* Glossary pop-ups: the first use of a term on a page is a blue dotted-underlined word; its definition opens on hover and keyboard focus, and on a tap
   on a phone (assets/js/glossary-tips.js). The definition sits in the page, hidden, so nothing needs a script to be there. */
.md-typeset .gloss {
  position: relative;
}

.md-typeset a.gloss-term {
  color: var(--ds-info);
  text-decoration: underline dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  cursor: help;
}

.md-typeset a.gloss-term:hover,
.md-typeset a.gloss-term:focus {
  color: color-mix(in srgb, var(--ds-info) 70%, var(--md-default-fg-color));
  text-decoration-style: solid;
}

.md-typeset .gloss-tip {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: var(--gloss-left, 0);
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 0.2rem;
  background: var(--md-default-bg-color);
  box-shadow: var(--md-shadow-z2);
  color: var(--md-default-fg-color);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}

.md-typeset .gloss-tip[hidden] {
  display: none;
}

/* Hover only where there is a pointer that hovers: on a phone a tap leaves :hover and :focus stuck on the word, so a tap is handled by the script. */
.md-typeset a.gloss-term:focus-visible + .gloss-tip[hidden],
.md-typeset .gloss:has(:focus-visible) > .gloss-tip[hidden],
.md-typeset .gloss.open > .gloss-tip[hidden] {
  display: block;
}

@media (hover: hover) {
  .md-typeset .gloss:hover > .gloss-tip[hidden] {
    display: block;
  }
}

.md-typeset .gloss-more {
  display: inline-block;
  margin-left: 0.2rem;
  font-weight: 700;
  white-space: nowrap;
}

@media print {
  .md-typeset .gloss-tip {
    display: none !important;
  }
}

/* A case that is told in full on request: the title and the point stay in view, the detail opens with a click */
.md-typeset details.case {
  border: 0;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin: 0.75rem 0 1.25rem;
}

.md-typeset details.case > summary {
  background: transparent;
  padding-left: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--md-typeset-a-color);
}

.md-typeset details.case > summary::before {
  display: none;
}

/* Reliability: the outcomes of the runs as one bar; the table under it is the key */
.md-typeset .outcome-bar {
  display: flex;
  height: 2.4rem;
  margin: 1rem 0 0.4rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  overflow: hidden;
}

.md-typeset .outcome-bar > span {
  flex: 0 1 auto;
  min-width: 0.35rem;
}

.md-typeset .outcome-bar .seg-done,
.md-typeset .outcome-key .seg-done {
  background: var(--md-accent-fg-color);
}

.md-typeset .outcome-bar .seg-failed,
.md-typeset .outcome-key .seg-failed {
  background: var(--md-default-fg-color--light);
}

.md-typeset .outcome-bar .seg-held,
.md-typeset .outcome-key .seg-held {
  background: var(--ds-warning);
}

.md-typeset .outcome-bar .seg-died,
.md-typeset .outcome-key .seg-died {
  background: var(--md-default-fg-color);
}

/* Wedged is an outline, not a fill: its grey was only 1.24 to 1 (light page) and 1.40 to 1 (dark page) away from Failed's, so the two read as one colour (3 Nov 2026 measurement) */
.md-typeset .outcome-bar .seg-wedged,
.md-typeset .outcome-key .seg-wedged {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--md-default-fg-color--light);
}

.md-typeset .outcome-key {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--md-default-fg-color--light);
  margin: 0 0 1rem;
}

.md-typeset .outcome-key .swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.3rem;
  border-radius: 0.1rem;
  vertical-align: -0.05rem;
}

/* Each key entry (swatch and its words) is one unit: the line breaks between entries, never between a swatch and its label (3 Nov 2026 render check: the "Wedged" swatch ended one line and its words began the next) */
.md-typeset .outcome-key .key-item {
  white-space: nowrap;
  margin-right: 0.9rem;
}

.md-typeset .outcome-key .key-item:last-of-type {
  margin-right: 0;
}

/* The date of each figure sits in one line of notes under the strip, tied to its tile by a letter, instead of a small line inside every tile */
.stat-tiles sup.stat-ref {
  margin-left: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
}

.md-typeset .stat-notes {
  max-width: none;
  margin: -0.5rem 0 1rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.65rem;
  line-height: 1.7;
}

.md-typeset .stat-notes .stat-ref {
  margin-right: 0.1rem;
  font-weight: 700;
}

/* A diagram that leads a page (the picture under the plain-terms box): one drawing for every width, the same breathing room as the two-drawing ones */
.md-typeset .diagram-wide,
.md-typeset .diagram-narrow,
.md-typeset .diagram-lead {
  margin-top: 0.8rem;
  margin-bottom: 1.4rem;
}

/* Three tiles in a row (Projects): the "about" or "over" sits on a line of its own above the figure in all three, so "over 1.5 million" stays inside its tile on one line */
.stat-tiles.stat-tiles-three .stat-value {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  white-space: normal;
}

.stat-tiles.stat-tiles-three .stat-about {
  display: block;
  line-height: 1.2;
}

/* Four tiles in a row (Home, hardware): "36 days to 1.5 days" is wider than its tile at a wide desktop, where the figure is otherwise kept on one line, and ran under the next tile's "Team lead of 4" (3 Nov 2026 render check). A strip of exactly four lets its figures wrap and takes a slightly smaller size; a strip of any other length is unchanged. */
.stat-tiles .stat-tile:first-child:nth-last-child(4) .stat-value,
.stat-tiles .stat-tile:first-child:nth-last-child(4) ~ .stat-tile .stat-value {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  white-space: normal;
  text-wrap: balance;
}

/* ============================================================================================================================================
   Emphasis by shade, not weight (Michael, 27 Oct 2026: "a slightly different shade of it ... to help draw your attention to certain words"; relayed
   05:25:28Z, and 06:51:56Z: "make sure this works for light and dark ... documented in the files"). The design system's text-emphasis role is the body
   text colour pushed a little further from the page (darker on the light page, lighter on the dark one) and ds-mkdocs-material.css restyles <strong> and
   <b> with it at medium weight, never bold. Contrast on the page surface (WCAG 2.x; measured by tests/docs_site/test_visual_leads.py): light page body
   16.4:1, emphasis 19.2:1; dark page body 13.2:1, emphasis 15.0:1 (AA needs 4.5:1; the design system's gate needs the two to differ by at least 1.1:1; they differ by
   1.18 and 1.14). A bold label that
   is a heading, in a table head or a figure tile, keeps its weight. See docs-site/README.md, "Colours and emphasis".
   ============================================================================================================================================ */

.md-typeset th strong,
.md-typeset th b,
.stat-tiles strong {
  font-weight: 700;
}
