/* Guide sidebar illustration (guide-painter-station.js). Loaded after guide.css
   and homepage-duck.css (the duck's colours), only on guide pages with
   "station": "painter" in GUIDE_PAGES. The block's layout is shared, in guide.css. */
.mespy-guide .gd-station--painter {
  /* Platform, hoists and cables: the duck station's hardware greys, the
     same in both themes. */
  --gd-paint-steel-top: #68737a;
  --gd-paint-steel: #4b5357;
  --gd-paint-steel-shade: #353b3e;
  --gd-paint-hoist: #2b3033;
  --gd-paint-cable: #5b6468;
  --gd-paint-metal: #b2b7b9;
  --gd-paint-led: #86b7ea;
  /* The paint: the duck's gold (the dark theme's accent amber), with the
     dark primary button's hover tint as its sheen, in both themes. The page
     itself shows through where there is no paint, and the duck's contour
     (guide-painter-station.js) is the page colour. */
  --gd-paint-orange: var(--mh-duck-body);
  --gd-paint-orange-shade: color-mix(in srgb, var(--mh-duck-body) 70%, var(--mh-bg));
  --gd-paint-orange-sheen: #ffcb84;
  /* Earlier passes, already dry: the same gold, faded into the page. */
  --gd-paint-dry: color-mix(in srgb, var(--mh-duck-body) 58%, var(--mh-bg));
  --gd-paint-dry-shade: color-mix(in srgb, var(--mh-duck-body) 38%, var(--mh-bg));
  /* Shaded inner edge of the duck's feet, which keep the beak's orange. */
  --gd-paint-feet-shade: color-mix(in srgb, var(--mh-duck-beak) 70%, #141718);
  /* The duck's contour: the page colour in the dark theme, so it vanishes on
     the bare page; a warm grey in the light theme, where the whites would
     otherwise melt into the page. Either way it parts the gold duck from the
     gold paint behind it. */
  --gd-paint-contour: var(--mh-sprite-edge);
  /* Glossy highlight on the rubber duck. */
  --gd-paint-gloss: color-mix(in srgb, var(--mh-duck-body) 55%, white);
  /* The painter's whites: the dungarees, in the dark theme's ink. */
  --gd-paint-whites: #f3f1e9;
  --gd-paint-whites-shade: color-mix(in srgb, #f3f1e9 72%, #141718);
}
/* Drawn at a whole 3 px per pixel instead of stretched to the column. */
.mespy-guide .gd-station--painter svg { width: auto; max-width: 100%; }

/* The duck's painting stroke is frame by frame, in guide-painter-station.js.
   The hoist LED blinks. */
@media (prefers-reduced-motion: no-preference) {
  .mespy-guide .gd-station__led { animation: gd-paint-blink 2.8s steps(1, end) infinite; }
}
@keyframes gd-paint-blink { 50% { opacity: 0; } }
