/* Print issue grid ([pc_issue_grid]) and issue page header. Loaded by pc-taxonomies.php. */

.pc-issues,
.pc-issue-header {
  --pc-ink: #1a2b44;
  --pc-muted: #666;
  --pc-rule: #ddd;
  font-family: Inter, system-ui, sans-serif;
}

/* Themes set fonts on h2, p and a directly, so every child inherits Inter from above. */
.pc-issues *,
.pc-issue-header * {
  font-family: inherit;
}

.pc-issues {
  margin-block: 2rem;
}

.pc-issues__year {
  border-bottom: 1px solid var(--pc-rule);
  padding-bottom: 0.5rem;
}

.pc-issues__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-issue__link {
  color: var(--pc-ink);
  display: block;
  text-decoration: none;
}

.pc-issue__cover,
.pc-issue-header__cover img {
  aspect-ratio: 8.5 / 11;
  border: 1px solid var(--pc-rule);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.pc-issue__name {
  display: block;
  font-weight: 500;
  margin-top: 0.5rem;
}

.pc-issue__link:hover .pc-issue__name,
.pc-issue__link:focus-visible .pc-issue__name {
  text-decoration: underline;
}

.pc-issue__meta {
  color: var(--pc-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.pc-issue__pdf {
  font-size: 0.875rem;
}

.pc-issue-header {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.pc-issue-header__cover {
  margin: 0;
  max-width: 14rem;
}
