/* ==========================================================================
   Community + Events — styles shared by the two pages.
   Loaded after components/sidebar.css (Discover card, topics) and before
   pages/community.css / pages/events.css.

   Contents: page shell tweaks (right rail drops below the content on
   narrower screens), Discover + Categories card, gold promo card, right-rail
   cards and the little "date box" list used by both pages.
   ========================================================================== */

/* ── Shell: rails + content ─────────────────────────────────────────────── */
.pb-shell--ce { row-gap: 22px; }
.pb-shell--ce > .pb-content { container-type: inline-size; container-name: pbce; gap: 24px; padding-top: 0; }

@media (max-width: 899px) {
  .pb-shell--ce { grid-template-columns: minmax(0, 680px); }
}

/* Below 1360px the right rail is not a column: it flows under the content
   (a responsive grid of cards on tablets, a plain stack on phones). */
@media (max-width: 1359px) {
  .pb-shell--ce .pb-rail--right {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
    position: static; max-height: none; overflow: visible; margin: 0; padding: 0;
  }
}
@media (max-width: 899px) {
  .pb-shell--ce .pb-rail--right { display: flex; flex-direction: column; }
}
@media (min-width: 900px) and (max-width: 1359px) {
  .pb-shell--ce > .pb-rail--left  { grid-column: 1; grid-row: 1 / span 2; }
  .pb-shell--ce > .pb-content     { grid-column: 2; grid-row: 1; }
  .pb-shell--ce > .pb-rail--right { grid-column: 2; grid-row: 2; }
}

/* ── Discover + Categories card ─────────────────────────────────────────── */
.pb-dcat { padding: 20px 16px 14px; }
.pb-dcat__sep { height: 1px; margin-top: 14px; background: #ececec; }
.pb-dcat__title {
  padding: 16px 0 8px 16px; font-family: var(--pb-font-head); font-weight: 800; font-size: 14.5px;
  letter-spacing: .02em; text-transform: uppercase;
}
.pb-dcat__list { display: flex; flex-direction: column; gap: 2px; }
.pb-dcat__link {
  display: flex; align-items: center; gap: 20px; height: 40px; padding: 0 16px 0 19px; border-radius: 6px;
  font-size: 16px; font-weight: 500; color: var(--pb-text); white-space: nowrap;
}
.pb-dcat__link:hover { background: #faf6ec; color: var(--pb-text); }
.pb-dcat__link i { width: 24px; text-align: center; font-size: 17px; color: var(--c, var(--pb-link)); }
.pb-dcat__link--dogs      { --c: #a8641d; }
.pb-dcat__link--cats      { --c: #e8892b; }
.pb-dcat__link--health    { --c: #f0353b; }
.pb-dcat__link--nutrition { --c: #1f9d4c; }
.pb-dcat__link--training  { --c: #3b5bdb; }
.pb-dcat__link--housing   { --c: #e8892b; }
.pb-dcat__link--stories   { --c: #e0a31c; }
.pb-dcat__link--tips      { --c: #f5b301; }
.pb-dcat__link--info      { --c: #c9900e; }

/* ── Gold promo card ("Join Our Pet Community" / "Find Pet Events Near You") ─ */
.pb-gold {
  position: relative; overflow: hidden; flex: none; border-radius: var(--pb-r-xl); box-shadow: var(--pb-shadow-card);
  background: linear-gradient(170deg, #fff1cf 0%, #fde3a2 100%);
}
.pb-gold__paw { position: absolute; right: 18px; top: 20px; font-size: 30px; color: var(--pb-amber); transform: rotate(14deg); }
.pb-gold__txt { padding: 22px 20px 0; position: relative; }
.pb-gold__txt h3 { font-weight: 900; font-size: 21px; line-height: 1.2; }
.pb-gold__txt p { margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: #4a4a50; }
.pb-gold__img { display: block; width: 100%; height: auto; margin-top: -6px; }
.pb-gold__btn { position: absolute; left: 14px; bottom: 14px; height: 40px; padding: 0 20px; gap: 10px; font-size: 15.5px; border-radius: 20px; box-shadow: 0 6px 16px rgba(80, 55, 0, .3); }
.pb-gold__btn i { font-size: 13px; }
.pb-gold--wide .pb-gold__txt p { line-height: 1.45; }
.pb-gold--wide .pb-gold__img { margin-top: 4px; }
.pb-gold--wide .pb-gold__btn { left: 14px; right: 14px; height: 46px; border-radius: 23px; font-size: 16px; }
.pb-gold--wide .pb-gold__btn i { font-size: 1em; }

/* ── Right-rail card + list rows ────────────────────────────────────────── */
.pb-rcard { flex: none; padding: 18px 16px 8px; }
.pb-rcard .pb-sec-hd { margin-bottom: 0; padding-bottom: 6px; }
.pb-rcard .pb-sec-hd__title i { font-size: 20px; }
.pb-rrow {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f1eee7; color: var(--pb-text);
}
.pb-rrow:last-child { border-bottom: 0; }
.pb-rrow:hover { color: var(--pb-text); }
.pb-rrow__body { flex: 1; min-width: 0; }
.pb-rrow__title { display: block; font-family: var(--pb-font-head); font-weight: 800; font-size: 15px; line-height: 1.3; }
.pb-rrow__title--1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-rrow__title--2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-rrow__sub { display: block; margin-top: 2px; font-size: 13px; color: #55555c; }
.pb-rrow__sub--clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-rrow__muted { display: block; font-size: 13px; color: var(--pb-text-muted); }
.pb-rrow__chev { flex: none; font-size: 12px; color: #2b2b30; }
.pb-rrow__img { flex: none; border-radius: 10px; object-fit: cover; background: var(--pb-amber-soft); }
.pb-rrow__img--empty { display: flex; align-items: center; justify-content: center; color: var(--pb-orange-2); font-size: 22px; }

/* Date box (MON / 28) */
.pb-datebox {
  flex: none; width: 54px; padding: 6px 0 7px; border-radius: 12px; text-align: center;
  background: var(--pb-amber-soft); --bc: var(--pb-primary); --bm: var(--pb-red);
}
.pb-datebox--red   { background: #fdecec; --bc: #e5333a; --bm: #e5333a; }
.pb-datebox--green { background: #e6f6ec; --bc: #1f9d4c; --bm: #1f9d4c; }
.pb-datebox__mon { display: block; font-family: var(--pb-font-head); font-weight: 800; font-size: 11.5px; letter-spacing: .06em; color: var(--bm); text-transform: uppercase; }
.pb-datebox__day { display: block; font-family: var(--pb-font-head); font-weight: 900; font-size: 22px; line-height: 1.05; color: var(--bc); }

.pb-rempty { padding: 14px 0 16px; font-size: 14.5px; color: var(--pb-text-muted); }
