/* The author card (js/author-card.js): who an author is on Twitter, shown on hover or focus. */
.ac {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-popover);
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-3);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-2);
}
.ac[hidden] { display: none; }
.ac__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ac__pic { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--paper-3); }
.ac__who { display: flex; flex-direction: column; min-width: 0; }
.ac__who strong { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac__who span { color: var(--ink-3); font-size: var(--fs-xs); }
.ac__bio {
  margin-top: 10px;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac__facts { margin-top: 8px; color: var(--ink-3); font-size: var(--fs-xs); }
.ac__who span, .ac__facts { overflow-wrap: anywhere; }
.ac__counts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-3); }
.ac__counts strong { color: var(--ink); font-weight: 650; }
.ac__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.ac__links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.ac__links a:hover { color: var(--ink); }
/* It fades in where it stands. No movement: a card that slides toward the name reads as lag. */
@keyframes ac-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .ac:not([hidden]) { animation: ac-in 110ms linear; }
}
