/* report-continuous.css — additive styles for the continuous-audit render
 * engine (_shared/app-continuous). Loaded ONLY by continuous reports, AFTER
 * report.css. Flat reports never include this file. Purely additive: no
 * overrides of base .finding/.fn-* rules that would affect flat reports
 * (those don't load this sheet anyway). */

/* ---- Pass-diff evolution summary ---- */
.pass-diff {
  margin: 20px 0 28px;
  border: 1px solid #2A2A2A;
  border-left: 3px solid #D4E157;
  background: #121212;
  padding: 18px 22px;
}
.pass-diff .sub { margin: 0 0 6px; }
.pass-diff .pd-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px solid #1F1F1F;
  font-size: 13px;
}
.pass-diff .pd-row:first-of-type { border-top: none; }
.pd-pass { font-weight: 700; color: #EDEDED; min-width: 130px; }
.pd-meta { color: #8A8A8A; font-size: 12px; flex: 1; }
.pd-meta code { color: #D4E157; }
.pd-stat { display: flex; gap: 14px; align-items: baseline; }
.pd-stat span { font-size: 12px; letter-spacing: 0.04em; }
.pd-new       { color: #FF8A4C; font-weight: 700; }
.pd-resolved  { color: #6FCF97; font-weight: 700; }
.pd-regressed { color: #E74C3C; font-weight: 700; }
.pd-carried   { color: #9A9A9A; }
.pd-baseline  { color: #9A9A9A; }

/* ---- Per-pass badge in the finding row (the unmissable signal) ----
 * DENSITY REGRESSION FIX: base .fn-head is a 5-col grid
 * (80px 110px 1fr auto auto = id sev title status toggle). The badges added
 * extra grid children with no column, forcing implicit rows → row height
 * ~doubled. Redefine the grid for the continuous report to give the badge
 * its own column, and tighten padding so the list is scannable again.
 * Scoped to .continuous-report — flat reports never load this sheet AND
 * never get this class, so YB/flat-Curve are doubly unaffected. */
.continuous-report .fn-head {
  grid-template-columns: 78px 96px auto 1fr auto auto;
  gap: 12px;
  padding: 10px 18px;
}
.continuous-report .findings { gap: 6px; }
.fn-pass-badges { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fn-pass-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  align-self: center;
  flex: 0 0 auto;
  line-height: 1.4;
}
.fn-pass-new       { background: #FF8A4C; color: #1A1A1A; }
.fn-pass-carried   { background: transparent; color: #6A6A6A; border: 1px solid #333; }
.fn-pass-fixclaimed{ background: #2E2A14; color: #D4C25A; border: 1px solid #4A431F; }
.fn-pass-resolved  { background: #1E3A2A; color: #6FCF97; border: 1px solid #2E5A42; }
.fn-pass-regressed { background: #3A1E1E; color: #E74C3C; border: 1px solid #5A2E2E; }

/* New-this-pass finding: left accent so it's findable while scanning.
 * fix-claimed: muted (less urgent than open — client asserts a fix). */
.finding.fn-is-new { border-left: 3px solid #FF8A4C; }
.finding.fn-is-fixclaimed { opacity: 0.82; }
.finding.fn-is-resolved .fn-title { text-decoration: line-through; color: #7A7A7A; }
.finding.fn-is-resolved { opacity: 0.7; }

.pd-fixclaimed { color: #D4C25A; font-weight: 700; }
.lc-fixclaimed { color: #D4C25A; }

/* CANDIDATE: identified but NOT confirmed (no deployed-code verification /
 * no sign-off). Cautionary amber, dashed border, distinct from confirmed. */
.fn-pass-candidate {
  background: transparent;
  color: #E0A23C;
  border: 1px dashed #7A5A1F;
}
.continuous-report .fn-status.candidate {
  border-color: #7A5A1F;
  color: #E0A23C;
}
.finding.fn-is-candidate { opacity: 0.92; }
.lc-candidate { color: #E0A23C; }
.pd-candidate { color: #E0A23C; font-weight: 700; }

/* Rightmost status at a later pass: a fix-claimed V1 finding renders as
 * ACKNOWLEDGED. Per design call (2026-05-19): the only thing unverified is
 * the production deployment — a low-severity caveat — so this must read
 * QUIETER than base .acknowledged's amber warn. Neutral grey, de-emphasised,
 * so the eye goes to NEW IN V2 / open severities, not to near-closed items.
 * Scoped to .continuous-report; flat reports keep base amber-acknowledged. */
.continuous-report .fn-status.acknowledged {
  border-color: #3A3A3A;
  color: #8A8A8A;
}

/* Continuous clears-table has a leading Pass column (5 cols vs base 4). */
.continuous-report .clears-table-c {
  grid-template-columns: 64px 2.6fr 1.4fr 1fr 3fr;
}
@media (max-width: 720px) {
  .continuous-report .clears-table-c { grid-template-columns: 1fr; }
}

/* ---- Unified findings control panel (Posture / Importance / Status) ----
   One bordered panel, three labeled rows. Replaces the old orphan
   "posture-as-of" box + the jammed single-line importance/status row. */
.continuous-report .controls-panel {
  border: 1px solid #2A2A2A;
  border-radius: 6px;
  background: #101010;
  padding: 4px 18px;
  margin: 20px 0 24px;
}
.continuous-report .ctrl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #1C1C1C;
}
.continuous-report .ctrl-row:first-child { border-top: none; }
.continuous-report .ctrl-label {
  flex: 0 0 92px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9A9A9A;
}
.continuous-report .ctrl-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.continuous-report .ctrl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.continuous-report .chip.ghost {
  opacity: 0.6;
  font-size: 11px;
}
.continuous-report .chip.ghost:hover { opacity: 1; }
.continuous-report .ctrl-actions .results-count {
  font-size: 11px;
  color: #6A6A6A;
  letter-spacing: 0.08em;
  margin-left: 4px;
}
@media (max-width: 720px) {
  .continuous-report .ctrl-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .continuous-report .ctrl-label { flex-basis: auto; }
  .continuous-report .ctrl-actions { margin-left: 0; }
}

/* Drop the per-section bottom border: the .sec-head .rule already provides
   a horizontal divider at each heading; the section border-bottom doubles
   it (a near-duplicate line above every title). Keep header rule, kill the
   closing one. Scoped — flat reports keep their border. */
.continuous-report section.block { border-bottom: none; }

/* Cover: short h1 + subhead (the V1→V2 commit line demoted from headline). */
.continuous-report .cover h1 { margin-bottom: 14px; }
.continuous-report .cover .subhead {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.continuous-report .cover .subhead .lime { color: var(--lime); }
.continuous-report .cover .lede-bullets {
  list-style: none;
  margin: 14px 0 48px;
  padding: 0;
  max-width: 64ch;
}
.continuous-report .cover .lede-bullets li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
}
.continuous-report .cover .lede-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--lime);
}
.continuous-report .cover .lede-bullets strong { color: var(--text); }
/* One-line provenance, quiet, below the stat strip. */
.continuous-report .cover .cover-provenance {
  font-size: 13px;
  color: var(--text-dimmer);
  line-height: 1.6;
  max-width: 90ch;
  margin: 20px 0 40px;
}
.continuous-report .cover .cover-provenance code { color: var(--text-dim); }
/* Tighten the gap the (now-removed) lede left between subhead and stats. */
.continuous-report .cover .subhead { margin-bottom: 36px; }

/* ---- Horizontal pass-spine timeline ---- */
.continuous-report .tl-spine {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 8px 0 24px;
  flex-wrap: wrap;
}
.continuous-report .tl-spine-link {
  flex: 1 1 40px;
  min-width: 32px;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, #FF8A4C, #2E5A42);
  opacity: 0.5;
}
.continuous-report .tl-node {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 16px;
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms, background 120ms;
  font-family: inherit;
}
.continuous-report .tl-node:hover { border-color: #444; }
.continuous-report .tl-node.open {
  border-color: #FF8A4C;
  background: #1A1206;
}
.continuous-report .tl-node.latest:not(.open) { border-left: 3px solid #FF8A4C; }
.continuous-report .tl-node-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #555; margin-bottom: 4px;
}
.continuous-report .tl-node.open .tl-node-dot { background: #FF8A4C; }
.continuous-report .tl-node-label {
  font-size: 14px; font-weight: 700; color: #EDEDED; letter-spacing: 0.04em;
}
.continuous-report .tl-node-meta { font-size: 11px; color: #8A8A8A; }
.continuous-report .tl-node-meta code { color: #D4E157; }
.continuous-report .tl-node-count {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #FF8A4C; margin-top: 2px;
}
.continuous-report .tl-detail { border-top: 1px solid #1F1F1F; padding-top: 16px; }
.continuous-report .tl-detail .sub { margin-top: 0; }
.continuous-report .tl-scope { color: #8A8A8A; font-weight: 400; font-size: 12px; }
@media (max-width: 720px) {
  .continuous-report .tl-spine { flex-direction: column; }
  .continuous-report .tl-spine-link { display: none; }
  .continuous-report .tl-node { width: 100%; }
}

/* ---- Findings-model glossary paragraph in exec summary ---- */
.continuous-report .prose.findings-model {
  border-left: 2px solid #D4E157;
  background: #0E1208;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #B5B5B5;
  margin: 14px 0 22px;
}
.continuous-report .prose.findings-model strong {
  color: #EDEDED;
}

/* Prose lists: inherit the dim body-text color (same as p.prose) and indent
 * the bullets a small amount so the list reads as a visible structural unit
 * rather than disconnected markers floating left of the prose column.
 * Browser default ul padding-left is ~40px which is too far for our column.
 * Match the prose color rules so <strong> inside list items behaves like
 * <strong> inside paragraphs. */
.continuous-report ul.prose,
.continuous-report ol.prose {
  color: var(--text-dim);
  max-width: 68ch;
  padding-left: 1.4em;
  margin-top: 0;
}
.continuous-report ul.prose li,
.continuous-report ol.prose li {
  color: var(--text-dim);
  margin-bottom: 6px;
  line-height: 1.6;
}
.continuous-report ul.prose strong,
.continuous-report ol.prose strong {
  color: var(--text);
  font-weight: 700;
}
.continuous-report ul.prose code,
.continuous-report ol.prose code {
  color: var(--text);
}

/* ---- Lifecycle strip ---- */
.fn-lifecycle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 14px;
  border-bottom: 1px solid #1F1F1F;
  margin-bottom: 14px;
}
.fn-lifecycle-row .k {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6A6A6A;
  min-width: 80px;
}
.fn-lifecycle { display: inline-flex; align-items: center; gap: 6px; }
.lc-node {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
}
.lc-node sub { font-size: 9px; font-weight: 400; color: #8A8A8A; }
.lc-open      { color: #FF8A4C; }
.lc-resolved  { color: #6FCF97; }
.lc-regressed { color: #E74C3C; }
.lc-absent    { color: #444; }
.lc-arrow     { color: #555; font-size: 12px; }
