.community-page{
  background:#fff;
  color:#102033;
}

.community-hero{
  background:
    linear-gradient(135deg, rgba(47,107,255,.12), rgba(20,184,166,.10)),
    #fff;
  padding:68px 0 56px;
}

.community-kicker{
  color:#2f6bff;
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.12em;
  margin:0 0 12px;
  text-transform:uppercase;
}

.community-hero h1{
  font-size:clamp(2rem, 5vw, 4.25rem);
  font-weight:950;
  letter-spacing:0;
  line-height:1.02;
  margin:0;
}

.community-lead,
.community-muted{
  color:#526173;
  font-size:1.06rem;
  line-height:1.75;
  margin:18px 0 0;
}

.community-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}

.community-board{
  background:#102033;
  border-radius:28px;
  box-shadow:0 26px 68px rgba(16,32,51,.18);
  color:#fff;
  margin-inline:auto;
  max-width:500px;
  padding:22px;
}

.community-board-head{
  align-items:flex-end;
  display:flex;
  gap:10px;
  justify-content:space-between;
  margin-bottom:18px;
}

.community-board-head strong{
  display:block;
  font-size:clamp(2.5rem, 9vw, 4.6rem);
  font-weight:950;
  line-height:.9;
}

.community-board-head span{
  color:rgba(255,255,255,.72);
  font-weight:800;
  padding-bottom:4px;
}

.featured-stack{
  display:grid;
  gap:12px;
}

.featured-stack a,
.community-placeholder{
  align-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  color:#fff;
  display:flex;
  gap:14px;
  padding:12px;
}

.featured-stack img{
  aspect-ratio:1;
  border-radius:16px;
  object-fit:cover;
  width:72px;
}

.featured-stack span{
  font-weight:900;
}

.community-placeholder{
  color:rgba(255,255,255,.76);
  line-height:1.6;
}

.community-intro{
  margin-top:-24px;
  position:relative;
  z-index:2;
}

.intro-grid{
  background:#fff;
  border:1px solid #e8eef8;
  border-radius:22px;
  box-shadow:0 18px 42px rgba(16,32,51,.08);
  display:grid;
  overflow:hidden;
}

.intro-grid article{
  padding:22px;
}

.intro-grid strong{
  display:block;
  font-size:1.05rem;
  font-weight:950;
  margin-bottom:4px;
}

.intro-grid span{
  color:#64748b;
}

.community-toolbar{
  align-items:flex-end;
  display:grid;
  gap:20px;
  margin-bottom:24px;
}

.community-filter{
  align-items:end;
  background:#f6f9ff;
  border:1px solid #e8eef8;
  border-radius:22px;
  display:grid;
  gap:14px;
  margin-bottom:26px;
  padding:16px;
}

.community-filter label{
  color:#334155;
  display:block;
  font-size:.88rem;
  font-weight:850;
  margin-bottom:7px;
}

.community-filter .form-select{
  border-color:#dbe5f5;
  border-radius:14px;
  min-height:48px;
}

.filter-reset{
  color:#2f6bff;
  font-weight:900;
  min-height:44px;
  padding:10px 4px;
  text-align:center;
}

.community-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.community-card{
  min-width:0;
}

.community-card a{
  background:#fff;
  border:1px solid #e8eef8;
  border-radius:20px;
  box-shadow:0 14px 32px rgba(16,32,51,.06);
  color:#102033;
  display:block;
  height:100%;
  overflow:hidden;
}

.pet-photo{
  aspect-ratio:1;
  background:#edf3ff;
  display:block;
  overflow:hidden;
}

.pet-photo img{
  height:100%;
  object-fit:cover;
  transition:transform .2s ease;
  width:100%;
}

.community-card a:hover .pet-photo img{
  transform:scale(1.04);
}

.pet-content{
  display:block;
  padding:14px;
}

.pet-content strong{
  display:block;
  font-size:1rem;
  font-weight:950;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pet-content small{
  color:#64748b;
  display:block;
  font-size:.86rem;
  line-height:1.35;
  margin-top:5px;
  min-height:38px;
}

.pet-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}

.pet-card-meta em{
  background:#eef4ff;
  border-radius:999px;
  color:#2f6bff;
  font-size:.75rem;
  font-style:normal;
  font-weight:900;
  padding:6px 8px;
}

.community-empty{
  background:#f6f9ff;
  border:1px solid #e8eef8;
  border-radius:22px;
  padding:28px;
  text-align:center;
}

.community-empty h2{
  font-size:1.35rem;
  font-weight:950;
}

.community-empty p{
  color:#64748b;
  margin:10px auto 20px;
  max-width:560px;
}

.community-pagination{
  margin-top:34px;
}

.community-pagination ul{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  list-style:none;
  margin:0;
  padding:0;
}

.community-pagination a,
.community-pagination span{
  align-items:center;
  background:#fff;
  border:1px solid #dbe5f5;
  border-radius:999px;
  color:#102033;
  display:flex;
  font-weight:850;
  min-height:42px;
  min-width:42px;
  padding:8px 14px;
  justify-content:center;
}

.community-pagination .is-active a{
  background:#2f6bff;
  border-color:#2f6bff;
  color:#fff;
}

.community-pagination .is-disabled{
  opacity:.5;
  pointer-events:none;
}

.community-final{
  background:#102033;
  color:#fff;
  padding:56px 0;
  text-align:center;
}

.community-final h2{
  font-size:clamp(1.7rem, 4vw, 3rem);
  font-weight:950;
  letter-spacing:0;
  margin:0;
}

.community-final p{
  color:rgba(255,255,255,.76);
  margin:12px auto 24px;
  max-width:620px;
}

@media (min-width: 640px){
  .community-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .community-filter{
    grid-template-columns:1fr 180px auto auto;
  }
}

@media (min-width: 768px){
  .intro-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px){
  .community-hero{
    padding:86px 0 70px;
  }

  .community-toolbar{
    grid-template-columns:1fr auto;
  }

  .community-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px){
  .community-actions .btn,
  .community-toolbar .btn,
  .community-filter .btn{
    width:100%;
  }

  .community-filter{
    padding:14px;
  }

  .pet-content{
    padding:12px;
  }
}
