/* Contributor bylines (Hackney Citizen). See partials/hc/byline.hbs. */

/* A contributor byline replaces the Ghost author. */
.hc-byline:has(.hc-byline__name) .hc-byline__authors {
  display: none;
}

/* Contributor names look like author links do in each context. */
.hc-byline__name {
  font-weight: 500;
}

/* Joint bylines: "A", "A and B", "A, B and C". */
.hc-byline__name + .hc-byline__name::before {
  content: ", ";
  font-weight: 400;
}
.hc-byline__name + .hc-byline__name:last-child::before {
  content: " and ";
}

/* On a contributor's article, the author box and "More from <author>" would describe the
   Ghost account that published it, not the writer, so hide them. */
body:has([data-hc-main-byline] .hc-byline__name) [data-hc-author-extra] {
  display: none;
}
