/* The two process drawings (process-viz.js): the printer in section and the sealed-hollow knobs.
   Same language as the rest of the site: hairlines, square corners, mono figures, straw and temper blue. */
.pv {
  --pv-hot: oklch(74% 0.19 55); --pv-hot-core: oklch(97% 0.07 95); --pv-ember: oklch(52% 0.14 35);
  --pv-fused: oklch(40% 0.012 250); --pv-metal: oklch(84% 0.01 240); --pv-metal-dark: oklch(38% 0.025 255); --pv-void: oklch(97.5% 0.004 235);
  margin: 0; min-width: 0;
}
@media (prefers-color-scheme: dark) {
  .pv { --pv-fused: oklch(30% 0.012 250); --pv-metal: oklch(31% 0.022 250); --pv-metal-dark: oklch(62% 0.02 250); --pv-void: oklch(19% 0.016 250); --pv-ember: oklch(58% 0.15 35); }
}
.pv figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s3); max-width: 80ch; }
.pv-still img, .pv-still svg { display: block; width: 100%; height: auto; }
.pv-still { display: block; border: 1px solid var(--line-strong); background: var(--surface); }
.pv.pv-live .pv-still { display: none; }
.pv-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* the printer */
.pv-frame { border: 1px solid var(--line-strong); background: var(--surface); }
.pv-lpbf:not(.pv-live) .pv-frame { display: none; }
.pv-views { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); }
.pv-view { min-width: 0; display: flex; flex-direction: column; }
.pv-top { border-left: 1px solid var(--line); }
.pv-view canvas { display: block; width: 100%; }
.pv-tag { display: flex; justify-content: space-between; gap: var(--s3); margin: 0; max-width: none; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); font: 500 var(--t-xs)/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pv-tag span:first-child { color: var(--ink); }
.pv-read { margin: 0; display: grid; align-content: center; flex: 1; border-top: 1px solid var(--line); }
.pv-read div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: var(--s2) var(--s3); }
.pv-read div + div { border-top: 1px solid var(--line); }
.pv-read dt { font-size: var(--t-xs); color: var(--muted); }
.pv-read dd { margin: 0; font-size: var(--t-sm); font-weight: 500; text-align: right; }

.pv-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pv-stages li { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); font-size: var(--t-sm); font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); box-shadow: inset 0 3px 0 transparent; }
.pv-stages li:first-child { border-left: 0; }
.pv-stages li .pv-num { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border: 1px solid var(--line-strong); font-size: var(--t-xs); font-weight: 500; }
.pv-stages li.is-on { color: var(--ink); background: var(--laser-soft); box-shadow: inset 0 3px 0 var(--laser); }
.pv-stages li.is-on .pv-num { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.pv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s3); border-top: 1px solid var(--line); }
.pv-btn { appearance: none; font: 600 var(--t-sm)/1 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; padding: .6rem .8rem; min-height: 2.5rem; cursor: pointer; }
.pv-btn:hover { border-color: var(--ink); }
.pv-play { min-width: 4.6rem; background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pv-speed { font-family: var(--mono); font-weight: 500; }
.pv-scrub { flex: 1 1 12rem; min-width: 0; accent-color: var(--laser-ink); height: 2.5rem; margin: 0; }

.pv-after-head { border-top: 1px solid var(--line-strong); }
.pv-after { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-after li { display: grid; grid-template-rows: auto 1fr; border-left: 1px solid var(--line); min-width: 0; box-shadow: inset 0 -3px 0 transparent; }
.pv-after li:first-child { border-left: 0; }
.pv-after canvas { display: block; width: 100%; }
.pv-after li > div { padding: var(--s3); border-top: 1px solid var(--line); }
.pv-after h4 { margin: 0 0 var(--s1); font-size: var(--t-sm); font-weight: 700; }
.pv-after p { margin: 0; font-size: var(--t-xs); color: var(--muted); max-width: none; }
.pv-after li.is-on { background: var(--laser-soft); box-shadow: inset 0 -3px 0 var(--laser); }

.pv-legend { list-style: none; counter-reset: pv; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2) var(--s6); font-size: var(--t-sm); color: var(--muted); }
.pv-legend li { counter-increment: pv; display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s2); align-items: start; }
.pv-legend li::before { content: counter(pv); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1px solid var(--ink); border-radius: 50%; font: 500 var(--t-xs)/1 var(--mono); color: var(--ink); }
.pv-legend b { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .pv-views { grid-template-columns: minmax(0, 1fr); }
  .pv-top { border-left: 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pv-top .pv-tag { grid-column: 1 / -1; }
  .pv-read { border-top: 0; border-left: 1px solid var(--line); }
  .pv-read div { flex-direction: column; align-items: flex-start; gap: 0; }
  .pv-read dd { text-align: left; }
  .pv-stages, .pv-after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-stages li:nth-child(3), .pv-after li:nth-child(3) { border-left: 0; }
  .pv-stages li:nth-child(n+3), .pv-after li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pv-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-scale, .pv-after-head span + span { display: none; }
  .pv-of { display: block; color: var(--muted); font-size: var(--t-xs); }
}
@media (max-width: 520px) {
  .pv-legend { grid-template-columns: minmax(0, 1fr); }
  .pv-stages li { padding: var(--s2) var(--s3); }
  .pv-btn { padding: .6rem .65rem; }
}

/* sealed hollows */
.pv-hollow .pv-frame { position: relative; }
.pv-hollow canvas { display: block; width: 100%; touch-action: pan-y; cursor: ew-resize; }
.pv-hollow .pv-still { border: 0; background: none; }
.pv-hollow .d-drain line { stroke: var(--surface); stroke-width: 7; }
.pv-hollow .pv-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pv-hollow .pv-pair > div { padding: var(--s3); min-width: 0; }
.pv-hollow .pv-pair > div + div { border-left: 1px solid var(--line); }
.pv-hollow .pv-pair b { display: block; font-size: var(--t-sm); color: var(--ink); }
.pv-hollow .pv-pair span { display: block; font-size: var(--t-xs); color: var(--muted); }
.pv-hollow .pv-pair b::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; background: var(--err); }
.pv-hollow .pv-good b::before { background: var(--ok); }
.pv-hollow .pv-heavy b::before { background: var(--warn); }
.pv-hollow .pv-toggle { position: absolute; top: var(--s2); right: var(--s2); min-height: 2rem; padding: .4rem .6rem; font-size: var(--t-xs); }
.pv-hollow .pv-hint { position: absolute; top: var(--s2); left: var(--s3); margin: 0; font: 500 var(--t-xs)/2rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.pv-hollow:not(.pv-live) .pv-hint { display: none; }

.pv-of { color: var(--muted); }
