/* Scoped to .ccbx-domain-archive only — same reasoning as single-theory.css:
   body/html styling lives in assets/css/base.css instead. Re-declares the
   same --ccbx-* custom properties single-theory.css uses so the two pages
   match; scoped separately since a domain archive page never also renders a single
   theory in the same view. */

.ccbx-domain-archive {
  --ccbx-bg: #0c0f24;
  --ccbx-panel: #10142e;
  --ccbx-violet: #8b6bff;
  --ccbx-gold: #ffcf5c;
  --ccbx-teal: #4fe8d4;
  --ccbx-magenta: #ff5da2;
  --ccbx-text: #eef0ff;
  --ccbx-muted: #9491b8;

  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
}

.ccbx-domain-header {
  background: var(--ccbx-bg);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  color: var(--ccbx-text);
}
.ccbx-domain-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ccbx-teal);
  margin: 0 0 0.5rem 0;
}
.ccbx-domain-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0;
  background: linear-gradient(120deg, #eef0ff 20%, var(--ccbx-violet) 60%, var(--ccbx-gold) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ccbx-domain-desc { color: var(--ccbx-muted); margin: 0.75rem 0 0 0; max-width: 640px; }

.ccbx-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ccbx-domain-card {
  display: block;
  background: var(--ccbx-panel);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--ccbx-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.ccbx-domain-card:hover {
  border-color: rgba(139,107,255,0.5);
  transform: translateY(-2px);
}
.ccbx-domain-card-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem;
  margin: 0 0 0.5rem 0; color: var(--ccbx-text);
}
.ccbx-domain-card-excerpt {
  font-size: 0.9rem; color: var(--ccbx-muted); line-height: 1.55; margin: 0 0 1rem 0;
}
.ccbx-domain-card-meta { margin: 0; }

.ccbx-pill {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  background: rgba(139,107,255,0.18); border: 1px solid rgba(139,107,255,0.4);
  color: var(--ccbx-text); border-radius: 999px; padding: 0.2rem 0.65rem; margin-right: 0.4rem;
}
.ccbx-year { color: var(--ccbx-muted); font-size: 0.78rem; }

.ccbx-domain-empty { color: var(--ccbx-muted); }

.ccbx-domain-archive .pagination,
.ccbx-domain-archive .nav-links {
  display: flex; justify-content: space-between; margin-top: 2rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem;
}
.ccbx-domain-archive .pagination a,
.ccbx-domain-archive .nav-links a { color: var(--ccbx-gold); text-decoration: none; }

@media (max-width: 640px) {
  .ccbx-domain-header { padding: 1.75rem 1.25rem; }
  .ccbx-domain-grid { grid-template-columns: 1fr; }
}
