/* Finding detail screen. */
.finding-hero { gap: 20px; padding: 26px 28px 20px; overflow: hidden; }
.finding-intro { gap: 10px; }
.finding-hero .hero-top { align-items: flex-start; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-tag {
  font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08); color: #D5DFEB;
}
.hero-tag--high { font-weight: 600; background: rgba(252, 165, 165, 0.16); color: #FCA5A5; }
.hero-tag--medium { font-weight: 600; background: rgba(245, 196, 81, 0.16); color: var(--highlight); }
.hero-tag--low { font-weight: 600; background: rgba(110, 231, 183, 0.16); color: #6EE7B7; }
.hero-link {
  font-weight: 600; color: var(--hero); background: #FFFFFF; border-radius: 8px;
  padding: 9px 14px; text-decoration: none; white-space: nowrap;
}
.hero-link:hover { color: var(--hero); background: var(--navy-tint); }
.hero-facts {
  margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px;
}
.hero-facts > div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts dt { font-size: 12px; color: var(--hero-muted); }
.hero-facts dd { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 600; color: #FFFFFF; }

/* Audit trail: five stations on a railway. */
.trail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.trail::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 27px; height: 12px;
  background: repeating-linear-gradient(90deg, #2A4462 0 3px, transparent 3px 13px);
}
.trail-step { position: relative; display: flex; justify-content: center; }
.trail-step:not(:last-child)::after {
  content: ''; position: absolute; left: 50%; width: 100%; top: 29px; height: 8px;
  border-top: 2px solid #3E5A7C; border-bottom: 2px solid #3E5A7C;
}
.trail-step.is-done:not(:last-child)::after { border-color: #6EE7B7; }
.trail-link { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #FFFFFF; min-width: 0; }
a.trail-link:hover .trail-label { text-decoration: underline; }
.trail-pill {
  font-size: 11px; font-weight: 700; color: var(--hero); background: var(--highlight);
  border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}
.trail-pill--off { visibility: hidden; }
.trail-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--hero); border: 3px solid #5F7896; }
.trail-dot--done { background: #6EE7B7; border-color: #6EE7B7; }
.trail-dot--here { border-color: var(--highlight); }
.trail-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trail-label { font-weight: 600; color: #FFFFFF; }
.trail-kind { font-size: 12px; color: var(--hero-muted); }

/* Body */
.finding-main { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.finding-main > .finding-card { flex: 999 1 560px; min-width: 0; }
.finding-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.finding-side .finding-card { width: 100%; }
.card-count { color: var(--text-muted); }
.card-empty { padding: 4px 20px 18px; color: var(--text-muted); }
.card-foot { padding: 12px 20px 18px; border-top: 1px solid var(--border-soft); }

.bar-label { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.bar { display: block; width: 110px; height: 6px; border-radius: 3px; background: #EAECF0; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--navy); }

.finding-table { min-width: 640px; }
.finding-table td { vertical-align: top; color: var(--text-2); }
.finding-table td:first-child { white-space: nowrap; }
.cell-link { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.cell-link:hover { text-decoration: underline; }
.ref-no { display: block; font-size: 12px; color: #667085; }
.review-done { font-weight: 500; color: var(--done-fg); }
.review-ready { font-weight: 600; color: var(--navy); }
.review-none { color: #667085; }
.show-all { display: block; padding: 12px 20px; font-weight: 500; text-decoration: none; border-top: 1px solid var(--border-soft); }
.show-all:hover { text-decoration: underline; }

.evidence-list { list-style: none; margin: 0; padding: 0; }
.evidence-row {
  display: flex; gap: 12px; align-items: center; padding: 10px 20px;
  border-top: 1px solid var(--border-soft); text-decoration: none; color: var(--text);
}
.evidence-row:hover { background: var(--surface-head); color: var(--text); }
.evidence-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.evidence-name { font-weight: 500; }
.evidence-meta { font-size: 12px; color: var(--text-muted); }

.ladder { list-style: none; margin: 0; padding: 0; }
.ladder-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 20px; border-top: 1px solid var(--border-soft); }
.ladder-row.is-next { background: #F3F7FF; }
.ladder-dot {
  width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--surface); color: var(--text-muted); border: 2px solid #D0D5DD;
}
.ladder-dot.is-signed { background: #1F9D62; border-color: #1F9D62; color: #FFFFFF; }
.ladder-row.is-next .ladder-dot { border-color: var(--navy); color: var(--navy); }
.ladder-text { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ladder-role { display: block; font-weight: 600; }
.ladder-state { display: block; font-size: 12px; color: var(--text-muted); }
.ladder-text .button { align-self: flex-start; padding: 8px 14px; }
