/* components/author-box.css — layout for partials/author-box.hbs. */

/* Gutter moved from padding to max-width, as on .post__footer, so the rules
   span the body copy's width. */
.author-box {
  --container: min(var(--container-content), 100% - var(--gutter) * 2);
  padding-inline: 0;
  margin-block: var(--space-16);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}

/* Directly under the tag footer, which supplies the gap above. */
.post__footer + .author-box {
  margin-block-start: 0;
}

/* One row per author, a rule above each. */
.author-box__item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-block-start: var(--border-width) solid var(--color-border-soft);
  text-decoration: none;
  transition: opacity var(--transition);
}

/* The row is one link; hovering one dims the others. */
@media (hover: hover) {
  .author-box:has(.author-box__item:hover) .author-box__item:not(:hover) {
    opacity: var(--card-hover-opacity);
  }
}

.author-box__media {
  flex-shrink: 0;
  line-height: 0;
}

/* Fixed square: profile images aren't guaranteed square. */
.author-box__image {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: var(--radius-avatar, 50%);
  filter: var(--avatar-filter);
}

/* The name leads the bio as part of the same sentence. */
.author-box__name {
  font-weight: var(--weight-bold);
}
