.community-tabs{display:flex;gap:1.5rem;border-bottom:1px solid var(--theme-border);margin-bottom:1.5rem}.community-tabs a{padding:.8rem .3rem;text-decoration:none;border-bottom:3px solid transparent}.community-tabs a[aria-current]{border-color:var(--theme-primary);font-weight:700}.community-tabs a:hover{color:var(--theme-heading);background:var(--theme-surface-alt)}.community-filters{display:flex;align-items:end;gap:1rem;margin-block:1.5rem}.community-search{flex:1}.community-filters label,.community-lookup-panel label{display:grid;gap:.4rem}.community-filters input,.community-filters select,.community-lookup input{padding:.8rem;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface);color:var(--theme-text);min-width:0;width:100%}.community-filters select{appearance:auto;padding-right:2rem}.community-lookups{display:flex;gap:1rem;flex-wrap:wrap}.community-lookup{position:relative;flex:1;min-width:13rem}.community-lookup summary{padding:.8rem 1rem;cursor:pointer;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface)}.community-lookup-panel{position:absolute;z-index:20;inset-inline:0;top:100%;padding:1rem;max-height:65vh;overflow:auto;background:var(--theme-surface);box-shadow:var(--theme-shadow);border:1px solid var(--theme-border);border-radius:10px;min-width:16rem}.community-choice-results{display:grid;gap:.2rem;margin-top:.7rem}.community-choice-results a{padding:.6rem;border-radius:.4rem}.community-choice-results a:hover{background:var(--theme-surface-alt)}.community-filter-chips{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:1rem}.community-filter-chips a{padding:.3rem .7rem;border:1px solid var(--theme-border);border-radius:2rem;text-decoration:none;overflow-wrap:anywhere}.community-meta{color:var(--theme-text-muted)}.community-pagination{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-block:1.5rem}.community-pagination .button{padding:.55rem .8rem}.community-card{padding:0;overflow:hidden}.community-card>a{display:block;height:100%;padding:1.4rem;text-decoration:none;color:var(--theme-text)}.community-card>a:hover,.community-card>a:focus-visible{background:var(--theme-surface-alt)}.community-card h2{font-size:1.2rem}.community-image{width:100%;height:160px;object-fit:contain;margin-bottom:1rem}.community-business .community-image{width:96px;height:96px}.community-business-info{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.community-business dl{display:grid;grid-template-columns:minmax(5rem,1fr) 2fr;gap:.6rem;margin:0}.community-business dt{color:var(--theme-text-muted)}.community-business dd{margin:0;overflow-wrap:anywhere}.community-description{white-space:pre-line;overflow-wrap:anywhere}.community-map{margin-top:1.5rem;display:grid;gap:1rem}.community-map iframe{width:100%;height:300px;border:1px solid var(--theme-border);border-radius:12px}.community-back{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.community-selected-offer,.community-business{margin-bottom:1.5rem}.community-selected-offer>.community-image{height:240px}.community-section .button{white-space:normal}.community-section [aria-busy=true]{opacity:.55;pointer-events:none}.community-card p{overflow-wrap:anywhere}.community-counters{font-weight:500}a:focus-visible,summary:focus-visible{outline:3px solid var(--theme-focus);outline-offset:3px}@media(max-width:600px){.community-filters{align-items:stretch;flex-direction:column}.community-lookups{display:grid;grid-template-columns:1fr}.community-lookup-panel{min-width:0}.community-business-info{grid-template-columns:1fr;gap:1rem}.community-pagination{gap:.6rem}.community-back{flex-direction:column}.community-section .button{width:100%;text-align:center;min-height:44px}.community-tabs a{min-height:44px}.community-map iframe{height:240px}}

.community-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-block:1rem}.community-results-toolbar .community-pagination,.community-results-toolbar p{margin:0}.community-pagination [aria-disabled=true]{opacity:.5;cursor:default;pointer-events:none;box-shadow:none;transform:none}@media(max-width:600px){.community-results-toolbar{align-items:flex-start;flex-direction:column}.community-pagination .button{width:auto;min-height:44px}}

.community-section h2,.community-section h3,.community-back a,.community-lookup summary,.community-section .button{overflow-wrap:anywhere;min-width:0}.community-section .event-card{min-width:0}

.community-intro{max-width:80ch;margin-bottom:2rem;overflow-wrap:anywhere}.community-intro h2{margin:0 0 .85rem;font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.4;color:var(--theme-heading)}.community-intro p{margin:0 0 1rem;color:var(--theme-text-muted);line-height:1.8}.community-intro p:last-child{margin-bottom:0}@media(max-width:600px){.community-intro{max-width:100%;margin-bottom:1.5rem}}

/* Reserve image geometry while optional lazy logos/offers load, matching Events feedback. */
.community-image-frame{position:relative;display:block;width:100%;height:160px;margin-bottom:1rem;border-radius:10px;overflow:hidden}.community-image-frame .community-image{width:100%;height:100%;margin:0;object-fit:contain}.community-business .community-image-frame{width:96px;height:96px}.community-selected-offer>.community-image-frame{height:240px}.community-image-status{display:none;position:absolute;inset:0;align-items:center;justify-content:center;gap:.5rem;padding:.4rem;background:var(--theme-surface-alt);color:var(--theme-text-muted);font-size:.75rem;text-align:center}.community-image-frame.is-loading>.community-image-status,.community-image-frame.has-error>.community-image-status{display:flex}.community-image-frame.is-loading>img,.community-image-frame.has-error>img{visibility:hidden}.community-image-frame.is-loading>.community-image-status::before{content:"";width:16px;height:16px;flex:0 0 16px;border:2px solid var(--theme-border);border-top-color:var(--theme-primary);border-radius:50%;animation:community-image-spin .8s linear infinite}.community-business .community-image-status{flex-direction:column;font-size:.65rem}@keyframes community-image-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.community-image-frame.is-loading>.community-image-status::before{animation:none}}

.community-card{display:flex;flex-direction:column}.community-card>a{height:auto;flex:1}
.community-social-links{display:flex;flex-wrap:wrap;gap:.45rem;margin:.6rem 0}
.community-card .community-social-links{margin:0 1.4rem 1.1rem}
.community-social-links a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--theme-border);border-radius:.5rem;background:var(--theme-surface);color:var(--theme-primary)}
.community-social-links a:hover{background:var(--theme-surface-alt);border-color:var(--theme-primary)}
.community-social-links svg{width:1.25rem;height:1.25rem}

.community-progress {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  width:fit-content;
  max-width:100%;
  margin:0 auto;
  padding:.8rem 1.2rem;
  border:1px solid var(--theme-border);
  border-radius:12px;
  background:var(--theme-surface-alt);
  color:var(--theme-heading);
  font-weight:650;
}
.community-progress[hidden]{display:none}
.community-progress:not([hidden]) + #communityContent:not(:empty){margin-block-start:1rem}
.community-progress::before {
  content:"";
  flex:0 0 1.125rem;
  width:1.125rem;
  height:1.125rem;
  border:2px solid var(--theme-border);
  border-top-color:var(--theme-primary);
  border-right-color:var(--theme-primary);
  border-radius:50%;
  animation:community-image-spin .8s linear infinite;
}
@media(max-width:600px),(pointer:coarse){
  .community-progress{position:sticky;top:calc(68px + .75rem);z-index:25}
}
@media(prefers-reduced-motion:reduce){
  .community-progress::before{animation:none}
}

.community-hero-layout {
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  align-items:center;
  gap:clamp(1.5rem, 4vw, 4.5rem);
}
.community-hero-logos {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 9rem));
  gap:clamp(.6rem, 2vw, 1.75rem);
}
.community-hero-logos img {
  display:block;
  width:100%;
  height:auto;
}
@media(max-width:760px){
  .community-hero {
    padding-block:clamp(2.5rem, 8vw, 4rem);
  }
  .community-hero-layout {
    grid-template-columns:1fr;
  }
  .community-hero-logos {
    grid-template-columns:repeat(3, minmax(0, 5.5rem));
  }
}
