/* Homepage author line (Bryan, November 12, 2026): the chapter-end author
   box in compact form, near the top of the Welcome page, above the welcome
   box. The Follow button reuses .follow-x-solid from reader-funnel-v1.css and
   styles/reader-funnel-v1.js sends its "Follow X Click" event
   (placement: homepage). Identical in all four handbooks. Stylesheets can be
   cached for a year: change this by adding a -v2 file. */

.home-author {
  --ha-border: #e3e6ea;
  --ha-muted: #5b6b7f;
  --ha-text: #1f2a37;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ha-border);
  border-radius: 10px;
}

.quarto-dark .home-author,
[data-bs-theme="dark"] .home-author {
  --ha-border: #3a3f47;
  --ha-muted: #9aa7b6;
  --ha-text: #e6e9ee;
}

.home-author-photo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

main.content p.home-author-text,
.home-author-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 1.4;
}

.home-author-name {
  display: block;
  color: var(--ha-text);
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
}

.home-author-name:hover {
  color: var(--ha-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.home-author-bio {
  display: block;
  color: var(--ha-muted);
  font-size: 0.9rem;
}

.home-author .follow-x-solid {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 575.98px) {
  .home-author {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.6rem 0.75rem;
    margin-top: 1rem;
  }

  main.content p.home-author-text,
  .home-author-text {
    flex: 1 1 calc(100% - 44px - 0.75rem - 2px);
  }

  .home-author .follow-x-solid {
    margin-left: calc(44px + 0.75rem);
  }
}

@media print {
  .home-author {
    display: none;
  }
}
