body {
  background: linear-gradient(180deg, #d3e8ec 0%, #edf7f9 100%);
  color: #18343b;
}
.container {
  max-width: 1180px;
}
.page-hero,
.page-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 52, 59, 0.08);
  box-shadow: 0 18px 45px rgba(24, 52, 59, 0.08);
  backdrop-filter: blur(8px);
}
.page-hero {
  border-radius: 2rem;
}
.page-card {
  border-radius: 1.5rem;
}
.page-kicker {
  color: #5b7680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

/* --- filter pills --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(24, 52, 59, 0.12);
  color: #24424a;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.pill:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #0f6475;
}
.pill-active {
  background: #0f6475;
  border-color: #0f6475;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 100, 117, 0.25);
}
.pill-active:hover {
  background: #0d5665;
  border-color: #0d5665;
  color: #fff;
}
.pill .badge {
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-active .badge.badge-light {
  background: rgba(255,255,255,0.85);
  color: #0f6475;
}

/* --- selection chips in banner --- */
.selection-bar {
  font-size: 0.9rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.chip-interest {
  background: rgba(15, 100, 117, 0.15);
  color: #0a4a56;
  border: 1px solid rgba(15, 100, 117, 0.25);
}
.chip-interest:hover {
  background: rgba(15, 100, 117, 0.25);
}
.chip-user {
  background: rgba(90, 70, 140, 0.12);
  color: #4a3570;
  border: 1px solid rgba(90, 70, 140, 0.2);
}
.chip-user:hover {
  background: rgba(90, 70, 140, 0.22);
}
.chip-clear {
  background: transparent;
  color: #5b7680;
  border: 1px solid rgba(24, 52, 59, 0.15);
}
.chip-clear:hover {
  background: rgba(24, 52, 59, 0.06);
}
.chip-remove {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.6;
}
.chip:hover .chip-remove {
  opacity: 1;
}

/* --- tags in thread cards --- */
.tag-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15, 100, 117, 0.08);
  color: #0f6475;
  font-weight: 600;
}
.tag-pill.interest-match {
  background: rgba(15, 100, 117, 0.18);
  color: #0a4a56;
  outline: 1px solid rgba(15, 100, 117, 0.3);
}
.tag-pill.user-match {
  background: rgba(90, 70, 140, 0.12);
  color: #4a3570;
  outline: 1px solid rgba(90, 70, 140, 0.2);
}

/* --- thread cards --- */
.topic-list {
  padding-left: 0;
  list-style: none;
}
.thread-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(24, 52, 59, 0.06);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 16px rgba(24, 52, 59, 0.04);
}
.thread-card + .thread-card {
  margin-top: 0.6rem;
}
.thread-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #18343b;
  margin-bottom: 0.2rem;
}
.thread-title a {
  color: inherit;
  text-decoration: none;
}
.thread-title a:hover {
  text-decoration: underline;
}
.thread-meta {
  line-height: 1.6;
}
/* --- user chain dots in thread cards --- */
.user-dot {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(24, 52, 59, 0.06);
  color: #24424a;
  font-weight: 600;
}
.user-dot.user-match {
  background: rgba(90, 70, 140, 0.12);
  color: #4a3570;
  outline: 1px solid rgba(90, 70, 140, 0.2);
}
.user-dot.interest-match {
  background: rgba(15, 100, 117, 0.18);
  color: #0a4a56;
  outline: 1px solid rgba(15, 100, 117, 0.3);
}

@media (max-width: 768px) {
  .page-hero {
    border-radius: 1.25rem;
  }
}