/* Nurse Your Mind - newsletter issue cards. Builds on the theme's .card styles. */
.nymkn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  margin-top: 36px;
}
.nymkn-grid .card { flex: none; height: 100%; min-width: 0; }
.nymkn-grid .card .card-img { aspect-ratio: 16 / 10; background: var(--bg-section, #EBEEF2); }
.nymkn-grid .card h3 { font-size: 1.25rem; line-height: 1.3; }
.nymkn-grid .card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nymkn-grid .card .more { color: var(--accent-dark, #3A4A60); }
.nymkn-grid .card:hover .more,
.nymkn-grid .card:focus-visible .more { color: var(--text, #1B2433); }
.nymkn-grid .card:focus-visible { outline: 3px solid var(--accent, #8C9AAB); outline-offset: 3px; }

/* Branded fallback when Kit has no cover image */
.nymkn-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-light, #DDE3EB), var(--bg-frame, #DCE1E7));
  color: var(--accent-dark, #3A4A60);
}
.nymkn-fallback__name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nymkn-more { display: flex; justify-content: center; margin-top: 36px; }

.nymkn-empty {
  margin-top: 28px;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--bg-frame, #DCE1E7);
  border-radius: var(--radius, 18px);
  background: var(--bg, #F5F6F8);
}
.nymkn-empty p { margin: 0 0 16px; color: var(--text-soft, #5A6472); }

.nymkn-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.nymkn-pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-frame, #DCE1E7);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text, #1B2433);
  background: var(--bg, #F5F6F8);
}
.nymkn-pagination a.page-numbers:hover { background: var(--text, #1B2433); color: var(--bg, #F5F6F8); }
.nymkn-pagination .current { background: var(--accent, #8C9AAB); border-color: var(--accent, #8C9AAB); }
.nymkn-pagination .dots { border: 0; background: none; }

@media (max-width: 960px) {
  .nymkn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 600px) {
  .nymkn-grid { grid-template-columns: 1fr; gap: 20px; }
}
