.meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  // The copy-markdown header above already draws a bottom border, so
  // we don't add a top border here. We keep only the bottom border to
  // separate the byline row from the prose body below.
  margin-block: 0 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--color-fd-border);
}

.authorBlock {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.leadAuthor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.authorText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.authorLabel,
.coAuthorLabel {
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  color: var(--color-fd-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coAuthorList {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.coAuthor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
  border: 1px solid var(--color-fd-border);
  flex-shrink: 0;
}

.coAuthorAvatar {
  width: 32px;
  height: 32px;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
  border: 1px solid var(--color-fd-border);
  flex-shrink: 0;
}

.name {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-fd-foreground);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.coAuthorName {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-fd-foreground);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

// Small pill pinned to the right of the byline row. Mirrors the sidebar
// heading (same label + icon) so the per-post category reads as the
// counterpart to the group the post lives under.
.category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-fd-muted-foreground);
  background: var(--color-fd-muted);
  border: 1px solid var(--color-fd-border);
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.categoryIcon {
  width: 12px;
  height: 12px;
}

@media (max-width: 767.98px) {
  .meta {
    flex-direction: column;
    gap: 16px;
  }

  .authorBlock,
  .coAuthorList {
    flex-direction: column;
    gap: 8px;
  }

  .category {
    margin-left: 0;
  }
}
