.community-social {
  margin-top: 18px;
  overflow: hidden;
  background: var(--panel);
  border-top: 3px solid var(--ink);
  box-shadow: 0 16px 32px rgba(28, 23, 14, 0.08);
}

.community-social-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.community-social-heading > div:first-child {
  min-width: 0;
}

.community-social-heading h2 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
  text-wrap: balance;
}

.community-social-heading > div:first-child > p:last-child {
  max-width: 660px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.community-social-callout {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  justify-items: end;
}

.community-social-callout p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.community-social-callout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--yellow);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  touch-action: manipulation;
}

.community-social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.8fr);
}

.community-social-group {
  min-width: 0;
  padding: 16px 18px 18px;
}

.community-social-predictions {
  border-right: 1px solid var(--line);
}

.community-social-group-heading {
  margin-bottom: 12px;
}

.community-social-group-heading h3 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1;
  text-wrap: balance;
}

.community-social-grid,
.community-highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.community-social-grid > li,
.community-social-card {
  min-width: 0;
  height: 100%;
}

.community-social-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid var(--line);
}

.community-social-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0c131a;
  border-bottom: 1px solid var(--line);
}

.community-social-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 11px;
}

.community-social-author {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  min-width: 0;
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.community-social-author strong {
  color: var(--ink);
  font-weight: 900;
}

.community-social-card h4,
.community-highlight-card h4 {
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.08;
  text-wrap: balance;
}

.community-social-card-copy > p:not(.community-social-author),
.community-highlight-card > div > p:not(.community-social-author) {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.community-social-card-footer,
.community-highlight-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
}

.community-social-card-footer time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.community-social-card-footer a,
.community-highlight-actions a {
  color: var(--ink);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(12, 18, 24, 0.35);
  text-underline-offset: 3px;
  touch-action: manipulation;
}

.community-highlight-list {
  display: grid;
  gap: 10px;
}

.community-highlight-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 9px;
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid var(--line);
}

.community-highlight-card > img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  align-self: start;
  background: #0c131a;
  border: 1px solid rgba(12, 18, 24, 0.12);
}

.community-highlight-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.community-highlight-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.community-social a:hover,
.community-social a:focus-visible {
  color: #0c4f89;
}

.community-social-callout a:hover,
.community-social-callout a:focus-visible {
  color: var(--ink);
  background: #ffd15a;
  border-color: #ffd15a;
}

.community-social a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .community-social-layout {
    grid-template-columns: 1fr;
  }

  .community-social-predictions {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .community-social-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .community-social-heading h2 {
    font-size: 24px;
  }

  .community-social-callout {
    justify-items: stretch;
  }

  .community-social-callout a {
    width: 100%;
  }

  .community-social-group {
    padding: 14px;
  }

  .community-social-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 320px);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 0 8px;
    scroll-snap-type: inline proximity;
    scrollbar-color: rgba(12, 18, 24, 0.35) transparent;
  }

  .community-social-grid > li {
    scroll-snap-align: start;
  }

  .community-highlight-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .community-highlight-card > img {
    width: 88px;
    height: 88px;
  }
}
