/* ==========================================================================
   p-registry.css — page styles for findings.html + engine.html ONLY.
   Prefix: .rg- (shared by both pages; every rule is scoped to one of the two
   body classes below; nothing here may reach another page).
   Token-fed like every section builder: no colour that is not a shell token.
   Green budget on both pages is zero — nothing here reaches for --pass.
   ========================================================================== */

/* one prose measure for both documents (mirrors p-practice's .pp-body) */
:is(body[data-page="findings"],body[data-page="engine"]) .rg-body{
  margin:0;max-width:62ch;
  font-family:var(--prose);font-size:1.06rem;line-height:1.65;color:var(--ink-60);
  text-wrap:pretty;
}
:is(body[data-page="findings"],body[data-page="engine"]) .rg-body p{margin:0 0 1.05rem;}
:is(body[data-page="findings"],body[data-page="engine"]) .rg-body p:last-child{margin-bottom:0;}
:is(body[data-page="findings"],body[data-page="engine"]) .rg-body strong,
:is(body[data-page="findings"],body[data-page="engine"]) .rg-body b{color:var(--ink);font-weight:600;}

/* quiet-link rows (mirrors p-practice's .pp-links) */
:is(body[data-page="findings"],body[data-page="engine"]) .rg-links{
  margin:1.7rem 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.7rem 1.6rem;
}

/* the dated machine line above a register entry's heading */
body[data-page="findings"] .rg-meta{
  margin:.2rem 0 0;
  font-family:var(--mono);font-size:.75rem;font-weight:500;line-height:1.7;
  letter-spacing:.07em;text-transform:uppercase;color:var(--muted);
}

/* the per-entry counts line. Deliberately small: an index to the artifacts,
   never a headline (mirrors p35-pubproof's .pp-index). */
body[data-page="findings"] .rg-index{
  display:flex;flex-wrap:wrap;gap:.2rem 1.6rem;margin:1.6rem 0 0;max-width:none;
  font-family:var(--mono);font-size:.78rem;line-height:1.7;letter-spacing:.02em;
  color:var(--muted);
}
body[data-page="findings"] .rg-index b{
  color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;
  padding-right:.35em;
}

/* the triage-boundary plate: one bordered card per entry, machine label first */
body[data-page="findings"] .rg-bound{
  margin:1.8rem 0 0;max-width:62ch;
  border:1px solid var(--hair);border-radius:var(--radius);background:var(--card);
  padding:1.05rem 1.3rem 1.15rem;
}
body[data-page="findings"] .rg-bound-k{
  margin:0 0 .55rem;
  font-family:var(--mono);font-size:.75rem;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
}
body[data-page="findings"] .rg-bound p{
  margin:0;font-size:.95rem;line-height:1.62;color:var(--ink-60);
}

/* engine: the artifact line closing each link of the chain */
body[data-page="engine"] .rg-cell{min-width:0;}
body[data-page="engine"] .rg-cell .rg-artifact{
  margin-top:.5rem;
  font-family:var(--mono);font-size:.75rem;line-height:1.6;
  letter-spacing:.05em;color:var(--muted);
}

/* engine: the artifact shapes — placeholders, printed the way the tube
   prints everything. Wide content scrolls inside its own container. */
body[data-page="engine"] .rg-shapes{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1rem;margin-top:2.2rem;
}
body[data-page="engine"] .rg-shape{
  min-width:0;border:1px solid var(--hair);border-radius:var(--radius);
  background:var(--card);
}
body[data-page="engine"] .rg-shape.rg-shape-wide{grid-column:1 / -1;}
body[data-page="engine"] .rg-shape-h{
  margin:0;padding:.65rem 1.1rem;border-bottom:1px solid var(--hair);
  font-family:var(--mono);font-size:.75rem;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
}
body[data-page="engine"] .rg-shape pre{
  margin:0;padding:1rem 1.1rem 1.15rem;
  font:400 .78rem/1.7 var(--mono);color:var(--ink);
  overflow-x:auto;
}
body[data-page="engine"] .rg-shape pre .dim{color:var(--muted);}

@media (max-width: 760px){
  body[data-page="findings"] .rg-index{gap:.2rem 1.15rem;}
}
