/* Queensland AtoZ database member organisations — Our Community */
.zero-atoz {
  margin: 2.75rem 0 0;
  max-width: 100%;
}

/* Theme zeros sibling margins — Partners needs explicit spacing in both states */
.zero-atoz + h2.wp-block-heading {
  margin-top: var(--wp--preset--spacing--60, 3.5rem) !important;
  margin-bottom: var(--wp--preset--spacing--30, 1.25rem) !important;
}

/* Collapsed: no list panel — add buffer below the accordion rule */
.zero-atoz:has(.zero-atoz__details:not([open])) {
  padding-bottom: 1.75rem;
}

.zero-atoz:has(.zero-atoz__details[open]) {
  padding-bottom: 0;
}

.zero-atoz__intro {
  margin: 0 0 1.5rem;
  line-height: 1.65;
  color: #3a3a3a;
}

.zero-atoz__details {
  border: 0;
  margin: 0;
}

.zero-atoz__summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zero-atoz-accent, #26a9e0);
  border-bottom: 2px solid var(--zero-atoz-accent, #26a9e0);
  user-select: none;
}

.zero-atoz__summary::-webkit-details-marker {
  display: none;
}

.zero-atoz__summary::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--zero-atoz-accent, #26a9e0);
  border-bottom: 2px solid var(--zero-atoz-accent, #26a9e0);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.2s ease;
}

.zero-atoz__details[open] .zero-atoz__summary::before {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.zero-atoz__panel {
  padding: 1.5rem 0 0.5rem;
}

.zero-atoz__details[open] .zero-atoz__panel {
  padding-bottom: 1.25rem;
}

.zero-atoz__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zero-atoz__list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #3a3a3a;
}

.zero-atoz__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--zero-atoz-bullet, #c2187a);
}

.page-template-wp-custom-template-home-wb .zero-atoz {
  --zero-atoz-accent: #f05a28;
  --zero-atoz-bullet: #f05a28;
}

@media (max-width: 900px) {
  .zero-atoz__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .zero-atoz__list {
    grid-template-columns: 1fr;
  }

  .zero-atoz__summary {
    font-size: 1rem;
  }
}
