/* Okto Neuron · benchmarks page components.
   Loaded after styles.css and use-case.css, only by benchmarks.html. Reuses the
   shared tokens; the chart series colors are set in benchmarks.js and validated
   against the dark panel (#07081a): grey #6f6c82, blue #3987e5, aqua #199e70,
   amber #f5b942 (the brand accent). */

.uc-page {
  --bm-series-grey: #6f6c82;
  --bm-series-blue: #3987e5;
  --bm-series-aqua: #199e70;
  --bm-surface: #07081a;
}

.bm-figure {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: var(--bm-surface);
}

.bm-figure > figcaption {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bm-figure > figcaption strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.bm-source {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.bm-plot {
  width: 100%;
  min-height: 120px;
}

.bm-plot svg {
  display: block;
  overflow: visible;
}

.bm-plot .bm-mark {
  cursor: default;
  outline: none;
}

.bm-plot .bm-mark:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 2px;
}

.bm-plot:empty::before {
  display: block;
  padding: 2rem 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  content: "Chart draws from the data bundle with JavaScript. The table below the page has the same numbers.";
}

.bm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.bm-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.bm-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
}

.bm-legend i.bm-swatch--hatch {
  background: repeating-linear-gradient(45deg, rgba(245, 244, 255, 0.45) 0 2px, transparent 2px 5px), var(--bm-series-grey) !important;
}

.bm-legend i.bm-swatch--ring {
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: transparent !important;
}

.bm-table {
  margin-top: 1rem;
}

.bm-table > summary {
  width: fit-content;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.bm-table > summary:hover {
  color: var(--ink);
}

.bm-table .tools-table {
  margin-top: 0.8rem;
}

.bm-table caption,
.bm-static caption {
  padding: 0.7rem 1rem;
  color: var(--ink-dim);
  font-size: 0.78rem;
  text-align: left;
}

.bm-tip {
  position: absolute;
  z-index: 60;
  max-width: min(320px, calc(100vw - 16px));
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--hair-bright);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.4;
  pointer-events: none;
}

.bm-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--hair-bright);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.bm-prose {
  max-width: 72ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.bm-prose + .bm-prose {
  margin-top: 0.9rem;
}

.bm-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.bm-num {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.94em;
  white-space: nowrap;
}

/* Bound prose (meta~ keys) reads as ordinary text and wraps. */
.bm-num[data-b^="meta~"] {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  white-space: normal;
}

.bm-list {
  display: grid;
  gap: 0.7rem;
  max-width: 78ch;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bm-list li {
  position: relative;
  padding-left: 1.2rem;
}

.bm-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--amber);
  content: "";
}

.bm-list strong {
  color: var(--ink);
  font-weight: 600;
}

.bm-prompt {
  max-width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bm-static td:nth-child(n + 3) {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.uc-facts.bm-facts dd {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
}

@media (max-width: 900px) {
  .uc-facts.bm-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .uc-facts.bm-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bm-subhead {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}
