/**
 * [latest pic_block] 커뮤니티형 최신글 카드
 * - 역할: an-lt-card 블록 스타일 · 높이 정규화
 * - 작성/수정일: 2026-08-09
 * - 수정일: 2026-08-20 — 목록 공용 정사각 썸네일
 */

.an-lt-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 16px 18px 18px;
  background: var(--white-color, #fff);
  border: 1px solid var(--line-color, #e5e5e5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-width: 0;
}

.an-lt-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 40px;
}

.an-lt-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  opacity: 1;
}

.an-lt-card__brand:hover,
.an-lt-card__brand:focus,
.an-lt-card__brand:focus-visible {
  opacity: 1;
  color: inherit;
  text-decoration: none;
}

.an-lt-card__avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--line-color, #f0f0f0);
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 700;
  line-height: 1;
}

.an-lt-card__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.an-lt-card__board {
  font-size: var(--fs-body, 14px);
  font-weight: 700;
  color: var(--title-color, #171717);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-lt-card__time {
  display: block;
  min-height: 1.3em;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  line-height: 1.3;
}

.an-lt-card__more {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line-color, #e5e5e5);
  border-radius: 999px;
  background: var(--white-color, #fff);
  color: var(--title-color, #171717);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
  line-height: 1.2;
}

.an-lt-card__more:hover,
.an-lt-card__more:focus,
.an-lt-card__more:focus-visible {
  opacity: 1;
  color: var(--title-color, #171717);
  text-decoration: none;
  border-color: var(--divider-color, #cfcfcf);
  background: var(--section-bg-color, var(--section-bg-color, #f9f9f9));
}

.an-lt-card__feature {
  flex: 0 0 auto;
}

.an-lt-card__feature-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 72px;
  color: inherit;
  text-decoration: none;
  opacity: 1;
}

.an-lt-card__feature--empty .an-lt-card__feature-link {
  pointer-events: none;
}

.an-lt-card__feature-link:hover,
.an-lt-card__feature-link:focus,
.an-lt-card__feature-link:focus-visible {
  opacity: 1;
  color: inherit;
  text-decoration: none;
}

.an-lt-card__feature-link:hover .an-lt-card__feature-title {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.an-lt-card__thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--chip-color, #f3f3f3);
}

.an-lt-card__thumb--empty {
  background: linear-gradient(
    135deg,
    var(--chip-color, #f3f3f3) 0%,
    var(--chip-color, #ebebeb) 100%
  );
}

.an-lt-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-lt-card__feature-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.an-lt-card__feature-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 2);
  color: var(--title-color, #171717);
}

.an-lt-card__feature-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 2);
  font-size: var(--fs-label, 14px);
  color: var(--muted-color, #7c7c7c);
  line-height: 1.45;
}

.an-lt-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-color, #e5e5e5);
  flex: 1 1 auto;
}

.an-lt-card__list li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  min-height: 41px;
}

.an-lt-card__list li:last-child {
  border-bottom: 0;
}

.an-lt-card__list li.is-empty span {
  display: block;
  height: 41px;
}

/* [커뮤니티 허브] latest 하단 제목 리스트 — 작성/수정일: 2026-08-20 */
.an-lt-card__list .an-list-title {
  font-size: var(--fs-body-s);
  font-weight: 500;
}

.an-lt-card__list a {
  display: block;
  padding: 10px 0;
  color: var(--title-color, #171717);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
}

.an-lt-card__list a:hover,
.an-lt-card__list a:focus,
.an-lt-card__list a:focus-visible {
  opacity: 1;
  color: var(--title-color, #171717);
  text-decoration: underline;
  text-underline-offset: 2px;
}
