/**
 * NSC v3.4.0 — Group/subreddit page CSS
 *
 * Standalone CSS for the group-view template at /community/g/<slug>/
 * (and /community/sg/<slug>/). Loaded only on group pages; the feed
 * and single-post pages have their own stylesheets.
 *
 * WCAG AAA contrast verified for every (background, foreground)
 * combination in both light and dark modes. Pre-audited via Python
 * relative-luminance computation before this file was written;
 * see session log for the audit output.
 *
 * Mirrors the visual language of community-single-v3.css for cross-
 * page consistency: same header, same body bg, same card surfaces,
 * same vote rail. New surfaces (cover banner, sticky group bar,
 * sort tabs) introduced here use the same colour tokens.
 */

/* ─── Reset for the standalone group page ─────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background: #f8f8f5;
  color: #2C2C2A;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #173404; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Sticky brand header (matches single-post page) ──────────────
   Design note: this header is intentionally dark in BOTH light and
   dark modes (same pattern as X/Twitter, Reddit's new design, etc).
   The selectors below have no [data-theme="dark"] overrides because
   they don't need them — coverage_check.py would otherwise flag:
     .nsc-gv-header (#1a1a18 charcoal)
     .nsc-gv-brand-dot (#c0dd97 light-green-on-charcoal: 11.65:1)
     .nsc-gv-back:hover (#2E5810 brand-green pill: 7.24:1 with cream)
     .nsc-gv-theme-btn:hover (same brand-green hover)
   All combinations verified ≥7:1 contrast in audit.py.
   ────────────────────────────────────────────────────────────────── */
.nsc-gv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a18;
  border-bottom: 1px solid #2c2c2a;
  padding: 8px 0;
}
.nsc-gv-header-w {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nsc-gv-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f1efe8;        /* 15.15:1 on #1a1a18 — AAA */
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.nsc-gv-brand:hover { text-decoration: none; opacity: 0.92; }
.nsc-gv-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0dd97;   /* 11.65:1 on #1a1a18 — AAA */
  display: inline-block;
}
.nsc-gv-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nsc-gv-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #c0dd97;        /* 11.65:1 on #1a1a18 — AAA */
  border: 1px solid #2E5810;
  background: transparent;
}
.nsc-gv-theme-btn:hover {
  background: #2E5810;
  color: #f1efe8;        /* 7.24:1 on #2E5810 — AAA */
  border-color: #2E5810;
}
.nsc-gv-theme-btn svg { width: 16px; height: 16px; }
.nsc-gv-theme-sun { display: block; }
.nsc-gv-theme-moon { display: none; }
.nsc-gv-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #2E5810;
  border-radius: 6px;
  color: #c0dd97;        /* 11.65:1 on #1a1a18 — AAA */
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.nsc-gv-back:hover {
  background: #2E5810;
  color: #f1efe8;        /* 7.24:1 on #2E5810 — AAA */
  text-decoration: none;
}

/* ─── Cover banner ────────────────────────────────────────────── */
.nsc-gv-cover {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #173404 0%, #0F2402 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.nsc-gv-cover.has-image::after {
  /* Dark overlay so any group bar/text on top of cover stays AAA */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
}

/* ─── Group bar (avatar + name + join button) ─────────────────
   v3.4.46 — No longer sticky. The title/identity section now scrolls
   away with the page instead of pinning under the header. */
.nsc-gv-bar {
  background: #ffffff;
  border-bottom: 1px solid #D3D1C7;
}
.nsc-gv-bar-w {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nsc-gv-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #173404 0%, #0F2402 100%);
  color: #ffffff;        /* 13.73:1 on #173404 — AAA */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  border: 3px solid #ffffff;
  margin-top: -32px;     /* lifts the avatar to overlap the cover */
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nsc-gv-bar-text {
  flex: 1;
  min-width: 0;
}
.nsc-gv-bar-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #2C2C2A;        /* 13.99:1 on #fff — AAA */
  line-height: 1.25;
}
.nsc-gv-bar-meta {
  font-size: 13px;
  color: #3c3f43;        /* 10.58:1 on #fff — AAA */
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nsc-gv-bar-cat {
  display: inline-block;
  padding: 1px 8px;
  background: #e8efe5;
  color: #173404;        /* 11.71:1 on #e8efe5 — AAA */
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nsc-gv-bar-actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}
.nsc-gv-join-btn {
  padding: 8px 18px;
  background: #173404;
  color: #ffffff;        /* 13.73:1 on #173404 — AAA */
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #173404;
  transition: background 0.12s, border-color 0.12s;
}
.nsc-gv-join-btn:hover {
  background: #0F2402;   /* 16.49:1 on #0F2402 — AAA */
  border-color: #0F2402;
}
.nsc-gv-join-btn[data-joined="1"] {
  background: #ffffff;
  color: #173404;        /* 13.73:1 — AAA */
  border-color: #173404;
}
.nsc-gv-join-btn[data-joined="1"]:hover {
  background: #fee2e2;
  color: #7f1d1d;        /* 8.2:1 on #fee2e2 — AAA */
  border-color: #7f1d1d;
}
.nsc-gv-join-btn[data-joined="1"]:hover .nsc-gv-join-label-joined {
  display: none;
}
.nsc-gv-join-btn[data-joined="1"]:hover .nsc-gv-join-label-leave {
  display: inline;
}
.nsc-gv-join-label-joined { display: inline; }
.nsc-gv-join-label-leave  { display: none; }
.nsc-gv-join-label-join   { display: inline; }
.nsc-gv-join-btn[data-joined="1"] .nsc-gv-join-label-join { display: none; }
.nsc-gv-join-btn:not([data-joined="1"]) .nsc-gv-join-label-joined,
.nsc-gv-join-btn:not([data-joined="1"]) .nsc-gv-join-label-leave {
  display: none;
}

/* ─── Main grid ───────────────────────────────────────────────── */
.nsc-gv-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}
.nsc-gv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 840px) {
  .nsc-gv-grid { grid-template-columns: 1fr; gap: 16px; }
  .nsc-gv-side { order: -1; }   /* About card first on mobile */
}

/* ─── Sort tabs ───────────────────────────────────────────────── */
.nsc-gv-tabs {
  display: flex;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #D3D1C7;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
}
.nsc-gv-tab {
  flex: 0 1 auto;
  padding: 7px 14px;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4d51;        /* 8.5:1 on #fff — AAA (tertiary) */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.1s, color 0.1s;
}
.nsc-gv-tab:hover {
  background: #f4f4ef;
  color: #2C2C2A;        /* 13.43:1 on #f4f4ef — AAA */
  text-decoration: none;
}
.nsc-gv-tab.is-active {
  background: #e8efe5;
  color: #173404;        /* 11.71:1 on #e8efe5 — AAA */
}
.nsc-gv-tab svg { width: 14px; height: 14px; }

/* ─── Post card (mirrors feed v3 styling) ─────────────────────── */
.nsc-gv-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nsc-gv-post {
  background: #ffffff;
  border: 1px solid #D3D1C7;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 44px 1fr;
  overflow: hidden;
}
.nsc-gv-post:hover {
  border-color: #b9b6a8;
}
.nsc-gv-post-votes {
  background: #fafaf7;
  border-right: 1px solid #ececec;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nsc-gv-vote-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4d51;        /* 8.5:1 on #fafaf7 ≈ 8.4 — AAA */
  background: transparent;
}
.nsc-gv-vote-btn:hover {
  background: #ececec;
  color: #2C2C2A;
}
.nsc-gv-vote-btn svg { width: 18px; height: 18px; }
.nsc-gv-vote-btn.is-up.is-active {
  background: #e8efe5;
  color: #2E5810;        /* 7.11:1 on #e8efe5 — AAA */
}
.nsc-gv-vote-btn.is-down.is-active {
  background: #fbe9e9;
  color: #7f1d1d;        /* 8.56:1 on #fbe9e9 — AAA */
}
.nsc-gv-vote-score {
  font-size: 12px;
  font-weight: 700;
  color: #2C2C2A;        /* 13.32:1 on #fafaf7 — AAA */
  min-width: 28px;
  text-align: center;
}
.nsc-gv-post-content { padding: 12px 16px 14px; min-width: 0; }
.nsc-gv-post-meta {
  font-size: 12px;
  color: #4a4d51;        /* 8.5:1 on #fff — AAA */
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.nsc-gv-post-meta a {
  color: #173404;        /* 13.73:1 on #fff — AAA */
  font-weight: 600;
}
.nsc-gv-post-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #2C2C2A;        /* 13.99:1 — AAA */
  line-height: 1.3;
}
.nsc-gv-post-title a {
  color: inherit;
}
.nsc-gv-post-title a:hover {
  text-decoration: underline;
}
.nsc-gv-post-snippet {
  font-size: 13px;
  color: #3c3f43;        /* 10.58:1 on #fff — AAA */
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nsc-gv-post-actions {
  display: flex;
  gap: 12px;
  font-size: 12px;
}
.nsc-gv-post-action {
  color: #4a4d51;        /* 8.5:1 — AAA */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.nsc-gv-post-action:hover {
  color: #2C2C2A;
  text-decoration: none;
}
.nsc-gv-post-action svg { width: 14px; height: 14px; }

.nsc-gv-post-image {
  margin: 8px 0 0;
  border-radius: 6px;
  overflow: hidden;
  max-height: 360px;
}
.nsc-gv-post-image img {
  width: 100%;
  height: auto;
}

/* ─── Empty state ─────────────────────────────────────────────── */
.nsc-gv-empty {
  background: #ffffff;
  border: 1px solid #D3D1C7;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
}
.nsc-gv-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #2C2C2A;        /* 13.99:1 — AAA */
  margin: 0 0 6px;
}
.nsc-gv-empty-text {
  font-size: 13px;
  color: #3c3f43;        /* 10.58:1 — AAA */
  margin: 0 0 16px;
}
.nsc-gv-empty-cta {
  display: inline-block;
  padding: 8px 20px;
  background: #173404;
  color: #ffffff;        /* 13.73:1 — AAA */
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nsc-gv-empty-cta:hover {
  background: #0F2402;
  text-decoration: none;
}

/* ─── Sidebar (About + meta + related) ────────────────────────── */
.nsc-gv-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 130px;
}
@media (max-width: 840px) {
  .nsc-gv-side { position: static; top: auto; }
}
.nsc-gv-side-block {
  background: #ffffff;
  border: 1px solid #D3D1C7;
  border-radius: 10px;
  padding: 14px 16px;
}
.nsc-gv-side-h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a4d51;        /* 8.5:1 — AAA */
  margin: 0 0 10px;
}
.nsc-gv-about-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #2C2C2A;        /* 13.99:1 — AAA */
  margin: 0 0 14px;
}
.nsc-gv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid #ececec;
  padding-top: 14px;
}
.nsc-gv-stat-num {
  font-size: 17px;
  font-weight: 700;
  color: #2C2C2A;        /* 13.99:1 — AAA */
  line-height: 1.1;
}
.nsc-gv-stat-lbl {
  font-size: 11px;
  color: #4a4d51;        /* 8.5:1 — AAA */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.nsc-gv-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.nsc-gv-meta-list dt {
  color: #4a4d51;        /* 8.5:1 — AAA */
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1px;
}
.nsc-gv-meta-list dd {
  color: #2C2C2A;        /* 13.99:1 — AAA */
  margin: 0 0 8px;
  font-size: 13px;
}
.nsc-gv-meta-list dd:last-child { margin-bottom: 0; }

.nsc-gv-related {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nsc-gv-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #2C2C2A;        /* 13.99:1 — AAA */
}
.nsc-gv-related a:hover {
  background: #f4f4ef;
  text-decoration: none;
}
.nsc-gv-related-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #173404 0%, #0F2402 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.nsc-gv-related-text { flex: 1; min-width: 0; }
.nsc-gv-related-name {
  font-size: 13px;
  font-weight: 600;
  color: #2C2C2A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nsc-gv-related-sub {
  font-size: 11px;
  color: #4a4d51;        /* 8.5:1 — AAA */
}

/* ─── Footer ──────────────────────────────────────────────────── */
.nsc-gv-footer {
  background: #1a1a18;
  color: #C4C2BA;        /* 9.77:1 on #1a1a18 — AAA */
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
}
.nsc-gv-footer a {
  color: #c0dd97;        /* 11.65:1 — AAA */
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — uses html[data-theme="dark"] for high specificity.
   All combinations below are AAA-verified (see audit log).
   ═══════════════════════════════════════════════════════════════ */

html[data-theme="dark"] body {
  background: #131313;
  color: #f1efe8;        /* 16.15:1 — AAA */
}
html[data-theme="dark"] a { color: #c0dd97; }

html[data-theme="dark"] .nsc-gv-bar {
  background: #1f1f1d;   /* 14.35:1 with #f1efe8 — AAA */
  border-bottom-color: #2c2c2a;
}
html[data-theme="dark"] .nsc-gv-bar-name { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-bar-meta { color: #C4C2BA; }   /* 9.26:1 — AAA */
html[data-theme="dark"] .nsc-gv-bar-cat {
  background: #1f2a18;
  color: #c0dd97;        /* 10:1 on #1f2a18 — AAA */
}
html[data-theme="dark"] .nsc-gv-avatar {
  border-color: #1f1f1d;
}

html[data-theme="dark"] .nsc-gv-join-btn {
  background: #27500A;   /* 8.16:1 with #f1efe8 — AAA */
  color: #f1efe8;
  border-color: #27500A;
}
html[data-theme="dark"] .nsc-gv-join-btn:hover {
  background: #173404;   /* 11.93:1 with #f1efe8 — AAA */
  border-color: #173404;
}
html[data-theme="dark"] .nsc-gv-join-btn[data-joined="1"] {
  background: #1f1f1d;
  color: #c0dd97;        /* 11.03:1 on #1f1f1d — AAA */
  border-color: #27500A;
}
html[data-theme="dark"] .nsc-gv-join-btn[data-joined="1"]:hover {
  background: #2a1414;
  color: #F09595;        /* 7.81:1 on #2a1414 — AAA */
  border-color: #F09595;
}

html[data-theme="dark"] .nsc-gv-tabs {
  background: #1f1f1d;
  border-color: #2c2c2a;
}
html[data-theme="dark"] .nsc-gv-tab { color: #C4C2BA; }        /* 9.26:1 — AAA */
html[data-theme="dark"] .nsc-gv-tab:hover {
  background: #2c2c2a;
  color: #f1efe8;        /* ≈ 13:1 — AAA */
}
html[data-theme="dark"] .nsc-gv-tab.is-active {
  background: #1f2a18;
  color: #c0dd97;        /* 10:1 — AAA */
}

html[data-theme="dark"] .nsc-gv-post {
  background: #1f1f1d;
  border-color: #2c2c2a;
}
html[data-theme="dark"] .nsc-gv-post:hover { border-color: #3a3a37; }
html[data-theme="dark"] .nsc-gv-post-votes {
  background: #1a1a18;
  border-right-color: #2c2c2a;
}
html[data-theme="dark"] .nsc-gv-vote-btn { color: #C4C2BA; }   /* 9.77:1 on #1a1a18 — AAA */
html[data-theme="dark"] .nsc-gv-vote-btn:hover {
  background: #2c2c2a;
  color: #f1efe8;
}
html[data-theme="dark"] .nsc-gv-vote-btn.is-up.is-active {
  background: #1f2a18;
  color: #97C459;        /* 9.16:1 on #1a1a18 base — AAA */
}
html[data-theme="dark"] .nsc-gv-vote-btn.is-down.is-active {
  background: #2a1414;
  color: #F09595;        /* 7.81:1 — AAA */
}
html[data-theme="dark"] .nsc-gv-vote-score { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-post-meta { color: #C4C2BA; }  /* AAA */
html[data-theme="dark"] .nsc-gv-post-meta a { color: #c0dd97; }
html[data-theme="dark"] .nsc-gv-post-title { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-post-title a { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-post-snippet { color: #C4C2BA; }
html[data-theme="dark"] .nsc-gv-post-action { color: #C4C2BA; }
html[data-theme="dark"] .nsc-gv-post-action:hover { color: #f1efe8; }

html[data-theme="dark"] .nsc-gv-empty {
  background: #1f1f1d;
  border-color: #2c2c2a;
}
html[data-theme="dark"] .nsc-gv-empty-title { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-empty-text { color: #C4C2BA; }
html[data-theme="dark"] .nsc-gv-empty-cta {
  background: #27500A;
  color: #f1efe8;
}
html[data-theme="dark"] .nsc-gv-empty-cta:hover { background: #173404; }

html[data-theme="dark"] .nsc-gv-side-block {
  background: #1f1f1d;
  border-color: #2c2c2a;
}
html[data-theme="dark"] .nsc-gv-side-h3 { color: #C4C2BA; }
html[data-theme="dark"] .nsc-gv-about-desc { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-stats { border-top-color: #2c2c2a; }
html[data-theme="dark"] .nsc-gv-stat-num { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-stat-lbl { color: #C4C2BA; }
html[data-theme="dark"] .nsc-gv-meta-list dt { color: #C4C2BA; }
html[data-theme="dark"] .nsc-gv-meta-list dd { color: #f1efe8; }

html[data-theme="dark"] .nsc-gv-related a { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-related a:hover { background: #2c2c2a; }
html[data-theme="dark"] .nsc-gv-related-name { color: #f1efe8; }
html[data-theme="dark"] .nsc-gv-related-sub { color: #C4C2BA; }

html[data-theme="dark"] .nsc-gv-footer {
  background: #0a0c0e;
  color: #C4C2BA;        /* 10.83:1 on #0a0c0e — AAA */
}

/* Theme toggle icon swap when dark */
html[data-theme="dark"] .nsc-gv-theme-sun { display: none; }
html[data-theme="dark"] .nsc-gv-theme-moon { display: block; }

/* ─── Mobile tweaks ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .nsc-gv-bar-w {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .nsc-gv-bar-actions {
    width: 100%;
    margin-top: 8px;
  }
  .nsc-gv-join-btn { width: 100%; }
  .nsc-gv-main { padding: 14px 12px 40px; }
  .nsc-gv-cover { height: 120px; }
  .nsc-gv-avatar { width: 48px; height: 48px; font-size: 19px; margin-top: -28px; }
  .nsc-gv-bar-name { font-size: 16px; }
  .nsc-gv-tab { padding: 6px 10px; font-size: 12px; }
  .nsc-gv-post { grid-template-columns: 36px 1fr; }
  .nsc-gv-post-content { padding: 10px 12px 12px; }
  .nsc-gv-post-title { font-size: 15px; }
  .nsc-gv-post-snippet { font-size: 12.5px; }
  .nsc-gv-post-votes { padding: 8px 2px 6px; }
  .nsc-gv-vote-btn { width: 22px; height: 22px; }
  .nsc-gv-vote-btn svg { width: 14px; height: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v3.4.39 — Group member list modal (click member count → see members,
   follow people). AAA-verified colour combinations.
   ─────────────────────────────────────────────────────────────────── */
.nsc-gv-stat-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
  color: inherit;
}
.nsc-gv-stat-btn:hover .nsc-gv-stat-num { text-decoration: underline; }

.nsc-gml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.nsc-gml-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.nsc-gml-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ECEAE2;
  font-size: 1.05rem;
}
.nsc-gml-head strong { color: #2C2C2A; font-weight: 800; }
.nsc-gml-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #525558;
  cursor: pointer;
  padding: 0 4px;
}
.nsc-gml-close:hover { color: #2C2C2A; }
.nsc-gml-list {
  overflow-y: auto;
  padding: 8px;
  flex: 1;
}
.nsc-gml-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
}
.nsc-gml-row:hover { background: #f8f8f5; }
.nsc-gml-av { flex-shrink: 0; line-height: 0; position: relative; }
.nsc-gml-info { flex: 1; min-width: 0; }
.nsc-gml-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2C2C2A;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nsc-gml-name a { color: #2C2C2A; text-decoration: none; }
.nsc-gml-name a:hover { text-decoration: underline; }
.nsc-gml-handle {
  font-size: 0.78rem;
  color: #525558;
}
.nsc-gml-badge {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #27500A;
  background: #e8efe5;
  padding: 2px 6px;
  border-radius: 4px;
}
.nsc-gml-action { flex-shrink: 0; }
.nsc-gml-follow {
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: #173404;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.nsc-gml-follow:hover { background: #27500A; }
.nsc-gml-following {
  background: #f1f1ee;
  color: #3F3E3C;
}
.nsc-gml-following:hover { background: #e6e6e1; }
.nsc-gml-you {
  font-size: 0.78rem;
  color: #525558;
  font-style: italic;
}
.nsc-gml-more {
  margin: 8px 16px 16px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ECEAE2;
  background: #ffffff;
  color: #173404;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.nsc-gml-more:hover { background: #f8f8f5; }
.nsc-gml-more:disabled { opacity: 0.6; cursor: default; }
.nsc-gml-empty {
  text-align: center;
  padding: 40px 16px;
  color: #525558;
  font-size: 0.9rem;
}
.nsc-gml-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ECEAE2;
  border-top-color: #173404;
  border-radius: 50%;
  margin: 32px auto;
  animation: nsc-gml-spin 0.8s linear infinite;
}
@keyframes nsc-gml-spin { to { transform: rotate(360deg); } }

/* Dark mode */
[data-theme="dark"] .nsc-gml-modal { background: #1f1f1d; }
[data-theme="dark"] .nsc-gml-head { border-bottom-color: #34342f; }
[data-theme="dark"] .nsc-gml-head strong { color: #f1efe8; }
[data-theme="dark"] .nsc-gml-close { color: #b0b3b8; }
[data-theme="dark"] .nsc-gml-close:hover { color: #f1efe8; }
[data-theme="dark"] .nsc-gml-row:hover { background: #2a2a27; }
[data-theme="dark"] .nsc-gml-name { color: #f1efe8; }
[data-theme="dark"] .nsc-gml-name a { color: #f1efe8; }
[data-theme="dark"] .nsc-gml-handle { color: #b0b3b8; }
[data-theme="dark"] .nsc-gml-badge { color: #c0dd97; background: #1f2a18; }
[data-theme="dark"] .nsc-gml-follow { background: #c0dd97; color: #1f2a18; }
[data-theme="dark"] .nsc-gml-follow:hover { background: #a9c97e; }
[data-theme="dark"] .nsc-gml-following { background: #2a2a27; color: #c4c2ba; }
[data-theme="dark"] .nsc-gml-you { color: #b0b3b8; }
[data-theme="dark"] .nsc-gml-more { background: #1f1f1d; border-color: #34342f; color: #c0dd97; }
[data-theme="dark"] .nsc-gml-more:hover { background: #2a2a27; }
[data-theme="dark"] .nsc-gml-empty { color: #b0b3b8; }
[data-theme="dark"] .nsc-gml-spinner { border-color: #34342f; border-top-color: #c0dd97; }
