.community-source {
  border-top: 1px solid var(--community-rule);
}

.community-source + .community-source {
  margin-top: clamp(54px, 7vw, 92px);
}

.community-source__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0 22px;
}

.community-source__identity {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.community-source__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.community-source__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  color: var(--white);
}

.community-source__mark svg {
  fill: currentColor;
}

.community-source__mark--facebook {
  background: var(--facebook-blue);
}

.community-source__mark--facebook svg {
  width: 9px;
  height: 19px;
}

.community-source__mark--x {
  background: var(--ink);
}

.community-source__mark--x svg {
  width: 17px;
  height: 17px;
}

.community-source__identity h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--type-title);
  font-weight: 800;
  line-height: var(--leading-title);
  letter-spacing: -.03em;
}

.community-source__identity p {
  max-width: 54ch;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  text-align: left;
}

.community-source__tools {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.community-source__status {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--type-label);
  line-height: var(--leading-body-tight);
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}

.x-feed-meta__status { display: inline-flex; align-items: center; gap: 9px; text-align: right; }
.x-feed-meta__status::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 1px 8px rgba(238, 118, 92, .3); content: ""; }
[data-feed-state="stale"] .x-feed-meta__status::before,
[data-feed-state="error"] .x-feed-meta__status::before { background: var(--ink-soft); box-shadow: none; }
.x-feed-card__open { min-height: 410px; }
.x-feed-card__header { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; padding: 16px 18px 12px; }
.x-feed-card__mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); }
.x-feed-card__mark svg { width: 15px; height: 15px; fill: currentColor; }
.x-feed-card__identity { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.x-feed-card__name, .x-feed-card__handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-feed-card__name { color: var(--ink); font-size: var(--community-type-body); font-weight: 700; }
.x-feed-card__handle, .x-feed-card time { color: var(--ink-soft); font-family: var(--mono); font-size: var(--community-type-label); line-height: 1.3; }
.x-feed-card time { margin-top: 4px; font-variant-numeric: tabular-nums; }
.x-feed-card__copy { display: -webkit-box; min-height: 168px; overflow: hidden; margin: 0; padding: 12px 18px 22px; color: var(--ink); font-size: var(--community-type-body); line-height: var(--leading-body); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }
.x-feed-card__footer { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--community-rule); color: var(--deep); font-size: var(--community-type-body); font-weight: 700; }
.x-feed-card__footer span:first-child { color: var(--ink-soft); font-family: var(--mono); font-size: var(--community-type-label); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.x-feed-card__footer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.x-feed-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-content: center; gap: 7px; padding: 40px; text-align: center; background: var(--paper); }
.x-feed-empty p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(25px, 2.6vw, 39px); line-height: 1; }
.x-feed-empty span { color: var(--ink-soft); font-size: var(--community-type-body); }
.x-feed-empty--error p { color: var(--deep); }
.x-feed-retry { min-height: 44px; margin: 0 0 22px; padding: 10px 14px; border: 1px solid var(--deep); background: transparent; color: var(--deep); font: 700 var(--type-micro) / var(--leading-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.x-feed-retry:hover, .x-feed-retry:focus-visible { border-color: var(--coral); color: var(--coral); }
.x-feed-retry:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.x-feed-card--skeleton { gap: 28px; justify-content: flex-start; }
.x-feed-card--skeleton span { display: block; height: 12px; background: var(--paper-deep); animation: x-feed-pulse 1.5s ease-in-out infinite alternate; }
.x-feed-card--skeleton span:first-child { width: 42%; }
.x-feed-card--skeleton span:nth-child(2) { width: 91%; height: 62px; }
.x-feed-card--skeleton span:last-child { width: 62%; margin-top: auto; }

@keyframes x-feed-pulse {
  from { opacity: .45; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .community-source__heading { display: grid; align-items: start; gap: 14px; }
  .community-source__tools { width: 100%; justify-items: start; }
  .community-source__status { text-align: left; }
  .x-feed-meta__status { justify-self: start; text-align: left; }
  .x-feed-empty { min-height: 200px; padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .x-feed-card--skeleton span { animation: none; }
}
