/* Work page: "Filter by service" sidebar (work-filter.js). Replaces the old
   Industries list. Laid out after the reference (a dot + bold label, the
   selected option as a solid tag, the others as plain text) in the site's
   own colours:
     - selected option / buttons: navy (--blue-deep), as the site's primary
       buttons (e.g. "Our Services")
     - the label's dot: electric blue (--blue-electric), as the eyebrows
     - unselected tags on phones: the site's grey chip (as on the project
       cards), 6px corners */

.work-filter__label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--paper-ink);
  margin-bottom: 24px;
}
.work-filter__label::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-electric);
  flex-shrink: 0;
}

.work-filter__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}

.work-filter__btn {
  padding: .35rem 0;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--paper-ink);
  text-align: left;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), padding .2s var(--ease);
}
.work-filter.is-instant .work-filter__btn { transition: none; }
.work-filter__btn:hover { color: var(--blue-deep); }
.work-filter__btn:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}
.work-filter__btn.is-active {
  padding-inline: .7rem;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 500;
}

/* the sidebar is narrower on tablets */
@media (max-width: 1080px) {
  .work-filter__label { font-size: 1.125rem; }
  .work-filter__btn { font-size: 1rem; }
}

/* phones: the filter sits above the projects, as a wrapping row of tags */
@media (max-width: 720px) {
  .work-filter__list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .work-filter__btn,
  .work-filter__btn.is-active {
    padding: .4rem .75rem;
    font-size: .9375rem;
  }
  .work-filter__btn:not(.is-active) {
    background: rgba(11, 11, 18, .08);
    color: var(--ink-2);
  }
  .work-filter { margin-bottom: 8px; }
}

/* filtered-out projects (the card's own display rule would otherwise win) */
.project-card[hidden] { display: none !important; }

/* a service with no case studies yet */
.work-filter__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px dashed rgba(11, 11, 18, .2);
  border-radius: var(--r-md);
  color: var(--paper-ink);
}
.work-filter__empty[hidden] { display: none; }
.work-filter__empty-text {
  /* set explicitly: the site's default paragraph colour is the light grey
     meant for dark sections */
  color: var(--paper-ink);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
}
/* as the site's primary buttons: navy pill */
.work-filter__empty-btn {
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.work-filter__empty-btn:hover { background: var(--blue-ink); }
.work-filter__empty-btn:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}
