/* ============================================================
   review.css · the small amount of unique structure the Review page adds on
   top of the aero.css component kit. Everything load-bearing (phase-track,
   timeline, cal-row, aside-card, pattern, two-col, pill, src-tag, callout,
   next-action-card, packet-cta) comes from aero.css unchanged. This file
   only adds the review switcher row, the evidence-chain list, and the
   close-path card so the page reads as one review in depth.

   Dark candidate-branch identity, cyan as the single accent, gold reserved for
   the deliverable (the close-this-review path to the proof packet). Overflow
   safe at 1280px and 375px: every track uses minmax(0, 1fr) and content
   columns set min-width: 0.
   ============================================================ */

/* ---- review switcher (which review is in focus) ---- */
.review-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.review-switch .rv-tab {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.review-switch .rv-tab:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
  border-bottom: none;
}
.review-switch .rv-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-pale);
}
@media (prefers-reduced-motion: reduce) {
  .review-switch .rv-tab { transition: none; }
  .review-switch .rv-tab:hover { transform: none; }
}
.review-switch .rv-tab .rv-tab-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dimmer);
}
.review-switch .rv-tab.is-active .rv-tab-id { color: var(--accent-deep); }
.review-switch .rv-tab .rv-tab-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

/* ---- evidence chain (source -> boundary -> gate) as a vertical flow ---- */
.evi-chain { display: flex; flex-direction: column; gap: 0; }
.evi-step {
  position: relative;
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--border);
  min-width: 0;
}
.evi-step:last-child { padding-bottom: 0; }
.evi-step::before {
  content: "";
  position: absolute;
  left: -6px; top: 16px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.evi-step.is-held::before { border-color: var(--gold); }
.evi-step .evi-stage {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 3px;
  font-weight: 600;
}
.evi-step .evi-what { font-size: 14px; color: var(--text); }
.evi-step .evi-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ---- the close-this-review path: the one gold control on the page ---- */
.close-path {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0 6px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.close-path .cp-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}
.close-path .cp-body { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.close-path .cp-hold { font-size: 13px; color: var(--gold-deep); margin: 8px 0 14px; }
.close-path .cp-cage {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dimmer);
  margin-bottom: 14px;
}
.close-path .cp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- a compact two-up datum row above the phase track ---- */
.review-datum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}
.review-datum .rd-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  min-width: 0;
}
.review-datum .rd-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.review-datum .rd-num.accent { color: var(--accent-deep); }
.review-datum .rd-num.warn { color: var(--gold-deep); }
.review-datum .rd-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 5px;
}

@media (max-width: 720px) {
  .review-datum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .review-switch .rv-tab { flex: 1 1 100%; }
}

/* the Export control sits above the review body, right-aligned so it reads as
   a take-away action without crowding the datum strip below it */
.review-export-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
@media (max-width: 520px) {
  .review-export-bar { justify-content: stretch; }
  .review-export-bar .ti-export { width: 100%; }
  .review-export-bar .ti-export-btn { width: 100%; justify-content: center; }
}
