/* Talent Watch — public report index. Card grid of published reports, styled to
   match the Pro News index (projects/docs/pro/index.html): a fixed 6/5 thumbnail
   plus a 3-line excerpt clamp so every card is the same shape and nothing overflows.
   (The Pro News page does this with inline styles; here it lives in this externalized
   stylesheet per the repo's no-inline-CSS rule.) */

.twp-list-header {
  margin-bottom: var(--spacing-300, 2rem);
}

.twp-list-header__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.twp-list-header h2 {
  margin: 0 0 var(--spacing-050, 0.5rem);
  font-family: var(--typography-font-family-serif-regular, Georgia, serif);
  font-style: italic;
  font-size: var(--typography-font-size-200, 2rem);
}

.twp-list-header__count {
  font-family: var(--typography-font-family-sans, system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-functional-gray-600, #999);
  white-space: nowrap;
}

.twp-list-header__sub {
  margin: 0;
  max-width: 48rem;
  color: var(--color-functional-gray-600, #4b5563);
  font-family: var(--typography-font-family-sans, system-ui, sans-serif);
  font-size: var(--typography-font-size-100, 1rem);
}

.twp-empty {
  color: var(--color-functional-gray-600, #4b5563);
}

/* 3-up grid, reflowing to 2 then 1 — mirrors the Pro News index gaps/breakpoints. */
.twp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 44px;
}

@media (max-width: 760px) {
  .twp-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 32px;
  }
}

@media (max-width: 520px) {
  .twp-grid {
    grid-template-columns: 1fr;
  }
}

/* Borderless editorial tile with a thin top rule (like the Pro News tiles). */
.twp-card {
  display: flex;
}

/* Force underline off on the anchor (and its states) so the global site stylesheet's
   `a { text-decoration: underline }` doesn't propagate a line down to the card text. */
.twp-card a.twp-card__link,
.twp-card a.twp-card__link:hover,
.twp-card a.twp-card__link:focus {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid var(--color-functional-gray-200, #e5e5e5);
  padding-top: 14px;
  text-decoration: none !important;
  color: inherit;
}

/* Fixed 6/5 thumbnail box — the image is cropped to fill it and never resizes the card. */
.twp-card__media {
  aspect-ratio: 6 / 5;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--color-functional-gray-100, #f3f4f6);
}

.twp-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.2s ease;
}

.twp-card__link:hover .twp-card__img {
  opacity: 0.85;
}

.twp-card__img--empty {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-functional-gray-100, #f3f4f6);
}

.twp-card__body {
  display: flex;
  flex-direction: column;
}

.twp-card__title {
  margin: 0 0 6px;
  font-family: var(--typography-font-family-sans, system-ui, sans-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.26;
  letter-spacing: -0.01em;
  color: var(--color-functional-gray-black, #111);
}

.twp-card__dates {
  margin: 0 0 8px;
  font-family: var(--typography-font-family-sans, system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-functional-gray-600, #999);
}

/* Clamp the excerpt to 3 lines so a long excerpt can't overflow or unbalance the grid. */
.twp-card__excerpt {
  margin: 0;
  font-family: var(--typography-font-family-sans, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-functional-gray-700, #333);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
