.voyage-community {
  background: #000;
  color: #fff;
  font-family: 'Barlow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.community-social,
.community-journal {
  width: min(86%, 1120px);
  margin-inline: auto;
  scroll-margin-top: 5rem;
}

.community-social {
  padding-top: clamp(3.75rem, 6vw, 6rem);
  text-align: center;
}

.community-kicker {
  margin: 0 0 0.85rem;
  color: rgb(255 255 255 / 67%);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.community-social-header h2,
.community-journal-header h2 {
  margin: 0;
  font: italic 400 clamp(3.2rem, 7vw, 6.2rem) / 0.89 'Instrument Serif', Georgia, serif;
  letter-spacing: -0.035em;
}

.community-social-header > p:not(.community-kicker),
.community-journal-header > p:not(.community-kicker) {
  margin: 1.15rem 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  line-height: 1.65;
}

.community-about {
  min-height: 44px;
  margin-top: .85rem;
  padding: .45rem 1rem;
  border-radius: 9999px;
  font-size: .85rem;
}

.community-about:hover { background-color: rgb(255 255 255 / 9%); }

.community-constellation {
  position: relative;
  isolation: isolate;
  min-height: clamp(25rem, 56svh, 35rem);
  margin-top: 1.1rem;
}

.community-orbit {
  position: absolute;
  inset: 32% 7% 21%;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.community-orbit::after {
  position: absolute;
  inset: -1.2rem 2.7rem;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: inherit;
  transform: rotate(18deg);
  content: '';
}

.community-avatar {
  position: absolute;
  top: 49%;
  left: 50%;
  width: min(56%, 58svh, 34rem);
  margin: 0;
  transform: translate(-50%, -50%);
}

.community-avatar img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 67% at 51% 48%, #000 39%, transparent 79%);
  mask-image: radial-gradient(ellipse 70% 67% at 51% 48%, #000 39%, transparent 79%);
}

.community-avatar figcaption {
  position: absolute;
  inset: auto 0 1%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem;
  color: rgb(255 255 255 / 85%);
  font-size: 0.77rem;
  letter-spacing: 0.14em;
}

.community-avatar figcaption [lang='en'] {
  font: italic 400 1.5rem / 1 'Instrument Serif', Georgia, serif;
  letter-spacing: 0;
}

.community-profile-position {
  position: absolute;
  z-index: 2;
  width: clamp(10.75rem, 22vw, 15rem);
  animation: community-float 6.4s ease-in-out infinite;
}

.community-profile-left {
  top: 53%;
  left: 5%;
}

.community-profile-right {
  top: 29%;
  right: 5%;
  animation-delay: -2.4s;
}

.community-profile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 5.1rem;
  padding: 0.85rem;
  border: 1px solid rgb(255 255 255 / 21%);
  border-radius: 1.05rem;
  background-color: rgb(22 22 22 / 63%);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.community-profile:is(:hover, :focus-visible) {
  border-color: rgb(255 255 255 / 58%);
  transform: translateY(-4px);
}

.community-profile:focus-visible,
.community-note summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.community-profile img {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 24%;
}

.community-profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 0.16rem;
  line-height: 1.25;
}

.community-profile-copy strong {
  font-size: 0.94rem;
  font-weight: 550;
}

.community-profile-copy > span {
  color: rgb(255 255 255 / 72%);
  font-size: 0.72rem;
  white-space: nowrap;
}

.community-profile-copy b {
  color: #fff;
  font-weight: 550;
}

.community-profile-arrow {
  flex: none;
  width: 0.86rem;
  height: 0.86rem;
  align-self: flex-start;
  margin-top: 0.22rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.community-journal {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(4rem, 7vw, 7rem) clamp(5rem, 9vw, 9rem);
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.community-note-list {
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.community-note {
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.community-note summary {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) max-content 1rem;
  align-items: center;
  gap: clamp(0.65rem, 1.45vw, 1.25rem);
  padding-block: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.community-note summary::-webkit-details-marker { display: none; }

.community-note-number {
  align-self: start;
  padding-top: 0.1rem;
  color: rgb(255 255 255 / 56%);
  font: italic 400 1.32rem / 1 'Instrument Serif', Georgia, serif;
}

.community-note-main {
  display: grid;
  gap: 0.3rem;
}

.community-note-title {
  font-size: clamp(0.97rem, 1.6vw, 1.16rem);
  font-weight: 500;
  line-height: 1.45;
}

.community-note-intro,
.community-note-tag {
  color: rgb(255 255 255 / 69%);
  font-size: 0.78rem;
  line-height: 1.65;
}

.community-note-tag {
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 99px;
  padding: 0.22rem 0.55rem;
}

.community-note-toggle {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  color: rgb(255 255 255 / 78%);
}

.community-note-toggle::before,
.community-note-toggle::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: '';
}

.community-note-toggle::after { transform: rotate(90deg); }
.community-note[open] .community-note-toggle::after { display: none; }
.community-note summary:hover .community-note-toggle { color: #fff; }

.community-article {
  max-width: 64ch;
  margin: 0 1rem 1.35rem 3rem;
  color: rgb(255 255 255 / 82%);
  font-size: .94rem;
  line-height: 1.85;
}

.community-article p + p { margin-top: .95rem; }

@keyframes community-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.48rem); }
}

@media (max-width: 760px) {
  .community-social,
  .community-journal { width: calc(100% - 2.5rem); }

  .community-social { padding-top: 4.5rem; }

  .community-constellation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    min-height: 0;
    margin-top: 0.8rem;
    padding-bottom: 3.1rem;
  }

  .community-orbit { inset: 32% 2% 29%; }

  .community-avatar {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    width: min(100%, 27rem);
    margin: 0 auto -0.15rem;
    transform: none;
  }

  .community-profile-position {
    position: relative;
    inset: auto;
    width: auto;
    animation: none;
  }

  .community-profile {
    min-height: 4.2rem;
    padding: 0.62rem;
    gap: 0.45rem;
    border-radius: 0.88rem;
  }

  .community-profile img { width: 2.05rem; height: 2.05rem; }
  .community-profile-copy strong { font-size: 0.82rem; }
  .community-profile-copy > span { font-size: 0.62rem; }
  .community-profile-arrow { width: 0.68rem; height: 0.68rem; }

  .community-journal { grid-template-columns: minmax(0, 1fr); gap: 1.85rem; }
  .community-note summary { grid-template-columns: 1.3rem minmax(0, 1fr) max-content 0.8rem; gap: 0.5rem; }
  .community-article { margin-inline: 0; }
}

@media (max-width: 370px) {
  .community-profile-arrow { display: none; }
  .community-note summary { grid-template-columns: 1rem minmax(0, 1fr) 0.8rem; }
  .community-note-tag { grid-area: 2 / 2; justify-self: start; }
  .community-note-toggle { grid-area: 1 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .community-profile-position { animation: none; }
  .community-profile { transition: none; }
  .community-profile:is(:hover, :focus-visible) { transform: none; }
}
