@charset "utf-8";
/* ==========================================================================
   /methodology/ — tool.css
   The ONLY page-specific rules here are the ones the design system genuinely
   lacks: the latency-chain SVG diagram and the "on this page" index.
   Every colour comes from a design-system custom property, so the diagram
   follows the dark/light theme with no duplicate palette.
   ========================================================================== */

/* ---- latency chain diagram ---------------------------------------------- */

.chain {
  inline-size: 100%;
  max-inline-size: 28rem;
  block-size: auto;
  margin-block: 0.25rem;
}

.chain__box {
  fill: var(--surface);
  stroke: var(--border-ui);
  stroke-width: 1;
}

.chain__box--live {
  fill: color-mix(in srgb, var(--accent) 12%, var(--surface));
  stroke: var(--accent);
  stroke-width: 1.5;
}

.chain__name {
  font-family: var(--font);
  font-size: 12px;
  fill: var(--text-3);
}

.chain__name--live {
  fill: var(--text);
  font-weight: 650;
}

.chain__tag {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--accent);
  letter-spacing: 0.04em;
}

.chain__band {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--text-3);
}

.chain__band--live { fill: var(--accent); }

/* ---- "on this page" index ------------------------------------------------ */

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: toc;
}

.toc li { counter-increment: toc; min-inline-size: 0; }

.toc a {
  text-decoration: none;
  color: var(--text-2);
  display: inline-block;
  padding-block: 0.15rem;
}

.toc a::before {
  content: counter(toc) ".";
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-inline-end: 0.45rem;
}

.toc a:hover { color: var(--accent); text-decoration: underline; }

@media (min-width: 768px) {
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
