/* hiring-process.css - The hiring process editor: the hiring panel of a
   process setup, its preview dialog and the round three wording callouts.
   Linked from index.html. Every colour is a token; nothing here names a hue.

   THE CODE SITS UNDER THE NAME, QUIETLY. It is the one thing on this screen a
   rename does not change, and the whole reason renaming is safe, so it is
   always visible and never competes with the label for attention.

   THE PREVIEW IS COLOUR PLUS A WORD. A line that only differed by colour
   would say nothing to somebody who cannot tell the two apart, so every tone
   carries a leading mark as well, and the mark is text. */

.hp-head-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.hp-stages { width: 100%; }

.hp-stages td { vertical-align: top; }

.hp-label {
  display: block;
  font-weight: var(--t-semibold);
}

.hp-code {
  display: block;
  font-size: var(--t-xs);
  color: var(--c-text-3);
  font-family: var(--t-mono);
  /* Never broken mid-word: "assignment_score / d" reads as a different code
     from the one it is, and the code is the one thing on this row that has to
     be exact. The table scrolls sideways instead. */
  white-space: nowrap;
}

/* The four controls stay on one line. Wrapping them put Remove on a row of
   its own, which reads as a separate, more serious control than it is. */
.hp-stages td:last-child { white-space: nowrap; }

.hp-row-actions {
  display: inline-flex;
  gap: var(--s-1);
  justify-content: flex-end;
  flex-wrap: nowrap;
}

/* ------------------------------------------------------------- the preview */

.hp-preview-intro {
  margin: 0 0 var(--s-3);
  color: var(--c-text-3);
}

.hp-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.hp-preview-line {
  display: flex;
  gap: var(--s-2);
  align-items: baseline;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-border);
  background: var(--c-surface-2);
}

.hp-preview-line::before {
  content: "changes";
  flex: 0 0 auto;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-3);
}

.hp-preview-line[data-tone="add"]    { border-left-color: var(--c-success); }
.hp-preview-line[data-tone="add"]::before    { content: "adds"; }
.hp-preview-line[data-tone="remove"] { border-left-color: var(--c-danger); }
.hp-preview-line[data-tone="remove"]::before { content: "removes"; }
.hp-preview-line[data-tone="move"]   { border-left-color: var(--c-accent); }
.hp-preview-line[data-tone="move"]::before   { content: "moves"; }
.hp-preview-line[data-tone="warn"]   { border-left-color: var(--c-warn); }
.hp-preview-line[data-tone="warn"]::before   { content: "watch"; }
.hp-preview-line[data-tone="mail"]   { border-left-color: var(--c-accent); }
.hp-preview-line[data-tone="mail"]::before   { content: "mail"; }

/* ------------------------------------------------------------- the wording */

.hp-wording {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

@media (min-width: 60rem) {
  .hp-wording { grid-template-columns: 1fr 1fr; }
}

.hp-callout-why {
  margin: 0 0 var(--s-3);
  color: var(--c-text-3);
}

.hp-callout-state {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin: 0 0 var(--s-3);
}

.hp-callout-text { color: var(--c-text-3); }
