/* Scoped polish for the SociableKIT LinkedIn feed. */
.linkedin-feed-block {
  margin-bottom: 3rem;
}

.linkedin-feed-block:last-child {
  margin-bottom: 0;
}

.linkedin-feed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.linkedin-feed-heading-row {
  row-gap: .75rem;
}

.linkedin-feed-heading-row .section-title {
  margin-bottom: 1rem;
}

.linkedin-feed-heading-row h3.section-title,
.legacy-news-title {
  font-size: 1.6rem;
}

.legacy-news {
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 63, 96, .12);
}

.legacy-news-title {
  margin-bottom: 1rem;
}

.linkedin-feed-follow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .15rem;
  margin-bottom: 1rem;
  padding: .55rem .85rem;
  border-radius: var(--rtg-radius);
  background: #46617f;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--rtg-shadow-sm);
  transition: background-color .15s ease, transform .15s ease;
}

.linkedin-feed-follow:hover {
  background: var(--rtg-navy);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.linkedin-feed-follow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
  background: #fff;
  color: #46617f;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.linkedin-feed .sk-ww-linkedin-page-post,
.linkedin-feed .sk-linkedin-page-posts {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  --widget-outer-margin: 0px;
  --widget-padding: 24px;
  --widget-bg-color: #f5f8fb;
  border: 1px solid rgba(22, 63, 96, .12);
  border-radius: var(--rtg-radius);
  background: #f5f8fb !important;
}

.linkedin-feed .sk-posts-header {
  display: none !important;
}

.linkedin-feed .sk-posts-body {
  width: 100% !important;
}

.linkedin-feed .sk-posts-masonry {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: auto !important;
  width: 100% !important;
}

.linkedin-feed .sk-post-item {
  border: 1px solid rgba(22, 63, 96, .14) !important;
  border-radius: var(--rtg-radius) !important;
  background: #fff !important;
  box-shadow: 0 4px 18px rgba(22, 63, 96, .08), 0 1px 3px rgba(0, 0, 0, .06) !important;
  position: static !important;
  width: 100% !important;
}

.linkedin-feed .sk-post-body {
  line-height: 1.5;
}

.linkedin-feed .sk-post-userinfo,
.linkedin-feed .sk-post-userinfo *,
.linkedin-feed .sk-header-copy,
.linkedin-feed .sk-header-copy * {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.linkedin-feed .sk-post-userinfo {
  min-width: 0;
}

.linkedin-feed .sk-post-userinfo a,
.linkedin-feed .sk-post-userinfo span {
  font-size: .88rem;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .linkedin-feed .sk-ww-linkedin-page-post,
  .linkedin-feed .sk-linkedin-page-posts {
    --widget-padding: 16px;
  }

  .linkedin-feed-heading-row {
    align-items: flex-start !important;
  }

  .linkedin-feed-follow-col {
    width: 100%;
  }

  .linkedin-feed-follow {
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }

  .linkedin-feed .sk-posts-masonry {
    grid-template-columns: 1fr;
  }
}
