/* fig-dp: the schematic perception-distortion curve, in the design of Blau and Michaeli (2018).
   Figure-only styles; colours come from the kit tokens. */
#fig-dp .dp-svg { display: block; }   /* left-aligned, like every sibling figure and its caption */

/* Axes: two plain lines with arrowheads, no ticks (a schematic has no values). */
.dp-axis { fill: none; stroke: var(--muted); stroke-width: 1.25; }
.dp-axis-head { fill: var(--muted); stroke: none; }
.dp-axis-name { fill: var(--fg); }

/* The two outside direction arrows: grey (reference marks), their words in --fg. */
.dp-dir-arrow { fill: var(--c-ref); stroke: none; }
.dp-dir { fill: var(--fg); }

/* The curve: the best achievable perception at each distortion. */
.dp-curve { fill: none; stroke: var(--c-ink); stroke-width: 2.25; stroke-linecap: round; }

/* Regions. Impossible: the empty-cell tint one step stronger (hatching means "masked, unknown" and "invalid outcome"
   elsewhere). Possible: half the empty-cell tint on the page ground. Possible on the ground is about 1.09:1, so the
   plot area shows its edge; Impossible against Possible about 1.29:1 (light) and 1.30:1 (dark). */
.dp-impossible { fill: color-mix(in oklab, var(--c-axis) 25%, var(--c-empty)); stroke: none; }
.dp-possible { fill: color-mix(in oklab, var(--c-empty) 50%, var(--bg)); stroke: none; }
.dp-region-name { fill: var(--fg); }

/* The prior: the hollow blue marker of fig-tradeoff. */
.dp-prior-mark { fill: var(--bg); stroke: var(--c-prior); stroke-width: 2; }

/* PIFM: from the prior toward the perfect-perception end. */
.dp-arrow { fill: none; stroke: var(--c-flow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dp-arrow-head { fill: var(--c-flow); stroke: none; }

/* Labels keep a ring of page ground so lines never cut through them. */
.dp-halo { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
