:root {
  --community-bg: #0d0d0d;
  --community-panel: #171717;
  --community-text: #f4f4f4;
  --community-muted: rgba(255, 255, 255, 0.58);
  --community-line: rgba(255, 255, 255, 0.12);
  --community-max-width: 1240px;
  --font-display: 'Funnel Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Datatype', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'Doto', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--community-bg);
}

body {
  margin: 0;
  background: var(--community-bg);
  color: var(--community-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.community-page {
  min-height: 100vh;
  overflow: hidden;
}

.community-header,
.community-intro,
.community-feed,
.community-footer {
  width: min(calc(100% - 80px), var(--community-max-width));
  margin: 0 auto;
}

.community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 42px 0;
}

.community-brand {
  display: inline-flex;
}

.community-brand img {
  display: block;
  width: auto;
  height: 38px;
}

.community-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.community-contact {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.community-contact:hover {
  color: #fff;
}

.community-download {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 9px;
  padding: 0 20px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.community-download span {
  font-size: 1.2rem;
  line-height: 1;
}

.community-intro {
  padding: 88px 0 68px;
  text-align: center;
}

.community-eyebrow {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-label);
  font-size: 0.77rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.community-intro h1 {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

.community-intro > p:last-child {
  max-width: 590px;
  margin: 26px auto 0;
  color: var(--community-muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.55;
}

.community-feed {
  padding-bottom: 112px;
}

.social-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.social-column {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

/* Third-party embeds set different default widths, so each one fills its grid column. */
.social-column > iframe,
.social-column > blockquote,
.social-column > div {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.social-column > blockquote {
  margin: 0 !important;
}

.social-column iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.community-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--community-line);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.86rem;
}

.community-footer p {
  margin: 0;
}

.community-footer div {
  display: flex;
  gap: 22px;
}

.community-footer a {
  text-decoration: none;
}

.community-footer a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .community-header,
  .community-intro,
  .community-feed,
  .community-footer {
    width: min(calc(100% - 48px), var(--community-max-width));
  }

  .community-intro {
    padding: 66px 0 52px;
  }

  .social-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-column:nth-child(3) {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .community-header,
  .community-intro,
  .community-feed,
  .community-footer {
    width: min(calc(100% - 32px), var(--community-max-width));
  }

  .community-header {
    padding: 24px 0;
  }

  .community-brand img {
    height: 31px;
  }

  .community-contact {
    display: none;
  }

  .community-header-actions {
    gap: 0;
  }

  .community-download {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .community-intro {
    padding: 58px 0 44px;
    text-align: left;
  }

  .community-eyebrow {
    margin-bottom: 16px;
  }

  .community-intro h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .community-intro > p:last-child {
    margin-left: 0;
  }

  .social-wall,
  .social-column,
  .social-column:nth-child(3) {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-feed {
    padding-bottom: 72px;
  }

  .community-footer {
    display: block;
    padding: 26px 0 32px;
    line-height: 1.6;
  }

  .community-footer div {
    gap: 16px;
    margin-top: 10px;
  }
}
