/* The colonies a caretaker looks after: ticks in a box that scrolls when there are many */
.check-list {
  display: grid;
  gap: var(--space-1);
  max-height: 14rem;
  overflow-y: auto;
  padding: var(--space-2) var(--space-3);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.check-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* Links in a side card (a caretaker's colonies, a colony's caretakers) */
.link-list {
  padding: var(--space-2) var(--space-4);
  list-style: none;

  li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) 0;
  }

  li + li {
    border-top: var(--border);
  }
}

/* cards/:token, the page the card's QR code opens */
.card-check {
  text-align: center;

  p {
    margin-top: var(--space-1);
  }
}

.card-check__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: var(--weight-bold);
  color: #fff;
}

.card-check__icon--valid {
  background: var(--color-success);
}

.card-check__icon--invalid {
  background: var(--color-danger);
}

.card-check__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.card-check__checked {
  margin-top: var(--space-4) !important;
}
