/* Community directory refresh. Keep this page's visual system scoped here. */
.community-page {
  max-width: 1120px;
}

.community-hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  min-height: 320px;
  padding: 48px 0 34px;
}

.community-hero-copy {
  position: relative;
  z-index: 1;
}

.community-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  letter-spacing: -.065em;
  line-height: .92;
  margin: 10px 0 14px;
  max-width: 650px;
  text-wrap: balance;
}

.community-hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.45;
  max-width: 560px;
}

.community-hero-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.community-hero-meta span {
  background: #071a12dd;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .02em;
  padding: 9px 13px;
}

.community-hero-meta strong {
  color: var(--gold-soft);
  margin-right: 4px;
}

.community-hero-art {
  background:
    radial-gradient(ellipse at 82% 78%, #ffb81c55 0, transparent 30%),
    radial-gradient(ellipse at 18% 22%, #0e5b6588 0, transparent 42%),
    radial-gradient(ellipse at 58% 42%, #123f2f66 0, transparent 48%),
    linear-gradient(145deg, #020a14 0%, #041f2a 48%, #051310 100%);
  border: 1px solid #ffb81c66;
  border-radius: 28px;
  box-shadow: 0 24px 70px #0008, inset 0 1px #ffffff12;
  min-height: 290px;
  overflow: hidden;
  position: relative;
}

.community-hero-art::before,
.community-hero-art::after {
  border: 1px solid #36d58655;
  border-radius: 50%;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.community-hero-art::before {
  height: 190px;
  width: 330px;
}

.community-hero-art::after {
  border-color: #ffb81c44;
  height: 290px;
  transform: translate(-50%, -50%) rotate(28deg);
  width: 180px;
}

.hero-orbit {
  border: 1px solid #ffffff1a;
  border-radius: 50%;
  height: 260px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
}

.hero-orbit-two {
  border-color: #36d58644;
  height: 130px;
  width: 130px;
}

.hero-node {
  background: var(--bright-green);
  border: 3px solid #b7f6d0;
  border-radius: 50%;
  box-shadow: 0 0 22px #36d586cc;
  height: 12px;
  position: absolute;
  width: 12px;
}

.hero-node-one { left: 22%; top: 32%; }
.hero-node-two { right: 20%; top: 26%; background: var(--gold); border-color: var(--gold-soft); box-shadow: 0 0 22px #ffb81ccc; }
.hero-node-three { bottom: 22%; left: 47%; }

.hero-constellation {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-constellation-image {
  object-fit: cover;
}

.constellation-links path {
  fill: none;
  stroke: url(#constellation-line);
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  stroke-width: 1.1;
}

.constellation-links .constellation-link-gold {
  stroke: var(--gold);
  stroke-dasharray: 2 6;
  stroke-width: 1.6;
}

.star-field {
  opacity: .8;
}

.star-field .star {
  fill: #e9fff1;
  filter: drop-shadow(0 0 3px #36d58699);
}

.star-field .star-bright {
  fill: var(--ink);
  filter: drop-shadow(0 0 4px #ffffffcc);
}

.star-field .star-gold {
  fill: var(--gold-soft);
  filter: drop-shadow(0 0 4px #ffb81ccc);
}

.constellation-cubes {
  filter: drop-shadow(0 0 4px #36d586aa);
}

.constellation-cube {
  color: var(--bright-green);
  fill: #36d5861c;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.constellation-cube-gold {
  color: var(--gold);
  filter: drop-shadow(0 0 5px #ffb81ccc);
  fill: #ffb81c24;
}

.constellation-cube .cube-top {
  fill: #b7f6d01a;
}

.constellation-cube-gold .cube-top {
  fill: #fff0a833;
}

.constellation-cube .cube-left {
  fill: #00774938;
}

.constellation-cube .cube-right {
  fill: #36d5862b;
}

.hero-art-label {
  bottom: 20px;
  color: var(--gold-soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  position: absolute;
  right: 22px;
}

.community-section-intro {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 18px;
}

.community-section-intro h2 {
  margin: 5px 0 0;
}

.community-section-intro > p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  max-width: 420px;
}

.community-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-links .wallet-step {
  border-radius: 9px;
  display: block;
  margin: 0;
  min-width: 0;
  padding: 7px 14px 7px 40px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.community-links .community-dot {
  left: 16px;
  margin-top: 0;
  position: absolute;
  top: 1.28em;
  transform: translateY(-50%);
}

.community-links .wallet-step:hover {
  border-color: #36d58688;
  box-shadow: 0 18px 38px #0005;
  transform: translateY(-2px);
}

.community-links .wallet-step:nth-child(n + 5) {
  grid-column: span 2;
}

.community-links details > summary {
  display: block;
  font-weight: 400;
  line-height: 1.2;
  padding-right: 56px;
}

.community-links details > summary::marker {
  color: var(--gold);
}

.community-link-list {
  gap: 0;
  margin-top: 12px;
}

.community-link-list li {
  border-top: 1px solid #27513b99;
  padding: 9px 0;
}

.community-link-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.community-link-list li:last-child {
  padding-bottom: 0;
}

.community-link-list li > a {
  color: var(--gold-soft);
  display: inline-block;
  font-weight: 850;
  text-underline-offset: 4px;
}

.community-link-list li > a:hover,
.community-link-list li > a:focus-visible {
  color: var(--ink);
}

.link-health-status {
  border: 1px solid #365845;
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  margin-left: 8px;
  padding: 4px 7px;
  text-transform: uppercase;
  vertical-align: middle;
}

.link-health-status[data-status="online"] {
  border-color: #4fd587;
  color: #8ff0b6;
}

.link-health-status[data-status="problem"] {
  border-color: #d96868;
  color: #ff9d9d;
}

.link-health-status[data-status="unknown"] {
  border-color: #d7a94a;
  color: var(--gold-soft);
}

.link-description {
  color: var(--muted);
  display: block;
  font-size: .84rem;
  line-height: 1.45;
  margin-top: 4px;
}

.endpoint-list li {
  align-items: center;
  display: grid;
  gap: 8px 20px;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
}

.endpoint-list li strong {
  color: var(--ink);
}

.endpoint-list code {
  margin-top: 0;
}

.request-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.community-request-form {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.community-request-form label {
  color: var(--ink);
  font-weight: 700;
}

.community-request-form textarea {
  background: #03120c88;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.community-request-submit-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.community-request-status {
  color: var(--gold-soft);
  font-size: .86rem;
  font-weight: 800;
  margin: 0;
}

.community-request-form button[type="submit"] {
  background: linear-gradient(180deg, #f6d98b, #d7a94a);
  border: 1px solid #f6d98b;
  border-radius: 8px;
  color: #06120c;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  flex: 0 0 auto;
  padding: 9px 16px;
  text-decoration: none;
}

.q-and-a-intro,
.q-and-a-sources {
  color: var(--muted);
  line-height: 1.55;
}

.q-and-a-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.q-and-a-sources a {
  color: var(--gold-soft);
  font-weight: 800;
  text-underline-offset: 3px;
}

.community-question-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}

.faq-quick-answer {
  color: var(--muted);
  line-height: 1.55;
}

.community-answer-detail {
  margin: 10px 0;
}

.community-answer-detail > summary {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-soft);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
  width: fit-content;
}

.community-answer-detail > summary:hover,
.community-answer-detail > summary:focus-visible {
  background: var(--gold);
  color: #03120c;
}

.community-answer-detail > summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.request-item {
  background: #03120c88;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
}

.request-item h3 {
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 12px;
}

.request-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.request-actions a,
.hash-copy-link {
  color: var(--gold-soft);
  font-size: .8rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.hash-copy-link {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}

.community-links details > .summary-hash-link {
  display: block;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  vertical-align: baseline;
}

.community-links details {
  display: block;
  position: relative;
}

.community-links .wallet-step > div {
  min-width: 0;
  width: 100%;
}

@media (max-width: 760px) {
  .community-hero {
    gap: 20px;
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .community-hero-art {
    min-height: 240px;
  }

  .community-section-intro {
    align-items: flex-start;
    display: block;
  }

  .community-section-intro > p {
    margin-top: 8px;
  }

  .community-links {
    grid-template-columns: 1fr;
  }

  .community-links .wallet-step:nth-child(n + 5) {
    grid-column: auto;
  }

  .endpoint-list li {
    display: block;
  }

  .endpoint-list code {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .constellation-links path {
    animation: constellation-drift 9s ease-in-out infinite alternate;
  }

  .constellation-cube {
    animation: constellation-pulse 3.4s ease-in-out infinite alternate;
  }

  .constellation-cube:nth-child(2n) {
    animation-delay: -1.3s;
  }
}

@keyframes constellation-drift {
  from { opacity: .55; }
  to { opacity: 1; }
}

@keyframes constellation-pulse {
  from { opacity: .72; }
  to { opacity: 1; }
}
