/* Prompt Library cards: show category opposite copy control and keep every card the same height. */
.prompt-library-page .prompt-card-body > p {
  position: absolute;
  left: 16px;
  bottom: 24px;
  display: block;
  max-width: calc(100% - 84px);
  overflow: hidden;
  color: var(--dim);
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.prompt-library-page .prompt-card-body > span {
  -webkit-line-clamp: 3;
}

.prompt-library-page .prompt-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.prompt-library-page .prompt-card {
  align-self: stretch;
  height: 100%;
}

.prompt-library-page .prompt-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.prompt-library-page .prompt-card-body {
  height: 100%;
}

.prompt-library-page .prompt-copy-button {
  border-radius: 0 !important;
}

@media (max-width: 620px) {
  .prompt-library-page .prompt-card-body > p {
    left: 12px;
    bottom: 22px;
  }
}
