/* reset button styles */
.board-policy-section-toggle,
.board-policy-all-button {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: start;
  text-decoration: none;
  text-indent: 0;
}

.board-policy-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1.5rem;
}

.board-policy-all-button {
  background-color: rgb(var(--color-heading));
  color: white;
  border: 2px solid rgb(var(--color-heading));
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

.board-policy-all-button:hover {
  background-color: white;
  color: rgb(var(--color-heading));
}

.board-policy-section {
  margin-block: 1rem 0.5rem;
}

.board-policy-section-toggle {
  width: 100%;
  color: rgb(50 87 129);
  font-weight: 700;
  font-family: proxima-nova-condensed;
}

.board-policy-section-toggle::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
}
.board-policy-section-toggle[aria-expanded=true]::before {
  content: ' ' / '';
}
.board-policy-section-toggle[aria-expanded=false]::before {
  content: ' ' / '';
}

/* collapsed seciton tables should be hidden */
.board-policy-section:has(.board-policy-section-toggle[aria-expanded=false]) + .board-policy-section-table {
  display: none;
}

/* sections without any unfiltered rows should be hidden */
.board-policy-section-wrapper:not(:has(>.board-policy-section-table>tbody>tr:not(.filtered))) {
  display: none;
}

/* th should be bold */
.board-policy-section-table>thead>tr>th {
  font-weight: bold;
}

/* no matches should only show if there are no unfiltered rows */
.board-policy-no-matches {
  display: none;
}

.board-policy-sections:not(:has(>.board-policy-section-wrapper>.board-policy-section-table>tbody>tr:not(.filtered))) + .board-policy-no-matches {
  display: block;
}

/* fitlered rows should be hidden */
.board-policy-section-table .filtered {
  display: none; 
}