/* Chit Fund Safety Checker — scoped styles. */

.cfs { max-width: 820px; }

.cfs-notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* Read-out: three stacked states in a fixed-height box (flicker-free). */
.cfs-result { position: relative; height: 150px; margin-bottom: 22px; }
.cfs-band {
  position: absolute; inset: 0; box-sizing: border-box; overflow: auto;
  display: none; flex-direction: column; justify-content: center;
  border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line);
}
.cfs-band-head { font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; }
.cfs-band.is-ok     { background: #effaf3; border-color: #b7e4c7; }
.cfs-band.is-ok .cfs-band-head     { color: #1b7a43; }
.cfs-band.is-warn   { background: var(--warn-bg); border-color: var(--warn-line); }
.cfs-band.is-warn .cfs-band-head   { color: #b9770a; }
.cfs-band.is-danger { background: #fdecec; border-color: #f1aeae; }
.cfs-band.is-danger .cfs-band-head { color: #c0392b; }
.cfs-result[data-level="ok"]     .cfs-band[data-band="ok"],
.cfs-result[data-level="warn"]   .cfs-band[data-band="warn"],
.cfs-result[data-level="danger"] .cfs-band[data-band="danger"] { display: flex; }

/* Checklist */
.cfs-checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.cfs-check-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm); }
.cfs-check-item label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.cfs-check-item input { width: auto; margin-top: 3px; flex: none; }
.cfs-why { color: var(--muted); font-size: 0.92rem; display: block; margin: 8px 0 0 26px; }

/* Verify */
.cfs-verify { border-top: 1px solid var(--line); padding-top: 20px; }
.cfs-verify h2 { font-size: 1.3rem; margin: 0 0 14px; }
.cfs-verify ol { display: grid; gap: 12px; padding-left: 20px; color: var(--text); }
