.community {
  width: min(100%, 1080px);
  margin: 88px auto 0;
  position: relative;
  z-index: 3;
  font-family: var(--font-hero);
  color: #f5f8fc;
  text-align: left;
}

.community__heading { margin-bottom: 28px; }
.community__eyebrow { font-size: 11px; letter-spacing: .2em; color: #99afc6; }
.community__heading h2 { margin: 14px 0 12px; font-size: clamp(28px, 3.8vw, 42px); font-weight: 500; letter-spacing: -.025em; }
.community__heading > p:last-child { color: #aab5c4; font-size: 15px; line-height: 1.6; }
.community__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.community__item { display: flex; align-items: stretch; min-width: 0; border: 1px solid rgba(179, 207, 238, .18); border-radius: 16px; background: rgba(4, 9, 18, .62); transition: border-color .2s, background .2s; }
.community__item:hover { border-color: rgba(184, 217, 255, .5); background: rgba(27, 43, 64, .75); }
.community__link { min-width: 0; flex: 1; display: flex; align-items: center; gap: 16px; padding: 22px 20px; color: inherit; text-decoration: none; border-radius: inherit; }
.community__link img { flex-shrink: 0; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.community__identity { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.community__platform { font-size: 15px; font-weight: 500; }
.community__account { font-size: 12px; line-height: 1.5; color: #aab8c9; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
.community__arrow { margin-left: auto; color: #99afc6; }
.community__item--invite .community__arrow { display: none; }
.community__item--invite .community__link { -webkit-touch-callout: default; user-select: text; -webkit-user-select: text; }
.community__copy { align-self: center; margin: 12px 16px 12px 0; padding: 10px 14px; min-height: 44px; border: 1px solid rgba(179, 207, 238, .28); border-radius: 10px; background: rgba(142, 186, 235, .09); color: #dbeaff; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.community__copy:hover { background: rgba(142, 186, 235, .2); }
.community__link:focus-visible, .community__copy:focus-visible { outline: 2px solid #c6e0ff; outline-offset: 4px; }
.community__hint { margin: 16px 0 0; color: #99aabd; font-size: 12px; line-height: 1.6; }
.community__status { min-height: 1.5em; margin: 6px 0 0; color: #dbeaff; font-size: 12px; }

/* Keep the waitlist, community and legal links in normal flow on the last page. */
.page-starry--community { height: auto; min-height: 100vh; contain-intrinsic-size: auto 1300px; }
.page-starry--community .story-block { height: auto; min-height: 100vh; }
.page-starry--community .story-meta { position: relative; bottom: auto; margin-top: 56px; }
.page-starry--community .community { margin-top: 100px; }

@media (min-width: 1000px) {
  /* Leave room for the existing fixed waitlist/download controls on the left. */
  .page-starry--community .community { width: calc(100% - 120px); margin-left: 120px; margin-right: 0; }
}

@media (max-width: 800px) {
  .community__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community__item--invite { grid-column: span 2; }
}
@media (max-width: 520px) {
  .community { margin-top: 64px; }
  .community__links { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .community__item--invite { grid-column: auto; }
  .community__link { padding: 18px 16px; gap: 14px; }
  .community__copy { margin-right: 12px; padding: 8px; }
  .community__item--invite .community__arrow { display: none; }
  .page-starry--community .community { margin-top: 72px; }
  .page-starry--community .story-meta { margin-top: 40px; }
  .page-starry--community .story-block { padding-bottom: 110px; }
}
