/* Experience 4.0.5 — Business & Association Explorer */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  min-height: 180px; /* CLS: reserve results region */
}
#orgResults { min-height: 440px; /* cls407 forensic */ }
#orgCount { min-width: 8ch; display: inline-block; font-variant-numeric: tabular-nums; }
.org-card { min-height: 118px; }
.org-logo { flex-shrink: 0; }
.org-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid rgba(8, 28, 44, 0.08);
  border-radius: 12px;
  align-items: start;
}
.org-logo {
  width: 72px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F8FC;
  border-radius: 8px;
  overflow: hidden;
}
.org-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.org-logo-fallback {
  font-weight: 700;
  color: #0086C9;
  font-size: 1.25rem;
}
.org-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #081C2C;
  line-height: 1.3;
}
.org-meta, .org-address, .org-contact, .org-foot {
  margin: 0.2rem 0;
  font-size: 0.875rem;
  color: #64748B;
}
.org-address { color: #334155; }
.org-contact a { color: #0086C9; }
.org-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 134, 201, 0.12);
  color: #081C2C;
}
.org-badge.is-stale {
  background: rgba(100, 116, 139, 0.18);
}
.org-dist {
  margin-left: 0.4rem;
  color: #0086C9;
  font-weight: 600;
}
.org-coord-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #64748B;
  font-style: italic;
}
.org-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.org-list-item {
  border-bottom: 1px solid rgba(8, 28, 44, 0.08);
}
.org-list-item a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.15rem;
  text-decoration: none;
  color: inherit;
}
.org-list-item strong { color: #081C2C; }
.org-list-item span { color: #64748B; font-size: 0.875rem; }
.org-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  max-width: 100%;
}
.org-toolbar label,
.org-toolbar input,
.org-toolbar select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.org-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
}
.org-toolbar input,
.org-toolbar select {
  font: inherit;
  font-weight: 400;
  color: #081C2C;
  border: 1px solid rgba(8, 28, 44, 0.14);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}
.org-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #334155;
  max-width: 100%;
}
#orgApp, .p-section-inner {
  overflow-x: clip;
}
.org-loading {
  margin-top: 1rem;
  color: #64748B;
}
.org-rights {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(180, 83, 9, 0.08);
  border-left: 3px solid #b45309;
  color: #78350f;
  font-size: 0.9rem;
}
.org-geo-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #64748B;
}
@media (max-width: 560px) {
  .org-card {
    grid-template-columns: 64px 1fr;
  }
  .org-logo {
    width: 56px;
    height: 40px;
  }
}
