/* CNC archive: filters on the left, grid on the right */
.archive-cnc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .archive-cnc-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}
.cnc-filters {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  order: 1;
}
@media (min-width: 768px) {
  .cnc-filters {
    width: 280px;
    max-width: 280px;
    position: sticky;
    top: 1rem;
    order: 1;
  }
}
.cnc-filters-title {
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 0.75rem;
}
.cnc-filters-loading {
  color: #666;
  font-size: 0.875rem;
}
.cnc-filters-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cnc-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cnc-filter-label {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.cnc-filter-select,
.cnc-filter-input {
  width: 100%;
  max-width: 100%;
  padding: 0.4em 0.5em;
  font-size: 0.875rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}
.cnc-filters-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.cnc-filters-search {
  padding: 0.6em 1em;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  background: #0073aa;
  color: #fff;
  transition: background 0.2s;
  margin-bottom: 5px;
}
.cnc-filters-search:hover {
  background: #005a87;
}
.cnc-filters-search:active {
  background: #004a6f;
}
.cnc-filters-clear {
  padding: 0.5em 1em;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f5f5f5;
  color: #333;
}
.cnc-filters-clear:hover {
  background: #eee;
}
.cnc-archive-container {
  flex: 1 1 auto;
  min-width: 0;
  order: 2;
}
@media (min-width: 768px) {
  .cnc-archive-container {
    flex: 1 1 0;
    min-width: 300px;
  }
}
