/* category.css — same template for all 8 category landing pages.
 * Path A decision (per site-plan §7b): one template, accent colour varies per category.
 */

.cat-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.cat-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cat-hero-bar {
  width: 4px;
  align-self: stretch;
  flex-shrink: 0;
}
.cat-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.cat-hero p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 680px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-pills a {
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.filter-pills a.active, .filter-pills a:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.article-card {
  border-left: 3px solid var(--rule);
  padding-left: 18px;
}
.article-card.cat-sc { border-left-color: var(--cat-sc); }
.article-card.cat-hc { border-left-color: var(--cat-hc); }
.article-card.cat-trib { border-left-color: var(--cat-trib); }
.article-card.cat-everyday { border-left-color: var(--cat-everyday); }
.article-card.cat-student { border-left-color: var(--cat-student); }
.article-card.cat-republic { border-left-color: var(--cat-republic); }
.article-card.cat-dissent { border-left-color: var(--cat-dissent); }
.article-card.cat-buzz { border-left-color: var(--cat-buzz); }

.article-card .cat-badge {
  margin-bottom: 10px;
}

.article-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.article-card h2 a:hover { color: var(--brand); }

.article-card .excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.article-card .meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.pagination .current {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.about-section {
  margin: 64px 0 48px;
  padding: 32px;
  background: var(--off-paper);
  border-radius: 8px;
}
.about-section h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.about-section p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 680px;
}
.about-section .writers {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.about-section .writers img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--paper);
}
.about-section .links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cat-hero h1 { font-size: 30px; }
  .cat-hero p { font-size: 16px; }
}

@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
}
