/* Process mining: lean time split per person, team figures, time per step, findings.
   The two-column blocks use the section head's grid (400px minimum, --col-gap), so their columns line up with it. */
.pm-tag { color: var(--muted); }
.pm-people, .pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--s7, 48px) var(--col-gap, 64px); padding-top: var(--gap-in, 32px); align-items: start; }
/* Time per step needs room for its bars: under ~1170px (two 520px columns) it takes the full width, findings below it.
   Two columns are still equal halves, so they line up with the head's. */
.pm-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.pm-person { display: flex; flex-direction: column; gap: var(--s4, 16px); min-width: 0; }
/* Label above its number, as everywhere on the page (as a flex row it sat up to 900px from "23%" at 1920). */
.pm-person-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: var(--s2, 8px) var(--s3, 12px); padding-bottom: var(--s3, 12px); border-bottom: 1px solid var(--ink); }
.pm-person-head .label { grid-column: 1 / -1; }
.pm-person-head .label[data-person="A"] { color: var(--a); } .pm-person-head .label[data-person="B"] { color: var(--b); }
.pm-person-head b { font-size: var(--fs-display, clamp(40px, 4.4vw, 64px)); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; }
.pm-person-head span { font-size: 16px; color: var(--ink-2); }
.pm-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--line); }
.pm-bar span { display: block; flex: none; height: 100%; }
/* A 1px paper gap before every segment but the first, inside its own width: neighbors stay apart where hues are close. */
.pm-bar span + span { box-shadow: inset 1px 0 0 var(--paper); }
.pm-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s2, 8px) var(--s5, 24px); }
.pm-legend li { display: flex; align-items: center; gap: var(--s2, 8px); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.pm-legend i, .pm-kind i { width: 10px; height: 10px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.12); }
.pm-legend b { margin-left: auto; font-weight: 600; color: var(--ink); }
.pm-legend span { min-width: 44px; text-align: right; color: var(--muted); }

/* Four figures on the section's columns (the third starts where person B does), two per row on phones; label above value,
   values on one line however the labels wrap. */
.pm-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--col-gap, 64px); margin-top: var(--gap-in, 32px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pm-stat { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s2, 8px); min-width: 0; padding: 20px 0 var(--s4, 16px); }
.pm-stat .label { color: var(--muted); }
.pm-stat b { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.pm-case { text-transform: none; letter-spacing: 0; }

.pm-grid h3 { padding-bottom: var(--s3, 12px); border-bottom: 1px solid var(--ink); }
.pm-step { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s1, 4px) var(--s4, 16px); align-items: center; padding: var(--s3, 12px) 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pm-step.is-head { padding: var(--s3, 12px) 0 var(--s2, 8px); }
.pm-step.is-head .label { color: var(--muted); } .pm-step.is-head .label[data-person="A"] { color: var(--a); } .pm-step.is-head .label[data-person="B"] { color: var(--b); }
/* The kind tag is always on the name's second line (inline, it wrapped on some rows and not others). */
.pm-step-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; color: var(--ink-2); }
.pm-kind { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pm-kind i { width: 8px; height: 8px; }
/* Widths resolve against the cell minus 52px, kept for the seconds label, and the bar never shrinks: shrinkable bars
   next to their label collapsed every step over ~78% of the longest to one length (226 s drew as long as 198 s). */
.pm-step-bar { display: flex; align-items: center; gap: var(--s2, 8px); min-width: 0; padding-right: 52px; }
.pm-step-bar i { display: block; flex-shrink: 0; height: 6px; border-radius: 3px; min-width: 2px; background: var(--a-mid, #C9A3A3); }
.pm-step-bar[data-person="B"] i { background: var(--b-mid, #ABABD6); }
.pm-step-bar b { font-weight: 500; font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.pm-finding { display: flex; flex-direction: column; gap: var(--s2, 8px); padding: var(--s4, 16px) 0 20px; border-bottom: 1px solid var(--line); }
.pm-finding h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.pm-finding-value { font-size: 14px; font-weight: 500; color: var(--ink); }
.pm-finding p { max-width: 68ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.pm-evidence { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2, 8px); }
.pm-evidence .label { color: var(--muted); }
.pm-evidence button { font: inherit; font-size: 13px; font-weight: 500; min-height: 32px; padding: 0 var(--s3, 12px); color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.pm-evidence button:hover { border-color: var(--ink); }
.pm-none { font-size: 16px; color: var(--muted); padding-top: var(--s4, 16px); }
/* No source note under the findings (process.json still carries `source`). */

@media (max-width: 600px) {
  .pm-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-stat b { font-size: 20px; }
  .pm-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pm-step-name, .pm-step.is-head > .label:first-child { grid-column: 1 / -1; }
}
/* Type floor: 12px on phones and any touch screen; evidence pills 44px for fingers. */
@media (max-width: 600px), (any-pointer: coarse) { .pm-kind { font-size: 12px; } .pm-evidence button { min-height: 44px; } }
