.catedra-catalogo.is-loading {
  opacity: .72;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* =========================================================
   Formulário do catálogo
   ========================================================= */

.catedra-filter-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

/* =========================================================
   Barra superior de tipos de conteúdo
   ========================================================= */

.catedra-type-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .75rem;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.catedra-type-button {
  appearance: none;
  border: 1px solid var(--catedra-border);
  background: white;
  color: var(--catedra-blue-dark);
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-weight: 600;
  /* A fonte terá no mínimo 1rem, tentará ter 2% da largura da tela, mas nunca passará de 2rem */
  font-size: clamp(1rem, 1vw, 2rem);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: var(--catedra-box-shadow);
  white-space: nowrap;
}

.catedra-type-button:hover {
  border-color: var(--catedra-blue);
  color: var(--catedra-blue);
  transform: translateY(-1px);
  box-shadow: var(--catedra-box-shadow-hover);
}

.catedra-type-button.is-active {
  background: var(--catedra-blue);
  color: #fff;
  border-color: var(--catedra-blue);
  box-shadow: 0 8px 18px rgba(0, 35, 72, .12);
}

/* =========================================================
   Painel de filtros
   ========================================================= */

.catedra-filters {
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 1.25rem;
  background: var(--catedra-bg);
  border: 1px solid var(--catedra-border);
  border-radius: 16px;
  box-shadow: var(--catedra-box-shadow);
}

[data-role="dynamic-filters"] {
  display: grid;
  width: 100%;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.catedra-filter__field {
  width: 100%;
}

.catedra-filter__field span {
  display: block;
  margin-bottom: .35rem;
  font-weight: 600;
  color: var(--catedra-text);
  line-height: 1.3;
}

.catedra-filter__field select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(97, 97, 97, 0.658);
  border-radius: 10px;
  line-height: 1.2;
  font-size: 1rem;
  box-sizing: border-box;
  background: #fff;
}

.catedra-filter__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}

/* =========================================================
   Resultados
   ========================================================= */

.catedra-results {
  width: 100%;
}

.catedra-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.catedra-list {
  display: grid;
  gap: 1rem;
}

/* =========================================================
   Paginação
   ========================================================= */

.catedra-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.catedra-pagination a,
.catedra-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--catedra-border);
  text-decoration: none;
  color: var(--catedra-blue-dark);
  background: #fff;
}

.catedra-pagination .current {
  background: var(--catedra-blue);
  color: #fff;
  border-color: var(--catedra-blue);
}

/* =========================================================
   Responsividade
   ========================================================= */

@media (max-width: 1024px) {
  [data-role="dynamic-filters"] {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .catedra-type-switcher {
    gap: .5rem;
    margin-bottom: 1rem;
  }

  .catedra-type-button {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
  }

  [data-role="dynamic-filters"] {
    grid-template-columns: 1fr;
  }

  .catedra-filter__actions {
    width: 100%;
  }

  .catedra-filter__actions .catedra-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catedra-type-switcher {
    flex-direction: column;
    align-items: stretch;
  }

  .catedra-type-button {
    width: 100%;
  }
}