header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.community-hero {
  background: #132d2c;
  padding: 36px;
  border-radius: 24px;
  color: white;
  margin: 22px 0 30px;
}
.community-hero h1 {
  color: white;
  letter-spacing: -1px;
}
.community-hero p {
  color: #dce8e2;
}
/* Keep fields and actions on the same baseline; grid prevents partial wrapping. */
.community-filters {
  display:grid;
  grid-template-columns:minmax(180px,1.4fr) minmax(170px,1.2fr) repeat(2,minmax(140px,1fr)) auto;
  gap:14px;
  align-items:end;
  margin-bottom:28px;
}
.community-filters label {min-width:0;margin:0;}
.community-filters input,.community-filters select {box-sizing:border-box;min-width:0;max-width:100%;height:48px;}
.community-filter-actions {display:flex;gap:10px;align-items:center;}
.community-filter-actions button {height:48px;min-width:86px;margin:0;white-space:nowrap;}
.photo-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.log-entry {
  overflow: hidden;
  border: 1px solid #dfe6de;
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 28px #132d2c10;
}
.log-entry img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.log-entry .body {
  padding: 24px;
}
.log-entry h2 {
  font-size: 25px;
}
.log-text {
  white-space: pre-line;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.log-entry time {
  font-size: 13px;
  color: #66796e;
}
.community-pager {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:16px;
  align-items:center;
  max-width:640px;
  margin:35px auto;
}
.community-pager button {min-height:48px;width:100%;}
.community-pager>span {text-align:center;font-size:14px;}
@media(max-width:1050px){
 .community-filters {grid-template-columns:repeat(2,minmax(0,1fr));}
 .community-filter-actions {grid-column:1/-1;justify-content:flex-end;}
}
@media(max-width:520px){
 .community-filters>label:nth-child(-n+2){grid-column:1/-1;}
 .community-filter-actions button{flex:1;}
 .community-pager{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .community-pager>span{grid-column:1/-1;grid-row:2;}
 .community-pager button{padding-inline:12px;}
}
.admin-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.community-editor {
  margin: 25px 0;
  padding: 26px;
  border: 1px solid #dce4dc;
  background: white;
  border-radius: 22px;
}
.community-editor img {
  max-width: 220px;
  max-height: 160px;
  object-fit: contain;
}
.community-editor textarea {
  min-height: 130px;
}
.community-list .card {
  margin-bottom: 16px;
}
.status {
  display: inline-block;
  border-radius: 25px;
  padding: 5px 10px;
  background: #edf3df;
  font-size: 12px;
}
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 25px 0;
}
.testimonial-list .card {
  margin: 0;
}
.testimonial-author {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-form {
  max-width: 720px;
  margin: 35px auto;
}
.honeypot {
  display: none !important;
}
.partner-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px;
}
.partner-directory .card {
  text-align: center;
}
.partner-directory img {
  height: 85px;
  width: 100%;
  object-fit: contain;
  padding: 10px;
}
button[disabled] {
  opacity: 0.45;
}
@media (max-width: 700px) {
  .photo-log,
  .testimonial-list {
    grid-template-columns: 1fr;
  }
  .log-entry img {
    height: 260px;
  }
  .community-hero {
    padding: 24px;
  }
  header nav {
    gap: 12px;
  }
  .community-filters {
    align-items: stretch;
  }
  .community-editor {
    padding: 20px;
  }
}
