/* Grade colors label the task; observation colors belong to the instrument. */
.grade {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .42em;
  width: fit-content;
  padding: .15em .65em;
  border-radius: 99px;
  font: 650 .82rem/1.55 system-ui, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
}
.grade::before {
  content: "";
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: currentColor;
}
.grade-easy { color: #166044; background: #e2f4e9; }
.grade-medium { color: #784408; background: #fff0cc; }
.grade-hard { color: #a51010; background: #ffe3e3; }
.grade-index, .task-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.grade-index a { text-decoration: none; }
.grade-index a:hover { text-decoration: underline; }
.card-body > .grade { margin-top: .65rem; }

.grade-long-range { color: #154e91; background: #e2efff; }

.grade-score { color: #7a2e0e; background: #fdebd9; }

.task-grades { display: flex; gap: .4rem; margin-top: .65rem; }
