/* AC community */
.community-page {
  background:
    radial-gradient(circle at 82% 2%, rgba(255, 90, 45, .08), transparent 30rem),
    var(--paper);
  overflow-x: hidden;
}
.main-nav a.is-current { color: var(--ink); background: rgba(255, 255, 255, .62); }

.community-hero {
  position: relative;
  padding: 66px 0 74px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.community-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -58%;
  width: 750px;
  height: 750px;
  border: 1px solid rgba(20, 20, 16, .07);
  border-radius: 50%;
  pointer-events: none;
}
.community-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 20, 16, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 16, .03) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.75), transparent 62%);
  pointer-events: none;
}
.community-hero .container { position: relative; z-index: 2; }
.community-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
}
.community-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-top: 34px;
}
.community-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 7.6vw, 108px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.07em;
}
.community-hero h1 .serif-accent { color: var(--orange); }
.community-hero p {
  max-width: 430px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.community-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding-bottom: 8px;
}
.community-count {
  display: grid;
  justify-items: end;
  padding: 18px 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 247, .65);
  backdrop-filter: blur(8px);
}
.count-label { color: var(--muted-2); font-family: var(--font-display); font-size: 7px; letter-spacing: .18em; }
.community-count strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.06em;
}
.count-note { margin-top: 4px; color: var(--muted); font-size: 9px; }
.community-hero-side .btn { min-height: 44px; height: 44px; font-size: 11px; border-radius: 9px; }

.community-section { padding: 66px 0 78px; }
.community-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.toolbar-copy .section-index { padding-top: 0; }
.toolbar-copy h2 {
  margin-top: 11px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.045em;
}
.community-tools { display: flex; align-items: center; gap: 14px; }
.community-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted-2);
}
.community-search:focus-within { border-color: var(--ink); }
.community-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.community-search input::placeholder { color: #a9a294; }
.sort-note { color: var(--muted-2); font-size: 8.5px; white-space: nowrap; }

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.community-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.community-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 45px rgba(54, 44, 23, .11); }
.community-preview {
  position: relative;
  height: 205px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, var(--tone-a, #ff9d7d), transparent 45%),
    linear-gradient(138deg, var(--tone-b, #ffe0d5), var(--tone-c, #f4c04c));
}
.community-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 80%);
}
.community-browser {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 5px;
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(6px);
}
.community-browser i { width: 4px; height: 4px; border-radius: 50%; background: rgba(20,20,16,.3); }
.community-browser span {
  flex: 1;
  overflow: hidden;
  color: rgba(20, 20, 16, .62);
  font-family: var(--font-display);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-public-tag {
  position: absolute;
  z-index: 3;
  right: 17px;
  top: 49px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #2b5f48;
  font-family: var(--font-display);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: .08em;
}
.community-public-tag .live-dot { width: 4px; height: 4px; background: var(--green); box-shadow: none; }
.community-monogram {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: rgba(20, 20, 16, .82);
  font-family: var(--font-serif);
  font-size: 62px;
  font-style: italic;
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.08em;
}
.community-monogram.is-wide {
  font-family: var(--font-display);
  font-size: 45px;
  font-style: normal;
  letter-spacing: -.1em;
}
.community-since {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: rgba(20, 20, 16, .48);
  font-family: var(--font-display);
  font-size: 6.5px;
  letter-spacing: .1em;
}
.community-body { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 15px; }
.community-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.community-title-row h3 { overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.community-route {
  display: inline-flex;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 8.5px;
}
.community-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-2);
  font-size: 11px;
  transition: transform .25s, background .25s, color .25s;
}
.community-card:hover .community-arrow { background: var(--ink); border-color: var(--ink); color: var(--white); transform: rotate(45deg); }
.community-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
}
.community-meta i { width: 2px; height: 2px; border-radius: 50%; background: #bdb5a6; }
.community-meta .spacer { flex: 1; }

.community-skeleton {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper-soft);
}
.community-skeleton i { display: block; height: 205px; background: linear-gradient(90deg, #ece5d8 25%, #f8f3e9 37%, #ece5d8 63%); background-size: 400% 100%; animation: communityShimmer 1.4s ease infinite; }
.community-skeleton b, .community-skeleton span { display: block; height: 10px; margin: 16px 18px 0; border-radius: 999px; background: #ece5d8; }
.community-skeleton b { width: 55%; }
.community-skeleton span { width: 75%; height: 7px; margin-top: 9px; margin-bottom: 20px; }
@keyframes communityShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.community-empty {
  display: grid;
  justify-items: center;
  padding: 74px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  text-align: center;
  background: rgba(251, 249, 244, .6);
}
.empty-orbit { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 17px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); font-size: 25px; }
.community-empty h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: -.04em; }
.community-empty p { max-width: 360px; margin: 9px 0 21px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.community-empty .btn { min-height: 39px; height: 39px; font-size: 10px; border-radius: 8px; }
.community-no-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  color: var(--muted);
  font-size: 11px;
}
.community-no-results button { border: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.community-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8.5px;
}
.community-note .live-dot { width: 4px; height: 4px; background: var(--green); box-shadow: none; }
.community-note a { margin-left: auto; color: var(--ink); font-weight: 600; }

.community-footer { padding: 34px 0 24px; border-top: 1px solid var(--line); background: #ebe5d8; }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand-row > span { color: var(--muted-2); font-family: var(--font-display); font-size: 7px; letter-spacing: .16em; }
.community-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid rgba(20,20,16,.12);
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .1em;
}
.footer-status { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.footer-status .live-dot { width: 4px; height: 4px; background: var(--green); box-shadow: none; }
.community-footer-bottom a:hover { color: var(--orange-deep); }

@media (max-width: 1000px) {
  .community-hero-row { align-items: flex-start; }
  .community-hero-side { align-items: flex-start; }
  .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .community-hero { padding: 44px 0 48px; }
  .community-hero-row { flex-direction: column; gap: 30px; margin-top: 24px; }
  .community-hero h1 { font-size: clamp(50px, 14vw, 72px); }
  .community-hero p { font-size: 13px; }
  .community-hero-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .community-count { padding: 12px 16px; }
  .community-count strong { font-size: 34px; }
  .community-hero-side .btn { min-height: 40px; height: 40px; }
  .community-section { padding: 44px 0 54px; }
  .community-toolbar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .community-tools { width: 100%; }
  .community-search { flex: 1; width: auto; }
  .sort-note { display: none; }
  .community-grid { grid-template-columns: 1fr; gap: 14px; }
  .community-preview { height: 180px; }
  .community-note { flex-wrap: wrap; }
  .community-note a { margin-left: 0; width: 100%; }
  .community-footer-bottom { flex-wrap: wrap; gap: 10px; }
  .footer-status { order: 3; width: 100%; }
}
