/* Bluesky author-feed sidebar widget.
 *
 * Feature/placement inspired by Mezzanine's twitter sidebar; styles are owned
 * by this package so host sites can load them via staticfiles.
 */

.blueskyfeed-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.blueskyfeed.list-unstyled {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blueskyfeed-post {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.blueskyfeed-avatar {
  background-color: #e5e7eb;
  border-radius: 0.125rem;
  float: left;
  height: 2rem;
  margin-right: 0.75rem;
  object-fit: cover;
  width: 2rem;
}

.blueskyfeed-author {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.125rem;
}

.blueskyfeed-author small {
  color: #6c6c6c;
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
}

.blueskyfeed-author small a {
  text-decoration: none;
}

.blueskyfeed-author small a:hover {
  text-decoration: underline;
}

.blueskyfeed-repost {
  color: #6c6c6c;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0.375rem 0;
}

.blueskyfeed-repost-icon {
  display: inline-block;
  margin-right: 0.25rem;
}

.blueskyfeed-text {
  clear: none;
  font-size: 0.8125rem;
  hyphens: none;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: normal;
}

.blueskyfeed-text a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.blueskyfeed-meta {
  color: #6c6c6c;
}

.blueskyfeed-external-link {
  display: inline-block;
  font-size: 0.75rem;
  margin-left: 0.25rem;
  text-decoration: none;
}

.blueskyfeed-empty {
  color: #4b5563;
}

/* Optional dark mode when the host uses body.theme-dark (e.g. Sphinx Wagtail theme). */
body.theme-dark .blueskyfeed-author small,
body.theme-dark .blueskyfeed-repost,
body.theme-dark .blueskyfeed-meta,
body.theme-dark .blueskyfeed-empty {
  color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .blueskyfeed-avatar {
  background-color: rgba(255, 255, 255, 0.12);
}
