/* ==========================================================================
   Community page. Mobile-first; ≥900px adds the desktop banner/grids.
   Shared bits (shell, Discover card, gold promo, right-rail rows) live in
   pages/ce-shared.css. Widths are matched to the design at 390 / 1100 / 1440.
   ========================================================================== */

/* ── Welcome banner ─────────────────────────────────────────────────────── */
.pb-chero {
  position: relative; overflow: hidden; min-height: 490px; border-radius: var(--pb-r-xl);
  background: radial-gradient(circle at 75% 30%, #6b5a18 0, rgba(107, 90, 24, 0) 55%), linear-gradient(120deg, #22180a 0%, #3a2c0e 60%, #4b3b12 100%);
}
.pb-chero__img { position: absolute; left: 0; top: 0; width: 100%; height: 290px; object-fit: cover; object-position: 22% 30%; }
.pb-chero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 24, 10, 0) 26%, rgba(34, 24, 10, .85) 52%, #22180a 66%); }
.pb-chero__body { position: relative; padding: 230px 20px 24px; }
.pb-chero__eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--pb-font-head); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--pb-amber); }
.pb-chero h1 { margin-top: 10px; font-weight: 900; font-size: 31px; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.pb-chero h1 span { color: var(--pb-amber); }
.pb-chero p { margin-top: 14px; max-width: 440px; font-size: 16px; line-height: 1.5; color: #fff; text-wrap: pretty; }
.pb-chero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pb-chero__btn {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 23px; white-space: nowrap;
  font-family: var(--pb-font-head); font-weight: 800; font-size: 15.5px; transition: background .15s;
}
.pb-chero__btn--solid { background: var(--pb-amber); color: var(--pb-text); box-shadow: 0 6px 18px rgba(251, 178, 49, .3); }
.pb-chero__btn--solid:hover { background: #ffc24d; color: var(--pb-text); }
.pb-chero__btn--line { border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); color: #fff; }
.pb-chero__btn--line:hover { background: rgba(255, 255, 255, .16); color: #fff; }
@media (max-width: 399px) {
  .pb-chero { min-height: 470px; }
  .pb-chero h1 { font-size: 28px; }
}
@media (min-width: 900px) {
  .pb-chero { min-height: 240px; }
  .pb-chero__img { left: auto; right: 0; width: 545px; height: 100%; object-position: left center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%); mask-image: linear-gradient(to right, transparent 0, #000 26%); }
  .pb-chero__shade { background: linear-gradient(90deg, rgba(34, 24, 10, .9) 0%, rgba(34, 24, 10, .7) 40%, rgba(34, 24, 10, 0) 66%); }
  .pb-chero__body { padding: 34px 40px 30px; max-width: min(560px, 62%); }
  .pb-chero h1 { font-size: 35px; }
}
@media (min-width: 900px) {
  @container pbce (max-width: 819px) {
    .pb-chero__img { width: 48%; }
    .pb-chero__body { padding: 28px 26px 26px; max-width: min(560px, 82%); }
    .pb-chero__btn { padding: 0 16px; }
  }
  @container pbce (max-width: 759px) {
    .pb-chero h1 { font-size: 30px; }
  }
}

/* ── Stat tiles (left-rail card + phone row) ────────────────────────────── */
.pb-cstatscard { padding: 18px 14px 14px; }
.pb-cstatscard .pb-widget-title { padding-left: 6px; }
.pb-cstatscard .pb-widget-title i { color: var(--pb-orange-2); font-size: 14px; }
.pb-cstats { display: grid; gap: 10px; }
.pb-cstat { text-align: center; border: 1px solid #f1eee7; border-radius: var(--pb-r-md); }
.pb-cstat i { color: var(--pb-orange-2); }
.pb-cstat__value { font-family: var(--pb-font-head); font-weight: 900; color: var(--pb-text); }
.pb-cstat__label { color: var(--pb-text-muted); }
.pb-cstats--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-cstats--grid .pb-cstat { padding: 14px 8px 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .03); }
.pb-cstats--grid .pb-cstat i { font-size: 22px; }
.pb-cstats--grid .pb-cstat__value { margin-top: 6px; font-size: 21px; }
.pb-cstats--grid .pb-cstat__label { font-size: 13px; }
.pb-cstats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pb-cstats--row .pb-cstat { padding: 12px 4px 10px; background: #fff; }
.pb-cstats--row .pb-cstat i { font-size: 18px; }
.pb-cstats--row .pb-cstat__value { margin-top: 4px; font-size: 17px; }
.pb-cstats--row .pb-cstat__label { font-size: 12px; }
@media (min-width: 900px) { .pb-cstats--row { display: none; } }

/* ── Active members (left rail) ─────────────────────────────────────────── */
.pb-cmembers { padding: 18px 14px 14px; }
.pb-cmembers .pb-widget-title { padding-left: 6px; }
.pb-cmembers .pb-widget-title i { color: var(--pb-orange-2); font-size: 14px; }
.pb-cmembers__list { display: flex; flex-direction: column; gap: 10px; }
.pb-cmember { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #f1eee7; border-radius: var(--pb-r-md); }
.pb-cmember__av {
  flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--pb-font-head); font-weight: 800; font-size: 15px; color: #fff; background: var(--pb-primary);
}
.pb-cmember__av--1 { background: var(--pb-green); }
.pb-cmember__av--2 { background: var(--pb-orange); }
.pb-cmember__av--3 { background: var(--pb-text); }
.pb-cmember__av--4 { background: var(--pb-red); }
.pb-cmember__av--5 { background: #0891b2; }
.pb-cmember__txt { min-width: 0; }
.pb-cmember__name { display: block; font-family: var(--pb-font-head); font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-cmember__posts { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; color: var(--pb-text-muted); }
.pb-cmember__posts i { font-size: 11px; }

/* ── Section headings ───────────────────────────────────────────────────── */
.pb-csec { display: flex; flex-direction: column; gap: 14px; }
.pb-csec__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 4px; }
.pb-csec__title { display: flex; align-items: center; gap: 12px; padding: 0 4px; font-weight: 800; font-size: 20px; }
.pb-csec__title i { color: var(--pb-orange-2); font-size: 19px; }
.pb-link-more--sm { font-weight: 800; font-size: 15px; gap: 8px; }

/* ── Why join cards ─────────────────────────────────────────────────────── */
.pb-cgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .pb-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container pbce (min-width: 820px) { .pb-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pb-why {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 18px; border-radius: var(--pb-r-lg);
  background: var(--bg); border: 1px solid var(--bd); color: var(--pb-text);
  transition: transform .2s ease, box-shadow .2s ease;
  --bg: #fff7e8; --bd: #fbe9c4; --soft: #fde3b0; --ico: #a8641d; --arrow: #c26a12;
}
.pb-why:hover { color: var(--pb-text); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 40, 0, .08); }
.pb-why--green  { --bg: #effaf2; --bd: #d4f0dd; --soft: #c9efd6; --ico: #1f9d4c; --arrow: #1f9d4c; }
.pb-why--red    { --bg: #fff1f2; --bd: #fbdcde; --soft: #fbd3d5; --ico: #e5333a; --arrow: #e5333a; }
.pb-why--blue   { --bg: #f0f5fe; --bd: #dbe6fb; --soft: #d4e3fb; --ico: #2f6fe0; --arrow: #2f6fe0; }
.pb-why--purple { --bg: #f6f1fe; --bd: #e7dcfb; --soft: #e3d6fb; --ico: #7a3fe0; --arrow: #7a3fe0; }
.pb-why__paw { position: absolute; right: 16px; top: 14px; font-size: 38px; color: var(--soft); transform: rotate(16deg); }
.pb-why__ico { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--pb-r-md); background: var(--soft); }
.pb-why__ico i { font-size: 18px; color: var(--ico); }
.pb-why__title { margin-top: 14px; font-family: var(--pb-font-head); font-weight: 800; font-size: 17px; }
.pb-why__row { display: flex; align-items: flex-end; gap: 12px; margin-top: 6px; }
.pb-why__text { flex: 1; font-size: 14.5px; line-height: 1.5; color: #4a4a50; }
.pb-why__go { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.pb-why__go i { font-size: 12px; color: var(--arrow); }

/* ── Stories ────────────────────────────────────────────────────────────── */
.pb-cstories { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 2px 12px 6px; }
.pb-cstory {
  position: relative; flex: none; width: 78%; margin: 0; display: flex; flex-direction: column; padding: 18px 18px 16px;
  border-radius: 14px; background: #fff; border: 1px solid #f1eee7; border-left: 4px solid var(--c); box-shadow: 0 2px 10px rgba(60, 40, 0, .05);
  scroll-snap-align: start; --c: #a8641d;
}
.pb-cstory--cat   { --c: #1f9d4c; }
.pb-cstory--paw   { --c: var(--pb-text); }
.pb-cstory--heart { --c: var(--pb-orange); }
.pb-cstory__paw { position: absolute; right: 16px; top: 14px; font-size: 28px; color: var(--pb-amber-tint); transform: rotate(16deg); }
.pb-cstory__ico { font-size: 22px; color: var(--c); }
.pb-cstory figcaption { margin-top: 10px; font-family: var(--pb-font-head); font-weight: 800; font-size: 16px; }
.pb-cstory blockquote { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; font-style: italic; color: #4a4a50; }
.pb-cstory__by { margin-top: auto; padding-top: 10px; align-self: flex-end; font-size: 13.5px; font-weight: 600; color: #2b2b30; }
@media (min-width: 900px) {
  .pb-cstories { margin: 0; padding: 2px 0 6px; }
  .pb-cstory { width: 44%; }
}
@container pbce (min-width: 900px) {
  .pb-cstories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .pb-cstory { width: auto; }
}

/* ── Explore cards ──────────────────────────────────────────────────────── */
.pb-cexp {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #f1eee7;
  box-shadow: 0 2px 10px rgba(60, 40, 0, .04); color: var(--pb-text); transition: transform .2s ease, box-shadow .2s ease;
  --c: #e5333a; --tint: #fde7d4;
}
.pb-cexp:hover { color: var(--pb-text); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 40, 0, .08); }
.pb-cexp--rose   { --tint: #fde3e4; }
.pb-cexp--purple { --c: #5b3fe0; --tint: #e8e2fb; }
.pb-cexp--blue   { --c: #2f6fe0; --tint: #e0eafc; }
.pb-cexp__ico { flex: none; align-self: flex-start; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--tint); }
.pb-cexp__ico i { font-size: 19px; color: var(--c); }
.pb-cexp__body { flex: 1; min-width: 0; }
.pb-cexp__title { display: block; font-family: var(--pb-font-head); font-weight: 800; font-size: 16px; }
.pb-cexp__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--pb-text-3); }
.pb-cexp__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--pb-font-head); font-weight: 800; font-size: 14px; color: var(--c); }
.pb-cexp__cta i { font-size: 11px; }
.pb-cexp__deco { flex: none; align-self: center; font-size: 26px; color: var(--c); opacity: .85; }

/* ── Join call-to-action (bottom of the page) ───────────────────────────── */
.pb-cjoin { position: relative; overflow: hidden; border-radius: var(--pb-r-xl); background: #22180a; text-align: center; color: #fff; }
.pb-cjoin__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-cjoin::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(34, 24, 10, .82) 0%, rgba(58, 44, 14, .66) 60%, rgba(34, 24, 10, .82) 100%); }
.pb-cjoin__body { position: relative; z-index: 1; padding: 34px 22px; display: flex; flex-direction: column; align-items: center; }
.pb-cjoin h2 { font-weight: 900; font-size: 24px; color: #fff; }
.pb-cjoin p { max-width: 520px; margin: 10px 0 18px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.pb-cjoin small { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .65); }

/* ── Right rail ─────────────────────────────────────────────────────────── */
.pb-ico-flame { color: var(--pb-orange) !important; }
.pb-rrow__img--post { width: 62px; height: 58px; }
.pb-rrow__date { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--pb-text-muted); }
.pb-rrow__date i { font-size: 12px; }

.pb-ctopics .pb-topic { height: 52px; gap: 16px; }
.pb-ctopics .pb-topic__name { font-size: 15px; }

.pb-cnews { padding: 20px 18px 18px; }
.pb-cnews__title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.pb-cnews__title i { color: #e0a31c; font-size: 20px; }
.pb-cnews__lead { margin-top: 12px; font-size: 15px; line-height: 1.5; color: #4a4a50; }
.pb-cnews__form { display: flex; align-items: center; gap: 6px; height: 50px; margin-top: 16px; padding: 0 5px 0 16px; border: 1px solid var(--pb-border-3); border-radius: var(--pb-r-md); background: #fff; }
.pb-cnews__form:focus-within { border-color: var(--pb-primary); }
.pb-cnews__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.pb-cnews__form button { flex: none; width: 44px; height: 40px; border: 0; border-radius: 10px; background: var(--pb-primary); color: #fff; font-size: 15px; }
.pb-cnews__form button:hover { background: var(--pb-primary-hover); }
.pb-cnews__note { margin-top: 10px; font-size: 13px; color: var(--pb-text-muted); }
.pb-cnews__note.is-error { color: var(--pb-red); }
.pb-cnews__done { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--pb-r-md); background: #eaf7ee; font-size: 14.5px; font-weight: 600; color: #1a7a3c; }
.pb-cnews__done[hidden], .pb-cnews__form[hidden], .pb-cnews__note[hidden] { display: none; }
