/* News: archives (card grid) and single posts, in the home page skin. */
.tsd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 14px; color: var(--tsd-muted); }
.tsd-crumbs a { color: var(--tsd-g700); text-decoration: none; }
.tsd-crumbs a:hover { text-decoration: underline; }
.tsd-crumbs .ic { width: 14px; height: 14px; color: var(--tsd-muted); }

.tsd-news { padding-bottom: 72px; }
.tsd-news__head { background: var(--tsd-g50); border-bottom: 1px solid var(--tsd-line); padding: 40px 0 36px; margin-bottom: 40px; }
.tsd-news__title { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 800; color: var(--tsd-g800); text-transform: none; letter-spacing: 0; }
.tsd-news__desc { max-width: 760px; margin-top: 10px; color: var(--tsd-muted); font-size: 16px; }
.tsd-news__desc p:last-child { margin-bottom: 0; }
.tsd-news__empty { color: var(--tsd-muted); }

.tsd-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tsd-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tsd-line); border-radius: var(--tsd-r-lg); overflow: hidden; box-shadow: var(--tsd-shadow); transition: transform .15s, box-shadow .15s; }
.tsd-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 61, 31, .12); }
.tsd-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; }
.tsd-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tsd-card__noimg { width: 48px; height: 48px; color: var(--tsd-g600); opacity: .5; }
.tsd-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 22px 22px; }
.tsd-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--tsd-muted); }
.tsd-card__meta .ic { width: 16px; height: 16px; color: var(--tsd-g600); }
.tsd-card__title { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; text-transform: none; letter-spacing: 0; }
.tsd-card__title a { color: var(--tsd-g800); text-decoration: none; }
.tsd-card__title a:hover { color: var(--tsd-g700); text-decoration: underline; }
.tsd-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tsd-muted); }
.tsd-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; color: var(--tsd-g700); text-decoration: none; }
.tsd-card__more .ic { width: 18px; height: 18px; }
.tsd-card__more:hover { color: var(--tsd-g800); }

.tsd-pager { margin-top: 44px; }
.tsd-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tsd-pager li { margin: 0; }
.tsd-pager li > .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tsd-line); background: #fff; color: var(--tsd-g800); font-weight: 700; text-decoration: none; }
.tsd-pager li > a.page-numbers:hover { border-color: var(--tsd-g600); }
.tsd-pager li > .page-numbers.current { background: var(--tsd-g700); border-color: var(--tsd-g700); color: #fff; }
.tsd-pager li > .page-numbers.dots { border: 0; background: none; min-width: 24px; }

.tsd-post { padding: 36px 0 72px; }
.tsd-post__article { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.tsd-post__title { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 800; color: var(--tsd-g800); text-transform: none; letter-spacing: 0; }
.tsd-post__img { margin: 24px 0 0; border-radius: var(--tsd-r-lg); overflow: hidden; }
.tsd-post__img img { display: block; width: 100%; height: auto; }
.tsd-post__body { margin-top: 28px; font-size: 17px; line-height: 1.75; color: var(--tsd-ink); }
.tsd-post__body h2, .tsd-post__body h3 { color: var(--tsd-g800); text-transform: none; letter-spacing: 0; }
.tsd-post__body img { border-radius: var(--tsd-r-md); height: auto; }
.tsd-post__foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--tsd-line); }
.tsd-post__related { margin-top: 56px; padding: 48px 0; background: var(--tsd-g50); }
.tsd-post__related h2 { margin: 0 0 24px; font-size: 26px; font-weight: 800; color: var(--tsd-g800); text-transform: none; letter-spacing: 0; }
.tsd-post__comments { max-width: 820px; margin: 40px auto 0; padding: 0 24px; }

@media (max-width: 1023px) {
  .tsd-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px) {
  .tsd-news__head { padding: 28px 0 24px; margin-bottom: 24px; }
  .tsd-news__grid { grid-template-columns: 1fr; }
  .tsd-post { padding-top: 24px; }
  .tsd-post__article, .tsd-post__comments { padding: 0 16px; }
  .tsd-post__body { font-size: 16px; }
}
