/* Author profiles at the end of publications: each name with a small platform icon. */
.article-author-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
  gap: 10px 24px;
  margin: 45px 0 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line, #ccd4cd);
  text-align: left;
  scroll-margin-top: 110px;
}

.article-author-label {
  grid-column: 1 / -1;
  display: block;
  color: var(--muted, #626b63);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.article-author-links a,
.article-author-links a:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  border: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

/* Keep a 44px tap target without spacing the names apart. */
.article-author-links a::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}

.article-author-links a:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-author-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 4px;
}

.article-author-links svg {
  display: block;
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--muted, #626b63);
  transition: color 0.15s ease;
}

.article-author-links a:hover svg,
.article-author-links a:focus-visible svg {
  color: var(--orange, #d86d42);
}

/* Inside an existing credits block, which supplies its own labels and rule. */
.article-author-links--credits {
  margin: 10px 0 26px;
  padding-top: 0;
  border-top: 0;
}

/* Names in the article header byline, linked to the same profiles. */
.article-byline a,
.article-byline a:visited {
  position: relative;
  border: 0;
  color: var(--ink, #19252a);
  text-decoration: none;
  white-space: nowrap;
}

.article-byline a::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

/* The name keeps the byline's text style, even where a page styles every span. */
.article-byline a span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.article-byline a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-byline svg {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.35em;
  vertical-align: -0.08em;
  color: var(--muted, #626b63);
  transition: color 0.15s ease;
}

.article-byline a:hover svg,
.article-byline a:focus-visible svg {
  color: var(--orange, #d86d42);
}
