/* STX Online homepage latest-news + engagement card - 2026-08-10 */
.stx-home-news-card {
  min-width: 0;
}

.stx-home-news-card:hover {
  transform: none;
}

.stx-home-news-list {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.stx-home-news-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.stx-home-news-item:hover,
.stx-home-news-item:focus-within {
  border-color: rgba(118,196,66,.55);
  background: rgba(118,196,66,.07);
  transform: translateY(-1px);
}

.stx-home-news-story-link {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.stx-home-news-story-link:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

.stx-home-news-thumb {
  display: block;
  width: 76px;
  height: 58px;
  border-radius: 9px;
  object-fit: cover;
  background: rgba(255,255,255,.06);
}

.stx-home-news-thumb-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(118,196,66,.24);
  color: var(--green-bright);
  background: linear-gradient(145deg, rgba(118,196,66,.14), rgba(255,255,255,.035));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.stx-home-news-copy {
  min-width: 0;
}

.stx-home-news-headline {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.stx-home-news-date {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stx-home-news-engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Reuse the existing community voting widget, but compact it for the homepage. */
.stx-home-news-engagement .stx-article-vote {
  max-width: none;
  margin: 0;
}

.stx-home-news-engagement .stx-vote-panel {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
}

.stx-home-news-engagement .stx-vote-button {
  min-width: 0;
  padding: 5px 8px;
  color: #b8c3c8;
  background: transparent;
  font-size: 11px;
  line-height: 1;
}

.stx-home-news-engagement .stx-vote-button:hover {
  color: var(--green-bright);
  background: rgba(118,196,66,.08);
}

.stx-home-news-engagement .stx-vote-button.is-selected {
  color: #102116;
  background: var(--green-bright);
}

/* The homepage only needs 👍 count and 👎 count; article pages retain the points display. */
.stx-home-news-engagement .stx-vote-score {
  display: none;
}

.stx-home-news-engagement .stx-vote-message {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 10px;
}

.stx-home-news-comments {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: #b8c3c8;
  background: rgba(255,255,255,.035);
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.stx-home-news-comments:hover,
.stx-home-news-comments:focus-visible {
  border-color: rgba(118,196,66,.45);
  color: var(--green-bright);
  background: rgba(118,196,66,.08);
}

.stx-home-news-comments .stx-article-comment-count-compact {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.stx-home-news-loading,
.stx-home-news-empty {
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.stx-home-news-all {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--green-bright);
  font-weight: 800;
  text-decoration: none;
}

.stx-home-news-all:hover,
.stx-home-news-all:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 850px) {
  .stx-home-news-card {
    min-height: 250px;
  }

  .stx-home-news-story-link {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .stx-home-news-thumb {
    width: 92px;
    height: 68px;
  }

  .stx-home-news-headline {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .stx-home-news-story-link {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .stx-home-news-thumb {
    width: 72px;
    height: 56px;
  }

  .stx-home-news-headline {
    font-size: 14px;
  }

  .stx-home-news-engagement {
    gap: 6px;
  }
}
