/* Clans discover grid and cards, the public clan page and its pending-war rows. */
/* Cap at 5 columns; the min keeps it responsive below. */
.cl-disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}
@media (min-width: 1024px) {
  .cl-disc-grid { grid-template-columns: repeat(auto-fill, minmax(max(268px, (100% - 4 * 14px) / 5), 1fr)); }
}
.cl-disc-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 14px;
  transition: border-color 0.15s, transform 0.15s;
}
.cl-disc-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cl-disc-card.is-mine { border-color: var(--bronze); }
.cl-disc-head { display: flex; align-items: flex-start; gap: 10px; }
.cl-disc-id { flex: 1; min-width: 0; }
.cl-disc-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.cl-disc-sub { font-size: 0.74rem; color: var(--ink-3); }
.cl-vis {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 100px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--bg-2);
}
.cl-vis-open   { color: var(--laurel-2); border-color: color-mix(in srgb, var(--laurel-2) 40%, transparent); }
.cl-vis-invite { color: var(--ink-3); }
.cl-disc-motto { font-size: 0.82rem; color: var(--ink-2); margin: 0; min-height: 2.4em; }
/* Equal thirds across the card rather than three items bunched left: the row is the card's
   full width, and each figure sits centred in its own share of it. */
.cl-disc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.cl-disc-stats b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--bronze-2); }
.cl-disc-stats span { font-size: 0.72rem; color: var(--ink-3); }
.cl-disc-actions { display: flex; gap: 8px; margin-top: 2px; }
.cl-disc-actions .btn { flex: 1; justify-content: center; }

.cl-more { display: flex; justify-content: center; padding: 14px 0 4px; }
.cl-more .btn { min-width: 16em; justify-content: center; }

.cl-player-link {
  all: unset;
  cursor: pointer;
  /* Bronze marks it as a link; no underline — as a stretched flex item its border ran the
     full row width and read as a rule joining the name to the points. */
  color: var(--bronze-2);
  font: inherit; font-weight: 600;
}
.cl-player-link:hover { color: var(--gold); }
.cl-player-link:focus-visible { outline: 2px solid var(--bronze-2); outline-offset: 2px; }

.cl-disc-tools .nl-sel { width: auto; flex: 0 0 auto; }

.cl-public { display: flex; flex-direction: column; gap: 16px; }
.cl-public-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cl-war-pending-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--divider); flex-wrap: wrap;
}
.cl-war-pending-row:last-child { border-bottom: 0; }
.cl-war-answer { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
