/* The Tablón and the Formaciones: a list of cards, the unread ones marked */
.publication-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  color: inherit;
  text-decoration: none;

  &:hover {
    background: var(--color-surface-hover);
  }
}

.publication-row--unread {
  border-left: 4px solid var(--color-primary);
}

.publication-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
}

.publication-row__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* With an image in its text: the first one, small, on the left of the lines, as the photos in the other lists
   (PublicationsHelper) */
.publication-row--with-image {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  align-content: start;

  > :not(.publication-row__image) {
    grid-column: 2;
  }
}

.publication-row__image {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* A formación's day and place */
.training-when {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-weight: var(--weight-medium);
}

/* A long public address breaks anywhere rather than widening the card */
.public-link {
  overflow-wrap: anywhere;
}

/* An announcement's or training's text on its page: its photos as small as while writing it (components/rich_text.css),
   so the text stays the main thing */
.publication-body .lexxy-content :is(img, video) {
  max-block-size: 15rem;
}
