/* Shared sector filters for the project, portfolio and AI galleries. */
.nw-sector-filter {
  min-inline-size: 0;
  max-width: 100%;
  margin: 24px 0 28px;
  padding: 0;
  border: 0;
  color: var(--nw-ink);
}

.nw-sector-filter legend {
  max-width: 100%;
  margin-bottom: 12px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.nw-sector-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.nw-sector-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #b7c7ed;
  border-radius: 12px;
  background: #fff;
  color: var(--nw-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.nw-sector-button > span {
  min-width: 0;
}

.nw-sector-button:hover {
  border-color: var(--nw-blue);
  background: var(--nw-pale);
}

.nw-sector-button[aria-pressed="true"] {
  border-color: var(--nw-blue);
  background: var(--nw-yellow);
  color: var(--nw-deep);
}

.nw-sector-button:focus-visible {
  outline: 3px solid var(--nw-blue);
  outline-offset: 3px;
}

.nw-sector-count {
  margin: 14px 0 0;
  color: var(--nw-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

#projects-grid > [hidden],
#portfolio-grid > [hidden],
#ia-grid > [hidden] {
  display: none !important;
}
