/* MINKFORGE COMPONENTS v1 — the 6 primitives (Phase 2).
   One shared status component, one truth strip, one status table.
   Built on tokens.css. Load after base.css. No inline styles anywhere. */

/* ---------- Status pill: the single shared status component ----------
   Variants: LIVE, LOCAL, PROTOTYPE, GATED, PARKED.
   Semantic color only for LIVE (green), GATED (amber), LOCAL (cyan).
   PROTOTYPE and PARKED are muted — they are not live states. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 4px 10px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.pill--live {
  border-color: rgba(126, 224, 138, 0.45);
  color: var(--color-ok);
}

.pill--local {
  border-color: rgba(159, 231, 223, 0.45);
  color: var(--color-cyan);
}

.pill--gated {
  border-color: rgba(242, 196, 109, 0.45);
  color: var(--color-warn);
}

.pill--prototype {
  border-color: var(--color-line-strong);
  color: var(--color-muted);
}

.pill--parked {
  border-color: var(--color-line);
  color: var(--color-dim);
}

/* ---------- Truth strip: one dated System State block per page ----------
   Replaces repeated inline disclaimers. One per page, near the content it
   covers. Dated, plain, no live-dashboard claims. */
.truth-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 18px;
  border: 1px solid var(--color-line);
  border-left: 2px solid var(--color-amber);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}

.truth-strip__label {
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.truth-strip p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

.truth-strip time,
.truth-strip__date {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-ink-soft);
}

/* ---------- Status table: one proof-table style ----------
   Used for proof snapshots, What Exists / What Doesn't, and gates. */
.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.status-table th,
.status-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  line-height: 1.6;
}

.status-table th {
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--color-cyan);
  text-transform: uppercase;
}

.status-table td:last-child,
.status-table td .pill {
  color: var(--color-ink);
}

.status-table tr:last-child th,
.status-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Loop stepper: the 5-stage loop as one component ----------
   Wraps the existing flagship diagram + .loop pill row so both read as the
   same primitive. No visual change to the flagship diagram itself. */
.loop-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.loop-stepper li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(159, 231, 223, 0.28);
  border-radius: var(--radius-pill);
  color: var(--color-ink-soft);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
}

.loop-stepper li:not(:last-child)::after {
  content: "\2192";
  color: var(--color-cyan);
  margin-left: 12px;
}

/* ---------- Page art: one wide image for interior heroes ---------- */
.page-art {
  margin-top: clamp(24px, 3vw, 36px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-art img { width: 100%; height: auto; display: block; }

/* ---------- Section jumps: sticky 01–04 nav for long pages ---------- */
.section-jumps {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-block: 1px solid var(--color-line);
  background: rgba(7, 11, 12, 0.92);
  backdrop-filter: blur(12px);
}

.section-jumps .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: 12px;
}

.section-jumps a {
  padding-block: 6px;
  color: var(--color-muted);
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
}

.section-jumps a:hover { color: var(--color-cyan); }

.research-page section[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

.findings .project-card { height: 100%; }

/* ---------- Project card: canonical 4-element card ----------
   Title, 1–2 line summary, Status pill, 1 link. The existing .track-card
   keeps its look; this class is the rule new cards follow. */
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.project-card h3 {
  margin: 0;
  font-size: var(--text-h4);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.project-card p {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.7;
}

.project-card .pill {
  align-self: flex-start;
  margin-top: 18px;
}

.project-card a {
  align-self: flex-start;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 237, 198, 0.55);
  color: #d8edcb;
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
}

.project-card > span:last-child:not(.pill) {
  margin-top: 14px;
  color: var(--color-dim);
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
}
