/* ==========================================================================================
   BarcoderX website: "Deep printing pages" layer. Author: BarcoderX.
   Pages: /printing/native-or-raster/, /print-agent/, /printing/languages/ and their Spanish twins.
   Loaded after site.css, inner.css, zpl.css and learn.css. The page frame, the responsive table (.ln-tab), the definition
   rows (.ln-defs), the numbered steps (.ln-steps), the legend (.ln-legend), the cards (.ln-cards) and the diagram parts
   (.ln-dg and its .ln-dg-* shapes and text) all come from learn.css. This file only adds what those do not have: the
   dots of the native-versus-raster schematic and the lifelines of the print-agent sequence schematic.
   Tokens only: every colour comes from /brand/tokens.css through site.css. Light theme only.
   ========================================================================================== */

/* ============================== NATIVE OR RASTER SCHEMATIC ============================== */
/* The raster lane draws a small grid of dots. A dot that is part of the box is ink; the rest are drawn pale so the reader
   sees a grid of positions and not just a frame. The grid has far fewer dots than a real label: it shows the idea only,
   and the figure caption says so. */
.dp-on { fill: var(--bx-ink); }
.dp-off { fill: var(--bx-gray-200); }
/* The native lane shows the command text itself, in the mono face, centred like the other labels in the figure. */
.dp-code { font: 600 12.5px var(--bx-font-mono); fill: var(--bx-ink); text-anchor: middle; }

/* ============================== PRINT AGENT SEQUENCE SCHEMATIC ============================== */
/* A lifeline is the dashed vertical under each party in the sequence. Dashed and grey so the solid message arrows
   (.ln-dg-line, from learn.css) read as the foreground. */
.dp-life { fill: none; stroke: var(--bx-gray-400); stroke-width: 1.25; stroke-dasharray: 4 4; }
/* The zone marks the printer network: the one place where nothing connects in. It reuses the dashed green boundary
   language of the path diagram on /how-it-works/ but is drawn as its own class so the two can change independently. */
.dp-zone { fill: none; stroke: var(--bx-green-600); stroke-width: 1.5; stroke-dasharray: 3 5; }
/* A message label sits above its arrow: bold for the first line of the label, regular for the second. */
.dp-msg { font: 600 12.5px var(--bx-font-sans); fill: var(--bx-ink); text-anchor: middle; }
.dp-msg-s { font: 500 12px var(--bx-font-sans); fill: var(--bx-gray-700); text-anchor: middle; }
/* A message label may cross the dashed zone border (the arrow itself crosses it, which is the point of the figure), so the text carries a halo in the section background colour that hides the border line behind the letters. */
.dp-msg, .dp-msg-s { paint-order: stroke; stroke: var(--bx-canvas); stroke-width: 5px; stroke-linejoin: round; }
/* The step inside the agent (check the signature, skip a duplicate) is a box on the agent's own lifeline. */
.dp-self { fill: var(--bx-green-50); stroke: var(--bx-green-600); stroke-width: 1.5; }

/* ============================== PAGE DETAILS ============================== */
/* A worked-number row shows its working in the mono face so the digits line up and cannot be misread as prose.
   It lives inside .ln-defs dd, which already sets the 54ch measure. */
.dp-sum { display: block; margin-block: var(--bx-space-2); font: 500 var(--bx-text-sm)/1.6 var(--bx-font-mono); color: var(--bx-gray-700); overflow-wrap: anywhere; }
.dp-sum b { color: var(--bx-ink); font-weight: 600; }

/* ============================== PRINT ============================== */
@media print {
  .dp-on { fill: #000; }
  .dp-off { fill: none; }
}
