/* TRP Archive Format — mirrors TRP Custom Search result list styling */

.trp-archive-canvas {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.trp-archive-header {
  margin-bottom: 1.5rem;
}

.trp-archive-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.trp-archive-desc {
  color: #555;
  margin: .25rem 0 0;
}

/* -------------------------------------------------------
   Result list — identical to .trp-results in trp-search.css
   Colors are set explicitly so they don't depend on theme
   cascade (the shortcode renders inside .entry-content;
   the archive template does not).
   ------------------------------------------------------- */
.trp-results {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
}

.trp-result {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.trp-result:last-child {
  border-bottom: none;
}

/* Explicit link color matches TRP CS brand (#006699) */
.trp-result-title {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: #006699;
  display: inline-block;
}

.trp-result-title:hover,
.trp-result-title:focus {
  color: #005580;
  text-decoration: underline;
}

.trp-result-excerpt {
  margin: .25rem 0;
  line-height: 1.45;
  color: #111827;
}

.trp-result-meta {
  color: #666;
  font-size: .9rem;
}

/* Pagination */
.trp-archive-pagination {
  margin-top: 2rem;
}

.trp-archive-pagination .nav-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.trp-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  font-size: .95rem;
  text-decoration: none;
  color: #006699;
  background: #fff;
  transition: background .15s ease, color .15s ease;
}

.trp-archive-pagination .page-numbers:hover {
  background: #006699;
  color: #fff;
  border-color: #006699;
}

.trp-archive-pagination .page-numbers.current {
  background: #006699;
  color: #fff;
  border-color: #006699;
  font-weight: 600;
}

.trp-archive-empty {
  color: #555;
  margin-top: 1rem;
}
