/* The perf pages' marks and charts, on top of dark.css, the stylesheet the
   VM serves at the site's root. */
:root {
  --faster: #7bc67e;
  --slower: #f0776d;
  --series: #7fb2f0;
  /* What started a run, in a chart: blue, yellow and magenta of a
     categorical palette, told apart in every pair on --bg, colour-blind
     too; no green or red, which the change points take. */
  --push: #3987e5;
  --nightly: #c98500;
  --tag: #d55181;
}

body.wide { max-width: 64rem; }
p.nav { font-size: 0.9em; color: var(--fg-muted); margin-bottom: 2rem; }
.dim, .meta { color: var(--fg-muted); }
.meta { font-size: 0.9em; }
h1 .sub, h2 .head { font-size: 1rem; font-weight: 400; letter-spacing: 0;
  color: var(--fg-muted); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
code.sha { background: none; padding: 0; color: var(--fg-muted); }
a.subject { color: var(--fg); text-decoration: none; }
a.subject:hover { text-decoration: underline; }

svg.mark { width: 0.7em; height: 0.7em; vertical-align: 0; fill: currentColor;
  margin-right: 0.2em; }
.faster { color: var(--faster); }
.slower { color: var(--slower); }
.unsure { color: var(--fg-faint); }

ul.moved { padding-left: 0; list-style: none; }
ul.moved > li { margin-bottom: 0.9rem; }
ul.moved ul { margin: 0.2rem 0 0 1.2em; padding-left: 0; list-style: none;
  font-size: 0.95em; }
ul.moved ul li { margin-top: 0.1rem; }
.when { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* A change point among the runs, before the first run after it; one only
   earlier analyses reported without the band, in gray. */
tr.change td { background: var(--surface); }
tr.change.earlier td { background: none; color: var(--fg-muted); }
li.earlier { color: var(--fg-muted); }

/* A noisy run: a ring around its dot, and beside its value. */
svg.chart .apart { fill: none; stroke: var(--fg); stroke-width: 1.25; }
svg.ring { width: 0.8em; height: 0.8em; vertical-align: -0.1em;
  margin-right: 0.2em; fill: none; stroke: currentColor; stroke-width: 1.4; }
table.noisy td { padding: 0.15rem 0.7rem; }
table.howmuch th { font-weight: 400; text-align: left; }
table.howmuch td, table.howmuch th { padding: 0.15rem 0.7rem; }
table.howmuch tr.sub th { padding-left: 1.7rem; color: var(--fg-muted); }

details.fold > summary { cursor: pointer; color: var(--fg-muted);
  list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: " \25b8"; }
details.fold[open] > summary::after { content: " \25be"; }

/* A branch's subtests, a row each: the name, the newest value, the runs as a
   line, Otava's change points. */
table.series { font-size: 0.9rem; }
table.series th, table.series td { padding: 0.1rem 0.6rem;
  border-bottom: 0; vertical-align: middle; font-weight: 400; }
table.series th { text-align: left; }
table.series tr.head th { padding-top: 1.2rem; font-weight: 600; }
p.toc { font-size: 0.9em; }

svg.spark { display: block; overflow: visible; }
svg.spark polyline { fill: none; stroke: var(--series); stroke-width: 1.25;
  stroke-linejoin: round; stroke-linecap: round; }
svg.spark circle { fill: var(--series); }
svg.spark line, svg.chart line.cp { stroke-width: 1.5; }
svg line.faster { stroke: var(--faster); }
svg line.slower { stroke: var(--slower); }
svg line.unsure { stroke: var(--fg-faint); }
/* A change point that earlier analyses reported and the newest does not:
   dashed gray, under the newest analysis' ones, which keep the colour. */
svg line.earlier { stroke: var(--fg-muted); }
svg.spark line.earlier { stroke-dasharray: 2 2; }
svg.chart line.earlier { stroke-dasharray: 4 3; }
svg.chart .cphit { stroke: transparent; stroke-width: 9; }
svg.cpkey { width: 0.4em; height: 0.9em; vertical-align: -0.1em;
  margin-right: 0.15em; }
svg.cpkey line { stroke-width: 1.5; }
svg.cpkey line.earlier { stroke-dasharray: 3 2; }

/* A subtest's chart: a dot per run, the runs joined by a faint line, a
   commit's runs close together; Otava's change points upright, its levels
   between them flat. */
figure.chart { margin: 0 0 0.5rem; overflow-x: auto; }
svg.chart { display: block; width: 100%; min-width: 640px; height: auto; }
svg.chart .grid { stroke: var(--border); stroke-width: 1; }
svg.chart text { fill: var(--fg-muted); font-size: 12px; font-family: var(--font); }
svg.chart text.cpl { fill: var(--fg); font-size: 12px; }
svg.chart text.cpl.earlier { fill: var(--fg-muted); }
svg.chart .trend { fill: none; stroke: var(--fg-faint); stroke-opacity: 0.6;
  stroke-width: 1.5; stroke-linejoin: round; }
svg.chart .level { stroke: var(--fg-muted); stroke-width: 2; stroke-opacity: 0.55;
  stroke-linecap: round; }
svg.chart .dot { fill: var(--fg-muted); stroke: var(--bg); stroke-width: 1.5; }
svg.chart .dot.push, svg.kind.push { fill: var(--push); }
svg.chart .dot.nightly, svg.kind.nightly { fill: var(--nightly); }
svg.chart .dot.tag, svg.kind.tag { fill: var(--tag); }
svg.kind { width: 0.65em; height: 0.65em; vertical-align: 0;
  margin-right: 0.15em; fill: var(--fg-muted); }
svg.chart .hit { fill: transparent; }
svg.chart a:hover .dot { stroke: var(--fg); }
p.caption { color: var(--fg-muted); font-size: 0.9em; }

/* The compare page. */
table.compare th, table.compare td { padding: 0.15rem 0.7rem; }
table.compare tbody th { font-weight: 400; border-bottom: 1px solid var(--border); }
table.compare tr.head th { padding-top: 1rem; font-weight: 600;
  border-bottom: 1px solid var(--border-hi); }
p.sections { font-size: 0.85em; color: var(--fg-muted);
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
p.sections .here { font-weight: 600; }
p.sections span.here { color: var(--fg); }
