/* Self-hosted social embed styles — no external platform assets */

.social-posts-feed-section *,
.social-posts-feed-section *::before,
.social-posts-feed-section *::after,
#social-posts-embed-templates *,
#social-posts-embed-templates *::before,
#social-posts-embed-templates *::after {
  box-sizing: border-box;
}

/* Test-page-only (not used on priceclicker.com homepage) */
.page-title {
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.embed-stack {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.embed-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* ——— X (Twitter) ——— */
.embed-x {
  border: 1px solid #cfd9de;
  border-radius: 16px;
  padding: 12px 16px 10px;
  background: #fff;
  max-width: 598px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.embed-x__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.embed-x__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.embed-x__meta {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.embed-x__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 15px;
}

.embed-x__name {
  font-weight: 700;
  color: #0f1419;
}

.embed-x__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.embed-x__badge--verified svg {
  width: 18px;
  height: 18px;
  fill: #1d9bf0;
}

.embed-x__badge--premium {
  font-size: 16px;
  line-height: 1;
}

.embed-x__handle {
  color: #536471;
  font-weight: 400;
  font-size: 15px;
}

.embed-x__more {
  margin-left: auto;
  border: none;
  background: transparent;
  padding: 4px;
  color: #536471;
  cursor: default;
  border-radius: 9999px;
  line-height: 0;
}

.embed-x__body {
  margin: 4px 0 0 52px;
  font-size: 15px;
  line-height: 1.35;
  color: #0f1419;
  word-wrap: break-word;
}

.embed-post-body__more {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: #536471;
  cursor: pointer;
  vertical-align: baseline;
  white-space: normal;
}

.embed-post-body__more:hover {
  text-decoration: underline;
}

/* Blank line in feed content (empty line between single newlines) */
.embed-post-body__gap {
  height: 0.75em;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.embed-linkedin__body .embed-post-body__more,
.embed-widget__body--linkedin .embed-post-body__more,
.embed-li-comment__body .embed-post-body__more {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.embed-reddit__body .embed-post-body__more,
.embed-widget__body--reddit .embed-post-body__more {
  color: #576f76;
}

.embed-x__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 0 52px;
  max-width: 425px;
  color: #536471;
}

.embed-x__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.embed-x__action[data-embed-action]:hover {
  opacity: 0.85;
}

.embed-x__action.embed-action-like.is-liked {
  color: #f91880;
}

.embed-x__action.embed-action-like.is-liked svg {
  fill: #f91880;
}

.embed-x__action svg {
  width: 18.75px;
  height: 18.75px;
  fill: currentColor;
}

.embed-x__action-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.embed-x__right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ——— LinkedIn ——— */
.embed-linkedin {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  max-width: 552px;
  overflow: hidden;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Helvetica, Arial, sans-serif;
}

.embed-linkedin__header {
  display: flex;
  gap: 8px;
  padding: 12px 12px 0;
  align-items: flex-start;
}

.embed-linkedin__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.embed-linkedin__meta {
  flex: 1;
  min-width: 0;
}

.embed-linkedin__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.333;
}

.embed-linkedin__name {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
}

.embed-linkedin__verified {
  display: inline-flex;
  color: #666;
}

.embed-linkedin__verified[hidden],
.embed-x__badge[hidden] {
  display: none !important;
}

.embed-linkedin__verified svg {
  width: 16px;
  height: 16px;
}

.embed-linkedin__verified--shield svg,
.embed-linkedin__verified--gold svg {
  width: 16px;
  height: 16px;
}

.embed-linkedin__verified--shield path {
  fill: #404040;
}

.embed-linkedin__verified--gold path {
  fill: #c99700;
}

.embed-linkedin__degree {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.embed-linkedin__headline {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.333;
  margin-top: 2px;
}

.embed-linkedin__time {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 2px;
}

.embed-linkedin__menu {
  border: none;
  background: transparent;
  padding: 8px;
  color: rgba(0, 0, 0, 0.6);
  cursor: default;
  border-radius: 50%;
  line-height: 0;
  margin: -4px -4px 0 0;
}

.embed-linkedin__body {
  padding: 8px 12px 12px;
  font-size: 14px;
  line-height: 1.42857;
  color: rgba(0, 0, 0, 0.9);
}

.embed-linkedin__body p {
  margin: 0 0 0.85em;
}

.embed-linkedin__body p:last-of-type {
  margin-bottom: 0.5em;
}

.embed-linkedin__cta-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 0.5em;
}

.embed-linkedin__cta-icon {
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}

.embed-linkedin__hashtags {
  margin-top: 0.75em;
  font-size: 14px;
  line-height: 1.5;
}

.embed-linkedin__hashtags a {
  color: #0a66c2;
  text-decoration: none;
  font-weight: 600;
}

.embed-linkedin__hashtags a:hover {
  text-decoration: underline;
}

.embed-linkedin__footer {
  border-top: 1px solid #e0e0e0;
  padding: 4px 8px 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.embed-linkedin__footer-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
}

.embed-linkedin__footer-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-linkedin__footer-caret {
  border: none;
  background: transparent;
  padding: 0;
  color: rgba(0, 0, 0, 0.6);
  cursor: default;
  line-height: 0;
}

.embed-linkedin__actions {
  flex: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.embed-linkedin__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  padding: 10px 8px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-width: 56px;
}

.embed-linkedin__action.embed-action-like.is-liked {
  color: rgba(0, 0, 0, 0.6);
}

.embed-linkedin__action svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.embed-linkedin-like-svg {
  fill: none;
}

.embed-linkedin__action .embed-linkedin-like--outline,
.embed-widget--linkedin .embed-linkedin-like--outline {
  fill: currentColor;
}

.embed-linkedin__action .embed-linkedin-like--solid,
.embed-widget--linkedin .embed-linkedin-like--solid {
  visibility: hidden;
  fill: #0a66c2;
}

.embed-linkedin__action.embed-action-like.is-liked .embed-linkedin-like--outline,
.embed-widget--linkedin .embed-action-like.is-liked .embed-linkedin-like--outline {
  visibility: hidden;
}

.embed-linkedin__action.embed-action-like.is-liked .embed-linkedin-like--solid,
.embed-widget--linkedin .embed-action-like.is-liked .embed-linkedin-like--solid {
  visibility: visible;
}

/* ——— Reddit ——— */
.embed-reddit {
  max-width: 640px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 14px;
  line-height: 21px;
  color: #1a1a1b;
}

.embed-reddit__comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.embed-reddit__thread-line {
  width: 2px;
  background: #edeff1;
  align-self: stretch;
  min-height: 80px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-left: 15px;
}

.embed-reddit__main {
  flex: 1;
  min-width: 0;
}

.embed-reddit__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 4px;
}

.embed-reddit__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 4px;
  background: #ff4500;
}

.embed-reddit__author {
  font-weight: 700;
  color: #1a1a1b;
  font-size: 12px;
}

.embed-reddit__dot {
  color: #787c7e;
}

.embed-reddit__time {
  color: #787c7e;
  font-weight: 400;
}

.embed-reddit__body {
  font-size: 14px;
  line-height: 21px;
  color: #1a1a1b;
  margin-bottom: 8px;
}

.embed-reddit__body p {
  margin: 0 0 0.75em;
}

.embed-reddit__body p:last-child {
  margin-bottom: 0;
}

.embed-reddit__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: -8px;
}

.embed-reddit__vote {
  display: inline-flex;
  align-items: center;
  background: #f6f7f8;
  border-radius: 999px;
  padding: 2px 4px;
  gap: 2px;
}

.embed-reddit__vote-btn {
  border: none;
  background: transparent;
  padding: 4px;
  color: #878a8c;
  cursor: pointer;
  line-height: 0;
  border-radius: 4px;
  display: inline-flex;
}

.embed-reddit__vote-btn.is-liked {
  color: #878a8c;
}

.embed-reddit__vote-svg {
  fill: none;
}

.embed-reddit__vote-btn .embed-reddit-vote--outline {
  fill: currentColor;
}

.embed-reddit__vote-btn .embed-reddit-vote--solid {
  visibility: hidden;
  fill: #ff4500;
}

.embed-reddit__vote-btn.is-liked .embed-reddit-vote--outline {
  visibility: hidden;
}

.embed-reddit__vote-btn.is-liked .embed-reddit-vote--solid {
  visibility: visible;
}

.embed-reddit__vote-btn svg {
  width: 16px;
  height: 16px;
}

.embed-reddit__score {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1b;
  min-width: 1.25rem;
  text-align: center;
  padding: 0 2px;
  order: 2;
}

.embed-reddit__vote-btn[aria-label='Upvote'] {
  order: 1;
}

.embed-reddit__vote-btn[aria-label='Downvote'] {
  order: 3;
}

.embed-reddit__vote--negative .embed-reddit__score {
  order: 4;
  padding-left: 0;
}

.embed-reddit__vote--negative .embed-reddit__vote-btn[aria-label='Downvote'] {
  order: 3;
}

.embed-reddit__pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 6px 8px;
  color: #878a8c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
}

.embed-reddit__pill-btn[data-embed-action]:hover {
  background: rgba(0, 0, 0, 0.04);
}

.embed-reddit__pill-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.embed-reddit__collapse {
  border: none;
  background: transparent;
  padding: 4px;
  color: #878a8c;
  cursor: default;
  line-height: 0;
  margin-right: 4px;
}

.embed-reddit__collapse svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ——— Off-site embed widgets ——— */
.embed-section-title {
  max-width: 520px;
  margin: 1rem auto 0;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
}

.embed-section-title--first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.embed-widget {
  border: 2px solid #e1e8ed;
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px 16px;
  max-width: 100%;
  min-height: 220px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0f1419;
}

.embed-widget--x {
  border-color: #0f1419;
}

.embed-widget--linkedin {
  border-color: #0a66c2;
}

.embed-widget--reddit {
  border-color: #ff4500;
}

.embed-widget__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.embed-widget__header--reddit {
  align-items: flex-start;
  margin-bottom: 10px;
}

.embed-widget__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.embed-widget__avatar--lg {
  width: 48px;
  height: 48px;
}

.embed-widget__avatar--sm {
  width: 32px;
  height: 32px;
}

.embed-widget__meta {
  flex: 1;
  min-width: 0;
}

.embed-widget__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  line-height: 1.25;
}

.embed-widget__name {
  font-weight: 700;
  color: #0f1419;
}

.embed-widget__subline {
  font-size: 15px;
  line-height: 1.3;
  color: #536471;
  margin-top: 2px;
}

.embed-widget__subline--linkedin {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}

.embed-widget__subline--linkedin {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.embed-widget__subline--muted {
  font-size: 12px;
  margin-top: 2px;
}

.embed-widget__handle {
  color: #536471;
}

.embed-widget__sep {
  color: #536471;
  margin: 0 2px;
}

.embed-widget__follow {
  color: #1d9bf0;
  font-weight: 700;
  text-decoration: none;
}

.embed-widget__follow:hover {
  text-decoration: underline;
}

/* Platform logo slot — drop file at logos/*.svg or set img src */
.embed-widget__logo {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  min-height: 32px;
  margin-left: auto;
  align-self: flex-start;
}

.embed-widget__logo::after {
  content: attr(data-logo-label);
  display: block;
  font-size: 8px;
  line-height: 1.15;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #9ca3af;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  max-width: 80px;
}

.embed-widget__logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-left: auto;
}

.embed-widget--x .embed-widget__logo img {
  width: 28px;
  height: 28px;
}

.embed-widget__logo:has(img)::after {
  display: none;
}

.embed-widget__body {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.45;
  color: #0f1419;
  word-wrap: break-word;
}

.embed-widget__body--linkedin {
  font-size: 14px;
  line-height: 1.42857;
}

.embed-widget__body--linkedin p,
.embed-widget__body--reddit p {
  margin: 0 0 0.75em;
}

.embed-widget__body--reddit {
  font-size: 15px;
  line-height: 1.4;
}

.embed-widget__datetime-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.embed-widget__datetime {
  font-size: 15px;
  color: #536471;
}

.embed-widget__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin: -6px -8px -6px 0;
  border: none;
  background: transparent;
  padding: 0;
  color: #536471;
  cursor: pointer;
  line-height: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.embed-widget__info:hover {
  background-color: rgba(29, 155, 240, 0.1);
  color: #1d9bf0;
}

.embed-widget__info:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 1px;
}

.embed-widget__info svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.embed-widget__linkedin-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.333;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
}

.embed-widget__reaction-bank {
  display: none !important;
}

.embed-widget__linkedin-reactions {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.embed-widget__reaction-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.embed-widget__reaction-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: -5px;
  box-shadow: 0 0 0 1px #fff;
  border-radius: 50%;
}

.embed-widget__reaction-stack .embed-widget__reaction-icon:first-child {
  margin-left: 0;
}

.embed-widget__linkedin-reactions-text,
.embed-widget__linkedin-likes-count {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.embed-widget__linkedin-likes-count {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
}

.embed-widget__linkedin-counts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.embed-widget__linkedin-counts-sep {
  color: rgba(0, 0, 0, 0.6);
}

.embed-widget__rule {
  border: none;
  border-top: 1px solid #eff3f4;
  margin: 0 0 12px;
}

.embed-widget--linkedin .embed-widget__rule {
  border-top-color: #e0e0e0;
}

.embed-widget__compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.embed-widget__compact-actions--linkedin {
  gap: 16px;
  justify-content: space-around;
}

.embed-widget__compact-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: #536471;
  cursor: pointer;
  font-family: inherit;
}

.embed-widget__compact-action[hidden] {
  display: none !important;
}

.embed-widget__compact-action[data-embed-action]:hover {
  opacity: 0.85;
}

.embed-widget__compact-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.embed-widget__compact-actions--linkedin .embed-widget__compact-action svg {
  width: 20px;
  height: 20px;
}

.embed-widget__compact-action--like svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
}

.embed-widget__compact-action--like {
  color: #536471;
}

.embed-widget__compact-action--like.is-liked {
  color: #536471;
}

.embed-widget--x .embed-widget__compact-action--like.is-liked {
  color: #536471;
}

.embed-widget--x .embed-widget__compact-action--like.is-liked > span {
  color: #536471;
}

.embed-widget--x .embed-x-heart-svg {
  fill: none;
}

.embed-widget--x .embed-x-heart--outline {
  fill: currentColor;
}

.embed-widget--x .embed-x-heart--solid {
  visibility: hidden;
  fill: #f91880;
  transform: scale(0.9);
  transform-origin: 12px 12px;
}

.embed-widget--x .embed-widget__compact-action--like.is-liked .embed-x-heart--outline {
  visibility: hidden;
}

.embed-widget--x .embed-widget__compact-action--like.is-liked .embed-x-heart--solid {
  visibility: visible;
}

.embed-widget__compact-action--reply svg {
  fill: #1d9bf0;
}

.embed-widget--linkedin .embed-widget__compact-action--like.is-liked,
.embed-widget--linkedin .embed-widget__compact-action--like.is-liked > span {
  color: rgba(0, 0, 0, 0.6);
}

.embed-widget--linkedin .embed-widget__compact-action--like svg {
  fill: none;
}

.embed-widget__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border: 2px solid #cfd9de;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  color: #1d9bf0;
  text-decoration: none;
  background: #fff;
  box-sizing: border-box;
}

.embed-widget__cta [hidden] {
  display: none !important;
}

.embed-widget__cta-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.embed-widget__cta-icon {
  display: block;
  flex-shrink: 0;
}

.embed-widget__cta-icon--linkedin {
  width: 21px;
  height: 21px;
}

.embed-widget__cta-icon--reddit {
  width: 18px;
  height: 18px;
}

.embed-widget__cta-reddit-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  line-height: 0;
  overflow: visible;
}

.embed-widget--reddit .embed-widget__cta-brand {
  min-width: auto;
  overflow: visible;
}

.embed-widget--reddit .embed-widget__cta {
  overflow: visible;
}

.embed-widget__cta-lead {
  font-weight: 700;
  flex-shrink: 0;
}

.embed-widget__cta-wordmark {
  display: block;
  width: auto;
  flex-shrink: 0;
}

.embed-widget__cta-wordmark--linkedin {
  height: 18px;
}


.embed-widget__cta-wordmark--x {
  height: 20px;
  width: 20px;
}

.embed-widget__cta-wordmark--reddit {
  height: 13px;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  margin-left: -3px;
  color: #ff4500;
}

.embed-widget--x .embed-widget__cta-wordmark--x {
  filter: none;
}

.embed-widget__cta:hover {
  background: #f7f9f9;
}

.embed-widget--x .embed-widget__cta {
  color: #0f1419;
  border-color: #0f1419;
}

.embed-widget--x .embed-widget__cta:hover {
  background: #f3f4f6;
}

.embed-widget--linkedin .embed-widget__cta {
  color: #0a66c2;
  border-color: #0a66c2;
}

.embed-widget--linkedin .embed-widget__cta:hover {
  background: #eef3f8;
}

.embed-widget--reddit .embed-widget__cta {
  color: #ff4500;
  border-color: #ff4500;
}

.embed-widget--reddit .embed-widget__cta-lead {
  color: #ff4500;
}

.embed-widget--reddit .embed-widget__cta:hover {
  background: #fff7f5;
}

.embed-widget__reddit-context {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1b;
}

.embed-widget__reddit-sub {
  color: #1a1a1b;
}

.embed-widget__reddit-meta {
  color: #787c7e;
  font-weight: 400;
}

.embed-widget__reddit-author-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}

.embed-widget__reddit-author {
  font-weight: 700;
  color: #1a1a1b;
}

.embed-widget__reddit-time {
  color: #787c7e;
}

.embed-widget__reddit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  margin-left: -4px;
}

/* Reddit comment thread (off-site widget) */
.embed-reddit-comment {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.embed-reddit-comment__thread {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
  margin-left: 4px;
}

.embed-reddit-comment__collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #878a8c;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.embed-reddit-comment__collapse svg {
  width: 20px;
  height: 20px;
  display: block;
}

.embed-reddit-comment__rail {
  width: 2px;
  flex: 1;
  min-height: 48px;
  background: #edeff1;
  border-radius: 1px;
}

.embed-reddit-comment__main {
  flex: 1;
  min-width: 0;
}

/* ——— CDN feed carousel (homepage config-carousel pattern) ——— */
:root {
  --primary-blue: #027fff;
  --white: #ffffff;
}

.social-posts-feed-section {
  --social-posts-section-blue: #74c2eb;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 80px 0 72px;
  background-color: var(--social-posts-section-blue);
  /* White top → blue (especially right) in the middle → white bottom for the next section */
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.45) 62%,
      rgba(255, 255, 255, 0.92) 80%,
      #ffffff 92%,
      #ffffff 100%
    ),
    linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(
      to right,
      #ffffff 0%,
      rgba(255, 255, 255, 0.78) 34%,
      rgba(255, 255, 255, 0.22) 52%,
      rgba(255, 255, 255, 0) 62%
    ),
    linear-gradient(
      to bottom right,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.12) 28%,
      rgba(255, 255, 255, 0) 46%
    );
}

.social-posts-feed-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.social-posts-feed-section__intro {
  margin-bottom: 48px;
  max-width: 920px;
}

.social-posts-feed-section__subtitle {
  margin: 16px 0 0;
  max-width: 920px;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.72);
}

/* Marketing experts band — same light blue as consumer; gradient weighted left, shifted below intro */
.social-posts-feed-section--marketing-experts {
  --social-posts-section-blue: #74c2eb;
  background-color: var(--social-posts-section-blue);
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.45) 62%,
      rgba(255, 255, 255, 0.92) 80%,
      #ffffff 92%,
      #ffffff 100%
    ),
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffff 30%,
      rgba(255, 255, 255, 0.94) 42%,
      rgba(255, 255, 255, 0) 66%
    ),
    linear-gradient(
      to left,
      #ffffff 0%,
      rgba(255, 255, 255, 0.78) 34%,
      rgba(255, 255, 255, 0.22) 52%,
      rgba(255, 255, 255, 0) 62%
    ),
    linear-gradient(
      to bottom left,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.12) 28%,
      rgba(255, 255, 255, 0) 46%
    );
  background-size: 100% 100%, 100% 100%, 100% 78%, 100% 72%;
  background-position: center, center, left 148px, left 168px;
  background-repeat: no-repeat;
}

.social-posts-feed-section--marketing-experts .social-posts-feed-section__intro {
  position: relative;
  z-index: 1;
}

/* ——— Homepage highlight stat cards (website-highlight-stats XML) ——— */
.home-highlight-stats-section {
  background: #ffffff;
  padding: 72px 0 80px;
}

.home-highlight-stats-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-highlight-stats-section__title {
  margin: 0 0 40px;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  text-align: center;
}

.highlight-stat-carousel {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.home-highlight-stats-section .config-carousel-shell {
  overflow: visible;
}

.home-highlight-stats-section .config-carousel-viewport {
  overflow-x: clip;
  overflow-y: visible;
  padding-bottom: 12px;
  box-sizing: content-box;
}

.home-highlight-stats-section .config-carousel-track {
  align-items: flex-start;
}

.highlight-stat-carousel-card {
  height: auto;
}

.highlight-stat-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: 1.5rem 1.65rem 1.5rem;
  background: #fff;
  border: 2px solid #027fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(2, 127, 255, 0.1);
  box-sizing: border-box;
}

.highlight-stat-card__headline {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.48;
  color: #111827;
}

.highlight-stat-card__emphasis {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.highlight-stat-card__num {
  color: #027fff;
}

.highlight-stat-card__emphasis-suffix {
  color: #111827;
}

.highlight-stat-card__rule {
  width: 100%;
  height: 0;
  margin: 1.2rem 0 0.75rem;
  border: none;
  border-top: 1.5px solid #b8dcff;
}

.highlight-stat-card__footnote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b7280;
}

.home-highlight-stats-section .config-carousel-btn {
  width: 46px;
  height: 46px;
}

.home-highlight-stats-section .config-carousel-btn svg {
  width: 22px;
  height: 22px;
}

.social-posts-feed-section__dev-note {
  max-width: 640px;
  margin: 2rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.social-posts-feed-section__dev-note summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
}

.social-posts-feed-section__dev-note summary::-webkit-details-marker {
  display: none;
}

.social-posts-feed-section__dev-note p {
  margin: 0.75rem 0 0;
  text-align: center;
}

.social-posts-feed-section__code {
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.45);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.social-posts-feed-grid {
  width: 100%;
}

.social-posts-feed-empty,
.social-posts-feed-error {
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7280;
  padding: 2rem 1rem;
}

.social-posts-feed-error {
  color: #b91c1c;
}

.social-posts-feed-section .social-posts-feed-empty,
.social-posts-feed-section .social-posts-feed-error {
  color: rgba(0, 0, 0, 0.72);
}

.social-posts-feed-section .social-posts-feed-error {
  color: #7f1d1d;
}

.config-carousel-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.config-carousel-shell.is-single-card {
  max-width: 520px;
  margin: 0 auto;
}

.config-carousel-shell.is-single-card .config-carousel-btn {
  display: none;
}

.config-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.config-carousel-viewport {
  overflow: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
  cursor: grab;
}

.config-carousel-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.config-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.config-carousel-card {
  flex-shrink: 0;
  padding: 0 10px;
  box-sizing: border-box;
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.config-carousel-card.is-visible {
  opacity: 0.55;
}

.config-carousel.is-peek-mode .config-carousel-card.is-visible:not(.is-highlighted) {
  opacity: 0.45;
  transform: scale(0.94);
}

.config-carousel.is-peek-mode .config-carousel-card.is-highlighted {
  opacity: 1;
  transform: scale(1);
}

.config-carousel-card.is-highlighted {
  opacity: 1;
  transform: scale(1);
}

.config-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(2, 127, 255, 0.25);
  background: var(--white);
  color: var(--primary-blue);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.config-carousel-btn:hover:not(:disabled) {
  background: rgba(2, 127, 255, 0.08);
  border-color: var(--primary-blue);
}

.config-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Embed post headers must not inherit site nav chrome (see style.css header[role="banner"]) */
.social-posts-feed-section .embed-widget > header,
#social-posts-embed-templates .embed-widget > header {
  position: static;
  top: auto;
  z-index: auto;
  box-shadow: none;
  padding: 0;
  background: transparent;
  background-color: transparent;
}

.social-feed-card__inner .embed-widget {
  max-width: 100%;
  margin: 0 auto;
}

.social-feed-card__inner {
  height: auto;
}

/* Size to content in the homepage feed (avoid min-height gap under the CTA on short comments). */
.social-posts-feed-section .embed-widget {
  min-height: 0;
}

.social-posts-feed-grid .config-carousel-track {
  align-items: flex-start;
}

/* Off-screen slides must not inflate section height (flex row uses max cross-size). */
.social-posts-feed-grid .config-carousel-card:not(.is-visible) {
  height: 0;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.social-posts-feed-section:is(
  [data-feed-role="consumer"],
  [data-feed-role="marketing-experts"],
  [data-feed-role="business"]
) {
  padding-bottom: 24px;
}

.social-posts-feed-section:is(
    [data-feed-role="consumer"],
    [data-feed-role="marketing-experts"],
    [data-feed-role="business"]
  )
  .social-posts-feed-section__intro {
  margin-bottom: 32px;
}

.social-posts-feed-section:is(
    [data-feed-role="consumer"],
    [data-feed-role="marketing-experts"],
    [data-feed-role="business"]
  )
  .social-posts-feed-grid {
  margin-bottom: 0;
}

.social-posts-feed-section:is(
    [data-feed-role="consumer"],
    [data-feed-role="marketing-experts"],
    [data-feed-role="business"]
  )
  .config-carousel-shell {
  margin-bottom: 0;
}

.social-posts-feed-section:is(
    [data-feed-role="consumer"],
    [data-feed-role="marketing-experts"],
    [data-feed-role="business"]
  )
  .embed-widget {
  padding-bottom: 12px;
}

.social-posts-feed-section:is(
    [data-feed-role="consumer"],
    [data-feed-role="marketing-experts"],
    [data-feed-role="business"]
  )
  .config-carousel-viewport.is-social-viewport-frame {
  overflow-x: clip;
  overflow-y: hidden;
  transition: height 0.35s ease;
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .social-posts-feed-section:is(
      [data-feed-role="consumer"],
      [data-feed-role="marketing-experts"],
      [data-feed-role="business"]
    )
    .config-carousel-viewport.is-social-viewport-frame {
    transition: none;
  }
}

.embed-widget__reaction-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -5px;
  display: inline-block;
  box-sizing: border-box;
}

.embed-widget__reaction-stack .embed-widget__reaction-ring:first-child {
  margin-left: 0;
}

.embed-widget__reaction-ring.embed-widget__reaction-icon--like {
  background: #378fe9;
}

.embed-widget__reaction-ring.embed-widget__reaction-icon--applaud {
  background: #6dae4f;
}

.embed-widget__reaction-ring.embed-widget__reaction-icon--love {
  background: #df704d;
}

.embed-widget__reaction-ring.embed-widget__reaction-icon--funny {
  background: #44bfd3;
}

.embed-widget__reaction-ring.embed-widget__reaction-icon--insightful {
  background: #f5bb5c;
}

.embed-widget__reaction-ring.embed-widget__reaction-icon--support {
  background: #7c3aed;
}

/* ——— LinkedIn comment (off-site embed) ——— */
.embed-widget--linkedin-comment {
  padding-top: 14px;
}

.embed-widget__header--li-comment {
  margin-bottom: 8px;
}

.embed-widget--linkedin-comment .embed-widget__cta {
  margin-top: 14px;
}

.embed-li-comment {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.embed-li-comment__rail {
  width: 2px;
  flex-shrink: 0;
  background: #e0e0e0;
  border-radius: 1px;
  margin-left: 15px;
}

.embed-li-comment__main {
  flex: 1;
  min-width: 0;
}

.embed-li-comment__head-text {
  flex: 1;
  min-width: 0;
}

.embed-li-comment__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.embed-li-comment__name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
}

.embed-li-comment__connection,
.embed-li-comment__time {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.embed-li-comment__actions-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.embed-li-comment__more {
  border: none;
  background: transparent;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.6);
  cursor: default;
}

.embed-li-comment__subtitle {
  font-size: 12px;
  line-height: 1.333;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.embed-li-comment__body {
  margin: 8px 0 10px;
  font-size: 14px;
  line-height: 1.42857;
  color: rgba(0, 0, 0, 0.9);
}

.embed-li-comment__body p {
  margin: 0 0 0.5em;
}

.embed-linkedin-mention {
  color: #0a66c2;
  font-weight: 600;
}

.embed-li-comment__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  min-height: 20px;
}

.embed-li-comment__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.embed-li-comment__reactions-summary {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
}

.embed-li-comment__reaction-stack {
  flex-shrink: 0;
}

.embed-li-comment__likes-text,
.embed-li-comment__likes-count {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.embed-li-comment__stat-reaction {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.embed-li-comment__stat-reaction .embed-widget__reaction-icon {
  margin-left: 0;
}

.embed-li-comment__stat-reaction .embed-linkedin-like-svg {
  width: 16px;
  height: 16px;
  fill: none;
}

.embed-li-comment__stat .embed-linkedin-like--outline {
  fill: rgba(0, 0, 0, 0.6);
}

.embed-li-comment__stat .embed-linkedin-like--solid {
  visibility: hidden;
  fill: #0a66c2;
}

.embed-li-comment__stat.embed-action-like.is-liked .embed-linkedin-like--outline {
  visibility: hidden;
}

.embed-li-comment__stat.embed-action-like.is-liked .embed-linkedin-like--solid {
  visibility: visible;
}

.embed-li-comment__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.embed-li-comment__stat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: rgba(0, 0, 0, 0.6);
}

.embed-li-comment__stat svg path {
  fill: rgba(0, 0, 0, 0.6);
}

.embed-li-comment__stat-value {
  font-variant-numeric: tabular-nums;
}

.embed-li-comment__stat.embed-action-like.is-liked {
  color: rgba(0, 0, 0, 0.6);
}

.embed-li-comment__stat.embed-action-like.is-liked svg:not(.embed-linkedin-like-svg),
.embed-li-comment__stat.embed-action-like.is-liked svg:not(.embed-linkedin-like-svg) path {
  fill: #0a66c2;
}

.embed-li-comment__reaction-mini {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #378fe9;
  box-shadow: 0 0 0 1px #fff;
  flex-shrink: 0;
  position: relative;
}

.embed-li-comment__reaction-mini::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M8 1a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 5.66 2.34A8 8 0 0 0 8 0'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

/* ——— Mobile: full-width cards ——— */
@media (max-width: 768px) {
  .page-title,
  .embed-stack,
  .embed-section-title {
    max-width: none;
    width: 100%;
  }

  .social-posts-feed-section {
    padding-block: 56px 48px;
  }

  .social-posts-feed-section:is(
    [data-feed-role="consumer"],
    [data-feed-role="marketing-experts"],
    [data-feed-role="business"]
  ) {
    padding-bottom: 20px;
  }

  .social-posts-feed-section:is(
      [data-feed-role="consumer"],
      [data-feed-role="marketing-experts"],
      [data-feed-role="business"]
    )
    .social-posts-feed-section__intro {
    margin-bottom: 24px;
  }

  .social-posts-feed-section__intro {
    margin-bottom: 32px;
    padding: 0 4px;
  }

  .social-posts-feed-section__subtitle {
    font-size: 1rem;
  }

  .home-highlight-stats-section {
    padding: 56px 0 64px;
  }

  .home-highlight-stats-section__title {
    font-size: 1.75rem;
    margin-bottom: 28px;
  }

  .highlight-stat-card {
    padding: 1.35rem 1.4rem 1.35rem;
  }

  .highlight-stat-card__headline {
    font-size: 1.0625rem;
  }

  .home-highlight-stats-section .config-carousel-track {
    gap: 16px;
  }

  .social-posts-feed-section__inner {
    padding: 0 0.375rem;
  }

  .embed-stack {
    gap: 2rem;
  }

  .embed-x,
  .embed-linkedin,
  .embed-reddit,
  .embed-reddit-comment,
  .embed-widget {
    width: 100%;
    max-width: none;
  }

  .embed-x__actions {
    max-width: none;
    margin-left: 0;
  }


  .config-carousel-shell.is-single-card {
    max-width: none;
  }

  .config-carousel {
    display: block;
    position: relative;
  }

  .config-carousel-viewport {
    width: 100%;
  }

  .config-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 34px;
    height: 34px;
    margin: 0;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(15, 20, 25, 0.1);
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .config-carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.68);
  }

  .config-carousel-btn--prev {
    left: 4px;
  }

  .config-carousel-btn--next {
    right: 4px;
  }

  .config-carousel-btn:disabled {
    opacity: 0.3;
  }

  .social-posts-feed-grid .config-carousel-track {
    gap: 16px;
  }

  .config-carousel-card {
    padding: 0;
    transform: none;
    opacity: 1;
  }

  .config-carousel-card.is-visible,
  .config-carousel-card.is-highlighted,
  .config-carousel.is-peek-mode .config-carousel-card.is-visible,
  .config-carousel.is-peek-mode .config-carousel-card.is-visible:not(.is-highlighted),
  .config-carousel.is-peek-mode .config-carousel-card.is-highlighted {
    transform: none;
    opacity: 1;
  }

  .embed-widget {
    padding: 16px 14px 14px;
  }

  .embed-widget__cta-brand {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}
