/* Pulse TCM Insights — blog / insights cards */

.pulsetcm-insights {
  --pi-bg: #fff;
  --pi-surface: #fafaf9;
  --pi-border: rgba(20, 20, 20, 0.08);
  --pi-border-strong: rgba(20, 20, 20, 0.12);
  --pi-text: #141414;
  --pi-text-muted: #5a5a5a;
  --pi-accent: #7c6a2d;
  --pi-accent-hover: #5c4f22;
  --pi-highlight: #c4a035;
  --pi-shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 4px 20px rgba(20, 20, 20, 0.06);
  --pi-shadow-hover: 0 4px 12px rgba(20, 20, 20, 0.08), 0 16px 40px rgba(20, 20, 20, 0.1);
  --pi-radius: 10px;
  --pi-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pulsetcm-insights *,
.pulsetcm-insights *::before,
.pulsetcm-insights *::after {
  box-sizing: border-box;
}

.pulsetcm-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.5vw, 1.35rem);
  margin: 0 0 1.35rem;
  align-items: stretch;
}

@media screen and (max-width: 899px) {
  .pulsetcm-insights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 559px) {
  .pulsetcm-insights__grid {
    grid-template-columns: 1fr;
  }
}

.pulsetcm-insights__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-family: var(--pi-font);
  color: var(--pi-text);
  background: var(--pi-bg);
  border: 1px solid var(--pi-border);
  border-radius: var(--pi-radius);
  box-shadow: var(--pi-shadow);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.pulsetcm-insights__card:hover,
.pulsetcm-insights__card:focus-within {
  border-color: var(--pi-border-strong);
  box-shadow: var(--pi-shadow-hover);
  transform: translateY(-2px);
}

.pulsetcm-insights__media {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--pi-surface);
}

.pulsetcm-insights__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pulsetcm-insights__card:hover .pulsetcm-insights__image,
.pulsetcm-insights__card:focus-within .pulsetcm-insights__image {
  transform: scale(1.06);
}

.pulsetcm-insights__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 0.9rem;
  gap: 0;
  min-height: 0;
}

.pulsetcm-insights__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
}

.pulsetcm-insights__eyebrow-link {
  color: var(--pi-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pulsetcm-insights__eyebrow-link:hover,
.pulsetcm-insights__eyebrow-link:focus {
  color: var(--pi-accent-hover);
  border-bottom-color: currentColor;
}

.pulsetcm-insights__title {
  margin: 0 0 0.3rem;
  font-size: clamp(0.8125rem, 0.35vw + 0.72rem, 0.9375rem);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pulsetcm-insights__title a {
  color: var(--pi-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pulsetcm-insights__title a:hover,
.pulsetcm-insights__title a:focus {
  color: var(--pi-accent-hover);
}

.pulsetcm-insights__excerpt {
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pi-text-muted);
}

.pulsetcm-insights__excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pulsetcm-insights__actions {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.65rem;
  margin-bottom: 0;
  border-top: 1px solid var(--pi-border);
}

.pulsetcm-insights__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--pi-accent);
  transition: color 0.2s ease, gap 0.25s ease;
}

.pulsetcm-insights__readmore:hover,
.pulsetcm-insights__readmore:focus {
  color: var(--pi-accent-hover);
  gap: 0.55em;
}

.pulsetcm-insights__readmore-icon {
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.25s ease;
}

.pulsetcm-insights__readmore:hover .pulsetcm-insights__readmore-icon,
.pulsetcm-insights__readmore:focus .pulsetcm-insights__readmore-icon {
  transform: translateX(3px);
}

.pulsetcm-insights__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--pi-text-muted);
  font-family: var(--pi-font);
}

/* Pagination */
.pulsetcm-insights__pagination {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  font-family: var(--pi-font);
}

.pulsetcm-insights__pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.pulsetcm-insights__pagination .page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pulsetcm-insights__pagination a.page-numbers,
.pulsetcm-insights__pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pi-text-muted);
  background: var(--pi-bg);
  border: 1px solid var(--pi-border);
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pulsetcm-insights__pagination a.page-numbers:hover,
.pulsetcm-insights__pagination a.page-numbers:focus {
  color: var(--pi-text);
  border-color: var(--pi-border-strong);
  box-shadow: var(--pi-shadow);
}

.pulsetcm-insights__pagination ul.page-numbers li span.page-numbers.current,
.pulsetcm-insights__pagination span.page-numbers.current {
  color: var(--pi-bg) !important;
  background: var(--pi-text) !important;
  border-color: var(--pi-text) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.pulsetcm-insights__pagination span.page-numbers.dots {
  min-width: auto;
  border: none;
  background: transparent;
  padding: 0 0.25rem;
}
