/* ==========================================================================
   Tradevane compliance screening — the sanctions block on the customer detail
   panel, and the compliance line in the outreach composer.

   Colour comes only from the tokens in theme.css: CLEAR reuses the success
   surface, REVIEW the warning surface, BLOCKED the danger surface, UNKNOWN the
   neutral one. No colour literal is declared here.

   Controls keep the conventions already defined for .button / .ghost / input in
   theme.css so the block weighs the same as the cards it sits between:
     panel button      30px  --tv-control-h-sm
     pill              22px, full radius
     focus             3px --tv-brand-ring halo
     disabled          opacity .5, cursor not-allowed
   Nothing here goes below 13px: the 11px and 12px steps of the type scale stay
   unused. Every transition has a reduced-motion fallback at the end of the file.

   Sections: 01 root · 02 header · 03 pills · 04 score and matches ·
             05 list state and error · 06 outreach line · 07 reduced motion
   ========================================================================== */

/* ---- 01 block shell ----------------------------------------------------- */
.sc-root { display: flex; flex-direction: column; gap: var(--tv-s3); min-width: 0; color: var(--tv-text); }

/* ---- 02 header ---------------------------------------------------------- */
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--tv-s3); flex-wrap: wrap; }
.sc-title { display: flex; flex-direction: column; gap: var(--tv-s1); min-width: 0; }
.sc-eyebrow { color: var(--tv-text-3); font-size: var(--tv-fs-md); font-weight: 600; letter-spacing: .04em; line-height: 1.4; }
.sc-title h4 { margin: 0; font-size: var(--tv-fs-lg); font-weight: 700; line-height: 1.35; }
.sc-actions { display: flex; align-items: center; gap: var(--tv-s2); flex: 0 1 auto; min-width: 0; flex-wrap: wrap; }

.sc-rescreen {
  height: var(--tv-control-h-sm); min-height: var(--tv-control-h-sm); padding: 0 var(--tv-s3);
  font-size: var(--tv-fs-md); font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.sc-rescreen:hover { background: var(--tv-subtle); border-color: var(--tv-border-strong); color: var(--tv-text); }
.sc-rescreen:active { background: var(--tv-brand-soft); border-color: var(--tv-brand); color: var(--tv-brand); }
.sc-rescreen:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tv-brand-ring); }
.sc-rescreen:disabled { opacity: .5; cursor: not-allowed; }

/* ---- 03 decision pills -------------------------------------------------- */
.sc-pill {
  display: inline-flex; align-items: center; gap: var(--tv-s1); height: 22px; padding: 0 var(--tv-s2);
  border: 1px solid var(--tv-border); border-radius: var(--tv-radius-full);
  background: var(--tv-subtle); color: var(--tv-text-2);
  font-size: var(--tv-fs-md); font-weight: 500; line-height: 1; white-space: nowrap;
}
.sc-pill--clear { border-color: var(--tv-success-border); background: var(--tv-success-bg); color: var(--tv-success); }
.sc-pill--review { border-color: var(--tv-warning-border); background: var(--tv-warning-bg); color: var(--tv-warning); }
.sc-pill--blocked { border-color: var(--tv-danger-border); background: var(--tv-danger-bg); color: var(--tv-danger); }
.sc-pill--unknown { border-color: var(--tv-border-strong); background: var(--tv-subtle); color: var(--tv-text-3); }

/* ---- 04 score and matches ----------------------------------------------- */
.sc-score { margin: 0; color: var(--tv-text-2); font-size: var(--tv-fs-md); font-weight: 500; line-height: 1.6; }
.sc-score b { color: var(--tv-text); font-weight: 600; font-variant-numeric: tabular-nums; }

.sc-matches { display: flex; flex-direction: column; gap: var(--tv-s1); margin: 0; padding: 0; list-style: none; }
.sc-matches li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--tv-s2);
  padding: var(--tv-s1) var(--tv-s2); border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-sm); background: var(--tv-subtle);
}
.sc-match-name { min-width: 0; color: var(--tv-text); font-size: var(--tv-fs-md); font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.sc-match-meta { flex: 0 0 auto; color: var(--tv-text-3); font-size: var(--tv-fs-md); font-variant-numeric: tabular-nums; line-height: 1.5; }

.sc-hint { margin: 0; max-width: 72ch; color: var(--tv-text-2); font-size: var(--tv-fs-md); line-height: 1.6; }

/* ---- 05 list state and error -------------------------------------------- */
.sc-list { margin: 0; color: var(--tv-text-3); font-size: var(--tv-fs-md); font-weight: 500; line-height: 1.6; }
.sc-error { margin: 0; color: var(--tv-danger); font-size: var(--tv-fs-md); font-weight: 500; line-height: 1.6; }

/* ---- 06 outreach composer line ------------------------------------------ */
.sc-outreach {
  margin: 0; padding: var(--tv-s2) var(--tv-s3); border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-sm); background: var(--tv-subtle);
  color: var(--tv-text-2); font-size: var(--tv-fs-md); font-weight: 500; line-height: 1.6;
}
.sc-outreach--clear { border-color: var(--tv-success-border); background: var(--tv-success-bg); color: var(--tv-success); }
.sc-outreach--review { border-color: var(--tv-warning-border); background: var(--tv-warning-bg); color: var(--tv-warning); }
.sc-outreach--blocked { border-color: var(--tv-danger-border); background: var(--tv-danger-bg); color: var(--tv-danger); }
.sc-outreach--unknown { border-color: var(--tv-border-strong); background: var(--tv-subtle); color: var(--tv-text-2); }

/* ---- 07 reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sc-root *,
  .sc-root *::before,
  .sc-root *::after,
  .sc-outreach { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
