/*
 * drafts.css — the Your Drafts panel, shared by blog, news and the message
 * board. Paired with js/drafts.js; the row markup lives there.
 *
 * Tokens only, no hard-coded colours: the panel sits inside the same .modal
 * shell as every other composer, and the site's dark mode swaps these under it.
 */

.draft-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--surface-alt);
}

.draft-row:last-child {
  border-bottom: none;
}

.draft-row-main {
  min-width: 0; /* so a long title truncates instead of shoving the buttons */
}

.draft-row-title {
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-row-title i {
  color: var(--gold);
  margin-right: 0.4rem;
}

.draft-row-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}

.draft-row-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.draft-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Narrow screens: the actions drop under the text rather than squeezing the
   title down to two words. */
@media (max-width: 560px) {
  .draft-row {
    flex-direction: column;
    gap: 0.6rem;
  }
  .draft-row-actions {
    width: 100%;
  }
  .draft-row-actions > * {
    flex: 1;
    text-align: center;
  }
}
