/* Connexions — Connect Groups page (connect-groups.html; cards filled by cms-render.php, filters by assets/groups.js).
   Uses the site's colour variables, so a Design theme applies. */
.cxg-filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 28px; }
.cxg-filters[hidden] { display: none; }
.cxg-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cxg-filter__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.cxg-chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--soft); color: var(--ink); font: 700 15px/1 var(--text); cursor: pointer; }
.cxg-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cxg-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cxg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cxg-card { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--soft); color: var(--ink); }
.cxg-card[hidden] { display: none; }
.cxg-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--ink); }
.cxg-card__img--none { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; }
.cxg-card__img--none span { font: 900 96px/1 var(--display); font-stretch: 70%; text-transform: uppercase; }
.cxg-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; flex: 1; }
.cxg-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cxg-tag { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cxg-tag--full { background: var(--ink); color: #fff; }
.cxg-card__name { margin: 0; font: 900 32px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cxg-card__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.cxg-card__facts li { display: flex; gap: 8px; align-items: flex-start; }
.cxg-card__facts svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cxg-card__about { margin: 0; color: var(--body); line-height: 1.55; }
.cxg-card__note { margin: auto 0 0; padding-top: 6px; font-size: 14px; color: var(--muted); }
.cxg-card__btn { align-self: flex-start; margin-top: auto; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
.cxg-card__btn:hover { color: #fff; filter: brightness(1.08); }
.cxg-empty, .cxg-none { grid-column: 1 / -1; padding: 48px 28px; border-radius: 28px; background: var(--soft); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cxg-empty strong, .cxg-none strong { font: 900 34px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cxg-empty p, .cxg-none p { margin: 0; color: var(--body); }
.cxg-empty .cxg-card__btn { align-self: center; margin-top: 8px; }
.cxg-none[hidden] { display: none; }
@media (max-width: 600px) {
  .cxg-list { grid-template-columns: 1fr; }
  .cxg-filters { flex-direction: column; }
}
