/* This route predates the shared legal shell's layout primitives. Keep its
   missing base styles scoped here so other legal pages stay unchanged. */
.community-page,
.community-page * { box-sizing: border-box; }

.community-page {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.community-page .page {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 24px 0 72px;
}

.community-page .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.community-page .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.community-page .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.community-page .hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(26px, 5vw, 46px);
  background:
    radial-gradient(circle at 92% 4%, rgba(151, 133, 220, .13), transparent 35%),
    linear-gradient(145deg, rgba(34, 31, 41, .89), rgba(23, 22, 30, .91));
}

.community-page .hero::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 17%;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: #e7bfd5;
  box-shadow: 0 0 16px 3px rgba(240, 123, 145, .25);
  opacity: .7;
  pointer-events: none;
}

.community-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.community-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.community-page h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 6vw, 4.35rem);
  line-height: 1.04;
}

.community-page .lead {
  max-width: 65ch;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.1rem);
}

.community-page .meta {
  margin-bottom: 0;
  font-size: .86rem;
}

.community-page .notice {
  margin: 0 0 12px;
  padding: 17px 21px;
  border: 1px solid rgba(240, 123, 145, .22);
  line-height: 1.6;
}

.community-page .notice-version {
  border-color: var(--border);
  background: rgba(34, 31, 41, .61);
  color: var(--text-soft);
}

.community-page .notice strong { font-weight: 750; }

.community-page .section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin: 26px 0 18px;
  padding: 0 2px;
}

.community-page .section-nav span {
  margin-right: 12px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.community-page .section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}

.community-page .section-nav a:hover {
  border-color: rgba(240, 123, 145, .4);
  background: rgba(240, 123, 145, .1);
  color: var(--text);
}

.community-page section {
  margin-top: 14px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--border);
  scroll-margin-top: 28px;
}

.community-page section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}

.community-page section p {
  max-width: 75ch;
  margin: 0 0 14px;
  color: var(--text-soft);
}

.community-page section p:last-child { margin-bottom: 0; }

.community-page section ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 21px;
}

.community-page section li {
  padding-left: 4px;
  color: var(--text-soft);
}

.community-page section li::marker { color: var(--accent); }

.community-page .site-footer { margin-top: 34px; }

@media (max-width: 620px) {
  .community-page .page {
    width: calc(100% - 28px);
    padding-top: 16px;
  }

  .community-page .topbar { margin-bottom: 26px; }
  .community-page .hero { padding: 26px 22px; }
  .community-page .notice { padding: 16px 18px; }
  .community-page .section-nav span { flex-basis: 100%; margin: 0 0 3px; }
  .community-page section { padding: 23px 21px; }
}
