/*
 * EqualDoX website – DoX-Validate product page (pdf-validator/index.html, en/pdf-validator/index.html).
 * Loaded after style.css; uses only its colour tokens (no literal colours), except one
 * page-local colour for the false-positive bars of the detection chart (--pv-fp-color)
 * and the line-chart series tokens of the performance section (.pv-performance).
 *
 * Page order: hero, what it checks (#checks), detection quality (#detection),
 * performance (#performance), free-check call to action (#free-check).
 *
 * Contrast: text #1F2937 and muted #6B7280 only on #FFFFFF / #F9FAFB here.
 * On the light-green call-to-action card (#DCFCE7) only text colour (13.4:1) and
 * primary-dark (6.5:1), never muted (4.4:1 would fail AA).
 * The chart bars are graphics (>= 3:1 on #FFFFFF): primary #16A34A 3.3:1 for
 * DoX-Validate, muted #6B7280 4.8:1 for the comparison. A bar is never read
 * by colour alone: its name stands beside it and its value as text. Every line of
 * the performance line chart has its own marker shape, a legend entry and (on wide
 * charts) an end label.
 */

/* ---------- Hero: text only, left-aligned like the converter page (.page-hero > .container) ---------- */

/* The product name never breaks at its hyphen. */
.pv-hero .pv-nowrap {
  white-space: nowrap;
}

/* Section headings break into lines of similar length. */
.pv-features .section-intro h2 {
  text-wrap: balance;
}

/* ---------- What it checks ---------- */

/* Left-aligned like the hero: heading and intro start at the container edge,
   which is also the left edge of the card grid. Only the horizontal centring
   of .section-intro is removed; its width and the space below it stay. */
.pv-features .section-intro {
  margin-inline: 0;
  text-align: start;
}

/* Compact cards for the short texts: the site's card with less vertical space
   (1.5rem instead of 2rem above and below, icon 1rem instead of 1.25rem above the heading). */
.pv-features .card {
  padding-block: 1.5rem;
}

.pv-features .card-icon {
  margin-bottom: 1rem;
}

.pv-features .card h3 {
  margin-bottom: 0.5rem;
}

.pv-features .card p + p {
  margin-top: 0.75rem;
}

/* ---------- Benchmark sections: detection quality (#detection) and performance (#performance) ----------
 *
 *   .pv-bench               result panel (white card): a <figure class="pv-bench"> holding
 *                           h3.pv-bench-title and the chart (both sections).
 *   #detection              left-aligned intro (.pv-detection-intro), then two columns (.pv-dq-layout):
 *                           horizontal grouped bar chart (.pv-dq) | explanation (.pv-dq-explain).
 *                           The methodology sits only in the info tooltip (.pv-info) beside the chart
 *                           title; no notes, cards or footnotes around the chart.
 *   #performance            .split.pv-split (text column | speed bar chart), then the full-width line
 *                           chart (figure.pv-scaling, methodology in its .pv-info tooltip), last the
 *                           short PAC note (p.fine-print.pv-source). See "Performance" below.
 *
 * Charts: every name and value is HTML text; bars and marks are aria-hidden graphics beside it.
 * The site's CSP (style-src 'self') blocks style attributes, so a bar length is a custom property
 * set in this file (as for .pv-bar-dox below) or the geometry of an inline SVG.
 * DoX-Validate is drawn in --color-primary; bars of the other tools in --color-text-muted.
 */

@media (min-width: 52rem) {
  .split.pv-split {
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.pv-split h2 {
  hyphens: auto;
  overflow-wrap: break-word;
}

/* The product name never breaks at its hyphen. */
.pv-split .pv-nowrap,
.pv-detection .pv-nowrap {
  white-space: nowrap;
}

/* Result panel */
.pv-bench {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pv-bench-title {
  margin: 0 0 1.5rem;
  font-size: var(--text-lg);
}

/* ---------- Detection quality (#detection) ---------- */

.pv-detection-intro {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.pv-detection-intro h2 {
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.pv-detection-intro p:not(.eyebrow) {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.pv-detection-intro > :last-child {
  margin-bottom: 0;
}

/* Chart | explanation; stacked (chart first) below 60rem */
.pv-dq-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .pv-dq-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3.5rem;
  }
}

/* Chart title with the methodology button; the tooltip opens below it, from the title's left edge */
.pv-dq-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.pv-dq-head .pv-bench-title {
  margin: 0;
}

.pv-info-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.pv-info-button:hover,
.pv-info.is-open .pv-info-button {
  background: var(--color-primary-light);
}

/* Shown on hover, on keyboard focus and after a click or tap (js/pdf-validator.js); Escape hides it.
   The top padding bridges the gap, so the pointer can move onto the text. */
.pv-info-tip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  width: min(30rem, 100%);
  padding-top: 0.5rem;
}

.pv-info:hover .pv-info-tip,
.pv-info-button:focus-visible + .pv-info-tip,
.pv-info.is-open .pv-info-tip {
  display: block;
}

.pv-info.is-dismissed .pv-info-tip {
  display: none;
}

/* White on text colour 14.7:1 */
.pv-info-tip ul {
  margin: 0;
  padding: 0.875rem 1rem 0.875rem 2rem;
  background: var(--color-text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
  color: var(--color-bg);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.pv-info-tip li + li {
  margin-top: 0.375rem;
}

/* Bar colours: detection rate of DoX-Validate in primary #16A34A (3.3:1 on white), of every other
   validator (PAC included) in muted #6B7280 (4.8:1); false-positive rate of every validator in soft
   red #F87171, the one page-local colour (2.8:1 on white, below the 3:1 for graphics, accepted
   because no bar carries information alone: the false-positive bar is always the second bar of its
   row, its value is printed beside it and its metric is named in hidden text). */
.pv-dq {
  --pv-fp-color: #F87171;
}

.pv-dq-group {
  --pv-c: var(--color-text-muted);
}

.pv-dq-group.pv-dq-dox {
  --pv-c: var(--color-primary);
}

.pv-dq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.pv-dq-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pv-dq-legend li::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 0.75rem;
  border-radius: 0.1875rem;
}

/* Detection swatch in both detection colours: green (DoX-Validate) and gray (the others) */
.pv-dq-key-det::before {
  background: linear-gradient(90deg, var(--color-primary) 50%, var(--color-text-muted) 50%);
}

.pv-dq-key-fp::before {
  background: var(--pv-fp-color);
}

/*
 * Bar lengths: the exact shares (labels are rounded to whole percent).
 * Detected: of 156 invalid files; false positives: of 141 valid files.
 */
.pv-dq-dox {
  --pv-det: 92.31; /* 144/156 */
  --pv-fp: 0; /* 0/141 */
}

.pv-dq-pac {
  --pv-det: 62.82; /* 98/156 */
  --pv-fp: 7.8; /* 11/141 */
}

.pv-dq-verapdf {
  --pv-det: 92.31; /* 144/156 */
  --pv-fp: 0; /* 0/141 */
}

.pv-dq-vellum {
  --pv-det: 82.05; /* 128/156 */
  --pv-fp: 14.18; /* 20/141 */
}

.pv-dq-outloud {
  --pv-det: 60.9; /* 95/156 */
  --pv-fp: 22.7; /* 32/141 */
}

.pv-dq-cpdf {
  --pv-det: 53.21; /* ~83/156, approximate mapping */
  --pv-fp: 12.06; /* ~17/141, approximate mapping */
}

/*
 * Horizontal grouped bars on a 0-100 % scale. Each row: name | two bars. The scale is the bar
 * column minus the space kept for the value label (--pv-label); grid lines and axis use the same box.
 */
.pv-dq-chart {
  --pv-name: 7.5rem;
  --pv-gap: 1rem;
  --pv-label: 3.75rem;
}

.pv-dq-groups {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Grid lines at 0 (stronger), 25, 50, 75 and 100 % */
.pv-dq-groups::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  bottom: -0.5rem;
  left: calc(var(--pv-name) + var(--pv-gap));
  right: var(--pv-label);
  z-index: -1;
  border-left: 1px solid var(--color-border-strong);
  background:
    linear-gradient(var(--color-border), var(--color-border)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--color-border), var(--color-border)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--color-border), var(--color-border)) 75% 0 / 1px 100% no-repeat,
    linear-gradient(var(--color-border), var(--color-border)) 100% 0 / 1px 100% no-repeat;
}

.pv-dq-group {
  display: grid;
  grid-template-columns: var(--pv-name) minmax(0, 1fr);
  column-gap: var(--pv-gap);
  align-items: center;
  min-width: 0;
}

.pv-dq-name {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* DoX-Validate highlighted: name in primary-dark (6.8:1 on #F9FAFB, 7.1:1 on white) */
.pv-dq-dox .pv-dq-name {
  color: var(--color-primary-dark);
  font-weight: 800;
}

/* Two bars of 0.75rem, 0.375rem apart (labels 18px apart, never touching); rows 1.125rem apart.
   The fixed height keeps PAC's empty row as tall as the others. */
.pv-dq-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.375rem;
  min-height: 1.875rem;
}

/* Slightly rounded at the base, a little more at the end */
.pv-dq-bar {
  position: relative;
  width: calc((100% - var(--pv-label)) * var(--pv-v) / 100);
  height: 0.75rem;
  border-radius: 0.125rem 0.375rem 0.375rem 0.125rem;
}

.pv-dq-det {
  --pv-v: var(--pv-det);
  background: var(--pv-c);
}

.pv-dq-fp {
  --pv-v: var(--pv-fp);
  background: var(--pv-fp-color);
}

.pv-dq-val {
  position: absolute;
  top: 50%;
  left: 100%;
  padding-left: 0.5rem;
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(-50%);
}

.pv-dq-axis {
  position: relative;
  height: 1rem;
  margin: 0.75rem var(--pv-label) 0 calc(var(--pv-name) + var(--pv-gap));
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.pv-dq-axis span {
  position: absolute;
  top: 0;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pv-dq-axis span:nth-child(1) { left: 0; }
.pv-dq-axis span:nth-child(2) { left: 25%; }
.pv-dq-axis span:nth-child(3) { left: 50%; }
.pv-dq-axis span:nth-child(4) { left: 75%; }
.pv-dq-axis span:nth-child(5) { left: 100%; }

/* Narrow cards: name above its bars, wider scale; values stay as text at the bar ends */
@media (max-width: 34rem) {
  .pv-dq-chart {
    --pv-name: 0px;
    --pv-gap: 0px;
  }

  .pv-dq-groups {
    gap: 1.25rem;
  }

  .pv-dq-group {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.375rem;
  }

  .pv-dq-groups::before,
  .pv-dq-axis {
    display: none;
  }
}

/* Explanation beside the chart (on the section's grey: text 14.1:1, muted 4.6:1) */
.pv-dq-explain h3 {
  margin-bottom: 1.25rem;
  font-size: var(--text-xl);
  text-wrap: balance;
}

.pv-dq-terms {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.pv-dq-terms dt {
  color: var(--color-text);
  font-weight: 700;
}

.pv-dq-terms dd {
  margin: 0.25rem 0 0;
  color: var(--color-text-muted);
}

.pv-dq-terms dd strong {
  color: var(--color-text);
  font-weight: 650;
}

.pv-dq-claim {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-strong);
  color: var(--color-primary-dark);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pv-bench figcaption {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Further result blocks below the split */
.pv-result {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.pv-subhead {
  margin: 0 0 1.25rem;
  font-size: var(--text-xl);
}

/* ---------- Performance (#performance) ----------
 *
 *   .split.pv-split          text | bar chart "Geschwindigkeit im Vergleich" (#performance-runtime)
 *   figure.pv-scaling        full width: line chart "validation time by page count" (#performance-scaling),
 *                            drawn by js/pdf-validator.js from its data table (.pv-chart-table, data-ms).
 *                            The script adds .pv-chart-ready; until then (and without JavaScript)
 *                            the table is shown instead of the chart and the legend.
 *   p.pv-source              the PAC note
 *
 * Series colours. DoX-Validate is the brand green; the other four were checked with the
 * dataviz palette validator on #FFFFFF: each >= 3:1, chroma and lightness in band; the lines
 * that run close together pass the colour-vision checks (cpdf/VellumPdf, DoX-Validate/cpdf,
 * outloud/veraPDF; DoX-Validate/VellumPdf in the 6-8 band, legal with the marker shapes and
 * labels). Competitor bars of the speed chart are muted grey, as in #detection (4.8:1).
 */
.pv-performance {
  --pv-s-dox: var(--color-primary);
  --pv-s-cpdf: #2A78D6;
  --pv-s-vellum: #EB6834;
  --pv-s-outloud: #7C3AED;
  --pv-s-verapdf: #DB2777;
  --pv-bar-muted: var(--color-text-muted);
}

/* Section heading: whole words, lines of similar length (its words fit the column) */
.pv-performance .pv-split h2 {
  -webkit-hyphens: manual;
  hyphens: manual;
  text-wrap: balance;
}

.pv-performance .split.pv-split > :first-child .lead + .lead {
  margin-top: -0.5rem;
}

/* Compact section: no space after the last paragraph of the text column */
.pv-performance .split.pv-split > :first-child > :last-child {
  margin-bottom: 0;
}

/* Desktop: a slightly wider text column (heading in two lines, short paragraphs), so the
   whole section with both charts fits one screen */
@media (min-width: 64rem) {
  .pv-performance .split.pv-split {
    grid-template-columns: 6fr 5fr;
  }
}

/* Chart titles: h3 + one quiet line below it */
.pv-performance .pv-bench-title {
  margin: 0;
  text-wrap: balance;
}

.pv-bench-sub {
  margin: 0.375rem 0 1.75rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/*
 * Speed comparison: one row per tool, name | bar + value. The bar length is the tool's
 * throughput divided by DoX-Validate's, taken from the width left beside the value label
 * (--pv-value-space). Throughput in pages/s (chart-data.json, summary.all):
 *   DoX-Validate 2,562 -> 1 · cpdf 611.8 -> 0.2388 · VellumPdf 417.2 -> 0.1628 ·
 *   outloud 143.1 -> 0.0559 · veraPDF 130.8 -> 0.0511
 */
.pv-bars {
  --pv-value-space: 4.25rem;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-bar-row {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem 1rem;
}

.pv-bar-name {
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.3;
}

.pv-bar-row-dox .pv-bar-name {
  font-weight: 700;
}

.pv-bar-line {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

/* 4px rounded data end, square at the baseline */
.pv-bar {
  flex: none;
  width: calc((100% - var(--pv-value-space)) * var(--pv-share));
  min-width: 3px;
  height: 1.375rem;
  border-radius: 0 4px 4px 0;
  background: var(--pv-bar-muted);
}

.pv-bar-dox {
  --pv-share: 1;
  background: var(--pv-s-dox);
}

.pv-bar-cpdf {
  --pv-share: 0.2388;
}

.pv-bar-vellum {
  --pv-share: 0.1628;
}

.pv-bar-outloud {
  --pv-share: 0.0559;
}

.pv-bar-verapdf {
  --pv-share: 0.0511;
}

.pv-bar-value {
  color: var(--color-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pv-bar-row-dox .pv-bar-value {
  font-size: var(--text-lg);
  font-weight: 800;
}

/* Narrow panels: name above its bar */
@media (max-width: 30rem) {
  .pv-bar-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Line chart panel below the split */
.pv-scaling {
  margin-top: clamp(1.75rem, 1.25rem + 1vw, 2.25rem);
}

/* Wide desktop (full container width): the legend beside the title and subtitle instead of
   a row of its own; both fit one line there */
@media (min-width: 75rem) {
  .pv-scaling.pv-chart-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1.5rem;
    align-items: center;
  }

  .pv-scaling.pv-chart-ready .pv-title-row {
    grid-column: 1;
    grid-row: 1;
  }

  .pv-scaling.pv-chart-ready .pv-bench-sub {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 1.25rem;
  }

  .pv-scaling.pv-chart-ready .pv-legend {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.375rem 0.875rem;
    margin: 0.375rem 0 0;
  }

  .pv-scaling.pv-chart-ready .pv-chart,
  .pv-scaling.pv-chart-ready .pv-table-wrap {
    grid-column: 1 / -1;
  }
}

/* Chart title with the methodology button; the tooltip (.pv-info, see #detection) opens below it */
.pv-title-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Series colour per tool, for the legend keys and the chart marks */
.pv-s-dox { --pv-series: var(--pv-s-dox); }
.pv-s-cpdf { --pv-series: var(--pv-s-cpdf); }
.pv-s-vellum { --pv-series: var(--pv-s-vellum); }
.pv-s-outloud { --pv-series: var(--pv-s-outloud); }
.pv-s-verapdf { --pv-series: var(--pv-s-verapdf); }

/* Legend: line key with the marker shape of the series, name in text colour */
.pv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: -0.75rem 0 0.75rem;
  padding: 0;
  list-style: none;
  color: var(--color-text);
  font-size: var(--text-sm);
}

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

.pv-legend-dox {
  font-weight: 700;
}

.pv-key {
  flex: none;
  overflow: visible;
}

.pv-key-line {
  fill: none;
  stroke: var(--pv-series);
  stroke-width: 2;
  stroke-linecap: round;
}

.pv-legend-dox .pv-key-line {
  stroke-width: 3;
}

.pv-key-mark {
  fill: var(--pv-series);
  stroke: var(--color-bg);
  stroke-width: 1.5;
}

/* Chart area; hidden until the script has drawn it */
.pv-chart {
  position: relative;
  display: none;
}

.pv-scaling:not(.pv-chart-ready) .pv-legend {
  display: none;
}

.pv-scaling.pv-chart-ready .pv-chart {
  display: block;
}

.pv-chart-svg {
  display: block;
  overflow: visible;
  font-family: var(--font-body);
}

.pv-gridline {
  stroke: var(--color-border);
  stroke-width: 1;
}

.pv-axis-base {
  stroke: var(--color-border-strong);
  stroke-width: 1;
}

.pv-tick {
  fill: var(--color-text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pv-axis-title {
  fill: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.pv-line {
  fill: none;
  stroke: var(--pv-series);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pv-line.pv-s-dox {
  stroke-width: 3;
}

.pv-mark {
  fill: var(--pv-series);
  stroke: var(--color-bg);
  stroke-width: 1.5;
}

.pv-mark.is-active {
  stroke-width: 2.5;
}

.pv-end-label {
  fill: var(--color-text);
  font-size: 12.5px;
}

.pv-end-label.pv-s-dox {
  font-weight: 700;
}

.pv-leader {
  stroke: var(--color-border-strong);
  stroke-width: 1;
}

.pv-crosshair {
  stroke: var(--color-text-muted);
  stroke-width: 1;
}

.pv-hit {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}

/* Hover tooltip: one interval, every tool's value (placed by the script) */
.pv-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  min-width: 12rem;
  padding: 0.625rem 0.875rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.45;
  pointer-events: none;
}

.pv-tip[hidden] {
  display: none;
}

/* No automatic hyphenation of product names and figures in the small tooltips */
.pv-tip p,
.pv-tip li,
.pv-scaling .pv-info-tip li {
  -webkit-hyphens: manual;
  hyphens: manual;
}

.pv-tip-head {
  margin: 0 0 0.375rem;
  font-weight: 700;
}

.pv-tip-list {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-tip-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 0.5rem;
}

.pv-tip-key {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
  background: var(--pv-series);
}

.pv-tip-list .pv-s-dox {
  font-weight: 700;
}

.pv-tip-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Data table: the text alternative of the line chart (visible without JavaScript) */
.pv-table-wrap {
  overflow-x: auto;
}

.pv-scaling.pv-chart-ready .pv-table-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pv-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.pv-chart-table caption {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  text-align: start;
}

.pv-chart-table th,
.pv-chart-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: end;
  white-space: nowrap;
}

.pv-chart-table th:first-child {
  text-align: start;
}

/* Source line, last in a benchmark section */
.pv-source {
  max-width: 54rem;
  margin: 1.25rem 0 0;
}

/* The PAC note in one line where the container allows it */
.pv-performance .pv-source {
  max-width: none;
}

/* ---------- Free-check call to action (#free-check) ----------
 * One light-green card on the white page, as wide as the content column (.container, like
 * the chart cards above): label, heading, one sentence and the single button, all
 * left-aligned; the text keeps its reading width (.pv-cta-text). The section follows
 * the white performance section, so it drops its top padding (.section-tight-top) and keeps
 * the normal section space below the card. Text colour only on the green; the label is a
 * white badge (primary-dark on white 7.1:1).
 */
.pv-cta {
  display: grid;
  justify-items: start;
  gap: 1.75rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}

.pv-cta-text {
  max-width: 40rem;
}

.pv-cta .eyebrow {
  background: var(--color-bg);
}

.pv-cta h2 {
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.pv-cta-text p:last-child {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-lg);
}

.pv-cta-button {
  gap: 0.625rem;
  box-shadow: var(--shadow-float);
}

.pv-cta-button svg {
  flex: none;
  transition: transform 0.15s ease;
}

.pv-cta-button:hover svg {
  transform: translateX(3px);
}

@media (max-width: 34rem) {
  .pv-cta-button {
    justify-self: stretch;
  }
}

/* ---------- Preferences ---------- */

/* Forced colours drop backgrounds: keep the bars and the swatch visible,
   the comparison bar outlined instead of filled, and outline the panels
   that are told apart from the page only by their background. */
@media (forced-colors: active) {
  .pv-bench {
    border-color: CanvasText;
  }

  .pv-info-tip ul {
    border: 1px solid CanvasText;
  }

  .pv-cta {
    border: 1px solid CanvasText;
  }

  .pv-bar-dox,
  .pv-dq-bar,
  .pv-dq-legend li::before {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .pv-dq-fp,
  .pv-dq-legend .pv-dq-key-fp::before {
    background: Canvas;
    border: 2px solid CanvasText;
  }

  .pv-bar {
    forced-color-adjust: none;
    background: Canvas;
    border: 2px solid CanvasText;
    border-left: 0;
  }

  .pv-bar-dox {
    background: CanvasText;
  }

  .pv-tip {
    border-color: CanvasText;
  }
}
