[class*="elementor-widget-vnc_community_"] .group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--s5);
}

.vnc-community-group-home .welcome-example .avatar,
.vnc-thread-feed .avatar,
[class*="elementor-widget-vnc_community_"] .avatar {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--accent-contrast);
  display: inline-flex;
  flex: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  width: 40px;
}

[class*="elementor-widget-vnc_community_"] .avatar--lg {
  font-size: 22px;
  height: 64px;
  width: 64px;
}

.vnc-thread-feed.session-body {
  padding: var(--s5);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.vnc-thread-feed .thread-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vnc-thread-feed .thread-feed li + li {
  border-top: 1px solid var(--line);
}

.vnc-thread-feed .thread-feed-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: var(--s2) var(--s3);
  align-items: center;
  padding: var(--s3) 0;
}

.vnc-thread-feed .thread-feed-row .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.vnc-thread-feed .avatar--alt1 {
  background: var(--note-text);
  color: var(--bg);
}

.vnc-thread-feed .avatar--staff {
  background: var(--chrome);
  color: var(--chrome-text);
  box-shadow: 0 0 0 2px var(--ok);
}

.vnc-thread-feed .thread-feed-row a {
  grid-column: 2;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.vnc-thread-feed .thread-feed-row a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.vnc-thread-feed .thread-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 599px) {
  .hero-route .thread-clock {
    display: none;
  }
}

[class*="elementor-widget-vnc_community_"] .group-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
}

[class*="elementor-widget-vnc_community_"] .group-card h3 {
  margin: 0;
}

[class*="elementor-widget-vnc_community_"] .group-card h3 a {
  color: var(--ink);
  display: inline-flex;
  min-height: 24px;
  text-decoration: none;
}

[class*="elementor-widget-vnc_community_"] .group-card h3 a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* W6-CSS-15C-2: primary titles stretch; secondary controls stay above them.
   DenseTopicRow also renders on native group home pages without a widget wrapper. */
.topic-row--stats {
  position: relative;
}

[class*="elementor-widget-vnc_community_"] .group-card a,
[class*="elementor-widget-vnc_community_"] .group-card button,
.topic-row--stats a,
.topic-row--stats button {
  position: relative;
  z-index: 1;
}

[class*="elementor-widget-vnc_community_"] .group-card h3 a,
.topic-row--stats h3 a,
.topic-row--stats .topic-row__title a {
  position: static;
  z-index: auto;
}

[class*="elementor-widget-vnc_community_"] .group-card h3 a::after,
.topic-row--stats h3 a::after,
.topic-row--stats .topic-row__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

[class*="elementor-widget-vnc_community_"] .group-card h3 a:focus-visible,
[class*="elementor-widget-vnc_community_"] .group-card h3 a:focus-visible::after,
.topic-row--stats h3 a:focus-visible,
.topic-row--stats h3 a:focus-visible::after,
.topic-row--stats .topic-row__title a:focus-visible,
.topic-row--stats .topic-row__title a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topic-row--stats .tstats a {
  display: inline-flex;
  min-height: 24px;
  min-width: 24px;
}

[class*="elementor-widget-vnc_community_"] .group-card .gmeta {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  gap: var(--s2) var(--s4);
  padding-top: var(--s3);
}

[class*="elementor-widget-vnc_community_"] .stat-strip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

[class*="elementor-widget-vnc_community_"] .stat {
  color: var(--muted);
  display: flex;
  flex: 1 1 180px;
  flex-direction: column;
  justify-content: center;
  min-height: 84px;
  padding: var(--s3) var(--s5);
}

[class*="elementor-widget-vnc_community_"] .stat + .stat {
  border-left: 1px solid var(--line);
}

[class*="elementor-widget-vnc_community_"] .stat strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.2;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--s1) var(--s4);
  grid-template-columns: 82px minmax(0, 1fr) auto;
  padding: var(--s4) 0;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats .tstat {
  grid-column: 1;
  grid-row: 1 / span 2;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats h3,
[class*="elementor-widget-vnc_community_"] .topic-row--stats .topic-row__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  min-width: 0;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats h3 a,
[class*="elementor-widget-vnc_community_"] .topic-row--stats .topic-row__title a {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration: none;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats h3 a:hover,
[class*="elementor-widget-vnc_community_"] .topic-row--stats .topic-row__title a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats .trow-tags {
  grid-column: 2;
  grid-row: 2;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats .tstats {
  align-self: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  grid-column: 3;
  grid-row: 1 / span 2;
  text-align: right;
  white-space: nowrap;
}

[class*="elementor-widget-vnc_community_"] .topic-row--stats .tstats strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
}

[class*="elementor-widget-vnc_community_"] .tstat {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 10.5px;
  justify-content: center;
  line-height: 1.25;
  min-height: 62px;
  text-align: center;
}

[class*="elementor-widget-vnc_community_"] .tstat strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

[class*="elementor-widget-vnc_community_"] .tstat--answered {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--ok);
}

[class*="elementor-widget-vnc_community_"] .tstat--answered strong {
  color: var(--ok);
}

[class*="elementor-widget-vnc_community_"] .tstat--open {
  border-color: var(--line);
  background: var(--bg-raise);
  color: var(--muted);
}

[class*="elementor-widget-vnc_community_"] .trow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  min-width: 0;
}

[class*="elementor-widget-vnc_community_"] .tag {
  align-items: center;
  background: var(--accent-wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent-ink);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 24px;
  min-width: 24px;
  overflow-wrap: anywhere;
  padding: 1px 7px;
  text-decoration: none;
}

[class*="elementor-widget-vnc_community_"] a.tag:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.elementor-widget-vnc_community_activity_band .band-head {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}

.elementor-widget-vnc_community_activity_band .band-head h2 {
  margin: 0;
}

.elementor-widget-vnc_community_activity_band .band-head .more {
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

[class*="elementor-widget-vnc_community_"] .activity-band {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 0 var(--s5);
}

[class*="elementor-widget-vnc_community_"] .activity-row {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 15.5px;
  gap: var(--s4);
  padding: var(--s4) 0;
}

[class*="elementor-widget-vnc_community_"] .activity-band .activity-row:first-child {
  border-top: 0;
}

[class*="elementor-widget-vnc_community_"] .activity-row__action {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

[class*="elementor-widget-vnc_community_"] .activity-row a,
[class*="elementor-widget-vnc_community_"] .member {
  align-items: center;
  min-height: 24px;
}

[class*="elementor-widget-vnc_community_"] .activity-row a {
  display: inline-flex;
  font-weight: 600;
  min-width: 24px;
}

/* Links inside the activity sentence are inline targets (WCAG 2.5.8 exception) and must wrap with the text. */
[class*="elementor-widget-vnc_community_"] .activity-row .activity-row__action a {
  display: inline;
  min-height: 0;
  min-width: 0;
}

[class*="elementor-widget-vnc_community_"] .activity-row time {
  color: var(--muted);
  flex: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-left: auto;
  white-space: nowrap;
}

.prose .discuss-panel,
.discuss-panel {
  margin: var(--s7) 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  overflow: hidden;
}

/* The bar treatment itself lives in session.css, which now carries the prototype's
   chrome palette. Only the discuss-panel height tweak is community-specific, matching
   `.discuss-panel .session-bar` in the prototype stylesheet. */
.discuss-panel .session-bar {
  min-height: 38px;
}

.discuss-panel .discuss-panel__body {
  align-items: center;
  display: grid;
  gap: var(--s4) var(--s5);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: var(--s5);
}

.discuss-panel .discuss-panel__body h2 {
  font-size: 21px;
}

.discuss-panel .discuss-panel__stats {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  gap: var(--s2) var(--s4);
  margin-top: var(--s2);
}

.discuss-panel .btn--primary,
[class*="elementor-widget-vnc_community_"] .community-button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-ctl);
  color: var(--accent-contrast);
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s5);
  text-decoration: none;
}

.discuss-panel .btn--primary:hover,
[class*="elementor-widget-vnc_community_"] .community-button:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--accent-contrast);
}

[class*="elementor-widget-vnc_community_"] .member {
  color: var(--ink);
  display: inline-flex;
  gap: var(--s3);
  text-decoration: none;
}

[class*="elementor-widget-vnc_community_"] .member:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

[class*="elementor-widget-vnc_community_"] .profile-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  padding: var(--s6) 0;
}

[class*="elementor-widget-vnc_community_"] .profile-head h1 {
  margin: 0;
}

[class*="elementor-widget-vnc_community_"] .profile-head .pmeta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  gap: var(--s2);
}

[class*="elementor-widget-vnc_community_"] .profile-head .role,
.vnc-community-group-home .welcome-example .post-head .role,
[class*="elementor-widget-vnc_community_"] .post-head .role {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 6px;
}

.vnc-community-group-home .welcome-example .post,
[class*="elementor-widget-vnc_community_"] .post {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin: var(--s5) 0;
}

[class*="elementor-widget-vnc_community_"] .post--op {
  border-color: var(--accent);
}

[class*="elementor-widget-vnc_community_"] .post--op .post-head {
  background: var(--bg-raise);
}

.vnc-community-group-home .welcome-example .post-head,
[class*="elementor-widget-vnc_community_"] .post-head {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
}

[class*="elementor-widget-vnc_community_"] .post-head .who,
[class*="elementor-widget-vnc_community_"] .reply-permalink {
  align-items: center;
  display: inline-flex;
  min-height: 24px;
}

.vnc-community-group-home .welcome-example .post-head .who,
[class*="elementor-widget-vnc_community_"] .post-head .who {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.vnc-topic__header .bbp-admin-links,
[class*="elementor-widget-vnc_community_"] .vnc-reply-admin {
  color: var(--muted);
  display: inline;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.vnc-topic__header .bbp-admin-links a,
[class*="elementor-widget-vnc_community_"] .vnc-reply-admin a {
  color: var(--accent-ink);
}

[class*="elementor-widget-vnc_community_"] .post-head .who:hover,
[class*="elementor-widget-vnc_community_"] .reply-permalink:hover {
  color: var(--accent-ink);
}

.vnc-community-group-home .welcome-example .post-head time,
[class*="elementor-widget-vnc_community_"] .post-head time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-left: auto;
}

[class*="elementor-widget-vnc_community_"] .reply-permalink {
  color: var(--muted);
  font-family: var(--font-mono);
  justify-content: center;
  min-width: 24px;
  text-decoration: none;
}

.vnc-community-group-home .welcome-example .post-body,
[class*="elementor-widget-vnc_community_"] .post-body {
  padding: var(--s5);
}

.vnc-community-group-home .welcome-example .post-body > * + *,
[class*="elementor-widget-vnc_community_"] .post-body > * + * {
  margin-top: var(--s3);
}

[class*="elementor-widget-vnc_community_"] .post-body a {
  min-height: 24px;
}

[class*="elementor-widget-vnc_community_"] .group-card a:focus-visible,
.topic-row--stats a:focus-visible,
[class*="elementor-widget-vnc_community_"] .activity-row a:focus-visible,
.discuss-panel a:focus-visible,
[class*="elementor-widget-vnc_community_"] .member:focus-visible,
[class*="elementor-widget-vnc_community_"] .tag:focus-visible,
[class*="elementor-widget-vnc_community_"] .post a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 599px) {
  .vnc-community-latest .activity-band > .activity-row:nth-child(n + 4),
  .vnc-community-latest .activity-band > .vnc-community-feed__item:nth-child(n + 4) {
    display: none;
  }

  [class*="elementor-widget-vnc_community_"] .stat {
    flex-basis: 50%;
  }

  [class*="elementor-widget-vnc_community_"] .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  [class*="elementor-widget-vnc_community_"] .topic-row--stats {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  [class*="elementor-widget-vnc_community_"] .topic-row--stats .tstat {
    grid-row: 1 / span 3;
  }

  [class*="elementor-widget-vnc_community_"] .topic-row--stats .tstats {
    grid-column: 2;
    grid-row: 3;
    text-align: left;
    white-space: normal;
  }

  [class*="elementor-widget-vnc_community_"] .activity-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  [class*="elementor-widget-vnc_community_"] .activity-row time {
    grid-column: 2;
    margin-left: 0;
    white-space: normal;
  }

  .discuss-panel .discuss-panel__body {
    grid-template-columns: 1fr;
  }
}

/* Keep this group's three figures on one row, including narrow group pages. */
[class*="elementor-widget-vnc_community_"] .stat-strip--group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--s5);
}

[class*="elementor-widget-vnc_community_"] .stat-strip--group .stat {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 599px) {
  [class*="elementor-widget-vnc_community_"] .stat-strip--group .stat {
    padding-inline: var(--s3);
  }

  [class*="elementor-widget-vnc_community_"] .stat-strip--group .stat strong {
    font-size: 18px;
  }
}

/* W5-FIX-41: reset Hello paragraph/heading margins inside the panel only. */
.discuss-panel .discuss-panel__body h2,
.discuss-panel .discuss-panel__body p {
  margin: 0;
}

/* Static group-home examples live outside the community widgets. */
.vnc-community-group-home .welcome-example {
  margin: var(--s6) 0;
}

.vnc-community-group-home .welcome-example > h2 {
  font-size: 22px;
}

/* Match the prototype's zero margins and outrank Nouveau's 1em headings. */
body.buddypress .vnc-community-group-home .welcome-example > h2,
body.buddypress .vnc-community-group-home > section[aria-labelledby="escalation-example-h"] > .card > h2 {
  margin: 0;
}

.vnc-community-group-home .welcome-example .avatar--alt2 {
  background: var(--accent-ink);
  color: var(--accent-contrast);
}

.vnc-community-group-home .welcome-example .avatar--staff {
  background: var(--chrome);
  color: var(--chrome-text);
  box-shadow: 0 0 0 2px var(--ok);
}

.vnc-community-group-home > section[aria-labelledby="escalation-example-h"] > .card {
  margin-top: var(--s5);
}

/* Inherit the opening-post author or topic title's prominence, including hover. */
.vnc-staff-starter-label {
  color: inherit;
  font: inherit;
  margin-inline-start: var(--s2);
}

/* W6-CSS-22: prototype inline stats, including group and recipe consumers. */
.stat-strip.stat-strip--inline {
  display: block;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.stat-strip.stat-strip--inline .stat {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.5ch;
  min-height: 0;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.stat-strip.stat-strip--inline .stat + .stat::before {
  content: "·";
  margin: 0 0.5ch;
}

.stat-strip.stat-strip--inline .stat strong {
  display: inline;
  color: inherit;
  font: inherit;
}

/* The native scope also outranks Nouveau's body #buddypress * a reset. */
:is(.activity-band, #buddypress) .activity-row a.activity-row__person {
  color: var(--ink);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.15em;
}

:is(.activity-band, #buddypress) .activity-row a.activity-row__group {
  color: var(--ink);
  text-decoration: underline;
}

:is(.activity-band, #buddypress) .activity-row a.activity-row__thread {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
}
