.funding-form fieldset + fieldset legend {
  padding-top: 18px;
}

@media (max-width: 800px) {
  .funding-form fieldset + fieldset legend {
    padding-top: 16px;
  }
}

.funding-results > header .funding-status-filter {
  grid-column: 1 / -1;
}

.fund-card[hidden] {
  display: none;
}

.fund-card .status-group {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 12px;
}

.funding-status-filter {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.funding-status-filter button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.funding-filter-label {
  margin-right: 4px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.funding-status-filter button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font: 750 14px var(--sans);
}

.funding-status-filter button[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}

.funding-status-filter .status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid var(--black);
  border-radius: 50%;
}

.fund-card .status-closing-soon .status-dot,
.status-dot-closing-soon { background: #e84735; }
.fund-card .status-open-now .status-dot,
.status-dot-open-now { background: #3d9b57; }
.fund-card .status-opening-soon .status-dot,
.status-dot-opening-soon { background: #f0ad22; }
.fund-card .status-check-current-round .status-dot,
.status-dot-check-current-round { background: #c278d6; }
.fund-card .status-next-round-2027 .status-dot,
.status-dot-next-round-2027 { background: #8c8c8c; }
.fund-card .status-watch-next-round .status-dot,
.status-dot-watch-next-round { background: #6685c3; }
.fund-card .status-rolling .status-dot,
.status-dot-rolling { background: #91c95d; }
.fund-card .status-open-programmes .status-dot,
.status-dot-open-programmes { background: #247a68; }

@media (max-width: 800px) {
  .fund-card .status-group {
    max-width: 55%;
  }

  .funding-filter-label {
    width: 100%;
  }

  .funding-status-filter button {
    max-width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    white-space: normal;
    text-align: left;
  }
}
