/* Insights list — AJAX loading state, search clear, and validation. */

[data-insights-list].is_loading [data-insights-grid],
[data-insights-list].is_loading [data-insights-pager-host] {
  pointer-events: none;
}

[data-insights-list].is_loading [data-insights-pager-host] {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.ns_grid_empty,
.ns_grid_loading {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  font-size: 24px;
  line-height: 1.6;
  color: #173b50;
}

.ns_grid_loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ns_grid_spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 2px solid rgba(23, 59, 80, 0.2);
  border-top-color: #173b50;
  border-radius: 50%;
  animation: ns_spin 0.7s linear infinite;
}

@keyframes ns_spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns_grid_spinner {
    animation-duration: 2s;
  }
}

.ns_page .ns_filters_search_wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* flex: 0 0 calc(318px * var(--nc-scale)); */
  flex: 0 0 calc(550px * var(--nc-scale));
  margin-left: 0;
  max-width: 100%;
  gap: 8px;

}
@media (min-width: 1200px) {
  .ns_page .ns_filters_search_wrapper {
    flex: 0 0 calc(650px * var(--nc-scale));
  }
}

.ns_page .ns_filters_search_wrapper .ns_filters_search {
  flex: 1 1 auto;
  width: 100%;
  margin-left: 0;
}

.ns_page .ns_search_error {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #c44b45;
}

.ns_page .ns_search_error[hidden] {
  display: none;
}

.ns_page .ns_filters_search {
  position: relative;
}

.ns_page .ns_filters_search input[type="search"]::-webkit-search-cancel-button,
.ns_page .ns_filters_search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.ns_page .ns_filters_clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.ns_page .ns_filters_clear[hidden] {
  display: none;
}

.ns_page .ns_filters_clear img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.ns_page .ns_filters_clear:focus-visible {
  outline: 2px solid #33b3e8;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .ns_page .ns_filters_clear:hover {
    opacity: 0.75;
  }
}

@media (max-width: 991.98px) {
  .ns_page .ns_filters_search_wrapper {
    flex: 1 1 100%;
    margin-left: 0;
    width: 100%;
    order: 1;
  }
  .ns_filters_all{
    order: 2;
  }
  .ns_filters_group{
    order: 3;
  }
}

/* Taxonomy archives — the hero lead is an editor-written term description. */
.ns_page .ns_hero_sub > :first-child {
  margin-top: 0;
}

.ns_page .ns_hero_sub > :last-child {
  margin-bottom: 0;
}
