/* ── community.aspx ──────────────────────────────────────────────────────── */

body {
  background-color: var(--off-white);
}

/* Read-more truncation */
.community-desc > div.hide-long-text {
  max-height: 160px;
  overflow: hidden;
}

/* Cover image */
.community-cover-img {
  max-height: 420px;
}

/* Hero gradient overlay */
.community-hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  min-height: 140px;
  pointer-events: none;
}

/* Logo circle — extends .comm-logo, overrides its 70px size and resets its bottom margin */
.community-hero-logo {
  position: absolute;
  bottom: 1rem;
  left: 1.4rem;
  width: 100px;
  height: 100px;
  margin-bottom: 0.4rem;
}
.community-hero-logo img {
  width: 84px;
}

@media (max-width: 767.98px) {
  .community-hero-logo {
    bottom: auto;
    top: 1.4rem;
  }
}

/* Sticky sidebar */
.community-sidebar {
  top: calc(var(--nav-h) + 1rem);
}

/* Sidebar form padding */
.community-sidebar-form {
  padding: 36px;
}

/* Gallery images */
.community-gallery-img {
  aspect-ratio: 4/3;
}

/* Alternating section backgrounds — even sections fall through to the off-white body, hidden sections aren't counted */
.alt-sections > section:nth-of-type(odd) {
  background-color: #fff;
}
