.community {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.community-page-header { justify-content: space-between; }

.community-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 630;
  white-space: nowrap;
}

.community-primary:hover { background: #5235bd; }
.community-primary:disabled { opacity: .52; cursor: default; }

.community-plus {
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
}

.community-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 19px;
}

.community-filter {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--label);
  font-size: 13px;
  font-weight: 580;
  white-space: nowrap;
}

.community-filter:hover { background: #f8f5fc; }
.community-filter[aria-pressed="true"] {
  border-color: #ebe3f7;
  background: #f2edf9;
  color: #573bac;
  font-weight: 660;
}

.community-spotlight {
  --spotlight-surface: #2b233d;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  min-height: 222px;
  margin-bottom: 28px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  background: var(--spotlight-surface);
  color: #fff;
}

.community-spotlight-copy {
  z-index: 1;
  align-self: center;
  padding: clamp(19px, 3vw, 32px);
}

.community-spotlight-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #d8c9f1;
  font-size: 12px;
  font-weight: 650;
}

.community-spotlight-label::before {
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
}

.community-spotlight-title {
  max-width: 18em;
  font: 750 clamp(21px, 2.2vw, 31px)/1.36 "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.community-spotlight-title span { display: block; }

.community-spotlight-byline { margin-top: 10px; color: #ddd3ec; font-size: 12px; }

.community-spotlight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #f0e6ff;
  font-size: 13px;
  font-weight: 650;
}

.community-spotlight-link::before,
.community-popular-link::after {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  content: "";
}

.community-spotlight-link::before { order: 1; }
.community-spotlight-link::after { position: absolute; z-index: 2; inset: 0; content: ""; }
.community-spotlight-link:focus-visible { outline: none; }
.community-spotlight-link:focus-visible::after { box-shadow: inset 0 0 0 3px #d4bfff; }
.community-spotlight:hover .community-spotlight-link { text-decoration: underline; text-underline-offset: 4px; }

.community-spotlight-image { position: relative; min-width: 0; }
.community-spotlight-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 53% 55%; }
.community-spotlight-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--spotlight-surface), #2b233d38 23%, transparent 52%);
  content: "";
}

.community-feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 26%, 285px);
  gap: clamp(20px, 3.6vw, 46px);
  align-items: start;
}

.community-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.community-section-header h2 { font-size: 17px; font-weight: 700; }
.community-section-header p { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.community-list { border-top: 1px solid var(--line); }

.community-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 22px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.community-card-copy { flex: 1 1 auto; min-width: 0; }
.community-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; }

.community-category {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f2ecfa;
  color: #5c4587;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 630;
}

.community-category[data-category="trips"] { background: #eaf3ef; color: #2c665b; }
.community-category[data-category="events"] { background: #f9eee3; color: #834f2d; }
.community-category[data-category="sales"] { background: #edf0f9; color: #435988; }
.community-category[data-category="partners"] { background: #f6eef3; color: #804f70; }

.community-card-title { margin: 6px 0 4px; font-size: clamp(15px, 1.36vw, 18px); font-weight: 690; line-height: 1.4; }
.community-card-link, .community-popular-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
  font-weight: inherit;
  overflow-wrap: anywhere;
}

.community-card-link::after { position: absolute; inset: 0; border-radius: 5px; content: ""; }
.community-card-link:focus-visible { outline: none; }
.community-card-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.community-card:hover .community-card-link, .community-popular-link:hover .community-popular-title { color: #5338ba; }

.community-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--label);
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.community-card-footer, .community-byline, .community-card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.community-card-footer { justify-content: space-between; gap: 6px 12px; margin-top: 10px; }
.community-byline { gap: 6px; color: var(--label); font-size: 11.5px; font-weight: 620; }
.community-card-stats { gap: 4px 10px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.community-card-stats > span { white-space: nowrap; }

.community-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #eee8fc;
  color: #5d4990;
  font-size: 11px;
  font-weight: 670;
}

.community-avatar[data-tone="1"] { background: #e4f1ea; color: #337358; }
.community-avatar[data-tone="2"] { background: #f8eae1; color: #8d543a; }
.community-avatar[data-tone="3"] { background: #e8eef9; color: #3f5d95; }

.community-card-image {
  flex: 0 0 clamp(76px, 12vw, 143px);
  overflow: hidden;
  aspect-ratio: 1.5;
  border-radius: 8px;
  background: #f3f1f7;
}

.community-card-image img { width: 100%; height: 100%; object-fit: cover; }
.community-feed-aside { display: grid; gap: 12px; }

.community-aside-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #ebe6ef;
  border-radius: 12px;
  background: #fbfafc;
}

.community-aside-card h2 { font-size: 14px; font-weight: 690; }
.community-popular { margin-top: 3px; }
.community-popular li + li { border-top: 1px solid #ece8f0; }

.community-popular-link {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 14px 10px 0;
}

.community-popular-link::after { position: absolute; top: 16px; right: 2px; color: #7a6d93; }
.community-popular li:last-child .community-popular-link { padding-bottom: 1px; }
.community-popular-title { font-size: 12px; font-weight: 650; line-height: 1.5; }
.community-popular-meta { color: var(--muted); font-size: 11px; }

.community-aside-card--support {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-color: #ece3f6;
  background: #f8f4fc;
}

.community-aside-card--support p { margin-top: 3px; color: var(--label); font-size: 12px; }

.community-token {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #efe6f8;
  color: #705198;
  font-size: 21px;
  line-height: 1;
}

@media (max-width: 760px) {
  .community-feed-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 605px) {
  .community-spotlight { grid-template-columns: minmax(0, 1fr); }
  .community-spotlight-image { grid-row: 1; aspect-ratio: 2.15; }
  .community-spotlight-image::after { background: linear-gradient(0deg, var(--spotlight-surface), transparent 33%); }
  .community-spotlight-copy { padding: 14px 16px 17px; }
  .community-spotlight-title { font-size: clamp(18px, 5.5vw, 22px); }
}

@media (max-width: 460px) {
  .community-filters { gap: 3px; margin-bottom: 14px; }
  .community-filter { padding: 5px 7px; font-size: 12px; }
  .community-spotlight { margin-bottom: 20px; }
  .community-card { gap: 8px; padding: 12px 0; }
  .community-card-image { flex-basis: clamp(55px, 17vw, 72px); }
  .community-card-footer { margin-top: 8px; }
}
.community-page-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.community-page-actions .community-filter { min-height: 34px; }
.community-feed-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 18px 0; color: var(--muted); }
.community [data-error], .community-dialog [data-error] { color: #972748; }
.community-aside-card h2 span { margin-inline-start: 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.community-live-rank-title { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.community-live-rank { flex: none; min-width: 14px; color: #674bb0; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.community-status { padding: 2px 6px; border-radius: 5px; background: #fcf0d8; color: #7a4c24; font-size: 12px; }
.community-status[data-status=approved] { background: #e5f4ec; color: #286045; }
.community-status[data-status=rejected] { background: #fce9f0; color: #872c52; }
#community-more { margin-top: 10px; }
.h5-account .community-message-open { display: flex; align-items: center; justify-content: center; gap: 5px; }
#community-unread { min-width: 17px; padding-inline: 4px; border-radius: 10px; background: #b52249; color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
