/* Public Community page: leaderboard, Instagram credit and the approved badge. Cards themselves use phase4c-public.css. */
.cm-board { max-width: 1220px; margin: 22px auto 8px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-card); color: var(--text); background: var(--surface); box-shadow: none; }
.cm-board[hidden] { display: none; }
.cm-board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.cm-board .eyebrow { color: var(--text-muted); margin: 0 0 4px; } .cm-board h2 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2rem) Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.cm-seg { display: inline-flex; padding: 4px; border-radius:999px; background: var(--surface-hover); }
.cm-seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius:999px; background: transparent; color: var(--text-muted); font-weight:600; cursor: pointer; transition: background .25s ease, color .25s ease; }
.cm-seg button.on { background: var(--surface-hover); color: var(--text); }
.cm-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 68px 68px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-card); background: var(--surface-hover); border: 1px solid var(--border); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.cm-row:hover { transform: translateX(4px); background: var(--surface-hover); }
.cm-rank { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-input); background: var(--surface-hover); font-weight:600; }
.cm-top-1 .cm-rank { background: var(--surface); color: var(--text); box-shadow: none; } .cm-top-2 .cm-rank { background: var(--surface); color: var(--text); } .cm-top-3 .cm-rank { background: var(--surface); color: var(--text); }
.cm-who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cm-who small { color: var(--text-muted); text-transform: capitalize; } .cm-who small a { text-transform: none; }
.cm-num { text-align: center; } .cm-num b { display: block; font: 800 1.1rem/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; } .cm-num small { color: var(--text-muted); font-size: .66rem; font-weight:600; text-transform: uppercase; letter-spacing: .06em; } .cm-pts b { color: var(--text-muted); }
.cm-board-note { margin: 14px 4px 0; color: var(--text-muted); font-size: .86rem; } .cm-board-note a { color: var(--text-muted); font-weight:600; }
.cm-ig { display: inline-flex; align-items: center; gap: 4px; font-weight:600; color: var(--text-muted); text-decoration: none; } .cm-ig:hover { text-decoration: underline; } .cm-board .cm-ig { color: var(--text-muted); }
.community-creator { flex-wrap: wrap; row-gap: 6px; }
.cm-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius:999px; background: var(--surface-hover); color: var(--text); font: 800 .68rem/1.5 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 560px) { .cm-row { grid-template-columns: 38px minmax(0, 1fr) 56px; } .cm-row .cm-num:nth-of-type(1) { display: none; } }

/* stories section and the lighter leaderboard */
.cm-stories { max-width: 1220px; margin: 22px auto 8px; }
.cm-stories[hidden] { display: none; }
.cm-stories-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cm-stories-head h2, .cm-h2 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2rem) Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.cm-h2 { max-width: 1220px; margin: 34px auto 10px; }
.cm-stories-note { margin: 14px 4px 0; font-size: .86rem; color: var(--text-muted, var(--text-muted)); }

html:not([data-theme="dark"]) .cm-board { color: var(--ink, var(--text)); background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
html:not([data-theme="dark"]) .cm-board .eyebrow, html:not([data-theme="dark"]) .cm-board-note a, html:not([data-theme="dark"]) .cm-board .cm-ig { color: var(--text); }
html:not([data-theme="dark"]) .cm-seg { background: var(--surface-hover); }
html:not([data-theme="dark"]) .cm-seg button { color: var(--text-muted); }
html:not([data-theme="dark"]) .cm-seg button.on { background: var(--bg); color: var(--text); box-shadow: none; }
html:not([data-theme="dark"]) .cm-row { background: var(--bg); border-color: var(--border); }
html:not([data-theme="dark"]) .cm-row:hover { background: var(--surface); }
html:not([data-theme="dark"]) .cm-rank { background: var(--surface-hover); color: var(--text); }
html:not([data-theme="dark"]) .cm-who small, html:not([data-theme="dark"]) .cm-num small, html:not([data-theme="dark"]) .cm-board-note { color: var(--text-muted); }
html[data-theme="dark"] .cm-board { background: var(--surface); border: 1px solid var(--border); }
.cm-collections { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.cm-collections > span { color: var(--text-muted); font-weight: 600; }
.cm-col { appearance: none; min-height: 40px; padding: 0 16px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.cm-col small { color: var(--text-muted); font-weight: 400; }
.cm-col:hover { background: var(--surface-hover); }
.cm-col.on { background: var(--cyprus); color: var(--cyprus-text); border-color: transparent; }
