/*
 * /publishers index — grid of publisher cards.
 * Auto-loaded by Kirby when the publishers template renders.
 */

.publishers-intro {
  max-width: 50ch;
  margin: 1.5rem 0 3rem;
  color: #555;
}

.publishers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.publishers-card {
  margin: 0;
}

.publishers-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}

.publishers-card a:hover {
  opacity: .8;
}

.publishers-logo {
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
  padding: 1rem;
}

.publishers-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.publishers-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.publishers-tagline {
  font-size: .9rem;
  color: #555;
  margin: .25rem 0 0;
  line-height: 1.35;
}

.publishers-count {
  font-size: .8rem;
  color: #888;
  margin: .35rem 0 0;
}
