/* 52_marks.css - KP Equipment editor release (Addendum B, F10): the look of the part symbols on the plan.
 *
 * 52_marks.js draws the geometry and puts classes only on the overlay (no fill, stroke or style attributes):
 *   .ov-host        one per machine group; holds the marks of its parts
 *   .ov             the marks of one part
 *   .ov-sym         the part symbol (also .ov-sym--<category>; not styled, the ink does not change by category)
 *   .ov-arrow       which way product moves; --both = runs either way, --multi = many ways
 *   .ov-fill        a solid detail inside a symbol (a dot, a letter)
 *   .ov-nostroke    a detail that must not be outlined
 * Strokes keep their width at every zoom: 30_plan.css sets vector-effect on the overlay.
 *
 * The look (F0c mock): a symbol is an outline, the arrow is the only solid mark on a part, and both take one
 * ink that reads on the part fill in light and in dark. --pm-ink is local to the overlay, not a global token.
 */

.ov {
  --pm-ink: var(--ink);
  fill: none;
  stroke: var(--pm-ink);
  color: var(--pm-ink);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ov text { font-family: var(--font); }
.ov-fill { fill: var(--pm-ink); }
.ov-nostroke { stroke: none; }

/* The arrow is solid with no outline. The two-way and many-way marks carry a shaft, so they keep a line. */
.ov-arrow { fill: var(--pm-ink); stroke: none; }
.ov-arrow--both, .ov-arrow--multi { stroke: var(--pm-ink); stroke-width: 1.5; }

/* A colour mode paints the parts in light pastels in both themes, so the ink goes dark with the fill.
 * The hook is the fill 52_marks.js sets on the part shapes of the machine. Two cases keep the theme ink:
 * a retired machine (it keeps its grey theme fill) and a platform (its fill is see-through, so in dark
 * the plan shows through it and a dark ink would vanish). */
.machine:not(.is-retired):has(> [style*="--eq-fill"]) > .ov-host .ov:not(:has(> .ov-sym[data-sym="platform"])) { --pm-ink: var(--paper-ink); }

/* A retired machine takes a quieter theme ink in every colour mode. */
.machine.is-retired > .ov-host .ov { --pm-ink: var(--ink-muted); }

/* The Key draws its samples on light tiles in both themes. */
.legend-row .ov { --pm-ink: var(--paper-ink); }
