/* ═══════════════════════════════════════════════════════
   LISTING-PAGE.CSS — Index pages for Publications, UTI
   Knowledge Center, and News & Events.

   Reuses tokens / nav / components / layout from the homepage.
   Reuses .ip-hero from info-page.css for the hero section.
   Page-specific classes prefixed `lp-`.
   ═══════════════════════════════════════════════════════ */


/* ── FILTER / CATEGORY STRIP ─────────────────────────────
   Horizontal pill row above the card grid. Shows when a
   listing has multiple sub-categories worth surfacing. */
.lp-filter {
  padding: var(--gap-xl) 0 var(--gap-md);
  background: #ffffff;
}

.lp-filter__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lp-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(57, 55, 143, 0.18);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-purple);
  text-decoration: none;
  transition: all 0.18s ease;
}

.lp-filter__pill:hover {
  background: var(--color-purple);
  color: #ffffff;
  border-color: var(--color-purple);
}

.lp-filter__pill--active {
  background: var(--color-coral);
  color: #ffffff;
  border-color: var(--color-coral);
}


/* ── CARD GRID ───────────────────────────────────────────
   Responsive grid of article/publication cards. */
.lp-grid-section {
  padding: var(--gap-2xl) 0 var(--gap-3xl);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(143, 202, 235, 0.08) 0%, transparent 70%),
    #ffffff;
}

.lp-grid-section__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-purple);
  margin: 0 0 var(--gap-lg);
  max-width: 920px;
}

.lp-grid-section__heading em {
  font-style: italic;
  color: var(--color-coral-dark);
}

.lp-grid-section + .lp-grid-section {
  padding-top: 0;
}

.lp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

@media (min-width: 720px)  { .lp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .lp-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Variant for single-column long-form lists (e.g. "In the News") */
.lp-grid--single {
  grid-template-columns: 1fr !important;
  max-width: 920px;
  margin-inline: auto;
}


/* ── CARD ─────────────────────────────────────────────── */
.lp-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(57, 55, 143, 0.10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(57, 55, 143, 0.18);
  border-color: rgba(57, 55, 143, 0.20);
}

.lp-card__body {
  padding: var(--gap-lg) var(--gap-lg) var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.lp-card__overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
}

.lp-card__overline--muted { color: var(--color-purple-mid); }

.lp-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-purple);
  margin: 0;
}

.lp-card__title a {
  color: inherit;
  text-decoration: none;
}

.lp-card__title a:hover {
  color: var(--color-coral-dark);
}

.lp-card__title em {
  font-style: italic;
  color: var(--color-coral-dark);
}

.lp-card__meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--on-surface-variant);
  font-style: italic;
  line-height: 1.45;
}

.lp-card__excerpt {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lp-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-coral-dark);
  text-decoration: none;
}

.lp-card__cta:hover { color: var(--color-coral); }

.lp-card__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lp-card:hover .lp-card__cta svg {
  transform: translateX(3px);
}


/* ── PUBLICATION CARD VARIANT ────────────────────────────
   Shows a leading numeric ordinal in the corner. */
.lp-card--pub {
  position: relative;
  padding-top: 4px;
}

.lp-card__ordinal {
  position: absolute;
  top: var(--gap-md);
  right: var(--gap-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(57, 55, 143, 0.06), rgba(232, 32, 101, 0.06));
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-purple);
}


/* ── KC ICON GRID — microorganisms & antibiotics ─────────
   Square thumbnail tiles with title. Higher density. */
.lp-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

@media (min-width: 540px)  { .lp-icon-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .lp-icon-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .lp-icon-grid { grid-template-columns: repeat(5, 1fr); } }

.lp-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--gap-md) var(--gap-sm);
  background: #ffffff;
  border: 1px solid rgba(57, 55, 143, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-icon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px rgba(57, 55, 143, 0.14);
  border-color: rgba(232, 32, 101, 0.30);
}

.lp-icon-card__thumb {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(57, 55, 143, 0.05), rgba(232, 32, 101, 0.05));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-purple);
  letter-spacing: -0.01em;
}

.lp-icon-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.lp-icon-card__title {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-purple);
  margin: 0;
  word-break: break-word;
}

.lp-icon-card__title em {
  font-style: italic;
  color: var(--color-purple);
}


/* ── NEWS DATELINE ROWS ──────────────────────────────────
   For "In the News" + Events: a date column on the left. */
.lp-news-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.lp-news-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: var(--gap-md) var(--gap-lg);
  background: #ffffff;
  border: 1px solid rgba(57, 55, 143, 0.10);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-news-row:hover {
  border-color: rgba(232, 32, 101, 0.25);
  box-shadow: 0 8px 24px -8px rgba(57, 55, 143, 0.12);
}

@media (min-width: 720px) {
  .lp-news-row { grid-template-columns: 180px 1fr; gap: var(--gap-md); align-items: baseline; }
}

.lp-news-row__date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
}

.lp-news-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--color-purple);
  margin: 0;
}

.lp-news-row__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.lp-news-row__title a:hover {
  color: var(--color-coral-dark);
  background-size: 100% 1px;
}


/* ── EVENTS BLOCK ────────────────────────────────────────
   Same dateline pattern but with a venue line below. */
.lp-events {
  padding: var(--gap-2xl) 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(143, 202, 235, 0.08) 100%);
}

.lp-events__group {
  margin-bottom: var(--gap-2xl);
}

.lp-events__group:last-child { margin-bottom: 0; }

.lp-events__group-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
  margin: 0 0 var(--gap-md);
  text-align: center;
}

.lp-event {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: var(--gap-md) var(--gap-lg);
  border-bottom: 1px solid rgba(57, 55, 143, 0.10);
}

.lp-event:first-child { border-top: 1px solid rgba(57, 55, 143, 0.10); }

@media (min-width: 720px) {
  .lp-event { grid-template-columns: 200px 1fr 200px; align-items: baseline; gap: var(--gap-md); }
}

.lp-event__date {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-purple-mid);
}

.lp-event__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-purple);
}

.lp-event__place {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--on-surface-variant);
}


/* ── EXTERNAL-LINK ICON HELPER ───────────────────────────
   Inline SVG arrow for "view on journal site" CTA. */
.lp-card__cta--external::after {
  content: "↗";
  font-size: 14px;
  margin-left: 2px;
}


/* ── HERO ADJUSTMENTS for listings ──────────────────────
   Drop the visual side; let copy fill width. Tighter. */
.ip-hero--listing {
  padding-bottom: var(--gap-xl);
}

.ip-hero--listing .ip-hero__inner {
  grid-template-columns: 1fr;
}
