.community-page {
  background: #171b2a url("assets/night/village.jpg") center top / auto 560px no-repeat;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}
.community-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 565px;
  background: linear-gradient(180deg, #151b31a3, #171b2a);
  z-index: -1;
}
.community-header { padding: 12px 0; }
.community-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid #9ba5ea42;
  border-radius: 24px;
  background: #181c2bee;
}
.community-nav .brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.community-nav > a:not(.brand) { padding: 8px 12px; border-radius: 18px; }
.community-nav a:hover, .community-nav a[aria-current="page"] { background: #2461d3; color: #fff; }
.community-main { max-width: 900px; padding: 0 0 52px; }
.community-title { padding: clamp(34px, 8vw, 100px) 0 26px; }
.community-title h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.16; margin: 0; }
.community-panel {
  background: #22273c;
  border: 1px solid #8c9ae548;
  border-radius: 22px;
  padding: clamp(18px, 4vw, 38px);
  margin-bottom: 20px;
}
.community-toc { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 10px 24px; }
.community-toc h2 { grid-column: 1/-1; margin: 0; }
.community-toc a { color: #b7ceff; text-decoration: underline; text-underline-offset: 4px; }
.community-topic { line-height: 1.8; overflow-wrap: anywhere; scroll-margin-top: 22px; }
.community-topic + .community-topic { border-top: 1px solid #a4b1ff33; margin-top: 28px; padding-top: 24px; }
.community-topic h2 { margin: 0 0 12px; color: #d5e3ff; }
.community-topic h3 { margin: 20px 0 8px; }
.community-topic li { margin-block: 3px; }
.community-topic blockquote { margin: 12px 0; border-left: 3px solid #709fff; padding: 8px 14px; background: #182139; }
.community-footer { display: flex; flex-wrap: wrap; gap: 10px; }
.community-search { display: grid; gap: 6px; max-width: 400px; margin-bottom: 18px; }
.community-search input { border: 1px solid #879de5; background: #1b2135; color: #fff; border-radius: 10px; padding: 10px 13px; font: inherit; }
[data-community-copy] { white-space: pre-line; }
