
/* ── Stories archive ──────────────────────────────────────────────────── */

/* Category filter bar */
.tv-stories-filter {
  background: #fff;
  border-bottom: 1px solid var(--tv-border);
  position: sticky;
  top: var(--tv-nav-height, 68px);
  z-index: 40;
}

.tv-sf-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.tv-sf-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tv-text-tertiary);
  flex-shrink: 0;
}

.tv-sf-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tv-sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.9rem;
  border-radius: 9999px;
  border: 1.5px solid var(--tv-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tv-text-secondary);
  text-decoration: none;
  transition: all 0.16s;
}

.tv-sf-pill:hover {
  background: var(--tv-green-50);
  border-color: var(--tv-green-200);
  color: var(--tv-green-700);
}

.tv-sf-pill.is-active {
  background: var(--tv-green-800);
  border-color: var(--tv-green-800);
  color: #fff;
}

.tv-sf-count {
  font-size: 0.68rem;
  opacity: 0.6;
}

/* Archive stories grid */
.tv-stories-archive-section {
  background: var(--tv-cream);
}

.tv-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Empty state */
.tv-empty-state {
  text-align: center;
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tv-empty-state h3 {
  font-family: var(--tv-font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--tv-text-primary);
}

.tv-empty-state p {
  font-size: 0.9rem;
  color: var(--tv-text-tertiary);
  max-width: 380px;
  line-height: 1.65;
}

/* Pagination */
.tv-pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.tv-pagination ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.tv-pagination ul li a,
.tv-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1.5px solid var(--tv-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tv-text-secondary);
  text-decoration: none;
  transition: all 0.18s;
}

.tv-pagination ul li a:hover {
  border-color: var(--tv-green-400);
  color: var(--tv-green-700);
  background: var(--tv-green-50);
}

.tv-pagination ul li span.current {
  background: var(--tv-green-800);
  border-color: var(--tv-green-800);
  color: #fff;
}

/* Stories archive CTA strip */
.tv-stories-cta { padding: 5rem 0; }

.tv-stories-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.tv-stories-cta-inner h2 {
  font-family: var(--tv-font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #fff;
  margin: 0.75rem 0 0.65rem;
}

.tv-stories-cta-inner p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
  max-width: 500px;
  line-height: 1.72;
}

.tv-stories-cta-actions {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .tv-stories-grid        { grid-template-columns: 1fr; }
  .tv-stories-cta-inner   { flex-direction: column; gap: 2rem; text-align: center; }
  .tv-stories-cta-actions { justify-content: center; }
}

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