/* ============================================================
   Kit — checklist-item.css   (reusable part: a checklist row)
   Three states (matches the Figma "Checlist Item" component):
     (default)   inactive — a dashed grey ring + bold label
     .is-open    active    — a solid accent ring + label +
                             description + a CTA block (Start/Skip)
     .is-done    complete  — a filled accent circle + white tick,
                             label struck through and muted
   The open state embeds .bp-cta (see cta.css).
   ============================================================ */

.bp-item {
  --bp-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.bp-item:hover { background: rgba(17, 24, 39, .035); }
.bp-item.is-done { align-items: center; }

/* the circle */
.bp-item__check {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px dashed var(--bp-dash);
  transition: border-color .2s ease, background .2s ease, border-style .01s;
}
.bp-item__check::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--bp-accent-foreground);
  opacity: 0;
  -webkit-mask: var(--bp-tick) center / 14px 14px no-repeat;
          mask: var(--bp-tick) center / 14px 14px no-repeat;
  transition: opacity .15s ease;
}
.bp-item.is-open .bp-item__check {
  border: 2px solid var(--bp-accent);
}
.bp-item.is-done .bp-item__check {
  border: 2px solid var(--bp-accent);
  background: var(--bp-accent);
}
.bp-item.is-done .bp-item__check::after { opacity: 1; }

/* the copy column */
.bp-item__copy {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 4px;
}
.bp-item.is-done .bp-item__copy { padding-top: 0; }

.bp-item__label {
  font-size: 14px; line-height: 20px; font-weight: 600;
  color: var(--bp-surface-foreground);
}
.bp-item.is-done .bp-item__label {
  color: var(--bp-done-foreground);
  text-decoration: line-through;
}

.bp-item__desc {
  font-size: 12px; line-height: 18px;
  color: var(--bp-surface-muted);
}

/* only the open row shows its description + CTA */
.bp-item__desc, .bp-item .bp-cta { display: none; }
.bp-item.is-open .bp-item__desc,
.bp-item.is-open .bp-cta { display: flex; }
.bp-item__desc { display: none; }
.bp-item.is-open .bp-item__desc { display: block; }
