.tag-embed-card {
  padding: 1.1rem 1.1rem 0;
  border: 1px solid var(--bg-3);
  border-radius: 1.2rem;
  background: var(--bg);
  overflow: hidden;
}

.tag-embed-card__header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.8rem;
}

.tag-embed-card__title {
  font-size: 1.05rem;
  line-height: 1.2;
}

.tag-embed-card__title a {
  display: inline-flex;
  align-items: baseline;
  color: var(--tx);
  text-decoration: none;
}

.tag-embed-card__title a:hover {
  color: var(--tx);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

.tag-embed-card__list {
  list-style: none;
  margin: 0 -1.1rem;
  padding: 0;
}

.tag-embed-card__item {
  margin-bottom: 0;
}

.tag-embed-card__item + .tag-embed-card__item {
  border-top: 1px solid var(--bg-3);
}

.tag-embed-card__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem 0;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.tag-embed-card__post-title {
  color: var(--tx);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tag-embed-card__post-date {
  flex: 0 0 auto;
  color: var(--tx-2);
  font-size: 0.82rem;
  white-space: nowrap;
}

.tag-embed-card__link:hover {
  background: var(--bg-2);
}

@media (max-width: 640px) {
  .tag-embed-card__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .tag-embed-card__post-date {
    white-space: normal;
  }
}
