.mgf-community {
  max-width: var(--mgf-container);
  margin: var(--mgf-space-8) auto var(--mgf-space-6);
  padding: 0 var(--mgf-space-4);
}

.mgf-detail__container > .mgf-community,
.mgf-reading__tail .mgf-community {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

.mgf-community__inner {
  display: flex;
  align-items: center;
  gap: var(--mgf-space-5);
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--mgf-color-border);
  border-radius: 14px;
  background: transparent;
}

.mgf-community__logo {
  display: inline-flex;
  flex: 0 0 auto;
  color: #5865f2;
}

.mgf-community__logo svg {
  display: block;
  width: 3.6rem;
  height: auto;
}

.mgf-community__copy {
  flex: 1;
  min-width: 0;
  padding-left: var(--mgf-space-5);
  border-left: 1px solid var(--mgf-color-border);
}

.mgf-community__title {
	margin: 0;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.3;
	font-weight: 600;
}

.mgf-community__title span {
  color: var(--mgf-color-accent);
}

.mgf-community__text {
  margin: 0.35rem 0 0;
  color: var(--mgf-color-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.mgf-community__join {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--mgf-color-accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mgf-community__join svg {
  display: block;
  width: 1.35rem;
  height: auto;
}

.mgf-community__join:hover,
.mgf-community__join:focus-visible {
  color: #111 !important;
  background: color-mix(in srgb, var(--mgf-color-accent) 88%, #000);
}

.mgf-community__join:focus-visible {
  outline: 2px solid var(--mgf-color-focus);
  outline-offset: 3px;
}

.mgf-community__vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .mgf-community__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .mgf-community__copy {
    flex: 1 1 12rem;
    padding: 0;
    border: none;
  }
  .mgf-community__logo {
    display: none;
  }

  .mgf-community__join {
    width: 100%;
    justify-content: center;
  }
}
