/* Communities: the directory (ranked rows) and the mark and title on a community's page */
.cm-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--surface-3);
  box-shadow: 0 0 0 1px var(--edge); color: var(--accent, var(--link)); font: 700 var(--text-ui) var(--mono); letter-spacing: -.02em; }
.cm-mark--lg { width: 64px; height: 64px; border-radius: var(--r-card); font-size: var(--text-xl); }
.cm-title { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.cm-title .sv-name { margin: 0; }
.cm-inline { display: inline; margin-left: 8px; }

.cm-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cm-week b { display: block; font: 700 var(--text-xl) var(--mono); letter-spacing: -.02em; }
.cm-week span { color: var(--ink-2); font-size: var(--text-sm); }

.cm-games { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-games .pill[aria-current] { background: var(--brand); color: var(--white); }
.cm-games__switch { margin-left: auto; }

.cm-list { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-0); overflow: hidden; }
.cm-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 130px 150px 150px; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.cm-row--head { border-top: 0; padding-top: 10px; padding-bottom: 10px; color: var(--ink-3); font: 500 var(--text-xs) var(--mono); text-transform: lowercase; }
.cm-row--top .cm-rank b { color: var(--accent); }
.cm-rank { display: flex; align-items: baseline; gap: 8px; }
.cm-rank b { font: 700 var(--text-xl) var(--mono); letter-spacing: -.03em; }
.cm-rank .lb-move { font-size: var(--text-xs); }
.cm-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cm-who__text { display: grid; min-width: 0; }
.cm-who__name { font-weight: 600; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-who__name:hover { color: var(--link); }
.cm-who small { color: var(--ink-3); font-size: var(--text-xs); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-who__line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cm-num { display: grid; justify-items: end; text-align: right; }
.cm-num b { font: 700 var(--text-md) var(--mono); }
.cm-num small { color: var(--ink-3); font-size: var(--text-xs); }
.cm-num .lb-move { font-size: var(--text-xs); font-weight: 500; }
.cm-flagged { color: var(--warn); }

@media (max-width: 860px) {
  .cm-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 12px; }
  .cm-row--head { display: none; }
  .cm-rank { flex-direction: column; gap: 0; grid-row: span 2; }
  .cm-who { grid-column: 2 / 4; }
  .cm-num { grid-column: 2; justify-items: start; justify-content: start; text-align: left; grid-template-columns: auto auto; gap: 6px; align-items: baseline; }
  .cm-num ~ .cm-num { display: none; }
  .cm-mark--lg { width: 48px; height: 48px; font-size: var(--text-lg); }
}
