/* Last studied item progress card. */

.learning-progress-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: calc(100% - 8px);
  margin: 6px 4px 12px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 167, 179, .24);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 6px 16px rgba(44, 62, 79, .10);
  text-decoration: none;
}

.learning-progress-card[hidden] {
  display: none !important;
}

.learning-progress-card:hover,
.learning-progress-card:focus {
  border-color: rgba(37, 167, 179, .56);
  box-shadow: 0 10px 24px rgba(44, 62, 79, .14);
}

.learning-progress-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: #F1F9F9;
}

.learning-progress-card-icon i {
  color: var(--color-navy);
  font-size: .9rem;
}

.learning-progress-card-main {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.learning-progress-card-title {
  overflow: hidden;
  color: var(--color-navy);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.learning-progress-card-muted {
  grid-area: laststudy;
  color: #7A7A7A;
  font-size: .64rem;
  white-space: nowrap;
}

.learning-progress-card-metrics {
  grid-area: metrics;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.learning-progress-card-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #F5F7F8;
  color: var(--color-navy);
  font-size: .62rem;
  font-weight: 700;
  white-space: nowrap;
}

.learning-progress-card-action {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 7px;
  background-color: rgba(43, 155, 166, 0.85);
  color: #FFFFFF !important;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .learning-progress-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    width: calc(100% - 8px);
    margin: 16px 4px 12px;
    padding: 7px 8px;
  }

  .learning-progress-card-main {
    display: block;
  }

  .learning-progress-card-action {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    max-width: 74px;
    white-space: normal;
  }

  .learning-progress-card-title {
    white-space: normal;
  }

  .learning-progress-card-muted {
    white-space: nowrap;
  }
}
