/* ---------- ISP Library grid (card size matches Training Library cards) ---------- */
.isp{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.isp-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.isp-card{
  position: relative;
  width: min(70vw, 300px);
  aspect-ratio: 3 / 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.isp-card:hover{
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 30px -14px rgba(226,52,44,0.45);
}

.isp-card.is-coming-soon{
  cursor: not-allowed;
}

.isp-logo{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* Recolors transparent logos to match the off-white text color used
   elsewhere on the site (var(--text)) instead of their brand colors. */
.isp-logo-mono{
  filter: brightness(0) invert(94%) drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

html[data-theme="light"] .isp-logo-mono{
  filter: none;
}
