/* ==========================================================
   Author byline — circular headshot + name
   Canonical: includes/author-byline.html
   WORK-0109 sitewide shared component.
   ========================================================== */

.author-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 16px;
  margin: 0 0 24px;
}

.author-byline__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.author-byline__photo {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--cn-border, #e7e3dc);
  box-shadow: none;
}

.author-byline__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.author-byline__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cn-heading, #0b1d2d);
}

.author-byline__prefix {
  white-space: pre;
}

.author-byline__name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px 0 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.author-byline__name:hover {
  color: var(--cn-teal-800, #4e7f6b);
  text-decoration: underline;
}

.author-byline__name:focus {
  outline: none;
}

.author-byline__name:focus-visible {
  outline: 3px solid rgba(78, 127, 107, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.author-byline__role {
  margin: 0;
  color: var(--cn-muted, #66727d);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.author-byline__meta {
  margin: 0;
  flex: 0 1 auto;
  color: var(--cn-muted, #66727d);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.landing-page .author-byline p {
  margin: 0;
}

.landing-page .author-byline__credit {
  font-size: 0.95rem;
  line-height: 1.25;
}

.landing-page .author-byline__role,
.landing-page .author-byline__meta {
  font-size: inherit;
  line-height: inherit;
}

.landing-page .author-byline a.author-byline__name {
  color: var(--cn-heading, #0b1d2d);
  text-decoration: none;
  text-decoration-thickness: 2px;
}

.landing-page .author-byline a.author-byline__name:hover {
  color: var(--cn-teal-800, #4e7f6b);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .author-byline__photo {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767px) {
  .author-byline {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
  }

  .author-byline__person {
    gap: 10px;
  }

  .author-byline__meta {
    width: 100%;
    padding-inline-start: 0;
  }
}
