/* B16-CONTROL-001 / B16-CONTROL-002 -- narrowly scoped stylesheet for the
   Review Candidate Lifecycle page (siw/lifecycle.html) and the reusable
   provenance/standing header pattern it defines and demonstrates. Reuses
   the site's own theme variables and the existing .fip-chip status-chip
   vocabulary (assets/css/inspect-siw.css) rather than a separate design
   system -- no new chip mechanism is invented here. */

.lifecycle-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.lifecycle-flow-step { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; font-size: .92rem; }
.lifecycle-flow-arrow { color: var(--ink-soft); font-size: 1.1rem; }
.lifecycle-flow-branch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 6px 34px; }
.lifecycle-flow-branch .lifecycle-flow-arrow { transform: none; }

.lifecycle-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.lifecycle-state-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.lifecycle-state-card h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.lifecycle-state-card p { margin: 0 0 6px; font-size: .9rem; color: var(--ink-soft); }
.lifecycle-state-card .lifecycle-source { font-size: .76rem; color: var(--ink-soft); }
.lifecycle-state-card .lifecycle-source a { color: inherit; }

/* Reusable provenance/standing header (B16-CONTROL-002). Authoring
   convention: a <dl class="provenance-header"> with one <div> per field,
   each a <dt> (field label) + <dd> (value). A field whose value is
   genuinely unknown/unavailable uses the literal text NOT ESTABLISHED
   (class "provenance-not-established") rather than being invented or
   silently omitted -- see siw/lifecycle.html for a real, populated
   example of this exact markup, which any future walkthrough/planning
   packet page can copy directly. */
.provenance-header { border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: 12px; padding: 14px 18px; background: var(--surface-2); margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 22px; }
.provenance-header > div { min-width: 0; }
.provenance-header dt { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.provenance-header dd { margin: 3px 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.provenance-not-established { font-style: italic; color: var(--ink-soft); }

@media (max-width: 640px) {
  .lifecycle-flow, .lifecycle-flow-branch { flex-direction: column; align-items: flex-start; }
  .lifecycle-flow-arrow { transform: rotate(90deg); margin-left: 8px; }
  .lifecycle-flow-branch { margin-left: 16px; }
}
