/* The community skin is active only on the member home route. */
.community-screen {
  --home-green: #357820;
  --home-surface: #f8f6f2;
  display: flex;
  flex-direction: column;
}
.community-screen .status { display: none; }
.community-screen .phone-content {
  flex: 1;
  min-height: 0;
  height: auto;
  background: var(--home-surface);
  scroll-behavior: auto;
}
#home {
  padding: 0;
  background: var(--home-surface);
  color: #1d2323;
  font-family: Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#home button { color: inherit; }
#home button:focus-visible, #home input:focus-visible,
.community-screen .navitem:focus-visible {
  outline: 3px solid #1670b6;
  outline-offset: -3px;
}
.community-hero {
  padding: 19px 18px;
  aspect-ratio: 1.64;
  background: #268ee9 url("community-hero.webp") center / cover no-repeat;
  color: white;
  text-shadow: 0 1px 4px #18487888;
}
.community-wordmark { font-size: 28px; font-weight: 750; line-height: 1; letter-spacing: -.06em; }
.community-identity { margin: 18px 0 0; display: flex; gap: 9px; align-items: center; width: 61%; }
.community-identity .home-avatar {
  width: 48px; height: 48px; flex: 0 0 48px;
  border: 2px solid white; background: #fff;
  box-shadow: 0 1px 6px #164f6c35;
}
.community-profile { min-width: 0; }
.community-profile h2 { font-size: 21px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-profile p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
  font-weight: 550; font-size: 12px; line-height: 1.5; margin: 3px 0 0;
}
#home-date {
  display: inline-block; margin: 9px 0 0; padding: 3px 8px;
  border-radius: 12px; color: #fff; background: #19527b9c; font-size: 10px;
}
.community-body { position: relative; margin-top: -22px; padding: 0 9px 12px; }
.community-shortcuts, .community-panel {
  background: white; border-radius: 16px;
  box-shadow: 0 3px 10px #4437190c;
}
.community-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 7px 1px; }
.community-shortcuts button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 51px; padding: 0 4px; background: transparent; font-size: clamp(15px,4.2vw,18px);
}
.community-shortcuts button + button { border-left: 1px solid #edece8; }
.home-art {
  display: inline-block; flex: none; width: 38px; aspect-ratio: 1;
  background-image: url("home-icons.webp"); background-size: 1100% 100%;
  background-position: var(--home-icon-position,0%) center; mix-blend-mode: multiply;
}
#home .art-avatar { width: 100%; height: 100%; }
#home .art-avatar[hidden] { display: none; }
.art-partner, .art-video { width: 46px; }
.art-video { --home-icon-position: 10%; }
.art-notice { --home-icon-position: 20%; width: 63px; }
.art-search { --home-icon-position: 30%; }
.art-parcel { --home-icon-position: 40%; }
.art-clock { --home-icon-position: 100%; width: 20px; }
.community-footnote { margin: 7px 0 8px; font-size: 10px; color: #62645e; text-align: center; }
.community-panel { margin-top: 9px; padding: 5px 12px 12px; }
.community-heading { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 38px; }
.community-heading h3 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.025em; }
#home .community-heading button {
  min-height: 48px; padding: 0 3px 0 8px;
  color: var(--home-green); background: transparent; font-size: 13px; font-weight: 650;
}
#home i { font: 600 20px/1 Arial,sans-serif; vertical-align: -1px; }
.community-empty { display: grid; justify-items: center; gap: 2px; color: #6a7068; font-size: 11px; }
.community-reminders { list-style: none; display: grid; gap: 5px; margin: 0; padding: 0; }
.community-reminders li {
  display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 10px;
  border-radius: 10px; background: #f3f7ef; font-size: 13px;
}
.community-reminders time { padding-right: 9px; border-right: 1px solid #bfd0b9; font-variant-numeric: tabular-nums; font-weight: 700; }
.community-reminders small { margin-left: auto; color: #65735f; font-size: 10px; }
.community-managers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.community-managers button {
  display: flex; align-items: center; gap: 6px; min-height: 61px; padding: 8px;
  text-align: left; background: #f0f7ed; border-radius: 11px;
}
.community-managers button + button { background: #fcf4e6; }
.community-managers b { font-size: 14px; }
.community-managers small { display: block; margin-top: 3px; font-size: 12px; color: #60665d; }
.community-managers i { margin-left: auto; color: #687465; }
.community-screen .phone-nav:not([hidden]) {
  position: relative; flex: none; height: auto;
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
  background: #fff; border-top: 1px solid #eceee8;
  padding: 0 3px env(safe-area-inset-bottom,0px);
}
.community-screen .navitem {
  min-width: 0; min-height: 54px; padding: 4px 1px;
  color: #5f625f; font-size: 11px;
}
.community-screen .navitem.on { color: var(--home-green); }
.community-screen .navitem span { display: none; }
.community-screen .navitem::before {
  display: block; content: ""; width: 23px; height: 23px; margin: 0 auto 3px;
  background: url("home-icons.webp") var(--home-icon-position) center / 1100% 100% no-repeat;
}
.community-screen .navitem[data-page="home"] { --home-icon-position: 50%; }
.community-screen .navitem[data-page="discover"] { --home-icon-position: 60%; }
.community-screen .navitem[data-page="publish"] { --home-icon-position: 70%; }
.community-screen .navitem[data-page="cart"] { --home-icon-position: 80%; }
.community-screen .navitem[data-page="mine"] { --home-icon-position: 90%; }
.community-screen .navitem.plus::before { width: 31px; height: 31px; margin-top: -6px; }
@media (max-width: 600px) {
  .phone.community-screen {
    width: 100vw; max-width: none; flex: 0 0 100vw; height: 100vh; height: 100dvh;
    border: 0; border-radius: 0; box-shadow: none;
  }
}
@media (max-width: 359px) {
  .community-managers .home-art { width: 26px; }
  .community-managers b { font-size: 13px; }
  .community-reminders small { display: none; }
}
