/* The benchmark history dashboard (docs/javascripts/bench-history.js). Colours are roles,
   light by default and stepped for Material's dark scheme (slate). */
.bh-root {
  --bh-surface: var(--md-default-bg-color, #fcfcfb);
  --bh-ink: var(--md-default-fg-color, #0b0b0b);
  --bh-ink-2: #52514e;
  --bh-muted: #898781;
  --bh-grid: #e1e0d9;
  --bh-axis: #c3c2b7;
  --bh-ring: rgba(11, 11, 11, 0.1);
  --bh-s1: #2a78d6;
  --bh-s2: #eb6834;
  --bh-s3: #1baf7a;
  --bh-s4: #eda100;
  --bh-s5: #e87ba4;
  --bh-s6: #008300;
  --bh-old: #a3a29b;
  position: relative;
  font-variant-numeric: tabular-nums;
}
[data-md-color-scheme="slate"] .bh-root {
  --bh-ink-2: #c3c2b7;
  --bh-grid: #2c2c2a;
  --bh-axis: #383835;
  --bh-ring: rgba(255, 255, 255, 0.1);
  --bh-s1: #3987e5;
  --bh-s2: #d95926;
  --bh-s3: #199e70;
  --bh-s4: #c98500;
  --bh-s5: #d55181;
  --bh-s6: #008300;
  --bh-old: #6d6c67;
}
.bh-root .bh-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  margin: 0.4rem 0 0.2rem;
}
.bh-root .bh-seg {
  display: inline-flex;
  border: 1px solid var(--bh-axis);
  border-radius: 6px;
  overflow: hidden;
}
.bh-root .bh-seg button {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--bh-ink-2);
  cursor: pointer;
}
.bh-root .bh-seg button + button {
  border-left: 1px solid var(--bh-axis);
}
.bh-root .bh-seg button[aria-checked="true"] {
  background: var(--bh-grid);
  color: var(--bh-ink);
  font-weight: 600;
}
.bh-root .bh-field {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--bh-ink-2);
}
.bh-root .bh-field select {
  font: inherit;
  color: var(--bh-ink);
  background: var(--bh-surface);
  border: 1px solid var(--bh-axis);
  border-radius: 4px;
  padding: 0.15rem 0.3rem;
}
.bh-root .bh-field select:disabled {
  opacity: 0.5;
}
.bh-root .bh-meta,
.bh-root .bh-note {
  font-size: 0.72rem;
  color: var(--bh-ink-2);
  margin: 0.3rem 0 0.6rem;
}
.md-typeset .bh-root h2.bh-group {
  margin: 1.6rem 0 0.2rem;
}
.bh-root .bh-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 0.8rem;
}
.md-typeset .bh-root figure.bh-card {
  margin: 0;
  padding: 0.6rem 0.7rem 0.4rem;
  border: 1px solid var(--bh-ring);
  border-radius: 8px;
  background: var(--bh-surface);
  min-width: 0;
  display: block;
}
.bh-root figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.6rem;
  font-size: 0.74rem;
  max-width: none;
  margin: 0;
  text-align: left;
}
.bh-root .bh-title {
  font-weight: 600;
  color: var(--bh-ink);
}
.bh-root .bh-latest {
  color: var(--bh-ink-2);
}
.bh-root .bh-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.8rem;
  font-size: 0.64rem;
  color: var(--bh-ink-2);
  margin: 0.25rem 0 0.1rem;
}
.bh-root .bh-key {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.bh-root .bh-body {
  width: 100%;
}
.bh-root .bh-body svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.bh-root .bh-tick {
  font-size: 10px;
  fill: var(--bh-muted);
}
.bh-root .bh-gridline {
  stroke: var(--bh-grid);
  stroke-width: 1;
}
.bh-root .bh-base {
  stroke: var(--bh-axis);
  stroke-width: 1;
}
.bh-root .bh-break {
  stroke: var(--bh-axis);
  stroke-width: 1;
}
.bh-root .bh-break-label {
  font-size: 9px;
}
.bh-root .bh-band {
  opacity: 0.12;
  stroke: none;
}
.bh-root .bh-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bh-root .bh-dashed {
  stroke-dasharray: 5 4;
}
.bh-root .bh-whisker {
  stroke-width: 1.5;
}
.bh-root .bh-marker {
  stroke: var(--bh-surface);
  stroke-width: 2;
  paint-order: stroke;
}
.bh-root .bh-cross {
  stroke: var(--bh-muted);
  stroke-width: 1;
}
.bh-root .bh-hit {
  fill: transparent;
  outline: none;
}
.bh-root .bh-hit:focus-visible {
  stroke: var(--bh-s1);
  stroke-width: 1;
}
.bh-root .bh-empty {
  font-size: 0.72rem;
  color: var(--bh-muted);
  margin: 2rem 0;
  text-align: center;
}
.bh-root .bh-tip {
  position: absolute;
  z-index: 3;
  max-width: min(24rem, 90vw);
  pointer-events: none;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--bh-ring);
  background: var(--bh-surface);
  color: var(--bh-ink-2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  font-size: 0.66rem;
  line-height: 1.45;
}
.bh-root .bh-tip[hidden] {
  display: none;
}
.bh-root .bh-tip-title {
  color: var(--bh-ink);
  font-weight: 600;
}
.bh-root .bh-tip-subject {
  margin-bottom: 0.2rem;
}
.bh-root .bh-tip-row strong {
  color: var(--bh-ink);
}
.bh-root .bh-tip-row svg {
  vertical-align: middle;
  margin-right: 0.25rem;
}
.bh-root .bh-tip-cpu {
  color: var(--bh-muted);
  padding-left: 1.1rem;
}
.md-typeset .bh-root details {
  margin: 0.2rem 0 0;
  font-size: 0.66rem;
  border: 0;
  box-shadow: none;
  padding: 0;
  background: none;
}
.md-typeset .bh-root details > summary {
  cursor: pointer;
  color: var(--bh-ink-2);
  padding: 0;
  background: none;
}
.md-typeset .bh-root details > summary::before,
.md-typeset .bh-root details > summary::after {
  display: none;
}
.md-typeset .bh-root details table {
  font-size: 0.62rem;
  display: block;
  overflow-x: auto;
  max-height: 16rem;
}
.bh-root .bh-num {
  white-space: nowrap;
}

/* The hero chart (#bench-hero): every figure on one chart, each line on its own axis */
.md-typeset .bh-hero {
  margin: 0.4rem 0 1.4rem;
  padding: 0.7rem 0.9rem 0.6rem;
  border: 1px solid var(--bh-ring);
  border-radius: 8px;
  background: var(--bh-surface);
  min-width: 0;
}
.bh-hero .bh-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
}
.md-typeset .bh-hero h2.bh-hero-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bh-ink);
}
.bh-hero .bh-controls {
  margin: 0;
  gap: 0.5rem 0.8rem;
}
.bh-hero .bh-btn {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--bh-axis);
  border-radius: 6px;
  background: transparent;
  color: var(--bh-ink-2);
  cursor: pointer;
}
.bh-hero .bh-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.bh-hero button:focus-visible,
.bh-hero a:focus-visible {
  outline: 2px solid var(--bh-ink);
  outline-offset: 1px;
}
.bh-hero .bh-hero-focus,
.bh-hero .bh-hero-commit {
  font-size: 0.72rem;
  color: var(--bh-ink-2);
  margin: 0.4rem 0 0.2rem;
  overflow-wrap: anywhere;
}
.bh-hero .bh-hero-focus strong,
.bh-hero .bh-hero-commit strong {
  color: var(--bh-ink);
}
.bh-hero .bh-hero-commit {
  margin: 0.1rem 0 0.5rem;
}
.bh-hero .bh-hero-chart {
  width: 100%;
  min-width: 0;
}
.bh-hero .bh-hero-chart svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}
.bh-hero .bh-hero-tick {
  font-size: 11px;
}
.bh-hero .bh-hero-rule {
  stroke: var(--bh-axis);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.bh-hero .bh-hero-axis {
  stroke-width: 1.5;
}
.bh-hero .bh-hero-xlink:hover text,
.bh-hero .bh-hero-xlink:focus-visible text {
  fill: var(--bh-ink);
  text-decoration: underline;
}
.bh-hero .bh-hero-xlink:focus-visible {
  outline: 2px solid var(--bh-ink);
}
.bh-hero .bh-hero-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.45;
}
.bh-hero .bh-hero-line.is-dim {
  opacity: 0.14;
}
.bh-hero .bh-hero-line.is-on {
  stroke-width: 3;
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .bh-hero .bh-hero-line {
    transition: opacity 120ms ease-out, stroke-width 120ms ease-out;
  }
}
.bh-hero .bh-hero-hit {
  cursor: crosshair;
}
.bh-hero .bh-hero-hit:focus-visible {
  stroke: var(--bh-ink);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}
.bh-hero .bh-hero-tip {
  width: min(21rem, 92%);
}
.bh-hero .bh-hero-tip-group {
  color: var(--bh-muted);
  margin: 0.15rem 0 0.1rem;
}
.bh-hero .bh-hero-tip-row {
  display: grid;
  grid-template-columns: 12px auto 1fr;
  gap: 0.4rem;
  align-items: center;
}
.bh-hero .bh-hero-tip-row.is-on {
  color: var(--bh-ink);
  font-weight: 600;
}
.bh-hero .bh-hero-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.6rem 1rem;
  margin: 0.2rem 0 0.4rem;
}
.bh-hero .bh-hero-lgroup {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bh-hero .bh-hero-item {
  font: inherit;
  font-size: 0.66rem;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: var(--bh-ink-2);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.bh-hero .bh-hero-item[aria-pressed="false"] {
  opacity: 0.4;
}
.bh-hero .bh-hero-item.is-focus {
  color: var(--bh-ink);
  font-weight: 600;
}
.bh-hero .bh-hero-ghead {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bh-ink);
}
.bh-hero .bh-hero-sw {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}
@media (max-width: 40em) {
  .md-typeset .bh-hero {
    padding: 0.6rem 0.6rem 0.4rem;
  }
}
