/* ==========================================================================
   community.css — shared chrome for the community pages (feed/badges/
   challenges/leaderboards/rewards/profile/notifications) on the appshell
   left sidebar. Pairs with css/dashboard.css + tokens.css.
   ========================================================================== */

.comm-wrap { max-width: 1060px; margin: 0 auto; padding: 26px 32px 64px; box-sizing: border-box; }

/* sub-nav (replaces the old header buttons) */
.comm-subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--mx-border, #e6e9e7); margin-bottom: 22px; overflow-x: auto; }
.comm-subnav a { text-decoration: none; padding: 9px 14px 12px; font-size: 13px; font-weight: 600; color: #68736d; border-bottom: 2px solid transparent; white-space: nowrap; }
.comm-subnav a:hover { color: #212b26; }
.comm-subnav a.on { color: #0c6457; border-bottom-color: #0c6457; }

.comm-title { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.comm-sub { font-size: 13px; color: var(--mx-text-muted, #68736d); padding-bottom: 20px; }
.comm-sec-h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; }
.comm-sec-h .t { font-size: 15px; font-weight: 600; }
.comm-sec-h a, .comm-sec-h .meta { text-decoration: none; font-size: 12.5px; font-weight: 600; color: #0c6457; }
.comm-sec-h .meta { color: var(--mx-text-muted, #68736d); font-weight: 400; }

/* range / filter chips */
.comm-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; }
.comm-chip { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: #fff; color: #212b26; border: 1px solid var(--mx-border, #e6e9e7); }
.comm-chip:hover { border-color: #5f8d74; }
.comm-chip.on { background: #0c6457; color: #fff; border-color: #0c6457; }
.comm-seg { display: flex; background: #fff; border: 1px solid var(--mx-border, #e6e9e7); border-radius: 8px; padding: 3px; }
.comm-seg > div { height: 30px; display: flex; align-items: center; padding: 0 13px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; color: #68736d; }
.comm-seg > div.on { background: #e3f1ee; color: #0c6457; }

/* generic content card */
.comm-card { background: #fff; border: 1px solid var(--mx-border, #e6e9e7); border-radius: 12px; overflow: hidden; box-shadow: var(--mx-shadow-1); transition: box-shadow .14s; }
.comm-card:hover { box-shadow: var(--mx-shadow-2); }

/* ── heart / save on cards (shared, wired by js/community.js) ── */
.comm-hs { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.comm-hbtn, .comm-sbtn { width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.92); border: 0; display: flex; align-items: center; justify-content: center; color: #212b26; cursor: pointer; box-shadow: 0 1px 2px rgba(18,32,26,.15); }
.comm-hbtn:hover { color: #b3564d; } .comm-hbtn.on { color: #b3564d; }
.comm-sbtn:hover { color: #0c6457; } .comm-sbtn.on { color: #0c6457; }
.comm-hbtn.on svg, .comm-sbtn.on svg { fill: currentColor; }
/* inline heart+count (feed-style action row) */
.comm-like { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #68736d; cursor: pointer; }
.comm-like:hover { background: #f2f4f2; } .comm-like.on { color: #b3564d; }
.comm-like.on svg { fill: #b3564d; }
