/* ─── Imported Social Feed – v1.0.0.24 ─────────────────────────────────── */

.ansico-imported-social-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 1px solid rgba(15, 20, 25, 0.14);
  border-radius: 14px;
  overflow: hidden;
}


.ansico-imported-social-feed__top {
  padding: 14px 16px 12px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 20, 25, 0.1);
}

.ansico-imported-social-feed__title {
  margin: 0;
  padding: 0;
  color: #0f1419;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.ansico-imported-social-feed__profiles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.ansico-imported-social-feed__title + .ansico-imported-social-feed__profiles {
  margin-top: 9px;
}

.ansico-imported-social-feed__top > .ansico-imported-social-feed__profiles:first-child {
  margin-top: 0;
}

.ansico-imported-social-feed__profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(15, 20, 25, 0.13);
  color: #536471;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.ansico-imported-social-feed__profile-link:hover,
.ansico-imported-social-feed__profile-link:focus {
  color: #0f1419;
  background: #f2f4f5;
  border-color: rgba(15, 20, 25, 0.28);
}

.ansico-imported-social-feed__profile-link svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* Branded AT Protocol client buttons, derived from the supplied logos. */
.ansico-imported-social-feed__profile-link--eurosky {
  background: #23519c;
  border-color: #23519c;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--eurosky:hover,
.ansico-imported-social-feed__profile-link--eurosky:focus {
  background: #1c4589;
  border-color: #1c4589;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--wsocial {
  background: #e1e1e1;
  border-color: #d2d2d2;
  color: #0f1419;
  border-radius: 8px;
}

.ansico-imported-social-feed__profile-link--wsocial:hover,
.ansico-imported-social-feed__profile-link--wsocial:focus {
  background: #d7d7d7;
  border-color: #bfbfbf;
  color: #0f1419;
}

.ansico-imported-social-feed__profile-link--eurosky svg,
.ansico-imported-social-feed__profile-link--wsocial svg {
  width: 20px;
  height: 20px;
}

.ansico-imported-social-feed__profile-link--lemmy {
  background: #00a95c;
  border-color: #00a95c;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--lemmy:hover,
.ansico-imported-social-feed__profile-link--lemmy:focus {
  background: #008e4d;
  border-color: #008e4d;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--lemmy svg {
  width: 19px;
  height: 19px;
}


.ansico-imported-social-feed__profile-link--friendica {
  background: #287f8f;
  border-color: #287f8f;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--friendica:hover,
.ansico-imported-social-feed__profile-link--friendica:focus {
  background: #216b78;
  border-color: #216b78;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--gotosocial {
  background: #5b48b5;
  border-color: #5b48b5;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--gotosocial:hover,
.ansico-imported-social-feed__profile-link--gotosocial:focus {
  background: #493994;
  border-color: #493994;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--friendica svg,
.ansico-imported-social-feed__profile-link--gotosocial svg {
  width: 18px;
  height: 18px;
}

.ansico-imported-social-feed__empty {
  padding: 12px 16px;
  background: #fff;
  color: #536471;
  font-size: 14px;
  line-height: 1.5;
}

.ansico-imported-social-feed__item {
  margin: 0;
  background: #fff;
  padding: 12px 16px;
}

.ansico-imported-social-feed__item + .ansico-imported-social-feed__item {
  border-top: 1px solid rgba(15, 20, 25, 0.1);
}

.ansico-imported-social-feed__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ansico-imported-social-feed__avatar-wrap {
  flex: 0 0 38px;
}

.ansico-imported-social-feed__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #e8edf2;
}

.ansico-imported-social-feed__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #536471;
}

.ansico-imported-social-feed__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ansico-imported-social-feed__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.ansico-imported-social-feed__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.ansico-imported-social-feed__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f1419;
  line-height: 1.3;
}

.ansico-imported-social-feed__username {
  display: block;
  font-size: 13px;
  color: #536471;
  line-height: 1.3;
}

.ansico-imported-social-feed__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.ansico-imported-social-feed__date {
  font-size: 13px;
  color: #536471;
  white-space: nowrap;
}

.ansico-imported-social-feed__content {
  color: #0f1419;
  font-size: 14px;
  line-height: 1.5;
}

.ansico-imported-social-feed__content p {
  margin: 0 !important;
  padding: 0 !important;
}

.ansico-imported-social-feed__content a {
  color: inherit;
}

/* Friendica (and other RSS sources) may embed full-resolution <img> tags
   directly in their HTML body, complete with fixed width/height attributes
   or inline styles. Keep these within the actual post column on every
   archive/profile/permalink layout. Do not enlarge small inline emoji. */
.ansico-imported-social-feed__content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.ansico-imported-social-feed__content > *,
.ansico-imported-social-feed__content figure,
.ansico-imported-social-feed__content picture {
  max-width: 100% !important;
  box-sizing: border-box;
}

.ansico-imported-social-feed__content img,
.ansico-imported-social-feed__content video,
.ansico-imported-social-feed__content iframe {
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

/* Images managed by the gallery renderer remain in their existing grid;
   constrain the grid itself when the theme supplies wide intrinsic sizes. */
.ansico-imported-social-feed__images,
.ansico-imported-social-feed__image-button {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ansico-imported-social-feed__link-preview {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 25, 0.14);
  border-radius: 10px;
  background: #f7f9f9;
  color: #0f1419;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.ansico-imported-social-feed__link-preview--with-image {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
}

.ansico-imported-social-feed__link-preview:hover,
.ansico-imported-social-feed__link-preview:focus {
  border-color: rgba(15, 20, 25, 0.28);
  background: #f2f4f5;
  color: #0f1419;
}

.ansico-imported-social-feed__link-preview-image {
  display: block;
  min-height: 96px;
  background: #e8edf2;
}

.ansico-imported-social-feed__link-preview-image img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  max-height: 132px;
  display: block;
  object-fit: cover;
}

.ansico-imported-social-feed__link-preview-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 11px;
}

.ansico-imported-social-feed__link-preview-site {
  overflow: hidden;
  color: #536471;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ansico-imported-social-feed__link-preview-title {
  display: -webkit-box;
  overflow: hidden;
  color: #0f1419;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ansico-imported-social-feed__link-preview-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: #536471;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 420px) {
  .ansico-imported-social-feed__link-preview--with-image {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .ansico-imported-social-feed__link-preview-description {
    -webkit-line-clamp: 1;
  }
}

.ansico-imported-social-feed__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 10px;
}

.ansico-imported-social-feed__images--1 {
  grid-template-columns: 1fr;
}

.ansico-imported-social-feed__images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ansico-social-source-links {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ansico-social-source-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(15, 20, 25, 0.13);
  color: #536471;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.ansico-social-source-link:hover,
.ansico-social-source-link:focus {
  color: #0f1419;
  background: #f2f4f5;
}

.ansico-social-source-link svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ansico-social-source-link--eurosky {
  background: #23519c;
  border-color: #23519c;
  color: #fff;
}

.ansico-social-source-link--eurosky:hover,
.ansico-social-source-link--eurosky:focus {
  background: #1c4589;
  border-color: #1c4589;
  color: #fff;
}

.ansico-social-source-link--wsocial {
  background: #e1e1e1;
  border-color: #d2d2d2;
  color: #0f1419;
  border-radius: 6px;
}

.ansico-social-source-link--wsocial:hover,
.ansico-social-source-link--wsocial:focus {
  background: #d7d7d7;
  border-color: #bfbfbf;
  color: #0f1419;
}

.ansico-social-source-link--eurosky svg,
.ansico-social-source-link--wsocial svg {
  width: 17px;
  height: 17px;
}

.ansico-social-source-link--lemmy {
  background: #00a95c;
  border-color: #00a95c;
  color: #fff;
}

.ansico-social-source-link--lemmy:hover,
.ansico-social-source-link--lemmy:focus {
  background: #008e4d;
  border-color: #008e4d;
  color: #fff;
}

.ansico-social-source-link--lemmy svg {
  width: 16px;
  height: 16px;
}


.ansico-social-source-link--friendica {
  background: #287f8f;
  border-color: #287f8f;
  color: #fff;
}

.ansico-social-source-link--friendica:hover,
.ansico-social-source-link--friendica:focus {
  background: #216b78;
  border-color: #216b78;
  color: #fff;
}

.ansico-social-source-link--gotosocial {
  background: #5b48b5;
  border-color: #5b48b5;
  color: #fff;
}

.ansico-social-source-link--gotosocial:hover,
.ansico-social-source-link--gotosocial:focus {
  background: #493994;
  border-color: #493994;
  color: #fff;
}

.ansico-social-source-link--friendica svg,
.ansico-social-source-link--gotosocial svg {
  width: 15px;
  height: 15px;
}

.ansico-imported-social-feed--notice {
  padding: 12px 16px;
}

@media (max-width: 520px) {
  .ansico-imported-social-feed__header {
    flex-direction: column;
    gap: 6px;
  }

  .ansico-imported-social-feed__meta {
    width: 100%;
    justify-content: space-between;
  }
}


/* Twitter HTML archive source */
.ansico-imported-social-feed__profile-link--twitter,
.ansico-social-source-link--twitter {
  background: #111;
  border-color: #111;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--twitter:hover,
.ansico-imported-social-feed__profile-link--twitter:focus,
.ansico-social-source-link--twitter:hover,
.ansico-social-source-link--twitter:focus {
  background: #2b2b2b;
  border-color: #2b2b2b;
  color: #fff;
}

.ansico-imported-social-feed__profile-link--twitter svg {
  width: 18px;
  height: 18px;
}

.ansico-social-source-link--twitter svg {
  width: 15px;
  height: 15px;
}


/* Click-to-enlarge media used by Imported Social Feed and All Imported Social Posts. */
.ansico-imported-social-feed__image-button {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  font: inherit;
}

.ansico-imported-social-feed__image-button:focus-visible {
  outline: 3px solid #0a66c2;
  outline-offset: -3px;
}

.ansico-imported-social-feed__image-button img {
  transition: transform 0.16s ease, filter 0.16s ease;
}

.ansico-imported-social-feed__image-button:hover img {
  transform: scale(1.015);
  filter: brightness(0.96);
}

body.ansico-social-lightbox-open { overflow: hidden; }

.ansico-social-lightbox {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  padding: 28px; background: rgba(0,0,0,.86); opacity: 0; visibility: hidden;
  transition: opacity .16s ease, visibility .16s ease;
}
.ansico-social-lightbox.is-open { opacity: 1; visibility: visible; }
.ansico-social-lightbox__dialog {
  position: relative; display: flex; align-items: center; justify-content: center; width: min(96vw,1600px); height: min(92vh,1200px);
}
.ansico-social-lightbox__image {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45); background: #111;
}
.ansico-social-lightbox__close {
  position: absolute; top: -18px; right: -18px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.34); border-radius: 50%;
  background: rgba(15,20,25,.8); color: #fff; cursor: pointer; font: 400 30px/1 Arial,sans-serif;
}
.ansico-social-lightbox__close:hover, .ansico-social-lightbox__close:focus-visible { background: #fff; color: #0f1419; }
@media (max-width:600px) {
  .ansico-social-lightbox { padding: 14px; }
  .ansico-social-lightbox__dialog { width: 100%; height: 94vh; }
  .ansico-social-lightbox__close { top: 4px; right: 4px; }
}
@media (prefers-reduced-motion:reduce) {
  .ansico-social-lightbox, .ansico-imported-social-feed__image-button img { transition: none; }
}


/* Per-account custom icons selected from the WordPress Media Library. */
.ansico-imported-social-feed__profile-link.has-custom-icon,
.ansico-social-source-link.has-custom-icon {
  overflow: hidden;
  padding: 0;
  background: #fff !important;
  border-color: rgba(15, 20, 25, 0.16) !important;
  color: inherit;
}

.ansico-imported-social-feed__profile-link.has-custom-icon:hover,
.ansico-imported-social-feed__profile-link.has-custom-icon:focus,
.ansico-social-source-link.has-custom-icon:hover,
.ansico-social-source-link.has-custom-icon:focus {
  background: #fff !important;
  border-color: rgba(15, 20, 25, 0.32) !important;
}

.ansico-social-custom-icon {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: inherit;
}

/* Local video/audio attachments (v1.0.0.44). */
.ansico-imported-social-feed__media {
  min-width: 0;
  overflow: hidden;
  background: #0f1419;
}

.ansico-imported-social-feed__media--video video {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 520px;
  object-fit: contain;
  background: #0f1419;
}

.ansico-imported-social-feed__media--audio {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  box-sizing: border-box;
  background: #f7f9f9;
}

.ansico-imported-social-feed__media--audio audio {
  width: 100%;
  min-width: 0;
}

.ansico-imported-social-feed__images--1 .ansico-imported-social-feed__media--video video {
  min-height: 220px;
}

/* Documented lower-bound engagement summed across known social copies. */
.ansico-social-engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: #536471;
  font-size: 13px;
  line-height: 1;
}
.ansico-social-engagement__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}
.ansico-social-engagement__icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
}
.ansico-social-engagement__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ansico-social-engagement__count { font-variant-numeric: tabular-nums; }

/* Keep the post timestamp visually neutral even when the active theme underlines links. */
.ansico-imported-social-feed__permalink,
.ansico-imported-social-feed__permalink:visited,
.ansico-imported-social-feed__permalink:hover,
.ansico-imported-social-feed__permalink:focus {
  color: #536471 !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.ansico-imported-social-feed__permalink time {
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  background-image: none !important;
}

/* Social network links belong below the engagement row, not in the header. */
.ansico-imported-social-feed__body > .ansico-social-source-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
  width: fit-content;
}

/* Optional icon placement below the profile avatar. */
.ansico-imported-social-feed__avatar-wrap > .ansico-social-source-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 9px 0 0;
  width: 38px;
}
.ansico-imported-social-feed__avatar-wrap > .ansico-social-source-links .ansico-social-source-link {
  flex: 0 0 24px;
}
